Knowledge Representation for the Semantic Web

Similar documents
Knowledge Representation for the Semantic Web

CS Knowledge Representation and Reasoning (for the Semantic Web)

Semantics. KR4SW Winter 2011 Pascal Hitzler 1

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

SEMANTIC WEB 03 RDF DATA MODEL RESOURCE DESCRIPTION FRAMEWORK IMRAN IHSAN ASSISTANT PROFESSOR, AIR UNIVERSITY, ISLAMABAD

Semantic Web Modeling Languages Part I: RDF

Linking Data with RDF

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

Knowledge Representation for the Semantic Web

From the Web to the Semantic Web: RDF and RDF Schema

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

SPARQL: An RDF Query Language

RDF AND SPARQL. Part I: Basics of RDF. Dresden, August Sebastian Rudolph ICCL Summer School

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

Multi-agent and Semantic Web Systems: RDF Data Structures

Ontological Modeling: Part 2

Semantic Web Technologies

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

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

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

CS Knowledge Representation and Reasoning (for the Semantic Web)

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

FOUNDATIONS OF SEMANTIC WEB TECHNOLOGIES

RDF. Mario Arrigoni Neri

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

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

Semantic Web Fundamentals

Semantic Web and Python Concepts to Application development

What's New in RDF 1.1

EMERGING TECHNOLOGIES. XML Documents and Schemas for XML documents

RDF Next Version. Ivan Herman and Sandro Hawke W3C

RDF. Charlie Abela Department of Artificial Intelligence

RDF /RDF-S Providing Framework Support to OWL Ontologies

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

FOUNDATIONS OF SEMANTIC WEB TECHNOLOGIES

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

Chapter 13: Advanced topic 3 Web 3.0

Web 2.0 Lecture 8: Resource Description Framework

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

Semantic Web Knowledge Representation in the Web Context. CS 431 March 24, 2008 Carl Lagoze Cornell University

Multi-agent Semantic Web Systems: RDF Models

Semantic Web Technologies: Assignment 1. Axel Polleres Siemens AG Österreich

RESOURCES DESCRIPTION FRAMEWORK: RDF

Semantics. Matthew J. Graham CACR. Methods of Computational Science Caltech, 2011 May 10. matthew graham

Semantic Days 2011 Tutorial Semantic Web Technologies

Which Of The Following Is Not One Of The Built-in Data Types Of Xml Schema Definition

B4M36DS2, BE4M36DS2: Database Systems 2

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

Modify the following XML document so that it is also a valid RDF document:

RDF Schema Sebastian Rudolph

Table of Contents. iii

SRM UNIVERSITY. : Batch1: TP1102 Batch2: TP406

DCMI Abstract Model - DRAFT Update

OWL DL / Full Compatability

INF3580/4580 Semantic Technologies Spring 2015

RDF Schema Sebastian Rudolph

Proposal for Implementing Linked Open Data on Libraries Catalogue

Well-formed XML Documents

The Resource Description Framework and its Schema

DC-Text - a simple text-based format for DC metadata

Bridging the Gap between Semantic Web and Networked Sensors: A Position Paper

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

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

Semantic Web Technologies: RDF + RDFS

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

Language Specification

Intro to XML. Borrowed, with author s permission, from:

Semantic Web Information Management

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

Flat triples approach to RDF graphs in JSON

A Developer s Guide to the Semantic Web

Semantic Web. Ontology Pattern. Gerd Gröner, Matthias Thimm. Institute for Web Science and Technologies (WeST) University of Koblenz-Landau

RDF(S) Resource Description Framework (Schema)

PECULIARITIES OF LINKED DATA PROCESSING IN SEMANTIC APPLICATIONS. Sergey Shcherbak, Ilona Galushka, Sergey Soloshich, Valeriy Zavgorodniy

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

Resource Description Framework (RDF)

JSON-LD 1.0 Processing Algorithms and API

Transforming Data from into DataPile RDF Structure into RDF

> Semantic Web Use Cases and Case Studies

Knowledge Management with the WWW

CHAPTER 1 INTRODUCTION

Today s Plan. 1 Repetition: RDF. 2 Jena: Basic Datastructures. 3 Jena: Inspecting Models. 4 Jena: I/O. 5 Example. 6 Jena: ModelFactory and ModelMaker

Introduction to metadata cleansing using SPARQL update queries. April 2014 PwC EU Services

Today s Plan. 1 Repetition: RDF. 2 Jena: Basic Datastructures. 3 Jena: Inspecting Models. 4 Jena: I/O. 5 Example. 6 Jena: ModelFactory and ModelMaker

The Semantic Web DEFINITIONS & APPLICATIONS

Simplified RDF Syntax for Power System Model Exchange

Library of Congress BIBFRAME Pilot. NOTSL Fall Meeting October 30, 2015

Integrating OWL and Rules: A Syntax Proposal for Nominal Schemas

MI-PDB, MIE-PDB: Advanced Database Systems

Comp 336/436 - Markup Languages. Fall Semester Week 4. Dr Nick Hayward

Semi-structured Data. 8 - XPath

Semantic Web Systems Introduction Jacques Fleuriot School of Informatics

Building Blocks of Linked Data

Semantic Technologies and CDISC Standards. Frederik Malfait, Information Architect, IMOS Consulting Scott Bahlavooni, Independent

2. RDF Semantic Web Basics Semantic Web

XML Metadata Standards and Topic Maps

Informatics 1: Data & Analysis

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

12th ICCRTS. On the Automated Generation of an OWL Ontology based on the Joint C3 Information Exchange Data Model (JC3IEDM)

2. Knowledge Representation Applied Artificial Intelligence

Transcription:

Knowledge Representation for the Semantic Web Winter Quarter 2012 Pascal Hitzler Slides 2 01/05/2011 Kno.e.sis Center Wright State University, Dayton, OH http://www.knoesis.org/pascal/ KR4SW Winter 2012 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 2012 Pascal Hitzler 2

Today: RDF syntax KR4SW Winter 2012 Pascal Hitzler 3

Today s Session: RDF 1. Motivation 2. Triples and Graphs 3. RDF syntaxes: Turtle and RDF/XML 4. Datatypes 5. n-ary relationships 6. Empty nodes 7. Lists 8. Class project 9. Class presentation KR4SW Winter 2012 Pascal Hitzler 4

Two XML Problems How do you encode the piece of knowledge The book FOST is published by CRC Press <book> <title>fost</title> <publisher>crc Press</publisher> </book> <publisher> <name>crc Press</name> <book><title>fost</title><book> </publisher> etc. KR4SW Winter 2012 Pascal Hitzler 5

Two XML Problems Merging trees is rather cumbersome and the result isn t always clear. <publisher> <name>crc Press</name> <book><title>fost</title><book> </publisher> <book> <title>semantic Web</title> <publisher>springer</publisher> </book> KR4SW Winter 2012 Pascal Hitzler 6

RDF idea Use (directed) graphs as data model KR4SW Winter 2012 Pascal Hitzler 7

RDF Resource Description Framework W3C Recommendation 2004 http://www.w3.org/rdf/ RDF is a data model originally for describing metadata for web pages, but has grown beyond that structured information universal, machine-readable data exchange format main syntax uses XML for serialization KR4SW Winter 2012 Pascal Hitzler 8

Table of contents: RDF 1. Motivation 2. Triples and Graphs 3. RDF syntaxes: Turtle and RDF/XML 4. Datatypes 5. n-ary relationships 6. Empty nodes 7. Lists 8. Class project 9. Class presentation KR4SW Winter 2012 Pascal Hitzler 9

RDF components URIs for referencing resources Literals data values Empty nodes talking about something which doesn t have a name (or the name of which isn t known) KR4SW Winter 2012 Pascal Hitzler 10

Literals for representing data values encoded as strings interpreted by means of datatypes literals without datatype are treated the same as strings KR4SW Winter 2012 Pascal Hitzler 11

Graphs as sets of triples there are several possibilities for representing graphs we use: graph as list of (node-edge-node) triples KR4SW Winter 2012 Pascal Hitzler 12

RDF triples An RDF triple consists of Subject Predicate Object (borrowed from linguistics) allowed are: In the subject : URIs and empty nodes In the predicate: URIs (usually called properties) In the object: URIs and empty nodes and literals Note that the graph can be reconstructed from the list of triples. KR4SW Winter 2012 Pascal Hitzler 13

Table of contents : RDF 1. Motivation 2. Triples and Graphs 3. RDF syntaxes: Turtle and RDF/XML 4. Datatypes 5. n-ary relationships 6. Empty nodes 7. Lists 8. Class project 9. Class presentation KR4SW Winter 2012 Pascal Hitzler 14

Turtle Terse RDF Triple Language simple syntax for RDF triples are directly listed as such URIs are in <angle brackets> Literals are enclosed in quotes triples end with a full-stop. whitespace (blanks, line feeds) is ignored KR4SW Winter 2012 Pascal Hitzler 15

Turtle shortcuts for prefixes KR4SW Winter 2012 Pascal Hitzler 16

Turtle grouping of triples with the same subject grouping of triples with same subject and predicate KR4SW Winter 2012 Pascal Hitzler 17

XML syntax for RDF Turtle is easy to read and write But XML is the basis for data transfer on the web There s a lot of tool (and programming library) support for XML Hence, the main syntax for RDF is XML-based. Turtle is not a W3C recommendation The normative syntax for RDF is it s XML syntax KR4SW Winter 2012 Pascal Hitzler 18

XML syntax for RDF namespaces are used for disambiguating tags tags belonging to the RDF language come with a fixed namespace, usually abbreviated rdf KR4SW Winter 2012 Pascal Hitzler 19

XML syntax for RDF subject node URI of the subject property object node URI of the object KR4SW Winter 2012 Pascal Hitzler 20

XML syntax for RDF Untyped literals can be left as free text A subject can contain several property elements Object-descriptions can be used as subject-descriptions for further triples KR4SW Winter 2012 Pascal Hitzler 21

XML syntax for RDF Equivalent representation of literals using XML attributes the attribute-name is then the property-uri Equivalent representation of objects by giving their URIs as value of a rdf:resource attribute within a property tag. KR4SW Winter 2012 Pascal Hitzler 22

XML syntax for RDF The use of namespaces is essential since the use of the colon : in XML attributes is not allowed unless it is used with a namespace. Problem: namespaces cannot be used in values of XML attributes: is wrong since book would be interpreted in the sense of a URI schema. Solution: use XML ENTITYs. KR4SW Winter 2012 Pascal Hitzler 23

XML Syntax for RDF Use of the base namespace KR4SW Winter 2012 Pascal Hitzler 24

Table of contents : RDF 1. Motivation 2. Triples and Graphs 3. RDF syntaxes: Turtle and RDF/XML 4. Datatypes 5. n-ary relationships 6. Empty nodes 7. Lists 8. Class project 9. Class presentation KR4SW Winter 2012 Pascal Hitzler 25

Datatypes in RDF KR4SW Winter 2012 Pascal Hitzler 26

Datatypes usually use of XML Schema datatype Note that the same data value can have different representations: 3.14 ^^xsd:decimal is the same as +03.14 ^^xsd:decimal but 3.14 ^^xsd:string is not the same as +03.14 ^^xsd:string there is only one required datatype in RDF, called rdf:xmlliteral arbitrary (balanced) XML fragments special syntax: KR4SW Winter 2012 Pascal Hitzler 27

Table of contents : RDF 1. Motivation 2. Triples and Graphs 3. RDF syntaxes: Turtle and RDF/XML 4. Datatypes 5. n-ary relationships 6. Empty nodes 7. Lists 8. Class project 9. Class presentation KR4SW Winter 2012 Pascal Hitzler 28

What is wrong with these? KR4SW Winter 2012 Pascal Hitzler 29

It s a ternary relationship! KR4SW Winter 2012 Pascal Hitzler 30

Table of contents : RDF 1. Motivation 2. Triples and Graphs 3. RDF syntaxes: Turtle and RDF/XML 4. Datatypes 5. n-ary relationships 6. Empty nodes 7. Lists 8. Class project 9. Class presentation KR4SW Winter 2012 Pascal Hitzler 31

It doesn t need a name :) KR4SW Winter 2012 Pascal Hitzler 32

Blank nodes syntax shortcut: KR4SW Winter 2012 Pascal Hitzler 33

Blank nodes syntax Turtle: KR4SW Winter 2012 Pascal Hitzler 34

Blank nodes syntax shortcut: KR4SW Winter 2012 Pascal Hitzler 35

Table of contents : RDF 1. Motivation 2. Triples and Graphs 3. RDF syntaxes: Turtle and RDF/XML 4. Datatypes 5. n-ary relationships 6. Empty nodes 7. Lists 8. Class project 9. Class presentation KR4SW Winter 2012 Pascal Hitzler 36

Open lists (containers) KR4SW Winter 2012 Pascal Hitzler 37

Types of containers open : new elements can be added. rdf:seq ordered list rdf:bag unordered set rdf:alt set of alternatives Lists are actually hardly reflected in the formal semantics (more about this later) KR4SW Winter 2012 Pascal Hitzler 38

Closed lists (collections) KR4SW Winter 2012 Pascal Hitzler 39

Closed lists (collections) KR4SW Winter 2012 Pascal Hitzler 40

Comparison KR4SW Winter 2012 Pascal Hitzler 41

Table of contents : RDF 1. Motivation 2. Triples and Graphs 3. RDF syntaxes: Turtle and RDF/XML 4. Datatypes 5. n-ary relationships 6. Empty nodes 7. Lists 8. Class project 9. Class presentation KR4SW Winter 2012 Pascal Hitzler 42

Class project status Domains: cartoons resume/cv vehicles video games KR4SW Winter 2012 Pascal Hitzler 43

Class project: next step re-check your taxonomy for correctness! add ca. 10 instances to your taxonomy Human Man Woman pascal anne merula add ca. 8 subject-predicate-object triples to your taxonomy, reusing the instances you created, and inventing suitable predicates (RDF properties). Use Turtle syntax for these. anne motherof merula. introduce changes to your ontology in whatever way needed document briefly what you have done and why (in particular if you find bugs! send to me by Monday 9pm KR4SW Winter 2012 Pascal Hitzler 44

Table of contents : RDF 1. Motivation 2. Triples and Graphs 3. RDF syntaxes: Turtle and RDF/XML 4. Datatypes 5. n-ary relationships 6. Empty nodes 7. Lists 8. Class project 9. Class presentation KR4SW Winter 2012 Pascal Hitzler 45

Class presentations nothing yet KR4SW Winter 2012 Pascal Hitzler 46

Class planning (tentative) Tuesday 10 th of January: RDF Schema Thursday 12 th of January: RDF and RDFS Semantics Tuesday 17 th of January: Exercise Session KR4SW Winter 2012 Pascal Hitzler 47