query-6110e5fde4359e33531326ee37b72364
Record Japanese postal code separately from its address
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?anyItemLabel ?anyItem ?address WHERE {
?anyItem wdt:P6375 ?address.
FILTER(STRSTARTS(?address, "〒")).
SERVICE wikibase:label { bd:serviceParam wikibase:language "ja,en". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?address"):::projected
v2("?anyItem"):::projected
c4(["bd:serviceParam"]):::iri
c6(["ja,en"]):::literal
f0[["starts-with(?address,'〒')"]]
f0 --> v1
v2 --"wdt:P6375"--> v1
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c4 --"wikibase:language"--> c6
end