dsp-tools 9.1.0.post11__py3-none-any.whl → 18.3.0.post13__py3-none-any.whl
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.
- dsp_tools/__init__.py +4 -0
- dsp_tools/cli/args.py +36 -0
- dsp_tools/cli/call_action.py +51 -231
- dsp_tools/cli/call_action_files_only.py +101 -0
- dsp_tools/cli/call_action_with_network.py +207 -0
- dsp_tools/cli/create_parsers.py +156 -58
- dsp_tools/cli/entry_point.py +56 -26
- dsp_tools/cli/utils.py +87 -0
- dsp_tools/clients/CLAUDE.md +420 -0
- dsp_tools/clients/authentication_client.py +14 -0
- dsp_tools/clients/authentication_client_live.py +66 -0
- dsp_tools/{utils → clients}/connection.py +2 -18
- dsp_tools/clients/connection_live.py +233 -0
- dsp_tools/clients/fuseki_metrics.py +60 -0
- dsp_tools/clients/group_user_clients.py +35 -0
- dsp_tools/clients/group_user_clients_live.py +181 -0
- dsp_tools/clients/legal_info_client.py +23 -0
- dsp_tools/clients/legal_info_client_live.py +132 -0
- dsp_tools/clients/list_client.py +49 -0
- dsp_tools/clients/list_client_live.py +166 -0
- dsp_tools/clients/metadata_client.py +24 -0
- dsp_tools/clients/metadata_client_live.py +47 -0
- dsp_tools/clients/ontology_clients.py +49 -0
- dsp_tools/clients/ontology_create_client_live.py +166 -0
- dsp_tools/clients/ontology_get_client_live.py +80 -0
- dsp_tools/clients/permissions_client.py +68 -0
- dsp_tools/clients/project_client.py +16 -0
- dsp_tools/clients/project_client_live.py +66 -0
- dsp_tools/commands/create/communicate_problems.py +24 -0
- dsp_tools/commands/create/create.py +134 -0
- dsp_tools/commands/create/create_on_server/cardinalities.py +111 -0
- dsp_tools/commands/create/create_on_server/classes.py +99 -0
- dsp_tools/commands/create/create_on_server/complete_ontologies.py +116 -0
- dsp_tools/commands/create/create_on_server/default_permissions.py +134 -0
- dsp_tools/commands/create/create_on_server/group_users.py +165 -0
- dsp_tools/commands/create/create_on_server/lists.py +163 -0
- dsp_tools/commands/create/create_on_server/mappers.py +12 -0
- dsp_tools/commands/create/create_on_server/onto_utils.py +74 -0
- dsp_tools/commands/create/create_on_server/ontology.py +52 -0
- dsp_tools/commands/create/create_on_server/project.py +68 -0
- dsp_tools/commands/create/create_on_server/properties.py +119 -0
- dsp_tools/commands/create/exceptions.py +29 -0
- dsp_tools/commands/create/lists_only.py +66 -0
- dsp_tools/commands/create/models/create_problems.py +87 -0
- dsp_tools/commands/create/models/parsed_ontology.py +88 -0
- dsp_tools/commands/create/models/parsed_project.py +81 -0
- dsp_tools/commands/create/models/rdf_ontology.py +12 -0
- dsp_tools/commands/create/models/server_project_info.py +100 -0
- dsp_tools/commands/create/parsing/parse_lists.py +45 -0
- dsp_tools/commands/create/parsing/parse_ontology.py +243 -0
- dsp_tools/commands/create/parsing/parse_project.py +149 -0
- dsp_tools/commands/create/parsing/parsing_utils.py +40 -0
- dsp_tools/commands/create/project_validate.py +595 -0
- dsp_tools/commands/create/serialisation/ontology.py +119 -0
- dsp_tools/commands/create/serialisation/project.py +44 -0
- dsp_tools/commands/excel2json/CLAUDE.md +101 -0
- dsp_tools/commands/excel2json/json_header.py +57 -23
- dsp_tools/commands/excel2json/{new_lists → lists}/compliance_checks.py +26 -26
- dsp_tools/commands/excel2json/{new_lists/make_new_lists.py → lists/make_lists.py} +19 -18
- dsp_tools/commands/excel2json/{new_lists → lists}/models/input_error.py +1 -12
- dsp_tools/commands/excel2json/{new_lists → lists}/models/serialise.py +9 -5
- dsp_tools/commands/excel2json/{new_lists → lists}/utils.py +4 -4
- dsp_tools/commands/excel2json/models/input_error.py +31 -11
- dsp_tools/commands/excel2json/models/json_header.py +53 -15
- dsp_tools/commands/excel2json/models/ontology.py +4 -3
- dsp_tools/commands/excel2json/{lists.py → old_lists.py} +26 -112
- dsp_tools/commands/excel2json/project.py +78 -34
- dsp_tools/commands/excel2json/properties.py +57 -36
- dsp_tools/commands/excel2json/resources.py +32 -12
- dsp_tools/commands/excel2json/utils.py +20 -1
- dsp_tools/commands/excel2xml/__init__.py +2 -2
- dsp_tools/commands/excel2xml/excel2xml_cli.py +7 -15
- dsp_tools/commands/excel2xml/excel2xml_lib.py +138 -493
- dsp_tools/commands/excel2xml/propertyelement.py +5 -5
- dsp_tools/commands/{project → get}/get.py +29 -13
- dsp_tools/commands/get/get_permissions.py +257 -0
- dsp_tools/commands/get/get_permissions_legacy.py +89 -0
- dsp_tools/commands/{project/models → get/legacy_models}/context.py +6 -6
- dsp_tools/commands/{project/models → get/legacy_models}/group.py +5 -10
- dsp_tools/commands/{project/models → get/legacy_models}/listnode.py +5 -35
- dsp_tools/commands/{project/models → get/legacy_models}/model.py +1 -1
- dsp_tools/commands/{project/models → get/legacy_models}/ontology.py +9 -14
- dsp_tools/commands/{project/models → get/legacy_models}/project.py +13 -6
- dsp_tools/commands/{project/models → get/legacy_models}/propertyclass.py +9 -16
- dsp_tools/commands/{project/models → get/legacy_models}/resourceclass.py +8 -46
- dsp_tools/commands/{project/models → get/legacy_models}/user.py +19 -60
- dsp_tools/commands/get/models/permissions_models.py +10 -0
- dsp_tools/commands/id2iri.py +20 -10
- dsp_tools/commands/ingest_xmlupload/bulk_ingest_client.py +81 -56
- dsp_tools/commands/ingest_xmlupload/create_resources/apply_ingest_id.py +4 -10
- dsp_tools/commands/ingest_xmlupload/create_resources/upload_xml.py +97 -37
- dsp_tools/commands/ingest_xmlupload/create_resources/user_information.py +2 -2
- dsp_tools/commands/ingest_xmlupload/ingest_files/ingest_files.py +9 -10
- dsp_tools/commands/ingest_xmlupload/upload_files/filechecker.py +3 -3
- dsp_tools/commands/ingest_xmlupload/upload_files/input_error.py +2 -10
- dsp_tools/commands/ingest_xmlupload/upload_files/upload_failures.py +12 -2
- dsp_tools/commands/ingest_xmlupload/upload_files/upload_files.py +8 -9
- dsp_tools/commands/resume_xmlupload/resume_xmlupload.py +18 -18
- dsp_tools/commands/start_stack.py +126 -77
- dsp_tools/commands/update_legal/CLAUDE.md +344 -0
- dsp_tools/commands/update_legal/__init__.py +0 -0
- dsp_tools/commands/update_legal/core.py +182 -0
- dsp_tools/commands/update_legal/csv_operations.py +135 -0
- dsp_tools/commands/update_legal/models.py +87 -0
- dsp_tools/commands/update_legal/xml_operations.py +247 -0
- dsp_tools/commands/validate_data/CLAUDE.md +159 -0
- dsp_tools/commands/validate_data/__init__.py +0 -0
- dsp_tools/commands/validate_data/constants.py +59 -0
- dsp_tools/commands/validate_data/mappers.py +143 -0
- dsp_tools/commands/validate_data/models/__init__.py +0 -0
- dsp_tools/commands/validate_data/models/api_responses.py +45 -0
- dsp_tools/commands/validate_data/models/input_problems.py +119 -0
- dsp_tools/commands/validate_data/models/rdf_like_data.py +117 -0
- dsp_tools/commands/validate_data/models/validation.py +106 -0
- dsp_tools/commands/validate_data/prepare_data/__init__.py +0 -0
- dsp_tools/commands/validate_data/prepare_data/get_rdf_like_data.py +296 -0
- dsp_tools/commands/validate_data/prepare_data/make_data_graph.py +91 -0
- dsp_tools/commands/validate_data/prepare_data/prepare_data.py +184 -0
- dsp_tools/commands/validate_data/process_validation_report/__init__.py +0 -0
- dsp_tools/commands/validate_data/process_validation_report/get_user_validation_message.py +358 -0
- dsp_tools/commands/validate_data/process_validation_report/query_validation_result.py +507 -0
- dsp_tools/commands/validate_data/process_validation_report/reformat_validation_results.py +150 -0
- dsp_tools/commands/validate_data/shacl_cli_validator.py +70 -0
- dsp_tools/commands/validate_data/sparql/__init__.py +0 -0
- dsp_tools/commands/{xml_validate/sparql/resource_shacl.py → validate_data/sparql/cardinality_shacl.py} +45 -47
- dsp_tools/commands/validate_data/sparql/construct_shacl.py +92 -0
- dsp_tools/commands/validate_data/sparql/legal_info_shacl.py +36 -0
- dsp_tools/commands/validate_data/sparql/value_shacl.py +357 -0
- dsp_tools/commands/validate_data/utils.py +59 -0
- dsp_tools/commands/validate_data/validate_data.py +283 -0
- dsp_tools/commands/validate_data/validation/__init__.py +0 -0
- dsp_tools/commands/validate_data/validation/check_duplicate_files.py +55 -0
- dsp_tools/commands/validate_data/validation/check_for_unknown_classes.py +67 -0
- dsp_tools/commands/validate_data/validation/get_validation_report.py +94 -0
- dsp_tools/commands/validate_data/validation/validate_ontology.py +107 -0
- dsp_tools/commands/xmlupload/CLAUDE.md +292 -0
- dsp_tools/commands/xmlupload/make_rdf_graph/__init__.py +0 -0
- dsp_tools/commands/xmlupload/make_rdf_graph/constants.py +63 -0
- dsp_tools/commands/xmlupload/make_rdf_graph/jsonld_utils.py +44 -0
- dsp_tools/commands/xmlupload/make_rdf_graph/make_file_value.py +77 -0
- dsp_tools/commands/xmlupload/make_rdf_graph/make_resource_and_values.py +114 -0
- dsp_tools/commands/xmlupload/make_rdf_graph/make_values.py +262 -0
- dsp_tools/commands/xmlupload/models/bitstream_info.py +18 -0
- dsp_tools/commands/xmlupload/models/formatted_text_value.py +0 -25
- dsp_tools/commands/xmlupload/models/ingest.py +56 -70
- dsp_tools/commands/xmlupload/models/input_problems.py +6 -14
- dsp_tools/commands/xmlupload/models/lookup_models.py +21 -0
- dsp_tools/commands/xmlupload/models/permission.py +0 -39
- dsp_tools/commands/xmlupload/models/{deserialise/xmlpermission.py → permissions_parsed.py} +2 -2
- dsp_tools/commands/xmlupload/models/processed/__init__.py +0 -0
- dsp_tools/commands/xmlupload/models/processed/file_values.py +29 -0
- dsp_tools/commands/xmlupload/models/processed/res.py +27 -0
- dsp_tools/commands/xmlupload/models/processed/values.py +101 -0
- dsp_tools/commands/xmlupload/models/rdf_models.py +26 -0
- dsp_tools/commands/xmlupload/models/upload_clients.py +3 -3
- dsp_tools/commands/xmlupload/models/upload_state.py +2 -4
- dsp_tools/commands/xmlupload/prepare_xml_input/__init__.py +0 -0
- dsp_tools/commands/xmlupload/{ark2iri.py → prepare_xml_input/ark2iri.py} +1 -1
- dsp_tools/commands/xmlupload/prepare_xml_input/get_processed_resources.py +252 -0
- dsp_tools/commands/xmlupload/{iiif_uri_validator.py → prepare_xml_input/iiif_uri_validator.py} +2 -14
- dsp_tools/commands/xmlupload/{list_client.py → prepare_xml_input/list_client.py} +15 -10
- dsp_tools/commands/xmlupload/prepare_xml_input/prepare_xml_input.py +67 -0
- dsp_tools/commands/xmlupload/prepare_xml_input/read_validate_xml_file.py +58 -0
- dsp_tools/commands/xmlupload/prepare_xml_input/transform_input_values.py +118 -0
- dsp_tools/commands/xmlupload/resource_create_client.py +7 -468
- dsp_tools/commands/xmlupload/richtext_id2iri.py +37 -0
- dsp_tools/commands/xmlupload/stash/{construct_and_analyze_graph.py → analyse_circular_reference_graph.py} +64 -157
- dsp_tools/commands/xmlupload/stash/create_info_for_graph.py +53 -0
- dsp_tools/commands/xmlupload/stash/graph_models.py +13 -8
- dsp_tools/commands/xmlupload/stash/stash_circular_references.py +48 -115
- dsp_tools/commands/xmlupload/stash/stash_models.py +4 -9
- dsp_tools/commands/xmlupload/stash/upload_stashed_resptr_props.py +34 -40
- dsp_tools/commands/xmlupload/stash/upload_stashed_xml_texts.py +98 -108
- dsp_tools/commands/xmlupload/upload_config.py +8 -0
- dsp_tools/commands/xmlupload/write_diagnostic_info.py +14 -9
- dsp_tools/commands/xmlupload/xmlupload.py +214 -192
- dsp_tools/config/__init__.py +0 -0
- dsp_tools/config/logger_config.py +69 -0
- dsp_tools/{utils → config}/warnings_config.py +4 -1
- dsp_tools/error/__init__.py +0 -0
- dsp_tools/error/custom_warnings.py +39 -0
- dsp_tools/error/exceptions.py +204 -0
- dsp_tools/error/problems.py +10 -0
- dsp_tools/error/xmllib_errors.py +20 -0
- dsp_tools/error/xmllib_warnings.py +54 -0
- dsp_tools/error/xmllib_warnings_util.py +159 -0
- dsp_tools/error/xsd_validation_error_msg.py +19 -0
- dsp_tools/legacy_models/__init__.py +0 -0
- dsp_tools/{models → legacy_models}/datetimestamp.py +7 -7
- dsp_tools/{models → legacy_models}/langstring.py +1 -1
- dsp_tools/{models → legacy_models}/projectContext.py +4 -4
- dsp_tools/resources/schema/data.xsd +108 -83
- dsp_tools/resources/schema/lists-only.json +4 -23
- dsp_tools/resources/schema/project.json +80 -35
- dsp_tools/resources/schema/properties-only.json +1 -4
- dsp_tools/resources/start-stack/docker-compose.override-host.j2 +11 -0
- dsp_tools/resources/start-stack/docker-compose.yml +34 -30
- dsp_tools/resources/start-stack/dsp-app-config.json +45 -0
- dsp_tools/resources/start-stack/dsp-app-config.override-host.j2 +26 -0
- dsp_tools/resources/validate_data/api-shapes-resource-cardinalities.ttl +191 -0
- dsp_tools/resources/validate_data/api-shapes.ttl +804 -0
- dsp_tools/resources/validate_data/shacl-cli-image.yml +4 -0
- dsp_tools/resources/validate_data/validate-ontology.ttl +99 -0
- dsp_tools/utils/ansi_colors.py +32 -0
- dsp_tools/utils/data_formats/__init__.py +0 -0
- dsp_tools/utils/{date_util.py → data_formats/date_util.py} +13 -1
- dsp_tools/utils/data_formats/iri_util.py +30 -0
- dsp_tools/utils/{shared.py → data_formats/shared.py} +1 -35
- dsp_tools/utils/{uri_util.py → data_formats/uri_util.py} +12 -2
- dsp_tools/utils/fuseki_bloating.py +63 -0
- dsp_tools/utils/json_parsing.py +22 -0
- dsp_tools/utils/rdf_constants.py +42 -0
- dsp_tools/utils/rdflib_utils.py +10 -0
- dsp_tools/utils/replace_id_with_iri.py +66 -0
- dsp_tools/utils/request_utils.py +238 -0
- dsp_tools/utils/xml_parsing/__init__.py +0 -0
- dsp_tools/utils/xml_parsing/get_lookups.py +32 -0
- dsp_tools/utils/xml_parsing/get_parsed_resources.py +325 -0
- dsp_tools/utils/xml_parsing/models/__init__.py +0 -0
- dsp_tools/utils/xml_parsing/models/parsed_resource.py +76 -0
- dsp_tools/utils/xml_parsing/parse_clean_validate_xml.py +137 -0
- dsp_tools/xmllib/CLAUDE.md +302 -0
- dsp_tools/xmllib/__init__.py +49 -0
- dsp_tools/xmllib/general_functions.py +877 -0
- dsp_tools/xmllib/internal/__init__.py +0 -0
- dsp_tools/xmllib/internal/checkers.py +162 -0
- dsp_tools/xmllib/internal/circumvent_circular_imports.py +36 -0
- dsp_tools/xmllib/internal/constants.py +46 -0
- dsp_tools/xmllib/internal/input_converters.py +155 -0
- dsp_tools/xmllib/internal/serialise_file_value.py +57 -0
- dsp_tools/xmllib/internal/serialise_resource.py +177 -0
- dsp_tools/xmllib/internal/serialise_values.py +152 -0
- dsp_tools/xmllib/internal/type_aliases.py +11 -0
- dsp_tools/xmllib/models/config_options.py +28 -0
- dsp_tools/xmllib/models/date_formats.py +48 -0
- dsp_tools/xmllib/models/dsp_base_resources.py +1380 -400
- dsp_tools/xmllib/models/internal/__init__.py +0 -0
- dsp_tools/xmllib/models/internal/file_values.py +172 -0
- dsp_tools/xmllib/models/internal/geometry.py +162 -0
- dsp_tools/xmllib/models/{migration_metadata.py → internal/migration_metadata.py} +14 -10
- dsp_tools/xmllib/models/internal/serialise_permissions.py +66 -0
- dsp_tools/xmllib/models/internal/values.py +342 -0
- dsp_tools/xmllib/models/licenses/__init__.py +0 -0
- dsp_tools/xmllib/models/licenses/other.py +59 -0
- dsp_tools/xmllib/models/licenses/recommended.py +107 -0
- dsp_tools/xmllib/models/permissions.py +41 -0
- dsp_tools/xmllib/models/res.py +1782 -0
- dsp_tools/xmllib/models/root.py +313 -26
- dsp_tools/xmllib/value_checkers.py +310 -47
- dsp_tools/xmllib/value_converters.py +765 -8
- dsp_tools-18.3.0.post13.dist-info/METADATA +90 -0
- dsp_tools-18.3.0.post13.dist-info/RECORD +286 -0
- dsp_tools-18.3.0.post13.dist-info/WHEEL +4 -0
- {dsp_tools-9.1.0.post11.dist-info → dsp_tools-18.3.0.post13.dist-info}/entry_points.txt +1 -0
- dsp_tools/commands/project/create/project_create.py +0 -1107
- dsp_tools/commands/project/create/project_create_lists.py +0 -204
- dsp_tools/commands/project/create/project_validate.py +0 -453
- dsp_tools/commands/project/models/project_definition.py +0 -12
- dsp_tools/commands/rosetta.py +0 -124
- dsp_tools/commands/template.py +0 -30
- dsp_tools/commands/xml_validate/api_connection.py +0 -122
- dsp_tools/commands/xml_validate/deserialise_input.py +0 -135
- dsp_tools/commands/xml_validate/make_data_rdf.py +0 -193
- dsp_tools/commands/xml_validate/models/data_deserialised.py +0 -108
- dsp_tools/commands/xml_validate/models/data_rdf.py +0 -214
- dsp_tools/commands/xml_validate/models/input_problems.py +0 -191
- dsp_tools/commands/xml_validate/models/validation.py +0 -29
- dsp_tools/commands/xml_validate/reformat_validaton_result.py +0 -89
- dsp_tools/commands/xml_validate/sparql/construct_shapes.py +0 -16
- dsp_tools/commands/xml_validate/xml_validate.py +0 -151
- dsp_tools/commands/xmlupload/check_consistency_with_ontology.py +0 -253
- dsp_tools/commands/xmlupload/models/deserialise/deserialise_value.py +0 -236
- dsp_tools/commands/xmlupload/models/deserialise/xmlresource.py +0 -171
- dsp_tools/commands/xmlupload/models/namespace_context.py +0 -39
- dsp_tools/commands/xmlupload/models/ontology_lookup_models.py +0 -161
- dsp_tools/commands/xmlupload/models/ontology_problem_models.py +0 -178
- dsp_tools/commands/xmlupload/models/serialise/jsonld_serialiser.py +0 -40
- dsp_tools/commands/xmlupload/models/serialise/serialise_value.py +0 -51
- dsp_tools/commands/xmlupload/ontology_client.py +0 -92
- dsp_tools/commands/xmlupload/project_client.py +0 -91
- dsp_tools/commands/xmlupload/read_validate_xml_file.py +0 -99
- dsp_tools/models/custom_warnings.py +0 -31
- dsp_tools/models/exceptions.py +0 -90
- dsp_tools/resources/0100-template-repo/template.json +0 -45
- dsp_tools/resources/0100-template-repo/template.xml +0 -27
- dsp_tools/resources/start-stack/docker-compose-validation.yml +0 -5
- dsp_tools/resources/start-stack/start-stack-config.yml +0 -4
- dsp_tools/resources/xml_validate/api-shapes.ttl +0 -411
- dsp_tools/resources/xml_validate/replace_namespace.xslt +0 -61
- dsp_tools/utils/connection_live.py +0 -383
- dsp_tools/utils/iri_util.py +0 -14
- dsp_tools/utils/logger_config.py +0 -41
- dsp_tools/utils/set_encoder.py +0 -20
- dsp_tools/utils/xml_utils.py +0 -145
- dsp_tools/utils/xml_validation.py +0 -197
- dsp_tools/utils/xml_validation_models.py +0 -68
- dsp_tools/xmllib/models/file_values.py +0 -78
- dsp_tools/xmllib/models/resource.py +0 -415
- dsp_tools/xmllib/models/values.py +0 -428
- dsp_tools-9.1.0.post11.dist-info/METADATA +0 -130
- dsp_tools-9.1.0.post11.dist-info/RECORD +0 -167
- dsp_tools-9.1.0.post11.dist-info/WHEEL +0 -4
- dsp_tools-9.1.0.post11.dist-info/licenses/LICENSE +0 -674
- /dsp_tools/{commands/excel2json/new_lists → clients}/__init__.py +0 -0
- /dsp_tools/commands/{excel2json/new_lists/models → create}/__init__.py +0 -0
- /dsp_tools/commands/{project → create/create_on_server}/__init__.py +0 -0
- /dsp_tools/commands/{project/create → create/models}/__init__.py +0 -0
- /dsp_tools/commands/{project/models → create/parsing}/__init__.py +0 -0
- /dsp_tools/commands/{xml_validate → create/serialisation}/__init__.py +0 -0
- /dsp_tools/commands/{xml_validate/models → excel2json/lists}/__init__.py +0 -0
- /dsp_tools/commands/{xml_validate/sparql → excel2json/lists/models}/__init__.py +0 -0
- /dsp_tools/commands/excel2json/{new_lists → lists}/models/deserialise.py +0 -0
- /dsp_tools/commands/{xmlupload/models/deserialise → get}/__init__.py +0 -0
- /dsp_tools/commands/{xmlupload/models/serialise → get/legacy_models}/__init__.py +0 -0
- /dsp_tools/commands/{project/models → get/legacy_models}/helpers.py +0 -0
- /dsp_tools/{models → commands/get/models}/__init__.py +0 -0
|
@@ -4,7 +4,10 @@
|
|
|
4
4
|
targetNamespace="https://dasch.swiss/schema"
|
|
5
5
|
elementFormDefault="qualified">
|
|
6
6
|
|
|
7
|
-
<!-- nonEmptyString
|
|
7
|
+
<!-- nonEmptyString
|
|
8
|
+
Data of type xs:string are not modified by the XML processor,
|
|
9
|
+
so the xs:pattern is applied to the original string
|
|
10
|
+
-->
|
|
8
11
|
<xs:simpleType name="nonEmptyString">
|
|
9
12
|
<xs:restriction base="xs:string">
|
|
10
13
|
<xs:minLength value="1"/>
|
|
@@ -12,16 +15,34 @@
|
|
|
12
15
|
</xs:restriction>
|
|
13
16
|
</xs:simpleType>
|
|
14
17
|
|
|
18
|
+
<!-- nonEmptyString_pretty_printed
|
|
19
|
+
xs:token is derived from string, but before the xs:pattern is applied,
|
|
20
|
+
the XML processor removes line feeds, carriage returns, tabs, leading and trailing spaces, and multiple spaces.
|
|
21
|
+
-->
|
|
22
|
+
<xs:simpleType name="nonEmptyString_pretty_printed">
|
|
23
|
+
<xs:restriction base="xs:token">
|
|
24
|
+
<xs:minLength value="1"/>
|
|
25
|
+
<xs:pattern value=".*\S+.*"/>
|
|
26
|
+
</xs:restriction>
|
|
27
|
+
</xs:simpleType>
|
|
28
|
+
|
|
15
29
|
<!-- data type for resrefs "ID|ID|..." -->
|
|
16
30
|
<xs:simpleType name="resrefs_type">
|
|
17
|
-
<xs:restriction base="xs:
|
|
31
|
+
<xs:restriction base="xs:string">
|
|
18
32
|
<xs:pattern value="([^|]+)(\|[^|]+)*"/>
|
|
19
33
|
</xs:restriction>
|
|
20
34
|
</xs:simpleType>
|
|
21
35
|
|
|
36
|
+
<!-- data type for resptr tags -->
|
|
37
|
+
<xs:simpleType name="resptr_datatype">
|
|
38
|
+
<xs:restriction base="xs:string">
|
|
39
|
+
<xs:pattern value="([a-zA-Zàáâäèéêëìíîïòóôöùúûüçñß_][a-zA-Zàáâäèéêëìíîïòóôöùúûüçñß_\d.\-]*)|(http://rdfh\.ch/[\dA-F]{4}/\S+)"/>
|
|
40
|
+
</xs:restriction>
|
|
41
|
+
</xs:simpleType>
|
|
42
|
+
|
|
22
43
|
<!-- group type for allow..." -->
|
|
23
44
|
<xs:simpleType name="group_types">
|
|
24
|
-
<xs:restriction base="xs:
|
|
45
|
+
<xs:restriction base="xs:string">
|
|
25
46
|
<xs:pattern
|
|
26
47
|
value="(UnknownUser|KnownUser|ProjectMember|Creator|ProjectAdmin|SystemAdmin|([\w\-]+)?:([\w\- ]+))"/>
|
|
27
48
|
</xs:restriction>
|
|
@@ -29,23 +50,23 @@
|
|
|
29
50
|
|
|
30
51
|
<!-- data type for knora date -->
|
|
31
52
|
<xs:simpleType name="knoradate_type">
|
|
32
|
-
<xs:restriction base="xs:
|
|
53
|
+
<xs:restriction base="xs:string">
|
|
33
54
|
<xs:pattern
|
|
34
|
-
value="(GREGORIAN:|JULIAN
|
|
55
|
+
value="((GREGORIAN:|JULIAN:)?(CE:|BCE:|AD:|BC:)?(\d{1,4})(-\d{1,2})?(-\d{1,2})?((:CE|:BCE|:AD|:BC)?(:\d{1,4})(-\d{1,2})?(-\d{1,2})?)?)|((ISLAMIC:)(\d{1,4})(-\d{1,2})?(-\d{1,2})?(:\d{1,4})(-\d{1,2})?(-\d{1,2})?)"/>
|
|
35
56
|
</xs:restriction>
|
|
36
57
|
</xs:simpleType>
|
|
37
58
|
|
|
38
59
|
<!-- data type for knora time -->
|
|
39
60
|
<xs:simpleType name="knoratime_type">
|
|
40
|
-
<xs:restriction base="xs:
|
|
61
|
+
<xs:restriction base="xs:string">
|
|
41
62
|
<xs:pattern
|
|
42
|
-
value="\d{4}-[0-1]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d(
|
|
63
|
+
value="\d{4}-[0-1]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d(\.\d{1,12})?(Z|[+-][0-1]\d:[0-5]\d)"/>
|
|
43
64
|
</xs:restriction>
|
|
44
65
|
</xs:simpleType>
|
|
45
66
|
|
|
46
67
|
<!-- data type for knora color -->
|
|
47
68
|
<xs:simpleType name="knoracolor_type">
|
|
48
|
-
<xs:restriction base="xs:
|
|
69
|
+
<xs:restriction base="xs:string">
|
|
49
70
|
<xs:pattern value="#([0-9a-fA-F]{3}){1,2}"/>
|
|
50
71
|
</xs:restriction>
|
|
51
72
|
</xs:simpleType>
|
|
@@ -53,7 +74,14 @@
|
|
|
53
74
|
<!-- data type for knora uri -->
|
|
54
75
|
<xs:simpleType name="knorauri_type">
|
|
55
76
|
<xs:restriction base="xs:string">
|
|
56
|
-
<xs:pattern value="([a-z][a-z0-9+.\-]*):(//([\w_.\-~:\[\]]+)(:\d{0,6})?)(/[\w_.\-:~%()!@,;/=*&]*)*(\?[\w_.\-:~%()!@,;/=*&]+)*(#[\w_.\-:~%()!@,;/=*&]*)?"/>
|
|
77
|
+
<xs:pattern value="([a-z][a-z0-9+.\-]*):(//([\w_.\-~:\[\]]+)(:\d{0,6})?)(/[\w_.\-:~%()!@,;/=*&'+]*)*(\?[\w_.\-:~%()!@,;/=*&'+]+)*(#[\w_.\-:~%()!@,;/=*&'+]*)?"/>
|
|
78
|
+
</xs:restriction>
|
|
79
|
+
</xs:simpleType>
|
|
80
|
+
|
|
81
|
+
<!-- data type for property and resource class names (no whitespace allowed) -->
|
|
82
|
+
<xs:simpleType name="string_without_space">
|
|
83
|
+
<xs:restriction base="xs:string">
|
|
84
|
+
<xs:pattern value="[^\s]+"/>
|
|
57
85
|
</xs:restriction>
|
|
58
86
|
</xs:simpleType>
|
|
59
87
|
|
|
@@ -73,7 +101,7 @@
|
|
|
73
101
|
<xs:attribute name="encoding" type="encoding_types" use="required"/>
|
|
74
102
|
<xs:attribute name="resrefs" type="resrefs_type"/>
|
|
75
103
|
<xs:attribute name="comment" type="xs:string"/>
|
|
76
|
-
<xs:attribute name="permissions" type="xs:
|
|
104
|
+
<xs:attribute name="permissions" type="xs:IDREF" use="optional"/>
|
|
77
105
|
</xs:complexType>
|
|
78
106
|
|
|
79
107
|
<!-- xml encoding value type -->
|
|
@@ -84,7 +112,7 @@
|
|
|
84
112
|
<xs:attribute name="encoding" fixed="xml" use="required"/>
|
|
85
113
|
<xs:attribute name="resrefs" type="resrefs_type"/>
|
|
86
114
|
<xs:attribute name="comment" type="xs:string"/>
|
|
87
|
-
<xs:attribute name="permissions" type="xs:
|
|
115
|
+
<xs:attribute name="permissions" type="xs:IDREF" use="optional"/>
|
|
88
116
|
</xs:complexType>
|
|
89
117
|
|
|
90
118
|
<!-- formatted text type -->
|
|
@@ -93,7 +121,7 @@
|
|
|
93
121
|
<xs:any processContents="skip" minOccurs="0" maxOccurs="unbounded"/>
|
|
94
122
|
</xs:sequence>
|
|
95
123
|
<xs:attribute name="comment" type="xs:string"/>
|
|
96
|
-
<xs:attribute name="permissions" type="xs:
|
|
124
|
+
<xs:attribute name="permissions" type="xs:IDREF" use="optional"/>
|
|
97
125
|
</xs:complexType>
|
|
98
126
|
|
|
99
127
|
<!-- unformatted text type -->
|
|
@@ -101,7 +129,7 @@
|
|
|
101
129
|
<xs:simpleContent>
|
|
102
130
|
<xs:extension base="nonEmptyString">
|
|
103
131
|
<xs:attribute name="comment" type="xs:string"/>
|
|
104
|
-
<xs:attribute name="permissions" type="xs:
|
|
132
|
+
<xs:attribute name="permissions" type="xs:IDREF" use="optional"/>
|
|
105
133
|
</xs:extension>
|
|
106
134
|
</xs:simpleContent>
|
|
107
135
|
</xs:complexType>
|
|
@@ -111,7 +139,7 @@
|
|
|
111
139
|
<xs:simpleContent>
|
|
112
140
|
<xs:extension base="knoracolor_type">
|
|
113
141
|
<xs:attribute name="comment" type="xs:string"/>
|
|
114
|
-
<xs:attribute name="permissions" type="xs:
|
|
142
|
+
<xs:attribute name="permissions" type="xs:IDREF" use="optional"/>
|
|
115
143
|
</xs:extension>
|
|
116
144
|
</xs:simpleContent>
|
|
117
145
|
</xs:complexType>
|
|
@@ -121,7 +149,7 @@
|
|
|
121
149
|
<xs:simpleContent>
|
|
122
150
|
<xs:extension base="knoradate_type">
|
|
123
151
|
<xs:attribute name="comment" type="xs:string"/>
|
|
124
|
-
<xs:attribute name="permissions" type="xs:
|
|
152
|
+
<xs:attribute name="permissions" type="xs:IDREF" use="optional"/>
|
|
125
153
|
</xs:extension>
|
|
126
154
|
</xs:simpleContent>
|
|
127
155
|
</xs:complexType>
|
|
@@ -131,7 +159,7 @@
|
|
|
131
159
|
<xs:simpleContent>
|
|
132
160
|
<xs:extension base="xs:float">
|
|
133
161
|
<xs:attribute name="comment" type="xs:string"/>
|
|
134
|
-
<xs:attribute name="permissions" type="xs:
|
|
162
|
+
<xs:attribute name="permissions" type="xs:IDREF" use="optional"/>
|
|
135
163
|
</xs:extension>
|
|
136
164
|
</xs:simpleContent>
|
|
137
165
|
</xs:complexType>
|
|
@@ -141,7 +169,7 @@
|
|
|
141
169
|
<xs:simpleContent>
|
|
142
170
|
<xs:extension base="xs:string">
|
|
143
171
|
<xs:attribute name="comment" type="xs:string"/>
|
|
144
|
-
<xs:attribute name="permissions" type="xs:
|
|
172
|
+
<xs:attribute name="permissions" type="xs:IDREF" use="optional"/>
|
|
145
173
|
</xs:extension>
|
|
146
174
|
</xs:simpleContent>
|
|
147
175
|
</xs:complexType>
|
|
@@ -151,7 +179,7 @@
|
|
|
151
179
|
<xs:simpleContent>
|
|
152
180
|
<xs:extension base="nonEmptyString">
|
|
153
181
|
<xs:attribute name="comment" type="xs:string"/>
|
|
154
|
-
<xs:attribute name="permissions" type="xs:
|
|
182
|
+
<xs:attribute name="permissions" type="xs:IDREF" use="optional"/>
|
|
155
183
|
</xs:extension>
|
|
156
184
|
</xs:simpleContent>
|
|
157
185
|
</xs:complexType>
|
|
@@ -161,7 +189,7 @@
|
|
|
161
189
|
<xs:simpleContent>
|
|
162
190
|
<xs:extension base="nonEmptyString">
|
|
163
191
|
<xs:attribute name="comment" type="xs:string"/>
|
|
164
|
-
<xs:attribute name="permissions" type="xs:
|
|
192
|
+
<xs:attribute name="permissions" type="xs:IDREF" use="optional"/>
|
|
165
193
|
</xs:extension>
|
|
166
194
|
</xs:simpleContent>
|
|
167
195
|
</xs:complexType>
|
|
@@ -171,7 +199,7 @@
|
|
|
171
199
|
<xs:simpleContent>
|
|
172
200
|
<xs:extension base="xs:integer">
|
|
173
201
|
<xs:attribute name="comment" type="xs:string"/>
|
|
174
|
-
<xs:attribute name="permissions" type="xs:
|
|
202
|
+
<xs:attribute name="permissions" type="xs:IDREF" use="optional"/>
|
|
175
203
|
</xs:extension>
|
|
176
204
|
</xs:simpleContent>
|
|
177
205
|
</xs:complexType>
|
|
@@ -180,7 +208,7 @@
|
|
|
180
208
|
<xs:complexType name="hasSegmentBounds_type">
|
|
181
209
|
<xs:sequence />
|
|
182
210
|
<xs:attribute name="comment" type="xs:string"/>
|
|
183
|
-
<xs:attribute name="permissions" type="xs:
|
|
211
|
+
<xs:attribute name="permissions" type="xs:IDREF" use="optional"/>
|
|
184
212
|
<xs:attribute name="segment_start" type="xs:double" use="required"/>
|
|
185
213
|
<xs:attribute name="segment_end" type="xs:double" use="required"/>
|
|
186
214
|
</xs:complexType>
|
|
@@ -190,7 +218,7 @@
|
|
|
190
218
|
<xs:simpleContent>
|
|
191
219
|
<xs:extension base="nonEmptyString">
|
|
192
220
|
<xs:attribute name="comment" type="xs:string"/>
|
|
193
|
-
<xs:attribute name="permissions" type="xs:
|
|
221
|
+
<xs:attribute name="permissions" type="xs:IDREF" use="optional"/>
|
|
194
222
|
</xs:extension>
|
|
195
223
|
</xs:simpleContent>
|
|
196
224
|
</xs:complexType>
|
|
@@ -198,9 +226,9 @@
|
|
|
198
226
|
<!-- resptr_type (link to other resource) value type -->
|
|
199
227
|
<xs:complexType name="resptr_type">
|
|
200
228
|
<xs:simpleContent>
|
|
201
|
-
<xs:extension base="
|
|
229
|
+
<xs:extension base="resptr_datatype">
|
|
202
230
|
<xs:attribute name="comment" type="xs:string"/>
|
|
203
|
-
<xs:attribute name="permissions" type="xs:
|
|
231
|
+
<xs:attribute name="permissions" type="xs:IDREF" use="optional"/>
|
|
204
232
|
</xs:extension>
|
|
205
233
|
</xs:simpleContent>
|
|
206
234
|
</xs:complexType>
|
|
@@ -210,7 +238,7 @@
|
|
|
210
238
|
<xs:simpleContent>
|
|
211
239
|
<xs:extension base="knoratime_type">
|
|
212
240
|
<xs:attribute name="comment" type="xs:string"/>
|
|
213
|
-
<xs:attribute name="permissions" type="xs:
|
|
241
|
+
<xs:attribute name="permissions" type="xs:IDREF" use="optional"/>
|
|
214
242
|
</xs:extension>
|
|
215
243
|
</xs:simpleContent>
|
|
216
244
|
</xs:complexType>
|
|
@@ -220,7 +248,7 @@
|
|
|
220
248
|
<xs:simpleContent>
|
|
221
249
|
<xs:extension base="xs:decimal">
|
|
222
250
|
<xs:attribute name="comment" type="xs:string"/>
|
|
223
|
-
<xs:attribute name="permissions" type="xs:
|
|
251
|
+
<xs:attribute name="permissions" type="xs:IDREF" use="optional"/>
|
|
224
252
|
</xs:extension>
|
|
225
253
|
</xs:simpleContent>
|
|
226
254
|
</xs:complexType>
|
|
@@ -230,7 +258,7 @@
|
|
|
230
258
|
<xs:simpleContent>
|
|
231
259
|
<xs:extension base="knorauri_type">
|
|
232
260
|
<xs:attribute name="comment" type="xs:string"/>
|
|
233
|
-
<xs:attribute name="permissions" type="xs:
|
|
261
|
+
<xs:attribute name="permissions" type="xs:IDREF" use="optional"/>
|
|
234
262
|
</xs:extension>
|
|
235
263
|
</xs:simpleContent>
|
|
236
264
|
</xs:complexType>
|
|
@@ -240,7 +268,7 @@
|
|
|
240
268
|
<xs:simpleContent>
|
|
241
269
|
<xs:extension base="xs:boolean">
|
|
242
270
|
<xs:attribute name="comment" type="xs:string"/>
|
|
243
|
-
<xs:attribute name="permissions" type="xs:
|
|
271
|
+
<xs:attribute name="permissions" type="xs:IDREF" use="optional"/>
|
|
244
272
|
</xs:extension>
|
|
245
273
|
</xs:simpleContent>
|
|
246
274
|
</xs:complexType>
|
|
@@ -250,7 +278,7 @@
|
|
|
250
278
|
<xs:sequence>
|
|
251
279
|
<xs:element name="text" type="text_type" minOccurs="1" maxOccurs="unbounded"/>
|
|
252
280
|
</xs:sequence>
|
|
253
|
-
<xs:attribute name="name" type="
|
|
281
|
+
<xs:attribute name="name" type="string_without_space" use="required"/>
|
|
254
282
|
</xs:complexType>
|
|
255
283
|
|
|
256
284
|
<!-- colorprop_type -->
|
|
@@ -258,7 +286,7 @@
|
|
|
258
286
|
<xs:sequence>
|
|
259
287
|
<xs:element name="color" type="color_type" minOccurs="1" maxOccurs="unbounded"/>
|
|
260
288
|
</xs:sequence>
|
|
261
|
-
<xs:attribute name="name" type="
|
|
289
|
+
<xs:attribute name="name" type="string_without_space" use="required"/>
|
|
262
290
|
</xs:complexType>
|
|
263
291
|
|
|
264
292
|
<!-- dateprop_type -->
|
|
@@ -266,7 +294,7 @@
|
|
|
266
294
|
<xs:sequence>
|
|
267
295
|
<xs:element name="date" type="date_type" minOccurs="1" maxOccurs="unbounded"/>
|
|
268
296
|
</xs:sequence>
|
|
269
|
-
<xs:attribute name="name" type="
|
|
297
|
+
<xs:attribute name="name" type="string_without_space" use="required"/>
|
|
270
298
|
</xs:complexType>
|
|
271
299
|
|
|
272
300
|
<!-- floatprop_type -->
|
|
@@ -274,7 +302,7 @@
|
|
|
274
302
|
<xs:sequence>
|
|
275
303
|
<xs:element name="float" type="float_type" minOccurs="1" maxOccurs="unbounded"/>
|
|
276
304
|
</xs:sequence>
|
|
277
|
-
<xs:attribute name="name" type="
|
|
305
|
+
<xs:attribute name="name" type="string_without_space" use="required"/>
|
|
278
306
|
</xs:complexType>
|
|
279
307
|
|
|
280
308
|
<!-- geonameprop_type -->
|
|
@@ -282,7 +310,7 @@
|
|
|
282
310
|
<xs:sequence>
|
|
283
311
|
<xs:element name="geoname" type="geoname_type" minOccurs="1" maxOccurs="unbounded"/>
|
|
284
312
|
</xs:sequence>
|
|
285
|
-
<xs:attribute name="name" type="
|
|
313
|
+
<xs:attribute name="name" type="string_without_space" use="required"/>
|
|
286
314
|
</xs:complexType>
|
|
287
315
|
|
|
288
316
|
<!-- listprop_type -->
|
|
@@ -290,7 +318,7 @@
|
|
|
290
318
|
<xs:sequence>
|
|
291
319
|
<xs:element name="list" type="list_type" minOccurs="1" maxOccurs="unbounded"/>
|
|
292
320
|
</xs:sequence>
|
|
293
|
-
<xs:attribute name="name" type="
|
|
321
|
+
<xs:attribute name="name" type="string_without_space" use="required"/>
|
|
294
322
|
<xs:attribute name="list" type="xs:string" use="required"/>
|
|
295
323
|
</xs:complexType>
|
|
296
324
|
|
|
@@ -299,7 +327,7 @@
|
|
|
299
327
|
<xs:sequence>
|
|
300
328
|
<xs:element name="integer" type="integer_type" minOccurs="1" maxOccurs="unbounded"/>
|
|
301
329
|
</xs:sequence>
|
|
302
|
-
<xs:attribute name="name" type="
|
|
330
|
+
<xs:attribute name="name" type="string_without_space" use="required"/>
|
|
303
331
|
</xs:complexType>
|
|
304
332
|
|
|
305
333
|
<!-- periodprop_type -->
|
|
@@ -307,7 +335,7 @@
|
|
|
307
335
|
<xs:sequence>
|
|
308
336
|
<xs:element name="period" type="period_type" minOccurs="1" maxOccurs="unbounded"/>
|
|
309
337
|
</xs:sequence>
|
|
310
|
-
<xs:attribute name="name" type="
|
|
338
|
+
<xs:attribute name="name" type="string_without_space" use="required"/>
|
|
311
339
|
</xs:complexType>
|
|
312
340
|
|
|
313
341
|
<!-- resptrprop_type -->
|
|
@@ -315,7 +343,7 @@
|
|
|
315
343
|
<xs:sequence>
|
|
316
344
|
<xs:element name="resptr" type="resptr_type" minOccurs="1" maxOccurs="unbounded"/>
|
|
317
345
|
</xs:sequence>
|
|
318
|
-
<xs:attribute name="name" type="
|
|
346
|
+
<xs:attribute name="name" type="string_without_space" use="required"/>
|
|
319
347
|
</xs:complexType>
|
|
320
348
|
|
|
321
349
|
<!-- timeprop_type -->
|
|
@@ -323,7 +351,7 @@
|
|
|
323
351
|
<xs:sequence>
|
|
324
352
|
<xs:element name="time" type="time_type" minOccurs="1" maxOccurs="unbounded"/>
|
|
325
353
|
</xs:sequence>
|
|
326
|
-
<xs:attribute name="name" type="
|
|
354
|
+
<xs:attribute name="name" type="string_without_space" use="required"/>
|
|
327
355
|
</xs:complexType>
|
|
328
356
|
|
|
329
357
|
<!-- decimalprop_type -->
|
|
@@ -331,7 +359,7 @@
|
|
|
331
359
|
<xs:sequence>
|
|
332
360
|
<xs:element name="decimal" type="decimal_type" minOccurs="1" maxOccurs="unbounded"/>
|
|
333
361
|
</xs:sequence>
|
|
334
|
-
<xs:attribute name="name" type="
|
|
362
|
+
<xs:attribute name="name" type="string_without_space" use="required"/>
|
|
335
363
|
</xs:complexType>
|
|
336
364
|
|
|
337
365
|
<!-- uriprop_type -->
|
|
@@ -339,7 +367,7 @@
|
|
|
339
367
|
<xs:sequence>
|
|
340
368
|
<xs:element name="uri" type="uri_type" minOccurs="1" maxOccurs="unbounded"/>
|
|
341
369
|
</xs:sequence>
|
|
342
|
-
<xs:attribute name="name" type="
|
|
370
|
+
<xs:attribute name="name" type="string_without_space" use="required"/>
|
|
343
371
|
</xs:complexType>
|
|
344
372
|
|
|
345
373
|
<!-- booleanprop_type -->
|
|
@@ -347,7 +375,7 @@
|
|
|
347
375
|
<xs:sequence>
|
|
348
376
|
<xs:element name="boolean" type="boolean_type" minOccurs="1" maxOccurs="1"/>
|
|
349
377
|
</xs:sequence>
|
|
350
|
-
<xs:attribute name="name" type="
|
|
378
|
+
<xs:attribute name="name" type="string_without_space" use="required"/>
|
|
351
379
|
</xs:complexType>
|
|
352
380
|
|
|
353
381
|
<!-- builtin_hasComment_prop_type -->
|
|
@@ -366,14 +394,6 @@
|
|
|
366
394
|
<xs:attribute name="name" type="xs:string" use="required" fixed="hasGeometry"/>
|
|
367
395
|
</xs:complexType>
|
|
368
396
|
|
|
369
|
-
<!-- builtin_isAnnotationOf_prop_type -->
|
|
370
|
-
<xs:complexType name="builtin_isAnnotationOf_prop_type">
|
|
371
|
-
<xs:sequence>
|
|
372
|
-
<xs:element name="resptr" type="resptr_type" minOccurs="1" maxOccurs="1"/>
|
|
373
|
-
</xs:sequence>
|
|
374
|
-
<xs:attribute name="name" type="xs:string" use="required" fixed="isAnnotationOf"/>
|
|
375
|
-
</xs:complexType>
|
|
376
|
-
|
|
377
397
|
<!-- builtin_isRegionOf_prop_type -->
|
|
378
398
|
<xs:complexType name="builtin_isRegionOf_prop_type">
|
|
379
399
|
<xs:sequence>
|
|
@@ -401,8 +421,11 @@
|
|
|
401
421
|
<!-- bitstream tag -->
|
|
402
422
|
<xs:complexType name="bitstream_type">
|
|
403
423
|
<xs:simpleContent>
|
|
404
|
-
<xs:extension base="
|
|
405
|
-
<xs:attribute name="permissions" type="xs:
|
|
424
|
+
<xs:extension base="nonEmptyString_pretty_printed">
|
|
425
|
+
<xs:attribute name="permissions" type="xs:IDREF" use="optional"/>
|
|
426
|
+
<xs:attribute name="license" type="xs:string" use="optional"/>
|
|
427
|
+
<xs:attribute name="copyright-holder" type="xs:string" use="optional"/>
|
|
428
|
+
<xs:attribute name="authorship-id" type="xs:IDREF" use="optional"/>
|
|
406
429
|
</xs:extension>
|
|
407
430
|
</xs:simpleContent>
|
|
408
431
|
</xs:complexType>
|
|
@@ -410,8 +433,11 @@
|
|
|
410
433
|
<!-- iiif-uri tag -->
|
|
411
434
|
<xs:complexType name="iiif_uri_type">
|
|
412
435
|
<xs:simpleContent>
|
|
413
|
-
<xs:extension base="
|
|
414
|
-
<xs:attribute name="permissions" type="xs:
|
|
436
|
+
<xs:extension base="nonEmptyString_pretty_printed">
|
|
437
|
+
<xs:attribute name="permissions" type="xs:IDREF" use="optional"/>
|
|
438
|
+
<xs:attribute name="license" type="xs:string" use="optional"/>
|
|
439
|
+
<xs:attribute name="copyright-holder" type="xs:string" use="optional"/>
|
|
440
|
+
<xs:attribute name="authorship-id" type="xs:IDREF" use="optional"/>
|
|
415
441
|
</xs:extension>
|
|
416
442
|
</xs:simpleContent>
|
|
417
443
|
</xs:complexType>
|
|
@@ -445,23 +471,9 @@
|
|
|
445
471
|
</xs:restriction>
|
|
446
472
|
</xs:simpleType>
|
|
447
473
|
</xs:attribute>
|
|
448
|
-
<xs:attribute name="restype" type="
|
|
474
|
+
<xs:attribute name="restype" type="string_without_space" use="required"/>
|
|
449
475
|
<xs:attribute name="id" type="xs:ID" use="required"/>
|
|
450
|
-
<xs:attribute name="permissions" type="xs:
|
|
451
|
-
<xs:attribute name="iri" type="xs:string" use="optional"/>
|
|
452
|
-
<xs:attribute name="ark" type="xs:string" use="optional"/>
|
|
453
|
-
<xs:attribute name="creation_date" type="xs:dateTime" use="optional"/>
|
|
454
|
-
</xs:complexType>
|
|
455
|
-
|
|
456
|
-
<!-- annotation tag -->
|
|
457
|
-
<xs:complexType name="annotation_type">
|
|
458
|
-
<xs:all>
|
|
459
|
-
<xs:element name="text-prop" type="builtin_hasComment_prop_type" minOccurs="1" maxOccurs="1"/>
|
|
460
|
-
<xs:element name="resptr-prop" type="builtin_isAnnotationOf_prop_type" minOccurs="1" maxOccurs="1"/>
|
|
461
|
-
</xs:all>
|
|
462
|
-
<xs:attribute name="label" type="xs:string" use="required"/>
|
|
463
|
-
<xs:attribute name="id" type="xs:ID" use="required"/>
|
|
464
|
-
<xs:attribute name="permissions" type="xs:NCName" use="optional"/>
|
|
476
|
+
<xs:attribute name="permissions" type="xs:IDREF" use="optional"/>
|
|
465
477
|
<xs:attribute name="iri" type="xs:string" use="optional"/>
|
|
466
478
|
<xs:attribute name="ark" type="xs:string" use="optional"/>
|
|
467
479
|
<xs:attribute name="creation_date" type="xs:dateTime" use="optional"/>
|
|
@@ -470,14 +482,14 @@
|
|
|
470
482
|
<!-- region tag -->
|
|
471
483
|
<xs:complexType name="region_type">
|
|
472
484
|
<xs:all>
|
|
473
|
-
<xs:element name="text-prop" type="builtin_hasComment_prop_type" minOccurs="0"
|
|
485
|
+
<xs:element name="text-prop" type="builtin_hasComment_prop_type" minOccurs="0"/>
|
|
474
486
|
<xs:element name="resptr-prop" type="builtin_isRegionOf_prop_type" minOccurs="1" maxOccurs="1"/>
|
|
475
487
|
<xs:element name="geometry-prop" type="builtin_hasGeometry_prop_type" minOccurs="1" maxOccurs="1"/>
|
|
476
488
|
<xs:element name="color-prop" type="builtin_hasColor_prop_type" minOccurs="1" maxOccurs="1"/>
|
|
477
489
|
</xs:all>
|
|
478
490
|
<xs:attribute name="label" type="xs:string" use="required"/>
|
|
479
491
|
<xs:attribute name="id" type="xs:ID" use="required"/>
|
|
480
|
-
<xs:attribute name="permissions" type="xs:
|
|
492
|
+
<xs:attribute name="permissions" type="xs:IDREF" use="optional"/>
|
|
481
493
|
<xs:attribute name="iri" type="xs:string" use="optional"/>
|
|
482
494
|
<xs:attribute name="ark" type="xs:string" use="optional"/>
|
|
483
495
|
<xs:attribute name="creation_date" type="xs:dateTime" use="optional"/>
|
|
@@ -486,12 +498,12 @@
|
|
|
486
498
|
<!-- link tag -->
|
|
487
499
|
<xs:complexType name="link_type">
|
|
488
500
|
<xs:all>
|
|
489
|
-
<xs:element name="text-prop" type="builtin_hasComment_prop_type" minOccurs="
|
|
501
|
+
<xs:element name="text-prop" type="builtin_hasComment_prop_type" minOccurs="0" maxOccurs="1"/>
|
|
490
502
|
<xs:element name="resptr-prop" type="builtin_hasLinkTo_prop_type" minOccurs="1" maxOccurs="1"/>
|
|
491
503
|
</xs:all>
|
|
492
504
|
<xs:attribute name="label" type="xs:string" use="required"/>
|
|
493
505
|
<xs:attribute name="id" type="xs:ID" use="required"/>
|
|
494
|
-
<xs:attribute name="permissions" type="xs:
|
|
506
|
+
<xs:attribute name="permissions" type="xs:IDREF" use="optional"/>
|
|
495
507
|
<xs:attribute name="iri" type="xs:string" use="optional"/>
|
|
496
508
|
<xs:attribute name="ark" type="xs:string" use="optional"/>
|
|
497
509
|
<xs:attribute name="creation_date" type="xs:dateTime" use="optional"/>
|
|
@@ -510,7 +522,7 @@
|
|
|
510
522
|
</xs:sequence>
|
|
511
523
|
<xs:attribute name="label" type="xs:string" use="required"/>
|
|
512
524
|
<xs:attribute name="id" type="xs:ID" use="required"/>
|
|
513
|
-
<xs:attribute name="permissions" type="xs:
|
|
525
|
+
<xs:attribute name="permissions" type="xs:IDREF" use="optional"/>
|
|
514
526
|
<xs:attribute name="creation_date" type="xs:dateTime" use="optional"/>
|
|
515
527
|
</xs:complexType>
|
|
516
528
|
|
|
@@ -527,13 +539,13 @@
|
|
|
527
539
|
</xs:sequence>
|
|
528
540
|
<xs:attribute name="label" type="xs:string" use="required"/>
|
|
529
541
|
<xs:attribute name="id" type="xs:ID" use="required"/>
|
|
530
|
-
<xs:attribute name="permissions" type="xs:
|
|
542
|
+
<xs:attribute name="permissions" type="xs:IDREF" use="optional"/>
|
|
531
543
|
<xs:attribute name="creation_date" type="xs:dateTime" use="optional"/>
|
|
532
544
|
</xs:complexType>
|
|
533
545
|
|
|
534
546
|
<!-- data type for knora shortcode -->
|
|
535
547
|
<xs:simpleType name="knorashortcode_type">
|
|
536
|
-
<xs:restriction base="xs:
|
|
548
|
+
<xs:restriction base="xs:string">
|
|
537
549
|
<xs:pattern value="[0-9a-fA-F]{4}"/>
|
|
538
550
|
</xs:restriction>
|
|
539
551
|
</xs:simpleType>
|
|
@@ -566,11 +578,22 @@
|
|
|
566
578
|
<xs:attribute name="id" type="xs:ID" use="required"/>
|
|
567
579
|
</xs:complexType>
|
|
568
580
|
|
|
581
|
+
<!-- authorship tag -->
|
|
582
|
+
<xs:complexType name="authorship_type" mixed="true">
|
|
583
|
+
<xs:sequence>
|
|
584
|
+
<xs:element name="author" type="nonEmptyString_pretty_printed" minOccurs="1" maxOccurs="unbounded"/>
|
|
585
|
+
</xs:sequence>
|
|
586
|
+
<xs:attribute name="id" type="xs:ID" use="required"/>
|
|
587
|
+
</xs:complexType>
|
|
588
|
+
|
|
569
589
|
<!-- complete document -->
|
|
570
590
|
<xs:element name="knora">
|
|
571
591
|
<xs:complexType>
|
|
572
592
|
<xs:sequence>
|
|
573
|
-
<xs:
|
|
593
|
+
<xs:choice maxOccurs="unbounded">
|
|
594
|
+
<xs:element name="permissions" type="permissions_type" minOccurs="0" maxOccurs="unbounded"/>
|
|
595
|
+
<xs:element name="authorship" type="authorship_type" minOccurs="0" maxOccurs="unbounded"/>
|
|
596
|
+
</xs:choice>
|
|
574
597
|
<xs:choice maxOccurs="unbounded">
|
|
575
598
|
<xs:element name="resource" type="resource_type" minOccurs="1" maxOccurs="unbounded">
|
|
576
599
|
<xs:unique name="UniqueNameAttr_Resource">
|
|
@@ -578,12 +601,6 @@
|
|
|
578
601
|
<xs:field xpath="@name"/>
|
|
579
602
|
</xs:unique>
|
|
580
603
|
</xs:element>
|
|
581
|
-
<xs:element name="annotation" type="annotation_type" minOccurs="0" maxOccurs="unbounded">
|
|
582
|
-
<xs:unique name="UniqueNameAttr_Annotation">
|
|
583
|
-
<xs:selector xpath=".//*"/>
|
|
584
|
-
<xs:field xpath="@name"/>
|
|
585
|
-
</xs:unique>
|
|
586
|
-
</xs:element>
|
|
587
604
|
<xs:element name="region" type="region_type" minOccurs="0" maxOccurs="unbounded">
|
|
588
605
|
<xs:unique name="UniqueNameAttr_Region">
|
|
589
606
|
<xs:selector xpath=".//*"/>
|
|
@@ -611,6 +628,14 @@
|
|
|
611
628
|
<xs:selector xpath="resource"/>
|
|
612
629
|
<xs:field xpath="@permissions"/>
|
|
613
630
|
</xs:keyref>
|
|
631
|
+
<xs:key name="authorshipId">
|
|
632
|
+
<xs:selector xpath="./authorship"/>
|
|
633
|
+
<xs:field xpath="@id"/>
|
|
634
|
+
</xs:key>
|
|
635
|
+
<xs:keyref name="authorshipIdref" refer="authorshipId">
|
|
636
|
+
<xs:selector xpath="resource"/>
|
|
637
|
+
<xs:field xpath="@authorship-id"/>
|
|
638
|
+
</xs:keyref>
|
|
614
639
|
<xs:unique name="IRI_attribute_of_resource_must_be_unique">
|
|
615
640
|
<xs:selector xpath=".//*"/>
|
|
616
641
|
<xs:field xpath="@iri"/>
|
|
@@ -39,17 +39,6 @@
|
|
|
39
39
|
"labels"
|
|
40
40
|
],
|
|
41
41
|
"additionalProperties": false
|
|
42
|
-
},
|
|
43
|
-
"excelfolderref": {
|
|
44
|
-
"type": "object",
|
|
45
|
-
"properties": {
|
|
46
|
-
"folder": {
|
|
47
|
-
"type": "string"
|
|
48
|
-
}
|
|
49
|
-
},
|
|
50
|
-
"required": [
|
|
51
|
-
"folder"
|
|
52
|
-
]
|
|
53
42
|
}
|
|
54
43
|
},
|
|
55
44
|
"type": "object",
|
|
@@ -69,18 +58,10 @@
|
|
|
69
58
|
"$ref": "#/definitions/langstring"
|
|
70
59
|
},
|
|
71
60
|
"nodes": {
|
|
72
|
-
"
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
"$ref": "#/definitions/node"
|
|
77
|
-
}
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
"type": "object",
|
|
81
|
-
"$ref": "#/definitions/excelfolderref"
|
|
82
|
-
}
|
|
83
|
-
]
|
|
61
|
+
"type": "array",
|
|
62
|
+
"items": {
|
|
63
|
+
"$ref": "#/definitions/node"
|
|
64
|
+
}
|
|
84
65
|
}
|
|
85
66
|
},
|
|
86
67
|
"required": ["name", "labels", "comments", "nodes"],
|