Knowledge Representation for the Semantic Web

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

Semantics. KR4SW Winter 2011 Pascal Hitzler 1

Knowledge Representation for the Semantic Web

FOUNDATIONS OF SEMANTIC WEB TECHNOLOGIES

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

FOUNDATIONS OF SEMANTIC WEB TECHNOLOGIES

RDF Schema Sebastian Rudolph

RDF Schema Sebastian Rudolph

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

Semantic Web Modeling Languages Part I: RDF

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

Knowledge Representation for the Semantic Web

Resource Description Framework (RDF)

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

CS Knowledge Representation and Reasoning (for the Semantic Web)

RDF Semantics A graph-based approach

RDF Semantics by Patrick Hayes W3C Recommendation

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

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

Semantic Web Technologies: RDF + RDFS

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

LECTURE 09 RDF: SCHEMA - AN INTRODUCTION

Semantic Web Technologies

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

RDF Schema. Mario Arrigoni Neri

The Resource Description Framework and its Schema

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

An RDF-based Distributed Expert System

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

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

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

Unit 2 RDF Formal Semantics in Detail

Chapter 3. RDF Schema

INF3580 Semantic Technologies Spring 2012

RDF(S) Resource Description Framework (Schema)

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

A Fuzzy Semantics for the Resource Description Framework

SPARQL: An RDF Query Language

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

Semantic Web Fundamentals

Building Blocks of Linked Data

INF3580/4580 Semantic Technologies Spring 2017

Open Geospatial Consortium Inc.

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

INF3580/4580 Semantic Technologies Spring 2017

WebPIE: A Web-scale parallel inference engine using MapReduce

Ontological Modeling: Part 2

Scalable Distributed Reasoning using MapReduce

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

Chapter 2 Technical Background. Materializing the Web of Linked Data

RDF and RDF Schema. Resource Description Framework

Semantic Web Test

OWL DL / Full Compatability

FOUNDATIONS OF SEMANTIC WEB TECHNOLOGIES

Schema-Agnostic Query Rewriting in SPARQL 1.1

jcel: A Modular Rule-based Reasoner

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

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

RDFS. Suresh Manandhar* & Dimitar Kazakov

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

A Relaxed Approach to RDF Querying

RDF Data Management: Reasoning on Web Data

Semantic Web Services and OOP toward Unified Services

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

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

Materializing the Web of Linked Data

Linking Data with RDF

Semantic Web Engineering

Knowledge Management with the WWW

An Introduction to the Semantic Web. Jeff Heflin Lehigh University

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

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

Semantic Web OWL. Dieter Fensel and Federico Facca

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

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

2. RDF Semantic Web Basics Semantic Web

Making BioPAX SPARQL

Evaluating Class Assignment Semantic Redundancy on Linked Datasets

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

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

Linguaggi Logiche e Tecnologie per la Gestione Semantica dei testi

Resource Description Framework (RDF) Nicholas Gibbins and Nigel Shadbolt

TopBraid Composer. Getting Started Guide. Version 5.2. September 21, TopBraid Composer, Copyright TopQuadrant, Inc.

On Web-scale Reasoning

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

Main topics: Presenter: Introduction to OWL Protégé, an ontology editor OWL 2 Semantic reasoner Summary TDT OWL

SRM UNIVERSITY. : Batch1: TP1102 Batch2: TP406

RDF /RDF-S Providing Framework Support to OWL Ontologies

Part II. Representation of Meta-Information

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

Semistructured Data Management Part 3 (Towards the) Semantic Web

Deep integration of Python with Semantic Web technologies

6. RDFS Modeling Patterns Semantic Web

Semantic Web for Earth and Environmental Terminology (SWEET) Status, Future Development and Community Building

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

CC LA WEB DE DATOS PRIMAVERA Lecture 3: RDF Semantics and Schema. Aidan Hogan

BUILDING THE SEMANTIC WEB

RDF. Charlie Abela Department of Artificial Intelligence

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

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

Transcription:

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

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

Today: RDF syntax RDF Schema KR4SW Winter 2011 Pascal Hitzler 3

Today s Session: RDF Schema 1. Motivation 2. Classes and Class Hierarchies 3. Properties and Property Hierarchies 4. Property Restrictions 5. Open Lists Revisited 6. Reification 7. Supplementary Information in RDFS 8. Simple Ontologies in RDFS 9. Class project 10. Class presentations KR4SW Winter 2011 Pascal Hitzler 4

Motivation RDF allows to express facts Anne is the mother of Merula But we d like to be able to express more generic knowledge Mothers are female If somebody has a daughter then that person is a parent This kind of knowledge is often called schema knowledge or terminological knowledge. RDF Schema allows us to do some schema knowledge modeling. OWL (discussed later) gives even more expressivity. KR4SW Winter 2011 Pascal Hitzler 5

RDF Schema (RDFS) part of the W3C Recommendation RDF for schema/terminological knowledge uses RDF vocabulary with pre-defined semantics every RDFS document is an RDF document Namespace: http://www.w3.org/2000/01/rdf-schema# - usually abbreviated by rdfs: vocabulary is generic, not bound to a specific application area allows to (partially) specify the semantics of other/userdefined vocabularies (it s a kind of meta vocabulary) hence, RDF software correctly interprets each vocabulary defined using RDF Schema KR4SW Winter 2011 Pascal Hitzler 6

Today s Session: RDF Schema 1. Motivation 2. Classes and Class Hierarchies 3. Properties and Property Hierarchies 4. Property Restrictions 5. Open Lists Revisited 6. Reification 7. Supplementary Information in RDFS 8. Simple Ontologies in RDFS 9. Class project 10. Class presentations KR4SW Winter 2011 Pascal Hitzler 7

Classes and Instances Classes stand for sets of things. In RDF: Sets of URIs. book:uri is a member of the class ex:textbook a URI can belong to several classes classes can be arranged in hierarchies: each textbook is a book KR4SW Winter 2011 Pascal Hitzler 8

Pre-defined classes every URI denoting a class is a member of rdfs:class this also makes rdfs:class a member of rdfs:class (!) rdfs:resource (class of all URIs) rdf:property (class of all properties) rdf:xmlliteral rdfs:literal (each datatype is a subclass) rdf:bag, rdf:alt, rdf:seq, rdfs:container, rdf:list, rdf:nil, rdfs:containermembershipproperty (see later) rdfs:datatype (contains all datatypes a class of classes) rdf:statement (see later) KR4SW Winter 2011 Pascal Hitzler 9

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

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

Using implicit knowledge Ontology (Knowledge Base) e.g. RDF or OWL online Used like a database Reasoner (accesses implicit knowledge) Application KR4SW Winter 2011 Pascal Hitzler 12

Using implicit knowledge Ontology (Knowledge Base) e.g. RDF or OWL Reasoner (produces implicit knowledge) offline Used like a database Completed (materialized) knowledge base Application KR4SW Winter 2011 Pascal Hitzler 13

Class equivalence I.e. rdfs:subclassof is reflexive. KR4SW Winter 2011 Pascal Hitzler 14

Classes and RDF/XML syntax is short for KR4SW Winter 2011 Pascal Hitzler 15

Today s Session: RDF Schema 1. Motivation 2. Classes and Class Hierarchies 3. Properties and Property Hierarchies 4. Property Restrictions 5. Open Lists Revisited 6. Reification 7. Supplementary Information in RDFS 8. Simple Ontologies in RDFS 9. Class project 10. Class presentations KR4SW Winter 2011 Pascal Hitzler 16

Property Hierarchies From and we can infer that KR4SW Winter 2011 Pascal Hitzler 17

Today s Session: RDF Schema 1. Motivation 2. Classes and Class Hierarchies 3. Properties and Property Hierarchies 4. Property Restrictions 5. Open Lists Revisited 6. Reification 7. Supplementary Information in RDFS 8. Simple Ontologies in RDFS 9. Class project 10. Class presentations KR4SW Winter 2011 Pascal Hitzler 18

Property Restrictions Allow to state that a certain property can only be between things of a certain rdf:type. E.g. when a is married to b, then both a and b are Persons. Expressed by rdfs:domain and rdfs:range: And similarly for datatypes: KR4SW Winter 2011 Pascal Hitzler 19

Pitfalls 1 states that everything in the rdfs:range of ex:authorof is both a ex:textbook and a ex:storybook! KR4SW Winter 2011 Pascal Hitzler 20

Pitfalls 2 A logical consequence of this is KR4SW Winter 2011 Pascal Hitzler 21

Today s Session: RDF Schema 1. Motivation 2. Classes and Class Hierarchies 3. Properties and Property Hierarchies 4. Property Restrictions 5. Open Lists Revisited 6. Reification 7. Supplementary Information in RDFS 8. Simple Ontologies in RDFS 9. Class project 10. Class presentations KR4SW Winter 2011 Pascal Hitzler 22

Open Lists revisited New class: rdfs:container as superclass of rdf:seq, rdf:bag, rdf:alt. New class: rdfs:containermembershipproperty containing the properties used with containers, e.g. KR4SW Winter 2011 Pascal Hitzler 23

Open Lists revisited New property rdfs:member Is superproperty of all properties contained in rdfs:containermembershipproperty. The RDFS semantics specifies: From and the following is inferred: KR4SW Winter 2011 Pascal Hitzler 24

Today s Session: RDF Schema 1. Motivation 2. Classes and Class Hierarchies 3. Properties and Property Hierarchies 4. Property Restrictions 5. Open Lists Revisited 6. Reification 7. Supplementary Information in RDFS 8. Simple Ontologies in RDFS 9. Class project 10. Class presentations KR4SW Winter 2011 Pascal Hitzler 25

Talking about triples How do you state in RDF: The detective supposes that the butler killed the gardener. unsatisfactory: We would really like to talk about the triple KR4SW Winter 2011 Pascal Hitzler 26

Talking about triples How to do it properly in RDFS: Note however, that the following is not a logical consequence of this: One would usually use a blank node instead of ex:theory. KR4SW Winter 2011 Pascal Hitzler 27

A reification puzzle You know that story? It s in the old testament :) KR4SW Winter 2011 Pascal Hitzler 28

Today s Session: RDF Schema 1. Motivation 2. Classes and Class Hierarchies 3. Properties and Property Hierarchies 4. Property Restrictions 5. Open Lists Revisited 6. Reification 7. Supplementary Information in RDFS 8. Simple Ontologies in RDFS 9. Class project 10. Class presentations KR4SW Winter 2011 Pascal Hitzler 29

Supplementary information comments etc. which are not part of the actual ontology, but are for the human reader/user/developer in RDF, we also use triples to encode these i.e. we have a set of pre-defined properties which do this job rdfs:label: e.g. to give a human-readable name for a URI rdfs:comment: used for lengthy commentary/explanatory text rdfs:seealso, rdfs:definedby: properties pointing to URIs where further information or definitions can be found KR4SW Winter 2011 Pascal Hitzler 30

Supplementary Information example KR4SW Winter 2011 Pascal Hitzler 31

Today s Session: RDF Schema 1. Motivation 2. Classes and Class Hierarchies 3. Properties and Property Hierarchies 4. Property Restrictions 5. Open Lists Revisited 6. Reification 7. Supplementary Information in RDFS 8. Simple Ontologies in RDFS 9. Class project 10. Class presentations KR4SW Winter 2011 Pascal Hitzler 32

An example ontology KR4SW Winter 2011 Pascal Hitzler 33

The same as graph KR4SW Winter 2011 Pascal Hitzler 34

Note the multiple views: XML KR4SW Winter 2011 Pascal Hitzler 35

Note the multiple views: RDF KR4SW Winter 2011 Pascal Hitzler 36

Note the multiple views: RDF Schema KR4SW Winter 2011 Pascal Hitzler 37

Today s Session: RDF Schema 1. Motivation 2. Classes and Class Hierarchies 3. Properties and Property Hierarchies 4. Property Restrictions 5. Open Lists Revisited 6. Reification 7. Supplementary Information in RDFS 8. Simple Ontologies in RDFS 9. Class project 10. Class presentations KR4SW Winter 2011 Pascal Hitzler 38

Type separation When is something an instance? When is something a class? Father rdf:type SocialRole. Pascal rdf:type Father. What about triples like the following? Parasite hashostorganism LivingThing. LeapYear isfollowedby NonLeapYear. These all are valid RDF triples, and it s also valid RDFS. But what does it mean? KR4SW Winter 2011 Pascal Hitzler 39

Type separation It s usually good to clearly separate types (as long as it s feasible) and only break this if really needed. Types: instances, properties, classes Reason: The semantics is clearer. <instance> rdf:type <class> <instance> someproperty <instance> <class> rdfs:subclassof <class> <property> rdfs:subpropertyof <property> In OWL 1 DL, type separation was strictly enforced. In OWL 2 DL, it s more relaxed, but the semantics is different. We ll talk more about this in the OWL sessions. KR4SW Winter 2011 Pascal Hitzler 40

Class project: next step keep bugfixing extend, where necessary, your ontology so that it makes a correct use of each of the following (each at least once): rdf:datatype rdfs:subpropertyof for each property in your ontology, add triples which give their rdfs:domain and rdfs:range. write up your ontology in RDF Turtle syntax and group axioms in such a way that it s easy to keep an overview of the contents. send to me by next Tuesday the Turtle file as.txt file (validator: http://www.rdfabout.com/demo/validator/) brief notes with lessons learned from this round of modeling (including the bugfixing) KR4SW Winter 2011 Pascal Hitzler 41

Today s Session: RDF Schema 1. Motivation 2. Classes and Class Hierarchies 3. Properties and Property Hierarchies 4. Property Restrictions 5. Open Lists Revisited 6. Reification 7. Supplementary Information in RDFS 8. Simple Ontologies in RDFS 9. Class project 10. Class presentations KR4SW Winter 2011 Pascal Hitzler 42

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

Class Planning Thursday 13 th of January: RDFS Part I Tuesday 18 th of January: Exercise Session Thursday 20 th of January: RDF and RDFS Semantics Estimated breakdown of sessions: Intro + XML: 2 RDF: 3 OWL and Logic: 6 SPARQL and Querying: 2 Class Presentations: 3 Exercise sessions: 3 KR4SW Winter 2011 Pascal Hitzler 44