inf3580/4580–semantictechnologies–spring2015 ·...

206
INF3580/4580 – Semantic Technologies – Spring 2015 Lecture 8: RDF and RDFS semantics Martin Giese 9th March 2015 Department of Informatics University of Oslo

Upload: others

Post on 24-Jun-2020

3 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

INF3580/4580 – Semantic Technologies – Spring 2015Lecture 8: RDF and RDFS semantics

Martin Giese

9th March 2015

Department ofInformatics

University ofOslo

Page 2: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Oblig 5

Published todayFirst delivery due 24. MarchFinal delivery due 14. AprilExtra question for INF4580 students“Real” semantics of RDF and RDFSFoundations book: Section 3.2Still OK to ignore some complications, see oblig textWe provide an excerpt of Sect. 3.2 with unimportant parts removed.Go to group sessions!

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 2 / 42

Page 3: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Today’s Plan

1 Why we need semantics

2 Model-theoretic semantics from a birds-eye perspective

3 Repetition: Propositional Logic

4 Simplified RDF semantics

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 3 / 42

Page 4: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Why we need semantics

Outline

1 Why we need semantics

2 Model-theoretic semantics from a birds-eye perspective

3 Repetition: Propositional Logic

4 Simplified RDF semantics

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 4 / 42

Page 5: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Why we need semantics

Semantics—why do we need it?

A formal semantics for RDFS became necessary because

1 the previous informal specification2 left plenty of room for interpretation of conclusions, whence3 triple stores sometimes answered queries differently, thereby4 obstructing interoperability and interchangeability.5 The information content of data once more came to depend on applications

But RDF was supposed to be the data Liberation movement

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 5 / 42

Page 6: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Why we need semantics

Semantics—why do we need it?

A formal semantics for RDFS became necessary because1 the previous informal specification

2 left plenty of room for interpretation of conclusions, whence3 triple stores sometimes answered queries differently, thereby4 obstructing interoperability and interchangeability.5 The information content of data once more came to depend on applications

But RDF was supposed to be the data Liberation movement

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 5 / 42

Page 7: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Why we need semantics

Semantics—why do we need it?

A formal semantics for RDFS became necessary because1 the previous informal specification2 left plenty of room for interpretation of conclusions, whence

3 triple stores sometimes answered queries differently, thereby4 obstructing interoperability and interchangeability.5 The information content of data once more came to depend on applications

But RDF was supposed to be the data Liberation movement

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 5 / 42

Page 8: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Why we need semantics

Semantics—why do we need it?

A formal semantics for RDFS became necessary because1 the previous informal specification2 left plenty of room for interpretation of conclusions, whence3 triple stores sometimes answered queries differently, thereby

4 obstructing interoperability and interchangeability.5 The information content of data once more came to depend on applications

But RDF was supposed to be the data Liberation movement

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 5 / 42

Page 9: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Why we need semantics

Semantics—why do we need it?

A formal semantics for RDFS became necessary because1 the previous informal specification2 left plenty of room for interpretation of conclusions, whence3 triple stores sometimes answered queries differently, thereby4 obstructing interoperability and interchangeability.

5 The information content of data once more came to depend on applicationsBut RDF was supposed to be the data Liberation movement

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 5 / 42

Page 10: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Why we need semantics

Semantics—why do we need it?

A formal semantics for RDFS became necessary because1 the previous informal specification2 left plenty of room for interpretation of conclusions, whence3 triple stores sometimes answered queries differently, thereby4 obstructing interoperability and interchangeability.5 The information content of data once more came to depend on applications

But RDF was supposed to be the data Liberation movement

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 5 / 42

Page 11: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Why we need semantics

Semantics—why do we need it?

A formal semantics for RDFS became necessary because1 the previous informal specification2 left plenty of room for interpretation of conclusions, whence3 triple stores sometimes answered queries differently, thereby4 obstructing interoperability and interchangeability.5 The information content of data once more came to depend on applications

But RDF was supposed to be the data Liberation movement

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 5 / 42

Page 12: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Why we need semantics

Another look at the Semantic Web cake

Identifiers: URI Chr. set: UNICODE

Syntax: XML

Data interchange: RDF

Querying:

SPARQL Taxonomies: RDFS

Ontologies: OWL Rules: SWRL

Unifying logic

Proof

Trust

User interface and applications

Cryptog

raph

y

Figure: Semantic Web Stack

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 6 / 42

Page 13: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Why we need semantics

Absolute precisision required

RDF is to serve as the foundation of the entire Semantic Web tower.

It must therefore be sufficiently clear to sustain advanced reasoning, e.g.:type propagation/inheritance,

“Tweety is a penguin and a penguin is a bird, so. . . ”domain and range restrictions,

“Martin has a birthdate, and only people have birthdates, so. . . ”existential restrictions.

“all persons have parents, and Martin is a person, so. . . ”

. . . to which we shall return in later lecturesTo ensure that infinitely many conclusions will be agreed upon,

RDF must be furnished with a model-theorythat specifies how the different node types should be interpretedand in particular what entailment should be taken to mean.

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 7 / 42

Page 14: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Why we need semantics

Absolute precisision required

RDF is to serve as the foundation of the entire Semantic Web tower.It must therefore be sufficiently clear to sustain advanced reasoning, e.g.:

type propagation/inheritance,“Tweety is a penguin and a penguin is a bird, so. . . ”

domain and range restrictions,“Martin has a birthdate, and only people have birthdates, so. . . ”

existential restrictions.“all persons have parents, and Martin is a person, so. . . ”

. . . to which we shall return in later lecturesTo ensure that infinitely many conclusions will be agreed upon,

RDF must be furnished with a model-theorythat specifies how the different node types should be interpretedand in particular what entailment should be taken to mean.

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 7 / 42

Page 15: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Why we need semantics

Absolute precisision required

RDF is to serve as the foundation of the entire Semantic Web tower.It must therefore be sufficiently clear to sustain advanced reasoning, e.g.:

type propagation/inheritance,

“Tweety is a penguin and a penguin is a bird, so. . . ”domain and range restrictions,

“Martin has a birthdate, and only people have birthdates, so. . . ”existential restrictions.

“all persons have parents, and Martin is a person, so. . . ”

. . . to which we shall return in later lecturesTo ensure that infinitely many conclusions will be agreed upon,

RDF must be furnished with a model-theorythat specifies how the different node types should be interpretedand in particular what entailment should be taken to mean.

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 7 / 42

Page 16: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Why we need semantics

Absolute precisision required

RDF is to serve as the foundation of the entire Semantic Web tower.It must therefore be sufficiently clear to sustain advanced reasoning, e.g.:

type propagation/inheritance,“Tweety is a penguin and a penguin is a bird, so. . . ”

domain and range restrictions,“Martin has a birthdate, and only people have birthdates, so. . . ”

existential restrictions.“all persons have parents, and Martin is a person, so. . . ”

. . . to which we shall return in later lecturesTo ensure that infinitely many conclusions will be agreed upon,

RDF must be furnished with a model-theorythat specifies how the different node types should be interpretedand in particular what entailment should be taken to mean.

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 7 / 42

Page 17: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Why we need semantics

Absolute precisision required

RDF is to serve as the foundation of the entire Semantic Web tower.It must therefore be sufficiently clear to sustain advanced reasoning, e.g.:

type propagation/inheritance,“Tweety is a penguin and a penguin is a bird, so. . . ”

domain and range restrictions,

“Martin has a birthdate, and only people have birthdates, so. . . ”existential restrictions.

“all persons have parents, and Martin is a person, so. . . ”

. . . to which we shall return in later lecturesTo ensure that infinitely many conclusions will be agreed upon,

RDF must be furnished with a model-theorythat specifies how the different node types should be interpretedand in particular what entailment should be taken to mean.

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 7 / 42

Page 18: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Why we need semantics

Absolute precisision required

RDF is to serve as the foundation of the entire Semantic Web tower.It must therefore be sufficiently clear to sustain advanced reasoning, e.g.:

type propagation/inheritance,“Tweety is a penguin and a penguin is a bird, so. . . ”

domain and range restrictions,“Martin has a birthdate, and only people have birthdates, so. . . ”

existential restrictions.“all persons have parents, and Martin is a person, so. . . ”

. . . to which we shall return in later lecturesTo ensure that infinitely many conclusions will be agreed upon,

RDF must be furnished with a model-theorythat specifies how the different node types should be interpretedand in particular what entailment should be taken to mean.

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 7 / 42

Page 19: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Why we need semantics

Absolute precisision required

RDF is to serve as the foundation of the entire Semantic Web tower.It must therefore be sufficiently clear to sustain advanced reasoning, e.g.:

type propagation/inheritance,“Tweety is a penguin and a penguin is a bird, so. . . ”

domain and range restrictions,“Martin has a birthdate, and only people have birthdates, so. . . ”

existential restrictions.

“all persons have parents, and Martin is a person, so. . . ”

. . . to which we shall return in later lecturesTo ensure that infinitely many conclusions will be agreed upon,

RDF must be furnished with a model-theorythat specifies how the different node types should be interpretedand in particular what entailment should be taken to mean.

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 7 / 42

Page 20: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Why we need semantics

Absolute precisision required

RDF is to serve as the foundation of the entire Semantic Web tower.It must therefore be sufficiently clear to sustain advanced reasoning, e.g.:

type propagation/inheritance,“Tweety is a penguin and a penguin is a bird, so. . . ”

domain and range restrictions,“Martin has a birthdate, and only people have birthdates, so. . . ”

existential restrictions.“all persons have parents, and Martin is a person, so. . . ”

. . . to which we shall return in later lecturesTo ensure that infinitely many conclusions will be agreed upon,

RDF must be furnished with a model-theorythat specifies how the different node types should be interpretedand in particular what entailment should be taken to mean.

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 7 / 42

Page 21: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Why we need semantics

Absolute precisision required

RDF is to serve as the foundation of the entire Semantic Web tower.It must therefore be sufficiently clear to sustain advanced reasoning, e.g.:

type propagation/inheritance,“Tweety is a penguin and a penguin is a bird, so. . . ”

domain and range restrictions,“Martin has a birthdate, and only people have birthdates, so. . . ”

existential restrictions.“all persons have parents, and Martin is a person, so. . . ”

. . . to which we shall return in later lectures

To ensure that infinitely many conclusions will be agreed upon,

RDF must be furnished with a model-theorythat specifies how the different node types should be interpretedand in particular what entailment should be taken to mean.

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 7 / 42

Page 22: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Why we need semantics

Absolute precisision required

RDF is to serve as the foundation of the entire Semantic Web tower.It must therefore be sufficiently clear to sustain advanced reasoning, e.g.:

type propagation/inheritance,“Tweety is a penguin and a penguin is a bird, so. . . ”

domain and range restrictions,“Martin has a birthdate, and only people have birthdates, so. . . ”

existential restrictions.“all persons have parents, and Martin is a person, so. . . ”

. . . to which we shall return in later lecturesTo ensure that infinitely many conclusions will be agreed upon,

RDF must be furnished with a model-theorythat specifies how the different node types should be interpretedand in particular what entailment should be taken to mean.

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 7 / 42

Page 23: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Why we need semantics

Absolute precisision required

RDF is to serve as the foundation of the entire Semantic Web tower.It must therefore be sufficiently clear to sustain advanced reasoning, e.g.:

type propagation/inheritance,“Tweety is a penguin and a penguin is a bird, so. . . ”

domain and range restrictions,“Martin has a birthdate, and only people have birthdates, so. . . ”

existential restrictions.“all persons have parents, and Martin is a person, so. . . ”

. . . to which we shall return in later lecturesTo ensure that infinitely many conclusions will be agreed upon,

RDF must be furnished with a model-theory

that specifies how the different node types should be interpretedand in particular what entailment should be taken to mean.

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 7 / 42

Page 24: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Why we need semantics

Absolute precisision required

RDF is to serve as the foundation of the entire Semantic Web tower.It must therefore be sufficiently clear to sustain advanced reasoning, e.g.:

type propagation/inheritance,“Tweety is a penguin and a penguin is a bird, so. . . ”

domain and range restrictions,“Martin has a birthdate, and only people have birthdates, so. . . ”

existential restrictions.“all persons have parents, and Martin is a person, so. . . ”

. . . to which we shall return in later lecturesTo ensure that infinitely many conclusions will be agreed upon,

RDF must be furnished with a model-theorythat specifies how the different node types should be interpreted

and in particular what entailment should be taken to mean.

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 7 / 42

Page 25: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Why we need semantics

Absolute precisision required

RDF is to serve as the foundation of the entire Semantic Web tower.It must therefore be sufficiently clear to sustain advanced reasoning, e.g.:

type propagation/inheritance,“Tweety is a penguin and a penguin is a bird, so. . . ”

domain and range restrictions,“Martin has a birthdate, and only people have birthdates, so. . . ”

existential restrictions.“all persons have parents, and Martin is a person, so. . . ”

. . . to which we shall return in later lecturesTo ensure that infinitely many conclusions will be agreed upon,

RDF must be furnished with a model-theorythat specifies how the different node types should be interpretedand in particular what entailment should be taken to mean.

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 7 / 42

Page 26: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Why we need semantics

Example: What is the meaning of blank nodes?

Co-authors of Paul Erdős:SELECT DISTINCT ?name WHERE {

_:pub dc:creator [foaf:name "Paul Erdős"] , [foaf:name ?name] .}

SPARQL mustmatch the query to graph patternswhich involves assigning values to variables and blank nodes

But,

which values are to count?the problem becomes more acute under reasoning.Should a value for foaf:familyname match a query for foaf:name?Are blanks in SPARQL the same as blanks in RDF?

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 8 / 42

Page 27: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Why we need semantics

Example: What is the meaning of blank nodes?

Co-authors of Paul Erdős:SELECT DISTINCT ?name WHERE {

_:pub dc:creator [foaf:name "Paul Erdős"] , [foaf:name ?name] .}

SPARQL mustmatch the query to graph patternswhich involves assigning values to variables and blank nodes

But,

which values are to count?the problem becomes more acute under reasoning.Should a value for foaf:familyname match a query for foaf:name?Are blanks in SPARQL the same as blanks in RDF?

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 8 / 42

Page 28: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Why we need semantics

Example: What is the meaning of blank nodes?

Co-authors of Paul Erdős:SELECT DISTINCT ?name WHERE {

_:pub dc:creator [foaf:name "Paul Erdős"] , [foaf:name ?name] .}

SPARQL must

match the query to graph patternswhich involves assigning values to variables and blank nodes

But,

which values are to count?the problem becomes more acute under reasoning.Should a value for foaf:familyname match a query for foaf:name?Are blanks in SPARQL the same as blanks in RDF?

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 8 / 42

Page 29: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Why we need semantics

Example: What is the meaning of blank nodes?

Co-authors of Paul Erdős:SELECT DISTINCT ?name WHERE {

_:pub dc:creator [foaf:name "Paul Erdős"] , [foaf:name ?name] .}

SPARQL mustmatch the query to graph patterns

which involves assigning values to variables and blank nodesBut,

which values are to count?the problem becomes more acute under reasoning.Should a value for foaf:familyname match a query for foaf:name?Are blanks in SPARQL the same as blanks in RDF?

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 8 / 42

Page 30: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Why we need semantics

Example: What is the meaning of blank nodes?

Co-authors of Paul Erdős:SELECT DISTINCT ?name WHERE {

_:pub dc:creator [foaf:name "Paul Erdős"] , [foaf:name ?name] .}

SPARQL mustmatch the query to graph patternswhich involves assigning values to variables and blank nodes

But,

which values are to count?the problem becomes more acute under reasoning.Should a value for foaf:familyname match a query for foaf:name?Are blanks in SPARQL the same as blanks in RDF?

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 8 / 42

Page 31: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Why we need semantics

Example: What is the meaning of blank nodes?

Co-authors of Paul Erdős:SELECT DISTINCT ?name WHERE {

_:pub dc:creator [foaf:name "Paul Erdős"] , [foaf:name ?name] .}

SPARQL mustmatch the query to graph patternswhich involves assigning values to variables and blank nodes

But,

which values are to count?

the problem becomes more acute under reasoning.Should a value for foaf:familyname match a query for foaf:name?Are blanks in SPARQL the same as blanks in RDF?

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 8 / 42

Page 32: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Why we need semantics

Example: What is the meaning of blank nodes?

Co-authors of Paul Erdős:SELECT DISTINCT ?name WHERE {

_:pub dc:creator [foaf:name "Paul Erdős"] , [foaf:name ?name] .}

SPARQL mustmatch the query to graph patternswhich involves assigning values to variables and blank nodes

But,

which values are to count?the problem becomes more acute under reasoning.

Should a value for foaf:familyname match a query for foaf:name?Are blanks in SPARQL the same as blanks in RDF?

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 8 / 42

Page 33: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Why we need semantics

Example: What is the meaning of blank nodes?

Co-authors of Paul Erdős:SELECT DISTINCT ?name WHERE {

_:pub dc:creator [foaf:name "Paul Erdős"] , [foaf:name ?name] .}

SPARQL mustmatch the query to graph patternswhich involves assigning values to variables and blank nodes

But,

which values are to count?the problem becomes more acute under reasoning.Should a value for foaf:familyname match a query for foaf:name?

Are blanks in SPARQL the same as blanks in RDF?

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 8 / 42

Page 34: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Why we need semantics

Example: What is the meaning of blank nodes?

Co-authors of Paul Erdős:SELECT DISTINCT ?name WHERE {

_:pub dc:creator [foaf:name "Paul Erdős"] , [foaf:name ?name] .}

SPARQL mustmatch the query to graph patternswhich involves assigning values to variables and blank nodes

But,

which values are to count?the problem becomes more acute under reasoning.Should a value for foaf:familyname match a query for foaf:name?Are blanks in SPARQL the same as blanks in RDF?

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 8 / 42

Page 35: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Why we need semantics

Example: What is the meaning of blank nodes?

Co-authors of Paul Erdős:SELECT DISTINCT ?name WHERE {

_:pub dc:creator [foaf:name "Paul Erdős"] , [foaf:name ?name] .}

SPARQL mustmatch the query to graph patternswhich involves assigning values to variables and blank nodes

But,

which values are to count?the problem becomes more acute under reasoning.Should a value for foaf:familyname match a query for foaf:name?Are blanks in SPARQL the same as blanks in RDF?

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 8 / 42

Page 36: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Model-theoretic semantics from a birds-eye perspective

Outline

1 Why we need semantics

2 Model-theoretic semantics from a birds-eye perspective

3 Repetition: Propositional Logic

4 Simplified RDF semantics

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 9 / 42

Page 37: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Model-theoretic semantics from a birds-eye perspective

Formal semantics

The study of how to model the meaning of a logical calculus.

A logical calculus consists of:A finite set of symbols,a grammar, which specifies the formulae,a set of axioms and inference rules from which we construct proofs.

A logical calculus can be defined apart from any interpretation.A calculus that has not been furnished with a formal semantics,

is a ‘blind’ machine, a mere symbol manipulator,the only criterion of correctness is provability.

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 10 / 42

Page 38: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Model-theoretic semantics from a birds-eye perspective

Formal semantics

The study of how to model the meaning of a logical calculus.A logical calculus consists of:

A finite set of symbols,a grammar, which specifies the formulae,a set of axioms and inference rules from which we construct proofs.

A logical calculus can be defined apart from any interpretation.A calculus that has not been furnished with a formal semantics,

is a ‘blind’ machine, a mere symbol manipulator,the only criterion of correctness is provability.

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 10 / 42

Page 39: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Model-theoretic semantics from a birds-eye perspective

Formal semantics

The study of how to model the meaning of a logical calculus.A logical calculus consists of:

A finite set of symbols,

a grammar, which specifies the formulae,a set of axioms and inference rules from which we construct proofs.

A logical calculus can be defined apart from any interpretation.A calculus that has not been furnished with a formal semantics,

is a ‘blind’ machine, a mere symbol manipulator,the only criterion of correctness is provability.

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 10 / 42

Page 40: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Model-theoretic semantics from a birds-eye perspective

Formal semantics

The study of how to model the meaning of a logical calculus.A logical calculus consists of:

A finite set of symbols,a grammar, which specifies the formulae,

a set of axioms and inference rules from which we construct proofs.

A logical calculus can be defined apart from any interpretation.A calculus that has not been furnished with a formal semantics,

is a ‘blind’ machine, a mere symbol manipulator,the only criterion of correctness is provability.

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 10 / 42

Page 41: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Model-theoretic semantics from a birds-eye perspective

Formal semantics

The study of how to model the meaning of a logical calculus.A logical calculus consists of:

A finite set of symbols,a grammar, which specifies the formulae,a set of axioms and inference rules from which we construct proofs.

A logical calculus can be defined apart from any interpretation.A calculus that has not been furnished with a formal semantics,

is a ‘blind’ machine, a mere symbol manipulator,the only criterion of correctness is provability.

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 10 / 42

Page 42: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Model-theoretic semantics from a birds-eye perspective

Formal semantics

The study of how to model the meaning of a logical calculus.A logical calculus consists of:

A finite set of symbols,a grammar, which specifies the formulae,a set of axioms and inference rules from which we construct proofs.

A logical calculus can be defined apart from any interpretation.

A calculus that has not been furnished with a formal semantics,is a ‘blind’ machine, a mere symbol manipulator,the only criterion of correctness is provability.

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 10 / 42

Page 43: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Model-theoretic semantics from a birds-eye perspective

Formal semantics

The study of how to model the meaning of a logical calculus.A logical calculus consists of:

A finite set of symbols,a grammar, which specifies the formulae,a set of axioms and inference rules from which we construct proofs.

A logical calculus can be defined apart from any interpretation.A calculus that has not been furnished with a formal semantics,

is a ‘blind’ machine, a mere symbol manipulator,the only criterion of correctness is provability.

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 10 / 42

Page 44: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Model-theoretic semantics from a birds-eye perspective

Formal semantics

The study of how to model the meaning of a logical calculus.A logical calculus consists of:

A finite set of symbols,a grammar, which specifies the formulae,a set of axioms and inference rules from which we construct proofs.

A logical calculus can be defined apart from any interpretation.A calculus that has not been furnished with a formal semantics,

is a ‘blind’ machine, a mere symbol manipulator,

the only criterion of correctness is provability.

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 10 / 42

Page 45: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Model-theoretic semantics from a birds-eye perspective

Formal semantics

The study of how to model the meaning of a logical calculus.A logical calculus consists of:

A finite set of symbols,a grammar, which specifies the formulae,a set of axioms and inference rules from which we construct proofs.

A logical calculus can be defined apart from any interpretation.A calculus that has not been furnished with a formal semantics,

is a ‘blind’ machine, a mere symbol manipulator,the only criterion of correctness is provability.

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 10 / 42

Page 46: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Model-theoretic semantics from a birds-eye perspective

Derivations

A proof typically looks something like this:

P ` Q,P Q,P ` Q

P → Q,P ` Q

R ` Q,P Q,R ` Q

P → Q,R ` Q

P → Q,P ∨ R ` Q

P → Q ` (P ∨ R)→ Q

Where each line represents an application of an inference rule.How do we know that the inference rules are well-chosen?Which manipulations derive conclusions that hold in the real world?

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 11 / 42

Page 47: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Model-theoretic semantics from a birds-eye perspective

Derivations

A proof typically looks something like this:

P ` Q,P Q,P ` Q

P → Q,P ` Q

R ` Q,P Q,R ` Q

P → Q,R ` Q

P → Q,P ∨ R ` Q

P → Q ` (P ∨ R)→ Q

Where each line represents an application of an inference rule.How do we know that the inference rules are well-chosen?Which manipulations derive conclusions that hold in the real world?

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 11 / 42

Page 48: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Model-theoretic semantics from a birds-eye perspective

Derivations

A proof typically looks something like this:

P ` Q,P Q,P ` Q

P → Q,P ` Q

R ` Q,P Q,R ` Q

P → Q,R ` Q

P → Q,P ∨ R ` Q

P → Q ` (P ∨ R)→ Q

Where each line represents an application of an inference rule.

How do we know that the inference rules are well-chosen?Which manipulations derive conclusions that hold in the real world?

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 11 / 42

Page 49: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Model-theoretic semantics from a birds-eye perspective

Derivations

A proof typically looks something like this:

P ` Q,P Q,P ` Q

P → Q,P ` Q

R ` Q,P Q,R ` Q

P → Q,R ` Q

P → Q,P ∨ R ` Q

P → Q ` (P ∨ R)→ Q

Where each line represents an application of an inference rule.How do we know that the inference rules are well-chosen?

Which manipulations derive conclusions that hold in the real world?

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 11 / 42

Page 50: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Model-theoretic semantics from a birds-eye perspective

Derivations

A proof typically looks something like this:

P ` Q,P Q,P ` Q

P → Q,P ` Q

R ` Q,P Q,R ` Q

P → Q,R ` Q

P → Q,P ∨ R ` Q

P → Q ` (P ∨ R)→ Q

Where each line represents an application of an inference rule.How do we know that the inference rules are well-chosen?Which manipulations derive conclusions that hold in the real world?

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 11 / 42

Page 51: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Model-theoretic semantics from a birds-eye perspective

Finding out stuff about the World

The “Real World”

GH

M

G : Aristotle was GreekH: Aristotle was humanM: Aristotle was mortal

A: intended modelB . . .: unintended models

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 12 / 42

Page 52: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Model-theoretic semantics from a birds-eye perspective

Finding out stuff about the World

The “Real World”

GH

M

Statements

G → H

H → M

G : Aristotle was GreekH: Aristotle was humanM: Aristotle was mortal

A: intended modelB . . .: unintended models

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 12 / 42

Page 53: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Model-theoretic semantics from a birds-eye perspective

Finding out stuff about the World

The “Real World”

GH

M

Statements

G → H

H → M

G : Aristotle was GreekH: Aristotle was humanM: Aristotle was mortal

A: intended modelB . . .: unintended models

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 12 / 42

Page 54: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Model-theoretic semantics from a birds-eye perspective

Finding out stuff about the World

The “Real World”

GH

M

Abstract to G ,H,M

AG H M

Statements

G → H

H → M

G : Aristotle was GreekH: Aristotle was humanM: Aristotle was mortal

A: intended modelB . . .: unintended models

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 12 / 42

Page 55: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Model-theoretic semantics from a birds-eye perspective

Finding out stuff about the World

The “Real World”

GH

M

Abstract to G ,H,M

AG H M

Statements

G → H

H → M

G : Aristotle was GreekH: Aristotle was humanM: Aristotle was mortal

A: intended modelB . . .: unintended models

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 12 / 42

Page 56: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Model-theoretic semantics from a birds-eye perspective

Finding out stuff about the World

The “Real World”

GH

M

Abstract to G ,H,M

AG H M

B¬G ¬H ¬M

Statements

G → H

H → M

G : Aristotle was GreekH: Aristotle was humanM: Aristotle was mortal

A: intended modelB . . .: unintended models

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 12 / 42

Page 57: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Model-theoretic semantics from a birds-eye perspective

Finding out stuff about the World

The “Real World”

GH

M

Abstract to G ,H,M

AG H M

B¬G ¬H ¬M

Statements

G → H

H → M

G : Aristotle was GreekH: Aristotle was humanM: Aristotle was mortal

A: intended modelB . . .: unintended models

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 12 / 42

Page 58: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Model-theoretic semantics from a birds-eye perspective

Finding out stuff about the World

The “Real World”

GH

M

Abstract to G ,H,M

AG H M

B¬G ¬H ¬M

C

D

Statements

G → H

H → M

G : Aristotle was GreekH: Aristotle was humanM: Aristotle was mortal

A: intended modelB . . .: unintended models

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 12 / 42

Page 59: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Model-theoretic semantics from a birds-eye perspective

Finding out stuff about the World

The “Real World”

GH

M

Abstract to G ,H,M

AG H M

B¬G ¬H ¬M

C

D

Statements

G → H

H → M

G : Aristotle was GreekH: Aristotle was humanM: Aristotle was mortal

A: intended modelB . . .: unintended models

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 12 / 42

Page 60: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Model-theoretic semantics from a birds-eye perspective

Finding out stuff about the World

The “Real World”

GH

M

Abstract to G ,H,M

AG H M

B¬G ¬H ¬M

C

D

Statements

G → H

H → M

G?

G : Aristotle was GreekH: Aristotle was humanM: Aristotle was mortal

A: intended modelB . . .: unintended models

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 12 / 42

Page 61: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Model-theoretic semantics from a birds-eye perspective

Finding out stuff about the World

The “Real World”

GH

M

Abstract to G ,H,M

AG H M

B¬G ¬H ¬M

C

D

Statements

G → H

H → M

G?

G : Aristotle was GreekH: Aristotle was humanM: Aristotle was mortal

A: intended modelB . . .: unintended models

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 12 / 42

Page 62: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Model-theoretic semantics from a birds-eye perspective

Finding out stuff about the World

The “Real World”

GH

M

Abstract to G ,H,M

AG H M

B¬G ¬H ¬M

C

D

Statements

G → H

H → M

G → M?

G : Aristotle was GreekH: Aristotle was humanM: Aristotle was mortal

A: intended modelB . . .: unintended models

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 12 / 42

Page 63: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Model-theoretic semantics from a birds-eye perspective

Finding out stuff about the World

The “Real World”

GH

M

Abstract to G ,H,M

AG H M

B¬G ¬H ¬M

C

D

Statements

G → H

H → M

G → M?

G : Aristotle was GreekH: Aristotle was humanM: Aristotle was mortal

A: intended modelB . . .: unintended models

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 12 / 42

Page 64: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Model-theoretic semantics from a birds-eye perspective

Finding out stuff about the World

The “Real World”

GH

M

Abstract to G ,H,M

AG H M

B¬G ¬H ¬M

C

D

Statements

G → H

H → M

G → M?

G : Aristotle was GreekH: Aristotle was humanM: Aristotle was mortal

A: intended modelB . . .: unintended models

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 12 / 42

Page 65: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Model-theoretic semantics from a birds-eye perspective

Model-theoretic semantics

Basic idea: Asserting a sentence makes a claim about the world:

A formula therefore limits the set of worlds that are possible.We can therefore encode meaning/logical content

by describing models of these worlds.thus making certain aspects of meaning mathematically tractable

The exact makeup of models varies from logic to logic, but they all

express a view on what kinds of things there are,and the basic relations between these things

By selecting a class of models one selects the basic features of the worldas one chooses to see it.

Whatever these models all share can be said to be entailed by those features.

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 13 / 42

Page 66: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Model-theoretic semantics from a birds-eye perspective

Model-theoretic semantics

Basic idea: Asserting a sentence makes a claim about the world:

A formula therefore limits the set of worlds that are possible.

We can therefore encode meaning/logical content

by describing models of these worlds.thus making certain aspects of meaning mathematically tractable

The exact makeup of models varies from logic to logic, but they all

express a view on what kinds of things there are,and the basic relations between these things

By selecting a class of models one selects the basic features of the worldas one chooses to see it.

Whatever these models all share can be said to be entailed by those features.

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 13 / 42

Page 67: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Model-theoretic semantics from a birds-eye perspective

Model-theoretic semantics

Basic idea: Asserting a sentence makes a claim about the world:

A formula therefore limits the set of worlds that are possible.We can therefore encode meaning/logical content

by describing models of these worlds.thus making certain aspects of meaning mathematically tractable

The exact makeup of models varies from logic to logic, but they all

express a view on what kinds of things there are,and the basic relations between these things

By selecting a class of models one selects the basic features of the worldas one chooses to see it.

Whatever these models all share can be said to be entailed by those features.

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 13 / 42

Page 68: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Model-theoretic semantics from a birds-eye perspective

Model-theoretic semantics

Basic idea: Asserting a sentence makes a claim about the world:

A formula therefore limits the set of worlds that are possible.We can therefore encode meaning/logical content

by describing models of these worlds.

thus making certain aspects of meaning mathematically tractable

The exact makeup of models varies from logic to logic, but they all

express a view on what kinds of things there are,and the basic relations between these things

By selecting a class of models one selects the basic features of the worldas one chooses to see it.

Whatever these models all share can be said to be entailed by those features.

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 13 / 42

Page 69: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Model-theoretic semantics from a birds-eye perspective

Model-theoretic semantics

Basic idea: Asserting a sentence makes a claim about the world:

A formula therefore limits the set of worlds that are possible.We can therefore encode meaning/logical content

by describing models of these worlds.thus making certain aspects of meaning mathematically tractable

The exact makeup of models varies from logic to logic, but they all

express a view on what kinds of things there are,and the basic relations between these things

By selecting a class of models one selects the basic features of the worldas one chooses to see it.

Whatever these models all share can be said to be entailed by those features.

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 13 / 42

Page 70: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Model-theoretic semantics from a birds-eye perspective

Model-theoretic semantics

Basic idea: Asserting a sentence makes a claim about the world:

A formula therefore limits the set of worlds that are possible.We can therefore encode meaning/logical content

by describing models of these worlds.thus making certain aspects of meaning mathematically tractable

The exact makeup of models varies from logic to logic, but they all

express a view on what kinds of things there are,and the basic relations between these things

By selecting a class of models one selects the basic features of the worldas one chooses to see it.

Whatever these models all share can be said to be entailed by those features.

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 13 / 42

Page 71: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Model-theoretic semantics from a birds-eye perspective

Model-theoretic semantics

Basic idea: Asserting a sentence makes a claim about the world:

A formula therefore limits the set of worlds that are possible.We can therefore encode meaning/logical content

by describing models of these worlds.thus making certain aspects of meaning mathematically tractable

The exact makeup of models varies from logic to logic, but they all

express a view on what kinds of things there are,

and the basic relations between these things

By selecting a class of models one selects the basic features of the worldas one chooses to see it.

Whatever these models all share can be said to be entailed by those features.

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 13 / 42

Page 72: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Model-theoretic semantics from a birds-eye perspective

Model-theoretic semantics

Basic idea: Asserting a sentence makes a claim about the world:

A formula therefore limits the set of worlds that are possible.We can therefore encode meaning/logical content

by describing models of these worlds.thus making certain aspects of meaning mathematically tractable

The exact makeup of models varies from logic to logic, but they all

express a view on what kinds of things there are,and the basic relations between these things

By selecting a class of models one selects the basic features of the worldas one chooses to see it.

Whatever these models all share can be said to be entailed by those features.

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 13 / 42

Page 73: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Model-theoretic semantics from a birds-eye perspective

Model-theoretic semantics

Basic idea: Asserting a sentence makes a claim about the world:

A formula therefore limits the set of worlds that are possible.We can therefore encode meaning/logical content

by describing models of these worlds.thus making certain aspects of meaning mathematically tractable

The exact makeup of models varies from logic to logic, but they all

express a view on what kinds of things there are,and the basic relations between these things

By selecting a class of models one selects the basic features of the world

as one chooses to see it.

Whatever these models all share can be said to be entailed by those features.

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 13 / 42

Page 74: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Model-theoretic semantics from a birds-eye perspective

Model-theoretic semantics

Basic idea: Asserting a sentence makes a claim about the world:

A formula therefore limits the set of worlds that are possible.We can therefore encode meaning/logical content

by describing models of these worlds.thus making certain aspects of meaning mathematically tractable

The exact makeup of models varies from logic to logic, but they all

express a view on what kinds of things there are,and the basic relations between these things

By selecting a class of models one selects the basic features of the worldas one chooses to see it.

Whatever these models all share can be said to be entailed by those features.

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 13 / 42

Page 75: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Model-theoretic semantics from a birds-eye perspective

Model-theoretic semantics

Basic idea: Asserting a sentence makes a claim about the world:

A formula therefore limits the set of worlds that are possible.We can therefore encode meaning/logical content

by describing models of these worlds.thus making certain aspects of meaning mathematically tractable

The exact makeup of models varies from logic to logic, but they all

express a view on what kinds of things there are,and the basic relations between these things

By selecting a class of models one selects the basic features of the worldas one chooses to see it.

Whatever these models all share can be said to be entailed by those features.

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 13 / 42

Page 76: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Repetition: Propositional Logic

Outline

1 Why we need semantics

2 Model-theoretic semantics from a birds-eye perspective

3 Repetition: Propositional Logic

4 Simplified RDF semantics

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 14 / 42

Page 77: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Repetition: Propositional Logic

Propositional Logic: Formulas

Formulas are defined “by induction” or “recursively”:1 Any letter p, q, r ,. . . is a formula2 if A and B are formulas, then

(A ∧ B) is also a formula (read: “A and B”)(A ∨ B) is also a formula (read: “A or B”)¬A is also a formula (read: “not A”)

Nothing else is. Only what rules [1] and [2] say is a formula.Examples of formulae: p (p ∧ ¬r) (q ∧ ¬q) ((p ∨ ¬q) ∧ ¬p)Formulas are just a kind of strings until now:

no meaningbut every formula can be “parsed” uniquely.

((q ∧ p) ∨ (p ∧ q))

q p

p q

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 15 / 42

Page 78: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Repetition: Propositional Logic

Interpretations

Logic is about truth and falsityTruth of compound formulas depends on truth of letters.Idea: put all letters that are “true” into a set!Define: An interpretation I is a set of letters.Letter p is true in interpretation I if p ∈ I.E.g., in I1 = {p, q}, p is true, but r is false.

p rrq

I1 I2

But in I2 = {q, r}, p is false, but r is true.

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 16 / 42

Page 79: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Repetition: Propositional Logic

Semantic Validity |=

To say that p is true in I, writeI |= p

For instance

p rq

I1 I2

I1 |= p I2 6|= p

In other words, for all letters p:

I |= p if and only if p ∈ I

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 17 / 42

Page 80: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Repetition: Propositional Logic

Validity of Compound Formulas

Is ((q ∧ r) ∨ (p ∧ q)) true in I?Idea: apply our rule recursivelyFor any formulas A and B ,. . .. . . and any interpretation I,. . .

. . . I |= A ∧ B if and only if I |= A and I |= B

. . . I |= A ∨ B if and only if I |= A or I |= B (or both)

. . . I |= ¬A if and only if I 6|= A.For instance

p rq

I1

I1 |= ((q ∧ r) ∨ (p ∧ q))

I1 6|= (q ∧ r)

I1 |= q I1 6|= r

I1 |= (p ∧ q)

I1 |= p I1 |= q

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 18 / 42

Page 81: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Repetition: Propositional Logic

Truth Table

Semantics of ¬, ∧, ∨ often given as truth table:

A B ¬A A ∧ B A ∨ B

f f t f ff t t f tt f f f tt t f t t

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 19 / 42

Page 82: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Repetition: Propositional Logic

Tautologies

A formula A that is true in all interpretations is called a tautologyalso logically validalso a theorem (of propositional logic)written:

|= A

(p ∨ ¬p) is a tautologyTrue whatever p means:

The sky is blue or the sky is not blue.P.N. will win the 50km in 2016 or P.N. will not win the 50km in 2016.The slithy toves gyre or the slithy toves do not gyre.

Possible to derive true statements mechanically. . .. . . without understanding their meaning!. . . e.g. using truth tables for small cases.

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 20 / 42

Page 83: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Repetition: Propositional Logic

Entailment

Tautologies are true in all interpretationsSome formulas are true only under certain assumptionsA entails B , written A |= B if

I |= Bfor all interpretations I with I |= A

Also: “B is a logical consequence of A”Whenever A holds, also B holdsFor instance:

p ∧ q |= p

Independent of meaning of p and q:If it rains and the sky is blue, then it rainsIf P.N. wins the race and the world ends, then P.N. wins the raceIf ’tis brillig and the slythy toves do gyre, then ’tis brillig

Also entailment can be checked mechanically, without knowing the meaning of words.INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 21 / 42

Page 84: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Repetition: Propositional Logic

Question

Given the lettersP – Ola answers none of the questions correctlyQ – Ola fails the exam

Which of the following are tautologies of propositional logic?1 Q

2 ¬Q3 P → Q

4 Q → (P → Q)

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 22 / 42

Page 85: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Simplified RDF semantics

Outline

1 Why we need semantics

2 Model-theoretic semantics from a birds-eye perspective

3 Repetition: Propositional Logic

4 Simplified RDF semantics

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 23 / 42

Page 86: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Simplified RDF semantics

Taking the structure of triples into account

Unlike propositions, triples have parts, namely:

subjectpredicates, andobjects

Less abstractly, these may be:URI referencesliteral values, andblank nodes

Triples are true or false on the basis of what each part refers to.

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 24 / 42

Page 87: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Simplified RDF semantics

Taking the structure of triples into account

Unlike propositions, triples have parts, namely:subjectpredicates, andobjects

Less abstractly, these may be:URI referencesliteral values, andblank nodes

Triples are true or false on the basis of what each part refers to.

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 24 / 42

Page 88: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Simplified RDF semantics

Taking the structure of triples into account

Unlike propositions, triples have parts, namely:subjectpredicates, andobjects

Less abstractly, these may be:

URI referencesliteral values, andblank nodes

Triples are true or false on the basis of what each part refers to.

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 24 / 42

Page 89: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Simplified RDF semantics

Taking the structure of triples into account

Unlike propositions, triples have parts, namely:subjectpredicates, andobjects

Less abstractly, these may be:URI referencesliteral values, andblank nodes

Triples are true or false on the basis of what each part refers to.

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 24 / 42

Page 90: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Simplified RDF semantics

Taking the structure of triples into account

Unlike propositions, triples have parts, namely:subjectpredicates, andobjects

Less abstractly, these may be:URI referencesliteral values, andblank nodes

Triples are true or false on the basis of what each part refers to.

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 24 / 42

Page 91: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Simplified RDF semantics

On what there is: Resources, Properties, Literals

The RDF data model consists of three object types; resources, properties and literals values:

Resources: All things described by RDF are called resources. Resources are identified by URIsProperties: A property is a specific aspect, characteristic, attribute or relation

used to describe a resource. Properties are also resources, and therefore identifiedby URIs.

Literals: A literal value is a concrete data item, such as an integer or a string.String literals name themselves, i.e.

“Julius Ceasar” names the string “Julius Ceasar”“42” names the string “42”

The semantics of typed and language tagged literals is considerably more complex.

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 25 / 42

Page 92: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Simplified RDF semantics

On what there is: Resources, Properties, Literals

The RDF data model consists of three object types; resources, properties and literals values:

Resources: All things described by RDF are called resources. Resources are identified by URIsProperties: A property is a specific aspect, characteristic, attribute or relation

used to describe a resource. Properties are also resources, and therefore identifiedby URIs.

Literals: A literal value is a concrete data item, such as an integer or a string.String literals name themselves, i.e.

“Julius Ceasar” names the string “Julius Ceasar”“42” names the string “42”

The semantics of typed and language tagged literals is considerably more complex.

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 25 / 42

Page 93: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Simplified RDF semantics

On what there is: Resources, Properties, Literals

The RDF data model consists of three object types; resources, properties and literals values:

Resources: All things described by RDF are called resources. Resources are identified by URIs

Properties: A property is a specific aspect, characteristic, attribute or relationused to describe a resource. Properties are also resources, and therefore identifiedby URIs.

Literals: A literal value is a concrete data item, such as an integer or a string.String literals name themselves, i.e.

“Julius Ceasar” names the string “Julius Ceasar”“42” names the string “42”

The semantics of typed and language tagged literals is considerably more complex.

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 25 / 42

Page 94: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Simplified RDF semantics

On what there is: Resources, Properties, Literals

The RDF data model consists of three object types; resources, properties and literals values:

Resources: All things described by RDF are called resources. Resources are identified by URIsProperties: A property is a specific aspect, characteristic, attribute or relation

used to describe a resource. Properties are also resources, and therefore identifiedby URIs.

Literals: A literal value is a concrete data item, such as an integer or a string.String literals name themselves, i.e.

“Julius Ceasar” names the string “Julius Ceasar”“42” names the string “42”

The semantics of typed and language tagged literals is considerably more complex.

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 25 / 42

Page 95: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Simplified RDF semantics

On what there is: Resources, Properties, Literals

The RDF data model consists of three object types; resources, properties and literals values:

Resources: All things described by RDF are called resources. Resources are identified by URIsProperties: A property is a specific aspect, characteristic, attribute or relation

used to describe a resource. Properties are also resources, and therefore identifiedby URIs.

Literals: A literal value is a concrete data item, such as an integer or a string.

String literals name themselves, i.e.“Julius Ceasar” names the string “Julius Ceasar”“42” names the string “42”

The semantics of typed and language tagged literals is considerably more complex.

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 25 / 42

Page 96: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Simplified RDF semantics

On what there is: Resources, Properties, Literals

The RDF data model consists of three object types; resources, properties and literals values:

Resources: All things described by RDF are called resources. Resources are identified by URIsProperties: A property is a specific aspect, characteristic, attribute or relation

used to describe a resource. Properties are also resources, and therefore identifiedby URIs.

Literals: A literal value is a concrete data item, such as an integer or a string.String literals name themselves, i.e.

“Julius Ceasar” names the string “Julius Ceasar”“42” names the string “42”

The semantics of typed and language tagged literals is considerably more complex.

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 25 / 42

Page 97: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Simplified RDF semantics

On what there is: Resources, Properties, Literals

The RDF data model consists of three object types; resources, properties and literals values:

Resources: All things described by RDF are called resources. Resources are identified by URIsProperties: A property is a specific aspect, characteristic, attribute or relation

used to describe a resource. Properties are also resources, and therefore identifiedby URIs.

Literals: A literal value is a concrete data item, such as an integer or a string.String literals name themselves, i.e.

“Julius Ceasar” names the string “Julius Ceasar”

“42” names the string “42”

The semantics of typed and language tagged literals is considerably more complex.

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 25 / 42

Page 98: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Simplified RDF semantics

On what there is: Resources, Properties, Literals

The RDF data model consists of three object types; resources, properties and literals values:

Resources: All things described by RDF are called resources. Resources are identified by URIsProperties: A property is a specific aspect, characteristic, attribute or relation

used to describe a resource. Properties are also resources, and therefore identifiedby URIs.

Literals: A literal value is a concrete data item, such as an integer or a string.String literals name themselves, i.e.

“Julius Ceasar” names the string “Julius Ceasar”“42” names the string “42”

The semantics of typed and language tagged literals is considerably more complex.

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 25 / 42

Page 99: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Simplified RDF semantics

On what there is: Resources, Properties, Literals

The RDF data model consists of three object types; resources, properties and literals values:

Resources: All things described by RDF are called resources. Resources are identified by URIsProperties: A property is a specific aspect, characteristic, attribute or relation

used to describe a resource. Properties are also resources, and therefore identifiedby URIs.

Literals: A literal value is a concrete data item, such as an integer or a string.String literals name themselves, i.e.

“Julius Ceasar” names the string “Julius Ceasar”“42” names the string “42”

The semantics of typed and language tagged literals is considerably more complex.

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 25 / 42

Page 100: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Simplified RDF semantics

Restricting RDF/RDFS

We will simplify things by only looking at certain kinds of RDF graphs.

No triples “about” properties, classes, etc., except RDFSAssume Resources are divided into four disjoint kinds:

Properties like foaf:knows, dc:titleClasses like foaf:PersonBuilt-ins, a fixed set including rdf:type, rdfs:domain, etc.Individuals (all the rest, “usual” resources)

All triples have one of the forms:

individual property individual .individual rdf:type class .

class rdfs:subClassOf class .property rdfs:subPropertyOf property .property rdfs:domain class .property rdfs:range class .

Forget blank nodes and literals for a while!

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 26 / 42

Page 101: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Simplified RDF semantics

Restricting RDF/RDFS

We will simplify things by only looking at certain kinds of RDF graphs.No triples “about” properties, classes, etc., except RDFS

Assume Resources are divided into four disjoint kinds:

Properties like foaf:knows, dc:titleClasses like foaf:PersonBuilt-ins, a fixed set including rdf:type, rdfs:domain, etc.Individuals (all the rest, “usual” resources)

All triples have one of the forms:

individual property individual .individual rdf:type class .

class rdfs:subClassOf class .property rdfs:subPropertyOf property .property rdfs:domain class .property rdfs:range class .

Forget blank nodes and literals for a while!

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 26 / 42

Page 102: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Simplified RDF semantics

Restricting RDF/RDFS

We will simplify things by only looking at certain kinds of RDF graphs.No triples “about” properties, classes, etc., except RDFSAssume Resources are divided into four disjoint kinds:

Properties like foaf:knows, dc:titleClasses like foaf:PersonBuilt-ins, a fixed set including rdf:type, rdfs:domain, etc.Individuals (all the rest, “usual” resources)

All triples have one of the forms:

individual property individual .individual rdf:type class .

class rdfs:subClassOf class .property rdfs:subPropertyOf property .property rdfs:domain class .property rdfs:range class .

Forget blank nodes and literals for a while!

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 26 / 42

Page 103: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Simplified RDF semantics

Restricting RDF/RDFS

We will simplify things by only looking at certain kinds of RDF graphs.No triples “about” properties, classes, etc., except RDFSAssume Resources are divided into four disjoint kinds:

Properties like foaf:knows, dc:title

Classes like foaf:PersonBuilt-ins, a fixed set including rdf:type, rdfs:domain, etc.Individuals (all the rest, “usual” resources)

All triples have one of the forms:

individual property individual .individual rdf:type class .

class rdfs:subClassOf class .property rdfs:subPropertyOf property .property rdfs:domain class .property rdfs:range class .

Forget blank nodes and literals for a while!

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 26 / 42

Page 104: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Simplified RDF semantics

Restricting RDF/RDFS

We will simplify things by only looking at certain kinds of RDF graphs.No triples “about” properties, classes, etc., except RDFSAssume Resources are divided into four disjoint kinds:

Properties like foaf:knows, dc:titleClasses like foaf:Person

Built-ins, a fixed set including rdf:type, rdfs:domain, etc.Individuals (all the rest, “usual” resources)

All triples have one of the forms:

individual property individual .individual rdf:type class .

class rdfs:subClassOf class .property rdfs:subPropertyOf property .property rdfs:domain class .property rdfs:range class .

Forget blank nodes and literals for a while!

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 26 / 42

Page 105: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Simplified RDF semantics

Restricting RDF/RDFS

We will simplify things by only looking at certain kinds of RDF graphs.No triples “about” properties, classes, etc., except RDFSAssume Resources are divided into four disjoint kinds:

Properties like foaf:knows, dc:titleClasses like foaf:PersonBuilt-ins, a fixed set including rdf:type, rdfs:domain, etc.

Individuals (all the rest, “usual” resources)All triples have one of the forms:

individual property individual .individual rdf:type class .

class rdfs:subClassOf class .property rdfs:subPropertyOf property .property rdfs:domain class .property rdfs:range class .

Forget blank nodes and literals for a while!

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 26 / 42

Page 106: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Simplified RDF semantics

Restricting RDF/RDFS

We will simplify things by only looking at certain kinds of RDF graphs.No triples “about” properties, classes, etc., except RDFSAssume Resources are divided into four disjoint kinds:

Properties like foaf:knows, dc:titleClasses like foaf:PersonBuilt-ins, a fixed set including rdf:type, rdfs:domain, etc.Individuals (all the rest, “usual” resources)

All triples have one of the forms:

individual property individual .individual rdf:type class .

class rdfs:subClassOf class .property rdfs:subPropertyOf property .property rdfs:domain class .property rdfs:range class .

Forget blank nodes and literals for a while!

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 26 / 42

Page 107: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Simplified RDF semantics

Restricting RDF/RDFS

We will simplify things by only looking at certain kinds of RDF graphs.No triples “about” properties, classes, etc., except RDFSAssume Resources are divided into four disjoint kinds:

Properties like foaf:knows, dc:titleClasses like foaf:PersonBuilt-ins, a fixed set including rdf:type, rdfs:domain, etc.Individuals (all the rest, “usual” resources)

All triples have one of the forms:

individual property individual .individual rdf:type class .

class rdfs:subClassOf class .property rdfs:subPropertyOf property .property rdfs:domain class .property rdfs:range class .

Forget blank nodes and literals for a while!

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 26 / 42

Page 108: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Simplified RDF semantics

Restricting RDF/RDFS

We will simplify things by only looking at certain kinds of RDF graphs.No triples “about” properties, classes, etc., except RDFSAssume Resources are divided into four disjoint kinds:

Properties like foaf:knows, dc:titleClasses like foaf:PersonBuilt-ins, a fixed set including rdf:type, rdfs:domain, etc.Individuals (all the rest, “usual” resources)

All triples have one of the forms:individual property individual .

individual rdf:type class .

class rdfs:subClassOf class .property rdfs:subPropertyOf property .property rdfs:domain class .property rdfs:range class .

Forget blank nodes and literals for a while!

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 26 / 42

Page 109: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Simplified RDF semantics

Restricting RDF/RDFS

We will simplify things by only looking at certain kinds of RDF graphs.No triples “about” properties, classes, etc., except RDFSAssume Resources are divided into four disjoint kinds:

Properties like foaf:knows, dc:titleClasses like foaf:PersonBuilt-ins, a fixed set including rdf:type, rdfs:domain, etc.Individuals (all the rest, “usual” resources)

All triples have one of the forms:individual property individual .individual rdf:type class .

class rdfs:subClassOf class .property rdfs:subPropertyOf property .property rdfs:domain class .property rdfs:range class .

Forget blank nodes and literals for a while!

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 26 / 42

Page 110: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Simplified RDF semantics

Restricting RDF/RDFS

We will simplify things by only looking at certain kinds of RDF graphs.No triples “about” properties, classes, etc., except RDFSAssume Resources are divided into four disjoint kinds:

Properties like foaf:knows, dc:titleClasses like foaf:PersonBuilt-ins, a fixed set including rdf:type, rdfs:domain, etc.Individuals (all the rest, “usual” resources)

All triples have one of the forms:individual property individual .individual rdf:type class .

class rdfs:subClassOf class .

property rdfs:subPropertyOf property .property rdfs:domain class .property rdfs:range class .

Forget blank nodes and literals for a while!

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 26 / 42

Page 111: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Simplified RDF semantics

Restricting RDF/RDFS

We will simplify things by only looking at certain kinds of RDF graphs.No triples “about” properties, classes, etc., except RDFSAssume Resources are divided into four disjoint kinds:

Properties like foaf:knows, dc:titleClasses like foaf:PersonBuilt-ins, a fixed set including rdf:type, rdfs:domain, etc.Individuals (all the rest, “usual” resources)

All triples have one of the forms:individual property individual .individual rdf:type class .

class rdfs:subClassOf class .property rdfs:subPropertyOf property .

property rdfs:domain class .property rdfs:range class .

Forget blank nodes and literals for a while!

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 26 / 42

Page 112: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Simplified RDF semantics

Restricting RDF/RDFS

We will simplify things by only looking at certain kinds of RDF graphs.No triples “about” properties, classes, etc., except RDFSAssume Resources are divided into four disjoint kinds:

Properties like foaf:knows, dc:titleClasses like foaf:PersonBuilt-ins, a fixed set including rdf:type, rdfs:domain, etc.Individuals (all the rest, “usual” resources)

All triples have one of the forms:individual property individual .individual rdf:type class .

class rdfs:subClassOf class .property rdfs:subPropertyOf property .property rdfs:domain class .

property rdfs:range class .Forget blank nodes and literals for a while!

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 26 / 42

Page 113: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Simplified RDF semantics

Restricting RDF/RDFS

We will simplify things by only looking at certain kinds of RDF graphs.No triples “about” properties, classes, etc., except RDFSAssume Resources are divided into four disjoint kinds:

Properties like foaf:knows, dc:titleClasses like foaf:PersonBuilt-ins, a fixed set including rdf:type, rdfs:domain, etc.Individuals (all the rest, “usual” resources)

All triples have one of the forms:individual property individual .individual rdf:type class .

class rdfs:subClassOf class .property rdfs:subPropertyOf property .property rdfs:domain class .property rdfs:range class .

Forget blank nodes and literals for a while!

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 26 / 42

Page 114: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Simplified RDF semantics

Restricting RDF/RDFS

We will simplify things by only looking at certain kinds of RDF graphs.No triples “about” properties, classes, etc., except RDFSAssume Resources are divided into four disjoint kinds:

Properties like foaf:knows, dc:titleClasses like foaf:PersonBuilt-ins, a fixed set including rdf:type, rdfs:domain, etc.Individuals (all the rest, “usual” resources)

All triples have one of the forms:individual property individual .individual rdf:type class .

class rdfs:subClassOf class .property rdfs:subPropertyOf property .property rdfs:domain class .property rdfs:range class .

Forget blank nodes and literals for a while!INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 26 / 42

Page 115: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Simplified RDF semantics

Short Forms

Resources and Triples are no longer all alike

No need to use the same general triple notationUse alternative notation

Triples Abbreviationindi prop indi . r(i1, i2)indi rdf:type class . C (i1)

class rdfs:subClassOf class . C v Dprop rdfs:subPropOf prop . r v sprop rdfs:domain class . dom(r ,C )prop rdfs:range class . rg(r ,C )

This is called “Description Logic” (DL) SyntaxUsed much in particular for OWL

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 27 / 42

Page 116: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Simplified RDF semantics

Short Forms

Resources and Triples are no longer all alikeNo need to use the same general triple notation

Use alternative notation

Triples Abbreviationindi prop indi . r(i1, i2)indi rdf:type class . C (i1)

class rdfs:subClassOf class . C v Dprop rdfs:subPropOf prop . r v sprop rdfs:domain class . dom(r ,C )prop rdfs:range class . rg(r ,C )

This is called “Description Logic” (DL) SyntaxUsed much in particular for OWL

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 27 / 42

Page 117: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Simplified RDF semantics

Short Forms

Resources and Triples are no longer all alikeNo need to use the same general triple notationUse alternative notation

Triples Abbreviationindi prop indi . r(i1, i2)indi rdf:type class . C (i1)

class rdfs:subClassOf class . C v Dprop rdfs:subPropOf prop . r v sprop rdfs:domain class . dom(r ,C )prop rdfs:range class . rg(r ,C )

This is called “Description Logic” (DL) SyntaxUsed much in particular for OWL

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 27 / 42

Page 118: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Simplified RDF semantics

Short Forms

Resources and Triples are no longer all alikeNo need to use the same general triple notationUse alternative notation

Triples Abbreviationindi prop indi . r(i1, i2)indi rdf:type class . C (i1)

class rdfs:subClassOf class . C v Dprop rdfs:subPropOf prop . r v sprop rdfs:domain class . dom(r ,C )prop rdfs:range class . rg(r ,C )

This is called “Description Logic” (DL) Syntax

Used much in particular for OWL

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 27 / 42

Page 119: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Simplified RDF semantics

Short Forms

Resources and Triples are no longer all alikeNo need to use the same general triple notationUse alternative notation

Triples Abbreviationindi prop indi . r(i1, i2)indi rdf:type class . C (i1)

class rdfs:subClassOf class . C v Dprop rdfs:subPropOf prop . r v sprop rdfs:domain class . dom(r ,C )prop rdfs:range class . rg(r ,C )

This is called “Description Logic” (DL) SyntaxUsed much in particular for OWL

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 27 / 42

Page 120: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Simplified RDF semantics

Example

Triples:

ws:romeo ws:loves ws:juliet .ws:juliet rdf:type ws:Lady .

ws:Lady rdfs:subClassOf foaf:Person .ws:loves rdfs:subPropertyOf foaf:knows .ws:loves rdfs:domain ws:Lover .ws:loves rdfs:range ws:Beloved .

DL syntax, without namespaces:

loves(romeo, juliet)Lady(juliet)

Lady v Personloves v knowsdom(loves, Lover)rg(loves,Beloved)

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 28 / 42

Page 121: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Simplified RDF semantics

Example

Triples:ws:romeo ws:loves ws:juliet .ws:juliet rdf:type ws:Lady .

ws:Lady rdfs:subClassOf foaf:Person .ws:loves rdfs:subPropertyOf foaf:knows .ws:loves rdfs:domain ws:Lover .ws:loves rdfs:range ws:Beloved .

DL syntax, without namespaces:

loves(romeo, juliet)Lady(juliet)

Lady v Personloves v knowsdom(loves, Lover)rg(loves,Beloved)

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 28 / 42

Page 122: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Simplified RDF semantics

Example

Triples:ws:romeo ws:loves ws:juliet .ws:juliet rdf:type ws:Lady .

ws:Lady rdfs:subClassOf foaf:Person .ws:loves rdfs:subPropertyOf foaf:knows .ws:loves rdfs:domain ws:Lover .ws:loves rdfs:range ws:Beloved .

DL syntax, without namespaces:

loves(romeo, juliet)Lady(juliet)

Lady v Personloves v knowsdom(loves, Lover)rg(loves,Beloved)

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 28 / 42

Page 123: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Simplified RDF semantics

Example

Triples:ws:romeo ws:loves ws:juliet .ws:juliet rdf:type ws:Lady .

ws:Lady rdfs:subClassOf foaf:Person .ws:loves rdfs:subPropertyOf foaf:knows .ws:loves rdfs:domain ws:Lover .ws:loves rdfs:range ws:Beloved .

DL syntax, without namespaces:

loves(romeo, juliet)Lady(juliet)

Lady v Personloves v knowsdom(loves, Lover)rg(loves,Beloved)

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 28 / 42

Page 124: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Simplified RDF semantics

Interpretations for RDF

To interpret propositional formulas, we need to know how to interpret

LettersTo interpret the six kinds of triples, we need to know how to interpret

Individual URIs as real or imagined objectsClass URIs as sets of such objectsProperty URIs as relations between these objects

A DL-interpretation I consists of

A set ∆I , called the domain (sorry!) of IFor each individual URI i , an element iI ∈ ∆I

For each class URI C , a subset CI ⊆ ∆I

For each property URI r , a relation rI ⊆ ∆I ×∆I

Given these, it will be possible to say whether a triple holds or not.

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 29 / 42

Page 125: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Simplified RDF semantics

Interpretations for RDF

To interpret propositional formulas, we need to know how to interpretLetters

To interpret the six kinds of triples, we need to know how to interpret

Individual URIs as real or imagined objectsClass URIs as sets of such objectsProperty URIs as relations between these objects

A DL-interpretation I consists of

A set ∆I , called the domain (sorry!) of IFor each individual URI i , an element iI ∈ ∆I

For each class URI C , a subset CI ⊆ ∆I

For each property URI r , a relation rI ⊆ ∆I ×∆I

Given these, it will be possible to say whether a triple holds or not.

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 29 / 42

Page 126: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Simplified RDF semantics

Interpretations for RDF

To interpret propositional formulas, we need to know how to interpretLetters

To interpret the six kinds of triples, we need to know how to interpret

Individual URIs as real or imagined objectsClass URIs as sets of such objectsProperty URIs as relations between these objects

A DL-interpretation I consists of

A set ∆I , called the domain (sorry!) of IFor each individual URI i , an element iI ∈ ∆I

For each class URI C , a subset CI ⊆ ∆I

For each property URI r , a relation rI ⊆ ∆I ×∆I

Given these, it will be possible to say whether a triple holds or not.

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 29 / 42

Page 127: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Simplified RDF semantics

Interpretations for RDF

To interpret propositional formulas, we need to know how to interpretLetters

To interpret the six kinds of triples, we need to know how to interpretIndividual URIs as real or imagined objects

Class URIs as sets of such objectsProperty URIs as relations between these objects

A DL-interpretation I consists of

A set ∆I , called the domain (sorry!) of IFor each individual URI i , an element iI ∈ ∆I

For each class URI C , a subset CI ⊆ ∆I

For each property URI r , a relation rI ⊆ ∆I ×∆I

Given these, it will be possible to say whether a triple holds or not.

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 29 / 42

Page 128: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Simplified RDF semantics

Interpretations for RDF

To interpret propositional formulas, we need to know how to interpretLetters

To interpret the six kinds of triples, we need to know how to interpretIndividual URIs as real or imagined objectsClass URIs as sets of such objects

Property URIs as relations between these objectsA DL-interpretation I consists of

A set ∆I , called the domain (sorry!) of IFor each individual URI i , an element iI ∈ ∆I

For each class URI C , a subset CI ⊆ ∆I

For each property URI r , a relation rI ⊆ ∆I ×∆I

Given these, it will be possible to say whether a triple holds or not.

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 29 / 42

Page 129: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Simplified RDF semantics

Interpretations for RDF

To interpret propositional formulas, we need to know how to interpretLetters

To interpret the six kinds of triples, we need to know how to interpretIndividual URIs as real or imagined objectsClass URIs as sets of such objectsProperty URIs as relations between these objects

A DL-interpretation I consists of

A set ∆I , called the domain (sorry!) of IFor each individual URI i , an element iI ∈ ∆I

For each class URI C , a subset CI ⊆ ∆I

For each property URI r , a relation rI ⊆ ∆I ×∆I

Given these, it will be possible to say whether a triple holds or not.

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 29 / 42

Page 130: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Simplified RDF semantics

Interpretations for RDF

To interpret propositional formulas, we need to know how to interpretLetters

To interpret the six kinds of triples, we need to know how to interpretIndividual URIs as real or imagined objectsClass URIs as sets of such objectsProperty URIs as relations between these objects

A DL-interpretation I consists of

A set ∆I , called the domain (sorry!) of IFor each individual URI i , an element iI ∈ ∆I

For each class URI C , a subset CI ⊆ ∆I

For each property URI r , a relation rI ⊆ ∆I ×∆I

Given these, it will be possible to say whether a triple holds or not.

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 29 / 42

Page 131: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Simplified RDF semantics

Interpretations for RDF

To interpret propositional formulas, we need to know how to interpretLetters

To interpret the six kinds of triples, we need to know how to interpretIndividual URIs as real or imagined objectsClass URIs as sets of such objectsProperty URIs as relations between these objects

A DL-interpretation I consists ofA set ∆I , called the domain (sorry!) of I

For each individual URI i , an element iI ∈ ∆I

For each class URI C , a subset CI ⊆ ∆I

For each property URI r , a relation rI ⊆ ∆I ×∆I

Given these, it will be possible to say whether a triple holds or not.

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 29 / 42

Page 132: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Simplified RDF semantics

Interpretations for RDF

To interpret propositional formulas, we need to know how to interpretLetters

To interpret the six kinds of triples, we need to know how to interpretIndividual URIs as real or imagined objectsClass URIs as sets of such objectsProperty URIs as relations between these objects

A DL-interpretation I consists ofA set ∆I , called the domain (sorry!) of IFor each individual URI i , an element iI ∈ ∆I

For each class URI C , a subset CI ⊆ ∆I

For each property URI r , a relation rI ⊆ ∆I ×∆I

Given these, it will be possible to say whether a triple holds or not.

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 29 / 42

Page 133: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Simplified RDF semantics

Interpretations for RDF

To interpret propositional formulas, we need to know how to interpretLetters

To interpret the six kinds of triples, we need to know how to interpretIndividual URIs as real or imagined objectsClass URIs as sets of such objectsProperty URIs as relations between these objects

A DL-interpretation I consists ofA set ∆I , called the domain (sorry!) of IFor each individual URI i , an element iI ∈ ∆I

For each class URI C , a subset CI ⊆ ∆I

For each property URI r , a relation rI ⊆ ∆I ×∆I

Given these, it will be possible to say whether a triple holds or not.

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 29 / 42

Page 134: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Simplified RDF semantics

Interpretations for RDF

To interpret propositional formulas, we need to know how to interpretLetters

To interpret the six kinds of triples, we need to know how to interpretIndividual URIs as real or imagined objectsClass URIs as sets of such objectsProperty URIs as relations between these objects

A DL-interpretation I consists ofA set ∆I , called the domain (sorry!) of IFor each individual URI i , an element iI ∈ ∆I

For each class URI C , a subset CI ⊆ ∆I

For each property URI r , a relation rI ⊆ ∆I ×∆I

Given these, it will be possible to say whether a triple holds or not.

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 29 / 42

Page 135: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Simplified RDF semantics

Interpretations for RDF

To interpret propositional formulas, we need to know how to interpretLetters

To interpret the six kinds of triples, we need to know how to interpretIndividual URIs as real or imagined objectsClass URIs as sets of such objectsProperty URIs as relations between these objects

A DL-interpretation I consists ofA set ∆I , called the domain (sorry!) of IFor each individual URI i , an element iI ∈ ∆I

For each class URI C , a subset CI ⊆ ∆I

For each property URI r , a relation rI ⊆ ∆I ×∆I

Given these, it will be possible to say whether a triple holds or not.

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 29 / 42

Page 136: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Simplified RDF semantics

An example “intended” interpretation

∆I1 =

{, ,

}

romeoI1 = julietI1 =

LadyI1 =

{ }PersonI1 = ∆I1

LoverI1 = BelovedI1 =

{,

}lovesI1 =

{⟨,

⟩,

⟨,

⟩}knowsI1 = ∆I1 ×∆I1

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 30 / 42

Page 137: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Simplified RDF semantics

An example “intended” interpretation

∆I1 =

{, ,

}romeoI1 = julietI1 =

LadyI1 =

{ }PersonI1 = ∆I1

LoverI1 = BelovedI1 =

{,

}lovesI1 =

{⟨,

⟩,

⟨,

⟩}knowsI1 = ∆I1 ×∆I1

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 30 / 42

Page 138: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Simplified RDF semantics

An example “intended” interpretation

∆I1 =

{, ,

}romeoI1 = julietI1 =

LadyI1 =

{ }PersonI1 = ∆I1

LoverI1 = BelovedI1 =

{,

}

lovesI1 =

{⟨,

⟩,

⟨,

⟩}knowsI1 = ∆I1 ×∆I1

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 30 / 42

Page 139: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Simplified RDF semantics

An example “intended” interpretation

∆I1 =

{, ,

}romeoI1 = julietI1 =

LadyI1 =

{ }PersonI1 = ∆I1

LoverI1 = BelovedI1 =

{,

}lovesI1 =

{⟨,

⟩,

⟨,

⟩}knowsI1 = ∆I1 ×∆I1

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 30 / 42

Page 140: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Simplified RDF semantics

An example “non-intended” interpretation

∆I2 = N = {1, 2, 3, 4, . . .}

romeoI2 = 17julietI2 = 32LadyI2 = {2n | n ∈ N} = {2, 4, 8, 16, 32, . . .}PersonI2 = {2n | n ∈ N} = {2, 4, 6, 8, 10, . . .}LoverI2 = BelovedI2 = NlovesI2 =<= {〈x , y〉 | x < y}knowsI2 =≤= {〈x , y〉 | x ≤ y}

Just because names (URIs) look familiar, they don’t need to denote what we think!In fact, there is no way of ensuring they denote only what we think!

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 31 / 42

Page 141: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Simplified RDF semantics

An example “non-intended” interpretation

∆I2 = N = {1, 2, 3, 4, . . .}romeoI2 = 17julietI2 = 32

LadyI2 = {2n | n ∈ N} = {2, 4, 8, 16, 32, . . .}PersonI2 = {2n | n ∈ N} = {2, 4, 6, 8, 10, . . .}LoverI2 = BelovedI2 = NlovesI2 =<= {〈x , y〉 | x < y}knowsI2 =≤= {〈x , y〉 | x ≤ y}

Just because names (URIs) look familiar, they don’t need to denote what we think!In fact, there is no way of ensuring they denote only what we think!

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 31 / 42

Page 142: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Simplified RDF semantics

An example “non-intended” interpretation

∆I2 = N = {1, 2, 3, 4, . . .}romeoI2 = 17julietI2 = 32LadyI2 = {2n | n ∈ N} = {2, 4, 8, 16, 32, . . .}PersonI2 = {2n | n ∈ N} = {2, 4, 6, 8, 10, . . .}LoverI2 = BelovedI2 = N

lovesI2 =<= {〈x , y〉 | x < y}knowsI2 =≤= {〈x , y〉 | x ≤ y}

Just because names (URIs) look familiar, they don’t need to denote what we think!In fact, there is no way of ensuring they denote only what we think!

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 31 / 42

Page 143: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Simplified RDF semantics

An example “non-intended” interpretation

∆I2 = N = {1, 2, 3, 4, . . .}romeoI2 = 17julietI2 = 32LadyI2 = {2n | n ∈ N} = {2, 4, 8, 16, 32, . . .}PersonI2 = {2n | n ∈ N} = {2, 4, 6, 8, 10, . . .}LoverI2 = BelovedI2 = NlovesI2 =<= {〈x , y〉 | x < y}knowsI2 =≤= {〈x , y〉 | x ≤ y}

Just because names (URIs) look familiar, they don’t need to denote what we think!In fact, there is no way of ensuring they denote only what we think!

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 31 / 42

Page 144: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Simplified RDF semantics

An example “non-intended” interpretation

∆I2 = N = {1, 2, 3, 4, . . .}romeoI2 = 17julietI2 = 32LadyI2 = {2n | n ∈ N} = {2, 4, 8, 16, 32, . . .}PersonI2 = {2n | n ∈ N} = {2, 4, 6, 8, 10, . . .}LoverI2 = BelovedI2 = NlovesI2 =<= {〈x , y〉 | x < y}knowsI2 =≤= {〈x , y〉 | x ≤ y}

Just because names (URIs) look familiar, they don’t need to denote what we think!

In fact, there is no way of ensuring they denote only what we think!

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 31 / 42

Page 145: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Simplified RDF semantics

An example “non-intended” interpretation

∆I2 = N = {1, 2, 3, 4, . . .}romeoI2 = 17julietI2 = 32LadyI2 = {2n | n ∈ N} = {2, 4, 8, 16, 32, . . .}PersonI2 = {2n | n ∈ N} = {2, 4, 6, 8, 10, . . .}LoverI2 = BelovedI2 = NlovesI2 =<= {〈x , y〉 | x < y}knowsI2 =≤= {〈x , y〉 | x ≤ y}

Just because names (URIs) look familiar, they don’t need to denote what we think!In fact, there is no way of ensuring they denote only what we think!

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 31 / 42

Page 146: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Simplified RDF semantics

Validity in Interpretations (RDF)

Given an interpretation I, define |= as follows:

I |= r(i1, i2) iff⟨iI1 , i

I2⟩∈ rI

I |= C (i) iff iI ∈ CI

Examples:

I1 |= loves(juliet, romeo) because⟨,

⟩∈ lovesI1 =

{⟨,

⟩,

⟨,

⟩}I1 |= Person(romeo) because

romeoI1 = ∈ PersonI1 = ∆I1

I2 6|= loves(juliet, romeo) becauselovesI2 = < and julietI2 = 32 6< romeoI2 = 17

I2 6|= Person(romeo) becauseromeoI2 = 17 6∈ PersonI2 = {2, 4, 6, 8, 10, . . .}

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 32 / 42

Page 147: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Simplified RDF semantics

Validity in Interpretations (RDF)

Given an interpretation I, define |= as follows:I |= r(i1, i2) iff

⟨iI1 , i

I2⟩∈ rI

I |= C (i) iff iI ∈ CI

Examples:

I1 |= loves(juliet, romeo) because⟨,

⟩∈ lovesI1 =

{⟨,

⟩,

⟨,

⟩}I1 |= Person(romeo) because

romeoI1 = ∈ PersonI1 = ∆I1

I2 6|= loves(juliet, romeo) becauselovesI2 = < and julietI2 = 32 6< romeoI2 = 17

I2 6|= Person(romeo) becauseromeoI2 = 17 6∈ PersonI2 = {2, 4, 6, 8, 10, . . .}

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 32 / 42

Page 148: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Simplified RDF semantics

Validity in Interpretations (RDF)

Given an interpretation I, define |= as follows:I |= r(i1, i2) iff

⟨iI1 , i

I2⟩∈ rI

I |= C (i) iff iI ∈ CI

Examples:

I1 |= loves(juliet, romeo) because⟨,

⟩∈ lovesI1 =

{⟨,

⟩,

⟨,

⟩}I1 |= Person(romeo) because

romeoI1 = ∈ PersonI1 = ∆I1

I2 6|= loves(juliet, romeo) becauselovesI2 = < and julietI2 = 32 6< romeoI2 = 17

I2 6|= Person(romeo) becauseromeoI2 = 17 6∈ PersonI2 = {2, 4, 6, 8, 10, . . .}

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 32 / 42

Page 149: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Simplified RDF semantics

Validity in Interpretations (RDF)

Given an interpretation I, define |= as follows:I |= r(i1, i2) iff

⟨iI1 , i

I2⟩∈ rI

I |= C (i) iff iI ∈ CI

Examples:

I1 |= loves(juliet, romeo) because⟨,

⟩∈ lovesI1 =

{⟨,

⟩,

⟨,

⟩}I1 |= Person(romeo) because

romeoI1 = ∈ PersonI1 = ∆I1

I2 6|= loves(juliet, romeo) becauselovesI2 = < and julietI2 = 32 6< romeoI2 = 17

I2 6|= Person(romeo) becauseromeoI2 = 17 6∈ PersonI2 = {2, 4, 6, 8, 10, . . .}

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 32 / 42

Page 150: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Simplified RDF semantics

Validity in Interpretations (RDF)

Given an interpretation I, define |= as follows:I |= r(i1, i2) iff

⟨iI1 , i

I2⟩∈ rI

I |= C (i) iff iI ∈ CI

Examples:I1 |= loves(juliet, romeo) because

⟨,

⟩∈ lovesI1 =

{⟨,

⟩,

⟨,

⟩}I1 |= Person(romeo) because

romeoI1 = ∈ PersonI1 = ∆I1

I2 6|= loves(juliet, romeo) becauselovesI2 = < and julietI2 = 32 6< romeoI2 = 17

I2 6|= Person(romeo) becauseromeoI2 = 17 6∈ PersonI2 = {2, 4, 6, 8, 10, . . .}

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 32 / 42

Page 151: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Simplified RDF semantics

Validity in Interpretations (RDF)

Given an interpretation I, define |= as follows:I |= r(i1, i2) iff

⟨iI1 , i

I2⟩∈ rI

I |= C (i) iff iI ∈ CI

Examples:I1 |= loves(juliet, romeo) because⟨

,

⟩∈ lovesI1 =

{⟨,

⟩,

⟨,

⟩}

I1 |= Person(romeo) because

romeoI1 = ∈ PersonI1 = ∆I1

I2 6|= loves(juliet, romeo) becauselovesI2 = < and julietI2 = 32 6< romeoI2 = 17

I2 6|= Person(romeo) becauseromeoI2 = 17 6∈ PersonI2 = {2, 4, 6, 8, 10, . . .}

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 32 / 42

Page 152: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Simplified RDF semantics

Validity in Interpretations (RDF)

Given an interpretation I, define |= as follows:I |= r(i1, i2) iff

⟨iI1 , i

I2⟩∈ rI

I |= C (i) iff iI ∈ CI

Examples:I1 |= loves(juliet, romeo) because⟨

,

⟩∈ lovesI1 =

{⟨,

⟩,

⟨,

⟩}I1 |= Person(romeo) because

romeoI1 = ∈ PersonI1 = ∆I1

I2 6|= loves(juliet, romeo) becauselovesI2 = < and julietI2 = 32 6< romeoI2 = 17

I2 6|= Person(romeo) becauseromeoI2 = 17 6∈ PersonI2 = {2, 4, 6, 8, 10, . . .}

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 32 / 42

Page 153: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Simplified RDF semantics

Validity in Interpretations (RDF)

Given an interpretation I, define |= as follows:I |= r(i1, i2) iff

⟨iI1 , i

I2⟩∈ rI

I |= C (i) iff iI ∈ CI

Examples:I1 |= loves(juliet, romeo) because⟨

,

⟩∈ lovesI1 =

{⟨,

⟩,

⟨,

⟩}I1 |= Person(romeo) because

romeoI1 = ∈ PersonI1 = ∆I1

I2 6|= loves(juliet, romeo) becauselovesI2 = < and julietI2 = 32 6< romeoI2 = 17

I2 6|= Person(romeo) becauseromeoI2 = 17 6∈ PersonI2 = {2, 4, 6, 8, 10, . . .}

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 32 / 42

Page 154: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Simplified RDF semantics

Validity in Interpretations (RDF)

Given an interpretation I, define |= as follows:I |= r(i1, i2) iff

⟨iI1 , i

I2⟩∈ rI

I |= C (i) iff iI ∈ CI

Examples:I1 |= loves(juliet, romeo) because⟨

,

⟩∈ lovesI1 =

{⟨,

⟩,

⟨,

⟩}I1 |= Person(romeo) because

romeoI1 = ∈ PersonI1 = ∆I1

I2 6|= loves(juliet, romeo) because

lovesI2 = < and julietI2 = 32 6< romeoI2 = 17

I2 6|= Person(romeo) becauseromeoI2 = 17 6∈ PersonI2 = {2, 4, 6, 8, 10, . . .}

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 32 / 42

Page 155: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Simplified RDF semantics

Validity in Interpretations (RDF)

Given an interpretation I, define |= as follows:I |= r(i1, i2) iff

⟨iI1 , i

I2⟩∈ rI

I |= C (i) iff iI ∈ CI

Examples:I1 |= loves(juliet, romeo) because⟨

,

⟩∈ lovesI1 =

{⟨,

⟩,

⟨,

⟩}I1 |= Person(romeo) because

romeoI1 = ∈ PersonI1 = ∆I1

I2 6|= loves(juliet, romeo) becauselovesI2 = < and julietI2 = 32 6< romeoI2 = 17

I2 6|= Person(romeo) becauseromeoI2 = 17 6∈ PersonI2 = {2, 4, 6, 8, 10, . . .}

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 32 / 42

Page 156: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Simplified RDF semantics

Validity in Interpretations (RDF)

Given an interpretation I, define |= as follows:I |= r(i1, i2) iff

⟨iI1 , i

I2⟩∈ rI

I |= C (i) iff iI ∈ CI

Examples:I1 |= loves(juliet, romeo) because⟨

,

⟩∈ lovesI1 =

{⟨,

⟩,

⟨,

⟩}I1 |= Person(romeo) because

romeoI1 = ∈ PersonI1 = ∆I1

I2 6|= loves(juliet, romeo) becauselovesI2 = < and julietI2 = 32 6< romeoI2 = 17

I2 6|= Person(romeo) because

romeoI2 = 17 6∈ PersonI2 = {2, 4, 6, 8, 10, . . .}

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 32 / 42

Page 157: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Simplified RDF semantics

Validity in Interpretations (RDF)

Given an interpretation I, define |= as follows:I |= r(i1, i2) iff

⟨iI1 , i

I2⟩∈ rI

I |= C (i) iff iI ∈ CI

Examples:I1 |= loves(juliet, romeo) because⟨

,

⟩∈ lovesI1 =

{⟨,

⟩,

⟨,

⟩}I1 |= Person(romeo) because

romeoI1 = ∈ PersonI1 = ∆I1

I2 6|= loves(juliet, romeo) becauselovesI2 = < and julietI2 = 32 6< romeoI2 = 17

I2 6|= Person(romeo) becauseromeoI2 = 17 6∈ PersonI2 = {2, 4, 6, 8, 10, . . .}

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 32 / 42

Page 158: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Simplified RDF semantics

Validity in Interpretations, cont. (RDFS)

Given an interpretation I, define |= as follows:

I |= C v D iff CI ⊆ DI

I |= r v s iff rI ⊆ sI

I |= dom(r ,C ) iff dom rI ⊆ CI (i.e. for all 〈x , y〉 ∈ rI , we have x ∈ CI)I |= rg(r ,C ) iff rg rI ⊆ CI (i.e. for all 〈x , y〉 ∈ rI , we have y ∈ CI)Examples:

I1 |= Lover v Person because

LoverI1 =

{,

}⊆ PersonI1 =

{, ,

}I2 6|= Lover v Person becauseLoverI2 = N and PersonI2 = {2, 4, 6, 8, 10, . . .}

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 33 / 42

Page 159: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Simplified RDF semantics

Validity in Interpretations, cont. (RDFS)

Given an interpretation I, define |= as follows:I |= C v D iff CI ⊆ DI

I |= r v s iff rI ⊆ sI

I |= dom(r ,C ) iff dom rI ⊆ CI (i.e. for all 〈x , y〉 ∈ rI , we have x ∈ CI)I |= rg(r ,C ) iff rg rI ⊆ CI (i.e. for all 〈x , y〉 ∈ rI , we have y ∈ CI)Examples:

I1 |= Lover v Person because

LoverI1 =

{,

}⊆ PersonI1 =

{, ,

}I2 6|= Lover v Person becauseLoverI2 = N and PersonI2 = {2, 4, 6, 8, 10, . . .}

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 33 / 42

Page 160: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Simplified RDF semantics

Validity in Interpretations, cont. (RDFS)

Given an interpretation I, define |= as follows:I |= C v D iff CI ⊆ DI

I |= r v s iff rI ⊆ sI

I |= dom(r ,C ) iff dom rI ⊆ CI (i.e. for all 〈x , y〉 ∈ rI , we have x ∈ CI)I |= rg(r ,C ) iff rg rI ⊆ CI (i.e. for all 〈x , y〉 ∈ rI , we have y ∈ CI)Examples:

I1 |= Lover v Person because

LoverI1 =

{,

}⊆ PersonI1 =

{, ,

}I2 6|= Lover v Person becauseLoverI2 = N and PersonI2 = {2, 4, 6, 8, 10, . . .}

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 33 / 42

Page 161: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Simplified RDF semantics

Validity in Interpretations, cont. (RDFS)

Given an interpretation I, define |= as follows:I |= C v D iff CI ⊆ DI

I |= r v s iff rI ⊆ sI

I |= dom(r ,C ) iff dom rI ⊆ CI (i.e. for all 〈x , y〉 ∈ rI , we have x ∈ CI)

I |= rg(r ,C ) iff rg rI ⊆ CI (i.e. for all 〈x , y〉 ∈ rI , we have y ∈ CI)Examples:

I1 |= Lover v Person because

LoverI1 =

{,

}⊆ PersonI1 =

{, ,

}I2 6|= Lover v Person becauseLoverI2 = N and PersonI2 = {2, 4, 6, 8, 10, . . .}

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 33 / 42

Page 162: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Simplified RDF semantics

Validity in Interpretations, cont. (RDFS)

Given an interpretation I, define |= as follows:I |= C v D iff CI ⊆ DI

I |= r v s iff rI ⊆ sI

I |= dom(r ,C ) iff dom rI ⊆ CI (i.e. for all 〈x , y〉 ∈ rI , we have x ∈ CI)I |= rg(r ,C ) iff rg rI ⊆ CI (i.e. for all 〈x , y〉 ∈ rI , we have y ∈ CI)

Examples:

I1 |= Lover v Person because

LoverI1 =

{,

}⊆ PersonI1 =

{, ,

}I2 6|= Lover v Person becauseLoverI2 = N and PersonI2 = {2, 4, 6, 8, 10, . . .}

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 33 / 42

Page 163: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Simplified RDF semantics

Validity in Interpretations, cont. (RDFS)

Given an interpretation I, define |= as follows:I |= C v D iff CI ⊆ DI

I |= r v s iff rI ⊆ sI

I |= dom(r ,C ) iff dom rI ⊆ CI (i.e. for all 〈x , y〉 ∈ rI , we have x ∈ CI)I |= rg(r ,C ) iff rg rI ⊆ CI (i.e. for all 〈x , y〉 ∈ rI , we have y ∈ CI)Examples:

I1 |= Lover v Person because

LoverI1 =

{,

}⊆ PersonI1 =

{, ,

}I2 6|= Lover v Person becauseLoverI2 = N and PersonI2 = {2, 4, 6, 8, 10, . . .}

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 33 / 42

Page 164: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Simplified RDF semantics

Validity in Interpretations, cont. (RDFS)

Given an interpretation I, define |= as follows:I |= C v D iff CI ⊆ DI

I |= r v s iff rI ⊆ sI

I |= dom(r ,C ) iff dom rI ⊆ CI (i.e. for all 〈x , y〉 ∈ rI , we have x ∈ CI)I |= rg(r ,C ) iff rg rI ⊆ CI (i.e. for all 〈x , y〉 ∈ rI , we have y ∈ CI)Examples:

I1 |= Lover v Person because

LoverI1 =

{,

}⊆ PersonI1 =

{, ,

}I2 6|= Lover v Person becauseLoverI2 = N and PersonI2 = {2, 4, 6, 8, 10, . . .}

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 33 / 42

Page 165: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Simplified RDF semantics

Validity in Interpretations, cont. (RDFS)

Given an interpretation I, define |= as follows:I |= C v D iff CI ⊆ DI

I |= r v s iff rI ⊆ sI

I |= dom(r ,C ) iff dom rI ⊆ CI (i.e. for all 〈x , y〉 ∈ rI , we have x ∈ CI)I |= rg(r ,C ) iff rg rI ⊆ CI (i.e. for all 〈x , y〉 ∈ rI , we have y ∈ CI)Examples:

I1 |= Lover v Person because

LoverI1 =

{,

}⊆ PersonI1 =

{, ,

}

I2 6|= Lover v Person becauseLoverI2 = N and PersonI2 = {2, 4, 6, 8, 10, . . .}

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 33 / 42

Page 166: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Simplified RDF semantics

Validity in Interpretations, cont. (RDFS)

Given an interpretation I, define |= as follows:I |= C v D iff CI ⊆ DI

I |= r v s iff rI ⊆ sI

I |= dom(r ,C ) iff dom rI ⊆ CI (i.e. for all 〈x , y〉 ∈ rI , we have x ∈ CI)I |= rg(r ,C ) iff rg rI ⊆ CI (i.e. for all 〈x , y〉 ∈ rI , we have y ∈ CI)Examples:

I1 |= Lover v Person because

LoverI1 =

{,

}⊆ PersonI1 =

{, ,

}I2 6|= Lover v Person because

LoverI2 = N and PersonI2 = {2, 4, 6, 8, 10, . . .}

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 33 / 42

Page 167: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Simplified RDF semantics

Validity in Interpretations, cont. (RDFS)

Given an interpretation I, define |= as follows:I |= C v D iff CI ⊆ DI

I |= r v s iff rI ⊆ sI

I |= dom(r ,C ) iff dom rI ⊆ CI (i.e. for all 〈x , y〉 ∈ rI , we have x ∈ CI)I |= rg(r ,C ) iff rg rI ⊆ CI (i.e. for all 〈x , y〉 ∈ rI , we have y ∈ CI)Examples:

I1 |= Lover v Person because

LoverI1 =

{,

}⊆ PersonI1 =

{, ,

}I2 6|= Lover v Person becauseLoverI2 = N and PersonI2 = {2, 4, 6, 8, 10, . . .}

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 33 / 42

Page 168: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Simplified RDF semantics

Finding out stuff about Romeo and Juliet

The “Real World”Interpretations

I1

I217 32

I3

I4

Statements

loves(romeo, juliet)Lady(juliet)

Lady v Personloves v knows

dom(loves, Lover)rg(loves, Beloved)

loves(juliet, romeo)

Lover v Person

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 34 / 42

Page 169: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Simplified RDF semantics

Finding out stuff about Romeo and Juliet

The “Real World”Interpretations

I1

I217 32

I3

I4

Statements

loves(romeo, juliet)Lady(juliet)

Lady v Personloves v knows

dom(loves, Lover)rg(loves, Beloved)

loves(juliet, romeo)

Lover v Person

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 34 / 42

Page 170: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Simplified RDF semantics

Finding out stuff about Romeo and Juliet

The “Real World”Interpretations

I1

I217 32

I3

I4

Statements

loves(romeo, juliet)Lady(juliet)

Lady v Personloves v knows

dom(loves, Lover)rg(loves, Beloved)

loves(juliet, romeo)

Lover v Person

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 34 / 42

Page 171: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Simplified RDF semantics

Example: Range/Domain semantics

I2 |= dom(knows,Beloved)

because. . .

knowsI2 =≤= {〈x , y〉 | x ≤ y}Therefore, knowsI2 has domain

dom knowsI2 = dom ≤ = {x ∈ N | x ≤ y for some y ∈ N} = N

Furthermore,BelovedI2 = N

And thus:dom knowsI2 ⊆ BelovedI2

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 35 / 42

Page 172: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Simplified RDF semantics

Example: Range/Domain semantics

I2 |= dom(knows,Beloved)

because. . .

knowsI2 =≤= {〈x , y〉 | x ≤ y}

Therefore, knowsI2 has domain

dom knowsI2 = dom ≤ = {x ∈ N | x ≤ y for some y ∈ N} = N

Furthermore,BelovedI2 = N

And thus:dom knowsI2 ⊆ BelovedI2

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 35 / 42

Page 173: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Simplified RDF semantics

Example: Range/Domain semantics

I2 |= dom(knows,Beloved)

because. . .

knowsI2 =≤= {〈x , y〉 | x ≤ y}Therefore, knowsI2 has domain

dom knowsI2 = dom ≤ = {x ∈ N | x ≤ y for some y ∈ N} = N

Furthermore,BelovedI2 = N

And thus:dom knowsI2 ⊆ BelovedI2

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 35 / 42

Page 174: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Simplified RDF semantics

Example: Range/Domain semantics

I2 |= dom(knows,Beloved)

because. . .

knowsI2 =≤= {〈x , y〉 | x ≤ y}Therefore, knowsI2 has domain

dom knowsI2 = dom ≤ = {x ∈ N | x ≤ y for some y ∈ N} = N

Furthermore,BelovedI2 = N

And thus:dom knowsI2 ⊆ BelovedI2

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 35 / 42

Page 175: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Simplified RDF semantics

Example: Range/Domain semantics

I2 |= dom(knows,Beloved)

because. . .

knowsI2 =≤= {〈x , y〉 | x ≤ y}Therefore, knowsI2 has domain

dom knowsI2 = dom ≤ = {x ∈ N | x ≤ y for some y ∈ N} = N

Furthermore,BelovedI2 = N

And thus:dom knowsI2 ⊆ BelovedI2

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 35 / 42

Page 176: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Simplified RDF semantics

Interpretation of Sets of Triples

Given an interpretation I

And a set of triples A (any of the six kinds)A is valid in I, written

I |= A

iff I |= A for all A ∈ A.Then I is also called a model of A.Examples:

A = {loves(romeo, juliet), Lady(juliet), Lady v Person,loves v knows, dom(loves, Lover), rg(loves,Beloved)}

Then I1 |= A and I2 |= A

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 36 / 42

Page 177: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Simplified RDF semantics

Interpretation of Sets of Triples

Given an interpretation IAnd a set of triples A (any of the six kinds)

A is valid in I, writtenI |= A

iff I |= A for all A ∈ A.Then I is also called a model of A.Examples:

A = {loves(romeo, juliet), Lady(juliet), Lady v Person,loves v knows, dom(loves, Lover), rg(loves,Beloved)}

Then I1 |= A and I2 |= A

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 36 / 42

Page 178: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Simplified RDF semantics

Interpretation of Sets of Triples

Given an interpretation IAnd a set of triples A (any of the six kinds)A is valid in I, written

I |= A

iff I |= A for all A ∈ A.Then I is also called a model of A.Examples:

A = {loves(romeo, juliet), Lady(juliet), Lady v Person,loves v knows, dom(loves, Lover), rg(loves,Beloved)}

Then I1 |= A and I2 |= A

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 36 / 42

Page 179: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Simplified RDF semantics

Interpretation of Sets of Triples

Given an interpretation IAnd a set of triples A (any of the six kinds)A is valid in I, written

I |= A

iff I |= A for all A ∈ A.

Then I is also called a model of A.Examples:

A = {loves(romeo, juliet), Lady(juliet), Lady v Person,loves v knows, dom(loves, Lover), rg(loves,Beloved)}

Then I1 |= A and I2 |= A

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 36 / 42

Page 180: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Simplified RDF semantics

Interpretation of Sets of Triples

Given an interpretation IAnd a set of triples A (any of the six kinds)A is valid in I, written

I |= A

iff I |= A for all A ∈ A.Then I is also called a model of A.

Examples:

A = {loves(romeo, juliet), Lady(juliet), Lady v Person,loves v knows, dom(loves, Lover), rg(loves,Beloved)}

Then I1 |= A and I2 |= A

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 36 / 42

Page 181: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Simplified RDF semantics

Interpretation of Sets of Triples

Given an interpretation IAnd a set of triples A (any of the six kinds)A is valid in I, written

I |= A

iff I |= A for all A ∈ A.Then I is also called a model of A.Examples:

A = {loves(romeo, juliet), Lady(juliet), Lady v Person,loves v knows, dom(loves, Lover), rg(loves,Beloved)}

Then I1 |= A and I2 |= A

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 36 / 42

Page 182: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Simplified RDF semantics

Interpretation of Sets of Triples

Given an interpretation IAnd a set of triples A (any of the six kinds)A is valid in I, written

I |= A

iff I |= A for all A ∈ A.Then I is also called a model of A.Examples:

A = {loves(romeo, juliet), Lady(juliet), Lady v Person,loves v knows, dom(loves, Lover), rg(loves,Beloved)}

Then I1 |= A and I2 |= A

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 36 / 42

Page 183: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Simplified RDF semantics

Entailment

Given a set of triples A (any of the six kinds)

And a further triple T (also any kind)T is entailed by A, written A |= T

iff

For any interpretation I with I |= AI |= T .

A |= B iff I |= B for all I with I |= AExample:A = {. . . , Lady(juliet), Lady v Person, . . .} as beforeA |= Person(juliet) because. . .in any interpretation I. . .if julietI ∈ LadyI and LadyI ⊆ PersonI . . .then by set theory julietI ∈ PersonI

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 37 / 42

Page 184: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Simplified RDF semantics

Entailment

Given a set of triples A (any of the six kinds)And a further triple T (also any kind)

T is entailed by A, written A |= T

iff

For any interpretation I with I |= AI |= T .

A |= B iff I |= B for all I with I |= AExample:A = {. . . , Lady(juliet), Lady v Person, . . .} as beforeA |= Person(juliet) because. . .in any interpretation I. . .if julietI ∈ LadyI and LadyI ⊆ PersonI . . .then by set theory julietI ∈ PersonI

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 37 / 42

Page 185: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Simplified RDF semantics

Entailment

Given a set of triples A (any of the six kinds)And a further triple T (also any kind)T is entailed by A, written A |= T

iff

For any interpretation I with I |= AI |= T .

A |= B iff I |= B for all I with I |= AExample:A = {. . . , Lady(juliet), Lady v Person, . . .} as beforeA |= Person(juliet) because. . .in any interpretation I. . .if julietI ∈ LadyI and LadyI ⊆ PersonI . . .then by set theory julietI ∈ PersonI

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 37 / 42

Page 186: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Simplified RDF semantics

Entailment

Given a set of triples A (any of the six kinds)And a further triple T (also any kind)T is entailed by A, written A |= T

iff

For any interpretation I with I |= AI |= T .

A |= B iff I |= B for all I with I |= AExample:A = {. . . , Lady(juliet), Lady v Person, . . .} as beforeA |= Person(juliet) because. . .in any interpretation I. . .if julietI ∈ LadyI and LadyI ⊆ PersonI . . .then by set theory julietI ∈ PersonI

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 37 / 42

Page 187: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Simplified RDF semantics

Entailment

Given a set of triples A (any of the six kinds)And a further triple T (also any kind)T is entailed by A, written A |= T

iffFor any interpretation I with I |= A

I |= T .

A |= B iff I |= B for all I with I |= AExample:A = {. . . , Lady(juliet), Lady v Person, . . .} as beforeA |= Person(juliet) because. . .in any interpretation I. . .if julietI ∈ LadyI and LadyI ⊆ PersonI . . .then by set theory julietI ∈ PersonI

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 37 / 42

Page 188: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Simplified RDF semantics

Entailment

Given a set of triples A (any of the six kinds)And a further triple T (also any kind)T is entailed by A, written A |= T

iffFor any interpretation I with I |= AI |= T .

A |= B iff I |= B for all I with I |= AExample:A = {. . . , Lady(juliet), Lady v Person, . . .} as beforeA |= Person(juliet) because. . .in any interpretation I. . .if julietI ∈ LadyI and LadyI ⊆ PersonI . . .then by set theory julietI ∈ PersonI

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 37 / 42

Page 189: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Simplified RDF semantics

Entailment

Given a set of triples A (any of the six kinds)And a further triple T (also any kind)T is entailed by A, written A |= T

iffFor any interpretation I with I |= AI |= T .

A |= B iff I |= B for all I with I |= A

Example:A = {. . . , Lady(juliet), Lady v Person, . . .} as beforeA |= Person(juliet) because. . .in any interpretation I. . .if julietI ∈ LadyI and LadyI ⊆ PersonI . . .then by set theory julietI ∈ PersonI

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 37 / 42

Page 190: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Simplified RDF semantics

Entailment

Given a set of triples A (any of the six kinds)And a further triple T (also any kind)T is entailed by A, written A |= T

iffFor any interpretation I with I |= AI |= T .

A |= B iff I |= B for all I with I |= AExample:

A = {. . . , Lady(juliet), Lady v Person, . . .} as beforeA |= Person(juliet) because. . .in any interpretation I. . .if julietI ∈ LadyI and LadyI ⊆ PersonI . . .then by set theory julietI ∈ PersonI

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 37 / 42

Page 191: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Simplified RDF semantics

Entailment

Given a set of triples A (any of the six kinds)And a further triple T (also any kind)T is entailed by A, written A |= T

iffFor any interpretation I with I |= AI |= T .

A |= B iff I |= B for all I with I |= AExample:A = {. . . , Lady(juliet), Lady v Person, . . .} as before

A |= Person(juliet) because. . .in any interpretation I. . .if julietI ∈ LadyI and LadyI ⊆ PersonI . . .then by set theory julietI ∈ PersonI

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 37 / 42

Page 192: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Simplified RDF semantics

Entailment

Given a set of triples A (any of the six kinds)And a further triple T (also any kind)T is entailed by A, written A |= T

iffFor any interpretation I with I |= AI |= T .

A |= B iff I |= B for all I with I |= AExample:A = {. . . , Lady(juliet), Lady v Person, . . .} as beforeA |= Person(juliet) because. . .

in any interpretation I. . .if julietI ∈ LadyI and LadyI ⊆ PersonI . . .then by set theory julietI ∈ PersonI

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 37 / 42

Page 193: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Simplified RDF semantics

Entailment

Given a set of triples A (any of the six kinds)And a further triple T (also any kind)T is entailed by A, written A |= T

iffFor any interpretation I with I |= AI |= T .

A |= B iff I |= B for all I with I |= AExample:A = {. . . , Lady(juliet), Lady v Person, . . .} as beforeA |= Person(juliet) because. . .in any interpretation I. . .

if julietI ∈ LadyI and LadyI ⊆ PersonI . . .then by set theory julietI ∈ PersonI

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 37 / 42

Page 194: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Simplified RDF semantics

Entailment

Given a set of triples A (any of the six kinds)And a further triple T (also any kind)T is entailed by A, written A |= T

iffFor any interpretation I with I |= AI |= T .

A |= B iff I |= B for all I with I |= AExample:A = {. . . , Lady(juliet), Lady v Person, . . .} as beforeA |= Person(juliet) because. . .in any interpretation I. . .if julietI ∈ LadyI and LadyI ⊆ PersonI . . .

then by set theory julietI ∈ PersonI

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 37 / 42

Page 195: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Simplified RDF semantics

Entailment

Given a set of triples A (any of the six kinds)And a further triple T (also any kind)T is entailed by A, written A |= T

iffFor any interpretation I with I |= AI |= T .

A |= B iff I |= B for all I with I |= AExample:A = {. . . , Lady(juliet), Lady v Person, . . .} as beforeA |= Person(juliet) because. . .in any interpretation I. . .if julietI ∈ LadyI and LadyI ⊆ PersonI . . .then by set theory julietI ∈ PersonI

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 37 / 42

Page 196: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Simplified RDF semantics

Finding out stuff about Romeo and Juliet

The “Real World”Interpretations

I1

I217 32

I3

I4

Statements

loves(romeo, juliet)Lady(juliet)

Lady v Personloves v knows

dom(loves, Lover)rg(loves, Beloved)

Person(juliet)

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 38 / 42

Page 197: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Simplified RDF semantics

Finding out stuff about Romeo and Juliet

The “Real World”Interpretations

I1

I217 32

I3

I4

Statements

loves(romeo, juliet)Lady(juliet)

Lady v Personloves v knows

dom(loves, Lover)rg(loves, Beloved)

Person(juliet)

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 38 / 42

Page 198: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Simplified RDF semantics

Countermodels

If A 6|= T ,. . .then there is an I with

I |= AI 6|= T

Vice-versa: if I |= A and I 6|= T , then A 6|= T

Such an I is called a counter-model (for the assumption that A entails T )To show that A |= T does not hold:

Describe an interpretation I (using your fantasy)Prove that I |= A (using the semantics)Prove that I 6|= T (using the semantics)

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 39 / 42

Page 199: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Simplified RDF semantics

Countermodel Example

A as before:

A = {loves(romeo, juliet), Lady(juliet), Lady v Person,loves v knows, dom(loves, Lover), rg(loves,Beloved)}

Does A |= Lover v Beloved?Holds in I1 and I2.Try to find an interpretaion with ∆I = {a, b}, a 6= b.Interpret romeoI = a and julietI = b

Then 〈a, b〉 ∈ lovesI , a ∈ LoverI , b ∈ BelovedI .With LoverI = {a} and BelovedI = {b}, I 6|= Lover v Beloved !Choose

lovesI = knowsI = {〈a, b〉} LadyI = PersonI = {b}

to complete the counter-model while satisfying I |= AINF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 40 / 42

Page 200: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Simplified RDF semantics

Countermodels about Romeo and Juliet

The “Real World”Interpretations

I1

I217 32

I3a b

Statements

loves(romeo, juliet)Lady(juliet)

Lady v Personloves v knows

dom(loves, Lover)rg(loves, Beloved)

Lover v Beloved

6 Counter-model!

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 41 / 42

Page 201: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Simplified RDF semantics

Countermodels about Romeo and Juliet

The “Real World”Interpretations

I1

I217 32

I3a b

Statements

loves(romeo, juliet)Lady(juliet)

Lady v Personloves v knows

dom(loves, Lover)rg(loves, Beloved)

Lover v Beloved

6 Counter-model!

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 41 / 42

Page 202: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Simplified RDF semantics

Take aways

1 Model-theoretic semantics yields an unambigous notion of entailment,2 which is necessary in order to liberate data from applications.3 Shown today: A simplified semantics for parts of RDF

1 Only RDF/RDFS vocabulary to talk “about” predicates and classes2 Literals and blank nodes next time

Supplementary reading on RDF and RDFS semantics:

http://www.w3.org/TR/rdf-mt/

Section 3.2 in Foundations of SW Technologies

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 42 / 42

Page 203: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Simplified RDF semantics

Take aways

1 Model-theoretic semantics yields an unambigous notion of entailment,

2 which is necessary in order to liberate data from applications.3 Shown today: A simplified semantics for parts of RDF

1 Only RDF/RDFS vocabulary to talk “about” predicates and classes2 Literals and blank nodes next time

Supplementary reading on RDF and RDFS semantics:

http://www.w3.org/TR/rdf-mt/

Section 3.2 in Foundations of SW Technologies

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 42 / 42

Page 204: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Simplified RDF semantics

Take aways

1 Model-theoretic semantics yields an unambigous notion of entailment,2 which is necessary in order to liberate data from applications.

3 Shown today: A simplified semantics for parts of RDF1 Only RDF/RDFS vocabulary to talk “about” predicates and classes2 Literals and blank nodes next time

Supplementary reading on RDF and RDFS semantics:

http://www.w3.org/TR/rdf-mt/

Section 3.2 in Foundations of SW Technologies

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 42 / 42

Page 205: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Simplified RDF semantics

Take aways

1 Model-theoretic semantics yields an unambigous notion of entailment,2 which is necessary in order to liberate data from applications.3 Shown today: A simplified semantics for parts of RDF

1 Only RDF/RDFS vocabulary to talk “about” predicates and classes2 Literals and blank nodes next time

Supplementary reading on RDF and RDFS semantics:

http://www.w3.org/TR/rdf-mt/

Section 3.2 in Foundations of SW Technologies

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 42 / 42

Page 206: INF3580/4580–SemanticTechnologies–Spring2015 · INF3580/4580–SemanticTechnologies–Spring2015 Lecture8: RDFandRDFSsemantics MartinGiese 9thMarch2015 Departmentof Informatics

Simplified RDF semantics

Take aways

1 Model-theoretic semantics yields an unambigous notion of entailment,2 which is necessary in order to liberate data from applications.3 Shown today: A simplified semantics for parts of RDF

1 Only RDF/RDFS vocabulary to talk “about” predicates and classes2 Literals and blank nodes next time

Supplementary reading on RDF and RDFS semantics:

http://www.w3.org/TR/rdf-mt/

Section 3.2 in Foundations of SW Technologies

INF3580/4580 :: Spring 2015 Lecture 8 :: 9th March 42 / 42