query-34979eaefd7fbdc6f9a21615970128c7
Note: before https://phabricator.wikimedia.org/T201150 is fixed, the result will only be partial SELECT DISTINCT ?item ?itemLabel ?value WHERE { ?statement wikibase:hasViolationForConstraint wds:P2088-DD4CDCEA-B3F6-4F02-9CFB-4A9E312B73A8 . ?item p:P2088 ?statement . ?statement ps:P2088 ?value. SERVICE wikibase:label { bd:serviceParam wikibase:language "en" } . }
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wds: <http://www.wikidata.org/entity/statement/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
# Note: before https://phabricator.wikimedia.org/T201150 is fixed, the result will only be partial
SELECT DISTINCT ?item ?itemLabel ?value WHERE {
?statement wikibase:hasViolationForConstraint wds:P2088-DD4CDCEA-B3F6-4F02-9CFB-4A9E312B73A8 .
?item p:P2088 ?statement .
?statement ps:P2088 ?value.
SERVICE wikibase:label { bd:serviceParam wikibase:language "en" } .
}
Query found at
- https://www.wikidata.org/wiki/Module_talk:Constraints/SPARQL
- https://www.wikidata.org/wiki/User_talk:Ivan_A._Krestinin
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?item"):::projected
v1("?statement")
v3("?value"):::projected
c6(["bd:serviceParam"]):::iri
c2(["wds:P2088-DD4CDCEA-B3F6-4F02-9CFB-4A9E312B73A8"]):::iri
c8(["en"]):::literal
v1 --"wikibase:hasViolationForConstraint"--> c2
v2 --"p:P2088"--> v1
v1 --"p:statement/P2088"--> v3
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c6 --"wikibase:language"--> c8
end