Last active
April 13, 2017 09:43
-
-
Save KonradHoeffner/865b12ee90427e030210be78e1ec7e81 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
construct {?c meta:subTopClass ?x} | |
from <http://www.snik.eu/ontology/meta> | |
from <http://www.snik.eu/ontology/ob> | |
from <http://www.snik.eu/ontology/bb> | |
from <http://www.snik.eu/ontology/he> | |
{ | |
graph ?g {?c a owl:Class.} | |
filter(?g!=<http://www.snik.eu/ontology/meta>) # EntityType, Role, Function and Top don't have subTopClass and we trust meta to have all other subtops | |
?c rdfs:subClassOf* ?x. | |
filter(?x = meta:Function OR ?x = meta:Role OR ?x = meta:EntityType) | |
filter not exists {?c meta:subTopClass ?x.} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment