query-1d2b272950bef70b6c31c5cbca1769f0

rq turtle/ttl

Masjid SumbarCorner

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 geo: <http://www.opengis.net/ont/geosparql#>
PREFIX bd: <http://www.bigdata.com/rdf#>
#defaultView:Map
SELECT ?place ?placeLabel ?location ?image ?sejak ?letakLabel ?article WHERE {
       ?place wdt:P31 wd:Q32815 .
       OPTIONAL { ?place wdt:P18 ?image. }
       OPTIONAL { ?place wdt:P571 ?sejak. }
       OPTIONAL { ?place wdt:P131 ?letak. } 
   OPTIONAL {  ?article schema:about ?place . 
    ?article schema:isPartOf <https://id.wikipedia.org/>.  }
    BIND(YEAR(?sejak) as ?year)
SERVICE wikibase:box {
?place wdt:P625 ?location.
bd:serviceParam wikibase:cornerWest "Point(98.36 0.62)"^^geo:wktLiteral .
bd:serviceParam wikibase:cornerEast "Point(101.8 -2)"^^geo:wktLiteral .
}

SERVICE wikibase:label { bd:serviceParam wikibase:language "id". }
}
ORDER BY DESC(?sejak)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v5("?article"):::projected v3("?image"):::projected v4("?letak") v7("?location"):::projected v2("?place"):::projected v1("?sejak"):::projected v6("?year") c2(["wd:Q32815"]):::iri c13([sPoint(98.36 0.62)^^<http://www.opengis.net/ont/geosparql#wktLiteral>"]):::literal c15([sPoint(101.8 -2)^^<http://www.opengis.net/ont/geosparql#wktLiteral>"]):::literal c11(["bd:serviceParam"]):::iri c8([https://id.wikipedia.org/]):::iri c18(["id"]):::literal v2 --"wdt:P31"--> c2 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P18".-> v3 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P571".-> v1 end subgraph optional2["(optional)"] style optional2 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P131".-> v4 end subgraph optional3["(optional)"] style optional3 fill:#bbf,stroke-dasharray: 5 5; v5 -."schema:about".-> v2 v5 --"schema:isPartOf"--> c8 end bind0[/"year-from-dateTime(?sejak)"/] v1 --o bind0 bind0 --as--o v6 subgraph s1["http://wikiba.se/ontology#box"] style s1 stroke-width:4px; v2 --"wdt:P625"--> v7 c11 --"wikibase:cornerWest"--> c13 c11 --"wikibase:cornerEast"--> c15 end subgraph s2["http://wikiba.se/ontology#label"] style s2 stroke-width:4px; c11 --"wikibase:language"--> c18 end