query-1ed595db1660cd852725ca16dbdee838
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 skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?aliases where
{
{
select ?item (group_concat(distinct ?alias;separator=", ") as ?aliases)
WHERE
{
values ?occ {wd:Q482980 wd:Q36180}
?item wdt:P106 ?occ.
?item skos:altLabel ?alias. filter(lang(?alias)="en")
} group by ?item } SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?alias")
v4("?aliases"):::projected
v3("?item"):::projected
v2("?occ")
c5(["bd:serviceParam"]):::iri
c7(["#91;AUTO_LANGUAGE#93;,en"]):::literal
f0[["?alias = 'en'"]]
f0 --> v1
bind1[/VALUES ?occ/]
bind1-->v2
bind10(["wd:Q482980"])
bind10 --> bind1
bind11(["wd:Q36180"])
bind11 --> bind1
v3 --"wdt:P106"--> v2
v3 --"skos:altLabel"--> v1
bind3[/"?alias"/]
v1 --o bind3
bind3 --as--o v4
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c5 --"wikibase:language"--> c7
end