query-a1bbfa6b079f18715d5f99bf60f03b4c
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?item ?itemLabel ?amurl WHERE {
?item p:P9185 [ps:P9185 ?amID; pq:P1810 ?amQ ].
wd:P9185 rdfs:label ?propItemLabelam.
FILTER((LANG(?propItemLabelam)) = "en")
BIND(CONCAT("[https://www.allmusic.com/style/", ?amID," ",?amQ, "]") AS ?amurl)
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;
v2("?amID")
v3("?amQ")
v5("?amurl"):::projected
v4("?item"):::projected
v1("?propItemLabelam")
a1((" "))
c8(["bd:serviceParam"]):::iri
c5(["wd:P9185"]):::iri
c10(["#91;AUTO_LANGUAGE#93;,en"]):::literal
f0[["?propItemLabelam = 'en'"]]
f0 --> v1
a1 --"p:statement/P9185"--> v2
a1 --"p:qualifier/P1810"--> v3
v4 --"p:P9185"--> a1
c5 --"rdfs:label"--> v1
bind1[/"concat('#91;https://www.allmusic.com/style/',?amID,' ',?amQ,'#93;')"/]
v2 --o bind1
v3 --o bind1
bind1 --as--o v5
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end