Skip to content

Instantly share code, notes, and snippets.

@quoll
Created August 9, 2022 13:47
Show Gist options
  • Save quoll/32ecbafe87229ddabced1e88f960581f to your computer and use it in GitHub Desktop.
Save quoll/32ecbafe87229ddabced1e88f960581f to your computer and use it in GitHub Desktop.
An inefficient approach to identifying intersection membership
construct { ?x a ?i }
where { ?i owl:intersectionOf ?l .
?l rdf:rest*/rdf:first ?c .
?x a ?c
MINUS {
?l rdf:rest*/rdf:first ?d .
?l rdf:rest*/rdf:first ?d2 .
FILTER ( ?d != ?d2 )
?x a ?d MINUS { ?x a ?d2 }
} }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment