query-61a24a998b540a60c14ea047242f5d41

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 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#>
SELECT ?USAs_delstater ?USAs_delstaterLabel ?_verste_politiske_forvaltningsleder ?_verste_politiske_forvaltningslederLabel ?startdato ?end ?series ?bilde_av_segl ?v_penbilde ?hovedstad ?hovedstadLabel WHERE {
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
  ?USAs_delstater wdt:P31 wd:Q35657.
  ?USAs_delstater p:P6 ?statement .
  ?statement ps:P6 ?_verste_politiske_forvaltningsleder .
  OPTIONAL { ?statement pq:P580 ?startdato .}
  filter not exists { ?statement pq:P582 ?end .}
  OPTIONAL { ?statement pq:P1545 ?series .}
  OPTIONAL { ?USAs_delstater wdt:P158 ?bilde_av_segl. }
  OPTIONAL { ?USAs_delstater wdt:P94 ?v_penbilde. }
  OPTIONAL { ?USAs_delstater wdt:P36 ?hovedstad. }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?USAs_delstater"):::projected v4("?_verste_politiske_forvaltningsleder"):::projected v7("?bilde_av_segl"):::projected v2("?end"):::projected v9("?hovedstad"):::projected v6("?series"):::projected v5("?startdato"):::projected v1("?statement") v8("?v_penbilde"):::projected c3(["bd:serviceParam"]):::iri c5(["#91;AUTO_LANGUAGE#93;,en"]):::literal c7(["wd:Q35657"]):::iri f0[["not "]] subgraph f0e0["Exists Clause"] e0v1 --"p:qualifier/P582"--> e0v2 e0v2("?end"):::projected e0v1("?statement"):::projected end f0--EXISTS--> f0e0 f0 --> v1 f0 --> c1 f0 --> v2 v1 --"p:qualifier/P582"--> v2 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c3 --"wikibase:language"--> c5 end v3 --"p:direct/P31"--> c7 v3 --"p:P6"--> v1 v1 --"p:statement/P6"--> v4 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v1 -."p:qualifier/P580".-> v5 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v1 -."p:qualifier/P1545".-> v6 end subgraph optional2["(optional)"] style optional2 fill:#bbf,stroke-dasharray: 5 5; v3 -."p:direct/P158".-> v7 end subgraph optional3["(optional)"] style optional3 fill:#bbf,stroke-dasharray: 5 5; v3 -."p:direct/P94".-> v8 end subgraph optional4["(optional)"] style optional4 fill:#bbf,stroke-dasharray: 5 5; v3 -."p:direct/P36".-> v9 end