Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Most specific types in SPARQL
PREFIX rdfs:<http://www.w3.org/2000/01/rdf-schema#>
SELECT DISTINCT ?s ?t2 WHERE {
?s a ?t2
MINUS {
?s a ?t1, ?t2 .
?t1 rdfs:subClassOf ?t2 .
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.