How do I select all properties that start with a certain prefix, e.g. wdt:
? I would like to get all properties related to an item, but am not interested in schema:
, rdf:
, p:
and so on.
SELECT DISTINCT ?p
WHERE {
wd:Q2 ?p ?entity.
}
This query would return all properties. I tried using FILTER(STRSTARTS(?p, "wdt:"))
, FILTER(STRSTARTS(str(?p), "wdt:"))
and FILTER(STRSTARTS(xsd:string(?p), "wdt:"))
to check if the property starts with wdt:
, but the result is always empty.