query-4380dd76b0b6aa5bf68b40b9035b69fb
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 schema: <http://schema.org/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?person ?personLabel
WHERE
{
?person wdt:P31 wd:Q5.
?person wdt:P21 wd:Q6581072.
{
?person wdt:P19/wdt:P131* wd:Q17070.
}
UNION
{
?person wdt:P20/wdt:P131* wd:Q17070.
}
UNION
{
?person wdt:P551/wdt:P131* wd:Q17070.
}
FILTER NOT EXISTS
{
?article schema:isPartOf <https://fr.wikipedia.org/>.
?article schema:about ?person.
}
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],fr". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?article")
v2("?person"):::projected
a1((" "))
a2((" "))
a3((" "))
c10(["wd:Q17070"]):::iri
c2([https://fr.wikipedia.org/]):::iri
c7(["wd:Q6581072"]):::iri
c14(["bd:serviceParam"]):::iri
c16(["#91;AUTO_LANGUAGE#93;,fr"]):::literal
c5(["wd:Q5"]):::iri
f0[["not "]]
subgraph f0e0["Exists Clause"]
e0v1 --"schema:isPartOf"--> e0c2
e0v1 --"schema:about"--> e0v2
e0v1("?article"):::projected
e0v2("?person"):::projected
e0c2([https://fr.wikipedia.org/]):::iri
end
f0--EXISTS--> f0e0
f0 --> v1
f0 --> c1
f0 --> c2
f0 --> c3
f0 --> v2
v1 --"schema:isPartOf"--> c2
v1 --"schema:about"--> v2
v2 --"wdt:P31"--> c5
v2 --"wdt:P21"--> c7
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
subgraph union1[" Union "]
subgraph union1l[" "]
style union1l fill:#abf,stroke-dasharray: 3 3;
v2 --"wdt:P551"--> a3
a3 --"wdt:P131"--> c10
end
subgraph union1r[" "]
style union1r fill:#abf,stroke-dasharray: 3 3;
v2 --"wdt:P20"--> a2
a2 --"wdt:P131"--> c10
end
union1r <== or ==> union1l
end
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
v2 --"wdt:P19"--> a1
a1 --"wdt:P131"--> c10
end
union0r <== or ==> union0l
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c14 --"wikibase:language"--> c16
end