query-7287f6e0f6eb4cd4d0ca7fdab310804d
TODO
Use at
- https://query.wikidata.org/sparql
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#>
SELECT ?item ?itemLabel ?etternavn WHERE {
?item wdt:P27 wd:Q20 .
?item wdt:P31 wd:Q5 .
OPTIONAL { ?item wdt:P734 ?etternavn } .
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
FILTER (!BOUND(?etternavn))
}
Query found at
- https://www.wikidata.org/wiki/User:Pmt
- https://www.wikidata.org/wiki/User_talk:Jon_Harald_S%C3%B8by/Archive/14
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?etternavn"):::projected
v2("?item"):::projected
c7(["bd:serviceParam"]):::iri
c2(["wd:Q20"]):::iri
c4(["wd:Q5"]):::iri
c9(["#91;AUTO_LANGUAGE#93;,en"]):::literal
f0[["not bound(?etternavn)"]]
f0 --> v1
v2 --"wdt:P27"--> c2
v2 --"wdt:P31"--> c4
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P734".-> v1
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c7 --"wikibase:language"--> c9
end