Visual Models for Knowledge Engineering Madalina Croitoru

Slides:



Advertisements
Similar presentations
CH-4 Ontologies, Querying and Data Integration. Introduction to RDF(S) RDF stands for Resource Description Framework. RDF is a standard for describing.
Advertisements

The Semantic Web – WEEK 4: RDF
Introduction to RDF Based on tutorial at
1 RDF Tutorial. C. Abela RDF Tutorial2 What is RDF? RDF stands for Resource Description Framework It is used for describing resources on the web Makes.
RDF Tutorial.
Quratulain Rajput Faculty of Computer Science, IBA Spring2013
Chapter 3 RDF Syntax 1. Topics Basic concepts of RDF resources, properties, values, statements, triples URIs and URIrefs RDF graphs Literals and Qnames.
Dr. Alexandra I. Cristea RDF.
Chapter 3A Semantic Web Primer 1 Chapter 3 Describing Web Resources in RDF Grigoris Antoniou Frank van Harmelen.
RDF Kitty Turner. Current Situation there is hardly any metadata on the Web search engine sites do the equivalent of going through a library, reading.
Chapter 7: Resource Description Framework (RDF) Service-Oriented Computing: Semantics, Processes, Agents – Munindar P. Singh and Michael N. Huhns, Wiley,
RDF: Building Block for the Semantic Web Jim Ellenberger UCCS CS5260 Spring 2011.
The RDF meta model: a closer look Basic ideas of the RDF Resource instance descriptions in the RDF format Application-specific RDF schemas Limitations.
1 Introduction to Semantic Web with XML RDF Dickson K.W. Chiu PhD, SMIEEE Text: Antoniou & van Harmelen: A Semantic Web PrimerA Semantic Web Primer (Chapter.
Module 2b: Modeling Information Objects and Relationships IMT530: Organization of Information Resources Winter, 2007 Michael Crandall.
Resource Description Framework (RDF) Lecture # 6 Faculty of Computer Science, IBA.
Chapter 3A Semantic Web Primer 1 Chapter 3 Describing Web Resources in RDF Grigoris Antoniou Frank van Harmelen.
Nancy Ide Vassar College USA Resource Definition Framework A Tutorial EUROLAN 2003 July 28 - August 8 Bucharest - Romania.
RDF: Concepts and Abstract Syntax W3C Recommendation 10 February Michael Felderer Digital Enterprise.
RDF (Resource Description Framework) Why?. XML XML is a metalanguage that allows users to define markup XML separates content and structure from formatting.
Logics for Data and Knowledge Representation Resource Description Framework (RDF) Feroz Farazi.
The Semantic Web Service Shuying Wang Outline Semantic Web vision Core technologies XML, RDF, Ontology, Agent… Web services DAML-S.
INF 384 C, Spring 2009 Ontologies Knowledge representation to support computer reasoning.
Chapter 3 RDF Syntax. RDF Overview RDF Syntax -- the XML encoding RDF Syntax – variations including N3 RDF Schema (RDFS) Semantics of RDF and RDFS – Axiomatic.
Logics for Data and Knowledge Representation
Chapter 3A Semantic Web Primer 1 Chapter 3 Describing Web Resources in RDF Grigoris Antoniou Frank van Harmelen.
RDF – RESOURCE DESCRIPTION FRAMEWORK Antonio Bucchiarone FBK-IRST Trento, Italy 01Dicembre 2009.
Information Interchange on the Semantic Web an interactive talk by Piotr Kaminski, University of Victoria
Of 41 lecture 4: rdf – basics and language. of 41 RDF basic ideas the fundamental concepts of RDF  resources  properties  statements ece 720, winter.
RDF and XML 인공지능 연구실 한기덕. 2 개요  1. Basic of RDF  2. Example of RDF  3. How XML Namespaces Work  4. The Abbreviated RDF Syntax  5. RDF Resource Collections.
RQL: RDF Query language Jianguo Lu University of Windsor The following slides are from Grigoris Antoniou, Frank van Harmelen, “A Semantic Web Primer”
Chapter 7: Resource Description Framework (RDF) Service-Oriented Computing: Semantics, Processes, Agents – Munindar P. Singh and Michael N. Huhns, Wiley,
EEL 5937 Ontologies EEL 5937 Multi Agent Systems Lecture 5, Jan 23 th, 2003 Lotzi Bölöni.
Of 35 lecture 5: rdf schema. of 35 RDF and RDF Schema basic ideas ece 627, winter ‘132 RDF is about graphs – it creates a graph structure to represent.
Introduction The Resource Description Framework (RDF) is recommended by the World Wide Web Consortium (W3C) to model meta-data about the resources of the.
The future of the Web: Semantic Web 9/30/2004 Xiangming Mu.
Understanding RDF. 2/30 What is RDF? Resource Description Framework is an XML-based language to describe resources. A common understanding of a resource.
Chapter 7: Resource Description Framework (RDF) Service-Oriented Computing: Semantics, Processes, Agents – Munindar P. Singh and Michael N. Huhns, Wiley,
The RDF meta model Basic ideas of the RDF Resource instance descriptions in the RDF format Application-specific RDF schemas Limitations of XML compared.
RDF/RDFS Tutorial. Introduction The Resource Description Framework (RDF) is recommended by the World Wide Web Consortium (W3C) to model meta-data about.
Practical RDF Ch.4 Specialized RDF Relationships: Reification, Containers, and Collections Kim, Jong-Nam SNU OOPSLA Lab. August 12, 2004.
Doc.: IEEE /0169r0 Submission Joe Kwak (InterDigital) Slide 1 November 2010 Slide 1 Overview of Resource Description Framework (RFD/XML) Date:
Chapter 3A Semantic Web Primer 1 Chapter 3 Describing Web Resources in RDF Grigoris Antoniou Frank van Harmelen.
RDF & SPARQL Introduction Dongfang Xu Ph.D student, School of Information, University of Arizona Sept 10, 2015.
EEL 5937 Ontologies EEL 5937 Multi Agent Systems Lotzi Bölöni.
Chapter 3 RDF. Introduction Problem: What does an XML document mean? – XML is about data structures – Their meaning (semantics) is not apparent to a machine.
Chapter 3 RDF Syntax. RDF Overview RDF Syntax -- the XML encoding RDF Syntax – variations including N3 RDF Schema (RDFS) Semantics of RDF and RDFS – Axiomatic.
Practical RDF Chapter 4. Specialized RDF Relationships: Reification, Containers, and Collections Shelley Powers, O’Reilly SNU IDB Lab. Hyewon Lim.
Knowledge Technologies Manolis Koubarakis 1 Some Other Useful Features of RDF.
Chapter 5 The Semantic Web 1. The Semantic Web  Initiated by Tim Berners-Lee, the inventor of the World Wide Web.  A common framework that allows data.
Other RDF Capabilities. Exercise: Write the following information into a set of statements (triples) and then draw them into and RDF graph The article.
Describing Web Resources in RDF Semantic Web. Knowledge Technologies Manolis Koubarakis 2 The Semantic Web “Layer Cake”
Linked Data & Semantic Web Technology The Semantic Web Part 5. Resource Description Framework (2) Dr. Myungjin Lee.
Semantic Web In Depth Resource Description Framework Dr Nicholas Gibbins –
8.3.7 Compound Property Values Property values can be ▫Literals ▫Resource ▫Container ▫Collection, or… ▫Compound Value Compound Value ▫Has multiple value.
Setting the stage: linked data concepts Moving-Away-From-MARC-a-thon.
Linked Data & Semantic Web Technology The Semantic Web Part 4. Resource Description Framework (1) Dr. Myungjin Lee.
Service-Oriented Computing: Semantics, Processes, Agents
Knowledge Representation Part VI
Charlie Abela Department of Intelligent Computer Systems
Chapter 2 RDF Syntax 1.
Resource Description Framework - RDF
Service-Oriented Computing: Semantics, Processes, Agents
Resource Description Framework
Service-Oriented Computing: Semantics, Processes, Agents
Grid Computing 7700 Fall 2005 Lecture 18: Semantic Grid
Department of Artificial Intelligence
ece 720 intelligent web: ontology and beyond
Grid Computing 7700 Fall 2005 Lecture 18: Semantic Grid
Resource Description Framework (RDF)
Presentation transcript:

Visual Models for Knowledge Engineering Madalina Croitoru

Course Structure Week 1: Ontologies: motivation Week 2: RDF - representation Week 3: RDF - reasoning Week 4: CGs - representation Week 5: CGs – reasoning All material available on my webpage:

Semantic Web Web of data An extension of the current web in which information is give well-defined meaning, better enabling computers and people to work together

Semantic Web: information STRUCTURED FORM

What structure? Statements Describe some relationship between one thing and another Standardised by W3C as RDF

How things work? For the Web:  URI; HTTP; (X)HTML For the Semantic Web:  URI; HTTP; RDF

Uniform Resource Identifier To be able to manipulate something we should first IDENTIFY it Examples:    uuid:04b749bf-3bb2-4dba-934c-c92c56b709df   esl:SHA1:iQAAwUBO51bkD6DJL[...]szDxfckCE: someName

How things work? For the Web:  URI; HTTP; (X)HTML For the Semantic Web:  URI; HTTP; RDF

HTTP Protocol for operations on resources:  Get (Ask for information)  Post (Send request)  Put (Update information)

How things work? For the Web:  URI; HTTP; (X)HTML For the Semantic Web:  URI; HTTP; RDF

RDF Resource Description Format Machine – processable Statements: TRIPLES

RDF triplets: Example:  “Gizzy”. .   “value”.

The Web vs Semantic Web Web (Madalina Croitoru, Semantic Web (Madalina Croitoru, has_homepage,

RDF is a graph: .  Madalina LIRMM has_homepage hasEmployer site

What difference with XML? XML is about documents and not data Many ways to say the same thing in XML RDF is easy to put in relational databases RDF is easy to merge!

Ambiguity in XML page Madalina page

RDF - syntax RDF was designed to provide a common way to describe information so it can be read (and understood) by computer applications. RDF descriptions are not designed to be displayed on the web.

URIs for RDF RDF uses a URI (Uniform Resource Identifier) to identify a web resource, and properties to describe the resource Unlike URLs, URIs are not limited to identifying things that have a network location A URI reference (URIref) is a URI, together with an optional fragment identifier at the end.

Example Jan Egil Refsnes November 1, 1999 February 1, 2004

Example - cont the URI " default.asp" is used to identify a web page, the property "author" describes the author of the page, the property value is "Jan Egil Refsnes". The property "created" tells when the page was created, and the property "modified" when it was last modified.

Subject, Predicate, Object RDF terminology also use the words subject, predicate and object. The resource is the subject The property "author" is the predicate The value "Jan Egil Refsnes" is the object

Example 2 <rdf:RDF xmlns:rdf=" ns#" xmlns:cd=" <rdf:Description rdf:about=" Bob Dylan USA Columbia

Example 2 - cont

RDF as a Graph

Main elements The RDF Element The RDF element is the root of the RDF document. It defines the XML document to be an RDF document and contains a reference to the xmlns:rdf namespace:.. Description goes here. The root element must always have a reference to the RDF namespace:

Main elements The Description Element The Description element describes a resource. The about attribute identifies the resource. Property elements are used to describe the resource In example 2: The property elements (artist, country, company, price, and year) are defined in the namespace xmln:cd.

RDF Container Elements The Bag Element  The Bag element contains an unordered list of value elements The Seq Element  The Seq element contains an ordered list of value elements The Alt Element  The Alt element contains a list of alternative values for an element

rdf:Bag

rdf:Bag graph

RDF – SYNTAX RDF primer  Grigoris Antoniou  Frank van Harmelen

Basic Ideas of RDF Basic building block: object-attribute- value triple  It is called a statement RDF has been given a syntax in XML  This syntax inherits the benefits of XML The fundamental concepts of RDF are:  resources  properties  statements

Resources We can think of a resource as an object, a “thing” we want to talk about  E.g. authors, books, publishers, places, people, hotels Every resource has a URI, a Universal Resource Identifier A URI can be  a URL (Web address) or  some other kind of unique identifier

Properties Properties are a special kind of resources They describe relations between resources  E.g. “written by”, “age”, “title”, etc. Properties are also identified by URIs Advantages of using URIs:  Α global, worldwide, unique naming scheme  Reduces the homonym problem of distributed data representation

Statements Statements assert the properties of resources A statement is an object-attribute- value triple  It consists of a resource, a property, and a value Values can be resources or literals  Literals are atomic values (strings)

Three Views of a Statement A triple A piece of a graph A piece of XML code

Statements as Triples The triple (x,P,y) can be considered as a logical formula P(x,y)  Binary predicate P relates object x to object y  RDF offers only binary predicates (properties)

XML Vocabularies A directed graph with labeled nodes and arcs  from the resource (the subject of the statement)  to the value (the object of the statement) Known in AI as a semantic net The value of a statement may be a resource  Ιt may be linked to other resources

Chapter 3A Semantic Web Primer38 Statements in XML Syntax Graphs are a powerful tool for human understanding but The Semantic Web vision requires machine- accessible and machine-processable representations There is a 3rd representation based on XML  But XML is not a part of the RDF data model  E.g. serialisation of XML is irrelevant for RDF

Statements in XML An RDF document is represented by an XML element with the tag rdf:RDF The content of this element is a number of descriptions, which use rdf:Description tags. Every description makes a statement about a resource, identified in 3 ways:  an about attribute, referencing an existing resource  an ID attribute, creating a new resource  without a name, creating an anonymous resource

Statements in XML The rdf:Description element makes a statement about the resource Within the description  the property is used as a tag  the content is the value of the property

Reification In RDF it is possible to make statements about statements  A believes that David Billington is the creator of Such statements can be used to describe belief or trust in other statements The solution is to assign a unique identifier to each statement  It can be used to refer to the statement

Reification (2) Introduce an auxiliary object (e.g. belief1) relate it to each of the 3 parts of the original statement through the properties subject, predicate and object In the preceding example  subject of belief1 is David Billington  predicate of belief1 is creator  object of belief1 is

Data Types Data types are used in programming languages to allow interpretation In RDF, typed literals are used, if necessary (“David Billington”, “27”^^ Schema#integer)

Data Types (2) ^^-notation indicates the type of a literal In practice, the most widely used data typing scheme will be the one by XML Schema  But the use of any externally defined data typing scheme is allowed in RDF documents XML Schema predefines a large range of data types  E.g. Booleans, integers, floating-point numbers, times, dates, etc.

XML-Based Syntax of RDF An RDF document consists of an rdf:RDF element  The content of that element is a number of descriptions A namespace mechanism is used  Disambiguation  Namespaces are expected to be RDF documents defining resources that can be reused  Large, distributed collections of knowledge

Example of University Courses <rdf:RDF xmlns:rdf=" xmlns:xsd=" xmlns:uni=" David Billington Associate Professor 27

Example of University Courses (2) Discrete Maths David Billington Programming III Michael Maher

rdf:about versus rdf:ID An element rdf:Description has  an rdf:about attribute indicating that the resource has been “defined” elsewhere  An rdf:ID attribute indicating that the resource is defined Formally, there is no such thing as “defining” an object in one place and referring to it elsewhere  Sometimes is useful (for human readability) to have a defining location, while other locations state “additional” properties

Property Elements Content of rdf:Description elements Knowledge Representation Grigoris Antoniou uni:courseName and uni:isTaughtBy define two property-value pairs for CIT3116 (two RDF statements)  read conjunctively

Data Types The attribute rdf:datatype="&xsd:integer" is used to indicate the data type of the value of the age property David Billington Associate Professor 27

Data Types (2) The age property has been defined to have "&xsd:integer" as its range  It is still required to indicate the type of the value of this property each time it is used  This is to ensure that an RDF processor can assign the correct type of the property value even if it has not "seen" the corresponding RDF Schema definition before  This scenario is quite likely to occur in the unrestricted WWW

Chapter 3A Semantic Web Primer52 The rdf:resource Attribute The relationships between courses and lecturers (in the example) were not formally defined but existed implicitly through the use of the same name The use of the same name may just be a coincidence for a machine We can denote that two entities are the same using the rdf:resource attribute

The rdf:resource Attribute (2) Discrete Mathematics David Billington Associate Professor

Referencing Externally Defined Resources E.g., to refer the externally defined resource CIT1111: as the value of rdf:about is the URI where the definition of CIT1111 is found A description with an ID defines a fragment URI, which can be used to reference the defined description

Nested Descriptions: Example Discrete Maths David Billington Associate Professor

Nested Descriptions Descriptions may be defined within other descriptions Other courses, such as CIT3112, can still refer to the new resource with ID Although a description may be defined within another description, its scope is global

Introducing some Structure to RDF Documents using the rdf:type Element Discrete Maths David Billington Associate Professor

Abbreviated Syntax Simplification rules: 1. Childless property elements within description elements may be replaced by XML attributes 2. For description elements with a typing element we can use the name specified in the rdf:type element instead of rdf:Description These rules create syntactic variations of the same RDF statement  They are equivalent according to the RDF data model, although they have different XML syntax

Abbreviated Syntax: Example Discrete Maths

Application of First Simplification Rule <rdf:Description rdf:ID="CIT1111" uni:courseName="Discrete Maths">

Application of 2nd Simplification Rule <uni:course rdf:ID="CIT1111" uni:courseName="Discrete Maths">

Container Elements Collect a number of resources or attributes about which we want to make statements as a whole E.g., we may wish to talk about the courses given by a particular lecturer The content of container elements are named rdf:_1, rdf:_2, etc.  Alternatively rdf:li

Three Types of Container Elements rdf:Bag an unordered container, allowing multiple occurrences  E.g. members of the faculty board, documents in a folder rdf:Seq an ordered container, which may contain multiple occurrences  E.g. modules of a course, items on an agenda, an alphabetized list of staff members (order is imposed) rdf:Alt a set of alternatives  E.g. the document home and mirrors, translations of a document in various languages

Example for a Bag <uni:lecturer rdf:ID="949352" uni:name="Grigoris Antoniou" uni:title="Professor">

Example for Alternative <uni:course rdf:ID="CIT1111" uni:courseName="Discrete Mathematics">

Rdf:ID Attribute for Container Elements <uni:lecturer rdf:ID="949318" uni:name="David Billington">

Chapter 3A Semantic Web Primer67 Reification Sometimes we wish to make statements about other statements We must be able to refer to a statement using an identifier RDF allows such reference through a reification mechanism which turns a statement into a resource

Reification Example Grigoris Antoniou reifies as <rdf:predicate rdf:resource=" uni-ns#name"/> Grigoris Antoniou

Reification (2) rdf:subject, rdf:predicate and rdf:object allow us to access the parts of a statement The ID of the statement can be used to refer to it, as can be done for any description We write an rdf:Description if we don’t want to talk about a statement further We write an rdf:Statement if we wish to refer to a statement