migrants/constructs_step06/007-person-professions.rq
Daniel Hernandez 58a725a3d7 Add Step 6 SPARQL CONSTRUCT queries for tm: namespace mapping
11 CONSTRUCT queries transform graph-05 data from migrants: namespace
to the Theatre Migrants ontology (tm:) vocabulary: persons, places,
organisations, migrations, memberships (org:Membership), relationships,
person-professions, person-names, religion affiliations, occupations
(schema:Occupation), and enumeration instances (skos:Concept).
2026-03-01 12:07:18 +01:00

18 lines
603 B
SPARQL

# Construct person-profession association triples with tm: vocabulary.
PREFIX tm: <https://daniel.degu.cl/ontologies/theatre-migrants/>
PREFIX migrants: <http://example.org/migrants/>
PREFIX ppp: <http://example.org/migrants/person_profession#>
CONSTRUCT {
?s a tm:PersonProfession .
?s tm:personProfessionPerson ?person .
?s tm:enumeratedProfession ?eprofession .
?s tm:professionLabel ?profLabel .
}
WHERE {
?s a migrants:person_profession .
OPTIONAL { ?s ppp:ref-IDPerson ?person }
OPTIONAL { ?s ppp:Eprofession ?eprofession }
OPTIONAL { ?s ppp:profession ?profLabel }
}