Practical RDF Ch.4 Specialized RDF Relationships: Reification, Containers, and Collections Kim, Jong-Nam SNU OOPSLA Lab. August 12, 2004.

Slides:



Advertisements
Similar presentations
RDF Schemata (with apologies to the W3C, the plural is not ‘schemas’) CSCI 7818 – Web Technologies 14 November 2001 Van Lepthien.
Advertisements

1 Resource Description Framework (RDF) By David Wilczynski, USC, Based on:
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.
Chapter 3 RDF Syntax 1. Topics Basic concepts of RDF resources, properties, values, statements, triples URIs and URIrefs RDF graphs Literals and Qnames.
SPARQL for Querying PML Data Jitin Arora. Overview SPARQL: Query Language for RDF Graphs W3C Recommendation since 15 January 2008 Outline: Basic Concepts.
Dr. Alexandra I. Cristea RDF.
Chapter 3A Semantic Web Primer 1 Chapter 3 Describing Web Resources in RDF Grigoris Antoniou Frank van Harmelen.
RDF: Data Description With HTML, the Web is for reading With XML, the Web is for processing Necessary to know  who wrote this?  who owns it?  who authorised.
More RDF CS 431 – Carl Lagoze – Cornell University Acknowledgements: Eric Miller Dieter Fensel.
Chapter 7: Resource Description Framework (RDF) Service-Oriented Computing: Semantics, Processes, Agents – Munindar P. Singh and Michael N. Huhns, Wiley,
Resource Description Framework Building the Semantic Web CS 431 – Carl Lagoze – Cornell University Acknowledgements: Eric Miller Dieter Fensel.
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.
RDF, RDFS making the Web a better place Ir. Richard Vdovjak, MTD.
Cornell CS 502 Resource Description Framework Building the Semantic Web CS 502 – Carl Lagoze – Cornell University Acknowledgements: Eric Miller.
LDK R Logics for Data and Knowledge Representation Resource Description Framework (RDF) Fausto Giunchiglia and Biswanath Dutta Fall’2011.
Resource Description Framework (RDF) Lecture # 6 Faculty of Computer Science, IBA.
RDF Semantics by Patrick Hayes W3C Recommendation Presented by Jie Bao RPI Sept 4, 2008 Part 1 of RDF/OWL Semantics Tutorial.
Visual Models for Knowledge Engineering Madalina Croitoru
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.
Chapter 3 RDF Syntax 2. Topics Basic concepts of RDF Resources, properties, values, statements, triples URIs and URIrefs RDF graphs Literals, qnames Vocabularies.
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
© Copyright 2008 STI INNSBRUCK RDF and RDF Schema Semantic Web Lecture Lecture III – xx 2009 Dieter Fensel Slides.
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.
Chapter 3 RDF and RDFS Semantics. Introduction RDF has a very simple data model But it is quite liberal in what you can say Semantics can be given using.
Chapter 7: Resource Description Framework (RDF) Service-Oriented Computing: Semantics, Processes, Agents – Munindar P. Singh and Michael N. Huhns, Wiley,
RDF Containers In N3, we could say that Ed (with id 21) and Bill (with id 34) created a certain document
EEL 5937 Ontologies EEL 5937 Multi Agent Systems Lecture 5, Jan 23 th, 2003 Lotzi Bölöni.
RDF & RDF Schema Machine Understandable Metadata for the Web Semantic Web - Spring 2006 Computer Engineering Department Sharif University of Technology.
Practical RDF Ch.6 Creating an RDF Vocabulary DongHyuk Im SNU OOPSLA Lab. Shelley Powers, O’Reilly August 19, 2004.
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.
RDF Schema (RDFS) RDF user communities need to define the vocabularies (terms) to indicate that they  are describing specific kinds or classes of resources.
SPARQL In-Class Shared Exercise. Pop Quiz If you have a large knowledge store, why should you not issue: SELECT ?s ?p ?o WHERE { ?s ?p ?o } Ans: It returns.
Introduction The Resource Description Framework (RDF) is recommended by the World Wide Web Consortium (W3C) to model meta-data about the resources of the.
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,
Dr. Alexandra I. Cristea RDF.
Important Concepts from the W3C RDF Vocabulary/Schema Sungtae Kim SNU OOPSLA Lab. August 19, 2004.
Description of Information Resources: RDF/RDFS (an Introduction)
Practical RDF Ch.2 Junwon Jung SNU OOPSLA Lab. Shelley Powers, O’Reilly August 5, 2004.
RDF/RDFS Tutorial. Introduction The Resource Description Framework (RDF) is recommended by the World Wide Web Consortium (W3C) to model meta-data about.
Doc.: IEEE /0169r0 Submission Joe Kwak (InterDigital) Slide 1 November 2010 Slide 1 Overview of Resource Description Framework (RFD/XML) Date:
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.
Semantic web course – Computer Engineering Department – Sharif Univ. of Technology – Fall RDF & RDF Schema Machine Understandable Metadata for the.
Knowledge Technologies Manolis Koubarakis 1 Some Other Useful Features of RDF.
Other RDF Capabilities. Exercise: Write the following information into a set of statements (triples) and then draw them into and RDF graph The article.
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 –
Linked Data & Semantic Web Technology The Semantic Web Part 7. RDF Semantics Dr. Myungjin Lee.
8.3.7 Compound Property Values Property values can be ▫Literals ▫Resource ▫Container ▫Collection, or… ▫Compound Value Compound Value ▫Has multiple value.
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
Service-Oriented Computing: Semantics, Processes, Agents
Knowledge Representation Part VI
Resource Description Framework
Service-Oriented Computing: Semantics, Processes, Agents
Some Other Useful Features of RDF
Department of Artificial Intelligence
ece 720 intelligent web: ontology and beyond
Chapter 3 RDF and RDFS Semantics
Resource Description Framework (RDF)
Semantic Web Basics (cont.)
Presentation transcript:

Practical RDF Ch.4 Specialized RDF Relationships: Reification, Containers, and Collections Kim, Jong-Nam SNU OOPSLA Lab. August 12, 2004

2 Contents  Containers  Collections  Reification

3 Containers  We need to describe groups of things  A book created by several authors  A list of students in a course  RDF’s container vocabulary consists of bags, sequences, and alternative and some associated properties

4 Bag (rdf:Bag)  A Bag is a resource having type rdf:Bag  A Bag is a unordered group of resources or literals, possibly including duplicate members  For example  a Bag might model a group of part numbers used in assembling a motor  There might be duplicates (same part types used many times) and order doesn’t matter

5 Sequence (rdf:Seq)  A Sequence is a resource having type rdf:Seq  A Sequence is a group of resources or literals, possibly including duplicate members, where the order of the members is significant  For example  A Sequence might be used to describe a group that must be maintained in alphabetical order

6 Alternative (rdf:Alt)  An Alternative is a resource having type rdf:Alt  An Alternative is a group of resources or literals that are alternatives (typically for a single value of a property)  For example  An Alt might be used to describe a list of alternative internet sites at which a resource might be found  Listing of expressions written in different languages

7 Using Containers  Give the resource an rdf:type property with value rdf:Bag, rdf:Seq, or rdf:Alt  The container resource (which may either be a blank node or a resource with a URIref) denotes the group as a whole  The members of the container use a container membership with names of the form rdf:_n, where n > 0  e.g., rdf:_1, rdf:_2, rdf:_3

8 A Bag Example  Let’s represent the sentence: "Course has the students Amy, Mohamed, Johann, Maria, and Phuong."

9 RDF/XML Syntax for this Graph

10 Some Abbreviations  RDF/XML provides li as a convenience to avoid having to number each membership property  The numbered properties rdf:_1, rdf:_2, etc. are generated from the li elements in forming the corresponding graph  The use of a element within the property element.  The element is abbreviation that lets us replace both an rdf:Description element and an rdf:type element with a single element  The Bag is a blank node. It’s nesting within the  property element is an abbreviated way of indicating that it is the value of this property

11 Sequences and Graph Structure  The graph structure for an rdf:Seq container, and the corresponding RDF/XML, are similar to those for an rdf:Bag.  The only difference is in the type, rdf:Seq  Remember, although an rdf:Seq container is intended to describe a sequence, it is up to applications creating and processing the graph to appropriately interpret the sequence of integer- valued property names

12 Alternative and Graph Structure  The graph structure for an rdf:Alt container, and the corresponding RDF/XML, are similar to those for an rdf:Bag.  An Alt container has at least one member, rdf:_1, which is the default value.  Other than rdf:_1, the order of the remaining elements is not significant.

13 Contents  Containers  Collections  Reification

14 Collections  With containers there is no way to say that these are all the members of the container  The graph has no way to exclude the possibility that there is another graph somewhere that describes additional members  RDF collections can describe "closed" groups  An RDF collection is a LISP-like list of type rdf:List, with predefined properties rdf:first and rdf:rest, and the predefined resource rdf:nil

15 A Collection Example  Consider the sentence "The students in course are Amy, Mohamed, and Johann":

16 RDF/XML for the Collections of Students  Notice abbreviations

17 Contents  Containers  Collections  Reification

18 Reification – Making Statements about Statements  Suppose we have the triple:  exproducts:item10245 exterms:weight "2.4"^^xsd:decimal.  Now suppose we want to model that John Smith made this statement.  We want something like:  [exproducts:item10245 exterms:weight "2.4"^^xsd:decimal.] dc:creator exstaff:  That is, to turn the original statement into a resource, i.e., reify it, so it can be a Subject

19 RDF Reification Vocabulary  RDF supplies:  a type: rdf:Statement,  and properties: rdf:subject, rdf:predicate, rdf:object  So, a reification of our original triple:  exproducts:item10245 exterms:weight "2.4“. is given by the triples:  exproducts:triple12345 rdf:type rdf:Statement.  exproducts:triple12345 rdf:subject exproducts:item  exproducts:triple12345 rdf:predicate exterms:weight.  exproducts:triple12345 rdf:object "2.4"^^xsd:decimal. and we can add:  exproducts:triple12345 dc:creator exstaff: to represent that made the statement

20 Be Careful !!  The above means that triple12345 refers to is a particular instance of a triple in a particular RDF document, rather than some arbitrary triple having the same subject, predicate, and object  Suppose Jane Doe “also” said that item10245 weighed 2.4  How would you model it?  With the same statement, triple12345, or with another statement, say triple7890, that has the same subject, predicate, and object?

21 The Reified Statement is not the Same as the Statement  When someone asserts that John said foo, they are not asserting foo themselves, just that John said it.  Conversely, when someone asserts foo, they are not also asserting its reification  RDF can't "connect" an triple to its reification  triple12345 has NO graph connection to the original triple:  exproducts:item10245 exterms:weight "2.4".  And adding: triple12345 dc:creator exstaff: does not allow you to say that John created the original triple

22 Be Careful (cont.)  We could attribute the statement to John simply by the statement: ex:triple12345 dc:creator exstaff:  Now, if Jane were exstaff:900 and you asserted:  ex:triple12345 dc:creator exstaff:900.  You would be saying that John and Jane made the SAME statement. Is that likely? For AI’ers to argue