query-ccfe9964c03a992478eea78b1e0ea805

rq turtle/ttl

Pertanyaan kueriBagaimana cara membuat kueri tentang pemetaan objek yang tersebar di suatu provinsi? Contoh, saya ingin membuat persebaran masjid di Sumatra Barat, tetapi saya tidak tahu cara "memfilternya" agar yang tampil adalah objek di "Sumatra Barat" saja. Saya coba utak-atik tapi belum bisa, sehingga terpaksa menggunakan "bd:serviceParam wikibase:cornerWest". Mohon petunjuknya tentang bagiamana membuat kueri untuk hal tersebut.

Use at

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 ?place ?location ?image ?commons WHERE {
       ?place wdt:P31 wd:Q32815 .
       OPTIONAL { ?place wdt:P18 ?image. } 
       OPTIONAL { ?place wdt:P373 ?commons. } 
SERVICE wikibase:box {
?place wdt:P625 ?location.
bd:serviceParam wikibase:cornerWest "Point(99.459008 0.254724)"^^geo:wktLiteral .
bd:serviceParam wikibase:cornerEast "Point(101.633972 -1.691588)"^^geo:wktLiteral .
}

SERVICE wikibase:label { bd:serviceParam wikibase:language "id". }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?commons"):::projected v2("?image"):::projected v4("?location"):::projected v1("?place"):::projected c2(["wd:Q32815"]):::iri c7(["bd:serviceParam"]):::iri c9([sPoint(99.459008 0.254724)^^<http://www.opengis.net/ont/geosparql#wktLiteral>"]):::literal c11([sPoint(101.633972 -1.691588)^^<http://www.opengis.net/ont/geosparql#wktLiteral>"]):::literal c14(["id"]):::literal v1 --"wdt:P31"--> c2 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v1 -."wdt:P18".-> v2 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v1 -."wdt:P373".-> v3 end subgraph s1["http://wikiba.se/ontology#box"] style s1 stroke-width:4px; v1 --"wdt:P625"--> v4 c7 --"wikibase:cornerWest"--> c9 c7 --"wikibase:cornerEast"--> c11 end subgraph s2["http://wikiba.se/ontology#label"] style s2 stroke-width:4px; c7 --"wikibase:language"--> c14 end