lutaml-model 0.8.187 → 0.8.188
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.
- checksums.yaml +4 -4
- data/.github/workflows/dependent-repos-tools-informational.json +8 -0
- data/.github/workflows/dependent-repos-tools.json +1 -5
- data/.github/workflows/dependent-tests.yml +26 -2
- data/Gemfile +2 -0
- data/Rakefile +6 -0
- data/exe/lutaml-lml-lsp +11 -0
- data/lib/compat/opal/generate_boot.rb +12 -5
- data/lib/compat/opal/lutaml_model_boot.rb +96 -4
- data/lib/lutaml/lml/association_label_resolver.rb +52 -0
- data/lib/lutaml/lml/data_processor/attribute_processing.rb +133 -0
- data/lib/lutaml/lml/data_processor/collection_processing.rb +37 -0
- data/lib/lutaml/lml/data_processor/instance_processing.rb +77 -0
- data/lib/lutaml/lml/data_processor/value_declaration_processing.rb +70 -0
- data/lib/lutaml/lml/data_processor/value_processing.rb +103 -0
- data/lib/lutaml/lml/data_processor/view_processing.rb +26 -0
- data/lib/lutaml/lml/data_processor.rb +66 -0
- data/lib/lutaml/lml/diagnostic.rb +149 -0
- data/lib/lutaml/lml/document_builder.rb +486 -0
- data/lib/lutaml/lml/entity_types.rb +31 -0
- data/lib/lutaml/lml/executor/adapter_helpers.rb +45 -0
- data/lib/lutaml/lml/executor/condition_evaluator.rb +175 -0
- data/lib/lutaml/lml/executor/csv_adapter.rb +89 -0
- data/lib/lutaml/lml/executor/format_adapter.rb +54 -0
- data/lib/lutaml/lml/executor/xml_adapter.rb +102 -0
- data/lib/lutaml/lml/executor.rb +96 -0
- data/lib/lutaml/lml/format/adapter/document.rb +11 -0
- data/lib/lutaml/lml/format/adapter/mapping.rb +31 -0
- data/lib/lutaml/lml/format/adapter/standard_adapter.rb +164 -0
- data/lib/lutaml/lml/format/adapter/transform.rb +11 -0
- data/lib/lutaml/lml/format.rb +34 -0
- data/lib/lutaml/lml/formatter/base.rb +81 -0
- data/lib/lutaml/lml/formatter/canonical.rb +738 -0
- data/lib/lutaml/lml/formatter.rb +11 -0
- data/lib/lutaml/lml/grammar/lml.artifact.json +14993 -0
- data/lib/lutaml/lml/grammar/lml.parg +389 -0
- data/lib/lutaml/lml/grammar.rb +60 -0
- data/lib/lutaml/lml/has_attributes.rb +14 -0
- data/lib/lutaml/lml/import_resolver.rb +96 -0
- data/lib/lutaml/lml/layout/engine.rb +17 -0
- data/lib/lutaml/lml/layout.rb +9 -0
- data/lib/lutaml/lml/literal_value.rb +32 -0
- data/lib/lutaml/lml/lsp/conversions.rb +78 -0
- data/lib/lutaml/lml/lsp/keywords.rb +43 -0
- data/lib/lutaml/lml/lsp/server.rb +380 -0
- data/lib/lutaml/lml/lsp/store.rb +68 -0
- data/lib/lutaml/lml/lsp/transport.rb +53 -0
- data/lib/lutaml/lml/lsp.rb +16 -0
- data/lib/lutaml/lml/model_compiler/enums.rb +170 -0
- data/lib/lutaml/lml/model_compiler/hydration.rb +122 -0
- data/lib/lutaml/lml/model_compiler/serialization_mappings.rb +188 -0
- data/lib/lutaml/lml/model_compiler/string_formats.rb +42 -0
- data/lib/lutaml/lml/model_compiler/validation.rb +65 -0
- data/lib/lutaml/lml/model_compiler.rb +329 -0
- data/lib/lutaml/lml/models/action.rb +10 -0
- data/lib/lutaml/lml/models/association.rb +31 -0
- data/lib/lutaml/lml/models/cardinality.rb +10 -0
- data/lib/lutaml/lml/models/collection.rb +11 -0
- data/lib/lutaml/lml/models/constraint.rb +25 -0
- data/lib/lutaml/lml/models/data_type.rb +43 -0
- data/lib/lutaml/lml/models/derived_field.rb +14 -0
- data/lib/lutaml/lml/models/diagram.rb +22 -0
- data/lib/lutaml/lml/models/document.rb +86 -0
- data/lib/lutaml/lml/models/enum.rb +40 -0
- data/lib/lutaml/lml/models/fidelity.rb +10 -0
- data/lib/lutaml/lml/models/group.rb +11 -0
- data/lib/lutaml/lml/models/instance.rb +28 -0
- data/lib/lutaml/lml/models/instance_collection.rb +18 -0
- data/lib/lutaml/lml/models/instances_export.rb +10 -0
- data/lib/lutaml/lml/models/instances_import.rb +11 -0
- data/lib/lutaml/lml/models/mapping.rb +15 -0
- data/lib/lutaml/lml/models/mapping_rule.rb +16 -0
- data/lib/lutaml/lml/models/member_field.rb +16 -0
- data/lib/lutaml/lml/models/namespace.rb +18 -0
- data/lib/lutaml/lml/models/operation.rb +28 -0
- data/lib/lutaml/lml/models/operation_parameter.rb +12 -0
- data/lib/lutaml/lml/models/package.rb +28 -0
- data/lib/lutaml/lml/models/primitive_type.rb +35 -0
- data/lib/lutaml/lml/models/reference.rb +23 -0
- data/lib/lutaml/lml/models/serialization_mapping.rb +21 -0
- data/lib/lutaml/lml/models/string_format.rb +16 -0
- data/lib/lutaml/lml/models/top_element_attribute.rb +118 -0
- data/lib/lutaml/lml/models/uml_class.rb +87 -0
- data/lib/lutaml/lml/models/value.rb +17 -0
- data/lib/lutaml/lml/models/view_filter.rb +11 -0
- data/lib/lutaml/lml/models/view_import.rb +11 -0
- data/lib/lutaml/lml/parser.rb +19 -0
- data/lib/lutaml/lml/pipeline.rb +73 -0
- data/lib/lutaml/lml/positioned.rb +13 -0
- data/lib/lutaml/lml/preprocessor.rb +132 -0
- data/lib/lutaml/lml/quoting.rb +60 -0
- data/lib/lutaml/lml/source.rb +49 -0
- data/lib/lutaml/lml/source_position.rb +20 -0
- data/lib/lutaml/lml/symbol_index.rb +202 -0
- data/lib/lutaml/lml/transform.rb +119 -0
- data/lib/lutaml/lml/types/text_type.rb +28 -0
- data/lib/lutaml/lml/types.rb +10 -0
- data/lib/lutaml/lml/validator.rb +460 -0
- data/lib/lutaml/lml/view_resolution.rb +32 -0
- data/lib/lutaml/lml/view_resolver.rb +48 -0
- data/lib/lutaml/lml/yaml_parser.rb +17 -0
- data/lib/lutaml/lml.rb +130 -0
- data/lib/lutaml/model/adapter_resolver.rb +21 -2
- data/lib/lutaml/model/config.rb +22 -0
- data/lib/lutaml/model/serialize/format_conversion.rb +8 -6
- data/lib/lutaml/model/version.rb +1 -1
- data/lib/lutaml/xml/adapter/base_adapter.rb +26 -0
- data/lib/lutaml/xml/adapter/moxml_adapter.rb +49 -0
- data/lib/lutaml/xml/adapter/xml_parser.rb +4 -4
- data/lib/lutaml/xml/adapter/xml_serializer.rb +1 -1
- data/lib/lutaml/xml/adapter.rb +5 -0
- data/lib/lutaml/xml/adapter_loader.rb +5 -0
- data/lib/lutaml/xml/format.rb +23 -2
- data/lib/lutaml/xml/leptris/native_emission.rb +6 -1
- data/lib/lutaml/xml/leptris/plan_serializer.rb +5 -1
- data/lib/lutaml/xml/parse_session.rb +8 -1
- data/lib/lutaml/xml/schema/builder/moxml.rb +1 -1
- data/lib/lutaml/xml/schema/builder.rb +1 -1
- data/lib/lutaml/xml/schema/relaxng_schema.rb +1 -1
- data/lib/lutaml/xml/schema/vc_namespace.rb +24 -0
- data/lib/lutaml/xml/schema/xsd/any.rb +4 -0
- data/lib/lutaml/xml/schema/xsd/any_attribute.rb +4 -0
- data/lib/lutaml/xml/schema/xsd/base.rb +7 -0
- data/lib/lutaml/xml/schema/xsd/schema.rb +38 -0
- data/lib/lutaml/xml/schema/xsd/schema_validator.rb +1 -1
- data/lib/lutaml/xml/schema/xsd.rb +1 -0
- data/lib/lutaml/xml/schema/xsd_schema.rb +1 -1
- data/lib/lutaml/xml/serialization/format_conversion.rb +6 -0
- data/lib/lutaml/xml/xsd_validator.rb +1 -1
- data/lutaml-model.gemspec +2 -0
- data/spec/lml/fixtures/dsl/broken_diagram.lutaml +34 -0
- data/spec/lml/fixtures/dsl/diagram.lutaml +4 -0
- data/spec/lml/fixtures/dsl/diagram_attributes.lutaml +6 -0
- data/spec/lml/fixtures/dsl/diagram_blank_definion.lutaml +6 -0
- data/spec/lml/fixtures/dsl/diagram_blank_entities.lutaml +8 -0
- data/spec/lml/fixtures/dsl/diagram_class_assocation.lutaml +29 -0
- data/spec/lml/fixtures/dsl/diagram_class_fields.lutaml +25 -0
- data/spec/lml/fixtures/dsl/diagram_commented_includes.lutaml +5 -0
- data/spec/lml/fixtures/dsl/diagram_comments.lutaml +28 -0
- data/spec/lml/fixtures/dsl/diagram_concept_model.lutaml +132 -0
- data/spec/lml/fixtures/dsl/diagram_data_types.lutaml +44 -0
- data/spec/lml/fixtures/dsl/diagram_definitions.lutaml +25 -0
- data/spec/lml/fixtures/dsl/diagram_includes.lutaml +6 -0
- data/spec/lml/fixtures/dsl/diagram_multiply_classes.lutaml +7 -0
- data/spec/lml/fixtures/dsl/diagram_non_existing_include.lutaml +6 -0
- data/spec/lml/fixtures/dsl/shared.lutaml +5 -0
- data/spec/lml/fixtures/dsl/shared1.lutaml +4 -0
- data/spec/lml/fixtures/generated_dot/AddressClassProfile.dot +170 -0
- data/spec/lml/fixtures/generated_dot/AddressProfile.dot +34 -0
- data/spec/lml/fixtures/generated_dot/address_class_profile_with_associations.dot +127 -0
- data/spec/lml/fixtures/generated_dot/address_profile_with_associations.dot +28 -0
- data/spec/lml/fixtures/generated_dot/document.dot +28 -0
- data/spec/lml/fixtures/generated_dot/document.dot.backup +33 -0
- data/spec/lml/fixtures/generated_dot/document_with_fidelity.dot +27 -0
- data/spec/lml/fixtures/lml/data_s102_check.lml +79 -0
- data/spec/lml/fixtures/lml/data_s158_metadata.lml +28 -0
- data/spec/lml/fixtures/lml/iho_data_models.lml +59 -0
- data/spec/lml/fixtures/lml/iho_s102_check.lml +101 -0
- data/spec/lml/fixtures/mixed_lml/diagram.lml +26 -0
- data/spec/lml/fixtures/mixed_lml/instances.lml +72 -0
- data/spec/lml/fixtures/mixed_lml/model.lml +30 -0
- data/spec/lml/fixtures/real_world/basicdoc-models/AdmonitionType.lutaml +32 -0
- data/spec/lml/fixtures/real_world/basicdoc-models/BasicBlock.lutaml +11 -0
- data/spec/lml/fixtures/real_world/basicdoc-models/BasicDocument.lutaml +41 -0
- data/spec/lml/fixtures/real_world/basicdoc-models/BasicSection.lutaml +38 -0
- data/spec/lml/fixtures/real_world/basicdoc-models/BibliographicItem.lutaml +6 -0
- data/spec/lml/fixtures/real_world/basicdoc-models/FigureBlock.lutaml +65 -0
- data/spec/lml/fixtures/real_world/basicdoc-models/FormattedString.lutaml +12 -0
- data/spec/lml/fixtures/real_world/basicdoc-models/List.lutaml +12 -0
- data/spec/lml/fixtures/real_world/basicdoc-models/OrderedListType.lutaml +32 -0
- data/spec/lml/fixtures/real_world/basicdoc-models/Signature.lutaml +22 -0
- data/spec/lml/fixtures/real_world/basicdoc-models/String.lutaml +2 -0
- data/spec/lml/fixtures/real_world/basicdoc-models/TableBlock.lutaml +60 -0
- data/spec/lml/fixtures/real_world/basicdoc-models/TextElement.lutaml +13 -0
- data/spec/lml/fixtures/real_world/basicdoc-models/Uri.lutaml +7 -0
- data/spec/lml/fixtures/real_world/metanorma-model-iso/BibliographicItem.lutaml +4 -0
- data/spec/lml/fixtures/real_world/metanorma-model-iso/IsoAdmonitionType.lutaml +31 -0
- data/spec/lml/fixtures/real_world/metanorma-model-iso/IsoBibDataExtensionType.lutaml +40 -0
- data/spec/lml/fixtures/real_world/metanorma-model-iso/IsoSections.lutaml +30 -0
- data/spec/lml/fixtures/real_world/metanorma-model-iso/IsoStandardDocument.lutaml +46 -0
- data/spec/lml/fixtures/real_world/metanorma-model-iso/IsoTerm.lutaml +20 -0
- data/spec/lml/fixtures/real_world/metanorma-model-iso/StandardBibDataExtensionType.lutaml +2 -0
- data/spec/lml/fixtures/real_world/metanorma-model-iso/StandardDocument.lutaml +2 -0
- data/spec/lml/fixtures/rs3001/01_class_tail_comment.lml +5 -0
- data/spec/lml/fixtures/rs3001/02_definition_block.lml +9 -0
- data/spec/lml/fixtures/rs3001/03_package_ceramics.lml +20 -0
- data/spec/lml/fixtures/rs3001/04_attribute_definition_form.lml +10 -0
- data/spec/lml/fixtures/rs3001/05_attribute_cardinality_unbounded.lml +10 -0
- data/spec/lml/fixtures/rs3001/06_attribute_values_set.lml +10 -0
- data/spec/lml/fixtures/rs3001/07_attribute_pattern.lml +10 -0
- data/spec/lml/fixtures/rs3001/08_attribute_default_colon.lml +15 -0
- data/spec/lml/fixtures/rs3001/09_value_porcelain.lml +9 -0
- data/spec/lml/fixtures/rs3001/10_enum_glaze_technique.lml +19 -0
- data/spec/lml/fixtures/rs3001/11_enum_values_as_instances.lml +29 -0
- data/spec/lml/fixtures/rs3001/12_instance_named.lml +13 -0
- data/spec/lml/fixtures/rs3001/13_instances_collection_refs.lml +11 -0
- data/spec/lml/fixtures/rs3001/14_require_models.lml +7 -0
- data/spec/lml/fixtures/rs3001/15_comment_line.lml +1 -0
- data/spec/lml/fixtures/rs3001/16_comment_tail.lml +5 -0
- data/spec/lml/fixtures/rs3001/17_comment_documented_class.lml +5 -0
- data/spec/lml/fixtures/rs3001/18_comment_block.lml +4 -0
- data/spec/lml/fixtures/rs3001/19_top_level_instance_definition.lml +21 -0
- data/spec/lml/fixtures/rs3001/20_instance_typed_definition.lml +22 -0
- data/spec/lml/fixtures/rs3001/21_instance_collection_studios.lml +19 -0
- data/spec/lml/fixtures/rs3001/22_instance_collection_tiles.lml +15 -0
- data/spec/lml/fixtures/rs3001/23_reference_cross_collection.lml +11 -0
- data/spec/lml/fixtures/rs3001/24_null_and_empty.lml +15 -0
- data/spec/lml/fixtures/rs3001/25_string_escapes.lml +23 -0
- data/spec/lml/fixtures/rs3001/26_quoted_keys.lml +7 -0
- data/spec/lml/fixtures/test.lutaml +20 -0
- data/spec/lml/fixtures/test_data/components.csv +4 -0
- data/spec/lml/fixtures/test_data/products.xml +18 -0
- data/spec/lml/fixtures/uml/address_class_profile_with_associations.yml +58 -0
- data/spec/lml/fixtures/uml/address_profile_with_associations.yml +31 -0
- data/spec/lml/fixtures/uml/association.yml +11 -0
- data/spec/lml/fixtures/uml/class.yml +28 -0
- data/spec/lml/fixtures/uml/data_type.yml +30 -0
- data/spec/lml/fixtures/uml/diagram.yml +7 -0
- data/spec/lml/fixtures/uml/document.yml +44 -0
- data/spec/lml/fixtures/uml/document_with_fidelity.yml +47 -0
- data/spec/lml/fixtures/uml/enum.yml +14 -0
- data/spec/lml/fixtures/uml/operation.yml +8 -0
- data/spec/lml/fixtures/uml/package.yml +10 -0
- data/spec/lml/fixtures/uml/top_element.yml +11 -0
- data/spec/lml/fixtures/uml/top_element_attribute.yml +10 -0
- data/spec/lml/fixtures/uml/trigger.yml +12 -0
- data/spec/lml/fixtures/uml/value.yml +8 -0
- data/spec/lml/fixtures/view/cycle_a.lutaml +3 -0
- data/spec/lml/fixtures/view/cycle_b.lutaml +3 -0
- data/spec/lml/fixtures/view/import_model.lutaml +3 -0
- data/spec/lml/fixtures/view/import_view.lutaml +3 -0
- data/spec/lml/fixtures/view/import_with_hide.lutaml +4 -0
- data/spec/lml/fixtures/view/import_with_show.lutaml +4 -0
- data/spec/lml/fixtures/view/models/bar.lutaml +3 -0
- data/spec/lml/fixtures/view/models/baz.lutaml +3 -0
- data/spec/lml/fixtures/view/models/foo.lutaml +4 -0
- data/spec/lml/integration/instance_import_export_spec.rb +102 -0
- data/spec/lml/lml_spec_setup.rb +25 -0
- data/spec/lml/lutaml/lml/association_label_resolver_spec.rb +139 -0
- data/spec/lml/lutaml/lml/data_processor_spec.rb +274 -0
- data/spec/lml/lutaml/lml/declarations_spec.rb +337 -0
- data/spec/lml/lutaml/lml/document_builder_registry_spec.rb +52 -0
- data/spec/lml/lutaml/lml/document_builder_spec.rb +99 -0
- data/spec/lml/lutaml/lml/element_visibility_spec.rb +128 -0
- data/spec/lml/lutaml/lml/entity_types_spec.rb +56 -0
- data/spec/lml/lutaml/lml/enum_spec.rb +77 -0
- data/spec/lml/lutaml/lml/executor/adapter_helpers_spec.rb +96 -0
- data/spec/lml/lutaml/lml/executor/condition_evaluator_spec.rb +393 -0
- data/spec/lml/lutaml/lml/executor/csv_adapter_spec.rb +151 -0
- data/spec/lml/lutaml/lml/executor/format_adapter_spec.rb +31 -0
- data/spec/lml/lutaml/lml/executor/xml_adapter_spec.rb +201 -0
- data/spec/lml/lutaml/lml/executor_spec.rb +71 -0
- data/spec/lml/lutaml/lml/format_adapter_spec.rb +272 -0
- data/spec/lml/lutaml/lml/format_autoload_spec.rb +31 -0
- data/spec/lml/lutaml/lml/grammar_spec.rb +581 -0
- data/spec/lml/lutaml/lml/has_attributes_spec.rb +54 -0
- data/spec/lml/lutaml/lml/import_resolver_spec.rb +116 -0
- data/spec/lml/lutaml/lml/instance_hydration_spec.rb +178 -0
- data/spec/lml/lutaml/lml/lsp/server_spec.rb +285 -0
- data/spec/lml/lutaml/lml/model_compiler_spec.rb +406 -0
- data/spec/lml/lutaml/lml/models/association_spec.rb +40 -0
- data/spec/lml/lutaml/lml/models/collection_spec.rb +27 -0
- data/spec/lml/lutaml/lml/models/data_type_spec.rb +34 -0
- data/spec/lml/lutaml/lml/models/diagram_spec.rb +18 -0
- data/spec/lml/lutaml/lml/models/document_spec.rb +64 -0
- data/spec/lml/lutaml/lml/models/enum_spec.rb +42 -0
- data/spec/lml/lutaml/lml/models/inheritance_spec.rb +77 -0
- data/spec/lml/lutaml/lml/models/instance_collection_spec.rb +62 -0
- data/spec/lml/lutaml/lml/models/instance_spec.rb +81 -0
- data/spec/lml/lutaml/lml/models/instances_export_spec.rb +23 -0
- data/spec/lml/lutaml/lml/models/instances_import_spec.rb +28 -0
- data/spec/lml/lutaml/lml/models/package_spec.rb +26 -0
- data/spec/lml/lutaml/lml/models/primitive_type_spec.rb +34 -0
- data/spec/lml/lutaml/lml/models/top_element_attribute_spec.rb +153 -0
- data/spec/lml/lutaml/lml/models/uml_class_spec.rb +70 -0
- data/spec/lml/lutaml/lml/models_version_spec.rb +27 -0
- data/spec/lml/lutaml/lml/operations_spec.rb +59 -0
- data/spec/lml/lutaml/lml/parser_spec.rb +348 -0
- data/spec/lml/lutaml/lml/pipeline_spec.rb +93 -0
- data/spec/lml/lutaml/lml/preprocessor_spec.rb +174 -0
- data/spec/lml/lutaml/lml/property_laws_spec.rb +344 -0
- data/spec/lml/lutaml/lml/real_world_spec.rb +191 -0
- data/spec/lml/lutaml/lml/reference_spec.rb +64 -0
- data/spec/lml/lutaml/lml/round_trip_spec.rb +457 -0
- data/spec/lml/lutaml/lml/rs3001_corpus_spec.rb +83 -0
- data/spec/lml/lutaml/lml/rs3001_syntax_spec.rb +77 -0
- data/spec/lml/lutaml/lml/serialization_mapping_spec.rb +127 -0
- data/spec/lml/lutaml/lml/source_spec.rb +62 -0
- data/spec/lml/lutaml/lml/transform_spec.rb +37 -0
- data/spec/lml/lutaml/lml/types/text_type_spec.rb +43 -0
- data/spec/lml/lutaml/lml/validator_spec.rb +238 -0
- data/spec/lml/lutaml/lml/view_resolver_spec.rb +78 -0
- data/spec/lml/lutaml/lml/view_spec.rb +112 -0
- data/spec/lml/lutaml/parsers/dsl_spec.rb +275 -0
- data/spec/lml/lutaml/parsers/yaml_spec.rb +52 -0
- data/spec/lml/lutaml/qualified_type_spec.rb +33 -0
- data/spec/lutaml/model/adapter_type_unset_restore_spec.rb +61 -0
- data/spec/lutaml/model/custom_bibtex_adapter_spec.rb +4 -1
- data/spec/lutaml/xml/adapter/moxml_lane_spec.rb +112 -0
- data/spec/lutaml/xml/adapter_metadata_default_spec.rb +21 -2
- data/spec/lutaml/xml/adapter_moxml_engine_spec.rb +57 -0
- data/spec/lutaml/xml/leptris/native_emission_plain_model_spec.rb +50 -0
- data/spec/lutaml/xml/plain_model_mapping_resolution_spec.rb +88 -0
- data/spec/lutaml/xml/schema/xsd/vc_versioning_spec.rb +49 -0
- data/spec/lutaml/xml/schema/xsd/xsd_11_constructs_spec.rb +43 -0
- metadata +286 -2
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
digraph G {
|
|
2
|
+
graph [splines="ortho" pad="0.5" ranksep="1.2" nodesep="1.2" rankdir="BT"]
|
|
3
|
+
edge [color="gray50"]
|
|
4
|
+
node [shape="box" fontname="Helvetica-bold"]
|
|
5
|
+
|
|
6
|
+
AddressProfile [
|
|
7
|
+
shape="plain"
|
|
8
|
+
fontname="Helvetica"
|
|
9
|
+
label=<<TABLE BORDER="0" CELLBORDER="1" CELLSPACING="0" CELLPADDING="10">
|
|
10
|
+
<TR>
|
|
11
|
+
<TD><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0">
|
|
12
|
+
<TR><TD ALIGN="CENTER"><B>AddressProfile</B></TD></TR>
|
|
13
|
+
</TABLE>
|
|
14
|
+
</TD>
|
|
15
|
+
</TR>
|
|
16
|
+
|
|
17
|
+
<TR>
|
|
18
|
+
<TD><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0">
|
|
19
|
+
<TR><TD ALIGN="LEFT">+country : iso3166Code[0..*]</TD></TR>
|
|
20
|
+
</TABLE>
|
|
21
|
+
</TD>
|
|
22
|
+
</TR>
|
|
23
|
+
|
|
24
|
+
</TABLE>>]
|
|
25
|
+
|
|
26
|
+
AddressProfile -> AddressComponentProfile [dir="back" label="defines ▶" arrowtail="onormal" arrowhead="odiamond" taillabel="+componentProfile 0..*"]
|
|
27
|
+
AddressProfile -> AddressClassProfile [dir="back" label="defines ▶" arrowtail="onormal" arrowhead="odiamond" taillabel="+addressProfile 0..*"]
|
|
28
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
digraph G {
|
|
2
|
+
graph [splines="ortho" pad="0.5" ranksep="1.2" nodesep="1.2" rankdir="BT"]
|
|
3
|
+
edge [color="gray50"]
|
|
4
|
+
node [shape="box" fontname="Helvetica-bold"]
|
|
5
|
+
|
|
6
|
+
TestEnum [
|
|
7
|
+
shape="plain"
|
|
8
|
+
fontname="Helvetica"
|
|
9
|
+
label=<<TABLE BORDER="0" CELLBORDER="1" CELLSPACING="0" CELLPADDING="10">
|
|
10
|
+
<TR>
|
|
11
|
+
<TD><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0">
|
|
12
|
+
<TR><TD ALIGN="CENTER">«enumeration»</TD></TR>
|
|
13
|
+
<TR><TD ALIGN="CENTER"><B>TestEnum</B></TD></TR>
|
|
14
|
+
</TABLE>
|
|
15
|
+
</TD>
|
|
16
|
+
</TR>
|
|
17
|
+
|
|
18
|
+
<TR>
|
|
19
|
+
<TD><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0">
|
|
20
|
+
<TR><TD ALIGN="LEFT">-TestAttribute[1..*]</TD></TR>
|
|
21
|
+
</TABLE>
|
|
22
|
+
</TD>
|
|
23
|
+
</TR>
|
|
24
|
+
|
|
25
|
+
</TABLE>>]
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
digraph G {
|
|
2
|
+
graph [splines="ortho" pad=0.5 ranksep="1.2.equally" nodesep="1.2.equally"]
|
|
3
|
+
edge [color="gray50"]
|
|
4
|
+
node [shape="box" fontname="Helvetica-bold"]
|
|
5
|
+
|
|
6
|
+
TestEnum [
|
|
7
|
+
shape="plain"
|
|
8
|
+
fontname="Helvetica"
|
|
9
|
+
label=<<TABLE BORDER="0" CELLBORDER="1" CELLSPACING="0" CELLPADDING="10">
|
|
10
|
+
<TR>
|
|
11
|
+
<TD><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0">
|
|
12
|
+
<TR><TD ALIGN="CENTER">«enumeration»</TD></TR>\n<TR><TD ALIGN="CENTER"><B>TestEnum</B></TD></TR>
|
|
13
|
+
</TABLE>
|
|
14
|
+
</TD>
|
|
15
|
+
</TR>
|
|
16
|
+
|
|
17
|
+
<TR>
|
|
18
|
+
<TD><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0">
|
|
19
|
+
<TR><TD ALIGN="LEFT">-TestAttribute[1..*]</TD></TR>
|
|
20
|
+
</TABLE>
|
|
21
|
+
</TD>
|
|
22
|
+
</TR>
|
|
23
|
+
|
|
24
|
+
<TR>
|
|
25
|
+
<TD><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0">
|
|
26
|
+
<TR><TD ALIGN="LEFT"></TD></TR>
|
|
27
|
+
</TABLE></TD>
|
|
28
|
+
</TR>
|
|
29
|
+
|
|
30
|
+
</TABLE>>]
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
digraph G {
|
|
2
|
+
graph [splines="ortho" pad="0.5" ranksep="1.2" nodesep="1.2" rankdir="BT"]
|
|
3
|
+
edge [color="gray50"]
|
|
4
|
+
node [shape="box" fontname="Helvetica-bold"]
|
|
5
|
+
|
|
6
|
+
TestEnum [
|
|
7
|
+
shape="plain"
|
|
8
|
+
fontname="Helvetica"
|
|
9
|
+
label=<<TABLE BORDER="0" CELLBORDER="1" CELLSPACING="0" CELLPADDING="10">
|
|
10
|
+
<TR>
|
|
11
|
+
<TD><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0">
|
|
12
|
+
<TR><TD ALIGN="CENTER">«enumeration»</TD></TR>
|
|
13
|
+
<TR><TD ALIGN="CENTER"><B>TestEnum</B></TD></TR>
|
|
14
|
+
</TABLE>
|
|
15
|
+
</TD>
|
|
16
|
+
</TR>
|
|
17
|
+
|
|
18
|
+
<TR>
|
|
19
|
+
<TD><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0">
|
|
20
|
+
<TR><TD ALIGN="LEFT"></TD></TR>
|
|
21
|
+
</TABLE></TD>
|
|
22
|
+
</TR>
|
|
23
|
+
|
|
24
|
+
</TABLE>>]
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
require "iho_s102_check.lml"
|
|
2
|
+
instance S158Checks {
|
|
3
|
+
type ValidationChecks
|
|
4
|
+
|
|
5
|
+
checks = [
|
|
6
|
+
instance IhoS102Check::ValidationCheck {
|
|
7
|
+
dev_id = "S102_Dev1001"
|
|
8
|
+
classification = CheckClassification::critical_error
|
|
9
|
+
check_message = "No feature information group"
|
|
10
|
+
check_description = "IF the root group does not have exactly one group member named Group_F"
|
|
11
|
+
check_solution = "Add feature information group"
|
|
12
|
+
standards_document_reference = "PS"
|
|
13
|
+
clause_reference = "10.2"
|
|
14
|
+
data_quality_measure = [
|
|
15
|
+
"Logical Consistency",
|
|
16
|
+
"Format Consistency"
|
|
17
|
+
]
|
|
18
|
+
introduced = "2.3.0 draft"
|
|
19
|
+
terminate_if_failure = true
|
|
20
|
+
uploaded_date = "2023-08-24T00:00:00"
|
|
21
|
+
old_dev_id = "S102_1004"
|
|
22
|
+
},
|
|
23
|
+
|
|
24
|
+
instance IhoS102Check::ValidationCheck {
|
|
25
|
+
dev_id = "S102_Dev1002"
|
|
26
|
+
classification = CheckClassification::critical_error
|
|
27
|
+
check_message = "Mandatory General Metadata attribute missing"
|
|
28
|
+
check_description = "FOR EACH attribute in the PS Table 8 with multiplicity lower bound = 1, WHERE an HDF5 attribute with the identical camel case name does not exist in the root group"
|
|
29
|
+
check_solution = "Add missing general metadata attribute"
|
|
30
|
+
standards_document_reference = "PS"
|
|
31
|
+
clause_reference = "Table 8 (Root group attributes)"
|
|
32
|
+
data_quality_measure = [
|
|
33
|
+
"Logical Consistency",
|
|
34
|
+
"Format Consistency"
|
|
35
|
+
]
|
|
36
|
+
introduced = "2.3.0 draft"
|
|
37
|
+
terminate_if_failure = true
|
|
38
|
+
uploaded_date = "2023-08-24T00:00:00"
|
|
39
|
+
old_dev_id = "S102_1005"
|
|
40
|
+
},
|
|
41
|
+
|
|
42
|
+
instance IhoS102Check::ValidationCheck {
|
|
43
|
+
dev_id = "S102_Dev1009"
|
|
44
|
+
classification = CheckClassification::critical_error
|
|
45
|
+
check_message = "S-102 must use one of the CRS in Table 1"
|
|
46
|
+
check_description = "IF attribute horizontalCRS ≠ one of the CRS EPSG codes in Table 1 of the PS"
|
|
47
|
+
check_solution = "Correct horizontalCRS value"
|
|
48
|
+
standards_document_reference = "PS"
|
|
49
|
+
clause_reference = "Table 1 (S-102 Coordinate Reference Systems), Table 8"
|
|
50
|
+
data_quality_measure = [
|
|
51
|
+
"Logical Consistency",
|
|
52
|
+
"Conceptual Consistency"
|
|
53
|
+
]
|
|
54
|
+
introduced = "2.3.0 draft"
|
|
55
|
+
uploaded_date = "2023-08-24T00:00:00"
|
|
56
|
+
old_dev_id = "S102_1012"
|
|
57
|
+
},
|
|
58
|
+
|
|
59
|
+
instance IhoS102Check::ValidationCheck {
|
|
60
|
+
dev_id = "S102_Dev1010"
|
|
61
|
+
classification = CheckClassification::warning
|
|
62
|
+
check_message = "Attribute nameOfHorizontalCRS must be populated with the name of the projected CRS"
|
|
63
|
+
check_description = "IF attribute nameOfHorizontalCRS is not populated"
|
|
64
|
+
check_solution = "Populate nameOfHorizontalCRS"
|
|
65
|
+
standards_document_reference = "PS"
|
|
66
|
+
clause_reference = "Table 8"
|
|
67
|
+
data_quality_measure = [
|
|
68
|
+
"Logical Consistency",
|
|
69
|
+
"Conceptual Consistency"
|
|
70
|
+
]
|
|
71
|
+
introduced = "2.3.0 draft"
|
|
72
|
+
prerequisites = [
|
|
73
|
+
"S102_Dev1009"
|
|
74
|
+
]
|
|
75
|
+
uploaded_date = "2023-08-24T00:00:00"
|
|
76
|
+
old_dev_id = "S102_1013"
|
|
77
|
+
}
|
|
78
|
+
]
|
|
79
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
require "iho_data_models.lml"
|
|
2
|
+
instance S158Metadata {
|
|
3
|
+
instance IhoDataModels::IhoMetadata {
|
|
4
|
+
document_number = "S-158:102"
|
|
5
|
+
title = "Bathymetric Surface Validation Checks"
|
|
6
|
+
document_type = "Standard"
|
|
7
|
+
document_stage = "Working"
|
|
8
|
+
edition = "0.1.0"
|
|
9
|
+
issued_date = "2024-10-15T00:00:00"
|
|
10
|
+
copyright_year = "2024-10-15T00:00:00"
|
|
11
|
+
committee = "HSSC"
|
|
12
|
+
wg_pt = "S100WG/S-100 Validation Checks"
|
|
13
|
+
|
|
14
|
+
compliant_standards = [
|
|
15
|
+
instance CompliantStandard {
|
|
16
|
+
title = "S-102 PS"
|
|
17
|
+
based = "2.3.0 (Aug. 2023, unpub.)"
|
|
18
|
+
# applied_without_revision = ""
|
|
19
|
+
},
|
|
20
|
+
|
|
21
|
+
instance CompliantStandard {
|
|
22
|
+
title = "S-102 FC"
|
|
23
|
+
based = "???"
|
|
24
|
+
# applied_without_revision = ""
|
|
25
|
+
}
|
|
26
|
+
]
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
models IhoDataModels {
|
|
2
|
+
class IhoMetadata {
|
|
3
|
+
attribute document_number {
|
|
4
|
+
type String
|
|
5
|
+
cardinality 1
|
|
6
|
+
}
|
|
7
|
+
attribute title {
|
|
8
|
+
type String
|
|
9
|
+
cardinality 1
|
|
10
|
+
}
|
|
11
|
+
attribute document_type {
|
|
12
|
+
type String
|
|
13
|
+
cardinality 1
|
|
14
|
+
}
|
|
15
|
+
attribute document_stage {
|
|
16
|
+
type String
|
|
17
|
+
cardinality 1
|
|
18
|
+
}
|
|
19
|
+
attribute edition {
|
|
20
|
+
type String
|
|
21
|
+
cardinality 1
|
|
22
|
+
}
|
|
23
|
+
attribute issued_date {
|
|
24
|
+
type date_time
|
|
25
|
+
cardinality 1
|
|
26
|
+
}
|
|
27
|
+
attribute copyright_year {
|
|
28
|
+
type String
|
|
29
|
+
cardinality 1
|
|
30
|
+
}
|
|
31
|
+
attribute committee {
|
|
32
|
+
type String
|
|
33
|
+
cardinality 1
|
|
34
|
+
}
|
|
35
|
+
attribute wg_pt {
|
|
36
|
+
type String
|
|
37
|
+
cardinality 1
|
|
38
|
+
}
|
|
39
|
+
attribute compliant_standards {
|
|
40
|
+
type CompliantStandard
|
|
41
|
+
cardinality 0..n
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
class CompliantStandard {
|
|
46
|
+
attribute title {
|
|
47
|
+
type String
|
|
48
|
+
cardinality 1
|
|
49
|
+
}
|
|
50
|
+
attribute based {
|
|
51
|
+
type String
|
|
52
|
+
cardinality 1
|
|
53
|
+
}
|
|
54
|
+
attribute applied_without_revision {
|
|
55
|
+
type Boolean
|
|
56
|
+
cardinality 0..1
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
models IhoS102Check {
|
|
2
|
+
class ValidationChecks {
|
|
3
|
+
attribute checks {
|
|
4
|
+
type ValidationCheck
|
|
5
|
+
cardinality 0..n
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
class ValidationCheck {
|
|
10
|
+
attribute dev_id {
|
|
11
|
+
type String
|
|
12
|
+
description "Dev ID: Development identifier for the check"
|
|
13
|
+
cardinality 1
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
attribute check_id {
|
|
17
|
+
type String
|
|
18
|
+
description "Check ID: Public identifier for the check"
|
|
19
|
+
cardinality 0..1
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
attribute classification {
|
|
23
|
+
type Classification
|
|
24
|
+
cardinality 1
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
attribute check_message {
|
|
28
|
+
type String
|
|
29
|
+
description "Brief description of the error condition"
|
|
30
|
+
cardinality 0..1
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
attribute check_description {
|
|
34
|
+
type String
|
|
35
|
+
description "Detailed description of when the check applies"
|
|
36
|
+
cardinality 0..1
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
attribute check_solution {
|
|
40
|
+
type String
|
|
41
|
+
description "How to resolve the issue"
|
|
42
|
+
cardinality 0..1
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
attribute standards_document_reference {
|
|
46
|
+
type String
|
|
47
|
+
cardinality 0..1
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
attribute clause_reference {
|
|
51
|
+
type String
|
|
52
|
+
cardinality 0..1
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
attribute data_quality_measure {
|
|
56
|
+
type String
|
|
57
|
+
cardinality 0..n
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
attribute introduced {
|
|
61
|
+
type String
|
|
62
|
+
description "Version where check was introduced"
|
|
63
|
+
cardinality 0..1
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
attribute modified {
|
|
67
|
+
type String
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
attribute deleted {
|
|
71
|
+
type String
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
attribute prerequisites {
|
|
75
|
+
type reference:(ValidationCheck.dev_id)
|
|
76
|
+
cardinality 0..n
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
attribute terminate_if_failure {
|
|
80
|
+
type Boolean
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
attribute uploaded_date {
|
|
84
|
+
type date_time
|
|
85
|
+
description "Uploaded date (Internal tracking information)"
|
|
86
|
+
cardinality 1
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
attribute old_dev_id {
|
|
90
|
+
type String
|
|
91
|
+
description "Old Dev_ID (internal tracking)"
|
|
92
|
+
cardinality 0..1
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
attribute notes {
|
|
96
|
+
type String
|
|
97
|
+
description "Notes (internal)"
|
|
98
|
+
cardinality 0..1
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
diagram MyView {
|
|
2
|
+
title "my diagram"
|
|
3
|
+
|
|
4
|
+
class AddressClassProfile {
|
|
5
|
+
definition {
|
|
6
|
+
this is multiline with `ascidoc`
|
|
7
|
+
comments
|
|
8
|
+
and list
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
+addressClassProfile: CharacterString [0..1]
|
|
12
|
+
attribute address {
|
|
13
|
+
type String
|
|
14
|
+
description "Street address"
|
|
15
|
+
cardinality 1
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
class AttributeProfile {
|
|
20
|
+
imlicistAttributeProfile: CharacterString [0..1] {
|
|
21
|
+
definition { this is attribute definition
|
|
22
|
+
with multiply lines
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
instances {
|
|
2
|
+
collection "test_suite_1" {
|
|
3
|
+
includes [
|
|
4
|
+
"laptop_123",
|
|
5
|
+
"desktop_1",
|
|
6
|
+
"desktop_2"
|
|
7
|
+
]
|
|
8
|
+
|
|
9
|
+
validation {
|
|
10
|
+
condition "count >= 3"
|
|
11
|
+
condition "all? { |i| i.components.count > 0 }"
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
collection "test_suite_2" {
|
|
16
|
+
includes [
|
|
17
|
+
"gaming_pc"
|
|
18
|
+
]
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
import {
|
|
22
|
+
xml "test_data/products.xml" {
|
|
23
|
+
map_to Product
|
|
24
|
+
where "/product"
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
csv "test_data/components.csv" {
|
|
28
|
+
map_to Component
|
|
29
|
+
columns {
|
|
30
|
+
id = "component_id"
|
|
31
|
+
type = "component_type"
|
|
32
|
+
quantity = "count"
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export {
|
|
38
|
+
format xml {
|
|
39
|
+
file "output/products.xml"
|
|
40
|
+
indent true
|
|
41
|
+
encoding "UTF-8"
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
format step {
|
|
45
|
+
file "output/products.stp"
|
|
46
|
+
reference_format "#%{id}"
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
Product "base_computer" {
|
|
51
|
+
template {
|
|
52
|
+
components = [
|
|
53
|
+
Component "base_cpu" {
|
|
54
|
+
type = "electronic"
|
|
55
|
+
quantity = 1
|
|
56
|
+
}
|
|
57
|
+
]
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
Product "gaming_pc" extends "base_computer" {
|
|
62
|
+
name = "Gaming PC"
|
|
63
|
+
|
|
64
|
+
components += [
|
|
65
|
+
Component "gpu_1" {
|
|
66
|
+
id = "GPU001"
|
|
67
|
+
type = "electronic"
|
|
68
|
+
quantity = 1
|
|
69
|
+
}
|
|
70
|
+
]
|
|
71
|
+
}
|
|
72
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
models IhoS102Check {
|
|
2
|
+
class ValidationChecks < Array {
|
|
3
|
+
member_type ValidationCheck
|
|
4
|
+
member_unique dev_id
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
class ValidationCheck {
|
|
8
|
+
attribute dev_id {
|
|
9
|
+
type String
|
|
10
|
+
description "Dev ID: Development identifier for the check"
|
|
11
|
+
cardinality 1
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
+classification: Classification [1]
|
|
15
|
+
|
|
16
|
+
attribute check_message {
|
|
17
|
+
type String
|
|
18
|
+
description "Brief description of the error condition"
|
|
19
|
+
cardinality 0..1
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
data_quality_measure: String [0..n]
|
|
23
|
+
|
|
24
|
+
attribute old_dev_id {
|
|
25
|
+
type String
|
|
26
|
+
description "Old Dev_ID (internal tracking)"
|
|
27
|
+
cardinality 0..1
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
enum AdmonitionType {
|
|
2
|
+
definition {
|
|
3
|
+
Subclass of admonition determining how it is to be rendered.
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
warning {
|
|
7
|
+
definition {
|
|
8
|
+
Warning to reader, note of risk to be avoided.
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
note {
|
|
12
|
+
definition {
|
|
13
|
+
Supplementary, explanatory information.
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
tip {
|
|
17
|
+
definition {
|
|
18
|
+
Instructive information to assist in the fulfilment of tasks related to content.
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
important {
|
|
22
|
+
definition {
|
|
23
|
+
Note to reader of something crucial to be borne in mind.
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
caution {
|
|
27
|
+
definition {
|
|
28
|
+
Caution to reader, note of potential surprise or difficulty.
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
class BasicDocument {
|
|
2
|
+
*|
|
|
3
|
+
Diagram: BasicDocument
|
|
4
|
+
DateCreate: 28/07/2018
|
|
5
|
+
Description: BasicDocument / SecureDoc is a family of document models that forms the basis of Metanorma IsoDoc (via Metanorma StandardDocument), which is used to represent ISO Standards and similarly structured standards.
|
|
6
|
+
It is also the document model that Selagraph operates on.
|
|
7
|
+
The Relaton Bibliography UML models used in these models are located here: Relaton BibModels.
|
|
8
|
+
BasicDocument itself is a document model that can serve as a transit data structure for document conversion, such as taking input from AsciiDoc or Markdown and converting them into an output format, such as Metanorma IsoDoc
|
|
9
|
+
|
|
10
|
+
History of changes:
|
|
11
|
+
> 22/08/2018
|
|
12
|
+
- diagram configuration updated
|
|
13
|
+
- update of the class "VersionInfo"
|
|
14
|
+
> 11/12/2018
|
|
15
|
+
- remove VersionInfo, appears in BibData instead
|
|
16
|
+
|*
|
|
17
|
+
|
|
18
|
+
definition {
|
|
19
|
+
Class modelling a basic document.
|
|
20
|
+
}
|
|
21
|
+
+identifier: UniqueIdentifier {
|
|
22
|
+
definition {
|
|
23
|
+
A globally unique identifier for the document in an agreed identifier schema. The identifier is to be used for tracking interactions with the document without depending on formal document registries; it would be exemplified by a GUID, rather than a document registry identifier such as "`ISO 639`", which belongs to `bibdata`.
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
+bibdata: BibData {
|
|
27
|
+
definition {
|
|
28
|
+
A bibliographic description, capturing bibliographic metadata about the document itself, including authors, title, and date of production.
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
+sections: BasicSection[1..*] {
|
|
32
|
+
definition {
|
|
33
|
+
Hierarchically arranged units of textual content within the document.
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
+integrityValue: IntegrityValue[0..*] {
|
|
37
|
+
definition {
|
|
38
|
+
A digital signature of the contribution.
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
class BasicSection {
|
|
2
|
+
definition {
|
|
3
|
+
Group of blocks within text, which is a leaf node in the hierarchical organisation of text (does not contain any sections of its own).
|
|
4
|
+
}
|
|
5
|
+
+title: TextElement[0..*] {
|
|
6
|
+
definition {
|
|
7
|
+
Title of the section.
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
+id: String[0..1] {
|
|
11
|
+
definition {
|
|
12
|
+
Identifier for the section, to be used for cross-references within the document. (Citations of references are modelled as cross-references to the corresponding bibliographical item in the References section.)
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
+language: Iso639Code[0..*] {
|
|
16
|
+
definition {
|
|
17
|
+
Language tags for the section, coded as ISO 639 codes.
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
+script: Iso15924Code[0..*] {
|
|
21
|
+
definition {
|
|
22
|
+
Script tags for the section, coded as ISO 15924 codes.
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
+blocks: BasicBlock[0..*] {
|
|
26
|
+
definition {
|
|
27
|
+
Blocks, containing the textual content of the section
|
|
28
|
+
(but excluding subsections, which are only present in Hierarchical Sections).
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
+notes: NoteBlock[0..*] {
|
|
32
|
+
definition {
|
|
33
|
+
Any notes whose scope is the entire section, rather than a specific block.
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
|