query-5d2f00c18ef8314204d8ccf118b61e76

rq turtle/ttl

Qualifier reference URL (P854) for inventory number (P217) of artworks. I have tried this, but I think I am not getting the qualifiers fully: (P217)inventory number qualifier for that (P854)reference URL and the (P217)inventory number Dear all, I can not figure out how to write what should be a simple query: one that would give me all of the artworks from a specific collection with their

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?Royal_Museum_of_Fine_Arts_Antwerp ?Royal_Museum_of_Fine_Arts_AntwerpLabel ?inventory_number ?reference_url WHERE {
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
  ?Royal_Museum_of_Fine_Arts_Antwerp wdt:P195 wd:Q1471477.
  ?Royal_Museum_of_Fine_Arts_Antwerp wdt:P217 ?inventory_number.
  ?inventory_number pq:P854 ?reference_url
}
LIMIT 100

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?Royal_Museum_of_Fine_Arts_Antwerp"):::projected v2("?inventory_number"):::projected v3("?reference_url"):::projected c2(["bd:serviceParam"]):::iri c4(["#91;AUTO_LANGUAGE#93;,en"]):::literal c6(["wd:Q1471477"]):::iri subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c2 --"wikibase:language"--> c4 end v1 --"wdt:P195"--> c6 v1 --"wdt:P217"--> v2 v2 --"pq:P854"--> v3