dsp-tools 17.0.0.post23__tar.gz → 17.0.0.post26__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of dsp-tools might be problematic. Click here for more details.
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/PKG-INFO +1 -1
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/pyproject.toml +1 -1
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/cli/call_action.py +39 -6
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/create/parsing/parsing_utils.py +2 -5
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/error/exceptions.py +8 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/utils/data_formats/iri_util.py +9 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/utils/xml_parsing/get_parsed_resources.py +2 -5
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/docs/index.md +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/__init__.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/cli/__init__.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/cli/args.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/cli/create_parsers.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/cli/entry_point.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/clients/__init__.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/clients/authentication_client.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/clients/authentication_client_live.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/clients/connection.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/clients/connection_live.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/clients/fuseki_metrics.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/clients/legal_info_client.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/clients/legal_info_client_live.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/clients/metadata_client.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/clients/metadata_client_live.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/clients/ontology_client.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/clients/ontology_client_live.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/__init__.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/create/__init__.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/create/communicate_problems.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/create/constants.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/create/create_on_server/__init__.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/create/create_on_server/cardinalities.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/create/create_on_server/mappers.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/create/models/__init__.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/create/models/input_problems.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/create/models/parsed_ontology.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/create/models/parsed_project.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/create/models/rdf_ontology.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/create/models/server_project_info.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/create/parsing/__init__.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/create/parsing/parse_ontology.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/create/parsing/parse_project.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/create/serialisation/__init__.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/create/serialisation/ontology.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/excel2json/CLAUDE.md +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/excel2json/__init__.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/excel2json/json_header.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/excel2json/lists/__init__.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/excel2json/lists/compliance_checks.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/excel2json/lists/make_lists.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/excel2json/lists/models/__init__.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/excel2json/lists/models/deserialise.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/excel2json/lists/models/input_error.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/excel2json/lists/models/serialise.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/excel2json/lists/utils.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/excel2json/models/__init__.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/excel2json/models/input_error.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/excel2json/models/json_header.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/excel2json/models/list_node_name.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/excel2json/models/ontology.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/excel2json/old_lists.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/excel2json/project.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/excel2json/properties.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/excel2json/resources.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/excel2json/utils.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/excel2xml/__init__.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/excel2xml/excel2xml_cli.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/excel2xml/excel2xml_lib.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/excel2xml/propertyelement.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/id2iri.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/ingest_xmlupload/__init__.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/ingest_xmlupload/bulk_ingest_client.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/ingest_xmlupload/create_resources/__init__.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/ingest_xmlupload/create_resources/apply_ingest_id.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/ingest_xmlupload/create_resources/upload_xml.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/ingest_xmlupload/create_resources/user_information.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/ingest_xmlupload/ingest_files/__init__.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/ingest_xmlupload/ingest_files/ingest_files.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/ingest_xmlupload/upload_files/__init__.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/ingest_xmlupload/upload_files/filechecker.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/ingest_xmlupload/upload_files/input_error.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/ingest_xmlupload/upload_files/upload_failures.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/ingest_xmlupload/upload_files/upload_files.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/project/__init__.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/project/create/__init__.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/project/create/parse_project.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/project/create/project_create_all.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/project/create/project_create_default_permissions.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/project/create/project_create_lists.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/project/create/project_create_ontologies.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/project/create/project_validate.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/project/get/__init__.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/project/get/get.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/project/get/get_permissions.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/project/get/get_permissions_legacy.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/project/legacy_models/__init__.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/project/legacy_models/context.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/project/legacy_models/group.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/project/legacy_models/helpers.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/project/legacy_models/listnode.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/project/legacy_models/model.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/project/legacy_models/ontology.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/project/legacy_models/project.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/project/legacy_models/propertyclass.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/project/legacy_models/resourceclass.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/project/legacy_models/user.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/project/models/__init__.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/project/models/permissions_client.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/project/models/permissions_models.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/project/models/project_definition.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/resume_xmlupload/__init__.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/resume_xmlupload/resume_xmlupload.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/start_stack.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/validate_data/CLAUDE.md +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/validate_data/__init__.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/validate_data/api_clients.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/validate_data/constants.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/validate_data/mappers.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/validate_data/models/__init__.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/validate_data/models/api_responses.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/validate_data/models/input_problems.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/validate_data/models/rdf_like_data.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/validate_data/models/validation.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/validate_data/prepare_data/__init__.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/validate_data/prepare_data/get_rdf_like_data.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/validate_data/prepare_data/make_data_graph.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/validate_data/prepare_data/prepare_data.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/validate_data/process_validation_report/__init__.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/validate_data/process_validation_report/get_user_validation_message.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/validate_data/process_validation_report/query_validation_result.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/validate_data/process_validation_report/reformat_validation_results.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/validate_data/shacl_cli_validator.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/validate_data/sparql/__init__.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/validate_data/sparql/cardinality_shacl.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/validate_data/sparql/construct_shacl.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/validate_data/sparql/legal_info_shacl.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/validate_data/sparql/value_shacl.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/validate_data/utils.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/validate_data/validate_data.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/validate_data/validation/__init__.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/validate_data/validation/check_duplicate_files.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/validate_data/validation/check_for_unknown_classes.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/validate_data/validation/get_validation_report.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/validate_data/validation/validate_ontology.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/xmlupload/CLAUDE.md +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/xmlupload/__init__.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/xmlupload/iri_resolver.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/xmlupload/make_rdf_graph/__init__.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/xmlupload/make_rdf_graph/constants.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/xmlupload/make_rdf_graph/jsonld_utils.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/xmlupload/make_rdf_graph/make_file_value.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/xmlupload/make_rdf_graph/make_resource_and_values.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/xmlupload/make_rdf_graph/make_values.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/xmlupload/models/__init__.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/xmlupload/models/bitstream_info.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/xmlupload/models/formatted_text_value.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/xmlupload/models/ingest.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/xmlupload/models/input_problems.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/xmlupload/models/lookup_models.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/xmlupload/models/permission.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/xmlupload/models/permissions_parsed.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/xmlupload/models/processed/__init__.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/xmlupload/models/processed/file_values.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/xmlupload/models/processed/res.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/xmlupload/models/processed/values.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/xmlupload/models/rdf_models.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/xmlupload/models/upload_clients.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/xmlupload/models/upload_state.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/xmlupload/prepare_xml_input/__init__.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/xmlupload/prepare_xml_input/ark2iri.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/xmlupload/prepare_xml_input/get_processed_resources.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/xmlupload/prepare_xml_input/iiif_uri_validator.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/xmlupload/prepare_xml_input/list_client.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/xmlupload/prepare_xml_input/prepare_xml_input.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/xmlupload/prepare_xml_input/read_validate_xml_file.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/xmlupload/prepare_xml_input/transform_input_values.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/xmlupload/project_client.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/xmlupload/resource_create_client.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/xmlupload/richtext_id2iri.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/xmlupload/stash/__init__.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/xmlupload/stash/analyse_circular_reference_graph.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/xmlupload/stash/create_info_for_graph.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/xmlupload/stash/graph_models.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/xmlupload/stash/stash_circular_references.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/xmlupload/stash/stash_models.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/xmlupload/stash/upload_stashed_resptr_props.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/xmlupload/stash/upload_stashed_xml_texts.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/xmlupload/upload_config.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/xmlupload/write_diagnostic_info.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/xmlupload/xmlupload.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/config/__init__.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/config/logger_config.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/config/warnings_config.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/error/__init__.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/error/custom_warnings.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/error/problems.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/error/xmllib_errors.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/error/xmllib_warnings.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/error/xmllib_warnings_util.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/error/xsd_validation_error_msg.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/legacy_models/__init__.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/legacy_models/datetimestamp.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/legacy_models/langstring.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/legacy_models/projectContext.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/py.typed +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/resources/schema/data.xsd +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/resources/schema/lists-only.json +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/resources/schema/project.json +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/resources/schema/properties-only.json +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/resources/schema/resources-only.json +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/resources/start-stack/docker-compose.override-host.j2 +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/resources/start-stack/docker-compose.override.yml +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/resources/start-stack/docker-compose.yml +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/resources/start-stack/dsp-app-config.json +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/resources/start-stack/dsp-app-config.override-host.j2 +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/resources/validate_data/api-shapes-resource-cardinalities.ttl +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/resources/validate_data/api-shapes.ttl +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/resources/validate_data/shacl-cli-image.yml +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/resources/validate_data/validate-ontology.ttl +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/utils/__init__.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/utils/ansi_colors.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/utils/data_formats/__init__.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/utils/data_formats/date_util.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/utils/data_formats/shared.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/utils/data_formats/uri_util.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/utils/fuseki_bloating.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/utils/json_parsing.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/utils/rdflib_constants.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/utils/rdflib_utils.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/utils/replace_id_with_iri.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/utils/request_utils.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/utils/xml_parsing/__init__.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/utils/xml_parsing/get_lookups.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/utils/xml_parsing/models/__init__.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/utils/xml_parsing/models/parsed_resource.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/utils/xml_parsing/parse_clean_validate_xml.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/xmllib/CLAUDE.md +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/xmllib/__init__.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/xmllib/general_functions.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/xmllib/internal/__init__.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/xmllib/internal/checkers.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/xmllib/internal/circumvent_circular_imports.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/xmllib/internal/constants.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/xmllib/internal/input_converters.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/xmllib/internal/serialise_file_value.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/xmllib/internal/serialise_resource.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/xmllib/internal/serialise_values.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/xmllib/internal/type_aliases.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/xmllib/models/__init__.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/xmllib/models/config_options.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/xmllib/models/date_formats.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/xmllib/models/dsp_base_resources.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/xmllib/models/internal/__init__.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/xmllib/models/internal/file_values.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/xmllib/models/internal/geometry.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/xmllib/models/internal/migration_metadata.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/xmllib/models/internal/serialise_permissions.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/xmllib/models/internal/values.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/xmllib/models/licenses/__init__.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/xmllib/models/licenses/other.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/xmllib/models/licenses/recommended.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/xmllib/models/permissions.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/xmllib/models/res.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/xmllib/models/root.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/xmllib/value_checkers.py +0 -0
- {dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/xmllib/value_converters.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: dsp-tools
|
|
3
|
-
Version: 17.0.0.
|
|
3
|
+
Version: 17.0.0.post26
|
|
4
4
|
Summary: DSP-TOOLS is a Python package with a command line interface that helps you interact with a DaSCH service platform (DSP) server.
|
|
5
5
|
Author: DaSCH - Swiss National Data and Service Center for the Humanities
|
|
6
6
|
Author-email: DaSCH - Swiss National Data and Service Center for the Humanities <info@dasch.swiss>
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
[project]
|
|
4
4
|
name = "dsp-tools"
|
|
5
|
-
version = "17.0.0.
|
|
5
|
+
version = "17.0.0.post26"
|
|
6
6
|
description = "DSP-TOOLS is a Python package with a command line interface that helps you interact with a DaSCH service platform (DSP) server."
|
|
7
7
|
authors = [
|
|
8
8
|
{ name = "DaSCH - Swiss National Data and Service Center for the Humanities", email = "info@dasch.swiss" },
|
|
@@ -31,6 +31,8 @@ from dsp_tools.commands.xmlupload.xmlupload import xmlupload
|
|
|
31
31
|
from dsp_tools.error.exceptions import DockerNotReachableError
|
|
32
32
|
from dsp_tools.error.exceptions import DspApiNotReachableError
|
|
33
33
|
from dsp_tools.error.exceptions import InputError
|
|
34
|
+
from dsp_tools.error.exceptions import UserDirectoryNotFoundError
|
|
35
|
+
from dsp_tools.error.exceptions import UserFilepathNotFoundError
|
|
34
36
|
from dsp_tools.utils.xml_parsing.parse_clean_validate_xml import parse_and_validate_xml_file
|
|
35
37
|
|
|
36
38
|
LOCALHOST_API = "http://0.0.0.0:3333"
|
|
@@ -119,6 +121,8 @@ def _call_start_stack(args: argparse.Namespace) -> bool:
|
|
|
119
121
|
|
|
120
122
|
|
|
121
123
|
def _call_id2iri(args: argparse.Namespace) -> bool:
|
|
124
|
+
_check_filepath_exists(Path(args.xmlfile))
|
|
125
|
+
_check_filepath_exists(Path(args.mapping))
|
|
122
126
|
return id2iri(
|
|
123
127
|
xml_file=args.xmlfile,
|
|
124
128
|
json_file=args.mapping,
|
|
@@ -127,6 +131,7 @@ def _call_id2iri(args: argparse.Namespace) -> bool:
|
|
|
127
131
|
|
|
128
132
|
|
|
129
133
|
def _call_excel2properties(args: argparse.Namespace) -> bool:
|
|
134
|
+
_check_filepath_exists(Path(args.excelfile))
|
|
130
135
|
_, _, success = excel2properties(
|
|
131
136
|
excelfile=args.excelfile,
|
|
132
137
|
path_to_output_file=args.properties_section,
|
|
@@ -135,6 +140,7 @@ def _call_excel2properties(args: argparse.Namespace) -> bool:
|
|
|
135
140
|
|
|
136
141
|
|
|
137
142
|
def _call_excel2resources(args: argparse.Namespace) -> bool:
|
|
143
|
+
_check_filepath_exists(Path(args.excelfile))
|
|
138
144
|
_, _, success = excel2resources(
|
|
139
145
|
excelfile=args.excelfile,
|
|
140
146
|
path_to_output_file=args.resources_section,
|
|
@@ -143,6 +149,7 @@ def _call_excel2resources(args: argparse.Namespace) -> bool:
|
|
|
143
149
|
|
|
144
150
|
|
|
145
151
|
def _call_old_excel2lists(args: argparse.Namespace) -> bool:
|
|
152
|
+
_check_directory_exists(Path(args.excelfolder))
|
|
146
153
|
_, success = old_excel2lists(
|
|
147
154
|
excelfolder=args.excelfolder,
|
|
148
155
|
path_to_output_file=args.lists_section,
|
|
@@ -152,6 +159,7 @@ def _call_old_excel2lists(args: argparse.Namespace) -> bool:
|
|
|
152
159
|
|
|
153
160
|
|
|
154
161
|
def _call_excel2lists(args: argparse.Namespace) -> bool:
|
|
162
|
+
_check_directory_exists(Path(args.excelfolder))
|
|
155
163
|
_, success = excel2lists(
|
|
156
164
|
excelfolder=args.excelfolder,
|
|
157
165
|
path_to_output_file=args.lists_section,
|
|
@@ -160,6 +168,7 @@ def _call_excel2lists(args: argparse.Namespace) -> bool:
|
|
|
160
168
|
|
|
161
169
|
|
|
162
170
|
def _call_excel2json(args: argparse.Namespace) -> bool:
|
|
171
|
+
_check_directory_exists(Path(args.excelfolder))
|
|
163
172
|
return excel2json(
|
|
164
173
|
data_model_files=args.excelfolder,
|
|
165
174
|
path_to_output_file=args.project_definition,
|
|
@@ -167,6 +176,7 @@ def _call_excel2json(args: argparse.Namespace) -> bool:
|
|
|
167
176
|
|
|
168
177
|
|
|
169
178
|
def _call_old_excel2json(args: argparse.Namespace) -> bool:
|
|
179
|
+
_check_directory_exists(Path(args.excelfolder))
|
|
170
180
|
return old_excel2json(
|
|
171
181
|
data_model_files=args.excelfolder,
|
|
172
182
|
path_to_output_file=args.project_definition,
|
|
@@ -175,8 +185,10 @@ def _call_old_excel2json(args: argparse.Namespace) -> bool:
|
|
|
175
185
|
|
|
176
186
|
def _call_upload_files(args: argparse.Namespace) -> bool:
|
|
177
187
|
_check_health_with_docker_on_localhost(args.server)
|
|
188
|
+
xml_path = Path(args.xml_file)
|
|
189
|
+
_check_filepath_exists(xml_path)
|
|
178
190
|
return upload_files(
|
|
179
|
-
xml_file=
|
|
191
|
+
xml_file=xml_path,
|
|
180
192
|
creds=_get_creds(args),
|
|
181
193
|
imgdir=Path(args.imgdir),
|
|
182
194
|
)
|
|
@@ -189,9 +201,11 @@ def _call_ingest_files(args: argparse.Namespace) -> bool:
|
|
|
189
201
|
|
|
190
202
|
def _call_ingest_xmlupload(args: argparse.Namespace) -> bool:
|
|
191
203
|
_check_health_with_docker(args.server)
|
|
204
|
+
xml_path = Path(args.xml_file)
|
|
205
|
+
_check_filepath_exists(xml_path)
|
|
192
206
|
interrupt_after = args.interrupt_after if args.interrupt_after > 0 else None
|
|
193
207
|
return ingest_xmlupload(
|
|
194
|
-
xml_file=
|
|
208
|
+
xml_file=xml_path,
|
|
195
209
|
creds=_get_creds(args),
|
|
196
210
|
interrupt_after=interrupt_after,
|
|
197
211
|
skip_validation=args.skip_validation,
|
|
@@ -202,8 +216,13 @@ def _call_ingest_xmlupload(args: argparse.Namespace) -> bool:
|
|
|
202
216
|
|
|
203
217
|
def _call_xmlupload(args: argparse.Namespace) -> bool:
|
|
204
218
|
_check_health_with_docker(args.server)
|
|
219
|
+
xml_path = Path(args.xmlfile)
|
|
220
|
+
_check_filepath_exists(xml_path)
|
|
221
|
+
id_2_iri_file = args.id2iri_replacement_with_file
|
|
222
|
+
if id_2_iri_file:
|
|
223
|
+
_check_filepath_exists(Path(id_2_iri_file))
|
|
205
224
|
if args.validate_only:
|
|
206
|
-
success = parse_and_validate_xml_file(
|
|
225
|
+
success = parse_and_validate_xml_file(xml_path)
|
|
207
226
|
print("The XML file is syntactically correct.")
|
|
208
227
|
return success
|
|
209
228
|
else:
|
|
@@ -221,7 +240,7 @@ def _call_xmlupload(args: argparse.Namespace) -> bool:
|
|
|
221
240
|
f"is not part of the allowed values: info, warning, error."
|
|
222
241
|
)
|
|
223
242
|
return xmlupload(
|
|
224
|
-
input_file=
|
|
243
|
+
input_file=xml_path,
|
|
225
244
|
creds=_get_creds(args),
|
|
226
245
|
imgdir=args.imgdir,
|
|
227
246
|
config=UploadConfig(
|
|
@@ -231,15 +250,17 @@ def _call_xmlupload(args: argparse.Namespace) -> bool:
|
|
|
231
250
|
ignore_duplicate_files_warning=args.ignore_duplicate_files_warning,
|
|
232
251
|
validation_severity=severity,
|
|
233
252
|
skip_ontology_validation=args.skip_ontology_validation,
|
|
234
|
-
id2iri_replacement_file=
|
|
253
|
+
id2iri_replacement_file=id_2_iri_file,
|
|
235
254
|
),
|
|
236
255
|
)
|
|
237
256
|
|
|
238
257
|
|
|
239
258
|
def _call_validate_data(args: argparse.Namespace) -> bool:
|
|
240
259
|
_check_health_with_docker(args.server)
|
|
260
|
+
xml_path = Path(args.xmlfile)
|
|
261
|
+
_check_filepath_exists(xml_path)
|
|
241
262
|
return validate_data(
|
|
242
|
-
filepath=
|
|
263
|
+
filepath=xml_path,
|
|
243
264
|
creds=_get_creds(args),
|
|
244
265
|
save_graphs=args.save_graphs,
|
|
245
266
|
ignore_duplicate_files_warning=args.ignore_duplicate_files_warning,
|
|
@@ -259,6 +280,7 @@ def _call_resume_xmlupload(args: argparse.Namespace) -> bool:
|
|
|
259
280
|
|
|
260
281
|
def _call_get(args: argparse.Namespace) -> bool:
|
|
261
282
|
_check_health_with_docker_on_localhost(args.server)
|
|
283
|
+
_check_directory_exists(Path(args.project_definition).parent)
|
|
262
284
|
return get_project(
|
|
263
285
|
project_identifier=args.project,
|
|
264
286
|
outfile_path=args.project_definition,
|
|
@@ -269,6 +291,7 @@ def _call_get(args: argparse.Namespace) -> bool:
|
|
|
269
291
|
|
|
270
292
|
def _call_create(args: argparse.Namespace) -> bool:
|
|
271
293
|
_check_health_with_docker_on_localhost(args.server)
|
|
294
|
+
_check_filepath_exists(Path(args.project_definition))
|
|
272
295
|
success = False
|
|
273
296
|
match args.lists_only, args.validate_only:
|
|
274
297
|
case True, True:
|
|
@@ -340,3 +363,13 @@ def _check_api_health(api_url: str) -> None:
|
|
|
340
363
|
msg = "The DSP-API responded with a request exception. Please contact the DaSCH engineering team for help."
|
|
341
364
|
logger.error(msg)
|
|
342
365
|
raise DspApiNotReachableError(msg) from None
|
|
366
|
+
|
|
367
|
+
|
|
368
|
+
def _check_filepath_exists(file_path: Path) -> None:
|
|
369
|
+
if not file_path.exists():
|
|
370
|
+
raise UserFilepathNotFoundError(file_path)
|
|
371
|
+
|
|
372
|
+
|
|
373
|
+
def _check_directory_exists(dir_path: Path) -> None:
|
|
374
|
+
if not dir_path.is_dir():
|
|
375
|
+
raise UserDirectoryNotFoundError(dir_path)
|
|
@@ -4,6 +4,7 @@ import regex
|
|
|
4
4
|
|
|
5
5
|
from dsp_tools.commands.create.constants import KNORA_API_STR
|
|
6
6
|
from dsp_tools.commands.create.constants import UNIVERSAL_PREFIXES
|
|
7
|
+
from dsp_tools.utils.data_formats.iri_util import make_dsp_ontology_prefix
|
|
7
8
|
from dsp_tools.utils.data_formats.uri_util import is_uri
|
|
8
9
|
|
|
9
10
|
|
|
@@ -27,7 +28,7 @@ def create_prefix_lookup(project_json: dict[str, Any], api_url: str) -> dict[str
|
|
|
27
28
|
shortcode = project_json["project"]["shortcode"]
|
|
28
29
|
for onto in project_json["project"]["ontologies"]:
|
|
29
30
|
onto_name = onto["name"]
|
|
30
|
-
defined_prefixes[onto_name] =
|
|
31
|
+
defined_prefixes[onto_name] = make_dsp_ontology_prefix(api_url, shortcode, onto_name)
|
|
31
32
|
return defined_prefixes
|
|
32
33
|
|
|
33
34
|
|
|
@@ -37,7 +38,3 @@ def _correct_external_prefix(prefixes: dict[str, str]) -> dict[str, str]:
|
|
|
37
38
|
continue
|
|
38
39
|
prefixes[prfx] = f"{namespace}/"
|
|
39
40
|
return prefixes
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
def _make_dsp_ontology_prefix(api_url: str, shortcode: str, onto_name: str) -> str:
|
|
43
|
-
return f"{api_url}/ontology/{shortcode}/{onto_name}/v2#"
|
|
@@ -77,6 +77,14 @@ class UserFilepathNotFoundError(InputError):
|
|
|
77
77
|
super().__init__(msg)
|
|
78
78
|
|
|
79
79
|
|
|
80
|
+
class UserDirectoryNotFoundError(InputError):
|
|
81
|
+
"""This error is raised if a directory from the user does not exist."""
|
|
82
|
+
|
|
83
|
+
def __init__(self, directory: str | Path) -> None:
|
|
84
|
+
msg = f"The provided directory does not exist: {directory}"
|
|
85
|
+
super().__init__(msg)
|
|
86
|
+
|
|
87
|
+
|
|
80
88
|
class JSONFileParsingError(InputError):
|
|
81
89
|
"""This error should be raised if the user provided input file cannot be parsed."""
|
|
82
90
|
|
{dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/utils/data_formats/iri_util.py
RENAMED
|
@@ -19,3 +19,12 @@ def from_dsp_iri_to_prefixed_iri(iri: str) -> str:
|
|
|
19
19
|
if not (found := regex.search(dsp_iri_re, iri)):
|
|
20
20
|
return iri
|
|
21
21
|
return f"{found.group(1)}:{found.group(2)}"
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
def make_dsp_ontology_prefix(api_url: str, shortcode: str, onto_name: str) -> str:
|
|
25
|
+
api_fixed = convert_api_url_for_correct_iri_namespace_construction(api_url)
|
|
26
|
+
return f"{api_fixed}/ontology/{shortcode}/{onto_name}/v2#"
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
def convert_api_url_for_correct_iri_namespace_construction(api_url: str) -> str:
|
|
30
|
+
return regex.sub(r"^https", "http", api_url)
|
|
@@ -5,6 +5,7 @@ from lxml import etree
|
|
|
5
5
|
|
|
6
6
|
from dsp_tools.commands.validate_data.mappers import XML_TAG_TO_VALUE_TYPE_MAPPER
|
|
7
7
|
from dsp_tools.error.exceptions import InputError
|
|
8
|
+
from dsp_tools.utils.data_formats.iri_util import convert_api_url_for_correct_iri_namespace_construction
|
|
8
9
|
from dsp_tools.utils.rdflib_constants import KNORA_API_STR
|
|
9
10
|
from dsp_tools.utils.xml_parsing.models.parsed_resource import KnoraValueType
|
|
10
11
|
from dsp_tools.utils.xml_parsing.models.parsed_resource import ParsedFileValue
|
|
@@ -15,7 +16,7 @@ from dsp_tools.utils.xml_parsing.models.parsed_resource import ParsedValue
|
|
|
15
16
|
|
|
16
17
|
|
|
17
18
|
def get_parsed_resources(root: etree._Element, api_url: str) -> list[ParsedResource]:
|
|
18
|
-
api_url =
|
|
19
|
+
api_url = convert_api_url_for_correct_iri_namespace_construction(api_url)
|
|
19
20
|
iri_lookup = _create_from_local_name_to_absolute_iri_lookup(root, api_url)
|
|
20
21
|
all_res: list[ParsedResource] = []
|
|
21
22
|
for res in root.iterdescendants(tag="resource"):
|
|
@@ -34,10 +35,6 @@ def get_parsed_resources(root: etree._Element, api_url: str) -> list[ParsedResou
|
|
|
34
35
|
return all_res
|
|
35
36
|
|
|
36
37
|
|
|
37
|
-
def _convert_api_url_for_correct_iri_namespace_construction(api_url: str) -> str:
|
|
38
|
-
return regex.sub(r"^https", "http", api_url)
|
|
39
|
-
|
|
40
|
-
|
|
41
38
|
def _create_from_local_name_to_absolute_iri_lookup(root: etree._Element, api_url: str) -> dict[str, str]:
|
|
42
39
|
shortcode = root.attrib["shortcode"]
|
|
43
40
|
default_ontology = root.attrib["default-ontology"]
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/clients/authentication_client.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/clients/connection_live.py
RENAMED
|
File without changes
|
|
File without changes
|
{dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/clients/legal_info_client.py
RENAMED
|
File without changes
|
{dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/clients/legal_info_client_live.py
RENAMED
|
File without changes
|
{dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/clients/metadata_client.py
RENAMED
|
File without changes
|
{dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/clients/metadata_client_live.py
RENAMED
|
File without changes
|
{dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/clients/ontology_client.py
RENAMED
|
File without changes
|
{dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/clients/ontology_client_live.py
RENAMED
|
File without changes
|
|
File without changes
|
{dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/create/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/create/constants.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/create/models/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/excel2json/CLAUDE.md
RENAMED
|
File without changes
|
{dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/excel2json/__init__.py
RENAMED
|
File without changes
|
{dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/excel2json/json_header.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/excel2json/lists/utils.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/excel2json/old_lists.py
RENAMED
|
File without changes
|
{dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/excel2json/project.py
RENAMED
|
File without changes
|
{dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/excel2json/properties.py
RENAMED
|
File without changes
|
{dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/excel2json/resources.py
RENAMED
|
File without changes
|
{dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/excel2json/utils.py
RENAMED
|
File without changes
|
{dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/excel2xml/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/project/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/project/get/__init__.py
RENAMED
|
File without changes
|
{dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/project/get/get.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/validate_data/CLAUDE.md
RENAMED
|
File without changes
|
{dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/validate_data/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/validate_data/mappers.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{dsp_tools-17.0.0.post23 → dsp_tools-17.0.0.post26}/src/dsp_tools/commands/validate_data/utils.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|