query-2c1318e8ec4a6cba258b3c9476a705ff

rq turtle/ttl

Alle Provinzen Spaniens

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#--------------------------------
# alle Provinzen Spaniens 
# (50 Stand 2019-03-29)
# https://de.wikipedia.org/wiki/Liste_der_Provinzen_Spaniens
#--------------------------------
#defaultView:Map,Table
SELECT distinct ?item ?itemLabel ?itemDescription (SAMPLE(?coordinate) AS ?coord)
where {
  ?item p:P31 ?statement .
  ?statement ps:P31 wd:Q162620.        # alle Provinzen Spaniens /wdt:P279*
  MINUS { ?statement pq:P582 [] }                # ohne Endzeit an der Eigenschaft
  MINUS { ?item wdt:P576 [].} #_:b1. }           # ohne Auflösungsdatum am Objekt
  OPTIONAL { ?item wdt:P625 ?coordinate. }
  SERVICE wikibase:label { bd:serviceParam wikibase:language "de,en,[AUTO_LANGUAGE]" }
} group by ?item ?itemLabel ?itemDescription
order by ?itemDescription

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v5("?coord") v4("?coordinate"):::projected v2("?item"):::projected v1("?itemDescription"):::projected v3("?statement") a1((" ")) a2((" ")) c3(["wd:Q162620"]):::iri c8(["bd:serviceParam"]):::iri c10(["de,en,#91;AUTO_LANGUAGE#93;"]):::literal v2 --"p:P31"--> v3 v3 --"p:statement/P31"--> c3 subgraph minus0["MINUS"] style minus0 stroke-width:6px,fill:pink,stroke:red; v3 --"p:qualifier/P582"--> a1 end subgraph minus1["MINUS"] style minus1 stroke-width:6px,fill:pink,stroke:red; v2 --"p:direct/P576"--> a2 end subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v2 -."p:direct/P625".-> v4 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c8 --"wikibase:language"--> c10 end bind3[/"sample(?coordinate)"/] v4 --o bind3 bind3 --as--o v5