query-26a191c00f6799001775196d8c1ed6f2
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?item ?itemLabel ?page1 WHERE {
?item wdt:P131 wd:Q647 . #things located in Rennes
?page1 schema:about ?item .
?page2 schema:about ?item .
?page1 schema:isPartOf <https://en.wikipedia.org/> . #with articles on en.wikipedia.org
FILTER NOT EXISTS { ?page2 schema:isPartOf <https://de.wikipedia.org/> .} #without article on de.wikipedia.org
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?item"):::projected
v3("?page1"):::projected
v1("?page2")
c2([https://de.wikipedia.org/]):::iri
c6([https://en.wikipedia.org/]):::iri
c8(["bd:serviceParam"]):::iri
c4(["wd:Q647"]):::iri
c10(["#91;AUTO_LANGUAGE#93;,en"]):::literal
f0[["not "]]
subgraph f0e0["Exists Clause"]
e0v1 --"schema:isPartOf"--> e0c2
e0v1("?page2"):::projected
e0c2([https://de.wikipedia.org/]):::iri
end
f0--EXISTS--> f0e0
f0 --> v1
f0 --> c1
f0 --> c2
v1 --"schema:isPartOf"--> c2
v2 --"wdt:P131"--> c4
v3 --"schema:about"--> v2
v1 --"schema:about"--> v2
v3 --"schema:isPartOf"--> c6
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end