Skip to content

Instantly share code, notes, and snippets.

@KonradHoeffner
Last active April 13, 2017 09:43
Show Gist options
  • Save KonradHoeffner/865b12ee90427e030210be78e1ec7e81 to your computer and use it in GitHub Desktop.
Save KonradHoeffner/865b12ee90427e030210be78e1ec7e81 to your computer and use it in GitHub Desktop.
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