query-5e163130d68f80ba01867a12363bf84b
TODO
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 rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?birthdate (GROUP_CONCAT(DISTINCT ?occupationLabel; SEPARATOR = ", ") AS ?occupation_) WHERE {
?item wdt:P31 wd:Q5;
wdt:P106 ?occupation;
wdt:P6379 wd:Q1085811.
OPTIONAL {?item wdt:P569 ?birthdate .}
SERVICE wikibase:label {
bd:serviceParam wikibase:language "it,[AUTO_LANGUAGE],en".
?item rdfs:label ?itemLabel.
?occupation rdfs:label ?occupationLabel.
}
}
GROUP BY ?item ?itemLabel ?birthdate
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?birthdate"):::projected
v1("?item"):::projected
v4("?itemLabel"):::projected
v2("?occupation")
v5("?occupationLabel"):::projected
v6("?occupation_")
c10(["it,#91;AUTO_LANGUAGE#93;,en"]):::literal
c8(["bd:serviceParam"]):::iri
c2(["wd:Q5"]):::iri
c5(["wd:Q1085811"]):::iri
v1 --"wdt:P31"--> c2
v1 --"wdt:P106"--> v2
v1 --"wdt:P6379"--> c5
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P569".-> v3
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
v1 --"rdfs:label"--> v4
v2 --"rdfs:label"--> v5
end
bind1[/"?occupationLabel"/]
v5 --o bind1
bind1 --as--o v6