query-8aebbe5b1485b84c7889e1237159ee1a
Propertiesinstance of (P31)sex or gender (P21)country of citizenship (P27)family name (P734)date of birth (P569)date of death (P570)occupation (P106)
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 ?item ?itemLabel ?lastnameLabel ?birthdate ?deathdate ?nationalityLabel ?occupationLabel ?itemDescription ?linkcount WHERE {
?item wdt:P31 wd:Q5;
wdt:P21 wd:Q6581072;
wdt:P27 wd:Q31;
wikibase:sitelinks ?linkcount, ?linkcount.
FILTER(?linkcount >= 1 )
MINUS {
?article schema:about ?item;
schema:inLanguage "fr";
schema:isPartOf <https://fr.wikipedia.org/>.
}
OPTIONAL { ?item wdt:P734 ?lastname. }
OPTIONAL { ?item wdt:P569 ?birthdate. }
OPTIONAL { ?item wdt:P570 ?deathdate. }
OPTIONAL { ?item wdt:P27 ?nationality. }
OPTIONAL { ?item wdt:P106 ?occupation. }
SERVICE wikibase:label { bd:serviceParam wikibase:language "fr,nl,en,de,es,it". }
}
ORDER BY (?itemLabel)
Query found at
- https://www.wikidata.org/wiki/Wikidata:Events/Belgium/Open_Knowledge_Belgium/RTBF_Wikipedia_Marathon
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?article")
v6("?birthdate"):::projected
v7("?deathdate"):::projected
v3("?item"):::projected
v1("?itemLabel"):::projected
v5("?lastname")
v2("?linkcount"):::projected
v8("?nationality")
v9("?occupation")
c7(["wd:Q31"]):::iri
c13([https://fr.wikipedia.org/]):::iri
c5(["wd:Q6581072"]):::iri
c11(["fr"]):::literal
c19(["bd:serviceParam"]):::iri
c21(["fr,nl,en,de,es,it"]):::literal
c3(["wd:Q5"]):::iri
f0[["?linkcount >= '1^^xsd:integer'"]]
f0 --> v2
v3 --"wdt:P31"--> c3
v3 --"wdt:P21"--> c5
v3 --"wdt:P27"--> c7
v3 --"wikibase:sitelinks"--> v2
v3 --"wikibase:sitelinks"--> v2
subgraph minus1["MINUS"]
style minus1 stroke-width:6px,fill:pink,stroke:red;
v4 --"schema:about"--> v3
v4 --"schema:inLanguage"--> c11
v4 --"schema:isPartOf"--> c13
end
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v3 -."wdt:P734".-> v5
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v3 -."wdt:P569".-> v6
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v3 -."wdt:P570".-> v7
end
subgraph optional3["(optional)"]
style optional3 fill:#bbf,stroke-dasharray: 5 5;
v3 -."wdt:P27".-> v8
end
subgraph optional4["(optional)"]
style optional4 fill:#bbf,stroke-dasharray: 5 5;
v3 -."wdt:P106".-> v9
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c19 --"wikibase:language"--> c21
end