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).
21 lines
643 B
SPARQL
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 }
|
|
}
|