1、Reference number ISO/IEC 20802-1:2016(E) ISO/IEC 2016 INTERNATIONAL STANDARD ISO/IEC 20802-1 First edition 2016-12-15 Information technology Open data protocol (OData) v4.0 Part 1: Core Technologies de linformation Protocole de donnes ouvertes (OData) v4.0 Partie 2: Base ISO/IEC 20802-1:2016(E) COPY
2、RIGHT PROTECTED DOCUMENT ISO/IEC 2016 All rights reserved. Unless otherwise specified, no part of this publication may be reproduced or utilized otherwise in any form or by any means, electronic or mechanical, including photocopying, or posting on the internet or an intranet, without prior written p
3、ermission. Permission can be requested from either ISO at the address below or ISOs member body in the country of the requester. ISO copyright office Ch. de Blandonnet 8 CP 401 CH-1214 Vernier, Geneva, Switzerland Tel. +41 22 749 01 11 Fax +41 22 749 09 47 copyrightiso.org www.iso.org ii ISO/IEC 201
4、6 All rights reservedISO/IEC 20802-1:2016(E) ISO/IEC 2016 All rights reserved iiiForeword ISO (the International Organization for Standardization) and IEC (the International Electrotechnical Commission) form the specialized system for worldwide standardiz a t i o n . N a t i o n a l b o d i e s t h
5、a t a r e members of ISO or IEC participate in the development of Interna tional Standards through technical committees established by the respective organization to deal with particular fields of technical activity. ISO and IEC technical committees collaborate in fields of mutual interest. Other in
6、ternational organizations, governmental and non governmental, in liaison with ISO and IEC, also take part in the work. In the field of information technology, ISO and IEC have established a joint technical committee, ISO/IEC JTC 1. The procedures used to develop this document and those intended for
7、its further maintenance are described in the ISO/IEC Directives, Part 1. In particular the different approval criteria needed for the d i f f e r e n t t y p e s o f d o c u m e n t s h o u l d b e n o t e d . T h i s d o c u m e n t w a s drafted in accordance with the editorial rules of the ISO/IE
8、C Directives, Part 2 (see www.iso.org/directives). Attention is drawn to the possibility that some of the elements of this document may be the subject of patent rights. ISO and IEC shall not be held responsible for id entifying any or all such patent rights. Details of any patent rights identified d
9、uring the development o f t h e d o c u m e n t w i l l b e i n t h e Introduction and/or on the ISO list of patent declarations received (see www.iso.org/patents). Any trade name used in this document is information given for the convenience of users and does not constitute an endorsement. For an e
10、xplanation on the meaning of ISO specific terms and expressions related to conformity a s s e s s m e n t , a s w e l l a s i n f o r m a t i o n a b o u t I S O s a d h e r e n c e t o t h e W T O p r i n c i p l e s i n t h e T e c h n i c a l Barriers to Trade (TBT) see the following URL: www.iso
11、.org/iso/foreword.html. ISO/IEC 208 021 was prepared by OASIS and was adopted, under the PAS procedure, by Joint Technical Committee ISO/IEC JTC 1, Information technology, in parallel with its approval by the national bodies of ISO and IEC. odata-v4.0-errata02-os-part1-protocol-complete 30 October 2
12、014 Standards Track Work Product Copyright OASIS Open 2014. All Rights Reserved. Page 1 of 74 OData Version 4.0 Part 1: Protocol Plus Errata 02 OASIS Standard incorporating Approved Errata 02 30 October 2014 Specification URIs This version: http:/docs.oasis-open.org/odata/odata/v4.0/errata02/os/comp
13、lete/part1-protocol/odata-v4.0- errata02-os-part1-protocol-complete.doc (Authoritative) http:/docs.oasis-open.org/odata/odata/v4.0/errata02/os/complete/part1-protocol/odata-v4.0- errata02-os-part1-protocol-complete.html http:/docs.oasis-open.org/odata/odata/v4.0/errata02/os/complete/part1-protocol/o
14、data-v4.0- errata02-os-part1-protocol-complete.pdf Previous version: http:/docs.oasis-open.org/odata/odata/v4.0/errata01/os/complete/part1-protocol/odata-v4.0- errata01-os-part1-protocol-complete.doc (Authoritative) http:/docs.oasis-open.org/odata/odata/v4.0/errata01/os/complete/part1-protocol/odata
15、-v4.0- errata01-os-part1-protocol-complete.html http:/docs.oasis-open.org/odata/odata/v4.0/errata01/os/complete/part1-protocol/odata-v4.0- errata01-os-part1-protocol-complete.pdf Latest version: http:/docs.oasis-open.org/odata/odata/v4.0/odata-v4.0-part1-protocol.doc (Authoritative) http:/docs.oasis
16、-open.org/odata/odata/v4.0/odata-v4.0-part1-protocol.html http:/docs.oasis-open.org/odata/odata/v4.0/odata-v4.0-part1-protocol.pdf Technical Committee: OASIS Open Data Protocol (OData) TC Chairs: Ralf Handl (), SAP AG Ram Jeyaraman (Ram.J), Microsoft Editors: Michael Pizzo (), Microsoft Ralf Handl (
17、), SAP AG Martin Zurmuehl (), SAP AG Additional artifacts: This prose specification is one component of a Work Product that also includes: List of Errata items. OData Version 4.0 Errata 02. Edited by Michael Pizzo, Ralf Handl, Martin Zurmuehl, and Hubert Heijkers. 30 October 2014. OASIS Approved Err
18、ata. http:/docs.oasis- open.org/odata/odata/v4.0/errata02/os/odata-v4.0-errata02-os.html. OData Version 4.0 Part 1: Protocol Plus Errata 02 (this document). Edited by Michael Pizzo, Ralf Handl, and Martin Zurmuehl. 30 October 2014. OASIS Standard incorporating Approved Errata 02. http:/docs.oasis-op
19、en.org/odata/odata/v4.0/errata02/os/complete/part1- protocol/odata-v4.0-errata02-os-part1-protocol-complete.html. OData Version 4.0 Part 2: URL Conventions Plus Errata 02. Edited by Michael Pizzo, Ralf Handl, and Martin Zurmuehl. 30 October 2014. OASIS Standard incorporating Approved ISO/IEC 20802-1
20、:2016(E) ISO/IEC 2016 All rights reservedodata-v4.0-errata02-os-part1-protocol-complete 30 October 2014 Standards Track Work Product Copyright OASIS Open 2014. All Rights Reserved. Page 2 of 74 Errata 02. http:/docs.oasis-open.org/odata/odata/v4.0/errata02/os/complete/part2-url- conventions/odata-v4
21、.0-errata02-os-part2-url-conventions-complete.html. OData Version 4.0 Part 3: Common Schema Definition Language (CSDL) Plus Errata 02. Edited by Michael Pizzo, Ralf Handl, and Martin Zurmuehl. 30 October 2014. OASIS Standard incorporating Approved Errata 02. http:/docs.oasis- open.org/odata/odata/v4
22、.0/errata02/os/complete/part3-csdl/odata-v4.0-errata02-os-part3- csdl-complete.html. ABNF components: OData ABNF Construction Rules Version 4.0 and OData ABNF Test Cases. http:/docs.oasis-open.org/odata/odata/v4.0/errata02/os/complete/abnf/. Vocabulary components: OData Core Vocabulary, OData Measur
23、es Vocabulary and OData Capabilities Vocabulary. http:/docs.oasis- open.org/odata/odata/v4.0/errata02/os/complete/vocabularies/. XML schemas: OData EDMX XML Schema and OData EDM XML Schema. http:/docs.oasis- open.org/odata/odata/v4.0/errata02/os/complete/schemas/. OData Metadata Service Entity Model
24、: http:/docs.oasis- open.org/odata/odata/v4.0/errata02/os/complete/models/. Change-marked (redlined) versions of OData Version 4.0 Part 1, Part 2, and Part 3. OASIS Standard incorporating Approved Errata 02. http:/docs.oasis- open.org/odata/odata/v4.0/errata02/os/redlined/. Related work: This specif
25、ication is related to: OData Version 4.0 Part 1: Protocol. Edited by Michael Pizzo, Ralf Handl, and Martin Zurmuehl. 24 February 2014. OASIS Standard. http:/docs.oasis- open.org/odata/odata/v4.0/os/part1-protocol/odata-v4.0-os-part1-protocol.html. OData Atom Format Version 4.0. Edited by Martin Zurm
26、uehl, Michael Pizzo, and Ralf Handl. Latest version. http:/docs.oasis-open.org/odata/odata-atom-format/v4.0/odata-atom-format- v4.0.html. OData JSON Format Version 4.0. Edited by Ralf Handl, Michael Pizzo, and Mark Biamonte. Latest version. http:/docs.oasis-open.org/odata/odata-json-format/v4.0/odat
27、a-json-format- v4.0.html. Declared XML namespaces: http:/docs.oasis-open.org/odata/ns/edmx http:/docs.oasis-open.org/odata/ns/edm Abstract: The Open Data Protocol (OData) enables the creation of REST-based data services, which allow resources, identified using Uniform Resource Locators (URLs) and de
28、fined in an Entity Data Model (EDM), to be published and edited by Web clients using simple HTTP messages. This document defines the core semantics and facilities of the protocol. Status: This document was last revised or approved by the OASIS Open Data Protocol (OData) TC on the above date. The lev
29、el of approval is also listed above. Check the “Latest version” location noted above for possible later revisions of this document. Any other numbered Versions and other technical work produced by the Technical Committee (TC) are listed at https:/www.oasis- open.org/committees/tc_home.php?wg_abbrev=
30、odata#technical. TC members should send comments on this specification to the TCs email list. Others should send comments to the TCs public comment list, after subscribing to it by following the instructions at the “Send A Comment” button on the TCs web page at https:/www.oasis- open.org/committees/
31、odata/. For information on whether any patents have been disclosed that may be essential to implementing this specification, and any offers of patent licensing terms, please refer to the Intellectual Property Rights section of the Technical Committee web page (https:/www.oasis- open.org/committees/o
32、data/ipr.php). Citation format: When referencing this specification the following citation format should be used: ISO/IEC 20802-1:2016(E) ISO/IEC 2016 All rights reservedodata-v4.0-errata02-os-part1-protocol-complete 30 October 2014 Standards Track Work Product Copyright OASIS Open 2014. All Rights
33、Reserved. Page 3 of 74 OData-Part1 OData Version 4.0 Part 1: Protocol Plus Errata 02. Edited by Michael Pizzo, Ralf Handl, and Martin Zurmuehl. 30 October 2014. OASIS Standard incorporating Approved Errata 02. http:/docs.oasis-open.org/odata/odata/v4.0/errata02/os/complete/part1-protocol/odata-v4.0-
34、 errata02-os-part1-protocol-complete.html. Latest version: http:/docs.oasis- open.org/odata/odata/v4.0/odata-v4.0-part1-protocol.html. ISO/IEC 20802-1:2016(E) ISO/IEC 2016 All rights reservedodata-v4.0-errata02-os-part1-protocol-complete 30 October 2014 Standards Track Work Product Copyright OASIS O
35、pen 2014. All Rights Reserved. Page 4 of 74 Notices Copyright OASIS Open 2014. All Rights Reserved. All capitalized terms in the following text have the meanings assigned to them in the OASIS Intellectual Property Rights Policy (the “OASIS IPR Policy“). The full Policy may be found at the OASIS webs
36、ite. This document and translations of it may be copied and furnished to others, and derivative works that comment on or otherwise explain it or assist in its implementation may be prepared, copied, published, and distributed, in whole or in part, without restriction of any kind, provided that the a
37、bove copyright notice and this section are included on all such copies and derivative works. However, this document itself may not be modified in any way, including by removing the copyright notice or references to OASIS, except as needed for the purpose of developing any document or deliverable pro
38、duced by an OASIS Technical Committee (in which case the rules applicable to copyrights, as set forth in the OASIS IPR Policy, must be followed) or as required to translate it into languages other than English. The limited permissions granted above are perpetual and will not be revoked by OASIS or i
39、ts successors or assigns. This document and the information contained herein is provided on an “AS IS“ basis and OASIS DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION HEREIN WILL NOT INFRINGE ANY OWNERSHIP RIGHTS OR ANY IMPLIED
40、WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. OASIS requests that any OASIS Party or any other party that believes it has patent claims that would necessarily be infringed by implementations of this OASIS Committee Specification or OASIS Standard, to notify OASIS TC Administrato
41、r and provide an indication of its willingness to grant patent licenses to such patent claims in a manner consistent with the IPR Mode of the OASIS Technical Committee that produced this specification. OASIS invites any party to contact the OASIS TC Administrator if it is aware of a claim of ownersh
42、ip of any patent claims that would necessarily be infringed by implementations of this specification by a patent holder that is not willing to provide a license to such patent claims in a manner consistent with the IPR Mode of the OASIS Technical Committee that produced this specification. OASIS may
43、 include such claims on its website, but disclaims any obligation to do so. OASIS takes no position regarding the validity or scope of any intellectual property or other rights that might be claimed to pertain to the implementation or use of the technology described in this document or the extent to
44、 which any license under such rights might or might not be available; neither does it represent that it has made any effort to identify any such rights. Information on OASIS procedures with respect to rights in any document or deliverable produced by an OASIS Technical Committee can be found on the
45、OASIS website. Copies of claims of rights made available for publication and any assurances of licenses to be made available, or the result of an attempt made to obtain a general license or permission for the use of such proprietary rights by implementers or users of this OASIS Committee Specificati
46、on or OASIS Standard, can be obtained from the OASIS TC Administrator. OASIS makes no representation that any information or list of intellectual property rights will at any time be complete, or that any claims in such list are, in fact, Essential Claims. The name “OASIS“ is a trademark of OASIS, th
47、e owner and developer of this specification, and should be used only to refer to the organization and its official outputs. OASIS welcomes reference to, and implementation and use of, specifications, while reserving the right to enforce its marks against misleading uses. Please see https:/www.oasis-
48、open.org/policies-guidelines/trademark for above guidance. ISO/IEC 20802-1:2016(E) ISO/IEC 2016 All rights reservedodata-v4.0-errata02-os-part1-protocol-complete 30 October 2014 Standards Track Work Product Copyright OASIS Open 2014. All Rights Reserved. Page 5 of 74 Table of Contents 1 Introduction
49、 . 10 1.1 Terminology 10 1.2 Normative References 10 1.3 Typographical Conventions 11 2 Overview . 12 3 Data Model . 13 3.1 Annotations . 13 4 Service Model . 15 4.1 Entity-Ids and Entity References 15 4.2 Read URLs and Edit URLs . 15 4.3 Transient Entities 15 5 Versioning . 16 5.1 Protocol Versioning . 16 5.2 Model Versioning 16 6 Extensibility . 17 6.1 Query Option Extensibility