query-7a488a8bf0f9c6d015dbea10b0416f48
deutsche Wikivoyage-Artikel in BBOX (Schweiz)
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX schema: <http://schema.org/>
PREFIX geo: <http://www.opengis.net/ont/geosparql#>
PREFIX bd: <http://www.bigdata.com/rdf#>
#defaultView:Map{"hide":["?item", "?coordinate"]}
#title:Wikivoyage-Artikel in BBOX (Schweiz)
SELECT ?image ?item ?itemLabel ?article ?coordinate
WHERE {
{
SELECT ?item ?itemLabel ?article (SAMPLE(?image_) AS ?image)
WHERE {
?article schema:about ?item.
?article schema:name ?itemLabel.
?article schema:isPartOf <https://de.wikivoyage.org/> .
OPTIONAL {
?item wdt:P18 ?image_.
}
}
GROUP BY ?item ?itemLabel ?article ?coordinate
} SERVICE wikibase:box {
?item wdt:P625 ?coordinate.
bd:serviceParam wikibase:cornerSouthWest "Point(5.9559 45.818)"^^geo:wktLiteral.
bd:serviceParam wikibase:cornerNorthEast "Point(10.4921 47.8084)"^^geo:wktLiteral.
}
}
ORDER BY ?itemLabel
LIMIT 2500
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?article"):::projected
v6("?coordinate"):::projected
v5("?image"):::projected
v4("?image_")
v3("?item"):::projected
v1("?itemLabel"):::projected
c4([https://de.wikivoyage.org/]):::iri
c8(["bd:serviceParam"]):::iri
c10([sPoint(5.9559 45.818)^^<http://www.opengis.net/ont/geosparql#wktLiteral>"]):::literal
c12([sPoint(10.4921 47.8084)^^<http://www.opengis.net/ont/geosparql#wktLiteral>"]):::literal
v2 --"schema:about"--> v3
v2 --"schema:name"--> v1
v2 --"schema:isPartOf"--> c4
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v3 -."wdt:P18".-> v4
end
bind1[/"sample(?image_)"/]
v4 --o bind1
bind1 --as--o v5
subgraph s1["http://wikiba.se/ontology#box"]
style s1 stroke-width:4px;
v3 --"wdt:P625"--> v6
c8 --"wikibase:cornerSouthWest"--> c10
c8 --"wikibase:cornerNorthEast"--> c12
end