RDF Semantics A graph-based approach

Similar documents
Seman&cs)of)RDF) )S) RDF)seman&cs)1)Goals)

RDF Semantics by Patrick Hayes W3C Recommendation

FOUNDATIONS OF SEMANTIC WEB TECHNOLOGIES

RDF AND SPARQL. Part III: Semantics of RDF(S) Dresden, August Sebastian Rudolph ICCL Summer School

FOUNDATIONS OF SEMANTIC WEB TECHNOLOGIES

Logic and Reasoning in the Semantic Web (part I RDF/RDFS)

CS Knowledge Representation and Reasoning (for the Semantic Web)

Web Science & Technologies University of Koblenz Landau, Germany. RDF Schema. Steffen Staab. Semantic Web

Semantic Web In Depth: Resource Description Framework. Dr Nicholas Gibbins 32/4037

Resource Description Framework (RDF)

Semantic Web Technologies: RDF + RDFS

Today: RDF syntax. + conjunctive queries for OWL. KR4SW Winter 2010 Pascal Hitzler 3

A Fuzzy Semantics for the Resource Description Framework

XML and Semantic Web Technologies. III. Semantic Web / 1. Ressource Description Framework (RDF)

The Resource Description Framework and its Schema

Knowledge Representation for the Semantic Web

RDF Schema Sebastian Rudolph

An RDF-based Distributed Expert System

RDF and RDF Schema. Resource Description Framework

RDF Schema Sebastian Rudolph

Semantic Web Services and OOP toward Unified Services

RDF Schema. Philippe Genoud, UFR IM2AG, UGA Manuel Atencia Arcas, UFR SHS, UGA

Outline RDF. RDF Schema (RDFS) RDF Storing. Semantic Web and Metadata What is RDF and what is not? Why use RDF? RDF Elements

RDF and RDF Schema. Raúl García Castro, Óscar Corcho. Boris

Open Geospatial Consortium Inc.

Chapter 3. RDF Schema

RDF Schema. Mario Arrigoni Neri

SEMANTIC WEB 05 RDF SCHEMA MODELLING SEMANTICS IMRAN IHSAN ASSISTANT PROFESSOR, AIR UNIVERSITY, ISLAMABAD

LECTURE 09 RDF: SCHEMA - AN INTRODUCTION

Web Science & Technologies University of Koblenz Landau, Germany RDF. Steffen Staab. Semantic Web

Applications and Technologies on top of XML. Semantic Web - RDF. Extensible Markup Language (XML) Revisited. Outline

Semantic Web Technologies

Semantic Web OWL. Dieter Fensel and Federico Facca

Unit 2 RDF Formal Semantics in Detail

Semantic Web Modeling Languages Part I: RDF

Semantic Web Engineering

11 The Semantic Web. Knowledge-Based Systems and Deductive Databases Knowledge Representation Knowledge Representation

Chapter 2 Technical Background. Materializing the Web of Linked Data

Web Ontology Language (OWL)

RDF(S) Resource Description Framework (Schema)

Introduction to the Semantic Web. Alberto Fernández University Rey Juan Carlos

Mustafa Jarrar: Lecture Notes on RDF Schema Birzeit University, Version 3. RDFS RDF Schema. Mustafa Jarrar. Birzeit University

Materializing the Web of Linked Data

FOUNDATIONS OF SEMANTIC WEB TECHNOLOGIES

XML-Based Syntax of RDF

INFO216: Advanced Modelling

RDF Quality Extension for OpenRefine

Semantic Web. RDF and RDF Schema. Morteza Amini. Sharif University of Technology Spring 90-91

Publishing Data Using Semantic Web Technologies

RDF. Mario Arrigoni Neri

RDFS. Suresh Manandhar* & Dimitar Kazakov

F. Farazi Department of Information Engineering and Computer Science, University of Trento, Trento, Italy

KNOWLEDGE GRAPHS. Lecture 3: Modelling in RDF/Introduction to SPARQL. TU Dresden, 30th Oct Markus Krötzsch Knowledge-Based Systems

RDF. Charlie Abela Department of Artificial Intelligence

Big Data 14. Graph Databases

A Technique for Automatic Construction of Ontology from Existing Database to Facilitate Semantic Web

FACHBEREICH MATHEMATIK UND INFORMATIK SERIE B INFORMATIK

ONTOLOGIES. Schema languages, metadata languages, modeling languages, ontologies...

Formalising the Semantic Web. (These slides have been written by Axel Polleres, WU Vienna)

Resource Description Framework (RDF) Nicholas Gibbins and Nigel Shadbolt

Contents. RDF Resource Description Framework. A Graph Model for KR

The Semantic Web RDF, RDF Schema, and OWL (Part 2)

OSM Lecture (14:45-16:15) Takahira Yamaguchi. OSM Exercise (16:30-18:00) Susumu Tamagawa

Building Blocks of Linked Data

<?xml version='1.0' encoding='iso '?> <!DOCTYPE rdf:rdf [ <!ENTITY rdf ' <!

The Resource Description Framework (RDF 1.1) M2 CPS²

INF3580/4580 Semantic Technologies Spring 2017

KDI RDF. Fausto Giunchiglia and Mattia Fumagallli. University of Trento

I N F S Y S Research R e p o r t. Efficiently querying RDF(S) ontologies with Answer Set Programming. Abteilung Wissensbasierte Systeme

Semantic Web Fundamentals

Integrating RDF into Hypergraph-Graph (HG(2)) Data Structure

Opus: University of Bath Online Publication Store

Semantic Web Technologies: Web Ontology Language

Part II. Representation of Meta-Information

The Semantic Web. INF5100 Autumn 2007 Norun C. Sanderson

SWAD-Europe Deliverable 8.1 Core RDF Vocabularies for Thesauri

Transforming Data from into DataPile RDF Structure into RDF

Introduction to Ontologies

Developing markup metaschemas to support interoperation among resources with different markup schemas

Toward Analytics for RDF Graphs

A Relaxed Approach to RDF Querying

ONTLOLOGY LANGUAGE :+RDFS+ SCHEMA

Web 2.0 Lecture 8: Resource Description Framework

Ontologies and Schema Languages on the Web. Kaveh Shahbaz

Today s Plan. INF3580 Semantic Technologies Spring Model-theoretic semantics, a quick recap. Outline

Efficient Management and Querying of RDF data in a P2P Framework

FIPA RDF Content Language Specification

NoSQL (Not only SQL)

RDF Data Management: Reasoning on Web Data

OWL 2 Profiles. An Introduction to Lightweight Ontology Languages. Markus Krötzsch University of Oxford. Reasoning Web 2012

Semistructured Data Management Part 3 (Towards the) Semantic Web

OWL 2 Profiles. An Introduction to Lightweight Ontology Languages. Маркус Крёч (Markus Krötzsch) University of Oxford. KESW Summer School 2012

Coherence and Binding for Workflows and Service Compositions

D32v0.1 RDF Representation of WSML

An Introduction to the Semantic Web. Jeff Heflin Lehigh University

Semantic Web. MPRI : Web Data Management. Antoine Amarilli Friday, January 11th 1/29

Metadata harmonization for fun and profit

OWL a glimpse. OWL a glimpse (2) requirements for ontology languages. requirements for ontology languages

The Logic of the Semantic Web. Enrico Franconi Free University of Bozen-Bolzano, Italy

Semantic Web Test

Transcription:

RDF Semantics A graph-based approach Jean-François Baget INRIA Rhône-Alpes Jean-Francois.Baget@inrialpes.fr Manchester Knowledge Web Meeting Sept. 27 29, 2004 RDF Syntax (1) Triples Subject Property Object ex:subject ex:property ex:object _:xxx _:yyy «plain litteral» «lexical»^^datatype

RDF Syntax (2) Graphs «Jean-François» «Knowledge Web» ex:name ex:name _:xxx ex:member-of _:yyy ex:person ex:organization RDF/S Interpretations (1) Mapping Uriefs & Litterals to Resources ex:explosion ex:5pointstar ex:burst «true»^^xsd:boolean VAL(«true»^^xsd:boolean) =

RDF/S Interpretations (2) The IEXT Relation: Encoding Properties IEXT( ) = {(, ), (, )} RDF/S Interpretations (3) Encoding Interpretations with Labelled Graphs 1 2 2 ex:5pointstar 1 3 3

RDF/S Interpretations (4) Fine Tuning: The Interpretation Graph ex:5pointstar Simple RDF Models (1) The Interpretation Lemma ex:explosion _x ex:burst _y ex:5pointstar

Characterization of Entailment (1) Main Theorem Definition: An RDF graph G (simply) entails an RDF graph Q iff every (simple) interpretation that is a model of G is also a model of Q. Theorem: An RDF graph G simply entails an RDF graph Q iff there exists a projection from the normal form of Q into the normal form of G. Characterization of Entailment (2) Idea of Proof (") Q o _ G _ M G

Characterization of Entailment (2) Idea of Proof (#) Q _ o _ -1 _ G _ _ -1 M RDF Interpretations (1) Extract from the book RDF axiomatic triples. RDF semantic conditions. x is in IP if and only if <x, I(rdf:Property)> is in IEXT(I()) If "xxx"^^rdf:xmlliteral is in V and xxx is a well-typed XML literal string, then IL("xxx"^^rdf:XMLLiteral) is the XML value of xxx; IL("xxx"^^rdf:XMLLiteral) is in LV; IEXT(I()) contains <IL("xxx"^^rdf:XMLLiteral), I(rdf:XMLLiteral)> rdf:property. rdf:subject rdf:property. rdf:predicate rdf:property. rdf:object rdf:property. rdf:first rdf:property. rdf:rest rdf:property. rdf:value rdf:property. rdf:_1 rdf:property. rdf:_2 rdf:property.... rdf:nil rdf:list. If "xxx"^^rdf:xmlliteral is in V and xxx is an ill-typed XML literal string, then IL("xxx"^^rdf:XMLLiteral) is not in LV; IEXT(I()) does not contain <IL("xxx"^^rdf:XMLLiteral), I(rdf:XMLLiteral)>.

RDF Interpretations (2) A graphical Explanation... rdf:property ex:burst... rdf:_1... rdf:property rdf:property ex:5pointstar RDF Saturation of a graph The RDF Interpretation Lemma Lemma: An RDF interpretation is a model for an RDF graph G iff there is a projection from SAT RDF (G) into the interpretation graph. Id G S I S G _ I

RDF Entailment What s changing in the main theorem? Q Q o _ _ o _ -1 _ SAT(G) _ M G SAT(G) _ _ -1 M But SAT RDF (G) is an infinite graph! Do not create «useless» axiomatic triples Do not create «useless» XMLLitteral triples Saturation is then linear in the size of G PROBLEM: We may lose an infinite number of projections/proofs. Are they intersting anyway?

RDFS Interpretations (1) Axiomatic triples rdfs:domain rdfs:resource. rdfs:domain rdfs:domain rdf:property. rdfs:range rdfs:domain rdf:property. rdfs:subpropertyof rdfs:domain rdf:property. rdfs:subclassof rdfs:domain rdfs:class. rdf:subject rdfs:domain rdf:statement. rdf:predicate rdfs:domain rdf:statement. rdf:object rdfs:domain rdf:statement. rdfs:member rdfs:domain rdfs:resource. rdf:first rdfs:domain rdf:list. rdf:rest rdfs:domain rdf:list. rdfs:seealso rdfs:domain rdfs:resource. rdfs:isdefinedby rdfs:domain rdfs:resource. rdfs:comment rdfs:domain rdfs:resource. rdfs:label rdfs:domain rdfs:resource. rdf:value rdfs:domain rdfs:resource. rdfs:range rdfs:class. rdfs:domain rdfs:range rdfs:class. rdfs:range rdfs:range rdfs:class. rdfs:subpropertyof rdfs:range rdf:property. rdfs:subclassof rdfs:range rdfs:class. rdf:subject rdfs:range rdfs:resource. rdf:predicate rdfs:range rdfs:resource. rdf:object rdfs:range rdfs:resource. rdfs:member rdfs:range rdfs:resource. rdf:first rdfs:range rdfs:resource. rdf:rest rdfs:range rdf:list. rdfs:seealso rdfs:range rdfs:resource. rdfs:isdefinedby rdfs:range rdfs:resource. rdfs:comment rdfs:range rdfs:literal. rdfs:label rdfs:range rdfs:literal. rdf:value rdfs:range rdfs:resource. rdf:alt rdfs:subclassof rdfs:container. rdf:bag rdfs:subclassof rdfs:container. rdf:seq rdfs:subclassof rdfs:container. rdfs:containermembershipproperty rdfs:subclassof rdf:property. rdfs:isdefinedby rdfs:subpropertyof rdfs:seealso. rdf:xmlliteral rdfs:datatype. rdf:xmlliteral rdfs:subclassof rdfs:literal. rdfs:datatype rdfs:subclassof rdfs:class. rdf:_1 rdfs:containermembershipproperty. rdf:_1 rdfs:domain rdfs:resource. rdf:_1 rdfs:range rdfs:resource. rdf:_2 rdfs:containermembershipproperty. rdf:_2 rdfs:domain rdfs:resource. rdf:_2 rdfs:range rdfs:resource.... RDFS Interpretations (2) Semantic conditions x is in ICEXT(y) if and only if <x,y> is in IEXT(I()) IC = ICEXT(I(rdfs:Class)) IR = ICEXT(I(rdfs:Resource)) LV = ICEXT(I(rdfs:Literal)) If <x,y> is in IEXT(I(rdfs:domain)) and <u,v> is in IEXT(x) then u is in ICEXT(y) If <x,y> is in IEXT(I(rdfs:range)) and <u,v> is in IEXT(x) then v is in ICEXT(y) IEXT(I(rdfs:subPropertyOf)) is transitive and reflexive on IP If <x,y> is in IEXT(I(rdfs:subPropertyOf)) then x and y are in IP and IEXT(x) is a subset of IEXT(y) If x is in IC then <x, I(rdfs:Resource)> is in IEXT(I(rdfs:subClassOf)) If <x,y> is in IEXT(I(rdfs:subClassOf)) then x and y are in IC and ICEXT(x) is a subset of ICEXT(y) IEXT(I(rdfs:subClassOf)) is transitive and reflexive on IC If x is in ICEXT(I(rdfs:ContainerMembershipProperty)) then: < x, I(rdfs:member)> is in IEXT(I(rdfs:subPropertyOf)) If x is in ICEXT(I(rdfs:Datatype)) then <x, I(rdfs:Literal)> is in IEXT(I(rdfs:subClassOf))

Datatype interpretations (1) Semantic conditions if <aaa,x> is in D then I(aaa) = x if <aaa,x> is in D then ICEXT(x) is the value space of x and is a subset of LV if <aaa,x> is in D then for any typed literal "sss"^^ddd in V with I(ddd) = x, if sss is in the lexical space of x then IL("sss"^^ddd) = L2V(x)(sss), otherwise IL("sss"^^ddd) is not in LV if <aaa,x> is in D then I(aaa) is in ICEXT(I(rdfs:Datatype)) Datatype Interpretations (2) Normal Form & Typed Litterals (a) _x ex:explosion ex:burst «true»^^xsd:boolean «1»^^xsd:boolean _x ex:explosion ex:burst

Datatype Interpretations (2) Normal Form & Typed Litterals (b) ex:explosion ex:burst _y ex:5pointstar Datatype interpretations (3) Graph matching is irrelevant! «true»^^xsd:boolean ex:r xsd:boolean _:xxx «false»^^xsd:boolean ex:r _:yyy ex:r

Benefits from this reformulation Hopefully an easier presentation of RDF(S) semantics, and far shorter proofs! Reformulation as a graph homomorphism is a first step to develop efficient algorithms A good way to establish relationships with other KR formalisms (CG, CSP) Use for WP 2.5.3? Computational complexity NP complete Polynomial when the query is a tree (or can be decomposed into a tree Gottlob et al 99) Efficient algorithms for Simple Entailment BT optimizations coming from the CSP community Adaptation to CG done (Baget 02), the same for RDF Use RDF Rules for saturation Have to test efficiency of backward chaining algorithm for that Anyway, a nice graphical explanation of semantics