dcc 0.2.0
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 +7 -0
- data/.gitignore +16 -0
- data/.rspec +3 -0
- data/.rubocop.yml +16 -0
- data/.rubocop_todo.yml +10 -0
- data/CHANGELOG.adoc +54 -0
- data/CONTRIBUTING.adoc +64 -0
- data/Gemfile +25 -0
- data/LICENSE +21 -0
- data/README.adoc +69 -0
- data/Rakefile +13 -0
- data/dcc.gemspec +41 -0
- data/docs/cli-reference.adoc +67 -0
- data/docs/getting-started.adoc +117 -0
- data/docs/schema-versions.adoc +65 -0
- data/examples/build_minimal_dcc.rb +23 -0
- data/examples/convert_all_formats.rb +19 -0
- data/examples/parse_and_inspect.rb +19 -0
- data/examples/quantity_math_demo.rb +32 -0
- data/examples/validate_full.rb +27 -0
- data/exe/dcc +7 -0
- data/lib/dcc/base/administrative_data.rb +43 -0
- data/lib/dcc/base/byte_data.rb +36 -0
- data/lib/dcc/base/calibration_laboratory.rb +29 -0
- data/lib/dcc/base/comment.rb +23 -0
- data/lib/dcc/base/condition.rb +34 -0
- data/lib/dcc/base/contact.rb +38 -0
- data/lib/dcc/base/contact_not_strict.rb +38 -0
- data/lib/dcc/base/core_data.rb +44 -0
- data/lib/dcc/base/data.rb +42 -0
- data/lib/dcc/base/digital_calibration_certificate.rb +32 -0
- data/lib/dcc/base/equipment_class.rb +24 -0
- data/lib/dcc/base/formula.rb +33 -0
- data/lib/dcc/base/hash_type.rb +34 -0
- data/lib/dcc/base/identification.rb +27 -0
- data/lib/dcc/base/identifications.rb +27 -0
- data/lib/dcc/base/influence_condition.rb +16 -0
- data/lib/dcc/base/influence_condition_list.rb +40 -0
- data/lib/dcc/base/item.rb +38 -0
- data/lib/dcc/base/item_list.rb +38 -0
- data/lib/dcc/base/list.rb +44 -0
- data/lib/dcc/base/location.rb +36 -0
- data/lib/dcc/base/measurement_meta_data.rb +15 -0
- data/lib/dcc/base/measurement_meta_data_list.rb +27 -0
- data/lib/dcc/base/measurement_result.rb +41 -0
- data/lib/dcc/base/measurement_result_list.rb +28 -0
- data/lib/dcc/base/measuring_equipment.rb +41 -0
- data/lib/dcc/base/measuring_equipment_list.rb +38 -0
- data/lib/dcc/base/quantity.rb +61 -0
- data/lib/dcc/base/ref_type_definition.rb +36 -0
- data/lib/dcc/base/ref_type_definition_list.rb +21 -0
- data/lib/dcc/base/resp_person.rb +38 -0
- data/lib/dcc/base/resp_person_list.rb +27 -0
- data/lib/dcc/base/result.rb +31 -0
- data/lib/dcc/base/result_list.rb +27 -0
- data/lib/dcc/base/rich_content.rb +34 -0
- data/lib/dcc/base/software.rb +35 -0
- data/lib/dcc/base/software_list.rb +27 -0
- data/lib/dcc/base/statement.rb +50 -0
- data/lib/dcc/base/statement_list.rb +27 -0
- data/lib/dcc/base/string_with_lang.rb +24 -0
- data/lib/dcc/base/text.rb +33 -0
- data/lib/dcc/base/used_method.rb +31 -0
- data/lib/dcc/base/used_method_list.rb +27 -0
- data/lib/dcc/base/xml_blob.rb +20 -0
- data/lib/dcc/base.rb +58 -0
- data/lib/dcc/builder/dsl.rb +10 -0
- data/lib/dcc/builder/session.rb +170 -0
- data/lib/dcc/builder.rb +34 -0
- data/lib/dcc/cli/cli.rb +149 -0
- data/lib/dcc/cli/formatters.rb +77 -0
- data/lib/dcc/cli.rb +7 -0
- data/lib/dcc/common_elements.rb +20 -0
- data/lib/dcc/context_configuration.rb +167 -0
- data/lib/dcc/context_options.rb +47 -0
- data/lib/dcc/convert/csv.rb +129 -0
- data/lib/dcc/convert/html.rb +127 -0
- data/lib/dcc/convert/json.rb +62 -0
- data/lib/dcc/convert/result.rb +51 -0
- data/lib/dcc/convert/yaml.rb +21 -0
- data/lib/dcc/convert.rb +14 -0
- data/lib/dcc/diff/change.rb +21 -0
- data/lib/dcc/diff/result.rb +58 -0
- data/lib/dcc/diff.rb +83 -0
- data/lib/dcc/error.rb +54 -0
- data/lib/dcc/extract/file.rb +143 -0
- data/lib/dcc/extract/ring.rb +28 -0
- data/lib/dcc/extract.rb +9 -0
- data/lib/dcc/i18n/text_lookup.rb +67 -0
- data/lib/dcc/i18n.rb +12 -0
- data/lib/dcc/inspect/report.rb +139 -0
- data/lib/dcc/inspect.rb +9 -0
- data/lib/dcc/migrate.rb +41 -0
- data/lib/dcc/namespace/dcc.rb +30 -0
- data/lib/dcc/namespace/dsig.rb +15 -0
- data/lib/dcc/namespace/math_ml.rb +14 -0
- data/lib/dcc/namespace/qudt.rb +15 -0
- data/lib/dcc/namespace/si.rb +26 -0
- data/lib/dcc/namespace.rb +18 -0
- data/lib/dcc/plugin/registry.rb +45 -0
- data/lib/dcc/plugin.rb +42 -0
- data/lib/dcc/quantity_format/formatter.rb +90 -0
- data/lib/dcc/quantity_format.rb +10 -0
- data/lib/dcc/quantity_math/quantity.rb +46 -0
- data/lib/dcc/quantity_math/real.rb +116 -0
- data/lib/dcc/quantity_math.rb +14 -0
- data/lib/dcc/schema/resources/dcc/dsi/v1.0.1.xsd +415 -0
- data/lib/dcc/schema/resources/dcc/dsi/v1.3.0.xsd +814 -0
- data/lib/dcc/schema/resources/dcc/dsi/v1.3.1.xsd +814 -0
- data/lib/dcc/schema/resources/dcc/dsi/v2.0.0.xsd +869 -0
- data/lib/dcc/schema/resources/dcc/dsi/v2.1.0.xsd +1031 -0
- data/lib/dcc/schema/resources/dcc/dsi/v2.2.1.xsd +1574 -0
- data/lib/dcc/schema/resources/dcc/qudt/v2.2.1.xsd +44 -0
- data/lib/dcc/schema/resources/dcc/v2.1.0/dcc.xsd +650 -0
- data/lib/dcc/schema/resources/dcc/v2.1.1/dcc.xsd +669 -0
- data/lib/dcc/schema/resources/dcc/v2.2.0/dcc.xsd +730 -0
- data/lib/dcc/schema/resources/dcc/v2.3.0/dcc.xsd +708 -0
- data/lib/dcc/schema/resources/dcc/v2.4.0/dcc.xsd +725 -0
- data/lib/dcc/schema/resources/dcc/v3.0.0/dcc.xsd +749 -0
- data/lib/dcc/schema/resources/dcc/v3.1.0/dcc.xsd +843 -0
- data/lib/dcc/schema/resources/dcc/v3.1.1/dcc.xsd +843 -0
- data/lib/dcc/schema/resources/dcc/v3.1.2/dcc.xsd +844 -0
- data/lib/dcc/schema/resources/dcc/v3.2.0/dcc.xsd +940 -0
- data/lib/dcc/schema/resources/dcc/v3.2.1/dcc.xsd +963 -0
- data/lib/dcc/schema/resources/dcc/v3.3.0/dcc.xsd +1008 -0
- data/lib/dcc/schema/resources/dcc/xmldsig-core-schema.xsd +312 -0
- data/lib/dcc/schema/resources/dsi/qudt/v2.2.1.xsd +44 -0
- data/lib/dcc/schema/resources/dsi/v1.0.1/SI_Format.xsd +415 -0
- data/lib/dcc/schema/resources/dsi/v1.3.0/SI_Format.xsd +814 -0
- data/lib/dcc/schema/resources/dsi/v1.3.1/SI_Format.xsd +814 -0
- data/lib/dcc/schema/resources/dsi/v2.0.0/SI_Format.xsd +869 -0
- data/lib/dcc/schema/resources/dsi/v2.1.0/SI_Format.xsd +1031 -0
- data/lib/dcc/schema/resources/dsi/v2.2.1/SI_Format.xsd +1574 -0
- data/lib/dcc/schema/resources/qudt/qudt.xsd +44 -0
- data/lib/dcc/schema/resources/schematron/dcc.sch +523 -0
- data/lib/dcc/schema/resources/schematron/dcc.svrl +2302 -0
- data/lib/dcc/schema/resources/xmldsig/xmldsig-core-schema.xsd +312 -0
- data/lib/dcc/schema/version.rb +94 -0
- data/lib/dcc/schema.rb +35 -0
- data/lib/dcc/server/app.rb +133 -0
- data/lib/dcc/server/storage/entry.rb +15 -0
- data/lib/dcc/server/storage/memory.rb +57 -0
- data/lib/dcc/server/storage.rb +13 -0
- data/lib/dcc/server.rb +33 -0
- data/lib/dcc/si/base/complex.rb +43 -0
- data/lib/dcc/si/base/complex_list_xml_list.rb +39 -0
- data/lib/dcc/si/base/constant.rb +39 -0
- data/lib/dcc/si/base/coverage_interval_mu.rb +31 -0
- data/lib/dcc/si/base/expanded_mu.rb +29 -0
- data/lib/dcc/si/base/expanded_unc_xml_list.rb +30 -0
- data/lib/dcc/si/base/hybrid.rb +42 -0
- data/lib/dcc/si/base/measurement_uncertainty_univariate.rb +28 -0
- data/lib/dcc/si/base/real.rb +48 -0
- data/lib/dcc/si/base/real_list_xml_list.rb +45 -0
- data/lib/dcc/si/base/si_list.rb +37 -0
- data/lib/dcc/si/base/standard_mu.rb +25 -0
- data/lib/dcc/si/base.rb +24 -0
- data/lib/dcc/si/common_elements.rb +13 -0
- data/lib/dcc/si/namespace.rb +7 -0
- data/lib/dcc/si/v1/common_elements.rb +13 -0
- data/lib/dcc/si/v1/complex.rb +8 -0
- data/lib/dcc/si/v1/complex_list_xml_list.rb +8 -0
- data/lib/dcc/si/v1/configuration.rb +13 -0
- data/lib/dcc/si/v1/constant.rb +8 -0
- data/lib/dcc/si/v1/coverage_interval_mu.rb +8 -0
- data/lib/dcc/si/v1/expanded_mu.rb +8 -0
- data/lib/dcc/si/v1/expanded_unc.rb +23 -0
- data/lib/dcc/si/v1/expanded_unc_xml_list.rb +8 -0
- data/lib/dcc/si/v1/hybrid.rb +8 -0
- data/lib/dcc/si/v1/measurement_uncertainty_univariate.rb +8 -0
- data/lib/dcc/si/v1/namespace.rb +9 -0
- data/lib/dcc/si/v1/real.rb +8 -0
- data/lib/dcc/si/v1/real_list_xml_list.rb +8 -0
- data/lib/dcc/si/v1/si_list.rb +8 -0
- data/lib/dcc/si/v1/standard_mu.rb +8 -0
- data/lib/dcc/si/v1.rb +46 -0
- data/lib/dcc/si/v2/common_elements.rb +13 -0
- data/lib/dcc/si/v2/complex.rb +8 -0
- data/lib/dcc/si/v2/complex_list_xml_list.rb +8 -0
- data/lib/dcc/si/v2/configuration.rb +13 -0
- data/lib/dcc/si/v2/constant.rb +8 -0
- data/lib/dcc/si/v2/coverage_interval_mu.rb +8 -0
- data/lib/dcc/si/v2/coverage_interval_mu_xml_list.rb +24 -0
- data/lib/dcc/si/v2/expanded_mu.rb +8 -0
- data/lib/dcc/si/v2/expanded_mu_xml_list.rb +22 -0
- data/lib/dcc/si/v2/expanded_unc_xml_list.rb +8 -0
- data/lib/dcc/si/v2/hybrid.rb +8 -0
- data/lib/dcc/si/v2/measurement_uncertainty_univariate.rb +8 -0
- data/lib/dcc/si/v2/namespace.rb +9 -0
- data/lib/dcc/si/v2/real.rb +8 -0
- data/lib/dcc/si/v2/real_list_xml_list.rb +8 -0
- data/lib/dcc/si/v2/si_list.rb +8 -0
- data/lib/dcc/si/v2/standard_mu.rb +8 -0
- data/lib/dcc/si/v2/standard_mu_xml_list.rb +18 -0
- data/lib/dcc/si/v2.rb +49 -0
- data/lib/dcc/si.rb +34 -0
- data/lib/dcc/signature/result.rb +43 -0
- data/lib/dcc/signature/signer.rb +36 -0
- data/lib/dcc/signature/verifier.rb +41 -0
- data/lib/dcc/signature.rb +13 -0
- data/lib/dcc/transform/result.rb +24 -0
- data/lib/dcc/transform/xslt.rb +72 -0
- data/lib/dcc/transform.rb +12 -0
- data/lib/dcc/type/base64_binary.rb +55 -0
- data/lib/dcc/type/decimal_xml_list.rb +47 -0
- data/lib/dcc/type/iso_country_code.rb +23 -0
- data/lib/dcc/type/iso_language_code.rb +23 -0
- data/lib/dcc/type/schema_version.rb +37 -0
- data/lib/dcc/type/si_unit.rb +26 -0
- data/lib/dcc/type.rb +16 -0
- data/lib/dcc/type_guards.rb +140 -0
- data/lib/dcc/v2/administrative_data.rb +8 -0
- data/lib/dcc/v2/byte_data.rb +8 -0
- data/lib/dcc/v2/calibration_laboratory.rb +8 -0
- data/lib/dcc/v2/comment.rb +8 -0
- data/lib/dcc/v2/common_elements.rb +13 -0
- data/lib/dcc/v2/condition.rb +8 -0
- data/lib/dcc/v2/configuration.rb +17 -0
- data/lib/dcc/v2/contact.rb +8 -0
- data/lib/dcc/v2/contact_not_strict.rb +8 -0
- data/lib/dcc/v2/core_data.rb +8 -0
- data/lib/dcc/v2/data.rb +8 -0
- data/lib/dcc/v2/digital_calibration_certificate.rb +8 -0
- data/lib/dcc/v2/equipment_class.rb +8 -0
- data/lib/dcc/v2/formula.rb +8 -0
- data/lib/dcc/v2/hash_type.rb +8 -0
- data/lib/dcc/v2/identification.rb +8 -0
- data/lib/dcc/v2/identifications.rb +8 -0
- data/lib/dcc/v2/influence_condition.rb +7 -0
- data/lib/dcc/v2/influence_condition_list.rb +8 -0
- data/lib/dcc/v2/item.rb +8 -0
- data/lib/dcc/v2/item_list.rb +8 -0
- data/lib/dcc/v2/list.rb +8 -0
- data/lib/dcc/v2/location.rb +8 -0
- data/lib/dcc/v2/measurement_meta_data.rb +8 -0
- data/lib/dcc/v2/measurement_meta_data_list.rb +8 -0
- data/lib/dcc/v2/measurement_result.rb +8 -0
- data/lib/dcc/v2/measurement_result_list.rb +8 -0
- data/lib/dcc/v2/measuring_equipment.rb +8 -0
- data/lib/dcc/v2/measuring_equipment_list.rb +8 -0
- data/lib/dcc/v2/namespace.rb +8 -0
- data/lib/dcc/v2/quantity.rb +49 -0
- data/lib/dcc/v2/ref_type_definition.rb +11 -0
- data/lib/dcc/v2/ref_type_definition_list.rb +15 -0
- data/lib/dcc/v2/resp_person.rb +8 -0
- data/lib/dcc/v2/resp_person_list.rb +8 -0
- data/lib/dcc/v2/result.rb +8 -0
- data/lib/dcc/v2/result_list.rb +8 -0
- data/lib/dcc/v2/rich_content.rb +12 -0
- data/lib/dcc/v2/software.rb +8 -0
- data/lib/dcc/v2/software_list.rb +8 -0
- data/lib/dcc/v2/statement.rb +8 -0
- data/lib/dcc/v2/statement_list.rb +8 -0
- data/lib/dcc/v2/string_with_lang.rb +8 -0
- data/lib/dcc/v2/text.rb +8 -0
- data/lib/dcc/v2/used_method.rb +8 -0
- data/lib/dcc/v2/used_method_list.rb +8 -0
- data/lib/dcc/v2/xml_blob.rb +8 -0
- data/lib/dcc/v2.rb +84 -0
- data/lib/dcc/v3/administrative_data.rb +8 -0
- data/lib/dcc/v3/byte_data.rb +8 -0
- data/lib/dcc/v3/calibration_laboratory.rb +8 -0
- data/lib/dcc/v3/comment.rb +8 -0
- data/lib/dcc/v3/common_elements.rb +11 -0
- data/lib/dcc/v3/condition.rb +8 -0
- data/lib/dcc/v3/configuration.rb +17 -0
- data/lib/dcc/v3/contact.rb +8 -0
- data/lib/dcc/v3/contact_not_strict.rb +8 -0
- data/lib/dcc/v3/core_data.rb +8 -0
- data/lib/dcc/v3/data.rb +8 -0
- data/lib/dcc/v3/digital_calibration_certificate.rb +8 -0
- data/lib/dcc/v3/equipment_class.rb +8 -0
- data/lib/dcc/v3/formula.rb +8 -0
- data/lib/dcc/v3/hash_type.rb +8 -0
- data/lib/dcc/v3/identification.rb +8 -0
- data/lib/dcc/v3/identifications.rb +8 -0
- data/lib/dcc/v3/influence_condition.rb +7 -0
- data/lib/dcc/v3/influence_condition_list.rb +8 -0
- data/lib/dcc/v3/item.rb +8 -0
- data/lib/dcc/v3/item_list.rb +8 -0
- data/lib/dcc/v3/list.rb +8 -0
- data/lib/dcc/v3/location.rb +8 -0
- data/lib/dcc/v3/measurement_meta_data.rb +8 -0
- data/lib/dcc/v3/measurement_meta_data_list.rb +8 -0
- data/lib/dcc/v3/measurement_result.rb +8 -0
- data/lib/dcc/v3/measurement_result_list.rb +8 -0
- data/lib/dcc/v3/measuring_equipment.rb +8 -0
- data/lib/dcc/v3/measuring_equipment_list.rb +8 -0
- data/lib/dcc/v3/namespace.rb +7 -0
- data/lib/dcc/v3/quantity.rb +49 -0
- data/lib/dcc/v3/ref_type_definition.rb +8 -0
- data/lib/dcc/v3/ref_type_definition_list.rb +8 -0
- data/lib/dcc/v3/resp_person.rb +8 -0
- data/lib/dcc/v3/resp_person_list.rb +8 -0
- data/lib/dcc/v3/result.rb +8 -0
- data/lib/dcc/v3/result_list.rb +8 -0
- data/lib/dcc/v3/rich_content.rb +8 -0
- data/lib/dcc/v3/software.rb +8 -0
- data/lib/dcc/v3/software_list.rb +8 -0
- data/lib/dcc/v3/statement.rb +8 -0
- data/lib/dcc/v3/statement_list.rb +8 -0
- data/lib/dcc/v3/string_with_lang.rb +8 -0
- data/lib/dcc/v3/text.rb +8 -0
- data/lib/dcc/v3/used_method.rb +8 -0
- data/lib/dcc/v3/used_method_list.rb +8 -0
- data/lib/dcc/v3/xml_blob.rb +8 -0
- data/lib/dcc/v3.rb +111 -0
- data/lib/dcc/validate/business_rules.rb +121 -0
- data/lib/dcc/validate/issue.rb +56 -0
- data/lib/dcc/validate/result.rb +105 -0
- data/lib/dcc/validate/schematron/profile.rb +64 -0
- data/lib/dcc/validate/schematron/rule.rb +49 -0
- data/lib/dcc/validate/schematron/rules/administrative_data_completeness.rb +42 -0
- data/lib/dcc/validate/schematron/rules/base.rb +15 -0
- data/lib/dcc/validate/schematron/rules/date_range_check.rb +41 -0
- data/lib/dcc/validate/schematron/rules/id_refid_linking.rb +61 -0
- data/lib/dcc/validate/schematron/rules/influence_conditions_placement.rb +58 -0
- data/lib/dcc/validate/schematron/rules/iso_code_validation.rb +53 -0
- data/lib/dcc/validate/schematron/rules/language_code_dedup.rb +39 -0
- data/lib/dcc/validate/schematron/rules/non_si_declaration.rb +82 -0
- data/lib/dcc/validate/schematron/rules/release_format_check.rb +44 -0
- data/lib/dcc/validate/schematron/rules/schema_version_check.rb +31 -0
- data/lib/dcc/validate/schematron/rules/uncertainty_consistency.rb +58 -0
- data/lib/dcc/validate/schematron/rules/unit_format_check.rb +74 -0
- data/lib/dcc/validate/schematron/rules/used_methods_placement.rb +65 -0
- data/lib/dcc/validate/schematron/rules/used_software_placement.rb +43 -0
- data/lib/dcc/validate/schematron/rules/xml_list_spacing.rb +42 -0
- data/lib/dcc/validate/schematron/rules.rb +30 -0
- data/lib/dcc/validate/schematron.rb +22 -0
- data/lib/dcc/validate/severity.rb +39 -0
- data/lib/dcc/validate/xsd.rb +97 -0
- data/lib/dcc/validate.rb +15 -0
- data/lib/dcc/version.rb +5 -0
- data/lib/dcc/versioned_parser.rb +48 -0
- data/lib/dcc.rb +141 -0
- metadata +425 -0
|
@@ -0,0 +1,869 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<xs:schema version="2.0.0" xmlns:xs="http://www.w3.org/2001/XMLSchema"
|
|
3
|
+
targetNamespace="https://ptb.de/si"
|
|
4
|
+
xmlns:si="https://ptb.de/si"
|
|
5
|
+
elementFormDefault="qualified">
|
|
6
|
+
|
|
7
|
+
<xs:annotation>
|
|
8
|
+
<xs:documentation xml:lang="en">
|
|
9
|
+
D-SI - Digital System of Units
|
|
10
|
+
Copyright (c) 2019 - 2021 Physikalisch-Technische Bundesanstalt (PTB), all rights reserved.
|
|
11
|
+
|
|
12
|
+
This XML Scheme Definition (XSD) is free software: you can redistribute it and/or modify
|
|
13
|
+
it under the terms of the GNU Lesser General Public License as published by
|
|
14
|
+
the Free Software Foundation, version 3 of the License.
|
|
15
|
+
|
|
16
|
+
This XSD is distributed in the hope that it will be useful,
|
|
17
|
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
18
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
19
|
+
GNU Lesser General Public License for more details.
|
|
20
|
+
|
|
21
|
+
You should have received a copy of the GNU Lesser General Public License
|
|
22
|
+
along with this XSD. If not, see http://www.gnu.org/licenses.
|
|
23
|
+
|
|
24
|
+
CONTACT: smartcom@ptb.de
|
|
25
|
+
DEVELOPMENT: https://gitlab1.ptb.de/d-ptb/d-si/xsd-d-si
|
|
26
|
+
D-SI XSD VERSION: 2.0.0
|
|
27
|
+
RELEASE DATA: 2021-07-30
|
|
28
|
+
DOI: 10.5281/zenodo.4709001
|
|
29
|
+
</xs:documentation>
|
|
30
|
+
<xs:documentation xml:lang="en">
|
|
31
|
+
ACKNOWLEDGEMENT:
|
|
32
|
+
The development of the XML scheme is part of the research project EMPIR 17IND02 (title: SmartCom).
|
|
33
|
+
This project (17IND02) has received funding from the EMPIR programme, co-financed by the Participating States and
|
|
34
|
+
from the European Union's Horizon 2020 research and innovation programme.
|
|
35
|
+
</xs:documentation>
|
|
36
|
+
</xs:annotation>
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
<!-- ############## D-SI XML ELEMENT DEFINITIONS FOR MEASUREMETN DATA EXCHANGE #################### -->
|
|
43
|
+
|
|
44
|
+
<xs:element name="real" type="si:realQuantityType">
|
|
45
|
+
<xs:annotation>
|
|
46
|
+
<xs:documentation xml:lang="en">
|
|
47
|
+
Metadata element definition for a real measurement quantity.
|
|
48
|
+
</xs:documentation>
|
|
49
|
+
<xs:documentation xml:lang="en">
|
|
50
|
+
<![CDATA[
|
|
51
|
+
The following statements of a real quantity are possible.
|
|
52
|
+
[(m)-mandatory, (o)-optional]
|
|
53
|
+
|
|
54
|
+
1. Basic measured quantity
|
|
55
|
+
(o) - element label (string)
|
|
56
|
+
(m) - element value (decimal value type)
|
|
57
|
+
(m) - element unit (string - SI format)
|
|
58
|
+
(o) - element dateTime (xs:dateTime)
|
|
59
|
+
|
|
60
|
+
2. Measured quantity with univariate measurement uncertainty
|
|
61
|
+
(o) - element label (string)
|
|
62
|
+
(m) - element value (decimal value type)
|
|
63
|
+
(m) - element unit (string - SI format)
|
|
64
|
+
(o) - element dateTime (xs:dateTime)
|
|
65
|
+
(m) - choice si:expandedUnc or si:coverageInterval for the univaraite uncertainty
|
|
66
|
+
]]>
|
|
67
|
+
</xs:documentation>
|
|
68
|
+
<xs:documentation xml:lang="en">
|
|
69
|
+
<![CDATA[
|
|
70
|
+
Integration into external XML:
|
|
71
|
+
<myXML xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:si="https://ptb.de/si">
|
|
72
|
+
<xs:element name="individualElement">
|
|
73
|
+
<xs:complexType>
|
|
74
|
+
<xs:sequence>
|
|
75
|
+
<xs:element ref="si:real"/>
|
|
76
|
+
</xs:sequence>
|
|
77
|
+
</xs:complexType>
|
|
78
|
+
</xs:element>
|
|
79
|
+
</mxXML>
|
|
80
|
+
]]>
|
|
81
|
+
</xs:documentation>
|
|
82
|
+
</xs:annotation>
|
|
83
|
+
</xs:element>
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
<xs:element name="constant" type="si:constantQuantityType">
|
|
87
|
+
<xs:annotation>
|
|
88
|
+
<xs:documentation xml:lang="en">
|
|
89
|
+
Definition of a structure for real numbers, that represent for fundamental
|
|
90
|
+
physical constants and mathematical constants.
|
|
91
|
+
</xs:documentation>
|
|
92
|
+
<xs:documentation xml:lang="en">
|
|
93
|
+
<![CDATA[
|
|
94
|
+
The element has the following components [(m)-mandatory, (o)-optional]:
|
|
95
|
+
|
|
96
|
+
(o) - element label (string)
|
|
97
|
+
(m) - element value (decimal value type)
|
|
98
|
+
(m) - element unit (string - SI unit)
|
|
99
|
+
(o) - element dateTime (xs:dateTime)
|
|
100
|
+
(o) - element uncertainty (decimal value >= 0)
|
|
101
|
+
(o) - element distribution (string)
|
|
102
|
+
|
|
103
|
+
The value and the uncertainty have the unit specified by the element unit.
|
|
104
|
+
For fundamental physical constants, that are defined experimentally, the
|
|
105
|
+
uncertainty is the standard deviation.
|
|
106
|
+
|
|
107
|
+
For rounded mathematical constants, the uncertainty is the standard deviation
|
|
108
|
+
of a rectangular distribution (element value defines center point), that
|
|
109
|
+
contains the exact value of the constant with 100 percent probability.
|
|
110
|
+
]]>
|
|
111
|
+
</xs:documentation>
|
|
112
|
+
</xs:annotation>
|
|
113
|
+
</xs:element>
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
<xs:element name="complex" type="si:complexQuantityType">
|
|
117
|
+
<xs:annotation>
|
|
118
|
+
<xs:documentation xml:lang="en">
|
|
119
|
+
The definition of complex quantities in the D-SI metadata model.
|
|
120
|
+
Complex quantities allow two representations of complex numerical values:
|
|
121
|
+
One is the Cartesian coordinate form, the other representation is the
|
|
122
|
+
polar coordinate form.
|
|
123
|
+
</xs:documentation>
|
|
124
|
+
<xs:documentation xml:lang="en">
|
|
125
|
+
<![CDATA[
|
|
126
|
+
The following statements of a complex quantity are possible.
|
|
127
|
+
[(m)-mandatory, (o)-optional]
|
|
128
|
+
|
|
129
|
+
1. Basic measured quantity in Cartesian form
|
|
130
|
+
(o) - element label (string)
|
|
131
|
+
(m) - element valueReal (decimal value type)
|
|
132
|
+
(m) - element valueImag (decimal value type)
|
|
133
|
+
(m) - element unit (string - SI unit)
|
|
134
|
+
(o) - element dateTime (xs:dateTime)
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
2. Basic measured quantity in polar form
|
|
138
|
+
(o) - element label (string)
|
|
139
|
+
(m) - element valueMagnitude (decimal value type)
|
|
140
|
+
(m) - element valuePhase (decimal value type)
|
|
141
|
+
(m) - element unit (string - SI unit)
|
|
142
|
+
(m) - element unitPhase (string - SI unit for an angular quantity)
|
|
143
|
+
(o) - element dateTime (xs:dateTime)
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
3. Basic measured quantity in Cartesian form with bivariate uncertainty
|
|
147
|
+
(o) - element label (string)
|
|
148
|
+
(m) - element valueReal (decimal value type)
|
|
149
|
+
(m) - element valueImag (decimal value type)
|
|
150
|
+
(m) - element unit (string - SI unit)
|
|
151
|
+
(o) - element dateTime (xs:dateTime)
|
|
152
|
+
(m) - choice si:ellipsoidalRegion or si:rectangularRegion for the bivariate uncertainty
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
4. Basic measured quantity in polar form with bivariate uncertainty
|
|
156
|
+
(o) - element label (string)
|
|
157
|
+
(m) - element valueMagnitude (decimal value type)
|
|
158
|
+
(m) - element valuePhase (decimal value type)
|
|
159
|
+
(m) - element unit (string - SI unit)
|
|
160
|
+
(m) - element unitPhase (string - SI unit for an angular quantity)
|
|
161
|
+
(o) - element dateTime (xs:dateTime)
|
|
162
|
+
(m) - choice si:ellipsoidalRegion or si:rectangularRegion for the bivariate uncertainty
|
|
163
|
+
]]>
|
|
164
|
+
</xs:documentation>
|
|
165
|
+
</xs:annotation>
|
|
166
|
+
</xs:element>
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
<xs:element name="realList" type="si:realListType">
|
|
170
|
+
<xs:annotation>
|
|
171
|
+
<xs:documentation xml:lang="en">
|
|
172
|
+
Meta data element definition for a list of real measurement quantities.
|
|
173
|
+
The list can represent independent measurement or multivariate vector quantities.
|
|
174
|
+
</xs:documentation>
|
|
175
|
+
<xs:documentation xml:lang="en">
|
|
176
|
+
<![CDATA[
|
|
177
|
+
A list can provide the following structures:
|
|
178
|
+
- list of one ore more si:real elements
|
|
179
|
+
- optional list timestamp, list label, and/or list unit
|
|
180
|
+
- optional list univariate uncertainty statement with list unit
|
|
181
|
+
- optional multivariate hyper-elliptical or hyper-rectangular coverage region
|
|
182
|
+
]]>
|
|
183
|
+
</xs:documentation>
|
|
184
|
+
</xs:annotation>
|
|
185
|
+
</xs:element>
|
|
186
|
+
|
|
187
|
+
<xs:element name="complexList" type="si:complexListType">
|
|
188
|
+
<xs:annotation>
|
|
189
|
+
<xs:documentation xml:lang="en">
|
|
190
|
+
Meta data element definition for a list of complex measurement quantities.
|
|
191
|
+
The list can represent independent measurement or multivariate vector quantities.
|
|
192
|
+
</xs:documentation>
|
|
193
|
+
<xs:documentation xml:lang="en">
|
|
194
|
+
<![CDATA[
|
|
195
|
+
This list can provide the following structures:
|
|
196
|
+
- list of one ore more si:complex elements
|
|
197
|
+
- optional list timestamp, list label, and/or list unit(s)
|
|
198
|
+
- optional list bivariate uncertainty statement with list unit(s)
|
|
199
|
+
- optional multivariate hyper-elliptical or hyper-rectangular coverage region
|
|
200
|
+
]]>
|
|
201
|
+
</xs:documentation>
|
|
202
|
+
</xs:annotation>
|
|
203
|
+
</xs:element>
|
|
204
|
+
|
|
205
|
+
<xs:element name="list" type="si:listType">
|
|
206
|
+
<xs:annotation>
|
|
207
|
+
<xs:documentation xml:lang="en">
|
|
208
|
+
Meta data element definition for a list of basic measurement quantities.
|
|
209
|
+
The list can represent independent measurement or multivariate vector quantities.
|
|
210
|
+
</xs:documentation>
|
|
211
|
+
<xs:documentation xml:lang="en">
|
|
212
|
+
<![CDATA[
|
|
213
|
+
This list can provide the following nested structures:
|
|
214
|
+
- si:list elements and
|
|
215
|
+
- si:realList elements and
|
|
216
|
+
- si:complexList elements
|
|
217
|
+
]]>
|
|
218
|
+
</xs:documentation>
|
|
219
|
+
</xs:annotation>
|
|
220
|
+
</xs:element>
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
<!-- -->
|
|
225
|
+
<xs:element name="hybrid" type="si:hybridType">
|
|
226
|
+
<xs:annotation>
|
|
227
|
+
<xs:documentation xml:lang="en">
|
|
228
|
+
The hybrid elements allows to add quantities to the
|
|
229
|
+
machine readable D-SI format, with other units, than those allowed
|
|
230
|
+
to be used with the SI by means of the BIPM SI brochure.
|
|
231
|
+
</xs:documentation>
|
|
232
|
+
<xs:documentation xml:lang="en">
|
|
233
|
+
<![CDATA[
|
|
234
|
+
The hybrid element can contain the following information
|
|
235
|
+
|
|
236
|
+
1. A set of real quantities
|
|
237
|
+
- all real elements provide a quantity value for one and the same measured quantity
|
|
238
|
+
- each real element provides this quantity with a different unit
|
|
239
|
+
- at least one real element provides the quantity with a machine readable SI unit
|
|
240
|
+
- the other real quantities can use any SI or non-SI unit
|
|
241
|
+
|
|
242
|
+
2. A set of complex quantities
|
|
243
|
+
- all complex elements provide a quantity value for one and the same measured quantity
|
|
244
|
+
- each complex element provides this quantity with a different unit(s)
|
|
245
|
+
- at least one complex element provides the quantity with a machine readable SI unit(s)
|
|
246
|
+
- the other complex quantities can use any SI or non-SI unit
|
|
247
|
+
|
|
248
|
+
3. A set of list elements
|
|
249
|
+
- all list elements must provide the same quantity information and hence, must have
|
|
250
|
+
an identical structure.
|
|
251
|
+
- the lists do only differ by using different units for each of the quantities
|
|
252
|
+
- at least one list provides all quantities only with machine readable SI units
|
|
253
|
+
- the other lists can use any other units for the quantities
|
|
254
|
+
|
|
255
|
+
4. A set of constant quantities
|
|
256
|
+
- all constant elements provide a quantity value for one and the same quantity
|
|
257
|
+
- each constant element provides this quantity with a different unit
|
|
258
|
+
- at least one constant element provides the quantity with a machine readable SI unit
|
|
259
|
+
- the other constant quantities can use any SI or non-SI unit
|
|
260
|
+
]]>
|
|
261
|
+
</xs:documentation>
|
|
262
|
+
</xs:annotation>
|
|
263
|
+
</xs:element>
|
|
264
|
+
|
|
265
|
+
|
|
266
|
+
|
|
267
|
+
<!-- ############## D-SI SUPPLEMENTAL XML ELEMENT DEFINITIONS #################### -->
|
|
268
|
+
|
|
269
|
+
<xs:element name="expandedUnc" type="si:expandedUncType">
|
|
270
|
+
<xs:annotation>
|
|
271
|
+
<xs:documentation xml:lang="en">
|
|
272
|
+
Definition of the structure, that gives the necessary components for stating
|
|
273
|
+
an expanded measurement uncertainty. This element must always be used in the
|
|
274
|
+
context of a real quantity, which is an application within si:real and/or
|
|
275
|
+
si:globalUnivariateUnc.
|
|
276
|
+
</xs:documentation>
|
|
277
|
+
<xs:documentation xml:lang="en">
|
|
278
|
+
<![CDATA[
|
|
279
|
+
The element has the following components [(m)-mandatory, (o)-optional]:
|
|
280
|
+
|
|
281
|
+
(m) - element uncertainty (decimal value >= 0)
|
|
282
|
+
(m) - element coverageFactor (decimal value >= 1)
|
|
283
|
+
(m) - element coverageProbability (decimal value in [0,1])
|
|
284
|
+
(o) - element distribution (string)
|
|
285
|
+
|
|
286
|
+
The unit of component uncertainty is the unit used in the context of
|
|
287
|
+
si:real and/or si:globalUnivariateUnc.
|
|
288
|
+
]]>
|
|
289
|
+
</xs:documentation>
|
|
290
|
+
</xs:annotation>
|
|
291
|
+
</xs:element>
|
|
292
|
+
|
|
293
|
+
|
|
294
|
+
<xs:element name="coverageInterval" type="si:coverageIntervalType">
|
|
295
|
+
<xs:annotation>
|
|
296
|
+
<xs:documentation xml:lang="en">
|
|
297
|
+
Definition of the structure, that gives the necessary components for stating
|
|
298
|
+
a probabilistic-symmetric coverage interval for a real uncertainty. This element
|
|
299
|
+
must always be used in the context of a real quantity, which is an application
|
|
300
|
+
within si:real and/or si:globalUnivariateUnc.
|
|
301
|
+
</xs:documentation>
|
|
302
|
+
<xs:documentation xml:lang="en">
|
|
303
|
+
<![CDATA[
|
|
304
|
+
The element has the following components [(m)-mandatory, (o)-optional]:
|
|
305
|
+
|
|
306
|
+
(m) - element stdUncertainty (decimal value >= 0)
|
|
307
|
+
(m) - element intervalMin (decimal value type)
|
|
308
|
+
(m) - element intervalMax (decimal value type)
|
|
309
|
+
(m) - element coverageProbability (decimal value in [0,1])
|
|
310
|
+
(o) - element distribution (string)
|
|
311
|
+
|
|
312
|
+
The unit of components stdUncertainty, intervalMin and intervalMax is the unit
|
|
313
|
+
used in the context of si:real and/or si:globalUnivaraiteUnc.
|
|
314
|
+
]]>
|
|
315
|
+
</xs:documentation>
|
|
316
|
+
</xs:annotation>
|
|
317
|
+
</xs:element>
|
|
318
|
+
|
|
319
|
+
|
|
320
|
+
<!-- -->
|
|
321
|
+
<xs:element name="covarianceMatrix" type="si:covarianceMatrixType">
|
|
322
|
+
<xs:annotation>
|
|
323
|
+
<xs:documentation xml:lang="en">
|
|
324
|
+
Definition of a covariance matrix element that is used for
|
|
325
|
+
multidimensional uncertainty statements in the D-SI format.
|
|
326
|
+
</xs:documentation>
|
|
327
|
+
<xs:documentation xml:lang="en">
|
|
328
|
+
<![CDATA[
|
|
329
|
+
A covariance matrix has n column elements.
|
|
330
|
+
The dimension of the covariance matrix is the amount of columns.
|
|
331
|
+
Each column contains the covariance values of one column of the
|
|
332
|
+
covariance matrix.
|
|
333
|
+
The order of the columns is from left to right column in the
|
|
334
|
+
covariance matrix.
|
|
335
|
+
]]>
|
|
336
|
+
</xs:documentation>
|
|
337
|
+
</xs:annotation>
|
|
338
|
+
</xs:element>
|
|
339
|
+
|
|
340
|
+
|
|
341
|
+
<xs:element name="ellipsoidalRegion" type="si:ellipsoidalRegionType">
|
|
342
|
+
<xs:annotation>
|
|
343
|
+
<xs:documentation xml:lang="en">
|
|
344
|
+
Definition of the structure, that provides a hyper-ellipsoidal coverage
|
|
345
|
+
region for stating the uncertainty of multivariate quantities. It is
|
|
346
|
+
used in the context of uncertainty for complex quantities and
|
|
347
|
+
lists of real or complex quantities.
|
|
348
|
+
</xs:documentation>
|
|
349
|
+
<xs:documentation xml:lang="en">
|
|
350
|
+
<![CDATA[
|
|
351
|
+
The element has the following components [(m)-mandatory, (o)-optional]:
|
|
352
|
+
|
|
353
|
+
(m) - element covarianceMatrix (sub structure covarianceMatrix)
|
|
354
|
+
(m) - element coverageFactor (decimal value >= 1)
|
|
355
|
+
(m) - element coverageProbability (decimal value in [0,1])
|
|
356
|
+
(o) - element distribution (string)
|
|
357
|
+
]]>
|
|
358
|
+
</xs:documentation>
|
|
359
|
+
</xs:annotation>
|
|
360
|
+
</xs:element>
|
|
361
|
+
|
|
362
|
+
|
|
363
|
+
<xs:element name="rectangularRegion" type="si:rectangularRegionType">
|
|
364
|
+
<xs:annotation>
|
|
365
|
+
<xs:documentation xml:lang="en">
|
|
366
|
+
Definition of the structure that provides a hyper-rectangular coverage
|
|
367
|
+
region for stating the uncertainty of multivariate quantities. It is
|
|
368
|
+
used in the context of uncertainty for complex quantities and
|
|
369
|
+
lists of real or complex quantities.
|
|
370
|
+
</xs:documentation>
|
|
371
|
+
<xs:documentation xml:lang="en">
|
|
372
|
+
<![CDATA[
|
|
373
|
+
The element has the following components [(m)-mandatory, (o)-optional]:
|
|
374
|
+
|
|
375
|
+
(m) - element covarianceMatrix (sub structure covarianceMatrix)
|
|
376
|
+
(m) - element coverageFactor (decimal value >= 1)
|
|
377
|
+
(m) - element coverageProbability (decimal value in [0,1])
|
|
378
|
+
(o) - element distribution (string)
|
|
379
|
+
]]>
|
|
380
|
+
</xs:documentation>
|
|
381
|
+
</xs:annotation>
|
|
382
|
+
</xs:element>
|
|
383
|
+
|
|
384
|
+
|
|
385
|
+
|
|
386
|
+
<!-- ############## D-SI XML TYPE DEFINITIONS #################### -->
|
|
387
|
+
|
|
388
|
+
<xs:complexType name="realQuantityType">
|
|
389
|
+
<xs:sequence>
|
|
390
|
+
<!-- optional label and quantity type-->
|
|
391
|
+
<xs:element name="label" type="xs:string" minOccurs="0"/>
|
|
392
|
+
|
|
393
|
+
<!-- mandatory information -->
|
|
394
|
+
<xs:element name="value" type="si:decimalType"/>
|
|
395
|
+
<xs:element name="unit" type="si:unitType"/>
|
|
396
|
+
|
|
397
|
+
<!-- optional time stamp -->
|
|
398
|
+
<xs:element name="dateTime" type="xs:dateTime" minOccurs="0"/>
|
|
399
|
+
|
|
400
|
+
<!-- optional choice of uncertainty statements -->
|
|
401
|
+
<xs:choice minOccurs="0">
|
|
402
|
+
<xs:annotation>
|
|
403
|
+
<xs:documentation xml:lang="en">
|
|
404
|
+
univariate measurement uncertainty
|
|
405
|
+
</xs:documentation>
|
|
406
|
+
</xs:annotation>
|
|
407
|
+
<xs:element name="expandedUnc" type="si:expandedUncType"/>
|
|
408
|
+
<xs:element name="coverageInterval" type="si:coverageIntervalType"/>
|
|
409
|
+
</xs:choice>
|
|
410
|
+
|
|
411
|
+
</xs:sequence>
|
|
412
|
+
</xs:complexType>
|
|
413
|
+
|
|
414
|
+
|
|
415
|
+
<xs:complexType name="constantQuantityType">
|
|
416
|
+
<xs:sequence>
|
|
417
|
+
<!-- optional label and quantity type-->
|
|
418
|
+
<xs:element name="label" type="xs:string" minOccurs="0"/>
|
|
419
|
+
|
|
420
|
+
<!-- mandatory information -->
|
|
421
|
+
<xs:element name="value" type="si:decimalType"/>
|
|
422
|
+
<xs:element name="unit" type="si:unitType"/>
|
|
423
|
+
|
|
424
|
+
<!-- optional time stamp -->
|
|
425
|
+
<xs:element name="dateTime" type="xs:dateTime" minOccurs="0"/>
|
|
426
|
+
|
|
427
|
+
<!-- optional uncertainty -->
|
|
428
|
+
<xs:element name="uncertainty" type="si:uncertaintyValueType" minOccurs="0"/>
|
|
429
|
+
|
|
430
|
+
<!-- optional distribution -->
|
|
431
|
+
<xs:element name="distribution" type="xs:string" minOccurs="0"/>
|
|
432
|
+
</xs:sequence>
|
|
433
|
+
</xs:complexType>
|
|
434
|
+
|
|
435
|
+
|
|
436
|
+
<xs:complexType name="complexQuantityType">
|
|
437
|
+
<xs:sequence>
|
|
438
|
+
<!-- optional label and quantity type-->
|
|
439
|
+
<xs:element name="label" type="xs:string" minOccurs="0"/>
|
|
440
|
+
|
|
441
|
+
<!-- choice of Cartesian coordinate form or polar coordinate form -->
|
|
442
|
+
<xs:choice>
|
|
443
|
+
<xs:sequence>
|
|
444
|
+
<!-- mandatory components of Cartesian coordinate form -->
|
|
445
|
+
<xs:element name="valueReal" type="si:decimalType"/>
|
|
446
|
+
<xs:element name="valueImag" type="si:decimalType"/>
|
|
447
|
+
<xs:element name="unit" type="si:unitType"/>
|
|
448
|
+
</xs:sequence>
|
|
449
|
+
<xs:sequence>
|
|
450
|
+
<!-- mandatory components of polar coordinate form -->
|
|
451
|
+
<xs:element name="valueMagnitude" type="si:decimalType"/>
|
|
452
|
+
<xs:element name="valuePhase" type="si:decimalType"/>
|
|
453
|
+
<xs:element name="unit" type="si:unitType"/>
|
|
454
|
+
<xs:element name="unitPhase" type="si:unitPhaseType"/>
|
|
455
|
+
</xs:sequence>
|
|
456
|
+
</xs:choice>
|
|
457
|
+
<!-- optional time stamp -->
|
|
458
|
+
<xs:element name="dateTime" type="xs:dateTime" minOccurs="0"/>
|
|
459
|
+
|
|
460
|
+
<!-- optional uncertainty statement: either ellipsoidal or rectangular coverage region -->
|
|
461
|
+
<xs:choice minOccurs="0">
|
|
462
|
+
<xs:annotation>
|
|
463
|
+
<xs:documentation xml:lang="en">
|
|
464
|
+
bivariate measurement uncertainty
|
|
465
|
+
</xs:documentation>
|
|
466
|
+
</xs:annotation>
|
|
467
|
+
<xs:element name="ellipsoidalRegion" type="si:ellipsoidalRegionType"/>
|
|
468
|
+
<xs:element name="rectangularRegion" type="si:rectangularRegionType"/>
|
|
469
|
+
</xs:choice>
|
|
470
|
+
|
|
471
|
+
</xs:sequence>
|
|
472
|
+
</xs:complexType>
|
|
473
|
+
|
|
474
|
+
|
|
475
|
+
<xs:complexType name="realInListType">
|
|
476
|
+
<xs:sequence>
|
|
477
|
+
<!-- optional local label and local quantity type-->
|
|
478
|
+
<xs:element name="label" type="xs:string" minOccurs="0"/>
|
|
479
|
+
|
|
480
|
+
<!-- mandatory information -->
|
|
481
|
+
<xs:element name="value" type="si:decimalType"/>
|
|
482
|
+
<!-- if list unit, then do not write this local unit -->
|
|
483
|
+
<xs:element name="unit" type="si:unitType" minOccurs="0"/>
|
|
484
|
+
<!-- optional local time stamp -->
|
|
485
|
+
<xs:element name="dateTime" type="xs:dateTime" minOccurs="0"/>
|
|
486
|
+
<!-- optional choice of local uncertainty statements -->
|
|
487
|
+
<xs:choice minOccurs="0">
|
|
488
|
+
<xs:annotation>
|
|
489
|
+
<xs:documentation xml:lang="en">
|
|
490
|
+
univariate measurement uncertainty
|
|
491
|
+
</xs:documentation>
|
|
492
|
+
</xs:annotation>
|
|
493
|
+
<xs:element name="expandedUnc" type="si:expandedUncType"/>
|
|
494
|
+
<xs:element name="coverageInterval" type="si:coverageIntervalType"/>
|
|
495
|
+
</xs:choice>
|
|
496
|
+
</xs:sequence>
|
|
497
|
+
</xs:complexType>
|
|
498
|
+
|
|
499
|
+
|
|
500
|
+
<xs:complexType name="complexInListType">
|
|
501
|
+
<xs:sequence>
|
|
502
|
+
<!-- optional local label and local quantity type-->
|
|
503
|
+
<xs:element name="label" type="xs:string" minOccurs="0"/>
|
|
504
|
+
|
|
505
|
+
<!-- choice of Cartesian coordinate form or polar coordinate form -->
|
|
506
|
+
<xs:choice>
|
|
507
|
+
<xs:sequence>
|
|
508
|
+
<!-- mandatory components of Cartesian coordinate form -->
|
|
509
|
+
<xs:element name="valueReal" type="si:decimalType"/>
|
|
510
|
+
<xs:element name="valueImag" type="si:decimalType"/>
|
|
511
|
+
<!-- if list unit, then do not write this local unit -->
|
|
512
|
+
<xs:element name="unit" type="si:unitType" minOccurs="0"/>
|
|
513
|
+
</xs:sequence>
|
|
514
|
+
<xs:sequence>
|
|
515
|
+
<!-- mandatory components of polar coordinate form -->
|
|
516
|
+
<xs:element name="valueMagnitude" type="si:decimalType"/>
|
|
517
|
+
<xs:element name="valuePhase" type="si:decimalType"/>
|
|
518
|
+
<!-- if list unit, then do not write this local unit -->
|
|
519
|
+
<xs:element name="unit" type="si:unitType" minOccurs="0"/>
|
|
520
|
+
<!-- if list unit, then do not write this local unit -->
|
|
521
|
+
<xs:element name="unitPhase" type="si:unitPhaseType" minOccurs="0"/>
|
|
522
|
+
</xs:sequence>
|
|
523
|
+
</xs:choice>
|
|
524
|
+
<!-- optional local time stamp -->
|
|
525
|
+
<xs:element name="dateTime" type="xs:dateTime" minOccurs="0"/>
|
|
526
|
+
|
|
527
|
+
<!-- optional local uncertainty statement: either ellipsoidal or rectangular coverage region -->
|
|
528
|
+
<xs:choice minOccurs="0">
|
|
529
|
+
<xs:annotation>
|
|
530
|
+
<xs:documentation xml:lang="en">
|
|
531
|
+
bivariate measurement uncertainty
|
|
532
|
+
</xs:documentation>
|
|
533
|
+
</xs:annotation>
|
|
534
|
+
<xs:element name="ellipsoidalRegion" type="si:ellipsoidalRegionType"/>
|
|
535
|
+
<xs:element name="rectangularRegion" type="si:rectangularRegionType"/>
|
|
536
|
+
</xs:choice>
|
|
537
|
+
</xs:sequence>
|
|
538
|
+
</xs:complexType>
|
|
539
|
+
|
|
540
|
+
|
|
541
|
+
<xs:complexType name="realListType">
|
|
542
|
+
<xs:sequence>
|
|
543
|
+
<!-- optional label of the list-->
|
|
544
|
+
<xs:element name="label" type="xs:string" minOccurs="0"/>
|
|
545
|
+
<!-- optional list time stamp -->
|
|
546
|
+
<xs:element name="dateTime" type="xs:dateTime" minOccurs="0"/>
|
|
547
|
+
<!-- optional list unit -->
|
|
548
|
+
<xs:element name="listUnit" type="si:unitType" minOccurs="0"/>
|
|
549
|
+
<!-- optional list uncertainty -->
|
|
550
|
+
|
|
551
|
+
<xs:element name="listUnivariateUnc" type="si:listUnivariateUncType" minOccurs="0">
|
|
552
|
+
<xs:annotation>
|
|
553
|
+
<xs:documentation xml:lang="en">
|
|
554
|
+
Definition of a structure, for a global univariate uncertainty, that
|
|
555
|
+
is used within the list structure with a list of real quantities.
|
|
556
|
+
The global univariate uncertainty can either be given as an expanded
|
|
557
|
+
measurement uncertainty or as a coverage interval.
|
|
558
|
+
</xs:documentation>
|
|
559
|
+
</xs:annotation>
|
|
560
|
+
</xs:element>
|
|
561
|
+
|
|
562
|
+
<!-- mandatory list of real elements -->
|
|
563
|
+
<xs:element name="real" type="si:realInListType" maxOccurs="unbounded">
|
|
564
|
+
<xs:annotation>
|
|
565
|
+
<xs:documentation xml:lang="en">
|
|
566
|
+
Meta data element definition for a real measurement quantity in list.
|
|
567
|
+
This implementation differs from the pure real quantity in the way that
|
|
568
|
+
the unit component is optional in order to allow a combination with
|
|
569
|
+
a global unit in the list of real quantities.
|
|
570
|
+
</xs:documentation>
|
|
571
|
+
</xs:annotation>
|
|
572
|
+
</xs:element>
|
|
573
|
+
<!-- optional multivariate uncertainty statement -->
|
|
574
|
+
<xs:choice minOccurs="0">
|
|
575
|
+
<xs:annotation>
|
|
576
|
+
<xs:documentation xml:lang="en">
|
|
577
|
+
multivariate measurement uncertainty
|
|
578
|
+
</xs:documentation>
|
|
579
|
+
</xs:annotation>
|
|
580
|
+
<xs:element name="ellipsoidalRegion" type="si:ellipsoidalRegionType"/>
|
|
581
|
+
<xs:element name="rectangularRegion" type="si:rectangularRegionType"/>
|
|
582
|
+
</xs:choice>
|
|
583
|
+
</xs:sequence>
|
|
584
|
+
</xs:complexType>
|
|
585
|
+
|
|
586
|
+
|
|
587
|
+
<xs:complexType name="complexListType">
|
|
588
|
+
<xs:sequence>
|
|
589
|
+
<!-- optional label of the list -->
|
|
590
|
+
<xs:element name="label" type="xs:string" minOccurs="0"/>
|
|
591
|
+
<!-- optional list time stamp -->
|
|
592
|
+
<xs:element name="dateTime" type="xs:dateTime" minOccurs="0"/>
|
|
593
|
+
<!-- optional list unit -->
|
|
594
|
+
<xs:element name="listUnit" type="si:unitType" minOccurs="0"/>
|
|
595
|
+
<xs:element name="listUnitPhase" type="xs:string" minOccurs="0"/>
|
|
596
|
+
<!-- optional list bivariate uncertainty -->
|
|
597
|
+
|
|
598
|
+
<xs:element name="listBivariateUnc" type="si:listBivariateUncType" minOccurs="0">
|
|
599
|
+
<xs:annotation>
|
|
600
|
+
<xs:documentation xml:lang="en">
|
|
601
|
+
Definition of a structure, for a global bivariate uncertainty, that
|
|
602
|
+
is used within the list structure with a list of complex quantities.
|
|
603
|
+
The global bivariate uncertainty can either be given as a hyper-ellipsoidal
|
|
604
|
+
coverage region or a hyper-rectangular coverage region. Both
|
|
605
|
+
coverage regions must provide a covariance matrix of dimension 2.
|
|
606
|
+
</xs:documentation>
|
|
607
|
+
</xs:annotation>
|
|
608
|
+
</xs:element>
|
|
609
|
+
<!-- mandatory list of complex elements -->
|
|
610
|
+
<xs:element name="complex" type="si:complexInListType" maxOccurs="unbounded">
|
|
611
|
+
<xs:annotation>
|
|
612
|
+
<xs:documentation xml:lang="en">
|
|
613
|
+
Meta data element definition for a complex measurement quantity in list.
|
|
614
|
+
This implementation differs from the pure complex quantity, in the way that
|
|
615
|
+
the unit components are optional in order to allow a combination with
|
|
616
|
+
a global unit in the list of complex quantities.
|
|
617
|
+
</xs:documentation>
|
|
618
|
+
</xs:annotation>
|
|
619
|
+
</xs:element>
|
|
620
|
+
<!-- optional multivariate uncertainty statement -->
|
|
621
|
+
<xs:choice minOccurs="0">
|
|
622
|
+
<xs:annotation>
|
|
623
|
+
<xs:documentation xml:lang="en">
|
|
624
|
+
multivariate measurement uncertainty
|
|
625
|
+
</xs:documentation>
|
|
626
|
+
</xs:annotation>
|
|
627
|
+
<xs:element name="ellipsoidalRegion" type="si:ellipsoidalRegionType"/>
|
|
628
|
+
<xs:element name="rectangularRegion" type="si:rectangularRegionType"/>
|
|
629
|
+
</xs:choice>
|
|
630
|
+
</xs:sequence>
|
|
631
|
+
</xs:complexType>
|
|
632
|
+
|
|
633
|
+
|
|
634
|
+
<xs:complexType name="listType">
|
|
635
|
+
<xs:sequence>
|
|
636
|
+
<!-- optional label of the list -->
|
|
637
|
+
<xs:element name="label" type="xs:string" minOccurs="0"/>
|
|
638
|
+
<!-- optional list time stamp -->
|
|
639
|
+
<xs:element name="dateTime" type="xs:dateTime" minOccurs="0"/>
|
|
640
|
+
|
|
641
|
+
<!-- selection between list of lists and list of real or complex -->
|
|
642
|
+
<xs:choice maxOccurs="unbounded">
|
|
643
|
+
<!-- either list of real -->
|
|
644
|
+
<xs:element name="realList" type="si:realListType"/>
|
|
645
|
+
<!-- or list of complex -->
|
|
646
|
+
<xs:element name="complexList" type="si:complexListType"/>
|
|
647
|
+
<!-- or list of lists -->
|
|
648
|
+
<xs:element name="list" type="si:listType"/>
|
|
649
|
+
</xs:choice>
|
|
650
|
+
</xs:sequence>
|
|
651
|
+
</xs:complexType>
|
|
652
|
+
|
|
653
|
+
|
|
654
|
+
<xs:complexType name="hybridType">
|
|
655
|
+
<xs:sequence>
|
|
656
|
+
<!-- mandatory adapter for at least one SI quantity and additional (non-) SI quantities -->
|
|
657
|
+
<xs:choice>
|
|
658
|
+
<xs:element name="real" type="si:realQuantityType" minOccurs="1" maxOccurs="unbounded"/>
|
|
659
|
+
<xs:element name="complex" type="si:complexQuantityType" minOccurs="1" maxOccurs="unbounded"/>
|
|
660
|
+
<xs:element name="list" type="si:listType" minOccurs="1" maxOccurs="unbounded"/>
|
|
661
|
+
<xs:element name="realList" type="si:realListType" minOccurs="1" maxOccurs="unbounded"/>
|
|
662
|
+
<xs:element name="complexList" type="si:complexListType" minOccurs="1" maxOccurs="unbounded"/>
|
|
663
|
+
<xs:element name="constant" type="si:constantQuantityType" minOccurs="1" maxOccurs="unbounded"/>
|
|
664
|
+
</xs:choice>
|
|
665
|
+
</xs:sequence>
|
|
666
|
+
</xs:complexType>
|
|
667
|
+
|
|
668
|
+
|
|
669
|
+
<xs:complexType name="expandedUncType">
|
|
670
|
+
<xs:sequence>
|
|
671
|
+
<xs:element name="uncertainty" type="si:uncertaintyValueType"/>
|
|
672
|
+
<xs:element name="coverageFactor" type="si:kValueType"/>
|
|
673
|
+
<xs:element name="coverageProbability" type="si:probabilityValueType"/>
|
|
674
|
+
<xs:element name="distribution" type="xs:string" minOccurs="0"/>
|
|
675
|
+
</xs:sequence>
|
|
676
|
+
</xs:complexType>
|
|
677
|
+
|
|
678
|
+
|
|
679
|
+
<xs:complexType name="coverageIntervalType">
|
|
680
|
+
<xs:sequence>
|
|
681
|
+
<xs:element name="standardUnc" type="si:uncertaintyValueType"/>
|
|
682
|
+
<xs:element name="intervalMin" type="si:decimalType"/>
|
|
683
|
+
<xs:element name="intervalMax" type="si:decimalType"/>
|
|
684
|
+
<xs:element name="coverageProbability" type="si:probabilityValueType"/>
|
|
685
|
+
<xs:element name="distribution" type="xs:string" minOccurs="0"/>
|
|
686
|
+
</xs:sequence>
|
|
687
|
+
</xs:complexType>
|
|
688
|
+
|
|
689
|
+
|
|
690
|
+
<xs:complexType name="covarianceMatrixType">
|
|
691
|
+
<xs:sequence>
|
|
692
|
+
<xs:element name="column" minOccurs="1" maxOccurs="unbounded">
|
|
693
|
+
<xs:annotation>
|
|
694
|
+
<xs:documentation xml:lang="en">
|
|
695
|
+
Definition of a column in the covariance matrix.
|
|
696
|
+
</xs:documentation>
|
|
697
|
+
<xs:documentation xml:lang="en">
|
|
698
|
+
<![CDATA[
|
|
699
|
+
The column has n covariance elements, where
|
|
700
|
+
n is the amount of columns in the covariance matrix.
|
|
701
|
+
|
|
702
|
+
The covariance elements are ordered as in the covariance matrix, started
|
|
703
|
+
at the element in the first row of the matrix and going to the
|
|
704
|
+
last row of the matrix.
|
|
705
|
+
]]>
|
|
706
|
+
</xs:documentation>
|
|
707
|
+
</xs:annotation>
|
|
708
|
+
<xs:complexType>
|
|
709
|
+
<xs:sequence>
|
|
710
|
+
<xs:element name="covariance" minOccurs="1" maxOccurs="unbounded">
|
|
711
|
+
<xs:annotation>
|
|
712
|
+
<xs:documentation xml:lang="en">
|
|
713
|
+
Each covariance component is defined by
|
|
714
|
+
- element value (decimal value type)
|
|
715
|
+
- element unit (string - SI format)
|
|
716
|
+
</xs:documentation>
|
|
717
|
+
</xs:annotation>
|
|
718
|
+
<xs:complexType>
|
|
719
|
+
<xs:sequence>
|
|
720
|
+
<xs:element name="value" type="si:decimalType"/>
|
|
721
|
+
<xs:element name="unit" type="si:unitType"/>
|
|
722
|
+
</xs:sequence>
|
|
723
|
+
</xs:complexType>
|
|
724
|
+
</xs:element>
|
|
725
|
+
</xs:sequence>
|
|
726
|
+
</xs:complexType>
|
|
727
|
+
</xs:element>
|
|
728
|
+
</xs:sequence>
|
|
729
|
+
</xs:complexType>
|
|
730
|
+
|
|
731
|
+
|
|
732
|
+
<xs:complexType name="ellipsoidalRegionType">
|
|
733
|
+
<xs:sequence>
|
|
734
|
+
<!-- covariance matrix data -->
|
|
735
|
+
<xs:element name="covarianceMatrix" type="si:covarianceMatrixType"/>
|
|
736
|
+
<!-- coverage properties of region -->
|
|
737
|
+
<xs:element name="coverageFactor" type="si:kValueType"/>
|
|
738
|
+
<xs:element name="coverageProbability" type="si:probabilityValueType"/>
|
|
739
|
+
<!-- optional information about distribution -->
|
|
740
|
+
<xs:element name="distribution" type="xs:string" minOccurs="0"/>
|
|
741
|
+
</xs:sequence>
|
|
742
|
+
</xs:complexType>
|
|
743
|
+
|
|
744
|
+
|
|
745
|
+
<xs:complexType name="rectangularRegionType">
|
|
746
|
+
<xs:sequence>
|
|
747
|
+
<!-- covariance matrix data -->
|
|
748
|
+
<xs:element name="covarianceMatrix" type="si:covarianceMatrixType"/>
|
|
749
|
+
<!-- coverage properties of region -->
|
|
750
|
+
<xs:element name="coverageFactor" type="si:kValueType"/>
|
|
751
|
+
<xs:element name="coverageProbability" type="si:probabilityValueType"/>
|
|
752
|
+
<!-- optional information about distribution -->
|
|
753
|
+
<xs:element name="distribution" type="xs:string" minOccurs="0"/>
|
|
754
|
+
</xs:sequence>
|
|
755
|
+
</xs:complexType>
|
|
756
|
+
|
|
757
|
+
|
|
758
|
+
<xs:complexType name="listUnivariateUncType">
|
|
759
|
+
<xs:choice>
|
|
760
|
+
<xs:annotation>
|
|
761
|
+
<xs:documentation xml:lang="en">
|
|
762
|
+
univariate measurement uncertainty
|
|
763
|
+
</xs:documentation>
|
|
764
|
+
</xs:annotation>
|
|
765
|
+
<xs:element name="expandedUnc" type="si:expandedUncType"/>
|
|
766
|
+
<xs:element name="coverageInterval" type="si:coverageIntervalType"/>
|
|
767
|
+
</xs:choice>
|
|
768
|
+
</xs:complexType>
|
|
769
|
+
|
|
770
|
+
<xs:complexType name="listBivariateUncType">
|
|
771
|
+
<xs:choice minOccurs="0">
|
|
772
|
+
<xs:annotation>
|
|
773
|
+
<xs:documentation xml:lang="en">
|
|
774
|
+
bivariate measurement uncertainty
|
|
775
|
+
</xs:documentation>
|
|
776
|
+
</xs:annotation>
|
|
777
|
+
<xs:element name="ellipsoidalRegion" type="si:ellipsoidalRegionType"/>
|
|
778
|
+
<xs:element name="rectangularRegion" type="si:rectangularRegionType"/>
|
|
779
|
+
</xs:choice>
|
|
780
|
+
</xs:complexType>
|
|
781
|
+
|
|
782
|
+
|
|
783
|
+
|
|
784
|
+
|
|
785
|
+
|
|
786
|
+
|
|
787
|
+
|
|
788
|
+
<!-- ############## D-SI XML INTERNALLY USED SIMPLE TYPE DEFINITIONS #################### -->
|
|
789
|
+
|
|
790
|
+
<xs:simpleType name="unitType">
|
|
791
|
+
<xs:annotation>
|
|
792
|
+
<xs:documentation xml:lang="en">
|
|
793
|
+
BIPM SI brochure unit (9th edition).
|
|
794
|
+
Based on xs:string.
|
|
795
|
+
</xs:documentation>
|
|
796
|
+
</xs:annotation>
|
|
797
|
+
<xs:restriction base="xs:string">
|
|
798
|
+
</xs:restriction>
|
|
799
|
+
</xs:simpleType>
|
|
800
|
+
|
|
801
|
+
|
|
802
|
+
<xs:simpleType name="unitPhaseType">
|
|
803
|
+
<xs:annotation>
|
|
804
|
+
<xs:documentation xml:lang="en">
|
|
805
|
+
Unit of angular quantity in SI.
|
|
806
|
+
Based on xs:string.
|
|
807
|
+
</xs:documentation>
|
|
808
|
+
</xs:annotation>
|
|
809
|
+
<xs:restriction base="xs:string">
|
|
810
|
+
</xs:restriction>
|
|
811
|
+
</xs:simpleType>
|
|
812
|
+
|
|
813
|
+
|
|
814
|
+
<xs:simpleType name="decimalType">
|
|
815
|
+
<xs:annotation>
|
|
816
|
+
<xs:documentation xml:lang="en">
|
|
817
|
+
Scientific decimal format for numerical values.
|
|
818
|
+
Based on type xs:double.
|
|
819
|
+
</xs:documentation>
|
|
820
|
+
</xs:annotation>
|
|
821
|
+
<xs:restriction base="xs:double">
|
|
822
|
+
<xs:pattern value="[-+]?((\d*\.\d+)|(\d+\.\d*)|(\d+\.?))([Ee][-+]?\d+)?"/>
|
|
823
|
+
</xs:restriction>
|
|
824
|
+
</xs:simpleType>
|
|
825
|
+
|
|
826
|
+
|
|
827
|
+
<xs:simpleType name="uncertaintyValueType">
|
|
828
|
+
<xs:annotation>
|
|
829
|
+
<xs:documentation xml:lang="en">
|
|
830
|
+
Scientific decimal format for numerical values of uncertainties
|
|
831
|
+
that must be positive (greater than zero or equal to zero).
|
|
832
|
+
Based on type xs:double.
|
|
833
|
+
</xs:documentation>
|
|
834
|
+
</xs:annotation>
|
|
835
|
+
|
|
836
|
+
<xs:restriction base="xs:double">
|
|
837
|
+
<xs:pattern value="\+?((\d*\.\d+)|(\d+\.\d*)|(\d+\.?))([Ee][-+]?\d+)?"/>
|
|
838
|
+
</xs:restriction>
|
|
839
|
+
</xs:simpleType>
|
|
840
|
+
|
|
841
|
+
<xs:simpleType name="kValueType">
|
|
842
|
+
<xs:annotation>
|
|
843
|
+
<xs:documentation xml:lang="en">
|
|
844
|
+
Scientific decimal format for coverage factor values for uncertainties
|
|
845
|
+
that must be greater than one or equal to one.
|
|
846
|
+
Based on type xs:double.
|
|
847
|
+
</xs:documentation>
|
|
848
|
+
</xs:annotation>
|
|
849
|
+
<xs:restriction base="xs:double">
|
|
850
|
+
<xs:pattern value="\+?(([1-9]\d*\.\d*)|([1-9]\d*))"/>
|
|
851
|
+
</xs:restriction>
|
|
852
|
+
</xs:simpleType>
|
|
853
|
+
|
|
854
|
+
|
|
855
|
+
<xs:simpleType name="probabilityValueType">
|
|
856
|
+
<xs:annotation>
|
|
857
|
+
<xs:documentation xml:lang="en">
|
|
858
|
+
Decimal format for coverage probability values for uncertainties.
|
|
859
|
+
The value must be within the interval [0,1]. The scientific exponent
|
|
860
|
+
"e" (or "E") is not allowed.
|
|
861
|
+
Based on type xs:double.
|
|
862
|
+
</xs:documentation>
|
|
863
|
+
</xs:annotation>
|
|
864
|
+
<xs:restriction base="xs:double">
|
|
865
|
+
<xs:pattern value="\+?((0(\.\d*)?)|(1(\.0*)?))"/>
|
|
866
|
+
</xs:restriction>
|
|
867
|
+
</xs:simpleType>
|
|
868
|
+
|
|
869
|
+
</xs:schema>
|