query-3c11b3883778a740ec0d85b8b4c5a8ae
Propertiescoordinate location (P625)instance of (P31)located in the administrative territorial entity (P131)located in statistical territorial entity (P8138)Monument Atlas Lower Saxony Objekt-ID (P7900)OpenStreetMap way ID (P10689)OpenStreetMap node ID (P11693)OpenStreetMap relation ID (P402)
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 geof: <http://www.opengis.net/def/function/geosparql/>
PREFIX geo: <http://www.opengis.net/ont/geosparql#>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?place ?dist ?placeLabel ?placeDescription ?istEinLabel ?liegtInLabel ?StatLabel ?Denkmal ?OsmLi ?OsmKn ?OsmRe
WHERE
{
# Nearby ohne Stolpersteine und Sonderausstellungen
wd:Q120143231 wdt:P625 ?loc . # Item mit Geokoordinaten
#BIND ( "Point(-79.71 15.8)"^^geo:wktLiteral AS ?loc ) . # Beliebige Position. Erst Ost/West. keine Blanks vor oder nach den Koordinaten!
SERVICE wikibase:around {
?place wdt:P625 ?location .
bd:serviceParam wikibase:center ?loc .
bd:serviceParam wikibase:radius "0.5" .
}
OPTIONAL { ?place wdt:P31 ?istEin }
OPTIONAL { ?place wdt:P131 ?liegtIn }
OPTIONAL { ?place wdt:P8138 ?Stat }
OPTIONAL { ?place wdt:P7900 ?Denkmal }
OPTIONAL { ?place wdt:P10689 ?OsmLi }
OPTIONAL { ?place wdt:P11693 ?OsmKn }
OPTIONAL { ?place wdt:P402 ?OsmRe }
FILTER ( ?istEin != wd:Q26703203 && ?istEin != wd:Q29023906) # keine Stolpersteine
SERVICE wikibase:label { bd:serviceParam wikibase:language "de" }
BIND(geof:distance(?loc, ?location) as ?dist)
} ORDER BY ?dist
LIMIT 250
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v8("?Denkmal"):::projected
v10("?OsmKn"):::projected
v9("?OsmLi"):::projected
v11("?OsmRe"):::projected
v7("?Stat")
v12("?dist"):::projected
v2("?istEin")
v6("?liegtIn")
v3("?loc")
v5("?location")
v4("?place"):::projected
c19(["de"]):::literal
c6(["bd:serviceParam"]):::iri
c3(["wd:Q120143231"]):::iri
c9(["0.5"]):::literal
f0[["?istEin != 'wd:Q26703203'?istEin != 'wd:Q29023906'"]]
f0 --> v2
c3 --"wdt:P625"--> v3
subgraph s1["http://wikiba.se/ontology#around"]
style s1 stroke-width:4px;
v4 --"wdt:P625"--> v5
c6 --"wikibase:center"--> v3
c6 --"wikibase:radius"--> c9
end
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v4 -."wdt:P31".-> v2
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v4 -."wdt:P131".-> v6
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v4 -."wdt:P8138".-> v7
end
subgraph optional3["(optional)"]
style optional3 fill:#bbf,stroke-dasharray: 5 5;
v4 -."wdt:P7900".-> v8
end
subgraph optional4["(optional)"]
style optional4 fill:#bbf,stroke-dasharray: 5 5;
v4 -."wdt:P10689".-> v9
end
subgraph optional5["(optional)"]
style optional5 fill:#bbf,stroke-dasharray: 5 5;
v4 -."wdt:P11693".-> v10
end
subgraph optional6["(optional)"]
style optional6 fill:#bbf,stroke-dasharray: 5 5;
v4 -."wdt:P402".-> v11
end
subgraph s2["http://wikiba.se/ontology#label"]
style s2 stroke-width:4px;
c6 --"wikibase:language"--> c19
end
bind1[/"http://www.opengis.net/def/function/geosparql/distance(?loc,?location)"/]
v3 --o bind1
v5 --o bind1
bind1 --as--o v12