query-993658c72f7fe233b48ecc97d318731b

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 DISTINCT ?item ?itemLabel ?partyLabel ?partitilh_righet ?partitilh_righetLabel ?f_dselsdato ?Historisk_befolkningsregister_ID ?virkested ?virkestedLabel ?av_innenfor ?av_innenforLabel ?ofLabel

WHERE {
 ?item wdt:P27 wd:Q20.
 ?item wdt:P39 wd:Q30185.
 SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],no". }
 OPTIONAL { ?item wdt:P102 ?partitilh_righet. }
 OPTIONAL { ?item wdt:P569 ?f_dselsdato. }
 OPTIONAL { ?item wdt:P4574 ?Historisk_befolkningsregister_ID. }
 OPTIONAL { ?item wdt:P937 ?virkested. }
 OPTIONAL { ?item p:P39 ?statement.                            
  ?statement ps:P39 wd:Q30185; pq:P642 ?of. }
 } order by desc(?ofLabel)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v5("?Historisk_befolkningsregister_ID"):::projected v4("?f_dselsdato"):::projected v2("?item"):::projected v8("?of") v1("?ofLabel"):::projected v3("?partitilh_righet"):::projected v7("?statement") v6("?virkested"):::projected c8(["#91;AUTO_LANGUAGE#93;,no"]):::literal c2(["wd:Q20"]):::iri c6(["bd:serviceParam"]):::iri c4(["wd:Q30185"]):::iri v2 --"p:direct/P27"--> c2 v2 --"p:direct/P39"--> c4 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c6 --"wikibase:language"--> c8 end subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v2 -."p:direct/P102".-> v3 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v2 -."p:direct/P569".-> v4 end subgraph optional2["(optional)"] style optional2 fill:#bbf,stroke-dasharray: 5 5; v2 -."p:direct/P4574".-> v5 end subgraph optional3["(optional)"] style optional3 fill:#bbf,stroke-dasharray: 5 5; v2 -."p:direct/P937".-> v6 end subgraph optional4["(optional)"] style optional4 fill:#bbf,stroke-dasharray: 5 5; v2 -."p:P39".-> v7 v7 --"p:statement/P39"--> c4 v7 --"p:qualifier/P642"--> v8 end