query-4b9a55ce014ae9eb66277095f08f522f

rq turtle/ttl

Cmprovació que totes les ESP a Catalunya tinguin codi IDESCAT

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 WHERE {
  ?item wdt:P31 wd:Q3055118;
        wdt:P131* wd:Q5705
        MINUS { ?item wdt:P4335 ?idescat }
  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; v2("?idescat") v1("?item"):::projected c4(["wd:Q5705"]):::iri c7(["bd:serviceParam"]):::iri c9(["#91;AUTO_LANGUAGE#93;,en"]):::literal c2(["wd:Q3055118"]):::iri v1 --"wdt:P31"--> c2 v1 --"wdt:P131"--> c4 subgraph minus0["MINUS"] style minus0 stroke-width:6px,fill:pink,stroke:red; v1 --"wdt:P4335"--> v2 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c7 --"wikibase:language"--> c9 end