query-bf9c851ab0062ba9a0cbb6d548ad240d
All constraint violations on MeSH items
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?statement ?property ?violation {
# The type of item to examine
?item wdt:P486 [ ] .
# Find all the contraint violations on those items
?item ?pd ?statement .
?property wikibase:claim ?pd .
?vs ^wikibase:hasViolationForConstraint ?statement ; ps:P2302 ?violation .
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
LIMIT 10
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?item"):::projected
v2("?pd")
v4("?property"):::projected
v3("?statement"):::projected
v6("?violation"):::projected
v5("?vs")
a1((" "))
c6(["bd:serviceParam"]):::iri
c8(["#91;AUTO_LANGUAGE#93;,en"]):::literal
v1 --"wdt:P486"--> a1
v1 -->v2--> v3
v4 --"wikibase:claim"--> v2
v3 --"wikibase:hasViolationForConstraint"--> v5
v5 --"ps:P2302"--> v6
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c6 --"wikibase:language"--> c8
end