query-5fc801481cd3264b4419cfc9f88db0c1
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 pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?wiag ?value ?valueLabel ?propertyLabel ?kinship ?kinshipLabel WHERE
{
{ SELECT ?property
WHERE
{
?property wdt:P1647* wd:P1038 .
} } # ?item wdt:P31 wd:Q5.
?item wdt:P9441 ?wiag.
?item ?predicate ?stat .
?stat ?predicate2 ?value .
?property wikibase:claim ?predicate .
?property wikibase:statementProperty ?predicate2 .
OPTIONAL {?stat pq:P1039 ?kinship.}
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
} order by ?item ?value
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?item"):::projected
v8("?kinship"):::projected
v5("?predicate")
v7("?predicate2")
v3("?property")
v6("?stat")
v2("?value"):::projected
v4("?wiag"):::projected
c8(["bd:serviceParam"]):::iri
c10(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c2(["wd:P1038"]):::iri
v3 --"wdt:P1647"--> c2
v1 --"wdt:P9441"--> v4
v1 -->v5--> v6
v6 -->v7--> v2
v3 --"wikibase:claim"--> v5
v3 --"wikibase:statementProperty"--> v7
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v6 -."pq:P1039".-> v8
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end