Senin, 16 April 2018

Sponsored Links

PluralSight OData Tutorial Open Data Protocol - YouTube
src: i.ytimg.com

In computing, Open Data Protocol (OData) is an open protocol which allows the creation and consumption of queryable and interoperable RESTful APIs in a simple and standard way. Microsoft initiated OData in 2007. Versions 1.0, 2.0, and 3.0 are released under the Microsoft Open Specification Promise. 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.

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, using simple HTTP messages. OData shares some similarities with JDBC and with ODBC; like ODBC, OData is not limited to relational databases.


Video Open Data Protocol



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, AtomPub, 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, Citrix Systems, IBM, Microsoft, Progress Software, Red Hat, SAP SE and SDL.


Maps Open Data Protocol



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 leverages 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.

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 format still being in committee specification stage. For representing the data model, the Common Schema Definition Language (CSDL) which defines an XML representation of the entity data model exposed by OData services is used.

A sample OData JSON data payload

A collection of products:

A sample OData Atom data payload

A collection of products:

A sample OData metadata document


The Developers Group Microsoft News .NET 4 now released - ppt download
src: slideplayer.com


Ecosystem

The ecosystem of OData consists of the client/server libraries that implements the protocol, and applications that is based on the protocol.

Libraries

There are a number of OData libraries available to access/produce OData APIs:

.NET

  • Server and client: Microsoft's OData .NET libraries
  • Client: Simple.OData.Client

Java

  • Server and client: Apache Olingo
  • Server side: Jello-Framework

JavaScript

  • Client: Apache Olingo
  • 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: OpenUI5 library maintained by SAP
  • Client (Node.js): JayData for node
  • Client: Breeze

PHP

  • Client: odataphp
  • Server: POData

Others

Other languages implemented include:

  • PHP: odataphp provides OData support for PHP clients.
  • AJAX: the ASP.NET Ajax Library for getting to OData.
  • C++: odatacpp_client is a client-side-only implementation of the OData protocol.
  • Windward provides OData connection via Microsoft Office templates in either Java or .NET
  • Reporting tool List & Label has a specialized data provider for OData.
  • Blackberry (C++): OData-BB10 Open Data Protocol (OData) library for BlackBerry 10 (BB10) Cascades apps
  • Ruby: ruby_odata library

Applications

Applications include:

  • Socrata exposes an OData API.
  • Microsoft Azure exposes an OData API.
  • SAP NetWeaver Gateway provides OData access to SAP Business Suite and SAP Business Warehouse.
  • IBM WebSphere eXtreme Scale REST data service can be accessed by any HTTP client using oData.
  • Microsoft SharePoint 2010 and up can expose its data as OData endpoint
  • Office 365 exposes OData V4.0 APIs.
  • Salesforce Lightning Connect consumes OData APIs.
  • Skyvia Connect exposes cloud and database data via OData
  • Tableau can connect to OData APIs.
  • elastic.io Integration Platform has an OData connector for integrating with its APIs
  • TIBCO Spotfire can connect to OData APIs.
  • Mulesoft helps integrate with OData APIs.
  • SuccessFactors uses Odata APIs
  • Ceridian HCM's Dayforce uses Odata

PluralSight OData Tutorial Open Data Protocol - YouTube
src: i.ytimg.com


Tools

  • Nucleon Database Master

PluralSight OData Tutorial Open Data Protocol - YouTube
src: i.ytimg.com


See also

  • GData -- competing protocol from Google
  • Resource Description Framework (RDF) - a similar concept by W3C

Every Angle présente Odata - YouTube
src: i.ytimg.com


References


Modbus Embedded Controller - ppt video online download
src: slideplayer.com


External links

  • OData.org (official site)
  • Open Data Protocol by Example
  • OData Basics Presentation

OData OASIS Standards

  • OData Version 4.0 Part 1: Protocol
  • OData Version 4.0 Part 2: URL Conventions
  • OData Version 4.0 Part 3: Common Schema Definition Language (CSDL)
  • ABNF components - OData ABNF Construction Rules Version 4.0 and OData ABNF Test Cases
  • Vocabulary components - OData Core Vocabulary and OData Measures Vocabulary
  • XML Schemas - OData EDMX XML Schema and OData EDM XML Schema
  • OData JSON Format Version 4.0

Committee Specifications

  • OData Atom Format Version 4.0
  • OData Extension for Data Aggregation Version 4.0

Committee Notes

  • What's New in OData Version 4.0

Source of the article : Wikipedia

Comments
0 Comments