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