HOME

TheInfoList



OR:

In
computing Computing is any goal-oriented activity requiring, benefiting from, or creating computing machinery. It includes the study and experimentation of algorithmic processes, and development of both hardware and software. Computing has scientific, ...
, Open Data Protocol (OData) is an open protocol that allows the creation and consumption of queryable and interoperable
REST Rest or REST may refer to: Relief from activity * Sleep ** Bed rest * Kneeling * Lying (position) * Sitting * Squatting position Structural support * Structural support ** Rest (cue sports) ** Armrest ** Headrest ** Footrest Arts and enter ...
APIs in a simple and standard way.
Microsoft Microsoft Corporation is an American multinational technology corporation producing computer software, consumer electronics, personal computers, and related services headquartered at the Microsoft Redmond campus located in Redmond, Washin ...
initiated OData in 2007. Versions 1.0, 2.0, and 3.0 are released under the
Microsoft Open Specification Promise The Microsoft Open Specification Promise (or OSP) is a promise by Microsoft, published in September 2006, to not assert its patents, in certain conditions, against implementations of a certain list of specifications. The OSP is not a licence, but ...
. Version 4.0 was standardized at OASIS, with a release in March 2014. In April 2015 OASIS submitted OData v4 and OData JSON Format v4 to ISO/IEC JTC 1 for approval as an international standard. In December 2016, ISO/IEC published OData 4.0 Core as ISO/IEC 20802-1:2016 and the OData JSON Format as ISO/IEC 20802-2:2016. The protocol enables the creation and consumption of REST APIs, which allow Web clients to publish and edit resources, identified using URLs and defined in a
data model A data model is an abstract model that organizes elements of data and standardizes how they relate to one another and to the properties of real-world entities. For instance, a data model may specify that the data element representing a car be c ...
, using simple HTTP messages. OData shares some similarities with
JDBC Java Database Connectivity (JDBC) is an application programming interface (API) for the programming language Java, which defines how a client may access a database. It is a Java-based data access technology used for Java database connectivity. I ...
and with ODBC; like ODBC, OData is not limited to relational databases.


Standardization

After initial development by Microsoft, OData became a standardized protocol of the OASIS OData Technical Committee (TC).


OASIS OData Technical Committee

"The OASIS OData TC works to simplify the querying and sharing of data across disparate applications and multiple stakeholders for re-use in the enterprise, Cloud, and mobile devices. A REST-based protocol, OData builds on
HTTP The Hypertext Transfer Protocol (HTTP) is an application layer protocol in the Internet protocol suite model for distributed, collaborative, hypermedia information systems. HTTP is the foundation of data communication for the World Wide We ...
,
AtomPub The name Atom applies to a pair of related Web standards. The Atom Syndication Format is an XML language used for web feeds, while the Atom Publishing Protocol (AtomPub or APP) is a simple HTTP-based protocol for creating and updating web re ...
, and JSON using URIs to address and access data feed resources. It enables information to be accessed from a variety of sources including (but not limited to) relational databases, file systems, content management systems, and traditional Web sites. OData provides a way to break down data silos and increase the shared value of data by creating an ecosystem in which data consumers can interoperate with data producers in a way that is far more powerful than currently possible, enabling more applications to make sense of a broader set of data. Every producer and consumer of data that participates in this ecosystem increases its overall value."
TC participants include
CA Technologies CA Technologies, formerly known as CA, Inc. and Computer Associates International, Inc., is an American multinational corporation headquartered in New York City. It is primarily known for its business-to-business (B2B) software with a product po ...
, Citrix Systems, IBM,
Microsoft Microsoft Corporation is an American multinational technology corporation producing computer software, consumer electronics, personal computers, and related services headquartered at the Microsoft Redmond campus located in Redmond, Washin ...
,
Progress Software Progress Software Corporation (Progress) is an American public company that offers software for creating and deploying business applications. Headquartered in Burlington, Massachusetts with offices in 16 countries, the company posted revenues ...
, Red Hat,
SAP SE Sap is a fluid transported in xylem cells (vessel elements or tracheids) or phloem sieve tube elements of a plant. These cells transport water and nutrients throughout the plant. Sap is distinct from latex, resin, or cell sap; it is a sepa ...
and SDL.


Architecture

OData is a protocol for the creation and consumption of RESTful APIs. Thus, as common practices of REST, OData builds on HTTP, AtomPub, and JSON using URIs to address and access data feed resources.


Resource identification

OData uses URIs to identify resources. For every OData service whose service root is abbreviated as ''http://host/service/'', the following fixed resources can be found:


The service document

The service document lists entity sets, functions, and singletons that can be retrieved. Clients can use the service document to navigate the model in a hypermedia-driven fashion. The service document is available at ''http://host/service/''.


The metadata document

The metadata document describes the types, sets, functions and actions understood by the OData service. Clients can use the metadata document to understand how to query and interact with entities in the service. The metadata document is available at ''http://host/service/$metadata''.


Dynamic resources

The URIs for the dynamic resources may be computed from the hypermedia information in the service document and metadata document.


Resource operation

OData uses the HTTP verbs to indicate the operations on the resources. * GET: Get the resource (a collection of entities, a single entity, a structural property, a navigation property, a stream, etc.). * POST: Create a new resource. * PUT: Update an existing resource by replacing it with a complete instance. * PATCH: Update an existing resource by replacing part of its properties with a partial instance. * DELETE: Remove the resource.


Querying

URLs requested from an OData endpoint may include query options. The OData protocol specifies various 'system query options' endpoints should accept, these can be used to filter, order, map or paginate data. Query options can be appended to a URL after a ? character and are separated by & characters; each option consists of a $-sign prefixed name and its value, separated by a = sign, for example: OData/Products?$top=2&$orderby=Name. A number of logical operators and functions are defined for use when filtering data, for example: OData/Products?$filter=Price lt 10.00 and startswith(Name,'M') requests products with a price smaller than 10 and a name starting with the letter 'M'.


Resource representation

OData uses different formats for representing data and the data model. In OData protocol version 4.0, JSON format is the standard for representing data, with the
Atom Every atom is composed of a nucleus and one or more electrons bound to the nucleus. The nucleus is made of one or more protons and a number of neutrons. Only the most common variety of hydrogen has no neutrons. Every solid, liquid, gas, ...
format still being in committee specification stage. For representing the data model, the Common Schema Definition Language (CSDL) is used, which defines an XML representation of the entity data model exposed by OData services.


A sample OData JSON data payload

A collection of products:


A sample OData Atom data payload

A collection of products: http://services.odata.org/v4/odata/odata.svc/Products Products 2015-05-19T03:38:50Z http://services.odata.org/V4/OData/OData.svc/Products(0) <updated>2015-05-19T03:38:50Z</updated> <author> <name/> </author> <content type="application/xml"> <m:properties> <d:ID m:type="Int32">0</d:ID> <d:Name>Bread</d:Name> <d:Description>Whole grain bread</d:Description> <d:ReleaseDate m:type="DateTimeOffset">1992-01-01T00:00:00Z</d:ReleaseDate> <d:DiscontinuedDate m:null="true"/> <d:Rating m:type="Int16">4</d:Rating> <d:Price m:type="Double">2.5</d:Price> </m:properties> </content> </entry> <entry> <id>http://services.odata.org/V4/OData/OData.svc/Products(1)</id> <category term="#ODataDemo.Product" scheme="http://docs.oasis-open.org/odata/ns/scheme"/> <link rel="edit" title="Product" href="Products(1)"/> <link rel="http://docs.oasis-open.org/odata/ns/relatedlinks/Categories" type="application/xml" title="Categories" href="Products(1)/Categories/$ref"/> <link rel="http://docs.oasis-open.org/odata/ns/related/Categories" type="application/atom+xml;type=feed" title="Categories" href="Products(1)/Categories"/> <link rel="http://docs.oasis-open.org/odata/ns/relatedlinks/Supplier" type="application/xml" title="Supplier" href="Products(1)/Supplier/$ref"/> <link rel="http://docs.oasis-open.org/odata/ns/related/Supplier" type="application/atom+xml;type=entry" title="Supplier" href="Products(1)/Supplier"/> <link rel="http://docs.oasis-open.org/odata/ns/relatedlinks/ProductDetail" type="application/xml" title="ProductDetail" href="Products(1)/ProductDetail/$ref"/> <link rel="http://docs.oasis-open.org/odata/ns/related/ProductDetail" type="application/atom+xml;type=entry" title="ProductDetail" href="Products(1)/ProductDetail"/> <title/> <updated>2015-05-19T03:38:50Z</updated> <author> <name/> </author> <content type="application/xml"> <m:properties> <d:ID m:type="Int32">1</d:ID> <d:Name>Milk</d:Name> <d:Description>Low fat milk</d:Description> <d:ReleaseDate m:type="DateTimeOffset">1995-10-01T00:00:00Z</d:ReleaseDate> <d:DiscontinuedDate m:null="true"/> <d:Rating m:type="Int16">3</d:Rating> <d:Price m:type="Double">3.5</d:Price> </m:properties> </content> </entry> ... </feed> </syntaxhighlight> <h3><br><p> A sample OData metadata document </h3></p> <syntaxhighlight lang="xml" line> <edmx:Edmx Version="4.0" xmlns:edmx="http://docs.oasis-open.org/odata/ns/edmx"> <edmx:DataServices> <Schema Namespace="ODataDemo" xmlns="http://docs.oasis-open.org/odata/ns/edm"> <EntityType Name="Product"> <Key> <PropertyRef Name="ID"/> </Key> <Property Name="ID" Type="Edm.Int32" Nullable="false"/> <Property Name="Name" Type="Edm.String"/> <Property Name="Description" Type="Edm.String"/> <Property Name="ReleaseDate" Type="Edm.DateTimeOffset" Nullable="false"/> <Property Name="DiscontinuedDate" Type="Edm.DateTimeOffset"/> <Property Name="Rating" Type="Edm.Int16" Nullable="false"/> <Property Name="Price" Type="Edm.Double" Nullable="false"/> </EntityType> <ComplexType Name="Address"> <Property Name="Street" Type="Edm.String"/> <Property Name="City" Type="Edm.String"/> <Property Name="State" Type="Edm.String"/> <Property Name="ZipCode" Type="Edm.String"/> <Property Name="Country" Type="Edm.String"/> </ComplexType> <EntityContainer Name="DemoService"> <EntitySet Name="Products" EntityType="ODataDemo.Product"></EntitySet> </EntityContainer> </Schema> </edmx:DataServices> </edmx:Edmx> </syntaxhighlight> <h1><br><p> Ecosystem</h1></p> The ecosystem of OData consists of the client/server libraries that implement the protocol, and applications that are based on the protocol. <h2><br><p> Libraries</h2></p> There are a number of OData libraries available to access/produce OData APIs: <h3><br><p> .NET </h3></p> * Server and client: Microsoft's OData .NET libraries * Client: Simple.OData.Client <h3><br><p> Java </h3></p> * Server and client: <a class="link_plain"; href="/html/ALL/l/Apache_Olingo.html" ;"title="Apache Olingo">Apache Olingo</a> * Server side: Jello-Framework * Client: odata-client <h3><br><p> JavaScript </h3></p> * Client: Apache Olingo (featured by <a class="link_plain"; href="/html/ALL/l/OASIS_(organization).html" ;"title="OASIS (organization)">OASIS</a>) * Client: data.js * Client: JayData for higher level of abstraction (LINQ-like syntax, support for OData geo features, IndexedDB, WebSQL, integration for DevExtreme, Kendo UI, Angular.js, Knockout.js and Sencha). * Client: <div class="linkinfo_desc"><a class = "desc_only" href="/html/ALL/l/OpenUI5.html" "title="OpenUI5">OpenUI5</a><span class="linkinfotext"> OpenUI5 is a JavaScript application framework designed to build cross-platform, responsive, enterprise-ready applications. It is an open-source project maintained by SAP SE available under the Apache 2.0 license and open to contributions. OpenUI ...<br></span></div> library maintained by <div class="linkinfo_desc"><a class = "desc_only" href="/html/ALL/l/SAP.html" "title="SAP">SAP</a><span class="linkinfotext"> Sap is a fluid transported in xylem cells (vessel elements or tracheids) or phloem sieve tube elements of a plant. These cells transport water and nutrients throughout the plant. Sap is distinct from latex, resin, or cell sap; it is a separ ...<br></span></div> * Client (Node.js): JayData for node * Client: Breeze * Client: OData4 and Invantive Bridge Online * Client: odata-fluent-query: a JavaScript OData query language parser * Server: node-odata <h3><br><p> PHP </h3></p> * Client: odataphp * Server: POData <h3><br><p> Python </h3></p> * Client: PyOData * Server and client: Pyslet <h3><br><p> Ruby </h3></p> * Client: ruby_odata library * Client: Free OData V4.0 Library for Ruby * Server: Safrano <h3><br><p> Others </h3></p> Other languages implemented include: * AJAX: ASP.NET Ajax Library for getting to OData. * C++: odatacpp_client is a client-side-only implementation of the OData protocol. * Windward Studios supports OData in their Reporting & Document Generation Solutions. * Reporting tool <a class="link_plain"; href="/html/ALL/l/List_&_Label.html" ;"title="List & Label">List & Label</a> has a specialized data provider for OData. * Blackberry (C++): OData-BB10 Open Data Protocol (OData) library for <div class="linkinfo_desc"><a class = "desc_only" href="/html/ALL/l/BlackBerry_10.html" "title="BlackBerry 10">BlackBerry 10</a><span class="linkinfotext"> BlackBerry 10 is a discontinued proprietary mobile operating system for the BlackBerry line of smartphones, both developed by BlackBerry Limited (formerly Research In Motion). BlackBerry 10 is based on QNX, a Unix-like operating system that was ...<br></span></div> (BB10) Cascades apps <h2><br><p> Applications </h2></p> Applications include: * Progress DataDirect Hybrid Data Pipeline can expose any cloud, <a class="link_plain"; href="/html/ALL/l/big_data.html" ;"title="big data">big data</a> or relational data sources as OData end points * <a class="link_plain"; href="/html/ALL/l/Socrata.html" ;"title="Socrata">Socrata</a> exposes an OData <div class="linkinfo_desc"><a class = "desc_only" href="/html/ALL/l/API.html" "title="API">API</a><span class="linkinfotext"> An application programming interface (API) is a way for two or more computer programs to communicate with each other. It is a type of software interface, offering a service to other pieces of software. A document or standard that describes how ...<br></span></div>. * <a class="link_plain"; href="/html/ALL/l/Microsoft_Azure.html" ;"title="Microsoft Azure">Microsoft Azure</a> exposes an OData <div class="linkinfo_desc"><a class = "desc_only" href="/html/ALL/l/API.html" "title="API">API</a><span class="linkinfotext"> An application programming interface (API) is a way for two or more computer programs to communicate with each other. It is a type of software interface, offering a service to other pieces of software. A document or standard that describes how ...<br></span></div>. <br><a href="https://docs.oracle.com/en/cloud/paas/analytics-cloud/acsds/supported-data-sources.html" target="_blank" class="mw-redirect" title="Oracle Analytics Cloud">Oracle Analytics Cloud</a><br>can connect to an OData API * <div class="linkinfo_desc"><a class = "desc_only" href="/html/ALL/l/SAP_NetWeaver.html" "title="SAP NetWeaver">SAP NetWeaver</a><span class="linkinfotext"> SAP NetWeaver is a software stack for many of SAP SE's applications. The SAP NetWeaver Application Server, sometimes referred to as WebAS, is the runtime environment for the SAP applications and all of the mySAP Business Suite runs on SAP WebAS: ...<br></span></div> Gateway provides OData access to SAP Business Suite and SAP Business Warehouse. * <a class="link_plain"; href="/html/ALL/l/IBM_WebSphere_eXtreme_Scale.html" ;"title="IBM WebSphere eXtreme Scale">IBM WebSphere eXtreme Scale</a> REST data service can be accessed by any HTTP client using OData.<ref name="IBM developerWorks eXtreme Scale REST data service<br><a href="http://www.ibm.com/developerworks/websphere/downloads/xs_rest_service.html" target="_blank" class="mw-redirect" title="IBM developerWorks eXtreme Scale REST data service">IBM developerWorks eXtreme Scale REST data service</a><br>(OData)</ref> * <div class="linkinfo_desc"><a class = "desc_only" href="/html/ALL/l/Microsoft_SharePoint.html" "title="Microsoft SharePoint">Microsoft SharePoint</a><span class="linkinfotext"> SharePoint is a web-based collaborative platform that integrates natively with Microsoft Office. Launched in 2001, SharePoint is primarily sold as a document management and storage system, but the product is highly configurable and its usage v ...<br></span></div> 2010 and up can expose its data as OData endpoint * <div class="linkinfo_desc"><a class = "desc_only" href="/html/ALL/l/Office_365.html" "title="Office 365">Office 365</a><span class="linkinfotext"> Microsoft 365 is a product family of productivity software, collaboration and cloud-based services owned by Microsoft. It encompasses online services such as Outlook.com, OneDrive, Microsoft Teams, programs formerly marketed under the name ...<br></span></div> exposes OData V4.0 APIs. * <div class="linkinfo_desc"><a class = "desc_only" href="/html/ALL/l/Salesforce.com.html" "title="Salesforce.com">Salesforce</a><span class="linkinfotext"> Salesforce, Inc. is an American cloud-based software company headquartered in San Francisco, California. It provides customer relationship management (CRM) software and applications focused on sales, customer service, marketing automation, a ...<br></span></div> Connect consumes OData APIs. * Skyvia Connect exposes cloud and database data via OData * <div class="linkinfo_desc"><a class = "desc_only" href="/html/ALL/l/Tableau_Software.html" "title="Tableau Software">Tableau</a><span class="linkinfotext"> Tableau (French for 'little table' literally, also used to mean 'picture'; tableaux or, rarely, tableaus) may refer to: Arts * ''Tableau'', a series of four paintings by Piet Mondrian titled '' Tableau I'' through to ''Tableau IV'' * ''Tableau vi ...<br></span></div> can connect to OData APIs. * <a class="link_plain"; href="/html/ALL/l/Spotfire.html" ;"title="Spotfire">TIBCO Spotfire</a> can connect to OData APIs. * Mulesoft helps integrate with OData APIs. * SuccessFactors uses Odata APIs * Ceridian HCM's Dayforce uses Odata *<div class="linkinfo_desc"><a class = "desc_only" href="/html/ALL/l/Redfish_(specification).html" "title="Redfish (specification)">Redfish</a><span class="linkinfotext"> Redfish is a common name for several species of fish. It is most commonly applied to certain deep-sea rockfish in the genus ''Sebastes'', red drum from the genus '' Sciaenops'' or the reef dwelling snappers in the genus '' Lutjanus''. It is also a ...<br></span></div> uses Odata <h1><br><p> Tools </h1></p> * Nucleon Database Master <ref></ref> <h1><br><p> See also </h1></p> * <a class="link_plain"; href="/html/ALL/l/GData.html" ;"title="GData">GData</a> – competing protocol from Google * <a class="link_plain"; href="/html/ALL/l/Resource_Description_Framework.html" ;"title="Resource Description Framework">Resource Description Framework</a> (RDF) – a similar concept by <div class="linkinfo_desc"><a class = "desc_only" href="/html/ALL/l/World_Wide_Web_Consortium.html" "title="World Wide Web Consortium">W3C</a><span class="linkinfotext"> The World Wide Web Consortium (W3C) is the main international standards organization for the World Wide Web. Founded in 1994 and led by Tim Berners-Lee, the consortium is made up of member organizations that maintain full-time staff working to ...<br></span></div> * <div class="linkinfo_desc"><a class = "desc_only" href="/html/ALL/l/GraphQL.html" "title="GraphQL">GraphQL</a><span class="linkinfotext"> GraphQL is an open-source data query and manipulation language for APIs, and a runtime for fulfilling queries with existing data. GraphQL was developed internally by Facebook (now Meta) in 2012 before being publicly released in 2015. On 7 No ...<br></span></div> <h1><br><p> References</h1></p> <h1><br><p> External links</h1></p> <br><a href="https://www.odata.org/" target="_blank" class="mw-redirect" title="Official website">Official website</a><br><br><a href="https://docs.microsoft.com/en-us/dotnet/framework/wcf/" target="_blank" class="mw-redirect" title="Develop Service-Oriented Applications with WCF">Develop Service-Oriented Applications with WCF</a><br><br><a href="https://www.hanselman.com/blog/odata-basics-at-the-azgroups-day-of-net-with-scottgu" target="_blank" class="mw-redirect" title="OData Basics Presentation">OData Basics Presentation</a><br><h2><br><p> OData OASIS Standards</h2></p> <br><a href="ttp://docs.oasis-open.org/odata/odata/v4.0/os/part1-protocol/odata-v4.0-os-part1-protocol" target="_blank" class="mw-redirect" title=""></a><br><br><a href="ttp://docs.oasis-open.org/odata/odata/v4.0/os/part2-url-conventions/odata-v4.0-os-part2-url-conventions" target="_blank" class="mw-redirect" title=""></a><br><br><a href="ttp://docs.oasis-open.org/odata/odata/v4.0/os/part3-csdl/odata-v4.0-os-part3-csdl" target="_blank" class="mw-redirect" title=""></a><br>* <a class="link_plain"; href="/html/ALL/l/ttp://docs.oasis-open.org/odata/odata/v4.0/os/abnf/_ABNF_components_-_OData_ABNF_Construction_Rules_Version_4.0_and_OData_ABNF_Test_Cases.html" ;"title="ttp://docs.oasis-open.org/odata/odata/v4.0/os/abnf/ ABNF components - OData ABNF Construction Rules Version 4.0 and OData ABNF Test Cases">ttp://docs.oasis-open.org/odata/odata/v4.0/os/abnf/ ABNF components - OData ABNF Construction Rules Version 4.0 and OData ABNF Test Cases</a><br><a href="http://docs.oasis-open.org/odata/odata/v4.0/os/models/MetadataService.edmx" target="_blank" class="mw-redirect" title="Vocabulary components - OData Core Vocabulary and OData Measures Vocabulary">Vocabulary components - OData Core Vocabulary and OData Measures Vocabulary</a><br><br><a href="http://docs.oasis-open.org/odata/odata/v4.0/os/schemas/" target="_blank" class="mw-redirect" title="XML Schemas - OData EDMX XML Schema and OData EDM XML Schema">XML Schemas - OData EDMX XML Schema and OData EDM XML Schema</a><br><br><a href="ttp://docs.oasis-open.org/odata/odata-json-format/v4.0/os/odata-json-format-v4.0-os" target="_blank" class="mw-redirect" title=""></a><br><h2><br><p> Committee Specifications</h2></p> <br><a href="ttp://docs.oasis-open.org/odata/odata-atom-format/v4.0/cs02/odata-atom-format-v4.0-cs02" target="_blank" class="mw-redirect" title=""></a><br><br><a href="ttp://docs.oasis-open.org/odata/odata-data-aggregation-ext/v4.0/cs01/odata-data-aggregation-ext-v4.0-cs01" target="_blank" class="mw-redirect" title=""></a><br><h2><br><p> Committee Notes</h2></p> <br><a href="ttp://docs.oasis-open.org/odata/new-in-odata/v4.0/cn01/new-in-odata-v4.0-cn01" target="_blank" class="mw-redirect" title=""></a><br> {{ISO standards <a class="link_plain"; href="/html/ALL/l/Atom_(Web_standard).html" ;"title="Atom (Web standard)">Atom (Web standard)</a> <a class="link_plain"; href="/html/ALL/l/Web_syndication_formats.html" ;"title="Web syndication formats">Web syndication formats</a> <a class="link_plain"; href="/html/ALL/l/XML-based_standards.html" ;"title="XML-based standards">XML-based standards</a> <a class="link_plain"; href="/html/ALL/l/ISO/IEC_standards.html" ;"title="ISO/IEC standards">ISO/IEC standards</a> </div> <div id="AdvertBottom1"> </div> <center> <script src="/js/AdvertBottom1.js"> </script> </center> <footer> <div> <br><br> <br><br> <center> <br><a target="_top" href="../index.html"> HOME </a><br> <br>Content is Copyleft<br>Website design, code, and AI is Copyrighted (c) 2014-2017 by Stephen Payne<br><br> <a target="_top" href="https://donate.wikimedia.org/w/index.php?title=Special:LandingPage&country=US&uselang=en&utm_medium=sidebar&utm_source=donate&utm_campaign=C13_en.wikipedia.org"> Consider donating to Wikimedia </a><br> <br> As an Amazon Associate I earn from qualifying purchases <br> </center> </div> </footer> <div id="AddedByJS"> </div> <script src="/js/site.js"> </script> <!--#include file="inc/summary_footer.html" --> </body></html>