From 90f8e45307c117fe7f2d3d83e3a3adf65cb61ed0 Mon Sep 17 00:00:00 2001 From: Miguel Angel Reina Ortega <miguelangel.reinaortega@etsi.org> Date: Mon, 16 May 2022 12:18:57 +0200 Subject: [PATCH] SDS-2019-0483R02 - ontology_mapping_stage_3 Signed-off-by: Miguel Angel Reina Ortega <miguelangel.reinaortega@etsi.org> --- CDT-commonTypes.xsd | 1 + CDT-enumerationTypes.xsd | 71 +++++++++++++++++- CDT-ontologyMapping.xsd | 85 ++++++++++++++++++++++ CDT-ontologyMappingAlgorithm.xsd | 83 +++++++++++++++++++++ CDT-ontologyMappingAlgorithmRepository.xsd | 81 +++++++++++++++++++++ CDT-requestPrimitive.xsd | 2 + 6 files changed, 321 insertions(+), 2 deletions(-) create mode 100644 CDT-ontologyMapping.xsd create mode 100644 CDT-ontologyMappingAlgorithm.xsd create mode 100644 CDT-ontologyMappingAlgorithmRepository.xsd diff --git a/CDT-commonTypes.xsd b/CDT-commonTypes.xsd index 3366eab..d85dbf6 100644 --- a/CDT-commonTypes.xsd +++ b/CDT-commonTypes.xsd @@ -588,6 +588,7 @@ oneM2M EXPRESSLY ADVISES ANY AND ALL USE OF OR RELIANCE UPON THIS INFORMATION PR <xs:element name="authorSigns" type="m2m:signatureList" minOccurs="0"/> <xs:element name="authorRelIndicator" type="xs:boolean" minOccurs="0"/> <xs:element name="semanticQueryIndicator" type="xs:boolean" minOccurs="0"/> + <xs:element name="ontologyMappingResources" type="m2m:listOfM2MID" minOccurs="0"/> <xs:element name="releaseVersionIndicator" type="m2m:releaseVersion" minOccurs="1"/> <xs:element name="vendorInformation" type="xs:string" minOccurs="0"/> </xs:sequence> diff --git a/CDT-enumerationTypes.xsd b/CDT-enumerationTypes.xsd index f38e248..e8f6536 100644 --- a/CDT-enumerationTypes.xsd +++ b/CDT-enumerationTypes.xsd @@ -132,7 +132,13 @@ oneM2M EXPRESSLY ADVISES ANY AND ALL USE OF OR RELIANCE UPON THIS INFORMATION PR <!-- transactionMgmt --> <xs:enumeration value="50" /> <!-- transaction --> - <xs:enumeration value="51" /> + <xs:enumeration value="51" /> + <!-- ontologyMapping --> + <xs:enumeration value="52" /> + <!-- ontologyMappingAlgorithm --> + <xs:enumeration value="53" /> + <!-- ontologyMappingAlgorithmRepository --> + <xs:enumeration value="54" /> <!-- accessControlPolicyAnnc --> <xs:enumeration value="10001" /> <!-- AEAnnc --> @@ -173,7 +179,14 @@ oneM2M EXPRESSLY ADVISES ANY AND ALL USE OF OR RELIANCE UPON THIS INFORMATION PR <!-- semanticMashupInstanceAnnc --> <xs:enumeration value="10041" /> <!-- semanticMashupResultAnnc --> - <xs:enumeration value="10042" /> + <xs:enumeration value="10042" /> + <!-- ontologyMappingAnnc --> + <xs:enumeration value="10052" /> + <!-- ontologyMappingAlgorithmAnnc --> + <xs:enumeration value="10053" /> + <!-- ontologyMappingAlgorithmRepositoryAnnc --> + <xs:enumeration value="10054" /> + </xs:restriction> </xs:simpleType> @@ -388,6 +401,12 @@ oneM2M EXPRESSLY ADVISES ANY AND ALL USE OF OR RELIANCE UPON THIS INFORMATION PR <xs:enumeration value="4126" /> <!-- OPERATION_DENIED_BY_REMOTE_ENTITY --> <xs:enumeration value="4127" /> + <!-- ONTOLOGY_MAPPING_ALGORITHM_NOT_AVAILABLE --> + <xs:enumeration value="4130" /> + <!-- ONTOLOGY_MAPPING_POLICY_NOT_MATCH --> + <xs:enumeration value="4131" /> + <!-- ONTOLOGY_MAPPING_NOT_AVAILABLE --> + <xs:enumeration value="4132" /> <!-- INTERNAL_SERVER_ERROR --> <xs:enumeration value="5000" /> @@ -439,6 +458,10 @@ oneM2M EXPRESSLY ADVISES ANY AND ALL USE OF OR RELIANCE UPON THIS INFORMATION PR <xs:enumeration value="5221" /> <!-- TRANSACTION_PROCESSING_IS_INCOMPLETE --> <xs:enumeration value="5222" /> + <!-- ONTOLOGY_MAPPING_ALGORITHM_FAILED --> + <xs:enumeration value="5230" /> + <!-- ONTOLOGY_CONVERSION_FAILED --> + <xs:enumeration value="5231" /> <!-- EXTERNAL_OBJECT_NOT_REACHABLE --> <xs:enumeration value="6003" /> @@ -599,6 +622,12 @@ oneM2M EXPRESSLY ADVISES ANY AND ALL USE OF OR RELIANCE UPON THIS INFORMATION PR <xs:enumeration value="50" /> <!-- transaction --> <xs:enumeration value="51" /> + <!-- ontologyMapping --> + <xs:enumeration value="52" /> + <!-- ontologyMappingAlgorithm --> + <xs:enumeration value="53" /> + <!-- ontologyMappingAlgorithmRepository --> + <xs:enumeration value="54" /> <!-- accessControlPolicyAnnc --> <xs:enumeration value="10001" /> <!-- AEAnnc --> @@ -642,6 +671,12 @@ oneM2M EXPRESSLY ADVISES ANY AND ALL USE OF OR RELIANCE UPON THIS INFORMATION PR <xs:enumeration value="10042" /> <!-- multimediaSessionAnnc --> <xs:enumeration value="10046" /> + <!-- ontologyMappingAnnc --> + <xs:enumeration value="10052" /> + <!-- ontologyMappingAlgorithmAnnc --> + <xs:enumeration value="10053" /> + <!-- ontologyMappingAlgorithmRepositoryAnnc --> + <xs:enumeration value="10054" /> <!-- oldest --> <xs:enumeration value="20001" /> <!-- latest --> @@ -1708,6 +1743,38 @@ oneM2M EXPRESSLY ADVISES ANY AND ALL USE OF OR RELIANCE UPON THIS INFORMATION PR <xs:enumeration value="5" /> </xs:restriction> </xs:simpleType> + + <xs:simpleType name="ontologyMappingPolicy"> + <xs:annotation> + <xs:documentation>Used for the mappingPolicy attribute of the ontologyMapping resource to indicate the applied ontology mapping policy</xs:documentation> + </xs:annotation> + <xs:restriction base="xs:integer"> + <!-- SINGLE --> + <xs:enumeration value="1" /> + <!-- MULTIPLE --> + <xs:enumeration value="2" /> + <!-- TRAVERSAL --> + <xs:enumeration value="3" /> + </xs:restriction> + </xs:simpleType> + + <xs:simpleType name="ontologyMappingAlgorithmType"> + <xs:annotation> + <xs:documentation>Used for the algorithmType attribute of the ontologyMappingAlgorithm resource to indicate the type of the ontology mapping algorithm</xs:documentation> + </xs:annotation> + <xs:restriction base="xs:integer"> + <!-- LINGUISTIC --> + <xs:enumeration value="1" /> + <!-- STRUCTURAL --> + <xs:enumeration value="2" /> + <!-- EXTERNAL_RESOURCE --> + <xs:enumeration value="3" /> + <!-- LOGICAL_REASONING --> + <xs:enumeration value="4" /> + <!-- OTHERS --> + <xs:enumeration value="5" /> + </xs:restriction> + </xs:simpleType> </xs:schema> diff --git a/CDT-ontologyMapping.xsd b/CDT-ontologyMapping.xsd new file mode 100644 index 0000000..c4bb64b --- /dev/null +++ b/CDT-ontologyMapping.xsd @@ -0,0 +1,85 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Copyright Notification + + +The oneM2M Partners authorize you to copy this document, provided that you retain all copyright and other proprietary notices +contained in the original materials on any copies of the materials and that you comply strictly with these terms. +This copyright permission does not constitute an endorsement of the products or services, nor does it encompass the granting of +any patent rights. The oneM2M Partners assume no responsibility for errors or omissions in this document. +© 2022, oneM2M Partners Type 1 (ARIB, ATIS, CCSA, ETSI, TIA, TSDSI, TTA, TTC). All rights reserved. + +Notice of Disclaimer & Limitation of Liability + +The information provided in this document is directed solely to professionals who have the appropriate degree of experience +to understand and interpret its contents in accordance with generally accepted engineering or other professional standards +and applicable regulations. No recommendation as to products or vendors is made or should be implied. + +NO REPRESENTATION OR WARRANTY IS MADE THAT THE INFORMATION IS TECHNICALLY ACCURATE OR SUFFICIENT OR CONFORMS TO ANY STATUTE, +GOVERNMENTAL RULE OR REGULATION, AND FURTHER, NO REPRESENTATION OR WARRANTY IS MADE OF MERCHANTABILITY OR FITNESS FOR ANY +PARTICULAR PURPOSE OR AGAINST INFRINGEMENT OF INTELLECTUAL PROPERTY RIGHTS. +NO oneM2M PARTNER TYPE 1 SHALL BE LIABLE, BEYOND THE AMOUNT OF ANY SUM RECEIVED IN PAYMENT BY THAT PARTNER FOR THIS DOCUMENT, +WITH RESPECT TO ANY CLAIM, AND IN NO EVENT SHALL oneM2M BE LIABLE FOR LOST PROFITS OR OTHER INCIDENTAL OR CONSEQUENTIAL DAMAGES. +oneM2M EXPRESSLY ADVISES ANY AND ALL USE OF OR RELIANCE UPON THIS INFORMATION PROVIDED IN THIS DOCUMENT IS AT THE RISK OF THE USER. + +--> + +<xs:schema targetNamespace="http://www.onem2m.org/xml/protocols" xmlns:m2m="http://www.onem2m.org/xml/protocols" + elementFormDefault="unqualified" xmlns:xs="http://www.w3.org/2001/XMLSchema"> + <xs:include schemaLocation="CDT-commonTypes.xsd" /> + <xs:include schemaLocation="CDT-subscription.xsd" /> + <xs:include schemaLocation="CDT-ontology.xsd" /> + <xs:include schemaLocation="CDT-transaction.xsd"/> + + + <xs:element name="ontologyMapping" substitutionGroup="m2m:sg_announceableResource"> + <xs:complexType> + <xs:complexContent> + <xs:extension base="m2m:announceableResource"> + <xs:sequence> + <!-- Common Attribute, specific to <container>, <contentInstance>, <request>, <delivery>, + <ontologyRepository> and other resources --> + <xs:element name="creator" type="m2m:ID" minOccurs="0" /> + <!-- Resource Specific Attributes: none --> + <xs:element name="sourceOntology" type="xs:anyURI" /> + <xs:element name="targetOntology" type="xs:anyURI" /> + <xs:element name="mappingPolicy" type="m2m:ontologyMappingPolicy" /> + <xs:element name="mappingAlgorithmLinks" type="m2m:listOfURIs" /> + <xs:element name="mappingResultFormat" type="m2m:semanticFormat" /> + <xs:element name="mappingResult" type="xs:base64Binary" /> + + <!-- Child Resources --> + <xs:choice minOccurs="0" maxOccurs="1"> + <xs:element name="childResource" type="m2m:childResourceRef" minOccurs="1" maxOccurs="unbounded" /> + <xs:choice minOccurs="1" maxOccurs="unbounded"> + <xs:element ref="m2m:subscription" /> + <xs:element ref="m2m:transaction" /> + </xs:choice> + </xs:choice> + </xs:sequence> + </xs:extension> + </xs:complexContent> + </xs:complexType> + </xs:element> + + <xs:element name="ontologyMappingAnnc" substitutionGroup="m2m:sg_announcedResource"> + <xs:complexType> + <xs:complexContent> + <xs:extension base="m2m:announcedResource"> + <xs:sequence> + <!-- Common Attribute, specific to <container>, <contentInstance>, <request> and <delivery> resources --> + <!-- Resource Specific Attributes: none --> + + <!-- Child Resources --> + <xs:choice minOccurs="0" maxOccurs="1"> + <xs:element name="childResource" type="m2m:childResourceRef" minOccurs="1" maxOccurs="unbounded" /> + <xs:choice minOccurs="1" maxOccurs="unbounded"> + <xs:element ref="m2m:subscription" /> + </xs:choice> + </xs:choice> + </xs:sequence> + </xs:extension> + </xs:complexContent> + </xs:complexType> + </xs:element> +</xs:schema> diff --git a/CDT-ontologyMappingAlgorithm.xsd b/CDT-ontologyMappingAlgorithm.xsd new file mode 100644 index 0000000..01f7a65 --- /dev/null +++ b/CDT-ontologyMappingAlgorithm.xsd @@ -0,0 +1,83 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Copyright Notification + + +The oneM2M Partners authorize you to copy this document, provided that you retain all copyright and other proprietary notices +contained in the original materials on any copies of the materials and that you comply strictly with these terms. +This copyright permission does not constitute an endorsement of the products or services, nor does it encompass the granting of +any patent rights. The oneM2M Partners assume no responsibility for errors or omissions in this document. +© 2022, oneM2M Partners Type 1 (ARIB, ATIS, CCSA, ETSI, TIA, TSDSI, TTA, TTC). All rights reserved. + +Notice of Disclaimer & Limitation of Liability + +The information provided in this document is directed solely to professionals who have the appropriate degree of experience +to understand and interpret its contents in accordance with generally accepted engineering or other professional standards +and applicable regulations. No recommendation as to products or vendors is made or should be implied. + +NO REPRESENTATION OR WARRANTY IS MADE THAT THE INFORMATION IS TECHNICALLY ACCURATE OR SUFFICIENT OR CONFORMS TO ANY STATUTE, +GOVERNMENTAL RULE OR REGULATION, AND FURTHER, NO REPRESENTATION OR WARRANTY IS MADE OF MERCHANTABILITY OR FITNESS FOR ANY +PARTICULAR PURPOSE OR AGAINST INFRINGEMENT OF INTELLECTUAL PROPERTY RIGHTS. +NO oneM2M PARTNER TYPE 1 SHALL BE LIABLE, BEYOND THE AMOUNT OF ANY SUM RECEIVED IN PAYMENT BY THAT PARTNER FOR THIS DOCUMENT, +WITH RESPECT TO ANY CLAIM, AND IN NO EVENT SHALL oneM2M BE LIABLE FOR LOST PROFITS OR OTHER INCIDENTAL OR CONSEQUENTIAL DAMAGES. +oneM2M EXPRESSLY ADVISES ANY AND ALL USE OF OR RELIANCE UPON THIS INFORMATION PROVIDED IN THIS DOCUMENT IS AT THE RISK OF THE USER. + +--> + +<xs:schema targetNamespace="http://www.onem2m.org/xml/protocols" xmlns:m2m="http://www.onem2m.org/xml/protocols" + elementFormDefault="unqualified" xmlns:xs="http://www.w3.org/2001/XMLSchema"> + <xs:include schemaLocation="CDT-commonTypes.xsd" /> + <xs:include schemaLocation="CDT-subscription.xsd" /> + <xs:include schemaLocation="CDT-ontology.xsd" /> + <xs:include schemaLocation="CDT-transaction.xsd"/> + + + <xs:element name="ontologyMappingAlgorithm" substitutionGroup="m2m:sg_announceableResource"> + <xs:complexType> + <xs:complexContent> + <xs:extension base="m2m:announceableResource"> + <xs:sequence> + <!-- Common Attribute, specific to <container>, <contentInstance>, <request>, <delivery>, + <ontologyRepository> and other resources --> + <xs:element name="creator" type="m2m:ID" minOccurs="0" /> + <!-- Resource Specific Attributes: none --> + <xs:element name="executable" type="xs:base64Binary" minOccurs="0" /> + <xs:element name="algorithmType" type="m2m:ontologyMappingAlgorithmType" minOccurs="0" /> + <xs:element name="description" type="xs:string" minOccurs="0" /> + <xs:element name="mappingThreshold" type="xs:float" minOccurs="0" /> + + <!-- Child Resources --> + <xs:choice minOccurs="0" maxOccurs="1"> + <xs:element name="childResource" type="m2m:childResourceRef" minOccurs="1" maxOccurs="unbounded" /> + <xs:choice minOccurs="1" maxOccurs="unbounded"> + <xs:element ref="m2m:subscription" /> + <xs:element ref="m2m:transaction" /> + </xs:choice> + </xs:choice> + </xs:sequence> + </xs:extension> + </xs:complexContent> + </xs:complexType> + </xs:element> + + <xs:element name="ontologyMappingAlgorithmAnnc" substitutionGroup="m2m:sg_announcedResource"> + <xs:complexType> + <xs:complexContent> + <xs:extension base="m2m:announcedResource"> + <xs:sequence> + <!-- Common Attribute, specific to <container>, <contentInstance>, <request> and <delivery> resources --> + <!-- Resource Specific Attributes: none --> + + <!-- Child Resources --> + <xs:choice minOccurs="0" maxOccurs="1"> + <xs:element name="childResource" type="m2m:childResourceRef" minOccurs="1" maxOccurs="unbounded" /> + <xs:choice minOccurs="1" maxOccurs="unbounded"> + <xs:element ref="m2m:subscription" /> + </xs:choice> + </xs:choice> + </xs:sequence> + </xs:extension> + </xs:complexContent> + </xs:complexType> + </xs:element> +</xs:schema> diff --git a/CDT-ontologyMappingAlgorithmRepository.xsd b/CDT-ontologyMappingAlgorithmRepository.xsd new file mode 100644 index 0000000..89e1254 --- /dev/null +++ b/CDT-ontologyMappingAlgorithmRepository.xsd @@ -0,0 +1,81 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Copyright Notification + + +The oneM2M Partners authorize you to copy this document, provided that you retain all copyright and other proprietary notices +contained in the original materials on any copies of the materials and that you comply strictly with these terms. +This copyright permission does not constitute an endorsement of the products or services, nor does it encompass the granting of +any patent rights. The oneM2M Partners assume no responsibility for errors or omissions in this document. +© 2022, oneM2M Partners Type 1 (ARIB, ATIS, CCSA, ETSI, TIA, TSDSI, TTA, TTC). All rights reserved. + +Notice of Disclaimer & Limitation of Liability + +The information provided in this document is directed solely to professionals who have the appropriate degree of experience +to understand and interpret its contents in accordance with generally accepted engineering or other professional standards +and applicable regulations. No recommendation as to products or vendors is made or should be implied. + +NO REPRESENTATION OR WARRANTY IS MADE THAT THE INFORMATION IS TECHNICALLY ACCURATE OR SUFFICIENT OR CONFORMS TO ANY STATUTE, +GOVERNMENTAL RULE OR REGULATION, AND FURTHER, NO REPRESENTATION OR WARRANTY IS MADE OF MERCHANTABILITY OR FITNESS FOR ANY +PARTICULAR PURPOSE OR AGAINST INFRINGEMENT OF INTELLECTUAL PROPERTY RIGHTS. +NO oneM2M PARTNER TYPE 1 SHALL BE LIABLE, BEYOND THE AMOUNT OF ANY SUM RECEIVED IN PAYMENT BY THAT PARTNER FOR THIS DOCUMENT, +WITH RESPECT TO ANY CLAIM, AND IN NO EVENT SHALL oneM2M BE LIABLE FOR LOST PROFITS OR OTHER INCIDENTAL OR CONSEQUENTIAL DAMAGES. +oneM2M EXPRESSLY ADVISES ANY AND ALL USE OF OR RELIANCE UPON THIS INFORMATION PROVIDED IN THIS DOCUMENT IS AT THE RISK OF THE USER. + +--> + +<xs:schema targetNamespace="http://www.onem2m.org/xml/protocols" xmlns:m2m="http://www.onem2m.org/xml/protocols" + elementFormDefault="unqualified" xmlns:xs="http://www.w3.org/2001/XMLSchema"> + <xs:include schemaLocation="CDT-commonTypes.xsd" /> + <xs:include schemaLocation="CDT-subscription.xsd" /> + <xs:include schemaLocation="CDT-ontology.xsd" /> + <xs:include schemaLocation="CDT-transaction.xsd"/> + + + <xs:element name="ontologyMappingAlgorithmRepository" substitutionGroup="m2m:sg_announceableResource"> + <xs:complexType> + <xs:complexContent> + <xs:extension base="m2m:announceableResource"> + <xs:sequence> + <!-- Common Attribute, specific to <container>, <contentInstance>, <request>, <delivery>, + <ontologyRepository> and other resources --> + <xs:element name="creator" type="m2m:ID" minOccurs="0" /> + <!-- Resource Specific Attributes: none --> + + <!-- Child Resources --> + <xs:choice minOccurs="0" maxOccurs="1"> + <xs:element name="childResource" type="m2m:childResourceRef" minOccurs="1" maxOccurs="unbounded" /> + <xs:choice minOccurs="1" maxOccurs="unbounded"> + <xs:element ref="m2m:subscription" /> + <xs:element ref="m2m:transaction" /> + <xs:element ref="m2m:ontologyMappingAlgorithm" /> + </xs:choice> + </xs:choice> + </xs:sequence> + </xs:extension> + </xs:complexContent> + </xs:complexType> + </xs:element> + + <xs:element name="ontologyMappingAlgorithmRepositoryAnnc" substitutionGroup="m2m:sg_announcedResource"> + <xs:complexType> + <xs:complexContent> + <xs:extension base="m2m:announcedResource"> + <xs:sequence> + <!-- Common Attribute, specific to <container>, <contentInstance>, <request> and <delivery> resources --> + <!-- Resource Specific Attributes: none --> + + <!-- Child Resources --> + <xs:choice minOccurs="0" maxOccurs="1"> + <xs:element name="childResource" type="m2m:childResourceRef" minOccurs="1" maxOccurs="unbounded" /> + <xs:choice minOccurs="1" maxOccurs="unbounded"> + <xs:element ref="m2m:subscription" /> + <xs:element ref="m2m:ontologyMappingAlgorithmAnnc" /> + </xs:choice> + </xs:choice> + </xs:sequence> + </xs:extension> + </xs:complexContent> + </xs:complexType> + </xs:element> +</xs:schema> diff --git a/CDT-requestPrimitive.xsd b/CDT-requestPrimitive.xsd index 5ceeb0f..fce94af 100644 --- a/CDT-requestPrimitive.xsd +++ b/CDT-requestPrimitive.xsd @@ -126,6 +126,8 @@ oneM2M EXPRESSLY ADVISES ANY AND ALL USE OF OR RELIANCE UPON THIS INFORMATION PR <xs:element name="authorRelIndicator" type="xs:boolean" minOccurs="0"/> <!-- parameter " Semantic Query Indicator" --> <xs:element name="semanticQueryIndicator" type="xs:boolean" minOccurs="0"/> + <!-- parameter "Ontology Mapping Resources" --> + <xs:element name="ontologyMappingResources" type="m2m:listOfM2MID" minOccurs="0"/> <!-- parameter "Release Version Indicator" --> <xs:element name="releaseVersionIndicator" type="m2m:releaseVersion" minOccurs="1"/> <!-- parameter "Vendor Information" --> -- GitLab