query-d3da358ebf98d3382c3300b41119f71b
Qualifier reference URL (P854) for inventory number (P217) of artworks of a specific collection
Use at
- https://query.wikidata.org/sparql
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 prov: <http://www.w3.org/ns/prov#>
PREFIX pr: <http://www.wikidata.org/prop/reference/>
PREFIX p: <http://www.wikidata.org/prop/>
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 {
?Royal_Museum_of_Fine_Arts_Antwerp wdt:P195 wd:Q1471477 .
?Royal_Museum_of_Fine_Arts_Antwerp p:P217 ?statement .
?statement ps:P217 ?inventory_number.
?statement prov:wasDerivedFrom ?something.
?something pr:P854 ?reference_url.
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],nl". }
}
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
v3("?inventory_number"):::projected
v5("?reference_url"):::projected
v4("?something")
v2("?statement")
c8(["bd:serviceParam"]):::iri
c10(["#91;AUTO_LANGUAGE#93;,nl"]):::literal
c2(["wd:Q1471477"]):::iri
v1 --"p:direct/P195"--> c2
v1 --"p:P217"--> v2
v2 --"p:statement/P217"--> v3
v2 --"prov:wasDerivedFrom"--> v4
v4 --"p:reference/P854"--> v5
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end