Upload
lynette-bell
View
215
Download
0
Embed Size (px)
Citation preview
oneM2M-MP-2013-0197-Data_Model_Repository
Establishing Data ModelRepository for oneM2M
Group Name: Method and Procedure Sub-commiteeSource: WG3 chairMeeting Date: 2013-12-03Agenda Item: Data Repository
oneM2M-MP-2013-0197-Data_Model_Repository
Introduction
• During technical discussion in WG3(PRO), there are need for having a registry for data model descriptions (eg. XML Schema or JSON Schema) for data types and structures defined in oneM2M.
• There are not any rules for handing ‘machine-readable document’ in by ‘Method of Work’
• We would like to raise the issue, and also suggest to add the new rule for it.
2
oneM2M-MP-2013-0197-Data_Model_Repository
What is a data model registry?
• A data model registry is a system to manage the definitions of data types and structures, such as W3C compliant XML Schemas.
• XML Schema Registry allows TSs to export data structure syntaxes in machine-readable way.
• XSD files enable XML parsers to validate given compliance of XML document with XML schema definitions.
3
oneM2M-MP-2013-0197-Data_Model_Repository
Usage of XML/JSON Schemas
TS
XSDFiles
XSDFiles
XSD / JSDFiles
oneM2M Protocol Implementation
+
ProtocolMessage
with namespace
Detailedexplanation of behaviors and namespaces
Syntax Rules
Refer data type in XSD / JSD by namespace
Validation
Get XSD / JSDfiles on the fly (Optional)
4
oneM2M-MP-2013-0197-Data_Model_Repository
Management Policy Options• Option-A: Manage URN Namespaces– Register top level URN (Uniform Resource Name) for
oneM2M in IANA registry (with free of charge)Ex) urn:onem2m
– Assign child URN as namespace for each data types within oneM2M
• Option-B: Manage XSD/JSD files– Manage XSD/JSD files with unique names– (Optionally) publish XSD/JSD files at oneM2M site
• Option-C: Both A & B
5
oneM2M-MP-2013-0197-Data_Model_Repository
Issues
• Determine management policy for oneM2M XML Schema Repository.
• Change oneM2M portal to manage XSD/JSD files (if necessary).
• Modify the ‘Method of Work’ to reflect determined management policy for ‘oneM2M Data Model Repository’.
6
oneM2M-MP-2013-0197-Data_Model_Repository
[FYI]References• XML Schema Part 0: Primer Second Edition
http://www.w3.org/TR/xmlschema-0/
• JSON Schema:http://en.wikipedia.org/wiki/JSON_Schema#JSON_Schemahttp://tools.ietf.org/html/draft-zyp-json-schema-04
• URIs, URLs, and URNs: Clarifications and Recommendations 1.0http://www.w3.org/TR/uri-clarification/
7