Some W3C SW technologies to watch… Ivan Herman, W3C Semantic Web Gathering Amsterdam, 16 March, 2009.

Slides:



Advertisements
Similar presentations
CH-4 Ontologies, Querying and Data Integration. Introduction to RDF(S) RDF stands for Resource Description Framework. RDF is a standard for describing.
Advertisements

XML: Extensible Markup Language
RDF Schemata (with apologies to the W3C, the plural is not ‘schemas’) CSCI 7818 – Web Technologies 14 November 2001 Van Lepthien.
By Ahmet Can Babaoğlu Abdurrahman Beşinci.  Suppose you want to buy a Star wars DVD having such properties;  wide-screen ( not full-screen )  the extra.
RDF Tutorial.
Semantic Web Introduction
RDF and RDB 1 Some slides adapted from a presentation by Ivan Herman at the Semantic Technology & Business Conference, 2012.
(1) Standardizing for Open Data Ivan Herman, W3C Open Data Week Marseille, France, June Slides at:
Using the Semantic Web to Construct an Ontology- Based Repository for Software Patterns Scott Henninger Computer Science and Engineering University of.
© 2006 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice RDF and SOA David Booth, Ph.D. HP.
1 Introduction to XML. XML eXtensible implies that users define tag content Markup implies it is a coded document Language implies it is a metalanguage.
SKOS and Other W3C Vocabulary Related Activities Gail Hodge Information International Assoc. NKOS Workshop Denver, CO June 10, 2005.
Dr. Alexandra I. Cristea RDF.
A year on the Semantic W3C (or: what is happening these days?) Semantic Web Meetup, Seattle, Ivan Herman, W3C.
RDF Kitty Turner. Current Situation there is hardly any metadata on the Web search engine sites do the equivalent of going through a library, reading.
The Semantic Web Week 12 Term 1 Recap Lee McCluskey, room 2/07 Department of Computing And Mathematical Sciences Module Website:
From SHIQ and RDF to OWL: The Making of a Web Ontology Language
Pontifícia Universidade Católica do Rio de Janeiro, Ivan Herman, W3C.
Semantic Web Technologies Lecture # 2 Faculty of Computer Science, IBA.
An OWL based schema for personal data protection policies Giles Hogben Joint Research Centre, European Commission.
Metadata Standards and Applications 4. Metadata Syntaxes and Containers.
RDF: Concepts and Abstract Syntax W3C Recommendation 10 February Michael Felderer Digital Enterprise.
RDF (Resource Description Framework) Why?. XML XML is a metalanguage that allows users to define markup XML separates content and structure from formatting.
SPARQL All slides are adapted from the W3C Recommendation SPARQL Query Language for RDF Web link:
Practical RDF Chapter 1. RDF: An Introduction
Okech Odhiambo Faculty of Information Technology Strathmore University
Logics for Data and Knowledge Representation
The Semantic Web Web Science Systems Development Spring 2015.
Chapter 3 Querying RDF stores with SPARQL. Why an RDF Query Language? Why not use an XML query language? XML at a lower level of abstraction than RDF.
Master Informatique 1 Semantic Technologies Part 11Direct Mapping Werner Nutt.
The LOM RDF binding – update Mikael Nilsson The Knowledge Management.
Metadata. Generally speaking, metadata are data and information that describe and model data and information For example, a database schema is the metadata.
Towards a semantic web Philip Hider. This talk  The Semantic Web vision  Scenarios  Standards  Semantic Web & RDA.
Coastal Atlas Interoperability - Ontologies (Advanced topics that we did not get to in detail) Luis Bermudez Stephanie Watson Marine Metadata Interoperability.
Using Several Ontologies for Describing Audio-Visual Documents: A Case Study in the Medical Domain Sunday 29 th of May, 2005 Antoine Isaac 1 & Raphaël.
EEL 5937 Ontologies EEL 5937 Multi Agent Systems Lecture 5, Jan 23 th, 2003 Lotzi Bölöni.
RELATORS, ROLES AND DATA… … similarities and differences.
SKOS. Ontologies Metadata –Resources marked-up with descriptions of their content. No good unless everyone speaks the same language; Terminologies –Provide.
The future of the Web: Semantic Web 9/30/2004 Xiangming Mu.
Introduction to the Semantic Web and Linked Data Module 1 - Unit 2 The Semantic Web and Linked Data Concepts 1-1 Library of Congress BIBFRAME Pilot Training.
Metadata Common Vocabulary a journey from a glossary to an ontology of statistical metadata, and back Sérgio Bacelar
User Profiling using Semantic Web Group members: Ashwin Somaiah Asha Stephen Charlie Sudharshan Reddy.
Of 33 lecture 1: introduction. of 33 the semantic web vision today’s web (1) web content – for human consumption (no structural information) people search.
Metadata : an overview XML and Educational Metadata, SBU, London, 10 July 2001 Pete Johnston UKOLN, University of Bath Bath, BA2 7AY UKOLN is supported.
COMP9321 Web Application Engineering Semester 2, 2015 Dr. Amin Beheshti Service Oriented Computing Group, CSE, UNSW Australia Week 5 1COMP9321, 15s2, Week.
Dr. Bhavani Thuraisingham September 24, 2008 Building Trustworthy Semantic Webs Lecture #9: RDF and RDF Security.
THE SEMANTIC WEB By Conrad Williams. Contents  What is the Semantic Web?  Technologies  XML  RDF  OWL  Implementations  Social Networking  Scholarly.
DANIELA KOLAROVA INSTITUTE OF INFORMATION TECHNOLOGIES, BAS Multimedia Semantics and the Semantic Web.
Knowledge Technologies Manolis Koubarakis 1 Some Other Useful Features of RDF.
Semantic Interoperability in GIS N. L. Sarda Suman Somavarapu.
Semantic Web in Depth RDFa, GRDDL and POWDER Dr Nicholas Gibbins
Semantic Web in Depth Rules Dr Nicholas Gibbins
SysML v2 Model Interoperability & Standard API Requirements Axel Reichwein Consultant, Koneksys December 10, 2015.
Semantic and geographic information system for MCDA: review and user interface building Christophe PAOLI*, Pascal OBERTI**, Marie-Laure NIVET* University.
1 State of the Semantic Web Ivan Herman, W3C (Last update: 19 August 2009)
Semantics of RDF(S) and OWL Ivan Herman, W3C (Last update: 28 Sep 2007) Ivan Herman.
1 W3C Current Activities Dagstuhl Perspective Workshop: Semantic Web Reflections and Future Directions Dagstuhl, Germany, June 30, 2009 Ivan Herman
Kynn Bartlett 11 April 2001 STC San Diego The HTML Writers Guild Copyright © 2001 XML, XHTML, XSLT, and other X-named specifications.
Tutorial on Semantic Web
RDF and RDB 1 Some slides adapted from a presentation by Ivan Herman at the Semantic Technology & Business Conference, 2012.
Tutorial on Semantic Web
Rules, RIF and RuleML.
Grid Computing 7700 Fall 2005 Lecture 18: Semantic Grid
The Re3gistry software and the INSPIRE Registry
PREMIS Tools and Services
Grid Computing 7700 Fall 2005 Lecture 18: Semantic Grid
Linking Guide Michel Böhms.
Lecture #6: RDF and RDF Security Dr. Bhavani Thuraisingham
Semantic Web Update W3C RDF, OWL Standards, Development and Applications Dave Beckett.
Resource Description Framework (RDF)
Presentation transcript:

Some W3C SW technologies to watch… Ivan Herman, W3C Semantic Web Gathering Amsterdam, 16 March, 2009

Copyright © 2009, W3C(2) Current works at W3C these days…  SKOS  I will not talk about this in the presence of Antoine…  POWDER  SPARQL  RDB2RDF  possibly starting soon, but too early to go into the details  RIF  OWL 2  I will not talk about it because there is a SW life outside OWL…

Copyright © 2009, W3C(3) Find RDF Data for resources (POWDER)

Copyright © 2009, W3C(4) How to “assign” RDF data to resources?  This is important when the RDF data is used as “metadata”  Some examples:  copyright information for your photographs  is a Web page usable on a mobile phone and how?  bibliographical data for a publication  annotation of the data resulting from a scientific experiment  etc

Copyright © 2009, W3C(5) Fundamental question: If I know the URI of the resource (photograph, publication, etc), how do I find the relevant RDF statements?

Copyright © 2009, W3C(6) The data might be embedded  Some data formats allow the direct inclusion of (RDF) metadata:  SVG (Scalable Vector Graphics)  direct inclusion of RDF/XML  via RDFa attributes  XHTML with RDFa or microformats+GRDDL  JPG files using the comment area and, eg, Adobe’s XMP technology

Copyright © 2009, W3C(7) POWDER  POWDER provides for a more elaborate scenarios: 1.define a set of resources by constraints on the URIs; eg  URIs must begin with  the port number in the URI-s should be XYZW 2.define “description resources” that bind those resources to additional information 3.get such description resources, eg, via a link statements, via HTTP, via SPARQL, … Use cases: licensing information, mobileOK (and other) trustmarks, finding accessible Web sites, content labeling (eg, child protection), …

Copyright © 2009, W3C(8) A POWDER scenario: copyright for photos

Copyright © 2009, W3C(9) The gory details…  The “description resource” is an XML file: <powder xmlns=" xmlns:cc=" /img/ <powder xmlns=" xmlns:cc=" /img/

Copyright © 2009, W3C(10) The gory details…  Powder processors may then return  direct RDF triples, eg:  or can transform this XML file into an OWL file for more generic processors  a canonical processing of the XML file is defined by the POWDER specification cc:license.

Copyright © 2009, W3C(11) POWDER Services  Online POWDER service can be set up:  a Web service with  submit a URI and a resource description file  return the RDF statements for that URI  such service should be set up at W3C  A GRDDL transform is also defined

Copyright © 2009, W3C(12) But there is a hidden “hiccup”  RDF makes a strong separation between  URI as an ID for a resource  URI as a datatype ( xsd:anyURI )  there is no “bridge” between the two  POWDER includes a small extension to the formal semantics of RDF for two properties:  wdrs:matchregex and wdrs:notmatchregex such that  (R wdrs:matchregex Regex) holds iff the URI of R matches Regex

Copyright © 2009, W3C(13) If you want to see the OWL version… <> wdrs:issuedBy. _:iriset_1 a owl:Class; owl:intersectionOf ( [ a owl:Restriction; owl:onProperty wsdr:matchregex ; owl:hasValue "..ugly regex for ex2.org"^^xsd:string ] [ a owl:Restriction; owl:onProperty wsdr:matchregex ; owl:hasValue "..ugly regex for /img"^^xsd:string ] ). _:desc_1 a owl:Restriction; owl:onProperty cc:license; owl:hasValue. _:iriset_1 rdfs:subClassOf _:desc_1. <> wdrs:issuedBy. _:iriset_1 a owl:Class; owl:intersectionOf ( [ a owl:Restriction; owl:onProperty wsdr:matchregex ; owl:hasValue "..ugly regex for ex2.org"^^xsd:string ] [ a owl:Restriction; owl:onProperty wsdr:matchregex ; owl:hasValue "..ugly regex for /img"^^xsd:string ] ). _:desc_1 a owl:Restriction; owl:onProperty cc:license; owl:hasValue. _:iriset_1 rdfs:subClassOf _:desc_1.

Copyright © 2009, W3C(14) Consequences of the “hiccup”  In practice this means that only “POWDER aware” agents can fully handle the description files  note that the extension is fairly easy to add, so it is not a big implementation issue…  Existence of the services to provide the triplets automatically relieve the pain…

Copyright © 2009, W3C(15) Other POWDER features  There are a number of additional features:  built in authentication: description resources must be attributed and this is open for authentication  assignments may carry validity dates  packaging several resource descriptions in one, possibly control their processing order  using tags to identify resources instead of URI patterns

Copyright © 2009, W3C(16) Status  Last technical discussions on some IRI vs. URI issues  Hopefully this issue will be settled soon (and POWDER can go to PR…)

Copyright © 2009, W3C(17) The new SPARQL…

Copyright © 2009, W3C(18) Goals  To define a small set of extensions to SPARQL  No complex change, backward compatibility  Listen to user and implementation experiences of the past few years

Copyright © 2009, W3C(19) Just starting  A request for features has been issued to the community  collected on a Wiki page  closed on the week of the 10 th of March; 35 entries  these have to be categorized, possibly merged  the group has to come up with a final list early May

Copyright © 2009, W3C(20) Taste of some requested features  Update, ie, ability to change the RDF store  Accessing RDF containers and collections  Nested queries in the WHERE and/or SELECT clauses  Control of inference (RDFS, Rules, OWL XX…)  Explicit negation (“UNSAID”)  Aggregate functions in SELECT  COUNT, MIN, MAX, AVG, …  Path expressions ( ?x foaf:knows+ ?y )  …

Copyright © 2009, W3C(21) Rules (RIF)

Copyright © 2009, W3C(22) Rules  There is a long history of rule languages and rule- based systems  eg: logic programming (Prolog), production rules  Lots of small and large rule systems (from mail filters to expert systems)  Hundreds of niche markets

Copyright © 2009, W3C(23) Why rules on the Semantic Web?  There are conditions that ontologies (ie, OWL) cannot express  a well known example is Horn rules: (P1 ∧ P2 ∧ …) → C  A different way of thinking — people may feel more familiar in one or the other

Copyright © 2009, W3C(24) Things you may want to express  An example:  “a novel with over 500 pages and costing less than €5 is a cheap book”  something like (in an ad-hoc syntax): If { ?x rdf:type p:Novel; p:page_number ?p; p:price [ p:currency p:€; rdf:value ?z ]. ?p > "500"^^xsd:integer. ?z < "5.0"^^xsd:double. } then { ?x rdf:type p:CheapBook } If { ?x rdf:type p:Novel; p:page_number ?p; p:price [ p:currency p:€; rdf:value ?z ]. ?p > "500"^^xsd:integer. ?z < "5.0"^^xsd:double. } then { ?x rdf:type p:CheapBook }

Copyright © 2009, W3C(25) A new requirement: exchange of rules  Applications may want to exchange their rules:  negotiate eBusiness contracts across platforms: supply vendor-neutral representation of your business rules so that others may find you  describe privacy requirements and policies, and let clients “merge” those (e.g., when paying with a credit card)  Hence the name of the working group: Rule Interchange Format  goal is a language that  expresses the rules a bit like a rule language  can be used to exchange rules among engines

Copyright © 2009, W3C(26) Notes on RIF  RIF does not concentrate on RDF only  ie, certain constructions go beyond what RDF can express  But there is a “subset” that is RDF and also OWL related  For the coming few slides, forget about RDF  We will come back to it. Promise!

Copyright © 2009, W3C(27) In an ideal World

Copyright © 2009, W3C(28) In the real World…  Rule based systems can be very different  different rule semantics (based on various type of model theories, on proof systems, etc)  production rule systems, with procedural references, state transitions, etc  Such universal exchange format is not feasible  The idea is to define “cores” for a family of languages with “variants”

Copyright © 2009, W3C(29) RIF “core”: only partial interchange

Copyright © 2009, W3C(30) RIF “dialects”  Possible dialects: F-logic, production rules, fuzzy or probabilistic logic, …

Copyright © 2009, W3C(31) Role of dialects

Copyright © 2009, W3C(32) Role of dialects

Copyright © 2009, W3C(33) Role of dialects

Copyright © 2009, W3C(34) Role of dialects

Copyright © 2009, W3C(35) However…  Even this model does not completely work  The gap between production rules and “traditional” logic systems is too large  A hierarchy of cores is necessary:  a Basic Logic Dialect and Production Rule Dialect as “cores” for families of languages  a common RIF Core binding these two

Copyright © 2009, W3C(36) Schematically…  The “BLD (Basic Logic Dialect)” is of the form:  “ if condition true then this is true ”  conditions may include functions, hierarchies  The “PLD (Production Logic Dialect)” is of the form:  “ if condition is true then do something ”  The “Core”: shared subset of major languages  technically: positive Horn without function terms, with some simple datatypes

Copyright © 2009, W3C(37) Hierarchy of cores

Copyright © 2009, W3C(38) Current status  There is a fairly final draft for the BLD  The work on the PLD Core is also on its way  The Core is defined as an abstraction from BLD and PLD

Copyright © 2009, W3C(39) RIF BLD  RIF BLD is the closest to the needs of the RDF world  BLD defines  a “presentation syntax”, which is really to… present the constructions (is not necessarily implemented in tools)  a formal XML syntax to encode and exchange the rules

Copyright © 2009, W3C(40) RIF BLD example Document( Prefix(cpt Prefix(ppl Prefix(bks Group ( Forall ?Buyer ?Item ?Seller ( cpt:buy(?Buyer ?Item ?Seller):- cpt:sell(?Seller ?Item ?Buyer) ) cpt:sell(ppl:John bks:LeRif ppl:Mary) ) Document( Prefix(cpt Prefix(ppl Prefix(bks Group ( Forall ?Buyer ?Item ?Seller ( cpt:buy(?Buyer ?Item ?Seller):- cpt:sell(?Seller ?Item ?Buyer) ) cpt:sell(ppl:John bks:LeRif ppl:Mary) ) infers the following relationship: cpt:buy(ppl:Mary bks:LeRif ppl:John)

Copyright © 2009, W3C(41) Additional RIF BLD features  RIF BLD includes some extra features  built-in datatypes and predicates  notion of “local names”, a bit like RDF’s blank nodes  a “frame-based” syntax (beyond predicates and functions):  p[prop1->v1 prop2->v2]  built-in abstractions for classes, subclassing, and typing:  m # C, C1 ## C2  RIF BLD’s semantics follows the “usual” approach in logic

Copyright © 2009, W3C(42) What about RDF(S), OWL, and BLD?  Typical scenario: applications exchange rules that refer to RDF data  To make that work:  RDF facts/triples have to be representable in BLD  harmonization on the concepts is necessary (eg, classes)  the formal semantics of the two worlds should also be aligned  There is a separate document that brings these together

Copyright © 2009, W3C(43) What about RDF(S), OWL, and BLD?  Triples can be expressed in BLD using the frame syntax:  (s p o) is written as s[p->o]  subclassing and typing of BLD are equivalent to their RDFS counterpart  the datatypes are (almost…) identical to OWL 2

Copyright © 2009, W3C(44) Rewrite of our earlier example Group ( Forall ?Buyer ?Item ?Seller ( ?Buyer[cpt:buy->?Item cpt:from->?Seller] :- ?Seller[cpt:sell->?Item cpt:to->?Buyer] ) Group ( Forall ?Buyer ?Item ?Seller ( ?Buyer[cpt:buy->?Item cpt:from->?Seller] :- ?Seller[cpt:sell->?Item cpt:to->?Buyer] ) We describe/exchange the rules:

Copyright © 2009, W3C(45) Rewrite of our earlier example Group ( Forall ?Buyer ?Item ?Seller ( ?Buyer[cpt:buy->?Item cpt:from->?Seller] :- ?Seller[cpt:sell->?Item cpt:to->?Buyer] ) Group ( Forall ?Buyer ?Item ?Seller ( ?Buyer[cpt:buy->?Item cpt:from->?Seller] :- ?Seller[cpt:sell->?Item cpt:to->?Buyer] ) We describe/exchange the rules: ppl:Mary cpt:sell bks:LeRif; cpt:to ppl:John. ppl:Mary cpt:sell bks:LeRif; cpt:to ppl:John. We then import the RDF data

Copyright © 2009, W3C(46) Rewrite of our earlier example Group ( Forall ?Buyer ?Item ?Seller ( ?Buyer[cpt:buy->?Item cpt:from->?Seller] :- ?Seller[cpt:sell->?Item cpt:to->?Buyer] ) Group ( Forall ?Buyer ?Item ?Seller ( ?Buyer[cpt:buy->?Item cpt:from->?Seller] :- ?Seller[cpt:sell->?Item cpt:to->?Buyer] ) We describe/exchange the rules: ppl:Mary cpt:sell bks:LeRif; cpt:to ppl:John. ppl:John cpt:buy bks:LeRif; cpt:from ppl:Mary. ppl:Mary cpt:sell bks:LeRif; cpt:to ppl:John. ppl:John cpt:buy bks:LeRif; cpt:from ppl:Mary. We then import the RDF data, and infer:

Copyright © 2009, W3C(47) Remember the what we wanted from rdf:. If { ?x rdf:type p:Novel; p:page_number ?p; p:price [ p:currency :€; rdf:value ?z ]. ?p > "500"^^xsd:integer. ?z < "5.0"^^xsd:double. } then { ?x rdf:type p:CheapBook rdf:. If { ?x rdf:type p:Novel; p:page_number ?p; p:price [ p:currency :€; rdf:value ?z ]. ?p > "500"^^xsd:integer. ?z < "5.0"^^xsd:double. } then { ?x rdf:type p:CheapBook }

Copyright © 2009, W3C(48) The same with RIF BLD Presentation syntax Prefix(p Prefix(rdf Prefix(pred Forall ?x ?p ?z ( ?x # p:CheapBook :- And( ?x # p:Novel ?x[p:page_numper->?p p:price->_abc] _abc[p:currency->€ rdf:value->?z] External( pred:numeric-greater-than(?p 500) ) External( pred:numeric-less-than(?z 5.0) ) ) Prefix(p Prefix(rdf Prefix(pred Forall ?x ?p ?z ( ?x # p:CheapBook :- And( ?x # p:Novel ?x[p:page_numper->?p p:price->_abc] _abc[p:currency->€ rdf:value->?z] External( pred:numeric-greater-than(?p 500) ) External( pred:numeric-less-than(?z 5.0) ) )

Copyright © 2009, W3C(49) A word on the syntax  The RIF BLD Presentation syntax is… only syntax  It can express more than what RDF needs  Hopefully, a syntax will emerge with  close to one of the RDF syntaxes with a better integration of rules  only the relevant subset of BLD  note: there is a syntax called n3 that is very close…  can be mapped on BLD implementations as they come

Copyright © 2009, W3C(50) Rules vs OWL?  In a SW application, should I use RIF, OWL, or both?  The two approaches are complimentary  there are things that rules cannot really express or infer  eg, inferencing complex relationships among classes  there are things that ontologies cannot really express or in only a very complicated manner  eg, complex Horn rules  Often, applications require both

Copyright © 2009, W3C(51) Thank you for your attention! These slides are also available on the Web: