query-87d106540b02c7e2be623e831bfe35c0
Find station with the locations (constraint violation)
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wds: <http://www.wikidata.org/entity/statement/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?item ?itemLabel WHERE {
?statement wikibase:hasViolationForConstraint wds:P625-E8AD8423-E6C5-4AB0-A82E-916F4468CDFB .
?item (wdt:P31/wdt:P279*) wd:Q190107.
?item ?p ?statement .
FILTER( ?item NOT IN ( wd:Q4115189, wd:Q13406268, wd:Q15397819 ) ) .
SERVICE wikibase:label { bd:serviceParam wikibase:language "fr,en" } .
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?item"):::projected
v3("?p")
v2("?statement")
a1((" "))
c5(["wd:statement/P625-E8AD8423-E6C5-4AB0-A82E-916F4468CDFB"]):::iri
c8(["wd:Q190107"]):::iri
c10(["bd:serviceParam"]):::iri
c12(["fr,en"]):::literal
f0[["?item != 'wd:Q4115189'?item != 'wd:Q13406268'?item != 'wd:Q15397819'"]]
f0 --> v1
v2 --"wikibase:hasViolationForConstraint"--> c5
v1 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c8
v1 -->v3--> v2
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c10 --"wikibase:language"--> c12
end