query-849bded55afd8051c3bffce5600a2328

rq turtle/ttl

TODO

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?value ?is ?isLabel 
WHERE
{ 
  ?item wdt:P31 wd:Q3305213;
        wdt:P1257 ?value.
  FILTER(regex(?value,"^71A.*$"))
  #or  FILTER(regex(?value,"^71A"))
  OPTIONAL { ?is wdt:P1256 ?value }
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?is"):::projected v2("?item"):::projected v1("?value"):::projected c3(["wd:Q3305213"]):::iri c7(["bd:serviceParam"]):::iri c9(["#91;AUTO_LANGUAGE#93;,en"]):::literal f0[["regex(?value,'^71A.*$')"]] f0 --> v1 v2 --"wdt:P31"--> c3 v2 --"wdt:P1257"--> v1 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v3 -."wdt:P1256".-> v1 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c7 --"wikibase:language"--> c9 end