|
| 1 | +# prefixes |
| 2 | +PREFIX wd: <https://catalog.digital-scriptorium.org/entity/> |
| 3 | +PREFIX wds: <https://catalog.digital-scriptorium.org/entity/statement/> |
| 4 | +PREFIX wdv: <https://catalog.digital-scriptorium.org/value/> |
| 5 | +PREFIX wdt: <https://catalog.digital-scriptorium.org/prop/direct/> |
| 6 | +PREFIX p: <https://catalog.digital-scriptorium.org/prop/> |
| 7 | +PREFIX ps: <https://catalog.digital-scriptorium.org/prop/statement/> |
| 8 | +PREFIX pq: <https://catalog.digital-scriptorium.org/prop/qualifier/> |
| 9 | +PREFIX wikibase: <http://wikiba.se/ontology#> |
| 10 | +PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> |
| 11 | + |
| 12 | +SELECT |
| 13 | +(?ds_recordLabel as ?ds_record_name) |
| 14 | +(?ds_record as ?ds_record_url) |
| 15 | +?ds_catalog_url |
| 16 | +(?dsidLabel as ?ds_id) |
| 17 | +(?holdingInstLabel as ?holding_institution) |
| 18 | +?shelfmark |
| 19 | +?link_to_inst_record |
| 20 | +?date_added_to_DS |
| 21 | +?date_updated_in_DS |
| 22 | + |
| 23 | +WHERE { |
| 24 | + ?ds_record wdt:P16 wd:Q3 ; |
| 25 | + wdt:P34 ?date_added_to_DS ; |
| 26 | + wdt:P35 ?date_updated_in_DS ; |
| 27 | + wdt:P3 ?dsid ; |
| 28 | + rdfs:label ?ds_recordLabel . |
| 29 | + ?dsid wdt:P2 ?holding ; |
| 30 | + rdfs:label ?dsidLabel . |
| 31 | + ?holding wdt:P8 ?shelfmark ; |
| 32 | + p:P5 ?holdingStatement . |
| 33 | + ?holdingStatement pq:P4 ?holdingInst . |
| 34 | + ?holdingInst rdfs:label ?holdingInstLabel . |
| 35 | + |
| 36 | + OPTIONAL {?holding wdt:P9 ?link_to_inst_record } |
| 37 | + |
| 38 | + |
| 39 | +BIND(CONCAT("https://search.digital-scriptorium.org/catalog/",?dsidLabel) AS ?ds_catalog_url) |
| 40 | + |
| 41 | +# filter results by a period of time when records were last added |
| 42 | +FILTER ((?date_added_to_DS > "2024-08-15"^^xsd:dateTime) && (?date_added_to_DS < "2024-12-31"^^xsd:dateTime)). |
| 43 | + |
| 44 | +# filter results by a period of time when records were last updated |
| 45 | +FILTER ((?date_updated_in_DS > "2024-08-15"^^xsd:dateTime) && (?date_updated_in_DS < "2024-12-31"^^xsd:dateTime)). |
| 46 | + |
| 47 | + |
| 48 | +SERVICE wikibase:label { |
| 49 | + bd:serviceParam wikibase:language "en" . |
| 50 | + } |
| 51 | + |
| 52 | + |
| 53 | +} ORDER BY DESC(?date_updated_in_DS) |
0 commit comments