Closed gflima closed 4 months ago
See, for example:
select * where {
wd:P31 wikibase:propertyType ?type.
wd:P31 ?x ?y.
filter(strstarts(str(?x), "http://wikiba.se/ontology#"))
} limit 30
Related: It seems that we can use the following to test whether something is an item:
select ?x where {
?x wikibase:identifiers _:b.
} limit 100
Another advantage: We can get the property datatype for free.
We are using this approach in the pattern API.