query-e3afeec945ff2976a971ccd58f544041

rq turtle/ttl

Queries All works with a Raleigh Becket test result

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
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 ?item ?itemLabel ?resultLabel ?external_identifiers
WHERE
{
  #getting all items with a test result
  ?item p:P5021 ?st. ?st ps:P5021 wd:Q105708928; pq:P9259 ?result.

  ?item wikibase:identifiers ?external_identifiers
  SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
}
ORDER BY DESC(?external_identifiers)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?external_identifiers"):::projected v2("?item"):::projected v4("?result") v3("?st") c7(["bd:serviceParam"]):::iri c9(["en"]):::literal c3(["wd:Q105708928"]):::iri v2 --"p:P5021"--> v3 v3 --"p:statement/P5021"--> c3 v3 --"p:qualifier/P9259"--> v4 v2 --"wikibase:identifiers"--> v1 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c7 --"wikibase:language"--> c9 end