migrants/constructs_step06/009-religion-affiliations.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

31 lines
1 KiB
SPARQL

# Construct religion affiliation triples with tm: vocabulary.
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX tm: <https://daniel.degu.cl/ontologies/theatre-migrants/>
PREFIX migrants: <http://example.org/migrants/>
PREFIX relgp: <http://example.org/migrants/religions#>
CONSTRUCT {
?s a tm:ReligionAffiliation .
?s tm:religionAffiliationPerson ?person .
?s tm:religion ?religion .
?s tm:denomination ?denomination .
?s rdfs:comment ?comment .
?s tm:dateStartMin ?dsMin .
?s tm:dateStartMax ?dsMax .
?s tm:dateEndMin ?deMin .
?s tm:dateEndMax ?deMax .
?s tm:dateStartFuzzy ?dsFuzzy .
}
WHERE {
?s a migrants:religions .
OPTIONAL { ?s relgp:ref-IDPerson ?person }
OPTIONAL { ?s relgp:religion ?religion }
OPTIONAL { ?s relgp:denomination ?denomination }
OPTIONAL { ?s relgp:comment ?comment }
OPTIONAL { ?s relgp:date_start ?dsMin }
OPTIONAL { ?s relgp:DateStart_Max ?dsMax }
OPTIONAL { ?s relgp:DateEnd_Min ?deMin }
OPTIONAL { ?s relgp:DateEnd_Max ?deMax }
OPTIONAL { ?s relgp:DateStart_Fuzzy ?dsFuzzy }
}