query-6be3f42b9c5aa0fb84e57506c70febed
Personendaten template equivalent (dewiki) Personendaten template equivalent (dewiki) Personendaten template equivalent (dewiki)
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX schema: <http://schema.org/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT
?item
?NAME
(GROUP_CONCAT( DISTINCT ?ALTERNATIVNAMEN; separator=";") as ?ALTERNATIVNAMEN)
(SAMPLE ( ?KURZBESCHREIBUNG) as ?KURZBESCHREIBUNG)
(GROUP_CONCAT( DISTINCT ?GEBURTSDATUM; separator=";") as ?GEBURTSDATUM)
(GROUP_CONCAT( DISTINCT ?GEBURTSORT; separator=";") as ?GEBURTSORT)
(GROUP_CONCAT( DISTINCT ?STERBEDATUM; separator=";") as ?STERBEDATUM)
(GROUP_CONCAT( DISTINCT ?STERBEORT; separator=";") as ?STERBEORT)
?article
WHERE
{
{ SELECT ?item ?article { ?article schema:about ?item ; schema:isPartOf <https://de.wikipedia.org/> . ?item wdt:P31 wd:Q5 . } LIMIT 200 }
OPTIONAL { ?item skos:altLabel ?ALTERNATIVNAMEN . FILTER(lang(?ALTERNATIVNAMEN)="de") }.
OPTIONAL { ?item schema:description ?KURZBESCHREIBUNG . FILTER(lang(?KURZBESCHREIBUNG)="de") } .
OPTIONAL { ?item wdt:P569 ?GEBURTSDATUM } .
OPTIONAL { ?item wdt:P19 ?pob } .
OPTIONAL { ?item wdt:P570 ?STERBEDATUM } .
OPTIONAL { ?item wdt:P20 ?pod } .
SERVICE wikibase:label { bd:serviceParam wikibase:language "de" .
?item rdfs:label ?NAME .
?pob rdfs:label ?GEBURTSORT .
?pod rdfs:label ?STERBEORT }
}
GROUP BY ?item ?NAME ?article
Query found at
- https://www.wikidata.org/wiki/User:Amitie_10g/Sandbox/Wikidata:SPARQL_query_service/queries/examples/maintenance
- https://www.wikidata.org/wiki/User:Amitie_10g/Sandbox/Wikidata:SPARQL_query_service/queries/examples/maintenance/en
- https://www.wikidata.org/wiki/User:Amitie_10g/Sandbox/Wikidata:SPARQL_query_service/queries/examples/maintenance/es
- https://www.wikidata.org/wiki/User:Amitie_10g/Sandbox/Wikidata:SPARQL_query_service/queries/examples/maintenance/zh
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v12("?ALTERNATIVNAMEN"):::projected
v12("?GEBURTSDATUM"):::projected
v12("?GEBURTSORT"):::projected
v12("?KURZBESCHREIBUNG"):::projected
v9("?NAME"):::projected
v12("?STERBEDATUM"):::projected
v12("?STERBEORT"):::projected
v3("?article"):::projected
v4("?item"):::projected
v6("?pob")
v8("?pod")
c4([https://de.wikipedia.org/]):::iri
c1(["de"]):::literal
c14(["bd:serviceParam"]):::iri
c6(["wd:Q5"]):::iri
v3 --"schema:about"--> v4
v3 --"schema:isPartOf"--> c4
v4 --"wdt:P31"--> c6
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v4 -."skos:altLabel".-> v12
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v4 -."schema:description".-> v12
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v4 -."wdt:P569".-> v12
end
subgraph optional3["(optional)"]
style optional3 fill:#bbf,stroke-dasharray: 5 5;
v4 -."wdt:P19".-> v6
end
subgraph optional4["(optional)"]
style optional4 fill:#bbf,stroke-dasharray: 5 5;
v4 -."wdt:P570".-> v12
end
subgraph optional5["(optional)"]
style optional5 fill:#bbf,stroke-dasharray: 5 5;
v4 -."wdt:P20".-> v8
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c14 --"wikibase:language"--> c1
v4 --"rdfs:label"--> v9
v6 --"rdfs:label"--> v12
v8 --"rdfs:label"--> v12
end
bind6[/"?ALTERNATIVNAMEN"/]
v12 --o bind6
bind6 --as--o v12
bind7[/"sample(?KURZBESCHREIBUNG)"/]
v12 --o bind7
bind7 --as--o v12
bind8[/"?GEBURTSDATUM"/]
v12 --o bind8
bind8 --as--o v12
bind9[/"?GEBURTSORT"/]
v12 --o bind9
bind9 --as--o v12
bind10[/"?STERBEDATUM"/]
v12 --o bind10
bind10 --as--o v12
bind11[/"?STERBEORT"/]
v12 --o bind11
bind11 --as--o v12