query-14dcef0a1c11b651cb8b70c966ca3590
Tabel
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 schema: <http://schema.org/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?kabkota ?kabkotaLabel ?kec ?kecLabel ?nagari ?nagariLabel ?masjid ?masjidLabel ?koordinat ?year WHERE {
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],id". }
?masjid wdt:P31 wd:Q32815.
?masjid wdt:P131 ?nagari.
?nagari wdt:P131 ?kec.
?kec wdt:P131 ?kabkota.
?kabkota wdt:P131 wd:Q2772.
OPTIONAL { ?masjid wdt:P571 ?sejak. }
BIND(YEAR(?sejak) as ?year)
OPTIONAL {
?article schema:about ?masjid .
?article schema:isPartOf <https://id.wikipedia.org/>.
}
OPTIONAL { ?masjid wdt:P625 ?koordinat. }
OPTIONAL { ?masjid wdt:P18 ?image. }
}
ORDER BY ?kabkotaLabel ?kecLabel ?nagariLabel ?masjidLabel
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v11("?article")
v13("?image")
v8("?kabkota"):::projected
v1("?kabkotaLabel"):::projected
v7("?kec"):::projected
v2("?kecLabel"):::projected
v12("?koordinat"):::projected
v5("?masjid"):::projected
v4("?masjidLabel"):::projected
v6("?nagari"):::projected
v3("?nagariLabel"):::projected
v9("?sejak")
v10("?year"):::projected
c6(["wd:Q32815"]):::iri
c4(["#91;AUTO_LANGUAGE#93;,id"]):::literal
c2(["bd:serviceParam"]):::iri
c12([https://id.wikipedia.org/]):::iri
c8(["wd:Q2772"]):::iri
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c2 --"wikibase:language"--> c4
end
v5 --"wdt:P31"--> c6
v5 --"wdt:P131"--> v6
v6 --"wdt:P131"--> v7
v7 --"wdt:P131"--> v8
v8 --"wdt:P131"--> c8
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v5 -."wdt:P571".-> v9
end
bind0[/"year-from-dateTime(?sejak)"/]
v9 --o bind0
bind0 --as--o v10
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v11 -."schema:about".-> v5
v11 --"schema:isPartOf"--> c12
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v5 -."wdt:P625".-> v12
end
subgraph optional3["(optional)"]
style optional3 fill:#bbf,stroke-dasharray: 5 5;
v5 -."wdt:P18".-> v13
end