# 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 }
}
