query-337c305a56aeebdc173bdacfd69bfada
TODO
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 ?artistID ?artistName (GROUP_CONCAT(DISTINCT ?Lombardia_ID; SEPARATOR = ", ") AS ?lomb) (GROUP_CONCAT(DISTINCT ?occupationLabel; SEPARATOR = ", ") AS ?occupationLabel_) (GROUP_CONCAT(DISTINCT ?movementLabel; SEPARATOR = ", ") AS ?movementLabel_) WHERE {
?artistID wdt:P8210 ?Lombardia_ID.
OPTIONAL { ?artistID wdt:P106 ?occupation. }
OPTIONAL { ?artistID wdt:P135 ?movement. }
SERVICE wikibase:label {
bd:serviceParam wikibase:language "it,[AUTO_LANGUAGE],en".
?artistID rdfs:label ?artistName.
?occupation rdfs:label ?occupationLabel.
?movement rdfs:label ?movementLabel.
}
}
GROUP BY ?artistID ?artistName
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?Lombardia_ID"):::projected
v1("?artistID"):::projected
v5("?artistName"):::projected
v8("?lomb")
v4("?movement")
v7("?movementLabel"):::projected
v10("?movementLabel_")
v3("?occupation")
v6("?occupationLabel"):::projected
v9("?occupationLabel_")
c7(["it,#91;AUTO_LANGUAGE#93;,en"]):::literal
c5(["bd:serviceParam"]):::iri
v1 --"wdt:P8210"--> v2
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P106".-> v3
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P135".-> v4
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c5 --"wikibase:language"--> c7
v1 --"rdfs:label"--> v5
v3 --"rdfs:label"--> v6
v4 --"rdfs:label"--> v7
end
bind3[/"?Lombardia_ID"/]
v2 --o bind3
bind3 --as--o v8
bind4[/"?occupationLabel"/]
v6 --o bind4
bind4 --as--o v9
bind5[/"?movementLabel"/]
v7 --o bind5
bind5 --as--o v10