migrants/constructs_step06/003-organisations.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

21 lines
643 B
SPARQL

# Construct organisation triples with tm: vocabulary.
PREFIX schema: <https://schema.org/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX tm: <https://daniel.degu.cl/ontologies/theatre-migrants/>
PREFIX orgp: <http://example.org/migrants/organisation#>
CONSTRUCT {
?s a schema:Organization .
?s schema:name ?name .
?s schema:location ?location .
?s rdfs:comment ?comment .
?s tm:institutionType ?instType .
}
WHERE {
?s a schema:Organization .
OPTIONAL { ?s schema:name ?name }
OPTIONAL { ?s schema:location ?location }
OPTIONAL { ?s rdfs:comment ?comment }
OPTIONAL { ?s orgp:InstType ?instType }
}