query-7fa1dc5e1b420077504bf492bbc677f3

rq turtle/ttl

Alle Personen mit gleichem Geburtstag (Jahr, Monat, Tag)

Use at

PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
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#>
#defaultView:ImageGrid
SELECT ?item ?itemLabel ?itemDescription ?image #?date ?dod
WHERE
{
    ?item wdt:P31 wd:Q5 .         # Mensch
    ?item wdt:P569 ?date .        # Geburtstag
    OPTIONAL {?item wdt:P570 ?dod } # Todestag
    FILTER (?date = "1960-04-14T00:00:00Z"^^xsd:dateTime)  # 
    #FILTER (!bound(?dod))
    OPTIONAL { ?item wdt:P18 ?image. }
    SERVICE wikibase:label { bd:serviceParam wikibase:language "de,en,[AUTO_LANGUAGE]". }
}
order by ?date
LIMIT 100

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?date") v3("?dod") v4("?image"):::projected v2("?item"):::projected c8(["bd:serviceParam"]):::iri c3(["wd:Q5"]):::iri c10(["de,en,#91;AUTO_LANGUAGE#93;"]):::literal f0[["?date = '1960-04-14T00:00:00Z^^xsd:dateTime'"]] f0 --> v1 v2 --"wdt:P31"--> c3 v2 --"wdt:P569"--> v1 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P570".-> v3 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P18".-> v4 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c8 --"wikibase:language"--> c10 end