query-34e650bac26d595bcb635abfed0f14dd

rq turtle/ttl

List tracks of an album, with links to Yandex, Apple, Spotify, Amazon List tracks of an album, with links to Yandex, Apple, Spotify, Amazon List tracks of an album, with links to Yandex, Apple, Spotify, Amazon List tracks of an album, with links to Yandex, Apple, Spotify, Amazon List tracks of an album, with links to Yandex, Apple, Spotify, Amazon List tracks of an album, with links to Yandex, Apple, Spotify, Amazon List tracks of an album, with links to Yandex, Apple, Spotify, Amazon List tracks of an album, with links to Yandex, Apple, Spotify, Amazon List tracks of an album, with links to Yandex, Apple, Spotify, Amazon List tracks of an album, with links to Yandex, Apple, Spotify, Amazon List tracks of an album, with links to Yandex, Apple, Spotify, Amazon Liste des pistes d'un album avec les liens vers Yandex, Apple, Spotify, Amazon List tracks of an album, with links to Yandex, Apple, Spotify, Amazon List tracks of an album, with links to Yandex, Apple, Spotify, Amazon List tracks of an album, with links to Yandex, Apple, Spotify, Amazon List tracks of an album, with links to Yandex, Apple, Spotify, Amazon List tracks of an album, with links to Yandex, Apple, Spotify, Amazon List tracks of an album, with links to Yandex, Apple, Spotify, Amazon List tracks of an album, with links to Yandex, Apple, Spotify, Amazon List tracks of an album, with links to Yandex, Apple, Spotify, Amazon List tracks of an album, with links to Yandex, Apple, Spotify, Amazon Lijst van nummers van een album, met links naar Yandex, Apple, Spotify en Amazon List tracks of an album, with links to Yandex, Apple, Spotify, Amazon List tracks of an album, with links to Yandex, Apple, Spotify, Amazon List tracks of an album, with links to Yandex, Apple, Spotify, Amazon List tracks of an album, with links to Yandex, Apple, Spotify, Amazon List tracks of an album, with links to Yandex, Apple, Spotify, Amazon Lista spår från ett album, med länkar till Yandex, Apple, Spotify, Amazon List tracks of an album, with links to Yandex, Apple, Spotify, Amazon List tracks of an album, with links to Yandex, Apple, Spotify, Amazon List tracks of an album, with links to Yandex, Apple, Spotify, Amazon List tracks of an album, with links to Yandex, Apple, Spotify, Amazon List tracks of an album, with links to Yandex, Apple, Spotify, Amazon

Use at

PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
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 ?order ?item ?itemLabel ?yandex ?apple
(URI(CONCAT("https://open.spotify.com/track/", ?spotify_id)) AS ?spotify)
(URI(CONCAT("https://www.amazon.com/dp/", ?amazon_id)) AS ?amazon)
{
  wd:Q105834355 p:P658 ?st . ?st ps:P658 ?item .

  OPTIONAL { ?st pq:P1545 ?order } .
  OPTIONAL {?item p:P750 [ps:P750 wd:Q4537983 ; pq:P2699 ?yandex ] .}
  OPTIONAL {?item p:P750 [ps:P750 wd:Q20056642 ; pq:P2699 ?apple ] .}
  OPTIONAL {?item wdt:P5749 ?amazon_id .}
  OPTIONAL {?item wdt:P2207 ?spotify_id .}

  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],ru,en" }
} ORDER BY xsd:integer(?order)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v9("?amazon") v6("?amazon_id"):::projected v5("?apple"):::projected v3("?item"):::projected v1("?order"):::projected v8("?spotify") v7("?spotify_id"):::projected v2("?st") v4("?yandex"):::projected a1((" ")) a2((" ")) c13(["bd:serviceParam"]):::iri c1(["wd:Q105834355"]):::iri c6(["wd:Q4537983"]):::iri c15(["#91;AUTO_LANGUAGE#93;,ru,en"]):::literal c9(["wd:Q20056642"]):::iri c1 --"p:P658"--> v2 v2 --"p:statement/P658"--> v3 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v2 -."p:qualifier/P1545".-> v1 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; a1 -."p:statement/P750".-> c6 a1 --"p:qualifier/P2699"--> v4 v3 --"p:P750"--> a1 end subgraph optional2["(optional)"] style optional2 fill:#bbf,stroke-dasharray: 5 5; a2 -."p:statement/P750".-> c9 a2 --"p:qualifier/P2699"--> v5 v3 --"p:P750"--> a2 end subgraph optional3["(optional)"] style optional3 fill:#bbf,stroke-dasharray: 5 5; v3 -."p:direct/P5749".-> v6 end subgraph optional4["(optional)"] style optional4 fill:#bbf,stroke-dasharray: 5 5; v3 -."p:direct/P2207".-> v7 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c13 --"wikibase:language"--> c15 end bind0[/"concat('https://open.spotify.com/track/',?spotify_id)"/] v7 --o bind0 bind0 --as--o v8 bind1[/"concat('https://www.amazon.com/dp/',?amazon_id)"/] v6 --o bind1 bind1 --as--o v9