For dbp:child
in DBpedia 2016-10:
Last active
July 30, 2020 18:45
-
-
Save mommi84/3871cac6015c6dbca7da170546f3dd57 to your computer and use it in GitHub Desktop.
Predict range of property among datatypes and high-level classes.
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
select ?x (count(*) as ?c) { | |
[] <PROPERTY_URI> ?o . | |
optional { | |
?o a/rdfs:subClassOf+ ?class . | |
?class rdfs:subClassOf owl:Thing | |
} | |
bind(if( | |
isuri(?o), | |
?class, | |
datatype(?o) | |
) as ?x) | |
} | |
group by ?x | |
order by desc(?c) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment