query-60685e83d1a4a0cf55831a138bc3f1df

rq turtle/ttl

... but in some cases not: (P217)inventory number A URL which works in /some cases/ can be constructed from the Y http://data.collectienederland.nl/search/?q=E735 Y http://data.collectienederland.nl/search/?q=B1108 00:35, 19 January 2018 (UTC)) talk (Tagishsimon: whose bot, afaik, added the original data. thanks --MultichillI'm guessing we need to remove the URLs, but thought to bring the issue here for discussion before precipitate action. Beyond the search examples, above, I've not found another URL template to use. cc. @18:43, 19 January 2018 (UTC)) talk (Hsarrazin (for E735) --http://data.collectienederland.nl/page/aggregation/rce-kunstcollectie/E735is it possible to build something with this kind of permalink adress ? I tried to understand this site, which is not easy with only Google translate to understant nl ;) :Tagishsimon, Multichill@ 06:09, 19 January 2018 (UTC) Jura--- Why not deprecate? I think this is the second time they changed their website breaking all urls. I wanted to wait and see what happened ┘────────────────────────────────────────────────────────────────────────────────────────────────────┌

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 ?newurl WHERE {
  ?item wdt:P31 wd:Q3305213 .
  ?item wdt:P195 wd:Q18600731 . 
  ?item wdt:P973 ?url .
  ?item p:P217 ?invstatement .
  ?invstatement ps:P217 ?inventory_no .
  ?invstatement pq:P195 wd:Q18600731 .
  BIND(IRI(CONCAT("http://data.collectienederland.nl/page/aggregation/rce-kunstcollectie/", ?inventory_no)) AS ?newurl)  .
  FILTER(CONTAINS(str(?url), "http://data.collectienederland.nl/resource/aggregation/rce-kunstcollectie/") )
  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; v4("?inventory_no"):::projected v3("?invstatement") v2("?item"):::projected v5("?newurl"):::projected v1("?url"):::projected c5(["wd:Q18600731"]):::iri c13(["#91;AUTO_LANGUAGE#93;,nl"]):::literal c3(["wd:Q3305213"]):::iri c11(["bd:serviceParam"]):::iri f0[["contains(str(?url),'http://data.collectienederland.nl/resource/aggregation/rce-kunstcollectie/')"]] f0 --> v1 v2 --"p:direct/P31"--> c3 v2 --"p:direct/P195"--> c5 v2 --"p:direct/P973"--> v1 v2 --"p:P217"--> v3 v3 --"p:statement/P217"--> v4 v3 --"p:qualifier/P195"--> c5 bind1[/"concat('http://data.collectienederland.nl/page/aggregation/rce-kunstcollectie/',?inventory_no)"/] v4 --o bind1 bind1 --as--o v5 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c11 --"wikibase:language"--> c13 end