diff --git a/CDT-AE.xsd b/CDT-AE.xsd index 8e0b00178547423fc4aff0526380306fbe0531b0..388970d64b5b9d78b5e30a725bb35f4f03fb14c3 100644 --- a/CDT-AE.xsd +++ b/CDT-AE.xsd @@ -33,7 +33,8 @@ oneM2M EXPRESSLY ADVISES ANY AND ALL USE OF OR RELIANCE UPON THIS INFORMATION PR <xs:include schemaLocation="CDT-subscription.xsd" /> <xs:include schemaLocation="CDT-pollingChannel.xsd" /> <xs:include schemaLocation="CDT-schedule.xsd" /> - + <xs:include schemaLocation="CDT-semanticDescriptor.xsd" /> + <xs:element name="AE"> <xs:complexType> <xs:complexContent> @@ -59,7 +60,8 @@ oneM2M EXPRESSLY ADVISES ANY AND ALL USE OF OR RELIANCE UPON THIS INFORMATION PR <xs:element ref="m2m:accessControlPolicy" /> <xs:element ref="m2m:subscription" /> <xs:element ref="m2m:pollingChannel" /> - <xs:element ref="m2m:schedule" /> + <xs:element ref="m2m:schedule" /> + <xs:element ref="m2m:semanticDescriptor" /> </xs:choice> </xs:choice> </xs:sequence> @@ -96,6 +98,7 @@ oneM2M EXPRESSLY ADVISES ANY AND ALL USE OF OR RELIANCE UPON THIS INFORMATION PR <xs:element ref="m2m:accessControlPolicyAnnc" /> <xs:element ref="m2m:subscription" /> <xs:element ref="m2m:scheduleAnnc" /> + <xs:element ref="m2m:semanticDescriptor" /> </xs:choice> </xs:choice> </xs:sequence> diff --git a/CDT-accessControlPolicy.xsd b/CDT-accessControlPolicy.xsd index 515ba226e6139e7c21eded8845fea4ab4bc15696..e2d9e16450b90ed447d4558382f867c556183e29 100644 --- a/CDT-accessControlPolicy.xsd +++ b/CDT-accessControlPolicy.xsd @@ -128,43 +128,9 @@ oneM2M EXPRESSLY ADVISES ANY AND ALL USE OF OR RELIANCE UPON THIS INFORMATION PR </xs:sequence> </xs:complexType> - <xs:complexType name="locationRegion"> - <xs:choice> - <xs:element name="countryCode"> - <!-- Space separated list of 2-digit country codes --> - <xs:simpleType> - <xs:restriction> - <xs:simpleType> - <xs:list itemType="m2m:countryCode" /> - </xs:simpleType> - <xs:minLength value="1"/> - </xs:restriction> - </xs:simpleType> - </xs:element> - <xs:element name="circRegion"> - <!-- "circularRegion" is an ordered list of following three parameters of data type float ´ 1) longitude in the range - +/-180 degrees 2) latitude in the range +/-90 degrees, 3) radius in meters --> - <xs:simpleType> - <xs:restriction> - <xs:simpleType> - <xs:list itemType="xs:float" /> - </xs:simpleType> - <xs:length value="3" /> - </xs:restriction> - </xs:simpleType> - </xs:element> - </xs:choice> - </xs:complexType> - - <!-- countryCode as defined in TS-0004 --> - <xs:simpleType name="countryCode"> - <xs:annotation> - <xs:documentation>2-character country code as defined by ISO-3166</xs:documentation> - </xs:annotation> - <xs:restriction base="xs:string"> - <xs:pattern value="[A-Z]{2}" /> - </xs:restriction> - </xs:simpleType> + <!-- locationRegion is defined in commonTypes --> + + <!-- countryCode is defined in commonTypes --> <!-- Initial IPv4 and IPv6 address representation types were found here: diff --git a/CDT-commonTypes.xsd b/CDT-commonTypes.xsd index a1bc458b4619b97200e21f885c1b1e9663d2ae36..1288bfb27b9f03234429e841f0ef2eff08b9f8de 100644 --- a/CDT-commonTypes.xsd +++ b/CDT-commonTypes.xsd @@ -260,7 +260,27 @@ oneM2M EXPRESSLY ADVISES ANY AND ALL USE OF OR RELIANCE UPON THIS INFORMATION PR <xs:simpleType name="attributeList"> <list itemType="xs:NCName" /> </xs:simpleType> + + <xs:simpleType name="resourceTypeList"> + <xs:restriction> + <xs:simpleType> + <xs:list itemType="m2m:resourceType" /> + </xs:simpleType> + <xs:minLength value="1" /> + </xs:restriction> + </xs:simpleType> + <xs:simpleType name="sparql"> + <xs:restriction base="xs:string" /> + </xs:simpleType> + + <xs:simpleType name="descriptorRepresentation"> + <xs:restriction base="xs:string"> + <xs:pattern value="application\/rdf\+xml\:1" /> + </xs:restriction> + </xs:simpleType> + + <!--********************** --> <!-- oneM2M Complex Types --> <!--********************** --> @@ -330,13 +350,14 @@ oneM2M EXPRESSLY ADVISES ANY AND ALL USE OF OR RELIANCE UPON THIS INFORMATION PR <xs:element name="expireBefore" type="m2m:timestamp" minOccurs="0" /> <xs:element name="expireAfter" type="m2m:timestamp" minOccurs="0" /> <xs:element name="labels" type="m2m:labels" minOccurs="0" /> - <xs:element name="resourceType" type="m2m:resourceType" minOccurs="0" /> + <xs:element name="resourceType" type="m2m:resourceTypeList" minOccurs="0" /> <xs:element name="sizeAbove" type="xs:nonNegativeInteger" minOccurs="0" /> <xs:element name="sizeBelow" type="xs:positiveInteger" minOccurs="0" /> <xs:element name="contentType" type="m2m:typeOfContent" minOccurs="0" maxOccurs="unbounded" /> <xs:element name="attribute" type="m2m:attribute" minOccurs="0" maxOccurs="unbounded" /> <xs:element name="filterUsage" type="m2m:filterUsage" minOccurs="0" /> <xs:element name="limit" type="xs:nonNegativeInteger" minOccurs="0" /> + <xs:element name="semanticsFilter" type="m2m:sparql" minOccurs="0" maxOccurs="unbounded" /> </xs:sequence> </xs:complexType> @@ -506,6 +527,64 @@ oneM2M EXPRESSLY ADVISES ANY AND ALL USE OF OR RELIANCE UPON THIS INFORMATION PR </xs:complexType> <!-- m2m:aggregatedResponse is in the ResponsePrimitive xsd file --> + + <xs:complexType name="contentRef"> + <xs:sequence> + <xs:element name="URIReference" minOccurs="1" maxOccurs="unbounded"> + <xs:complexType> + <xs:sequence> + <xs:element name="name" type="xs:NCName"/> + <xs:element name="URI" type="xs:anyURI"/> + </xs:sequence> + </xs:complexType> + </xs:element> + </xs:sequence> + </xs:complexType> + + <xs:complexType name="deletionContexts"> + <xs:sequence> + <xs:element name="timeOfDay" type="m2m:scheduleEntry" minOccurs="0" maxOccurs="unbounded" /> + <xs:element name="locationRegions" type="m2m:locationRegion" minOccurs="0" maxOccurs="unbounded" /> + </xs:sequence> + </xs:complexType> + + <xs:complexType name="locationRegion"> + <xs:choice> + <xs:element name="countryCode"> + <!-- Space separated list of 2-digit country codes --> + <xs:simpleType> + <xs:restriction> + <xs:simpleType> + <xs:list itemType="m2m:countryCode" /> + </xs:simpleType> + <xs:minLength value="1"/> + </xs:restriction> + </xs:simpleType> + </xs:element> + <xs:element name="circRegion"> + <!-- "circularRegion" is an ordered list of following three parameters of data type float ´ 1) longitude in the range + +/-180 degrees 2) latitude in the range +/-90 degrees, 3) radius in meters --> + <xs:simpleType> + <xs:restriction> + <xs:simpleType> + <xs:list itemType="xs:float" /> + </xs:simpleType> + <xs:length value="3" /> + </xs:restriction> + </xs:simpleType> + </xs:element> + </xs:choice> + </xs:complexType> + + <xs:simpleType name="countryCode"> + <xs:annotation> + <xs:documentation>2-character country code as defined by ISO-3166</xs:documentation> + </xs:annotation> + <xs:restriction base="xs:string"> + <xs:pattern value="[A-Z]{2}" /> + </xs:restriction> + </xs:simpleType> + <!-- Resource type definitions. These types include the "common attributes" that are used by oneM2M Resources. Each oneM2M Resource has a resource type that is defined in a separate schema, but each resource type extends one of the types that is @@ -529,6 +608,7 @@ oneM2M EXPRESSLY ADVISES ANY AND ALL USE OF OR RELIANCE UPON THIS INFORMATION PR <xs:sequence> <xs:element name="accessControlPolicyIDs" type="m2m:acpType" minOccurs="0" /> <xs:element name="expirationTime" type="m2m:timestamp" /> + <xs:element name="dynamicAuthorizationConsultationIDs" type="m2m:listOfURIs" minOccurs="0" /> </xs:sequence> </xs:extension> </xs:complexContent> @@ -562,6 +642,7 @@ oneM2M EXPRESSLY ADVISES ANY AND ALL USE OF OR RELIANCE UPON THIS INFORMATION PR <xs:element name="accessControlPolicyIDs" type="m2m:acpType" /> <xs:element name="expirationTime" type="m2m:timestamp" /> <xs:element name="link" type="xs:anyURI" /> + <xs:element name="dynamicAuthorizationConsultationIDs" type="m2m:listOfURIs" minOccurs="0" /> </xs:sequence> </xs:extension> </xs:complexContent> @@ -587,6 +668,16 @@ oneM2M EXPRESSLY ADVISES ANY AND ALL USE OF OR RELIANCE UPON THIS INFORMATION PR </xs:extension> </xs:complexContent> </xs:complexType> + + <xs:complexType name="subordinateResource"> + <xs:complexContent> + <xs:extension base="m2m:resource"> + <xs:sequence> + <xs:element name="expirationTime" type="m2m:timestamp" /> + </xs:sequence> + </xs:extension> + </xs:complexContent> + </xs:complexType> <xs:complexType name="announcedSubordinateResource"> <xs:complexContent> diff --git a/CDT-container.xsd b/CDT-container.xsd index e8c8bc35456f9de50dab69668d72b918c3010958..f32aab48c5965c90057949fbb938d0fdefecf3e9 100644 --- a/CDT-container.xsd +++ b/CDT-container.xsd @@ -29,6 +29,7 @@ oneM2M EXPRESSLY ADVISES ANY AND ALL USE OF OR RELIANCE UPON THIS INFORMATION PR <xs:include schemaLocation="CDT-commonTypes.xsd" /> <xs:include schemaLocation="CDT-contentInstance.xsd" /> <xs:include schemaLocation="CDT-subscription.xsd" /> + <xs:include schemaLocation="CDT-semanticDescriptor.xsd" /> <xs:element name="container"> <xs:complexType> @@ -56,6 +57,7 @@ oneM2M EXPRESSLY ADVISES ANY AND ALL USE OF OR RELIANCE UPON THIS INFORMATION PR <xs:element ref="m2m:contentInstance" /> <xs:element ref="m2m:container" /> <xs:element ref="m2m:subscription" /> + <xs:element ref="m2m:semanticDescriptor" /> </xs:choice> </xs:choice> </xs:sequence> @@ -89,6 +91,7 @@ oneM2M EXPRESSLY ADVISES ANY AND ALL USE OF OR RELIANCE UPON THIS INFORMATION PR <xs:element ref="m2m:container" /> <xs:element ref="m2m:containerAnnc" /> <xs:element ref="m2m:subscription" /> + <xs:element ref="m2m:semanticDescriptor" /> </xs:choice> </xs:choice> </xs:sequence> diff --git a/CDT-contentInstance.xsd b/CDT-contentInstance.xsd index 73efb4e844495e154dd5d02eb0e86e77cf63aed3..6a33dd7dbb2de16f9acce9213da48e2604f5c1c3 100644 --- a/CDT-contentInstance.xsd +++ b/CDT-contentInstance.xsd @@ -28,6 +28,7 @@ oneM2M EXPRESSLY ADVISES ANY AND ALL USE OF OR RELIANCE UPON THIS INFORMATION PR elementFormDefault="unqualified" xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:include schemaLocation="CDT-commonTypes.xsd" /> + <xs:include schemaLocation="CDT-semanticDescriptor.xsd" /> <xs:element name="contentInstance"> <xs:complexType> @@ -40,8 +41,15 @@ oneM2M EXPRESSLY ADVISES ANY AND ALL USE OF OR RELIANCE UPON THIS INFORMATION PR <xs:element name="creator" type="m2m:ID" minOccurs="0" /> <xs:element name="contentInfo" type="m2m:contentInfo" minOccurs="0" /> <xs:element name="contentSize" type="xs:nonNegativeInteger" /> + <xs:element name="contentRef" type="m2m:contentRef" minOccurs="0"/> <xs:element name="ontologyRef" type="xs:anyURI" minOccurs="0" /> <xs:element name="content" type="xs:anyType" /> + + <!-- Child Resources --> + <xs:choice minOccurs="0" maxOccurs="1"> + <xs:element name="childResource" type="m2m:childResourceRef" maxOccurs="unbounded" /> + <xs:element ref="m2m:semanticDescriptor" maxOccurs="unbounded" /> + </xs:choice> </xs:sequence> </xs:extension> </xs:complexContent> @@ -60,6 +68,12 @@ oneM2M EXPRESSLY ADVISES ANY AND ALL USE OF OR RELIANCE UPON THIS INFORMATION PR <xs:element name="contentSize" type="xs:nonNegativeInteger" minOccurs="0" /> <xs:element name="ontologyRef" type="xs:anyURI" minOccurs="0" /> <xs:element name="content" type="xs:anyType" minOccurs="0" /> + + <!-- Child Resources --> + <xs:choice minOccurs="0" maxOccurs="1"> + <xs:element name="childResource" type="m2m:childResourceRef" maxOccurs="unbounded" /> + <xs:element ref="m2m:semanticDescriptor" maxOccurs="unbounded" /> + </xs:choice> </xs:sequence> </xs:extension> </xs:complexContent> diff --git a/CDT-dynamicAuthorizationConsultation.xsd b/CDT-dynamicAuthorizationConsultation.xsd new file mode 100644 index 0000000000000000000000000000000000000000..f3840c2c27fbe836072b0c88244a24a6b0d2e556 --- /dev/null +++ b/CDT-dynamicAuthorizationConsultation.xsd @@ -0,0 +1,48 @@ +<?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. +© 2015, oneM2M Partners Type 1 (ARIB, ATIS, CCSA, ETSI, TIA, 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 xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.onem2m.org/xml/protocols" + xmlns:m2m="http://www.onem2m.org/xml/protocols" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + elementFormDefault="unqualified" xmlns:xs="http://www.w3.org/2001/XMLSchema"> + + <xs:include schemaLocation="CDT-commonTypes.xsd" /> + + <xs:element name="dynamicAuthorizationConsultation"> + <xs:complexType> + <xs:complexContent> + <!-- Inherit common attributes for announceable Resources --> + <xs:extension base="m2m:regularResource"> + <xs:sequence> + <!-- Resource Specific Attributes --> + <xs:element name="dynamicAuthorizationEnabled" type="xs:boolean" /> + <xs:element name="dynamicAuthorizationPoA" type="m2m:listOfURIs" /> + <xs:element name="dynamicAuthorizationLifetime" type="m2m:timestamp" minOccurs="0" /> + + <!-- This Resource Type has no Child Resources --> + </xs:sequence> + </xs:extension> + </xs:complexContent> + </xs:complexType> + </xs:element> +</xs:schema> diff --git a/CDT-enumerationTypes.xsd b/CDT-enumerationTypes.xsd index 15e4c1486bbbf907d4c4d067c79933069409463d..8a1f8014dacf8ec3318e7212a7786e489e892a7d 100644 --- a/CDT-enumerationTypes.xsd +++ b/CDT-enumerationTypes.xsd @@ -78,6 +78,16 @@ oneM2M EXPRESSLY ADVISES ANY AND ALL USE OF OR RELIANCE UPON THIS INFORMATION PR <xs:enumeration value="22" /> <!-- subscription --> <xs:enumeration value="23" /> + <!-- semanticDescriptor --> + <xs:enumeration value="24" /> + <!-- dynamicAuthorizationConsultation --> + <xs:enumeration value="25" /> + <!-- notificationTargetPolicy --> + <xs:enumeration value="26" /> + <!-- notificationTargetMgmtPolicyRef --> + <xs:enumeration value="27" /> + <!-- policyDeletionRules --> + <xs:enumeration value="28" /> <!-- accessControlPolicyAnnc --> <xs:enumeration value="10001" /> <!-- AEAnnc --> @@ -98,6 +108,8 @@ oneM2M EXPRESSLY ADVISES ANY AND ALL USE OF OR RELIANCE UPON THIS INFORMATION PR <xs:enumeration value="10016" /> <!-- scheduleAnnc --> <xs:enumeration value="10018" /> + <!-- semanticDescriptorAnnc --> + <xs:enumeration value="10024" /> </xs:restriction> </xs:simpleType> @@ -201,6 +213,8 @@ oneM2M EXPRESSLY ADVISES ANY AND ALL USE OF OR RELIANCE UPON THIS INFORMATION PR <xs:enumeration value="6" /> <!-- Original Resource --> <xs:enumeration value="7" /> + <!-- Child Resources --> + <xs:enumeration value="8" /> </xs:restriction> </xs:simpleType> @@ -266,9 +280,11 @@ oneM2M EXPRESSLY ADVISES ANY AND ALL USE OF OR RELIANCE UPON THIS INFORMATION PR <!-- SUBSCRIPTION_HOST_HAS_NO_PRIVILEGE --> <xs:enumeration value="5205" /> <!-- NON_BLOCKING_REQUEST_NOT_SUPPORTED --> - <xs:enumeration value="5206" /> + <xs:enumeration value="5206" /> <!-- NOT_ACCEPTABLE --> <xs:enumeration value="5207" /> + <!-- DISCOVERY_DENIED_BY_IPE --> + <xs:enumeration value="5208" /> <!-- EXTERNAL_OBJECT_NOT_REACHABLE --> <xs:enumeration value="6003" /> <!-- EXTERNAL_OBJECT_NOT_FOUND --> @@ -906,7 +922,34 @@ oneM2M EXPRESSLY ADVISES ANY AND ALL USE OF OR RELIANCE UPON THIS INFORMATION PR <xs:enumeration value="1" /> <!-- Conditional Retrieval --> <xs:enumeration value="2" /> + <!-- IPE On-demand Discovery --> + <xs:enumeration value="3" /> </xs:restriction> </xs:simpleType> + + <xs:simpleType name="notificationTargetPolicyAction"> + <xs:annotation> + <xs:documentation>Used in filterCriteria</xs:documentation> + </xs:annotation> + <xs:restriction base="xs:integer"> + <!-- accept request --> + <xs:enumeration value="1" /> + <!-- reject request --> + <xs:enumeration value="2" /> + <!-- seek authorization from subscription originator before responding --> + <xs:enumeration value="3" /> + <!-- inform the subscription originator without taking any action --> + <xs:enumeration value="4" /> + </xs:restriction> + </xs:simpleType> + + <xs:simpleType name="logicalOperator"> + <xs:restriction base="xs:integer"> + <!-- AND Operation --> + <xs:enumeration value="1" /> + <!-- OR Operation --> + <xs:enumeration value="2" /> + </xs:restriction> + </xs:simpleType> </xs:schema> diff --git a/CDT-group.xsd b/CDT-group.xsd index d2ad25a14dad8254ef0ab0cb777eb390136c5823..015314a6304faa2915d6acefcf204f79b75912c5 100644 --- a/CDT-group.xsd +++ b/CDT-group.xsd @@ -29,6 +29,7 @@ oneM2M EXPRESSLY ADVISES ANY AND ALL USE OF OR RELIANCE UPON THIS INFORMATION PR <xs:include schemaLocation="CDT-commonTypes.xsd" /> <xs:include schemaLocation="CDT-subscription.xsd" /> + <xs:include schemaLocation="CDT-semanticDescriptor.xsd" /> <xs:element name="group"> <xs:complexType> @@ -49,10 +50,14 @@ oneM2M EXPRESSLY ADVISES ANY AND ALL USE OF OR RELIANCE UPON THIS INFORMATION PR <!-- Child Resources --> <xs:element name="fanOutPoint" type="xs:anyURI" /> + <xs:element name="semanticFanOutPoint" type="xs:anyURI" minOccurs="0" /> <xs:choice minOccurs="0" maxOccurs="1"> <xs:element name="childResource" type="m2m:childResourceRef" maxOccurs="unbounded" /> - <xs:element ref="m2m:subscription" maxOccurs="unbounded" /> + <xs:choice minOccurs="1" maxOccurs="unbounded"> + <xs:element ref="m2m:subscription" /> + <xs:element ref="m2m:semanticDescriptor" /> + </xs:choice> </xs:choice> </xs:sequence> </xs:extension> @@ -80,7 +85,10 @@ oneM2M EXPRESSLY ADVISES ANY AND ALL USE OF OR RELIANCE UPON THIS INFORMATION PR <xs:choice minOccurs="0" maxOccurs="1"> <xs:element name="childResource" type="m2m:childResourceRef" maxOccurs="unbounded" /> - <xs:element ref="m2m:subscription" maxOccurs="unbounded" /> + <xs:choice minOccurs="1" maxOccurs="unbounded"> + <xs:element ref="m2m:subscription" /> + <xs:element ref="m2m:semanticDescriptor" /> + </xs:choice> </xs:choice> </xs:sequence> </xs:extension> diff --git a/CDT-node.xsd b/CDT-node.xsd index 6078487293798ff66c337af5982d955d3dc9d1aa..212b3c9400ae5fd2e92c6beacd4d8829ba605299 100644 --- a/CDT-node.xsd +++ b/CDT-node.xsd @@ -41,6 +41,7 @@ oneM2M EXPRESSLY ADVISES ANY AND ALL USE OF OR RELIANCE UPON THIS INFORMATION PR <xs:include schemaLocation="CDT-cmdhPolicy.xsd" /> <xs:include schemaLocation="CDT-activeCmdhPolicy.xsd" /> <xs:include schemaLocation="CDT-subscription.xsd" /> + <xs:include schemaLocation="CDT-semanticDescriptor.xsd" /> <xs:element name="node"> <xs:complexType> @@ -69,6 +70,7 @@ oneM2M EXPRESSLY ADVISES ANY AND ALL USE OF OR RELIANCE UPON THIS INFORMATION PR <xs:element ref="m2m:cmdhPolicy" /> <xs:element ref="m2m:activeCmdhPolicy" /> <xs:element ref="m2m:subscription" /> + <xs:element ref="m2m:semanticDescriptor" /> </xs:choice> </xs:choice> </xs:sequence> @@ -102,6 +104,7 @@ oneM2M EXPRESSLY ADVISES ANY AND ALL USE OF OR RELIANCE UPON THIS INFORMATION PR <xs:element ref="m2m:rebootAnnc" /> <xs:element ref="m2m:eventLogAnnc" /> <xs:element ref="m2m:subscription" /> + <xs:element ref="m2m:semanticDescriptor" /> </xs:choice> </xs:choice> </xs:sequence> diff --git a/CDT-notification.xsd b/CDT-notification.xsd index 9d98a2070148974d235501d356c78e5db5c0bf33..29b200466bdc967868963b3dedc8921f5cff01ea 100644 --- a/CDT-notification.xsd +++ b/CDT-notification.xsd @@ -61,6 +61,14 @@ oneM2M EXPRESSLY ADVISES ANY AND ALL USE OF OR RELIANCE UPON THIS INFORMATION PR <xs:element name="subscriptionReference" type="xs:anyURI" minOccurs="0"/> <xs:element name="creator" type="m2m:ID" minOccurs="0"/> <xs:element name="notificationForwardingURI" type="xs:anyURI" minOccurs="0"/> + <xs:element name="IPEDiscoveryRequest" minOccurs="0"> + <xs:complexType > + <xs:sequence> + <xs:element name="originator" type="m2m:ID" /> + <xs:element name="filterCriteria" type="m2m:filterCriteria" /> + </xs:sequence> + </xs:complexType> + </xs:element> </xs:sequence> </xs:complexType> diff --git a/CDT-notificationTargetMgmtPolicyRef.xsd b/CDT-notificationTargetMgmtPolicyRef.xsd new file mode 100644 index 0000000000000000000000000000000000000000..286b3d5fea07e34d6d0c8f1f51aa08d9fe41b612 --- /dev/null +++ b/CDT-notificationTargetMgmtPolicyRef.xsd @@ -0,0 +1,52 @@ +<?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. +© 2015, oneM2M Partners Type 1 (ARIB, ATIS, CCSA, ETSI, TIA, 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 xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.onem2m.org/xml/protocols" + xmlns:m2m="http://www.onem2m.org/xml/protocols" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + elementFormDefault="unqualified" xmlns:xs="http://www.w3.org/2001/XMLSchema"> + + <xs:include schemaLocation="CDT-commonTypes.xsd" /> + <xs:include schemaLocation="CDT-subscription.xsd" /> + + <xs:element name="notificationTargetMgmtPolicyRef"> + <xs:complexType> + <xs:complexContent> + <!-- Inherit common attributes --> + <xs:extension base="m2m:regularResource"> + <xs:sequence> + <!-- Resource Specific Attributes --> + <xs:element name="notificationTargetURI" type="m2m:listOfURIs" minOccurs="0" /> + <xs:element name="notificationlPolicyID" type="m2m:listOfURIs" minOccurs="0" /> + + <!-- Child Resources --> + <xs:choice minOccurs="0" maxOccurs="1"> + <xs:element name="childResource" type="m2m:childResourceRef" maxOccurs="unbounded" /> + <xs:element ref="m2m:subscription" maxOccurs="unbounded" /> + </xs:choice> + </xs:sequence> + </xs:extension> + </xs:complexContent> + </xs:complexType> + </xs:element> +</xs:schema> diff --git a/CDT-notificationTargetPolicy.xsd b/CDT-notificationTargetPolicy.xsd new file mode 100644 index 0000000000000000000000000000000000000000..fbabe8f1d53daffbaaa967522e59d951058ff041 --- /dev/null +++ b/CDT-notificationTargetPolicy.xsd @@ -0,0 +1,58 @@ +<?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. +© 2015, oneM2M Partners Type 1 (ARIB, ATIS, CCSA, ETSI, TIA, 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 xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.onem2m.org/xml/protocols" + xmlns:m2m="http://www.onem2m.org/xml/protocols" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + elementFormDefault="unqualified" xmlns:xs="http://www.w3.org/2001/XMLSchema"> + + <xs:include schemaLocation="CDT-commonTypes.xsd" /> + <xs:include schemaLocation="CDT-policyDeletionRules.xsd" /> + <xs:include schemaLocation="CDT-subscription.xsd" /> + + <xs:element name="notificationTargetPolicy"> + <xs:complexType> + <xs:complexContent> + <!-- Inherit common attributes --> + <xs:extension base="m2m:regularResource"> + <xs:sequence> + <!-- Resource Specific Attributes --> + <xs:element name="action" type="m2m:notificationTargetPolicyAction" minOccurs="1" /> + <xs:element name="policyLabel" type="xs:token" minOccurs="1" /> + <xs:element name="rulesRelationship" type="m2m:logicalOperator" minOccurs="0" /> + <xs:element name="creator" type="m2m:ID" 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:policyDeletionRules" /> + <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-policyDeletionRules.xsd b/CDT-policyDeletionRules.xsd new file mode 100644 index 0000000000000000000000000000000000000000..b45ce3ec6656473d4c46bb8e238975c45e49e572 --- /dev/null +++ b/CDT-policyDeletionRules.xsd @@ -0,0 +1,52 @@ +<?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. +© 2015, oneM2M Partners Type 1 (ARIB, ATIS, CCSA, ETSI, TIA, 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 xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.onem2m.org/xml/protocols" + xmlns:m2m="http://www.onem2m.org/xml/protocols" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + elementFormDefault="unqualified" xmlns:xs="http://www.w3.org/2001/XMLSchema"> + + <xs:include schemaLocation="CDT-commonTypes.xsd" /> + <xs:include schemaLocation="CDT-subscription.xsd" /> + + <xs:element name="policyDeletionRules"> + <xs:complexType> + <xs:complexContent> + <!-- Inherit common attributes --> + <xs:extension base="m2m:regularResource"> + <xs:sequence> + <!-- Resource Specific Attributes --> + <xs:element name="deletionRules" type="m2m:deletionContexts" minOccurs="0" /> + <xs:element name="deletionRulesRelation" type="m2m:logicalOperator" minOccurs="0" /> + + <!-- Child Resources --> + <xs:choice minOccurs="0" maxOccurs="1"> + <xs:element name="childResource" type="m2m:childResourceRef" maxOccurs="unbounded" /> + <xs:element ref="m2m:subscription" maxOccurs="unbounded" /> + </xs:choice> + </xs:sequence> + </xs:extension> + </xs:complexContent> + </xs:complexType> + </xs:element> +</xs:schema> diff --git a/CDT-pollingChannel.xsd b/CDT-pollingChannel.xsd index 59264b0561f211f789f1af246c5512cfb041b96a..dd6b49893c98c06de30b503ad0e852c28fffe716 100644 --- a/CDT-pollingChannel.xsd +++ b/CDT-pollingChannel.xsd @@ -34,7 +34,7 @@ oneM2M EXPRESSLY ADVISES ANY AND ALL USE OF OR RELIANCE UPON THIS INFORMATION PR <xs:complexType> <xs:complexContent> <!-- Inherit common attributes --> - <xs:extension base="m2m:regularResource"> + <xs:extension base="m2m:subordinateResource"> <xs:sequence> <!-- No Resource Specific Attributes --> diff --git a/CDT-responsePrimitive.xsd b/CDT-responsePrimitive.xsd index e7ab7cf07a4367b0359a888c8cd05e7307925f0e..69e213c608ea6f598a733b38f9bfce30384c16b0 100644 --- a/CDT-responsePrimitive.xsd +++ b/CDT-responsePrimitive.xsd @@ -155,7 +155,7 @@ oneM2M EXPRESSLY ADVISES ANY AND ALL USE OF OR RELIANCE UPON THIS INFORMATION PR <xs:element ref="m2m:statsConfig" /> <xs:element ref="m2m:subscription" /> </xs:choice> - <xs:element name="URIList" type="m2m:listOfURIs" /> + <xs:element name="URI" type="xs:anyURI" /> </xs:sequence> </xs:complexType> diff --git a/CDT-semanticDescriptor.xsd b/CDT-semanticDescriptor.xsd new file mode 100644 index 0000000000000000000000000000000000000000..9906af8be99e45a7be8afb62351456f206c36a58 --- /dev/null +++ b/CDT-semanticDescriptor.xsd @@ -0,0 +1,56 @@ +<?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. +© 2015, oneM2M Partners Type 1 (ARIB, ATIS, CCSA, ETSI, TIA, 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 xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.onem2m.org/xml/protocols" + xmlns:m2m="http://www.onem2m.org/xml/protocols" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + elementFormDefault="unqualified" xmlns:xs="http://www.w3.org/2001/XMLSchema"> + + <xs:include schemaLocation="CDT-commonTypes.xsd" /> + <xs:include schemaLocation="CDT-subscription.xsd" /> + + <xs:element name="semanticDescriptor"> + <xs:complexType> + <xs:complexContent> + <!-- Inherit common attributes for announceable Resources --> + <xs:extension base="m2m:regularResource"> + <xs:sequence> + <!-- Resource Specific Attributes --> + <xs:element name="creator" type="m2m:ID" minOccurs="0" /> + <xs:element name="descriptorRepresentation" type="m2m:descriptorRepresentation" minOccurs="0" /> + <xs:element name="semanticOpExec" type="m2m:sparql" minOccurs="0" /> + <xs:element name="descriptor" type="xs:base64Binary" /> + <xs:element name="ontologyRef" type="xs:anyURI" minOccurs="0" /> + <xs:element name="relatedSemantics" type="m2m:listOfURIs" minOccurs="0" /> + + <!-- Child Resources --> + <xs:choice minOccurs="0" maxOccurs="1"> + <xs:element name="childResource" type="m2m:childResourceRef" maxOccurs="unbounded" /> + <xs:element ref="m2m:subscription" maxOccurs="unbounded" /> + </xs:choice> + </xs:sequence> + </xs:extension> + </xs:complexContent> + </xs:complexType> + </xs:element> +</xs:schema> diff --git a/instance1.xml b/instance1.xml new file mode 100644 index 0000000000000000000000000000000000000000..da0eb5b9339502cab09143fc14b67857e6d12f35 --- /dev/null +++ b/instance1.xml @@ -0,0 +1,60 @@ +<?xml version="1.0" encoding="UTF-8"?> +<m2m:requestPrimitive xmlns:m2m="http://www.onem2m.org/xml/protocols" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.onem2m.org/xml/protocols file:/C:/Users/wgranzow/UserData/M2M/OneM2M/PRO/GitHub/oneM2M-schemas/v2_5_0/CDT-requestPrimitive-v2_5_0.xsd"> + <operation>1</operation> + <to>http://www.oxygenxml.com/</to> + <from>http://www.oxygenxml.com/</from> + <requestIdentifier>requestIdentifier0</requestIdentifier> + <resourceType>1</resourceType> + <primitiveContent> + <m2m:attributeList>attributeList0</m2m:attributeList> + <m2m:attributeList>attributeList1</m2m:attributeList> + </primitiveContent> + <role> + </role> + <originatingTimestamp>00000101T000000</originatingTimestamp> + <requestExpirationTimestamp>00000101T000000</requestExpirationTimestamp> + <resultExpirationTimestamp>00000101T000000</resultExpirationTimestamp> + <operationExecutionTime>00000101T000000</operationExecutionTime> + <responseType> + <responseTypeValue>1</responseTypeValue> + <notificationURI></notificationURI> + </responseType> + <resultPersistence>00000101T000000</resultPersistence> + <resultContent>0</resultContent> + <eventCategory>2</eventCategory> + <deliveryAggregation>false</deliveryAggregation> + <groupRequestIdentifier>groupRequestIdentifier0</groupRequestIdentifier> + <filterCriteria> + <createdBefore>00000101T000000</createdBefore> + <createdAfter>00000101T000000</createdAfter> + <modifiedSince>00000101T000000</modifiedSince> + <unmodifiedSince>00000101T000000</unmodifiedSince> + <stateTagSmaller>50</stateTagSmaller> + <stateTagBigger>50</stateTagBigger> + <expireBefore>00000101T000000</expireBefore> + <expireAfter>00000101T000000</expireAfter> + <labels>labels0</labels> + <resourceType>1</resourceType> + <sizeAbove>50</sizeAbove> + <sizeBelow>50</sizeBelow> + <contentType>contentType0</contentType> + <contentType>contentType1</contentType> + <attribute> + <name>creator</name> + <value>CSEID1* + </value> + </attribute> + <attribute> + <name>name1</name> + <value> + </value> + </attribute> + <filterUsage>1</filterUsage> + <limit>50</limit> + <semanticsFilter>semanticsFilter0</semanticsFilter> + <semanticsFilter>semanticsFilter1</semanticsFilter> + </filterCriteria> + <discoveryResultType>1</discoveryResultType> +</m2m:requestPrimitive>