query-24ada1d13fd46392cdbf31adad0862ad
you could get most of them:
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 geo: <http://www.opengis.net/ont/geosparql#>
PREFIX bd: <http://www.bigdata.com/rdf#>
#defaultView:Map
SELECT ?item ?itemLabel ?itemDescription ?adm ?admLabel ?elevation ?coordinates ?layer
{
SERVICE wikibase:box {
?item wdt:P625 ?coordinates .
bd:serviceParam wikibase:cornerWest "Point(94.7 6)"^^geo:wktLiteral .
bd:serviceParam wikibase:cornerEast "Point(98.2 2)"^^geo:wktLiteral .
}
?item wdt:P31 wd:Q8502 .
OPTIONAL { ?item wdt:P2044 ?elevation }
OPTIONAL { ?item wdt:P131 ?adm }
OPTIONAL { ?item wikibase:sitelinks ?layer } .
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;
v4("?adm"):::projected
v2("?coordinates"):::projected
v3("?elevation"):::projected
v1("?item"):::projected
v5("?layer"):::projected
c7([sPoint(98.2 2)^^<http://www.opengis.net/ont/geosparql#wktLiteral>"]):::literal
c5([sPoint(94.7 6)^^<http://www.opengis.net/ont/geosparql#wktLiteral>"]):::literal
c3(["bd:serviceParam"]):::iri
c15(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c9(["wd:Q8502"]):::iri
subgraph s1["http://wikiba.se/ontology#box"]
style s1 stroke-width:4px;
v1 --"wdt:P625"--> v2
c3 --"wikibase:cornerWest"--> c5
c3 --"wikibase:cornerEast"--> c7
end
v1 --"wdt:P31"--> c9
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P2044".-> v3
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P131".-> v4
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wikibase:sitelinks".-> v5
end
subgraph s2["http://wikiba.se/ontology#label"]
style s2 stroke-width:4px;
c3 --"wikibase:language"--> c15
end