Of 38 lecture 6: rdf – axiomatic semantics and query.

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

Method for developing the benchmark suites. October 10th © Raúl García-Castro Method for developing the benchmark suites Raúl García-Castro October.
RDF Schemata (with apologies to the W3C, the plural is not ‘schemas’) CSCI 7818 – Web Technologies 14 November 2001 Van Lepthien.
Dr. Bhavani Thuraisingham February 18, 2011 Building Trustworthy Semantic Webs RDF and RDF Security.
An Introduction to RDF(S) and a Quick Tour of OWL
E © 2002 Dario Aganovic Resource Description Framework Schema (RDFS) Dario Aganovic Industrial PhD-student NPI Production Kista, Ericsson AB and Production.
CS570 Artificial Intelligence Semantic Web & Ontology 2
RDFS: Resource Description Framework Schema
Of 27 lecture 7: owl - introduction. of 27 ece 627, winter ‘132 OWL a glimpse OWL – Web Ontology Language describes classes, properties and relations.
Dr. Jim Bowring Computer Science Department College of Charleston CSIS 690 (633) May Evening 2009 Semantic Web Principles and Practice Class 5: 27 May.
SPARQL for Querying PML Data Jitin Arora. Overview SPARQL: Query Language for RDF Graphs W3C Recommendation since 15 January 2008 Outline: Basic Concepts.
Chapter 8: Web Ontology Language (OWL) Service-Oriented Computing: Semantics, Processes, Agents – Munindar P. Singh and Michael N. Huhns, Wiley, 2005.
The Semantic Web – WEEK 5: RDF Schema + Ontologies The “Layer Cake” Model – [From Rector & Horrocks Semantic Web cuurse]
COMP 6703 eScience Project Semantic Web for Museums Student : Lei Junran Client/Technical Supervisor : Tom Worthington Academic Supervisor : Peter Strazdins.
Chapter 3A Semantic Web Primer 1 Chapter 3 Describing Web Resources in RDF Grigoris Antoniou Frank van Harmelen.
State of the Art in Semantic Web standards and technologies Andreas Duscher.
Knowledge Technologies Manolis Koubarakis 1 An Introduction to RDF Schema.
More RDF CS 431 – Carl Lagoze – Cornell University Acknowledgements: Eric Miller Dieter Fensel.
1 Introduction to Semantic Web with XML RDF Dickson K.W. Chiu PhD, SMIEEE Text: Antoniou & van Harmelen: A Semantic Web PrimerA Semantic Web Primer (Chapter.
Cornell CS 502 Resource Description Framework Building the Semantic Web CS 502 – Carl Lagoze – Cornell University Acknowledgements: Eric Miller.
Chapter 3A Semantic Web Primer 1 Chapter 3 Describing Web Resources in RDF Grigoris Antoniou Frank van Harmelen.
Nancy Ide Vassar College USA Resource Definition Framework A Tutorial EUROLAN 2003 July 28 - August 8 Bucharest - Romania.
Chapter 3A Semantic Web Primer 1 Chapter 3 Querying the Semantic Web Grigoris Antoniou Paul Groth Frank van Harmelen Rinke Hoekstra.
RDF (Resource Description Framework) Why?. XML XML is a metalanguage that allows users to define markup XML separates content and structure from formatting.
Chapter 3 RDF Schema.
1 CENTRIA, Dept. Informática da Faculdade de Ciências e Tecnologia, Universidade Nova de Lisboa, Caparica, Portugal. 2 Institute of Computer Science,
RDF Query language The following slides are from Grigoris Antoniou, Frank van Harmelen, “A Semantic Web Primer” Dean Allemang, Jim Hendler, “Semantic Web.
The Semantic Web Web Science Systems Development Spring 2015.
ΤΜΗΜΑ ΠΛΗΡΟΦΟΡΙΚΗΣ, ΑΠΘ ΜΕΤΑΠΤΥΧΙΑΚΟ ΠΡΟΓΡΑΜΜΑ ΣΠΟΥΔΩΝ Κατεύθυνση Πληροφοριακών Συστημάτων - 1ο Εξάμηνο Σημασιολογικός Ιστός lpis.csd.auth.gr/mtpx/sw/index.htm.
RDF and OWL Developing Semantic Web Services by H. Peter Alesso and Craig F. Smith CMPT 455/826 - Week 6, Day Sept-Dec 2009 – w6d21.
© Copyright 2008 STI INNSBRUCK RDF and RDF Schema Semantic Web Lecture Lecture III – xx 2009 Dieter Fensel Slides.
Chapter 3A Semantic Web Primer 1 Chapter 3 Describing Web Resources in RDF Grigoris Antoniou Frank van Harmelen.
OWL 2 in use. OWL 2 OWL 2 is a knowledge representation language, designed to formulate, exchange and reason with knowledge about a domain of interest.
Chapter 9. 9 RDFS (RDF Schema) RDFS Part of the Ontological Primitive layer Adds features to RDF Provides standard vocabulary for describing concepts.
Ontology Query. What is an Ontology Ontologies resemble faceted taxonomies but use richer semantic relationships among terms and attributes, as well as.
Chapter 3 RDF Schema. Introduction RDF has a very simple data model RDF Schema (RDFS) enriches the data model, adding vocabulary and associated semantics.
Of 41 lecture 4: rdf – basics and language. of 41 RDF basic ideas the fundamental concepts of RDF  resources  properties  statements ece 720, winter.
Part I: Set Constructs. RDF Schema (RDFS) RDF does not provide mechanisms to define domain classes and properties RDFS is a vocabulary that provides many.
Chapter 3 RDF and RDFS Semantics. Introduction RDF has a very simple data model But it is quite liberal in what you can say Semantics can be given using.
RQL: RDF Query language Jianguo Lu University of Windsor The following slides are from Grigoris Antoniou, Frank van Harmelen, “A Semantic Web Primer”
Semantic Web Exam 1 Review.
EEL 5937 Ontologies EEL 5937 Multi Agent Systems Lecture 5, Jan 23 th, 2003 Lotzi Bölöni.
Part II. Property domain and range restriction RDFS allows us to put restriction on the properties by specifying their domain and range, providing the.
1 Artificial Intelligence Applications Institute Centre for Intelligent Systems and their Applications Stuart Aitken Artificial Intelligence Applications.
Of 35 lecture 5: rdf schema. of 35 RDF and RDF Schema basic ideas ece 627, winter ‘132 RDF is about graphs – it creates a graph structure to represent.
OIL and DAML+OIL: Ontology Languages for the Semantic Web Sungshin Lim TOWARDS THE SEMANTIC WEB: Ontology-driven Knowledge.
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.
Ontology Engineering Lab #5 – September 30, 2013.
Ch 7: RDF schema 현근수, 김영욱, 백상윤, 이용현 Team C. Introduction Semantic web modeling In RDF: simply creates graph structure to represent data In RDFS: about.
Dr. Bhavani Thuraisingham September 24, 2008 Building Trustworthy Semantic Webs Lecture #9: RDF and RDF Security.
Chapter 3A Semantic Web Primer 1 Chapter 3 Describing Web Resources in RDF Grigoris Antoniou Frank van Harmelen.
Practical RDF Chapter 12. Ontologies: RDF Business Models Shelley Powers, O’Reilly SNU IDB Lab. Taikyoung Kim.
RDF & SPARQL Introduction Dongfang Xu Ph.D student, School of Information, University of Arizona Sept 10, 2015.
Knowledge Technologies Manolis Koubarakis 1 Some Other Useful Features of RDF.
Describing Web Resources in RDF Semantic Web. Knowledge Technologies Manolis Koubarakis 2 The Semantic Web “Layer Cake”
What is the Semantic Web? “The Semantic Web is an extension of the current web in which information is given a well-defined meaning, better enabling computers.
The Semantic Web SDBI 2010 Most of the slides are book slides of Semantic Web Primer, by Grigoris Antoniou and Frank van Harmelen.
Linked Data & Semantic Web Technology The Semantic Web Part 7. RDF Semantics Dr. Myungjin Lee.
Semantic Web in Depth RDF Schema Dr Nicholas Gibbins –
NEDA ALIPANAH, MARIA ADELA GRANDO DBMI 11/19/2012.
Describing Web Resources in RDF Semantic Web. Knowledge Technologies Manolis Koubarakis 2 The Semantic Web “Layer Cake”
OWL (Ontology Web Language and Applications) Maw-Sheng Horng Department of Mathematics and Information Education National Taipei University of Education.
Charlie Abela Department of Intelligent Computer Systems
Building Trustworthy Semantic Webs
ece 720 intelligent web: ontology and beyond
ece 720 intelligent web: ontology and beyond
Chapter 3 RDF and RDFS Semantics
Semantic Web Ontologies & Data Models
Semantic Web Basics (cont.)
Presentation transcript:

of 38 lecture 6: rdf – axiomatic semantics and query

of 38 ece 720, winter ‘122 RDF and RDFS axiomatic semantics the meaning of the modeling primitives of RDF and RDF Schema is being translated into first- order logic it provides a basis for reasoning support by automated reasoners

of 38 ece 720, winter ‘123 RDF and RDFS axiomatic semantics - approach language primitives are represented by constants: Resource, Class, Property, subClassOf, etc. a few predefined predicates are used as for expressing relationships between the constants

of 38 ece 720, winter ‘124 RDF and RDFS axiomatic semantics - approach variable names begin with “?” all axioms are implicitly universally quantified

of 38 ece 720, winter ‘125 PropVal(P, R, V)  a predicate with 3 arguments, is used to represent an RDF statement with resource R, property P and value V  an RDF statement (triple) (R, P, V) is represented as PropVal(P, R, V) RDF and RDFS a.semantics basic predicates

of 38 RDF basic ideas – statements (from lecture 4) a triple: object-attribute-value or in other words: resource-property-value (values are resources or literals) or subject-property-object ece 720, winter ‘126

of 38 ece 720, winter ‘127 Type(R, T)  short for PropVal(type, R, T)  specifies that the resource R has the type T Type(?r, ?t)  PropVal(type, ?r, ?t) RDF and RDFS a.semantics basic predicates

of 38 ece 720, winter ‘128 constants: Class, Resource, Property, Literal  all classes are instances of Class Type(Class,Class) Type(Resource,Class) Type(Property,Class) Type(Literal,Class) RDF and RDFS a.semantics classes

of 38 ece 720, winter ‘129 Resource is the most general class: every class and every property is a resource Type(?p,Property)  Type(?p,Resource) Type(?c,Class)  Type(?c,Resource) RDF and RDFS a.semantics classes (2)

of 38 ece 720, winter ‘1210 the predicate in an RDF statement must be a property PropVal(?p,?r,?v)  Type(?p,Property) RDF and RDFS a.semantics classes (3)

of 38 ece 720, winter ‘1211 type is a property Type(type, Property) is equivalent to PropVal(type, type, Property) RDF and RDFS a.semantics type property

of 38 ece 720, winter ‘1212 type can be applied to resources (domain) and has a class as its value (range) Type(?r, ?c)  (Type(?r, Resource)  Type(?c, Class)) RDF and RDFS a.semantics type property (2)

of 38 ece 720, winter ‘1213 subClassOf is a property Type(subClassOf, Property) = PropVal(type, subClassOf, Property) RDF and RDFS a.semantics subclass

of 38 ece 720, winter ‘1214 if a class C is a subclass of a class C', then all instances of C are also instances of C': PropVal(subClassOf, ?c, ?c')  (Type(?c, Class)  Type(?c', Class)   ?x (Type(?x, ?c)  Type(?x, ?c'))) RDF and RDFS a.semantics subclass

of 38 ece 720, winter ‘1215 subPropertyOf is a property Type(subPropertyOf, Property) = PropVal(type, subPropertyOf, Property) RDF and RDFS a.semantics subproperty

of 38 ece 720, winter ‘1216 P is a subproperty of P', if P'(x,y) is true whenever P(x,y) is true: PropVal(subPropertyOf, ?p, ?p')  (Type(?p, Property)  Type(?p', Property)   ?r  ?v (PropVal(?p, ?r, ?v)  PropVal(?p', ?r, ?v))) RDF and RDFS a.semantics subproperty

of 38 ece 720, winter ‘1217 if the domain of P is D, then for every P(x,y), x  D PropVal(domain, ?p, ?d)   ?x  ?y (PropVal(?p, ?x, ?y)  Type(?x, ?d)) RDF and RDFS a.semantics domain and range

of 38 ece 720, winter ‘1218 if the range of P is R, then for every P(x,y), y  R PropVal(range, ?p, ?r)   ?x  ?y (PropVal(?p, ?x, ?y)  Type(?y, ?r)) RDF and RDFS a.semantics domain and range

of 38 ece 720, winter ‘1219 can be used for automatic reasoning, but … it needs first-order logic proof system to do so RDF and RDFS a.semantics issues

of 38 ece 720, winter ‘1220 semantics in terms of RDF triples instead of restating RDF in terms of first-order logic the inference system consists of inference rules: IF E contains certain triples THEN add to E certain additional triples where E is an arbitrary set of RDF triples RDF and RDFS semantics inference rules

of 38 ece 720, winter ‘1221 IF E contains the triple (?x, ?p, ?y) THEN E also contains (?p, rdf:type, rdf:Property) any resource ?p used in the property position can be inferred to be a member of the class rdf:Property RDF and RDFS semantics inference rules – examples

of 38 ece 720, winter ‘1222 IF E contains the triples (?u, rdfs:subClassOf, ?v) and (?v, rdfs:subClassOf, ?w) THEN E also contains the triple (?u, rdfs:subClassOf, ?w) encodes transitivity of the subclass relation RDF and RDFS semantics inference rules – examples

of 38 ece 720, winter ‘1223 IF E contains the triples (?x, rdf:type, ?u) and (?u, rdfs:subClassOf, ?v) THEN E also contains the triple (?x, rdf:type, ?v) … RDF and RDFS semantics inference rules – examples

of 38 ece 720, winter ‘1224 IF E contains the triples (?x, ?p, ?y) and (?p, rdfs:range, ?u) THEN E also contains the triple (?y, rdf:type, ?u) any resource ?y which appears as the value of a property ?p can be inferred to be a member of the range of ?p (range definitions in RDF Schema are not used to restrict the range of a property, but rather to infer the membership of the range) RDF and RDFS semantics inference rules – examples

of 38 ece 720, winter ‘1225 XML query language (XPath) not suitable SPARQL (SPARQL Protocol and RDF Query Language) is based on matching graph patterns SPARQL a query language for RDF

of 38 ece 720, winter ‘1226 the simplest graph pattern is the triple pattern: like an RDF triple, but with the possibility of a variable instead of an RDF term in the subject, predicate, or object positions (?x, ?p, ?y) combining triple patterns gives a basic graph pattern, where an exact match to a graph is needed to fulfill a pattern SPARQL a query language for RDF

of 38 ece 720, winter ‘1227 PREFIX rdf: PREFIX rdfs: SELECT ?c WHERE { ?c rdf:type rdfs:Class. } this query retrieves all triple patterns, where: -the property is rdf:type -the object is rdfs:Class - it retrieves all classes SPARQL example

of 38 ece 720, winter ‘1228 to retrieve all instances of a particular class (e.g. course) : (declaration of rdf, rdfs prefixes omitted for brevity) PREFIX uni: SELECT ?i WHERE { ?i rdf:type uni:course. } SPARQL example (2)

of 38 ece 720, winter ‘1229 SELECT specifies the projection: the number and order of retrieved data FROM is used to specify the source being queried (optional) WHERE imposes constraints on possible solutions in the form of graph pattern templates and boolean constraints SPARQL select-from-where – query structure

of 38 ece 720, winter ‘1230 retrieve all phone numbers of staff members SELECT ?x ?y WHERE { ?x uni:phone ?y. } here ?x and ?y are variables, and ?x uni:phone ?y represents a resource-property-value triple pattern SPARQL select-from-where

of 38 ece 720, winter ‘1231 we restrict the second pattern only to those triples, the resource of which is in the variable ?x ( a semicolon indicates that the following triple shares its subject with the previous one) retrieve all lecturers and their phone numbers: SELECT ?x ?y WHERE { ?x rdf:type uni:Lecturer ; uni:phone ?y. } SPARQL implicit join

of 38 ece 720, winter ‘1232 the previous query is equivalent to SELECT ?x ?y WHERE { ?x rdf:type uni:Lecturer. ?x uni:phone ?y. } SPARQL implicit join (2)

of 38 ece 720, winter ‘1233 retrieve the name of all courses taught by the lecturer with ID SELECT ?n WHERE { ?x rdf:type uni:Course ; uni:isTaughtBy : ?c uni:name ?n. FILTER (?c = ?x). } SPARQL explicit join

of 38 Mike Knight John Smith one “has” only name, the other “has” name and address ece 720, winter ‘1234 SPARQL optional patterns

of 38 if we ask for lecturers and their addresses SELECT ?name ? WHERE {?x rdf:type uni:Lecturer ; uni:name ?name ; uni: ? . } the result: John Smith, ece 720, winter ‘1235 SPARQL optional patterns (2)

of 38 as a solution we can adapt the query to use an optional pattern SELECT ?name ? WHERE {?x rdf:type uni:Lecturer ; uni:name ?name. OPTIONAL { x? uni: ? } } the result: Mike Knight, John Smith, ece 720, winter ‘1236 SPARQL optional patterns (3)

of 38 ece 720, winter ‘1237  provides a foundation for representing and processing metadata  has a graph-based data model  has an XML-based syntax  allows incremental building of knowledge, and its sharing and reuse  is domain independent RDF summary

of 38 ece 720, winter ‘1238  RDF Schema is a primitive ontology language (offers certain modelling primitives with fixed meaning)  key concepts of RDF Schema are class, subclass relations, property, subproperty relations, and domain and range restrictions  there arequery languages for RDF and RDFS, including SPARQL RDFS summary