Semantic Pipes and Semantic Mashups


Published on

Published in: Education, Business

Semantic Pipes and Semantic Mashups

  1. 1. Semantic Pipes and Semantic Mashups Adrian Giurca
  2. 2. Pipes <ul><ul><li>Basically pipes are just about Web data aggregation. You query/aggregate various data sources (typically Atom or RSS feeds ) and create a new data source (as a new feed) </li></ul></ul><ul><ul><li>Pipes were pioneered by Yahoo! with its Yahoo! Pipes , a free online service that lets you remix popular feed types and create data mashups using a visual editor. </li></ul></ul><ul><ul><li>Yahoo! Pipes is a data mashup tool rather than a complete Mashup editor. </li></ul></ul>
  3. 3. Yahoo! Pipes <ul><ul><li>Pipes are created by using various building blocks: User Inputs, Sources, URL, Operators, Location and so on. </li></ul></ul>
  4. 4. New York Times thru Flickr
  5. 5. Yahoo Finance Stock Quote Watch List
  6. 6. Yahoo Finance Stock Quote Watch List <ul><ul><li>Data from pipes is delivered as widgets, RSS feeds, JSON objects... </li></ul></ul><ul><ul><li>The new created data can be used on other pipes too. </li></ul></ul>
  7. 7. What is a Semantic Pipe? <ul><ul><li>A Semantic Pipe is a stored sequence of SPARQL queries over one or more RDF sources. The result of each query is seen as a concrete and independent RDF resource. </li></ul></ul><ul><ul><li>Semantic Pipes are close to Yahoo! Pipes as they aggregate data too. </li></ul></ul>
  8. 8. RDF Data Sources <ul><ul><li>U.S. Census : 1 billion triples of U.S. census data </li></ul></ul><ul><ul><li>GovTrack : Around 10 million triples containing census data for U.S. locations, brief biographical data for all members of Congress, and mainly data for federal legislation and voting records going back five years. </li></ul></ul><ul><ul><li>DBLP Bibliography Database : 15 million triples on computer science bibliographic data. </li></ul></ul><ul><ul><li>DBPedia : Describing 1.6M Wikipedia articles </li></ul></ul><ul><ul><li> : Almost 2.7 million triples of data. </li></ul></ul><ul><ul><li>BBC Backstage from HP Labs: detailed information on the BBC schedules (including digital tv and radio) for the next week, updated every morning. </li></ul></ul>
  9. 9. DERI Pipes <ul><ul><li>Work started in 2007 (1) and finalized in 2009 (2) </li></ul></ul><ul><ul><li>DERI Pipes is a Tool for building Semantic Pipes </li></ul></ul><ul><ul><li>Inspired from Yahoo! Pipes </li></ul></ul><ul><ul><li>Defines various blocks to process data sources (RDF but also HTML, XML and JSON) and blocks for processing data (mainly RDF data) i.e. operators (defined on top of SPARQL language) as well as user input blocks and conditional blocks </li></ul></ul><ul><ul><li>DERI Pipes defines a pipe XML language behind the visual interface </li></ul></ul>(1) Christian Morbidoni and Axel Polleres and Giovanni Tummarello, &quot;Who the FOAF knows Alice? A needed step towards Semantic Web Pipes&quot;, ISWC 2007 Workshop on New forms of Reasoning for the Semantic Web: Scaleable, Tolerant and Dynamic, Busan, Korea (2) Danh Le Phuoc, Axel Polleres, Christian Morbidoni, and Manfred Hauswirth, Giovanni Tummarello. Rapid semantic web mashup development through semantic web pipes. In Proceedings of the 18 th World Wide Web Conference (WWW2009), Madrid, Spain, April 2009.
  10. 10. AxelFOAFAgents <ul><ul><li>All Agents with identifiers in my FOAF file </li></ul></ul>< pipe > < parameters /> < code > < construct > < source > < rdfs > < source > < rdffetch format =&quot; RDF/XML &quot;> < location > </ location > </ rdffetch > </ source > ... </ rdfs > </ source > < query > <![CDATA[ PREFIX foaf: <> PREFIX rdf: <> CONSTRUCT {?X rdf:type foaf:Agent} WHERE {?X rdf:type foaf:Agent FILTER (!isBlank(?X)) } ]]></ query > </ construct > </ code > </ pipe >
  11. 11. What is a Semantic Mashup? <ul><ul><li>A Semantic Mashup is a data mashup using RDF(S) as data model and SPARQL services to implement the behavior. </li></ul></ul><ul><ul><li>In many cases, Semantic Mashups comes as Semantic Pipes i.e. applications that aggregate RDF(S) data. </li></ul></ul><ul><ul><li>However, while basic semantic pipes just aggregate semantic data, semantic mashups may have reasoning capabilities . </li></ul></ul><ul><ul><li>This may involve Semantic Web Reasoners such as KAON2 , Pellet , Racer , Jena ... </li></ul></ul>
  12. 12. Some Semantic Mashups <ul><ul><li>Flickcurl (1) a mashup that gives RDF descriptions for all photos in Flickr . </li></ul></ul><ul><ul><li>RDF Book Mashup (1) - Wraps several book-related APIs </li></ul></ul><ul><ul><li>CiteULike (2) - a service for managing and discovering scholarly references </li></ul></ul><ul><ul><li>... </li></ul></ul><ul><ul><li>All above services are implemented programmatically </li></ul></ul>(1) Dave Beckett, , February 2007 (2) Christian Bizer, Richard Cyganiak, Tobias Gauß: The RDF Book Mashup: From Web APIs to a Web of Data. 3rd Workshop on Scripting for the Semantic Web (SFSW2007), Innsbruck, Austria, June 2007 (3) Querying Distributed RDF Data Sources with SPARQL by: Bastian Quilitz, Ulf Leser, The Semantic Web: Research and Applications (2008), pp. 524-538.
  13. 13. Feeds formats <ul><ul><li>Feeds are the most important data source of the Web </li></ul></ul><ul><ul><li>All major content creators provides feeds of their data: Reuters , CNN , BBC , Elsevier , ... </li></ul></ul><ul><ul><li>Most used feed formats are Atom 1.0 and RSS 2.0 </li></ul></ul>Source: Wikipedia
  14. 14. Discussion: Feeds and Semantic Data(1) <ul><ul><li>Most of semantic mashups process RDF data... </li></ul></ul><ul><ul><li>But RDF data is in very small amount comparing with the whole Web... </li></ul></ul><ul><ul><li>Therefore they should also extract RDF data from ordinary data sources </li></ul></ul><ul><ul><li>RDF data should be automatically created by extracting semantics from HTML documents </li></ul></ul><ul><ul><li>RDFa is a source of RDF data too but lack of RDFa annotation tools makes the job difficult for users... </li></ul></ul><ul><ul><li>Lack of tools that create RDF data sources? </li></ul></ul>
  15. 15. Discussion: Feeds and Semantic Data(2) <ul><ul><li>RDF data should be automatically created from standard feeds </li></ul></ul><ul><ul><li>We will not debate on feed format adoption but, </li></ul></ul><ul><ul><ul><li>There is a work on mapping Atom to RDF </li></ul></ul></ul><ul><ul><li>Semantic Mashups should process Atom feeds as RDF and this will highly expand their applications </li></ul></ul>