query-e887e38255eb413fd77ac550bc94e27b

rq turtle/ttl

TODO

Use at

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 p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?item ?itemLabel ?ASIN ?statement WHERE {

   ?item wdt:P31 wd:Q7889;
   p:P5749 ?statement.
   ?statement ps:P5749 ?ASIN.
   FILTER(REGEX(?ASIN, "^(B0(?:8|9|B|C)[\\dA-Z]{7})$"))
   SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
}
ORDER BY (UCASE(STR(?itemLabel)))

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?ASIN"):::projected v3("?item"):::projected v1("?itemLabel"):::projected v4("?statement"):::projected c7(["bd:serviceParam"]):::iri c3(["wd:Q7889"]):::iri c9(["en"]):::literal f0[["regex(?ASIN,'^(B0(?:8|9|B|C)#91;\dA-Z#93;{7})$')"]] f0 --> v2 v3 --"p:direct/P31"--> c3 v3 --"p:P5749"--> v4 v4 --"p:statement/P5749"--> v2 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c7 --"wikibase:language"--> c9 end