query-3b09169122c685de7cc5ed6f7110d261
Synia: Artwork
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 bd: <http://www.bigdata.com/rdf#>
PREFIX target: <http://www.wikidata.org/entity/Q21044790>
SELECT DISTINCT
?description ?descriptionLabel
?value ?valueLabel ?valueUrl
WHERE {
{
BIND(1 AS ?order)
BIND(wd:Q216353 AS ?description)
target: wdt:P1476 ?value .
}
UNION
{
BIND(2 AS ?order)
BIND(wd:Q2500638 AS ?description)
target: wdt:P170 ?value .
BIND(CONCAT("#visualartist/", SUBSTR(STR(?value), 32)) AS ?valueUrl)
}
UNION
{
BIND(100 AS ?order)
BIND(wd:Q2013 AS ?value)
BIND(CONCAT("https://www.wikidata.org/wiki/", SUBSTR(STR(target:), 32)) AS ?valueUrl)
}
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
ORDER BY ?order
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?description"):::projected
v5("?order")
v5("?value"):::projected
v5("?valueUrl"):::projected
c5(["bd:serviceParam"]):::iri
c7(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c1(["wd:Q21044790"]):::iri
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
subgraph union1[" Union "]
subgraph union1l[" "]
style union1l fill:#abf,stroke-dasharray: 3 3;
bind0[/"'100^^xsd:integer'"/]
bind0 --as--o v5
bind1[/"'wd:Q2013'"/]
bind1 --as--o v5
bind2[/"concat('https://www.wikidata.org/wiki/',substring(str('wd:Q21044790'),'32^^xsd:integer'))"/]
bind2 --as--o v5
end
subgraph union1r[" "]
style union1r fill:#abf,stroke-dasharray: 3 3;
bind3[/"'2^^xsd:integer'"/]
bind3 --as--o v5
bind4[/"'wd:Q2500638'"/]
bind4 --as--o v4
c1 --"wdt:P170"--> v5
bind5[/"concat('#visualartist/',substring(str(?value),'32^^xsd:integer'))"/]
v5 --o bind5
bind5 --as--o v5
end
union1r <== or ==> union1l
end
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
bind6[/"'1^^xsd:integer'"/]
bind6 --as--o v5
bind7[/"'wd:Q216353'"/]
bind7 --as--o v4
c1 --"wdt:P1476"--> v5
end
union0r <== or ==> union0l
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c5 --"wikibase:language"--> c7
end