Skip to content

Latest commit

 

History

History
26 lines (19 loc) · 620 Bytes

existential.md

File metadata and controls

26 lines (19 loc) · 620 Bytes

Bonus: existential reasoning

To enable the tree-witness query rewriting, go to "Preferences", then to the "Ontop reasoner" tab and enable the option "reasoning over anonymous individuals".

Then, restart the reasoner and try the following query:

PREFIX : <http://example.org/voc#>

SELECT ?x
WHERE {
   ?x :isSupervisedBy [ a :Professor ] .
}

Note that there is no mapping assertion for the property :isSupervisedBy. Results are obtained from the following rewritten query:

PREFIX : <http://example.org/voc#>

SELECT ?x
WHERE {
   ?x a :GraduateStudent .
}