query-23a8790b6ca6545e2c4be284c06340f7

rq turtle/ttl

Masjid di Sumatra Barat ?dist ORDER BY } )?dist as )?location ,?loc(distance:geof(BIND } "en" language:wikibase serviceParam:bd { label:wikibase SERVICE )Q32815:wd = ?instance( FILTER } ?instance P31:wdt ?place { OPTIONAL } . "150" radius:wikibase serviceParam:bd . ?loc center:wikibase serviceParam:bd . ?location P625:wdt ?place { around:wikibase SERVICE . ?loc P625:wdt Q7253:wd { WHERE ?instanceLabel ?location ?placeLabel ?place SELECT #defaultView:Map #added before 2016-10Dengan informasi

Use at

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 geof: <http://www.opengis.net/def/function/geosparql/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#added before 2016-10
#defaultView:Map
SELECT ?place ?placeLabel ?location ?instanceLabel ?article ?gambar WHERE {
  wd:Q7253 wdt:P625 ?loc.
  SERVICE wikibase:around {
    ?place wdt:P625 ?location.
    bd:serviceParam wikibase:center ?loc;
      wikibase:radius "150".
  }
  OPTIONAL { ?place wdt:P18 ?gambar. }
  OPTIONAL {
    ?article schema:about ?place;
      schema:isPartOf <https://id.wikipedia.org/>.
  }
  OPTIONAL { ?place wdt:P31 ?instance. }
  FILTER(?instance = wd:Q32815)
  SERVICE wikibase:label { bd:serviceParam wikibase:language "id". }
  BIND(geof:distance(?loc, ?location) AS ?dist)
}
ORDER BY (?dist)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v7("?article"):::projected v8("?dist") v6("?gambar"):::projected v2("?instance") v3("?loc") v5("?location"):::projected v4("?place"):::projected c8(["150"]):::literal c5(["bd:serviceParam"]):::iri c2(["wd:Q7253"]):::iri c12([https://id.wikipedia.org/]):::iri c16(["id"]):::literal f0[["?instance = 'wd:Q32815'"]] f0 --> v2 c2 --"wdt:P625"--> v3 subgraph s1["http://wikiba.se/ontology#around"] style s1 stroke-width:4px; v4 --"wdt:P625"--> v5 c5 --"wikibase:center"--> v3 c5 --"wikibase:radius"--> c8 end subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v4 -."wdt:P18".-> v6 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v7 -."schema:about".-> v4 v7 --"schema:isPartOf"--> c12 end subgraph optional2["(optional)"] style optional2 fill:#bbf,stroke-dasharray: 5 5; v4 -."wdt:P31".-> v2 end subgraph s2["http://wikiba.se/ontology#label"] style s2 stroke-width:4px; c5 --"wikibase:language"--> c16 end bind1[/"http://www.opengis.net/def/function/geosparql/distance(?loc,?location)"/] v3 --o bind1 v5 --o bind1 bind1 --as--o v8