query-3ac77dd604d07f3de5125f79527d00de
Humans on Odiawiki PREFIX schema: http://schema.org/ SELECT ?human ?humanLabel ?genderLabel ?humanDescription ?pobLabel ?dob WHERE { ?human wdt:P31 wd:Q5 ; wdt:P21 ?gender. ?wikilink schema:about ?human. ?wikilink schema:isPartOf https://or.wikipedia.org/. OPTIONAL { ?human wdt:P569 ?dob } OPTIONAL { ?human wdt:P19 ?pob } SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en" } } GROUP BY ?human ?humanLabel ?gender ?genderLabel ?humanDescription ?pobLabel ?dob ORDER BY ?dob
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#>
#Humans on Odiawiki
PREFIX schema: <http://schema.org/>
SELECT ?human ?humanLabel ?genderLabel ?humanDescription ?pobLabel ?dob
WHERE
{
?human wdt:P31 wd:Q5
; wdt:P21 ?gender.
?wikilink schema:about ?human.
?wikilink schema:isPartOf <https://or.wikipedia.org/>.
OPTIONAL { ?human wdt:P569 ?dob }
OPTIONAL { ?human wdt:P19 ?pob }
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en" }
}
GROUP BY ?human ?humanLabel ?gender ?genderLabel ?humanDescription ?pobLabel ?dob
ORDER BY ?dob
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?dob"):::projected
v3("?gender")
v2("?human"):::projected
v5("?pob")
v4("?wikilink")
c10(["bd:serviceParam"]):::iri
c2(["wd:Q5"]):::iri
c12(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c6([https://or.wikipedia.org/]):::iri
v2 --"wdt:P31"--> c2
v2 --"wdt:P21"--> v3
v4 --"schema:about"--> v2
v4 --"schema:isPartOf"--> c6
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P569".-> v1
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P19".-> v5
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c10 --"wikibase:language"--> c12
end