query-9f78ca3efa98f0a4a43f768661aaa737
Tous les personnages des histoires de Jin Yong
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 DISTINCT ?item ?itemLabel ?item2 ?item2Label WHERE {
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
?item wdt:P31 wd:Q15632617 # fictional human
{?item (wdt:P170|wdt:P50) wd:Q180626. } # creator authorĀ : Jin Yong
UNION
{?item wdt:P1441 ?item2. # present in work by
{SELECT ?item2 WHERE {
?item2 wdt:P50 wd:Q180626. # Jin Yong
} limit 100000 } }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?item"):::projected
v2("?item2"):::projected
c2(["bd:serviceParam"]):::iri
c8(["wd:Q180626"]):::iri
c4(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c6(["wd:Q15632617"]):::iri
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c2 --"wikibase:language"--> c4
end
v1 --"wdt:P31"--> c6
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P1441"--> v2
v2 --"wdt:P50"--> c8
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
subgraph union1[" Union "]
subgraph union1l[" "]
style union1l fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P50"--> c8
end
subgraph union1r[" "]
style union1r fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P170"--> c8
end
union1r <== or ==> union1l
end
end
union0r <== or ==> union0l
end