Semantics. KR4SW Winter 2011 Pascal Hitzler 1

Similar documents
Knowledge Representation for the Semantic Web

Knowledge Representation for the Semantic Web

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

Knowledge Representation for the Semantic Web

CS Knowledge Representation and Reasoning (for the Semantic Web)

jcel: A Modular Rule-based Reasoner

FOUNDATIONS OF SEMANTIC WEB TECHNOLOGIES

a paradigm for the Introduction to Semantic Web Semantic Web Angelica Lo Duca IIT-CNR Linked Open Data:

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

Logical reconstruction of RDF and ontology languages

FOUNDATIONS OF SEMANTIC WEB TECHNOLOGIES

FOUNDATIONS OF SEMANTIC WEB TECHNOLOGIES

SPARQL: An RDF Query Language

Semantic reasoning for dynamic knowledge bases. Lionel Médini M2IA Knowledge Dynamics 2018

Linking Data with RDF

SRM UNIVERSITY. : Batch1: TP1102 Batch2: TP406

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

Unit 2 RDF Formal Semantics in Detail

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

TrOWL: Tractable OWL 2 Reasoning Infrastructure

Evaluating Class Assignment Semantic Redundancy on Linked Datasets

H1 Spring B. Programmers need to learn the SOAP schema so as to offer and use Web services.

INF3580/4580 Semantic Technologies Spring 2017

Scale reasoning with fuzzy-el + ontologies based on MapReduce

Reasoning with Rules SWRL as Example. Jan Pettersen Nytun, UIA

RDF Data Management: Reasoning on Web Data

Understandability and Semantic Interoperability of Diverse Rules Systems. Adrian Walker, Reengineering [1]

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

Semantics via Syntax. f (4) = if define f (x) =2 x + 55.

Local Closed World Reasoning with OWL 2

The Not-So-Easy Task of Computing Class Subsumptions in OWL RL

KNOWLEDGE GRAPHS. Lecture 4: Introduction to SPARQL. TU Dresden, 6th Nov Markus Krötzsch Knowledge-Based Systems

Toward Analytics for RDF Graphs

FOUNDATIONS OF SEMANTIC WEB TECHNOLOGIES

Semantic Web Test

Stream Reasoning For Linked Data

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

Semantic Web Modeling Languages Part I: RDF

Contents. G52IWS: The Semantic Web. The Semantic Web. Semantic web elements. Semantic Web technologies. Semantic Web Services

Representing Product Designs Using a Description Graph Extension to OWL 2

Schema-Agnostic Query Rewriting in SPARQL 1.1

RDF AND SPARQL. Part IV: Syntax of SPARQL. Dresden, August Sebastian Rudolph ICCL Summer School

Chapter 2 & 3: Representations & Reasoning Systems (2.2)

Scaling Parallel Rule-based Reasoning

Semantic Web Technologies

Com S 541. Programming Languages I

RDF Next Version. Ivan Herman and Sandro Hawke W3C

SURVEY BASED ON AN APPROACH TO RETRIEVE LOGICAL SCHEMA FROM SHOPPING CART DATABASE

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

Presented By Aditya R Joshi Neha Purohit

Ontological Modeling: Part 2

A General Approach to Query the Web of Data

The semantics of a programming language is concerned with the meaning of programs, that is, how programs behave when executed on computers.

Lecture 5 - Axiomatic semantics

Propositional Logic. Part I

Ivan Herman. F2F Meeting of the W3C Business Group on Oil, Gas, and Chemicals Houston, February 13, 2012

Orchestrating Music Queries via the Semantic Web

Consequence based Procedure for Description Logics with Self Restriction

(Refer Slide Time: 4:00)

3.4 Deduction and Evaluation: Tools Conditional-Equational Logic

XML technology is very powerful, but also very limited. The more you are aware of the power, the keener your interest in reducing the limitations.

Multi-agent and Semantic Web Systems: RDF Data Structures

Semantic Web Systems Web Services Part 2 Jacques Fleuriot School of Informatics

Parallel Materialization of the Finite RDFS Closure for Hundreds of Millions of Triples

Welcome to INFO216: Advanced Modelling

Hoare Logic. COMP2600 Formal Methods for Software Engineering. Rajeev Goré

CS Knowledge Representation and Reasoning (for the Semantic Web)

6.001 Notes: Section 6.1

Introduction to the Semantic Web

Labeled graph homomorphism and first order logic inference

JENA: A Java API for Ontology Management

CSE P 501 Compilers. Parsing & Context-Free Grammars Hal Perkins Winter /15/ Hal Perkins & UW CSE C-1

Category Theory in Ontology Research: Concrete Gain from an Abstract Approach

Graph Representation of Declarative Languages as a Variant of Future Formal Specification Language

An Annotated Language

Operational Semantics

X-KIF New Knowledge Modeling Language

BUILDING THE SEMANTIC WEB

Welcome to INFO216: Advanced Modelling

Weaving the Pedantic Web - Information Quality on the Web of Data

FOUNDATIONS OF DATABASES AND QUERY LANGUAGES

DATABASE THEORY. Lecture 11: Introduction to Datalog. TU Dresden, 12th June Markus Krötzsch Knowledge-Based Systems

Type Checking. Outline. General properties of type systems. Types in programming languages. Notation for type rules.

Using ontologies function management

Lesson 5 Web Service Interface Definition (Part II)

Introduction to Axiomatic Semantics

Outline. General properties of type systems. Types in programming languages. Notation for type rules. Common type rules. Logical rules of inference

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

Reducing Consumer Uncertainty

Warm-Up Problem. 1. What is the definition of a Hoare triple satisfying partial correctness? 2. Recall the rule for assignment: x (assignment)

KNOWLEDGE GRAPHS. Lecture 2: Encoding Graphs with RDF. TU Dresden, 23th Oct Markus Krötzsch Knowledge-Based Systems

Operational Semantics. One-Slide Summary. Lecture Outline

LOGIC AND DISCRETE MATHEMATICS

Knowledge Representations. How else can we represent knowledge in addition to formal logic?

Knowledge Sharing Among Heterogeneous Agents

Linked Open Data: a short introduction

Ontology Based Data Access: Where do the Ontologies and Mappings come from?

CHAPTER 1 INTRODUCTION

Towards Efficient Semantically Enriched Complex Event Processing and Pattern Matching

Knowledge Engineering with Semantic Web Technologies

Transcription:

Semantics KR4SW Winter 2011 Pascal Hitzler 1

Knowledge Representation for the Semantic Web Winter Quarter 2011 Pascal Hitzler Slides 5 01/20+25/2010 Kno.e.sis Center Wright State University, Dayton, OH http://www.knoesis.org/pascal/ KR4SW Winter 2011 Pascal Hitzler

Textbook (required) Pascal Hitzler, Markus Krötzsch, Sebastian Rudolph Foundations of Semantic Web Technologies Chapman & Hall/CRC, 2010 Choice Magazine Outstanding Academic Title 2010 (one out of seven in Information & Computer Science) http://www.semantic-web-book.org KR4SW Winter 2011 Pascal Hitzler 3

Today: RDF(S) semantics KR4SW Winter 2011 Pascal Hitzler 4

Today s Session: RDF(S) semantics 1. What is Semantics? 2. What is Model-theoretic Semantics? 3. Model-theoretic Semantics for RDF(S) 4. What is Proof-theoretic Semantics? 5. Proof-theoretic Semantics for RDF(S) 6. Class Project 7. Class Presentations KR4SW Winter 2011 Pascal Hitzler 5

Syntax and Semantics Syntax: character strings without meaning Semantics: meaning of the character strings IF cond(a,b) THEN display(_354) Show pixel set _354 on screen if A is of type B. Syntax assignment of meaning meaning, e.g., in the world KR4SW Winter 2011 Pascal Hitzler 6

Semantics of Programming Languages Syntax FUNCTION f(n:natural):natural; BEGIN IF n=0 THEN f:=1 ELSE f:=n*f(n-1); END; computing factorial Intended Semantics What happens at program execution Formal Semantics Procedural Semantics KR4SW Winter 2011 Pascal Hitzler 7

Semantics of Logic Semantik von Logik/Wissensrepräsentationssprachen Syntax 8 X (p(x)! q(x)) All humans are mortal Intended Semantics ² logical consequence provability in a calculus ` Proof-theoretic semantics Model-theoretic semantics KR4SW Winter 2011 Pascal Hitzler

Recall: Implicit knowledge if an RDFS document contains and then is implicitly also the case: it s a logical consequence. (We can also say it is deduced (deduction) or inferred (inference). We do not have to state this explicitly. Which statements are logical consequences is governed by the formal semantics (covered in the next session). KR4SW Winter 2011 Pascal Hitzler 9

Recall: Implicit knowledge From the following is a logical consequence: I.e. rdfs:subclassof is transitive. KR4SW Winter 2011 Pascal Hitzler 10

What Semantics Is Good For Opinions Differ. Here s my take. Semantic Web requires a shareable, declarative and computable semantics. I.e., the semantics must be a formal entity which is clearly defined and automatically computable. Ontology languages provide this by means of their formal semantics. Semantic Web Semantics is given by a relation the logical consequence relation. KR4SW Winter 2011 Pascal Hitzler 11

In other words We capture the meaning of information not by specifying its meaning (which is impossible) but by specifying how information interacts with other information. We describe the meaning indirectly through its effects. KR4SW Winter 2011 Pascal Hitzler 12

Today s Session: RDF(S) semantics 1. What is Semantics? 2. What is Model-theoretic Semantics? 3. Model-theoretic Semantics for RDF(S) 4. What is Proof-theoretic Semantics? 5. Proof-theoretic Semantics for RDF(S) 6. Class Project 7. Class Presentations KR4SW Winter 2011 Pascal Hitzler 13

Model-theoretic Semantics You need: a language/syntax a notion of model for sentences in the language Models are made such that each sentence is either true or false in each model If a sentence is true in a model M, then we write M² Logical consequence: is a logical consequence of (written ² ), if for all M with M², we also have M² If K is a set of sentences, we write K² if M² for each M²K If J is another set of sentences, we write K²J if K² for each 2 J (note that the notation ² is overloaded) KR4SW Winter 2011 Pascal Hitzler 14

Logical Consequence KR4SW Winter 2011 Pascal Hitzler 15

Model theory (contrived) example Language: variables...,w,x,y,z,... symbol allowed sentences: a b (for a, b any variables) We want to know: What are the logical consequences of the set {x y, y z} To answer this, we must say what the models in our semantics are. KR4SW Winter 2011 Pascal Hitzler 16

Model theory (contrived) example Say, a model I of a set K of sentences consists of a set C of cars and a function I( ) which maps each variable to a car in C such that, for each sentence a b in K we have that I(a) has more horsepower than I(b). We now claim that {x y, y z} ² x z. Proof: Consider any model M of {x y, y z}. Since M² {x y, y z}, we know that M(x) has more horsepower than M(y) and M(y) has more horsepower than M(z). Hence, M(x) has more horsepower than M(z), i.e. M² x z. This argument holds for all models of {x y, y z}, therefore {x y, y z} ² x z. KR4SW Winter 2011 Pascal Hitzler 17

Model theory (contrived) example Say, a model I of a set K of sentences consists of a set C of cars and a function I( ) which maps each variable to a car in C such that, for each sentence a b in K we have that I(a) has more horsepower than I(b). An interpretation I for a our language consists of a set C of cars and a function I( ) which maps each variable to a car in C. (and that s it, i.e. no information whether a sentence is true or false with respect to I). KR4SW Winter 2011 Pascal Hitzler 18

Today s Session: RDF(S) semantics 1. What is Semantics? 2. What is Model-theoretic Semantics? 3. Model-theoretic Semantics for RDF(S) 4. What is Proof-theoretic Semantics? 5. Proof-theoretic Semantics for RDF(S) 6. Class Project 7. Class Presentations KR4SW Winter 2011 Pascal Hitzler 19

Now let s do this for RDF(S) Language: Whatever is valid RDF(S). Sentences are triples. (Graphs are sets of triples.) Interpretations are given via sets and functions from language vocabularies to these sets. Models are defined such that they capture the intended meaning of the RDF(S) vocabulary. And there are three different notions: KR4SW Winter 2011 Pascal Hitzler 20

Simple Interpretations KR4SW Winter 2011 Pascal Hitzler 21

Simple Interpretations Now define an interpretation function (written as exponent). KR4SW Winter 2011 Pascal Hitzler 22

Simple Interpretations KR4SW Winter 2011 Pascal Hitzler 23

Simple models The truth value of a (grounded*) triple is true exactly if ( ( are contained in V) and. * A grounded triple does not contain a blank node. KR4SW Winter 2011 Pascal Hitzler 24

Simple models The truth value of a (grounded*) triple is true exactly if ( ( are contained in V) and. * A grounded triple does not contain a blank node. KR4SW Winter 2011 Pascal Hitzler 25

What about blank nodes? Say, A is a function from blank nodes to URIs. [these URIs need not be contained in the graph we re looking at] If, in a graph G, we replace each blank node x by A(x), then we obtain a graph G which we call a grounding of G. We know how to do the semantics for the grounded graphs. So define: I ² G if and only if I ² G for at least one grounding G of G. KR4SW Winter 2011 Pascal Hitzler 26

Simple entailment A graph G simply entails a graph G if every simple interpretation that is a model of G is also a model of G. (Recall that a simple interpretation is a model of a graph G if it is a model of each triple in G.) KR4SW Winter 2011 Pascal Hitzler 27

It s really simple Basically, G ² G if and only if G can be obtained from G by replacing some nodes in G by blank nodes. It s really simple entailment. KR4SW Winter 2011 Pascal Hitzler 28

RDF-Interpretations Part 1 KR4SW Winter 2011 Pascal Hitzler 29

RDF-Interpretations Part 2 In addition, each RDF-interpretation has to evaluate all the following triples to true: KR4SW Winter 2011 Pascal Hitzler 30

RDFS-Interpretations Part 1 Define (for a given RDF-interpretation ): : KR4SW Winter 2011 Pascal Hitzler 31

RDFS-Interpretation Part 2 KR4SW Winter 2011 Pascal Hitzler 32

RDFS-Interpretations Part 3 Furthermore, all of the following must be satisfied. KR4SW Winter 2011 Pascal Hitzler 33

RDFS-Interpretations Part 4 Furthermore, all of the following must be satisfied. KR4SW Winter 2011 Pascal Hitzler 34

RDFS-Interpretations Part 5 Furthermore, all of the following must be satisfied. KR4SW Winter 2011 Pascal Hitzler 35

Today s Session: RDF(S) semantics 1. What is Semantics? 2. What is Model-theoretic Semantics? 3. Model-theoretic Semantics for RDF(S) 4. What is Proof-theoretic Semantics? 5. Proof-theoretic Semantics for RDF(S) 6. Class Project 7. Class Presentations KR4SW Winter 2011 Pascal Hitzler 36

Back to our contrived example Say, a model I of a set K of sentences consists of a set C of cars and a function I( ) which maps each variable to a car in C such that, for each sentence a b in K we have that I(a) has more horsepower than I(b). Can we find an algorithm to compute all logical consequences of a set of sentences? Algorithm Input: set K of sentences 1. The algorithm non-deterministically selects two sentences from K. If the first sentence is a b, and the second sentence is b c, then add a c to K. IF a b 2 K and b c 2 K THEN KÃ {a c} 2. Repeat step 1 until no selection results in a change of K. 3. Output: K KR4SW Winter 2011 Pascal Hitzler 37

Back to the example The algorithm produces only logical consequences: it is sound with respect to the model-theoretic semantics. The algorithm produces all logical consequences: it is complete with respect to the model-theoretic semantics. The algorithm always terminates. The algorithm is non-deterministic. What is the computational complexity of this algorithm? And actually, the algorithm just given is not sound and complete. Do you see, why? KR4SW Winter 2011 Pascal Hitzler 38

What do we gain? Recall: is a logical consequence of (written ² ), if for all M with M², we also have M² are Implementing model-theoretic semantics directly is not feasible: We would have to deal with all models of a knowledge base. Since there are a lot of cars in this world, we would have to check a lot of possibilities. Proof theory reduces model-theoretic semantics to symbol manipulation! It removes the models from the process. KR4SW Winter 2011 Pascal Hitzler 39

Deduction rules IF a b 2 K and b c 2 K THEN KÃ {a c} is a so-called deduction rule. Such rules are usually written schematically as a b a c b c KR4SW Winter 2011 Pascal Hitzler 40

Today s Session: RDF(S) semantics 1. What is Semantics? 2. What is Model-theoretic Semantics? 3. Model-theoretic Semantics for RDF(S) 4. What is Proof-theoretic Semantics? 5. Proof-theoretic Semantics for RDF(S) 6. Class Project 7. Class Presentations KR4SW Winter 2011 Pascal Hitzler 41

First, some notation KR4SW Winter 2011 Pascal Hitzler 42

Simple Entailment Rules _:n must not be contained in the graph the rule is applied to KR4SW Winter 2011 Pascal Hitzler 43

Additional RDF-entailment Rules for all RDF axiomatic triples where _:n does not yet occur in the graph where _:n does not yet occur in the graph, unless it has been introduced by a preceding application of the lg rule KR4SW Winter 2011 Pascal Hitzler 44

Additional RDFS-entailment Rules - I for all RDFS axiomatic triples with _:n as usual KR4SW Winter 2011 Pascal Hitzler 45

Additional RDFS-entailment Rules - II KR4SW Winter 2011 Pascal Hitzler 46

Additional RDFS-entailment Rules - III where _:n identifies a blank node introduced by an earlier weakening of the literal l via the rule lg KR4SW Winter 2011 Pascal Hitzler 47

Completeness? The deduction rules for simple and RDF entailment are sound and complete. The deduction rules for RDFS entailment are sound. The spec says, they are also complete, but they are not: has as logical consequence but this is not derivable using the deduction rules. KR4SW Winter 2011 Pascal Hitzler 48

Complexity Simple, RDF, and RDFS entailment are NP-complete problems. If we disallow blank nodes, all three entailment problems are polynomial. KR4SW Winter 2011 Pascal Hitzler 49

Does RDFS semantics do what it should? Does entail? KR4SW Winter 2011 Pascal Hitzler 50

RDF next version A new W3C working group has just been chartered and should continue work shortly: http://www.w3.org/2011/01/rdf-wg-charter KR4SW Winter 2011 Pascal Hitzler 51

Today s Session: RDF(S) semantics 1. What is Semantics? 2. What is Model-theoretic Semantics? 3. Model-theoretic Semantics for RDF(S) 4. What is Proof-theoretic Semantics? 5. Proof-theoretic Semantics for RDF(S) 6. Class Project 7. Class Presentations KR4SW Winter 2011 Pascal Hitzler 52

Class project: next step keep bugfixing find, for your RDF Schema ontology, each of the following: a triple which is RDFS-entailed, but not RDF-entailed a triple which is RDF-entailed, but not simply entailed a triple which is simply entailed For each of them, write down a justification why it is entailed. send to me by Sunday 30 th of January the current version of your Turtle RDF Schema document the three entailed triples with explanations. KR4SW Winter 2011 Pascal Hitzler 53

Today s Session: RDF(S) semantics 1. What is Semantics? 2. What is Model-theoretic Semantics? 3. Model-theoretic Semantics for RDF(S) 4. What is Proof-theoretic Semantics? 5. Proof-theoretic Semantics for RDF(S) 6. Class Project 7. Class Presentations KR4SW Winter 2011 Pascal Hitzler 54

Class presentations first topics SPARQL 1.1 entailment regimes: http://www.w3.org/tr/2010/wd-sparql11-entailment-20100126/ http://www.w3.org/2009/sparql/docs/entailment/xmlspec.xml Aidan Hogan, Andreas Harth, Axel Polleres: SAOR: Authoritative Reasoning for the Web. ASWC 2008: 76-90 Jacopo Urbani, Spyros Kotoulas, Jason Maassen, Frank van Harmelen, Henri E. Bal: OWL Reasoning with WebPIE: Calculating the Closure of 100 Billion Triples. ESWC (1) 2010: 213-227 Yuan Ren, Jeff Z. Pan, Yuting Zhao: Soundness Preserving Approximation for TBox Reasoning. AAAI 2010 Franz Baader, Sebastian Brandt, Carsten Lutz: Pushing the EL Envelope. IJCAI 2005: 364-369 KR4SW Winter 2011 Pascal Hitzler 55

Class Planning Thursday 13 th of January: RDFS Part I Tuesday 18 th of January: Exercise Session Thursday 20 th of January: RDF and RDFS Semantics Tuesday 25 th of January: RDF and RDFS Semantics Thursday 27 th of January: Description Logics Tuesday 1 st of March: Description Logic Semantics Estimated breakdown of sessions: Intro + XML: 2 RDF: 4 OWL and Logic: 6 SPARQL and Querying: 2 Class Presentations: 3 Exercise sessions: 3 KR4SW Winter 2011 Pascal Hitzler 56