query-b362904dee01233c8ad46c3de69f0559

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 de Catalunya sense instància ni subclasse de res
SELECT ?item ?itemLabel ?coor
WHERE {
  ?item wdt:P131* wd:Q5705.
  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".}
}
#defaultView:Map

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?coor"):::projected v1("?item"):::projected a1((" ")) a2((" ")) c2(["wd:Q5705"]):::iri c7(["bd:serviceParam"]):::iri c9(["ca, oc, en, es, fr"]):::literal v1 --"wdt:P131"--> c2 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v1 -."wdt:P625".-> v2 end subgraph minus0["MINUS"] style minus0 stroke-width:6px,fill:pink,stroke:red; v1 --"wdt:P31"--> a1 end subgraph minus1["MINUS"] style minus1 stroke-width:6px,fill:pink,stroke:red; v1 --"wdt:P279"--> a2 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c7 --"wikibase:language"--> c9 end