# For PersonProfession instances with an enumeratedProfession,
# add a direct schema:hasOccupation link from the person to the occupation.
# Affects 3 PersonProfession instances.

PREFIX tm:     <https://daniel.degu.cl/ontologies/theatre-migrants/>
PREFIX schema: <https://schema.org/>

INSERT {
  ?person schema:hasOccupation ?occupation .
}
WHERE {
  ?pp a tm:PersonProfession .
  ?pp tm:personProfessionPerson ?person .
  ?pp tm:enumeratedProfession ?occupation .
}
