query-89bdcfecfbe40ddb56463804e3d7f557
Extended list
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?authorabbrv ?itemLabelDe (SUBSTR(?birthdate1, 1, 10) as ?birthdate) (SUBSTR(?deathdate1, 1, 10) as ?deathdate) WHERE {
?item wdt:P428 ?authorabbrv .
OPTIONAL {?item wdt:P569 ?birthdate1} .
OPTIONAL {?item wdt:P570 ?deathdate1} .
SERVICE wikibase:label {
bd:serviceParam wikibase:language "de" .
?item rdfs:label ?itemLabelDe .
}
}
ORDER BY ASC(?authorabbrv)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?authorabbrv"):::projected
v6("?birthdate")
v3("?birthdate1"):::projected
v7("?deathdate")
v4("?deathdate1"):::projected
v2("?item"):::projected
v5("?itemLabelDe"):::projected
c7(["de"]):::literal
c5(["bd:serviceParam"]):::iri
v2 --"wdt:P428"--> v1
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P569".-> v3
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P570".-> v4
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c5 --"wikibase:language"--> c7
v2 --"rdfs:label"--> v5
end
bind0[/"substring(?birthdate1,'1^^xsd:integer','10^^xsd:integer')"/]
v3 --o bind0
bind0 --as--o v6
bind1[/"substring(?deathdate1,'1^^xsd:integer','10^^xsd:integer')"/]
v4 --o bind1
bind1 --as--o v7