query-fd388b01086b2133469191e7c884ff9c
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
#defaultView:Graph
select ?person ?linkedPerson ?type ?personLabel (?type as ?edgeLabel) {
?person wdt:P106 wd:Q1229025 .
?person wdt:P937/wdt:P17? wd:Q38 .
{
?person wdt:P1327 ?linkedPerson .
bind("business partner" as ?type)
} union {
?person wdt:P22| wdt:P23 | wdt:P40 ?linkedPerson .
bind("lineage" as ?type)
} union {
?person wdt:P26 ?linkedPerson .
bind("partner" as ?type)
}
} limit 1000
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?edgeLabel")
v2("?linkedPerson"):::projected
v1("?person"):::projected
v4("?type"):::projected
a1((" "))
c4(["wd:Q38"]):::iri
c2(["wd:Q1229025"]):::iri
v1 --"wdt:P106"--> c2
v1 --"wdt:P937"--> a1
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
a1 --"wdt:P17"--> c4
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
end
union0r <== or ==> union0l
end
subgraph union1[" Union "]
subgraph union1l[" "]
style union1l fill:#abf,stroke-dasharray: 3 3;
subgraph union2[" Union "]
subgraph union2l[" "]
style union2l fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P26"--> v2
bind0[/"'partner'"/]
bind0 --as--o v4
end
subgraph union2r[" "]
style union2r fill:#abf,stroke-dasharray: 3 3;
subgraph union3[" Union "]
subgraph union3l[" "]
style union3l fill:#abf,stroke-dasharray: 3 3;
subgraph union4[" Union "]
subgraph union4l[" "]
style union4l fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P40"--> v2
end
subgraph union4r[" "]
style union4r fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P23"--> v2
end
union4r <== or ==> union4l
end
end
subgraph union3r[" "]
style union3r fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P22"--> v2
end
union3r <== or ==> union3l
end
bind1[/"'lineage'"/]
bind1 --as--o v4
end
union2r <== or ==> union2l
end
end
subgraph union1r[" "]
style union1r fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P1327"--> v2
bind2[/"'business partner'"/]
bind2 --as--o v4
end
union1r <== or ==> union1l
end
bind3[/"?type"/]
v4 --o bind3
bind3 --as--o v4