query-fab5770e563c15579a9c049f0f06e0ef

rq turtle/ttl

Alle Personen mit gleichem Geburtstag (Monat, Tag)

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#>
#defaultView:Table,ImageGrid
SELECT ?item ?itemLabel ?itemDescription ?image ?date ?tod
WHERE
{
    ?item wdt:P31 wd:Q5 .         # Mensch
    ?item wdt:P569 ?date .        # Geburtstag
        ?item wdt:P19 wd:Q64.         # Geburtsort ist Berlin  (Limitierung auf Stadt notwendig sonst zu viele)
    OPTIONAL {?item wdt:P570 ?tod } # Todestag
    FILTER (month(?date) =  4 && day(?date) = 2)  # 
    OPTIONAL { ?item wdt:P18 ?image. }
    SERVICE wikibase:label { bd:serviceParam wikibase:language "de,en,[AUTO_LANGUAGE]". }
}
order by ?date

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?date"):::projected v4("?image"):::projected v2("?item"):::projected v3("?tod"):::projected c7(["wd:Q64"]):::iri c11(["bd:serviceParam"]):::iri c4(["wd:Q5"]):::iri c13(["de,en,#91;AUTO_LANGUAGE#93;"]):::literal f0[["month-from-dateTime(?date) = '4^^xsd:integer'day-from-dateTime(?date) = '2^^xsd:integer'"]] f0 --> v1 v2 --"wdt:P31"--> c4 v2 --"wdt:P569"--> v1 v2 --"wdt:P19"--> c7 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; c11 --"wikibase:language"--> c13 end