query-ca5bcb77a9c54c0416de245ddde137f3

rq turtle/ttl

Display incomplete datesThis request don't display dates properly. If the day and month of a date are not spécified, it display 1 january instead of only the year.

Use at

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 ?item ?nameLabel ?itemLabel ?itemDescription ?birthdate ?birthplaceLabel ?deathdate ?deathplaceLabel
WHERE
{
    ?item wdt:P119 wd:Q1457377 .
    OPTIONAL {?item wdt:P734 ?name }
    OPTIONAL {?item wdt:P569 ?birthdate } 
    OPTIONAL {?item wdt:P19 ?birthplace }
    OPTIONAL {?item wdt:P570 ?deathdate }
    OPTIONAL {?item wdt:P20 ?deathplace }
    SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en" }
}
ORDER BY (?nameLabel)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v4("?birthdate"):::projected v5("?birthplace") v6("?deathdate"):::projected v7("?deathplace") v2("?item"):::projected v3("?name") v1("?nameLabel"):::projected c9(["bd:serviceParam"]):::iri c2(["wd:Q1457377"]):::iri c11(["#91;AUTO_LANGUAGE#93;,en"]):::literal v2 --"wdt:P119"--> c2 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P734".-> v3 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P569".-> v4 end subgraph optional2["(optional)"] style optional2 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P19".-> v5 end subgraph optional3["(optional)"] style optional3 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P570".-> v6 end subgraph optional4["(optional)"] style optional4 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P20".-> v7 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c9 --"wikibase:language"--> c11 end