Created
April 2, 2017 13:19
-
-
Save mommi84/b81ad50f98c3c34c0df576822c808ff0 to your computer and use it in GitHub Desktop.
Most specific types in SPARQL
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
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