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

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

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

Semantic Web Technologies: RDF + RDFS

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

RDF Schema. Mario Arrigoni Neri

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

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

Chapter 3. RDF Schema

Resource Description Framework (RDF)

An RDF-based Distributed Expert System

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

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

RDF(S) Resource Description Framework (Schema)

FOUNDATIONS OF SEMANTIC WEB TECHNOLOGIES

FOUNDATIONS OF SEMANTIC WEB TECHNOLOGIES

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

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

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

Semantic Web Engineering

RDF /RDF-S Providing Framework Support to OWL Ontologies

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

Semantic Web Fundamentals

Opus: University of Bath Online Publication Store

The Resource Description Framework and its Schema

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

LECTURE 09 RDF: SCHEMA - AN INTRODUCTION

Knowledge Representation for the Semantic Web

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

RDF Semantics A graph-based approach

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

The Semantic Web. Mansooreh Jalalyazdi

RDF Schema Sebastian Rudolph

RDF Semantics by Patrick Hayes W3C Recommendation

RDFS. Suresh Manandhar* & Dimitar Kazakov

What is the Semantic Web?

RDF. Charlie Abela Department of Artificial Intelligence

Introduction to Ontologies

The Semantic Web Revisited. Nigel Shadbolt Tim Berners-Lee Wendy Hall

Semantic Web Technologies

Opus: University of Bath Online Publication Store

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

Web 2.0 Lecture 8: Resource Description Framework

SWAD-Europe Deliverable 8.1 Core RDF Vocabularies for Thesauri

Part II. Representation of Meta-Information

Adding formal semantics to the Web

RDF and RDF Schema. Resource Description Framework

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

Metadata Standards and Applications. 4. Metadata Syntaxes and Containers

RDF Schema Sebastian Rudolph

CS Knowledge Representation and Reasoning (for the Semantic Web)

Chapter 13: Advanced topic 3 Web 3.0

Semistructured Data Management Part 3 (Towards the) Semantic Web

Describing Structure and Semantics of Graphs Using an RDF Vocabulary

Building Blocks of Linked Data

Design and Implementation of an RDF Triple Store

Semistructured Data Management Part 3 (Towards the) Semantic Web

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

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

BUILDING THE SEMANTIC WEB

An Introduction to the Semantic Web. Jeff Heflin Lehigh University

Knowledge Representation for the Semantic Web

RDF. Mario Arrigoni Neri

Open Geospatial Consortium Inc.

Short notes about OWL 1

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

Validating CC/PP and UAProf Profiles

TRIPLE An RDF Query, Inference, and Transformation Language

2. Knowledge Representation Applied Artificial Intelligence

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

SWAD-Europe Deliverable 8.3: RDF Encoding of Multilingual Thesauri

Semistructured Data Management Part 3 (Towards the) Semantic Web

2. RDF Semantic Web Basics Semantic Web

Semantic Web and Linked Data

Knowledge Management with the WWW

INF3580 Semantic Technologies Spring 2012

Metadata on the Web. Miroslav Milinovic SRCE Zagreb, Croatia 4th CARNet Users Conference CUC 2002, Zagreb, September, 2002

1 Introduction ). [Fensel et al., 2000b]

Semantic Web Technologies: Web Ontology Language

Ontologies aka: your metadata elements

Semantic Web Modeling Languages Part I: RDF

The Semantic Web. What is the Semantic Web?

CWI. Multimedia on the Semantic Web. Jacco van Ossenbruggen, Lynda Hardman, Frank Nack. Multimedia and Human-Computer Interaction CWI, Amsterdam

Graphic technology Extensible metadata platform (XMP) Part 2: Description of XMP schemas using RELAX NG

Answers for Practice Number 3

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

Big Data 14. Graph Databases

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

Semantic Web Engineering

Semantic Days 2011 Tutorial Semantic Web Technologies

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

The Semantic Web. INF5100 Autumn 2007 Norun C. Sanderson

INF3580/4580 Semantic Technologies Spring 2017

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

Interoperability of Protégé using RDF(S) as Interchange Language

Semantic Web Test

RESOURCES DESCRIPTION FRAMEWORK: RDF

Deep integration of Python with Semantic Web technologies

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

Quang Vu DANG. Computer Science Department Institut Telecom SudParis

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

Transcription:

Knowledge management RDF and RDFS 1

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

Semantic Web The Web today: Documents for humans. Problem: hard to machine-process on a semantic level. Vision: i Make the information i in the Web machineprocessable, for intelligent services, better user interaction and autonomous agents Realization idea: Semantic annotation of objects + query and reasoning mechanisms Requirement: machine-processable languages g for annotation and representation reasoning tools and a naming mechanism 3

Metadata Metadata describes other data ( Data about Data ) One application s metadata is another application s data Metadata can itself be described by metadata (but that doesn t make it meta-metadata) Metadata is useful e.g A lot could be gained from structured description of pages, servers, search services, and other resources Example(s): a library catalogue contains information (metadata) about publications (data) a file system maintains permissions (metadata) about files (data) 4

Resource Description Framework (RDF) RDF is a family of World Wide Web Consortium (W3C) specifications originally designed as a metadata model but which has come to be used as a general method of modeling information, through a variety of syntax formats. Source: Wikipedia RDF is a standard d syntax to represent (edge labeled) directed graphs in XML 5

Why use RDF? Improve on HTML and XML Machine understandable metadata Support structured values Base for a variety of descriptions: cataloging cataloging, privacy, accessibility, IPR,... Store and query metadata 6

An abstract formalism What is RDF? A directed d graph data model A set of binary statements ("triples") Subject Predicate Object RDF can be used to encode ontologies 7

A relational database What is RDF not? A (database) management system A query language A file A new version of HTML or XML 8

Resources Properties Literal values RDF Elements Statements (Assertions) Resource Property Resource Resource Property Literal Namespaces (disambiguation of homonym identifiers) 9

RDF Model Primitives Resource Property Type Value Statement Spring 2010 mark.baker@computer.org 10

Simple Example Resource Author Mark Spring 2010 mark.baker@computer.org 11

Simple Example Page.html creator Mark title Mark s Homepage Spring 2010 mark.baker@computer.org 12

RDF Resources Almost everything is a resource RDF stores statements about resources: Tangible things of the real world Electronic objects Abstract ideas such as classes/topics/... Resources are identified by URIs URIs are rigid designators in a global l domain 13

Attributes about RDF Description refers to a URI of an existing resource ID signals the creation of a new resource <?xml version="1.0"?> <rdf:rdf xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> <rdf:description rdf:about="http://www.www.fr/">... </rdf:description> <rdf:description rdf:id="myid">... </rdf:description> </rdf:rdf> 14

RDF Resource <rdf:description rdf:about="http://www.w3.org/tr/rdfsyntax-grammar"> <ex:editor> <rdf:description> <ex:homepage> <rdf:description rdf:about="http://purl.org/net/dajobe/"> </rdf:description> </ex:homepage> </rdf:description> </ex:editor> </rdf:description> 15

RDF properties Properties Properties: special kind of resources A specific aspect, characteristic, attribute, or relation used to describe a resource or binary relations between two resources E.g., WorkFor, hasauthor, father-of 16

RDF properties Property names must be associated with a schema Qualify property names with a namespace prefix Example: <?xml version="1.0"?> <rdf:rdf xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc="http://purl.org/dc/elements/1.1/"> <rdf:description about="http://www.www.fr/"> <dc:creator>myid</dc:creator> </rdf:description> </rdf:rdf> 17

RDF literals Literals Concrete data values E.g John Smith, 1, 2005-03-07 03 07 Literal values are data Untyped literals are just strings Typed literals borrow from XML Schema Datatypes: String, date, float 18

RDF Literal <rdf:description rdf:about="http://www.w3.org/tr/rdf- syntax-grammar"> <dc:title>"rdf Syntax Specification"</dc:title> <ex:editor> <rdf:description> <ex:fullname> Joe Blog"</ex:fullName> <ex:homepage rdf:resource="http://purl.org/net/dajobe/"/> </rdf:description> </ex:editor> </rdf:description> 19

RDF statements (assertions) Statements Different name: Assertion = Triple = Statement Express facts about resources A statement contains three parts: subject, predicate, and object A set of assertions creates a graph A graph cannot contain only resources Example of statements: http://www.w3.org/ has the format text/html http://www.debruijn.net/ has first name Jos http://www.polleres.net/page.html polle es html is the Web page of http://www.polleres.net/axel 20

RDF Syntax Example URI:R dc: Title dc: Creator RDF Presentation Joe Blog <rdf:rdf xmlns:rdf = http://www.w3.org/tr/wd-rdf-syntax# xmlns:dc = http://purl.org/dc/elements/1.0/ > <rdf:description about = URI:R > <dc:title> RDF Presentation </dc:title> <dc:creator> Joe Blog </dc:creator> </rdf:description> </rdf:rdf> Exercise: Use RDF to describe these resources: A bank named KMB KMB has client John 21

Bag RDF Containers An unordered list of resources or literals Sequence An ordered list of resources or literals Alternative A list of resources or literals that represent alternatives for the value of a property 22

Using the Bag Container Statement: The authors of the book 0201000237 are Alfred, John and Jeffrey <?xml version="1.0"?> <rdf:rdf xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc="http://purl http://purl.org/dc/elements/1.1/ 1/"> <rdf:description about="urn:isbn:0-201-00023-7"> <dc:creator> <rdf:bag> <rdf:li>alfred</rdf:li> <rdf:li>john</rdf:li> <rdf:li>jeffrey</rdf:li> </rdf:bag> /dfb </dc:creator> </rdf:description> </rdf:rdf> 23

Using the Seq Container Statement: The students of the course km in alphabetical order are Elizabeth, George and John <?xml version="1.0"?> <rdf:rdf xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:s="http://www.schemas.org/course/"> /C / <rdf:description about="http://www.www.fr/courses/km"> <s:students> <rdf:seq> <rdf:li rdf:resource="http://www.www.fr/students/er"/> <rdf:li rdf:resource="http://www.www.fr/students/gl"/> <rdf:li rdf:resource="http://www. www.fr/students/js"/> j </rdf:seq> </s:students> </rdf:description> </rdf:rdf> 24

Using the Alt Container Statement: The formats of the book 0201000237 are plain text, html and postscript <?xml version="1.0"?> <rdf:rdf xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc="http://purl http://purl.org/dc/elements/1.1/ 1/"> <rdf:description about="urn:isbn:0-201-00023-7"> <dc:format> <rdf:alt> <rdf:li>text/html</rdf:li> <rdf:li>text/plain</rdf:li> <rdf:li>application/postscript</rdf:li> </rdf:alt> </dc:format> </rdf:description> </rdf:rdf> 25

RDF Namespaces Namespaces are used to separate vocabularies A namespace is defined by a URI Example: A book has a name and an author also has a name 26

Ontological Reasoning in RDF Class Property type type type type Wendy Person type owns type Wanda Fish range domain owns Type constraint violation: The range of owns is Fish. OR There is no inconsistency: Wanda is a fish! 27

RDFS RDF provides a data model to define relations between resources (on the Web). A framework for defining meta data for Web resources However the triple data model is insufficient without sharing the same (knowledge) vocabularies (+semantics) RDF-S allows to define RDF vocabularies RDF-S allows to define class hierarchies, property hierarchies, and allowed relations (triples) 28

RDFS Example <rdf:rdf xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" syntax ns# xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:owl="http://www.w3.org/2002/07/owl#"> <owl:ontology rdf:about="http://www.w3.org/2000/01/rdf-schema#"/> <rdfs:class rdf:about="http://www.w3.org/2000/01/rdfschema#resource"> <rdfs:isdefinedby rdf:resource= "http://www.w3.org/2000/01/rdf-schema#"/> <rdfs:label>resource</rdfs:label> <rdfs:comment>the class resource example</rdfs:comment> </rdfs:class> </rdf:rdf> 29

RDFS RDFS is a vocabulary to create vocabularies (!) properties defined by a particular community characteristics of properties and/or constraints on corresponding values Comparable to XML Schema or XML DTD Used to standardize which tags the creator of a graph is allowed to use for annotating resources Introduces notions such as: Property, Class, SubClassOf, Domain, Range 30

RDF Schema (cont d) Defines the types of relations a resource of a certain type may have Important: Compatibility check of a graph to a schema is not automatically performed upon parsing RDF triples that t are inconsistent i t can be added to a graph and are not detected unless a consistency check is performed 31

X rdf:type rdfs:class RDFS Constructs Declares the resource X as a class for other resources R rdf:type rdf:property Declares resource R as a property R rdfs:domain X Declares the subject of R as an X R rdfs:range Y Declares the object of R as an Y 32

RDF-S RDFS extends the RDF vocabulary: RDFS vocabulary is defined in the namespace: http://www.w3.org/2000/01/rdf-schema# (associated with namespace prefix rdfs:) RDFS Classes: rdfs:resource rdfs:class rdfs:literal rdfs:datatype rdfs:container rdfs:containermembership Property RDFS properties rdfs:domain rdfs:range rdfs:subpropertyof rdfs:subclassof rdfs:member rdfs:seealso rdfs:isdefinedby fi db rdfs:comment rdfs:label 33

RDFS-Example 34

RDFS-Example 35

RDFS meta-data Any meta-data can be attached to a resource, using: rdfs:comment Human-readable description of the resource, e.g. <ex:person> rdfs:comment A person is any human being rdfs:label Human-readable version of the resource name, e.g. <ex:person> rdfs:label Human being rdfs:seealso Indicate additional information about the resource, e.g. <ex:person> rdfs:seealso <http://xmlns.com/wordnet/1.6/human> 36

RDF-S: example RDFS ontology about Persons and Universities ex:institution rdf:type rdfs:class ex:person rdf:type rdfs:class ex:research-institution rdfs:subclassof ex:institution ex:educational-institution rdfs:subclassof ex:institution ex:university rdfs:subclassof ex:research-institution ex:university rdfs:subclassof ex:educational-institution ex:faculty rdfs:subclassof ex:person ex:student rdfs:subclassof ex:person ex:phd-student rdfs:subclassof ex:faculty ex:phd-student rdfs:subclassof ex:student ex:msc-student rdfs:subclassof ex:student ex:msc-student rdfs:comment "An Msc student is not a faculty" ex:phd-student rdfs:comment "A student who is also a faculty is a PhD Student ex:employed-by rdf:type rdfs:property ex:manager rdf:type rdfs:property ex:employed-by rdfs:domain ex:person ex:employed-by rdfs:range ex:institution ex:manager-of rdfs:domain ex:person ex:manager-of rdfs:range ex:person 37

RDF-S: example RDFS ontology about Persons and Universities 38

Storing RDF RDF graphs can be serialized as and stored in the file system For more DBMS-like applications, there are RDF repositories that provide Query functionality Access control Distribution Examples: Sesame 3-Store JENA YARS 39

Outline Ontologies RDF RDF Schema (RDFS) Outlook at RDF Storing 40

References Semantic Web: www.w3.org/2001/sw Ontologies: www.ontology.org g RDF and RDFS: www.w3.org/rdf RDF syntax: http://www.w3.org/tr/rdf-syntax-grammar/ RDFS: http://www.w3.org/tr/rdf-schema/ 41