query-c24af18f5abd4dcf26ec078958452e48
Missing P17 for items of localities connected to a certain wiki
SELECT ?item ?itemLabel WHERE {
VALUES ?type {wd:Q3957 wd:Q515 wd:Q532 wd:Q486972}
?item wdt:P31 ?type .
MINUS {?item wdt:P17 [] } .
?wen schema:about ?item ; schema:isPartOf https://ru.wikipedia.org/ .
SERVICE wikibase:label { bd:serviceParam wikibase:language "ru,en,ro" }
}
LIMIT 50
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#>
#Missing P17 for items of localities connected to a certain wiki
SELECT ?item ?itemLabel WHERE {
VALUES ?type {wd:Q3957 wd:Q515 wd:Q532 wd:Q486972}
?item wdt:P31 ?type .
MINUS {?item wdt:P17 [] } .
?wen schema:about ?item ; schema:isPartOf <https://ru.wikipedia.org/> .
SERVICE wikibase:label { bd:serviceParam wikibase:language "ru,en,ro" }
}
#LIMIT 50
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?item"):::projected
v1("?type")
v3("?wen")
a1((" "))
c9(["ru,en,ro"]):::literal
c7(["bd:serviceParam"]):::iri
c5([https://ru.wikipedia.org/]):::iri
bind0[/VALUES ?type/]
bind0-->v1
bind00(["wd:Q3957"])
bind00 --> bind0
bind01(["wd:Q515"])
bind01 --> bind0
bind02(["wd:Q532"])
bind02 --> bind0
bind03(["wd:Q486972"])
bind03 --> bind0
v2 --"wdt:P31"--> v1
subgraph minus1["MINUS"]
style minus1 stroke-width:6px,fill:pink,stroke:red;
v2 --"wdt:P17"--> a1
end
v3 --"schema:about"--> v2
v3 --"schema:isPartOf"--> c5
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c7 --"wikibase:language"--> c9
end