diff --git a/.github/release-please-manifest.json b/.github/release-please-manifest.json index f5d91cebec..dd22892795 100644 --- a/.github/release-please-manifest.json +++ b/.github/release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "9.1.0" + ".": "9.2.0" } diff --git a/CHANGELOG.md b/CHANGELOG.md index bf5c0b7a1d..e6b1b0999c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,103 @@ # Changelog +## [9.2.0](https://github.com/dasch-swiss/dsp-tools/compare/v9.1.0...v9.2.0) (2024-11-15) + + +### Enhancements + +* rename CLI command `xml-validate` to `validate-data` (DEV-4219) ([#1203](https://github.com/dasch-swiss/dsp-tools/issues/1203)) ([8c10f83](https://github.com/dasch-swiss/dsp-tools/commit/8c10f83f55fc306465b1c5a272c08d648cfcb2f8)) +* **start-stack:** make api version necessary for validation accessible through a flag (DEV-4200) ([#1194](https://github.com/dasch-swiss/dsp-tools/issues/1194)) ([081a6f2](https://github.com/dasch-swiss/dsp-tools/commit/081a6f2af2c2569355ba2d17f36c3ccc24606438)) +* **validate-data:** add unique value constraint (DEV-4202) ([#1236](https://github.com/dasch-swiss/dsp-tools/issues/1236)) ([595bb11](https://github.com/dasch-swiss/dsp-tools/commit/595bb116ac4493dc7963124a440f41cd41e82dbc)) +* **validate-data:** check file value cardinality (DEV-4338) ([#1264](https://github.com/dasch-swiss/dsp-tools/issues/1264)) ([cefc466](https://github.com/dasch-swiss/dsp-tools/commit/cefc466b4301f8d85e89fc5cffd3e9bec6140329)) +* **validate-data:** ensure only known resources are used (DEV-4268) ([#1263](https://github.com/dasch-swiss/dsp-tools/issues/1263)) ([dbbaefe](https://github.com/dasch-swiss/dsp-tools/commit/dbbaefe6c77d988e3367ca0ee3f697a84b796f6e)) +* **validate-data:** make content validation conform with `dash` syntax (DEV-4233) ([#1211](https://github.com/dasch-swiss/dsp-tools/issues/1211)) ([2af7a69](https://github.com/dasch-swiss/dsp-tools/commit/2af7a69d60b9b1a63b246e1aa1d3985867e58e6d)) +* **validate-data:** validate cardinality with `dash:closedByTypes` (DEV-4231) ([#1209](https://github.com/dasch-swiss/dsp-tools/issues/1209)) ([e883cbb](https://github.com/dasch-swiss/dsp-tools/commit/e883cbbf59fc5f3c27e9de3338ef67827d03e37f)) +* **validate-data:** validate generic content of values (DEV-4225) ([#1208](https://github.com/dasch-swiss/dsp-tools/issues/1208)) ([86042ff](https://github.com/dasch-swiss/dsp-tools/commit/86042ffa6564e73e3b1ca4e39a17176f45c88a1b)) +* **validate-data:** validate link value class type (DEV-4237) ([#1215](https://github.com/dasch-swiss/dsp-tools/issues/1215)) ([9e306c2](https://github.com/dasch-swiss/dsp-tools/commit/9e306c2954b25535b5417e12b4491e2d2d50b21f)) +* **validate-data:** validate list nodes (DEV-4131) ([#1240](https://github.com/dasch-swiss/dsp-tools/issues/1240)) ([332387a](https://github.com/dasch-swiss/dsp-tools/commit/332387a1ab48cea0355340e671ce3e7b6602a986)) +* **validate-data:** validate text value type (DEV-4209) ([#1205](https://github.com/dasch-swiss/dsp-tools/issues/1205)) ([cafca60](https://github.com/dasch-swiss/dsp-tools/commit/cafca60d1c77e56487370167539af36018be633e)) +* **xmllib:** add `create_label_to_name_list_node_mapping()` to lib (DEV-4293) ([#1245](https://github.com/dasch-swiss/dsp-tools/issues/1245)) ([c0cdbeb](https://github.com/dasch-swiss/dsp-tools/commit/c0cdbebf63171397f585d66c013fb58ea1990a69)) +* **xmllib:** add english and german to boolean value converter (DEV-4311) ([#1260](https://github.com/dasch-swiss/dsp-tools/issues/1260)) ([9b70810](https://github.com/dasch-swiss/dsp-tools/commit/9b70810c5c9fc9d83f13e38917ec1dcb0742fa82)) +* **xmllib:** add factory method to resources (DEV-4189) ([#1185](https://github.com/dasch-swiss/dsp-tools/issues/1185)) ([99c76ea](https://github.com/dasch-swiss/dsp-tools/commit/99c76ea07de47327b58866e7188cac100194bfbc)) +* **xmllib:** add helpers from `excel2xml` to `xmllib` (DEV-4316) ([#1261](https://github.com/dasch-swiss/dsp-tools/issues/1261)) ([fb88558](https://github.com/dasch-swiss/dsp-tools/commit/fb88558457515e50a79d774e2abab91187e05de9)) +* **xmllib:** add migration metadata to resources (DEV-4194) ([#1190](https://github.com/dasch-swiss/dsp-tools/issues/1190)) ([1784065](https://github.com/dasch-swiss/dsp-tools/commit/1784065118328a13a45931a390975160d06bc606)) +* **xmllib:** add optional value to dsp base resource (DEV-4289) ([#1244](https://github.com/dasch-swiss/dsp-tools/issues/1244)) ([ef309ba](https://github.com/dasch-swiss/dsp-tools/commit/ef309ba0b4f6fd64e919db94f770da8bec2565d2)) +* **xmllib:** change order of parameters in add values (DEV-4255) ([#1232](https://github.com/dasch-swiss/dsp-tools/issues/1232)) ([44b3d44](https://github.com/dasch-swiss/dsp-tools/commit/44b3d44ecc10b5d2f465d641143ba48e6d6a9205)) +* **xmllib:** create permissions (DEV-4192) ([#1191](https://github.com/dasch-swiss/dsp-tools/issues/1191)) ([cfe95aa](https://github.com/dasch-swiss/dsp-tools/commit/cfe95aabc9cc8f90fb060677128f39caba509793)) +* **xmllib:** rename add multiple function (DEV-4249) ([#1223](https://github.com/dasch-swiss/dsp-tools/issues/1223)) ([df5f87f](https://github.com/dasch-swiss/dsp-tools/commit/df5f87f0aa38e254c0223d064dbbb78be6aa6ae2)) +* **xmllib:** rename default permissions enum (DEV-4248) ([#1222](https://github.com/dasch-swiss/dsp-tools/issues/1222)) ([8b5f858](https://github.com/dasch-swiss/dsp-tools/commit/8b5f858752fdec9e615c60fef1263be5b7835d60)) +* **xmllib:** replace newline with XML tag (DEV-4195) ([#1189](https://github.com/dasch-swiss/dsp-tools/issues/1189)) ([3419b34](https://github.com/dasch-swiss/dsp-tools/commit/3419b34c7c8fdc00f9ef5176c40a7be7dbdf7b31)) +* **xmlvalidate:** add CLI command (DEV-4119) ([#1193](https://github.com/dasch-swiss/dsp-tools/issues/1193)) ([1db3135](https://github.com/dasch-swiss/dsp-tools/commit/1db31352cc2c41f5f7df5ae8324687107735c1e3)) +* **xmlvalidate:** add save graph flag to CLI (DEV-4206) ([#1199](https://github.com/dasch-swiss/dsp-tools/issues/1199)) ([aa55a2f](https://github.com/dasch-swiss/dsp-tools/commit/aa55a2fb9682344968ca069028ebede647646c4a)) +* **xmlvalidate:** reformat validation results graph (DEV-4133) ([#1187](https://github.com/dasch-swiss/dsp-tools/issues/1187)) ([e655d98](https://github.com/dasch-swiss/dsp-tools/commit/e655d985a7358d7804ed51bb409b482f0c028811)) +* **xmlvalidate:** save large number of errors as csv (DEV-4208) ([#1200](https://github.com/dasch-swiss/dsp-tools/issues/1200)) ([841975a](https://github.com/dasch-swiss/dsp-tools/commit/841975ab60f36a1e8e9932e85279d45a0ecb4a42)) +* **xmlvalidate:** send validation request to API (DEV-4177) ([#1186](https://github.com/dasch-swiss/dsp-tools/issues/1186)) ([57099e4](https://github.com/dasch-swiss/dsp-tools/commit/57099e4c00fe1e2d2675169dcb09cdf9d342198a)) +* **xmlvalidate:** value type checks (DEV-4122) ([#1197](https://github.com/dasch-swiss/dsp-tools/issues/1197)) ([bf509cd](https://github.com/dasch-swiss/dsp-tools/commit/bf509cd96b496c5ea6379e9e57f9157521c87f34)) + + +### Bug Fixes + +* add missing dependency in xmllib (DEV-4254) ([#1228](https://github.com/dasch-swiss/dsp-tools/issues/1228)) ([26bd3dc](https://github.com/dasch-swiss/dsp-tools/commit/26bd3dc23f9072ed06e1d005d2fb75d4cb876399)) +* **ci:** pin the python version used in the CI ([#1230](https://github.com/dasch-swiss/dsp-tools/issues/1230)) ([ec75682](https://github.com/dasch-swiss/dsp-tools/commit/ec756829fd0b2adc10fcfb1564e3b31f33117bd8)) +* **create:** always respect admin status of user in JSON file (DEV-4239) ([#1217](https://github.com/dasch-swiss/dsp-tools/issues/1217)) ([0e3c654](https://github.com/dasch-swiss/dsp-tools/commit/0e3c65439ada1cff6f4589263f959a9ca53428b0)) +* **ingest-xmlupload:** correctly encode special chars / support absolute paths (DEV-4156, DEV-4166) ([#1247](https://github.com/dasch-swiss/dsp-tools/issues/1247)) ([435e283](https://github.com/dasch-swiss/dsp-tools/commit/435e2839022e64cd8a38dc41962e59c85a4e333c)) +* **ingest-xmlupload:** strip leading `/` of absolute paths before sending to ingest (DEV-4300) ([#1252](https://github.com/dasch-swiss/dsp-tools/issues/1252)) ([695b189](https://github.com/dasch-swiss/dsp-tools/commit/695b189aad9bbaff74f59502627705c730d37af8)) +* **validate-data:** don't crash if list nodes have special characters (DEV-4299) ([#1251](https://github.com/dasch-swiss/dsp-tools/issues/1251)) ([e7871fc](https://github.com/dasch-swiss/dsp-tools/commit/e7871fc9043d4c1c25f33845c98eb9ee9adf7fe3)) +* **validate-data:** enable usage of other ontologies besides the default ontology (DEV-4263) ([#1235](https://github.com/dasch-swiss/dsp-tools/issues/1235)) ([a2f7959](https://github.com/dasch-swiss/dsp-tools/commit/a2f7959285049ea45dda365db029cfe86f6de7f9)) +* **validate-data:** extract richtext as string if it starts with a tag (DEV-4280) ([#1250](https://github.com/dasch-swiss/dsp-tools/issues/1250)) ([71eaa23](https://github.com/dasch-swiss/dsp-tools/commit/71eaa23f2bfd1581cf0eb3f8a4ea9d9f651f08e0)) +* **validate-data:** fix inheritance cardinality violations in properties (DEV-4278) ([#1241](https://github.com/dasch-swiss/dsp-tools/issues/1241)) ([e745e2a](https://github.com/dasch-swiss/dsp-tools/commit/e745e2aac06ab50296c0be5f6a9cd47a80ba62e0)) +* **validate-data:** prevent SimpleText Class shape to be used at the wrong place (DEV-4224) ([#1206](https://github.com/dasch-swiss/dsp-tools/issues/1206)) ([e0e686f](https://github.com/dasch-swiss/dsp-tools/commit/e0e686fe15bc22a305f9dc4a571d2dbf4dfd57f0)) +* **validate-data:** revert to exclusion of properties through gui-order (DEV-4279) ([#1242](https://github.com/dasch-swiss/dsp-tools/issues/1242)) ([e78f4f8](https://github.com/dasch-swiss/dsp-tools/commit/e78f4f8a5287b08815ea07b0e7a3ab98c2034113)) +* **xmllib:** make permission serialisation into correct string (DEV-4256) ([#1225](https://github.com/dasch-swiss/dsp-tools/issues/1225)) ([1be649a](https://github.com/dasch-swiss/dsp-tools/commit/1be649af6db6f8fc6c113d9c1a15f52f059933a2)) +* **xmllib:** resolve typing issues (RDU-57) ([#1270](https://github.com/dasch-swiss/dsp-tools/issues/1270)) ([172054c](https://github.com/dasch-swiss/dsp-tools/commit/172054c3e44c77cc48d918e6763031c8a3e32881)) +* **xmllib:** turn `Resource.new()` into `staticmethod` (DEV-4250) ([#1220](https://github.com/dasch-swiss/dsp-tools/issues/1220)) ([00a66d9](https://github.com/dasch-swiss/dsp-tools/commit/00a66d923e87a57f43d047ef7669e27d92f317b3)) +* **xmlupload:** downgrade fuseki to prevent backend from crashing ([#1201](https://github.com/dasch-swiss/dsp-tools/issues/1201)) ([12ebe12](https://github.com/dasch-swiss/dsp-tools/commit/12ebe12ce8a0917c551f106092479ba1568ede6f)) +* **xmlvalidate:** duplicate cardinalities of LinkValues (DEV-4203) ([#1198](https://github.com/dasch-swiss/dsp-tools/issues/1198)) ([a8a67ab](https://github.com/dasch-swiss/dsp-tools/commit/a8a67abf2731870d20e3c08b2e2a75b9533eb7ec)) + + +### Maintenance + +* bump dependencies ([#1231](https://github.com/dasch-swiss/dsp-tools/issues/1231)) ([bb10677](https://github.com/dasch-swiss/dsp-tools/commit/bb106773b972eebf22a68595a99211f8cd8c3099)) +* change default permissions to new standard (RDU-48) ([#1180](https://github.com/dasch-swiss/dsp-tools/issues/1180)) ([8dedbe2](https://github.com/dasch-swiss/dsp-tools/commit/8dedbe251a07ae088abe1d931db55f3aac4b741a)) +* **ci:** delegate python installation to uv ([#1218](https://github.com/dasch-swiss/dsp-tools/issues/1218)) ([0d7f91c](https://github.com/dasch-swiss/dsp-tools/commit/0d7f91c0635f4db183e98eb8db7cd95de31fbd6a)) +* **ci:** use uv publish instead of twine ([#1219](https://github.com/dasch-swiss/dsp-tools/issues/1219)) ([39f91d8](https://github.com/dasch-swiss/dsp-tools/commit/39f91d82162ab8f662708228bfd84cd70d0781f1)) +* fix `just clean` recipe ([#1269](https://github.com/dasch-swiss/dsp-tools/issues/1269)) ([5ce8b6f](https://github.com/dasch-swiss/dsp-tools/commit/5ce8b6f57488ebaadf2908a3376d67104120e46d)) +* make info string of schema validation more precise ([#1202](https://github.com/dasch-swiss/dsp-tools/issues/1202)) ([59bd01a](https://github.com/dasch-swiss/dsp-tools/commit/59bd01ada348f1a82387654ab8b5f14db7f8e758)) +* Move authentication out of general purpose connection (DEV-3762) ([#1238](https://github.com/dasch-swiss/dsp-tools/issues/1238)) ([4456c56](https://github.com/dasch-swiss/dsp-tools/commit/4456c56462b5e8812a553c58c121fe341241540f)) +* remove obsolete python version definitions ([#1221](https://github.com/dasch-swiss/dsp-tools/issues/1221)) ([a34b45d](https://github.com/dasch-swiss/dsp-tools/commit/a34b45d721b2335be8b7aea19f68d2ff7e5cc81c)) +* remove some pre-commit-hooks (DEV-4295) ([#1243](https://github.com/dasch-swiss/dsp-tools/issues/1243)) ([f1e7894](https://github.com/dasch-swiss/dsp-tools/commit/f1e78944bec4d690dae307db70c8c487394ecbd2)) +* rename folder with test data ([#1204](https://github.com/dasch-swiss/dsp-tools/issues/1204)) ([e147d55](https://github.com/dasch-swiss/dsp-tools/commit/e147d55a0ea7950164d85e0e36a4fc03782ddb54)) +* tidy up generated data after ingest e2e tests ([#1275](https://github.com/dasch-swiss/dsp-tools/issues/1275)) ([8599250](https://github.com/dasch-swiss/dsp-tools/commit/85992502270d8089d099d3c17bfefaaa57c47cb1)) +* **validate-data:** change base info extraction from validation report (DEV-4258) ([#1227](https://github.com/dasch-swiss/dsp-tools/issues/1227)) ([c1f78a2](https://github.com/dasch-swiss/dsp-tools/commit/c1f78a28137b1b8a951f1c0e49fb055ddb6a9f06)) +* **validate-data:** change identification of property from guiOrder to isEditable (DEV-4241) ([#1234](https://github.com/dasch-swiss/dsp-tools/issues/1234)) ([ec57ba1](https://github.com/dasch-swiss/dsp-tools/commit/ec57ba120c2b3cd991e985cf077aef167df453da)) +* **validate-data:** extract requests to api from clients (DEV-4294) ([#1246](https://github.com/dasch-swiss/dsp-tools/issues/1246)) ([84df21c](https://github.com/dasch-swiss/dsp-tools/commit/84df21c5a948f505a54de9ed5f33474e31d8e1df)) +* **validate-data:** include onotlogy name in LinkValue violation message (DEV-4275) ([#1262](https://github.com/dasch-swiss/dsp-tools/issues/1262)) ([d42b363](https://github.com/dasch-swiss/dsp-tools/commit/d42b3635254a8b7677063fba5a78e39754250bc0)) +* **validate-data:** make abstract methods explicit ([#1276](https://github.com/dasch-swiss/dsp-tools/issues/1276)) ([cd2f940](https://github.com/dasch-swiss/dsp-tools/commit/cd2f940e27e68e15a82b12dc359fef3a0022b38e)) +* **validate-data:** move prefix constants to separate file ([#1210](https://github.com/dasch-swiss/dsp-tools/issues/1210)) ([a4b08f7](https://github.com/dasch-swiss/dsp-tools/commit/a4b08f7b83d2e8d5620e04271d9d6c806b64aa38)) +* **validate-data:** optimise queries for user results (DEV-4244) ([#1224](https://github.com/dasch-swiss/dsp-tools/issues/1224)) ([2e42602](https://github.com/dasch-swiss/dsp-tools/commit/2e4260274a26bb37badb8defb29e15fde768e47f)) +* **validate-data:** refactor `ShaclValidator` (DEV-4199) ([#1239](https://github.com/dasch-swiss/dsp-tools/issues/1239)) ([f0cb819](https://github.com/dasch-swiss/dsp-tools/commit/f0cb819493b8624eaf0fe0cb72ee04c3d71e007e)) +* **validate-data:** separate cardinality and content validation (DEV-4217) ([#1207](https://github.com/dasch-swiss/dsp-tools/issues/1207)) ([c0b057e](https://github.com/dasch-swiss/dsp-tools/commit/c0b057e60026ca13d4b55c4b5779ee81416b7395)) +* **xmllib:** check and convert erroneous input datatypes (DEV-4190) ([#1184](https://github.com/dasch-swiss/dsp-tools/issues/1184)) ([8ea7914](https://github.com/dasch-swiss/dsp-tools/commit/8ea7914ef2b30dc03f3fdfea6795a41d85bdaaa8)) +* **xmllib:** fix typing in XMLRoot ([#1229](https://github.com/dasch-swiss/dsp-tools/issues/1229)) ([2f60f0e](https://github.com/dasch-swiss/dsp-tools/commit/2f60f0e3cd0e9ec4c3b20762da0826dfa2d45c36)) +* **xmllib:** improve decimal checks ([#1195](https://github.com/dasch-swiss/dsp-tools/issues/1195)) ([324e7ca](https://github.com/dasch-swiss/dsp-tools/commit/324e7caf3082adafae75bab8a48c00299d0a8354)) +* **xmllib:** remove "title" parameter from (Video|Audio)SegmentResource.create_new() ([#1258](https://github.com/dasch-swiss/dsp-tools/issues/1258)) ([99478f1](https://github.com/dasch-swiss/dsp-tools/commit/99478f1de3af99b84074976621f9f5249779e637)) +* **xmlupload:** change serialisation of date value ([#1277](https://github.com/dasch-swiss/dsp-tools/issues/1277)) ([2b31398](https://github.com/dasch-swiss/dsp-tools/commit/2b3139893ac17d73c30465224c847112098705ef)) +* **xmlupload:** change serialisation of file value ([#1273](https://github.com/dasch-swiss/dsp-tools/issues/1273)) ([a8b1b68](https://github.com/dasch-swiss/dsp-tools/commit/a8b1b6865936e35f0e80b980cc48043723b9a5f1)) +* **xmlupload:** change serialisation of values with rdflib ([#1274](https://github.com/dasch-swiss/dsp-tools/issues/1274)) ([ec14df4](https://github.com/dasch-swiss/dsp-tools/commit/ec14df40617af882006f6cc042b46780441d5375)) +* **xmlupload:** serialise color prop in class ([#1271](https://github.com/dasch-swiss/dsp-tools/issues/1271)) ([46ce0d1](https://github.com/dasch-swiss/dsp-tools/commit/46ce0d1d2d587f1ec2974ff6a50a3d9267ee9066)) +* **xmlupload:** serialise values in classes ([#1272](https://github.com/dasch-swiss/dsp-tools/issues/1272)) ([0279615](https://github.com/dasch-swiss/dsp-tools/commit/0279615229ef00ca8ef230eed6a391e8f304392b)) +* **xmlvalidate:** ignore built-in dsp-properties (DEV-4191) ([#1192](https://github.com/dasch-swiss/dsp-tools/issues/1192)) ([3c01cfb](https://github.com/dasch-swiss/dsp-tools/commit/3c01cfb28e0b95b33a22dfc944eb5b6f2a598bcc)) +* **xmlvalidate:** improve error message (DEV-4201) ([#1196](https://github.com/dasch-swiss/dsp-tools/issues/1196)) ([6b386e9](https://github.com/dasch-swiss/dsp-tools/commit/6b386e90ad8e8ee2103bc0f0e2b12fc86d57f917)) + + +### Documentation + +* fix documentation of `--no-iiif-uri-validation` ([#1237](https://github.com/dasch-swiss/dsp-tools/issues/1237)) ([755a8f0](https://github.com/dasch-swiss/dsp-tools/commit/755a8f06ca2e64cf3e285b7ad8045e2d2640da84)) +* **start-stack:** describe how to login in locally running DSP-APP (RDU-54) ([#1266](https://github.com/dasch-swiss/dsp-tools/issues/1266)) ([6ae63d1](https://github.com/dasch-swiss/dsp-tools/commit/6ae63d122794ee5fb36e117c7b4d4132a764efdb)) +* **xmllib:** add minimal docstrings (DEV-4297) ([#1257](https://github.com/dasch-swiss/dsp-tools/issues/1257)) ([4c029f1](https://github.com/dasch-swiss/dsp-tools/commit/4c029f100c075b0d94dbd512f0a6d6da9c734e79)) +* **xmllib:** make args consistent (DEV-4314) ([#1259](https://github.com/dasch-swiss/dsp-tools/issues/1259)) ([fb5f5a9](https://github.com/dasch-swiss/dsp-tools/commit/fb5f5a948c7786ad4e3912cf1f87464e07493218)) +* **xmllib:** serve docstrings on docs.dasch.swiss (DEV-4298) ([#1256](https://github.com/dasch-swiss/dsp-tools/issues/1256)) ([7db2f94](https://github.com/dasch-swiss/dsp-tools/commit/7db2f946f24cb2f478953ade4e387bbc5568812b)) + ## [9.1.0](https://github.com/dasch-swiss/dsp-tools/compare/v9.0.2...v9.1.0) (2024-10-01) diff --git a/pyproject.toml b/pyproject.toml index 8ec59a04be..e558d01be0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -2,7 +2,7 @@ [project] name = "dsp-tools" -version = "9.1.0" +version = "9.2.0" description = "DSP-TOOLS is a Python package with a command line interface that helps you interact with a DaSCH service platform (DSP) server." authors = [{name = "DaSCH - Swiss National Data and Service Center for the Humanities", email = "info@dasch.swiss"}] readme = "docs/index.md"