query-a82f60197c0a067042e7f75228bacce4

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 pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?inventory_no ?url ?url2 WHERE {
  ?item wdt:P31 wd:Q3305213 .
  ?item wdt:P973 ?url .
  ?item p:P217 ?inventory_no_stm .
  ?inventory_no_stm ps:P217 ?inventory_no .
  ?inventory_no_stm pq:P195 wd:Q18600731 . # filter out inventory numbers for "Cultural Heritage Agency of the Netherlands Art Collection" only 
  FILTER(CONTAINS(str(?url), "http://data.collectienederland.nl/resource/aggregation/rce-kunstcollectie/") )
  BIND(IRI(concat("http://data.collectienederland.nl/page/aggregation/rce-kunstcollectie/",?inventory_no)) as ?url2)
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],nl". }
}
ORDER BY ?inventory_no

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?inventory_no"):::projected v4("?inventory_no_stm") v3("?item"):::projected v2("?url"):::projected v5("?url2"):::projected c3(["wd:Q3305213"]):::iri c10(["bd:serviceParam"]):::iri c8(["wd:Q18600731"]):::iri c12(["#91;AUTO_LANGUAGE#93;,nl"]):::literal f0[["contains(str(?url),'http://data.collectienederland.nl/resource/aggregation/rce-kunstcollectie/')"]] f0 --> v2 v3 --"p:direct/P31"--> c3 v3 --"p:direct/P973"--> v2 v3 --"p:P217"--> v4 v4 --"p:statement/P217"--> v1 v4 --"p:qualifier/P195"--> c8 bind1[/"concat('http://data.collectienederland.nl/page/aggregation/rce-kunstcollectie/',?inventory_no)"/] v1 --o bind1 bind1 --as--o v5 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c10 --"wikibase:language"--> c12 end