Implementing OData: Create a UG Event Feed
-
Upload
chris-dufour -
Category
Technology
-
view
111 -
download
2
description
Transcript of Implementing OData: Create a UG Event Feed
Implementing OData:Create a User Group Event Feed
Chris Dufour, ASP MVPSoftware Architect, Compuware
[email protected]: chrduf
Agenda
What is “Open Data”?What is the “Open Data Protocol”?How is any of this useful/interesting?Build an OData serviceConsume OData using Jquery and code
behind
What is Open Data
“Open Data” is data that is made available to anyone*, in a standard, easily consumable way
Why is this useful?
1. Great ideas require great data2. Data in non-open forms can (and most
likely will) create more friction than good
1. Great ideas require great data
The Top 5 iPhone Apps of 2009 need data…1. Tweetie 22. Yelp3. Slacker (video streaming)4. FlightTrack Pro5. Mint
Windows
iPhone
Browser
Windows Phone
Services powering Experiences
Silverlight
Web Site
Web API
webOS
2. Data in non-open forms can (and most likely will) create more friction than good
“…good data management can generate good science, and bad data management can inhibit the process of scientific discovery.” - Ray P. Norris
How does this encourage productivity?
Why the Web Works
Simple and open◦Addressing scheme – URI◦Application protocol – HTTP◦Representation Format – (X)HTML◦Response codes – HTTP status
Scales best when ◦Stateless◦Cached
It works because people find value in it
The Web of Services should work the way the Web of Pages works
OData Just HTTP
◦ Data as resources, HTTP methods to act on it
◦ Leverage caching, proxies, authentication, …
Uniform way of representing structured data◦ Atom (full AtomPub protocol support), JSON
Uniform URL conventions◦ Navigation, filtering, sorting, paging, etc.
Uniform operations◦ Every piece of information is
addressable◦ GET, POST, PUT, DELETE always mean
the same
Demo
Expose UG Event Data
ResourcesOpen data protocol – OData
◦ http://www.odata.org/OData Explorer
◦ http://silverlight.net/ODataExplorer/LinQPad
◦ http://www.linqpad.net/Beta.aspxJSONP and URL-controlled format support
◦ http://code.msdn.microsoft.com/DataServicesJSONPjQuery Templates plugin (jquery-tmpl)
◦ http://weblogs.asp.net/scottgu/archive/2010/10/04/jquery-templates-data-link-and-globalization-accepted-as-official-jquery-plugins.aspx
◦ http://api.jquery.com/category/plugins/templates/