query-5b81f84c0c2fd217ea8f6878b4afe576

rq turtle/ttl

Propertiesproperty constraint (P2302)

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?property ?propertyLabel ?constraintTypeLabel ?item ?itemLabel ?pLabel WHERE {
  ?item ?linksTo wd:Q38108;
        ?p ?statement.
  ?statement wikibase:hasViolationForConstraint ?constraint.
  ?property p:P2302 ?constraint.
  ?constraint ps:P2302 ?constraintType
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
ORDER BY ?property

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v6("?constraint") v7("?constraintType") v2("?item"):::projected v3("?linksTo") v4("?p") v1("?property"):::projected v5("?statement") c6(["bd:serviceParam"]):::iri c8(["#91;AUTO_LANGUAGE#93;,en"]):::literal c1(["wd:Q38108"]):::iri v2 -->v3--> c1 v2 -->v4--> v5 v5 --"wikibase:hasViolationForConstraint"--> v6 v1 --"p:P2302"--> v6 v6 --"p:statement/P2302"--> v7 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c6 --"wikibase:language"--> c8 end