query-673c5095ecfd2b395e971b152d853711
Person suchen, fuzzy search with cirrussearch TODO
Use at
- https://query.wikidata.org/sparql
PREFIX mwapi: <http://wikiba.se/ontology#>
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 ?itemLabel ?itemDescription ?place_of_birthLabel ?date_of_birth ?date_of_death
WHERE
{
SERVICE wikibase:mwapi
{
bd:serviceParam wikibase:endpoint "www.wikidata.org" .
bd:serviceParam wikibase:api "Generator" .
bd:serviceParam mwapi:generator "search" .
bd:serviceParam mwapi:gsrsearch "inlabel:'Arthur Goldschmidt'" .
bd:serviceParam mwapi:gsrlimit "max" .
?item wikibase:apiOutputItem mwapi:title.
}
?item wdt:P31 wd:Q5 . # Only humans
OPTIONAL { ?item wdt:P19 ?place_of_birth }
OPTIONAL { ?item wdt:P569 ?date_of_birth }.
OPTIONAL { ?item wdt:P570 ?date_of_death }.
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],de,en". }
}
Query found at
- https://www.wikidata.org/wiki/User:Stefan_K%C3%BChn/Persondata
- https://www.wikidata.org/wiki/Wikidata:Request_a_query/Archive/2022/09
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?date_of_birth"):::projected
v4("?date_of_death"):::projected
v1("?item"):::projected
v2("?place_of_birth")
c4(["www.wikidata.org"]):::literal
c12(["max"]):::literal
c8(["search"]):::literal
c2(["bd:serviceParam"]):::iri
c10(["inlabel:'Arthur Goldschmidt'"]):::literal
c16(["wd:Q5"]):::iri
c22(["#91;AUTO_LANGUAGE#93;,de,en"]):::literal
c14(["mwapi:title"]):::iri
c6(["Generator"]):::literal
subgraph s1["http://wikiba.se/ontology#mwapi"]
style s1 stroke-width:4px;
c2 --"mwapi:endpoint"--> c4
c2 --"mwapi:api"--> c6
c2 --"mwapi:generator"--> c8
c2 --"mwapi:gsrsearch"--> c10
c2 --"mwapi:gsrlimit"--> c12
v1 --"mwapi:apiOutputItem"--> c14
end
v1 --"wdt:P31"--> c16
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P19".-> v2
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P569".-> v3
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P570".-> v4
end
subgraph s2["http://wikiba.se/ontology#label"]
style s2 stroke-width:4px;
c2 --"mwapi:language"--> c22
end