query-8b01f32b25859f8f3c34c6796d1c3cb4
TODO
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 ?item ?itemLabel ?id WHERE {
?item wdt:P772 ?id .
FILTER(STRLEN(?id) = 11) # ?id string must be 11 digits
FILTER(SUBSTR(?id,6,2)="00") # 6th & 7th digits must be 00
FILTER(SUBSTR(?id,10,2)="00") # 10th & 11th digits must be 00
SERVICE wikibase:label { bd:serviceParam wikibase:language "es". }
} order by ?itemLabel
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?id"):::projected
v3("?item"):::projected
v1("?itemLabel"):::projected
c8(["bd:serviceParam"]):::iri
c10(["es"]):::literal
f0[["substring(?id,'10^^xsd:integer','2^^xsd:integer') = '00'"]]
f0 --> v2
f1[["substring(?id,'6^^xsd:integer','2^^xsd:integer') = '00'"]]
f1 --> v2
f2[["string-length(?id) = '11^^xsd:integer'"]]
f2 --> v2
v3 --"wdt:P772"--> v2
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end