query-bcf5e16c31a6383439061c36cd352fac

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#>
# coses dels Països Catalans sense instància ni subclasse de res
SELECT ?item ?itemLabel ?coor
WHERE {
  VALUES ?pc {wd:Q5705 wd:Q5720 wd:Q5765 wd:Q12709 wd:Q166282 wd:Q228 wd:Q1425491 wd:Q1479641 wd:Q804160 wd:Q804155 wd:Q1544003 wd:Q804156}
  ?item wdt:P131* ?pc.
  OPTIONAL {?item wdt:P625 ?coor .}
  MINUS {?item wdt:P31 []}
  MINUS {?item wdt:P279 []}
  SERVICE wikibase:label {bd:serviceParam wikibase:language "ca, oc, en, es, fr, it".}
}
#defaultView:Map

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?coor"):::projected v2("?item"):::projected v1("?pc") a1((" ")) a2((" ")) c6(["bd:serviceParam"]):::iri c8(["ca, oc, en, es, fr, it"]):::literal bind0[/VALUES ?pc/] bind0-->v1 bind00(["wd:Q5705"]) bind00 --> bind0 bind01(["wd:Q5720"]) bind01 --> bind0 bind02(["wd:Q5765"]) bind02 --> bind0 bind03(["wd:Q12709"]) bind03 --> bind0 bind04(["wd:Q166282"]) bind04 --> bind0 bind05(["wd:Q228"]) bind05 --> bind0 bind06(["wd:Q1425491"]) bind06 --> bind0 bind07(["wd:Q1479641"]) bind07 --> bind0 bind08(["wd:Q804160"]) bind08 --> bind0 bind09(["wd:Q804155"]) bind09 --> bind0 bind010(["wd:Q1544003"]) bind010 --> bind0 bind011(["wd:Q804156"]) bind011 --> bind0 v2 --"wdt:P131"--> v1 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P625".-> v3 end subgraph minus1["MINUS"] style minus1 stroke-width:6px,fill:pink,stroke:red; v2 --"wdt:P31"--> a1 end subgraph minus2["MINUS"] style minus2 stroke-width:6px,fill:pink,stroke:red; v2 --"wdt:P279"--> a2 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c6 --"wikibase:language"--> c8 end