query-8d611333d90e6559ce96d2ea204ab2a6
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#>
#defaultView:Map
SELECT ?place ?placeLabel ?location ?article WHERE {
wd:Q2556776 wdt:P625 ?loc . #ZDE NAHRADTE PRVNI WIKIDATA POLOZKU POLOZKOU MISTA, KOLEM NEHOZ CHCETE HLEDAT
SERVICE wikibase:around {
?place wdt:P625 ?location .
bd:serviceParam wikibase:center ?loc .
bd:serviceParam wikibase:radius "10" . #ZDE NAHRADTE CISLO POCTEM KILOMETRU, KTERE MAJI BYT POUZITY JAKO RADIUS KOLEM VASEHO MISTA
}
MINUS {?place wdt:P18 ?img . }
MINUS {?article schema:about ?place .
?article schema:isPartOf <https://ceb.wikipedia.org/>.}
SERVICE wikibase:label {
bd:serviceParam wikibase:language "cs,en" .
}
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v5("?article"):::projected
v4("?img")
v1("?loc")
v3("?location"):::projected
v2("?place"):::projected
c1(["wd:Q2556776"]):::iri
c14(["cs,en"]):::literal
c4(["bd:serviceParam"]):::iri
c11([https://ceb.wikipedia.org/]):::iri
c7(["10"]):::literal
c1 --"wdt:P625"--> v1
subgraph s1["http://wikiba.se/ontology#around"]
style s1 stroke-width:4px;
v2 --"wdt:P625"--> v3
c4 --"wikibase:center"--> v1
c4 --"wikibase:radius"--> c7
end
subgraph minus0["MINUS"]
style minus0 stroke-width:6px,fill:pink,stroke:red;
v2 --"wdt:P18"--> v4
end
subgraph minus1["MINUS"]
style minus1 stroke-width:6px,fill:pink,stroke:red;
v5 --"schema:about"--> v2
v5 --"schema:isPartOf"--> c11
end
subgraph s2["http://wikiba.se/ontology#label"]
style s2 stroke-width:4px;
c4 --"wikibase:language"--> c14
end