query-45719b85987ec3078ae43295e3493199
Property variants
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?p (URI(REPLACE(STR(?variant), 'P214', '')) AS ?ns)
WHERE {
wd:P214 ?p ?variant .
FILTER(CONTAINS(STR(?variant), '/P214'))
FILTER(STRSTARTS(STR(?p), STR(wikibase:)))
}
ORDER BY ?ns
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?ns")
v2("?p"):::projected
v3("?variant"):::projected
c3(["wd:P214"]):::iri
f0[["starts-with(str(?p),str('wikibase:'))"]]
f0 --> v2
f1[["contains(str(?variant),'/P214')"]]
f1 --> v3
c3 -->v2--> v3
bind2[/"replace(str(?variant),'P214','')"/]
v3 --o bind2
bind2 --as--o v4