query-afceb9eeebadc8c1de060360ac5f3ff4
Propertiesinstance of (P31)sex or gender (P21)country of citizenship (P27)occupation (P106)field of work (P101)date of birth (P569)date of death (P570)family name (P734)given name (P735)
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 ?firstnameLabel ?lastnameLabel ?itemDescription ?nationalityLabel ?occupationLabel ?birthdate ?deathdate ?domainLabel ?linkcount WHERE {
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],nl,fr,de,en,es,it". }
?item wdt:P31 wd:Q5, ?instance;
wdt:P21 wd:Q6581072, ?gender;
wdt:P27 wd:Q31, ?nationality;
wikibase:sitelinks ?linkcount;
wdt:P106 ?occupation.
MINUS {
?article schema:about ?item;
schema:inLanguage "nl";
schema:isPartOf <https://nl.wikipedia.org/>.
}
OPTIONAL { ?item wdt:P101 ?domain. }
OPTIONAL { ?item wdt:P569 ?birthdate. }
OPTIONAL { ?item wdt:P570 ?deathdate. }
OPTIONAL { ?item wdt:P734 ?lastname. }
OPTIONAL { ?item wdt:P735 ?firstname. }
}
ORDER BY (?itemLabel)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v8("?article")
v10("?birthdate"):::projected
v11("?deathdate"):::projected
v9("?domain")
v13("?firstname")
v4("?gender")
v3("?instance")
v2("?item"):::projected
v1("?itemLabel"):::projected
v12("?lastname")
v6("?linkcount"):::projected
v5("?nationality")
v7("?occupation")
c10(["wd:Q31"]):::iri
c8(["wd:Q6581072"]):::iri
c2(["bd:serviceParam"]):::iri
c6(["wd:Q5"]):::iri
c17([https://nl.wikipedia.org/]):::iri
c4(["#91;AUTO_LANGUAGE#93;,nl,fr,de,en,es,it"]):::literal
c15(["nl"]):::literal
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c2 --"wikibase:language"--> c4
end
v2 --"wdt:P31"--> c6
v2 --"wdt:P31"--> v3
v2 --"wdt:P21"--> c8
v2 --"wdt:P21"--> v4
v2 --"wdt:P27"--> c10
v2 --"wdt:P27"--> v5
v2 --"wikibase:sitelinks"--> v6
v2 --"wdt:P106"--> v7
subgraph minus0["MINUS"]
style minus0 stroke-width:6px,fill:pink,stroke:red;
v8 --"schema:about"--> v2
v8 --"schema:inLanguage"--> c15
v8 --"schema:isPartOf"--> c17
end
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P101".-> v9
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P569".-> v10
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P570".-> v11
end
subgraph optional3["(optional)"]
style optional3 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P734".-> v12
end
subgraph optional4["(optional)"]
style optional4 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P735".-> v13
end