Adam Wilson Program Manager Microsoft Corporation SESSION CODE: COS208
I need data!
MarketplaceMarketplace BillingBilling AnalyticsAnalytics Services for Content Providers Standard Data Access (OData) Office, Dynamics, SQL Server ISV Apps Custom Apps
Find and subscribe to dataset in “Dallas” portal Understand dataset query/response format using Service Explorer In your app, make request and process AtomPub response
A quick way to explore “Dallas” datasets Available for every dataset Fill in parameter values using guided help View results in various formats Click “Analyze” to continue exploring in PowerPivot and Excel to create PivotTables, graphs, etc. Learn about data format and perform quick queries
var context = new DallasDataServiceContext(new Uri(...)); var r = from c in context.Crimes where c.Robbery / c.Population > (from c2 in context.Crimes select (c2.Robbery / c2.Population)).Sum() select c; service/$metadataService/Crimes?$filter=...
Content ServicePRLicensingSLAPrivacySecurityAuthenticationAuthorization Application support BillingReports $$ Proprietary protocols Hard to discover Proprietary apps High costs
“Dallas” Content Providers ISVs Content consumers (Developers, IWs) MS Products Standard Integrated One stop shop Powered by Windows Azure
// Construct the request WebRequest request = WebRequest.Create( " + "crimes/Louisiana?city=New%20Orleans&year=2007"); // Add headers required by Dallas request.Headers["$accountKey"] = "28Q3TwdWwIp5WPaJnKsCNstGFi1EKXs6X5eV0JnV6HM="; request.Headers["$uniqueUserID"] = "47676c3b-7c9a-4cdc-8ad2-51b4c795baba"; // Read and display the response using (var reader = new StreamReader(request.GetResponse().GetResponseStream(), true)) { XDocument xml = XDocument.Parse(reader.ReadToEnd()); string burglaryValue = xml.Root.Descendants().First(el => el.Name.LocalName == "Burglary").Value; Console.WriteLine("There were {0} burglaries in New Orleans in 2007.", burglaryValue); }
Data.Gov - U.S. Offenses Known to Law Enforcement Orleans&year=2007&$format=atom U.S. Government T23:28:17Z Orleans&year=2007&$format=atom10&$page=1&$itemsperpage=1 Louisiana / New Orleans in T23:28:17Z Louisiana New Orleans [...]