RDF & RDF Schema Machine Understandable Metadata for the Web

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

XML: Extensible Markup Language
RDF Schemata (with apologies to the W3C, the plural is not ‘schemas’) CSCI 7818 – Web Technologies 14 November 2001 Van Lepthien.
CS570 Artificial Intelligence Semantic Web & Ontology 2
RDF Tutorial.
1 Semantic Web Technologies: The foundation for future enterprise systems Okech Odhiambo Knowledge Systems Research Group Strathmore University.
Dr. Alexandra I. Cristea RDF.
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,
The RDF meta model: a closer look Basic ideas of the RDF Resource instance descriptions in the RDF format Application-specific RDF schemas Limitations.
From SHIQ and RDF to OWL: The Making of a Web Ontology Language
Cornell CS 502 Resource Description Framework Building the Semantic Web CS 502 – Carl Lagoze – Cornell University Acknowledgements: Eric Miller.
Nancy Ide Vassar College USA Resource Definition Framework A Tutorial EUROLAN 2003 July 28 - August 8 Bucharest - Romania.
RDF (Resource Description Framework) Why?. XML XML is a metalanguage that allows users to define markup XML separates content and structure from formatting.
Ontology languages, XML and RDF. Contents Definition of ontology A quick survey to famous ontology languages Graphical Logic based ● XML ● XML, namespaces,
Practical RDF Chapter 1. RDF: An Introduction
Okech Odhiambo Faculty of Information Technology Strathmore University
INF 384 C, Spring 2009 Ontologies Knowledge representation to support computer reasoning.
Logics for Data and Knowledge Representation
Database Support for Semantic Web Masoud Taghinezhad Omran Sharif University of Technology Computer Engineering Department Fall.
Lifecycle Metadata for Digital Objects (INF 389K) September 18, 2006 The Big Metadata Picture, Web Access, and the W3C Context.
The Resource Description Framework And its application to thegateway.org For the IIAP Jon Jablonski, Research Assistant The Information.
Chapter 3 RDF Schema. Introduction RDF has a very simple data model RDF Schema (RDFS) enriches the data model, adding vocabulary and associated semantics.
Resource Description Framework (RDF) Course: Electronic Document Team member: Ding Feng Ding Wei Wang Ling Date:
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,
Semantic Web Exam 1 Review.
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.
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.
Introduction The Resource Description Framework (RDF) is recommended by the World Wide Web Consortium (W3C) to model meta-data about the resources of the.
Introduction to the Semantic Web and Linked Data Module 1 - Unit 2 The Semantic Web and Linked Data Concepts 1-1 Library of Congress BIBFRAME Pilot Training.
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,
User Profiling using Semantic Web Group members: Ashwin Somaiah Asha Stephen Charlie Sudharshan Reddy.
The RDF meta model Basic ideas of the RDF Resource instance descriptions in the RDF format Application-specific RDF schemas Limitations of XML compared.
Metadata : an overview XML and Educational Metadata, SBU, London, 10 July 2001 Pete Johnston UKOLN, University of Bath Bath, BA2 7AY UKOLN is supported.
Problems with XML & XML Schemas XML falls apart on the Scalability design goal. 1.The order in which elements appear in an XML document is significant.
Important Concepts from the W3C RDF Vocabulary/Schema Sungtae Kim SNU OOPSLA Lab. August 19, 2004.
Description of Information Resources: RDF/RDFS (an Introduction)
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.
THE SEMANTIC WEB By Conrad Williams. Contents  What is the Semantic Web?  Technologies  XML  RDF  OWL  Implementations  Social Networking  Scholarly.
Motivation Dynamically identify and understand information sources Provide interoperability between agents in a semantic manner Enable distributed extensible.
Silterra, April 2004 RDF, RSS and all that THREADING THE RDF MAZE.
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.
Linked Data & Semantic Web Technology The Semantic Web Part 7. RDF Semantics Dr. Myungjin Lee.
OWL (Ontology Web Language and Applications) Maw-Sheng Horng Department of Mathematics and Information Education National Taipei University of Education.
Web-Technology Lecture 13.
Service-Oriented Computing: Semantics, Processes, Agents
Charlie Abela Department of Intelligent Computer Systems
The Semantic Web By: Maulik Parikh.
Introduction to Persistent Identifiers
Jonathan Borden The Open Healthcare Group
Service-Oriented Computing: Semantics, Processes, Agents
Resource Description Framework Building the Semantic Web
Service-Oriented Computing: Semantics, Processes, Agents
Grid Computing 7700 Fall 2005 Lecture 18: Semantic Grid
RDF For Semantic Web Dhaval Patel 2nd Year Student School of IT
ece 720 intelligent web: ontology and beyond
ece 720 intelligent web: ontology and beyond
Grid Computing 7700 Fall 2005 Lecture 18: Semantic Grid
Chapter 3 RDF and RDFS Semantics
Semantic Web Basics (cont.)
Semantic-Web, Triple-Strores, and SPARQL
Presentation transcript:

RDF & RDF Schema Machine Understandable Metadata for the Web Semantic Web - Spring 2007 Computer Engineering Department Sharif University of Technology

Outline Metadata RDF RDFS RDF(S) Tools

Semantic Web: Problems Too much Web information around 1,000,000,000 (1109) resources Many different types of resources text, images, graphics, audio, video, multimedia, databases, Web applications, …

Semantic Web: Problems (2) Information not indexable No common “scheme” for doing so Short-lived, dynamic resources Differing relationships between authors, publishers, info intermediaries, users Each community uses their own approach

Semantic Web: Problems (3) Information not shareable Difficult to share information Difficult to share information about information no common cataloging schemes

Main Issues: Metadata Many types/forms of metadata, dependent on role: Information about information Structured data about data Many types/forms of metadata, dependent on role:

Types of Metadata: Web Resource discovery Document management administration (Intellectual) property rights management Archival information / status Security & User authentication Content ratings (PICS) Product & Services Descriptions Process description & control Database / data schemas

Second Issue: Language for expressing metadata must be: universal (so all can understand) flexible (to incorporate different types) extensible (flexible to custom types) simple (to encourage adoption) modular (so that schemes can be mixed, extended)

RDF RDF stands for Resource Description Framework It is a machine understandable metadata RDF is graphical formalism ( + XML syntax + semantics) for representing metadata for describing the semantics of information in a machine- accessible way

RDF (cont.) The XML tags can often add meaning to data, however, actually understanding the tags is meaningful only to humans. For example: <book> <title>G¨odel, Escher, Bach: An Eternal Golden Braid<title> </book> A human might infer that: “The book has the title G¨odel, Escher, Bach: An Eternal Golden Braid.” A machine, however, could not make this inference based upon the XML alone. For machines to do more automatically, it is necessary to go beyond the notion of the HTML display model, or XML data model, toward a “meaning”

RDF (cont.) RDF is an assertional language intended to be used to express propositions using precise formal vocabularies. It is intended to provide a basic foundation for more advanced assertional languages with a similar purpose The overall design goals emphasise generality and precision in expressing propositions about any topic, rather than conformity to any particular processing model An RDF document can delineate precise relationships between vocabulary items by constructing a grammatical representation. Assertions in different RDF documents can be combined to provide far more information together than they could separately.

RDF in SW Architecture

RDF Model A model is a collection of statements Statement := (predicate,subject,object) Predicate is a resource Subject is a resource Object is either a resource or a literal Subject Object Predicate Statement

Example “The book [subject] has the title [predicate] G¨odel, Escher, Bach: An Eternal Golden Braid [object].” This can be represented as the triple: (The book, has the title, G¨odel, Escher, Bach: An Eternal Golden Braid).

Example (generated by RDFPic)

Example shown in triples view

RDF model and natural language Subject. In grammar, this is the noun or noun phrase that is the doer of the action. In the sentence “The company sells batteries,” the subject is “the company.” Predicate. In grammar, this is the part of a sentence that modifies the subject and includes the verb phrase. In our sentence, the predicate is the phrase “sells” Object. In grammar this is a noun that is acted upon by the verb. In our sentence, the object is the noun “batteries.”

XML vs. RDF RDF is not just an XML dialect. XML: RDF: Has a tree structure data model. Only nodes are labeled. RDF: Has a graph structure data model. Both edges (properties) and nodes (subjects/objects) are labeled.

Linking Statements The subject of one statement can be the object of another Such collections of statements form a directed, labeled graph studentOF CE Ganji departmentOF hasHomePage Sharif http://ce.sharif.edu

RDF Graph: ‘anonymous’ nodes Person PersonName Literal Person12345 person.name value Jonathan first last value Borden

Using XPointer to name Person PersonName Literal Person12345 value Jonathan first /1/1/1 /1/1 last value /1/1/2 Borden

How can RDF be implemented Usually RDF/XML syntax However other notations are possible e.g. Notation3: Buddy Belden owns a business. The business has a Web site accessible at http://www.c2i2.com/~budstv. Buddy is the father of Lynne. <#Buddy> <#owns> <#business>. <#business> <#has-website> <http://www.c2i2.com/~budstv>. <#Buddy> <#father-of> <#Lynne>.

Converting N3 to RDF Jena toolkit can do such conversion

XML Syntax for RDF RDF has an XML syntax that has a specific meaning: Every Description element describes a resource Every attribute or nested element inside a Description is a property of that Resource We can refer to resources by using URIs <rdf:Description about="some.uri/person/ganji"> <studentOf resource="some.uri/Sharif/CE"/> </Description> <Description about="some.uri/Sharif/CE"> <hasHomePage>http://ce.sharif.edu</hasHomePage> <departmentOf resource="some.uri/~Sharif"/> </rdf:Description>

RDF document parts

RDF type RDF predifined property Its value – a resource that represent a category or class Its subject – Instance of that category or class prefix ex: URI: http://www.example.org/terms

Containers Containers are collections they allow grouping of resources (or literal values) It is possible to make statements about the container (as a whole) or about its members individually It is also possible to create collections based on URI patterns for example, all files in a particular web site Simple introduction to containers. Can be skipped if pressed with time.

RDF containers Bag: (A resource having type rdf:Bag) Represents an unordered list of resources or literals Duplicated values are prermitted Sequence: (A resource having type rdf:Seq) Represents ordered list of resources or literal Duplicated values are permitted Alternatives: (A resource having type rdf:Alt) Represents group of resources or literals that are alternatives

Sequence example http://www.w3.org/TR/REC-rdf-syntax “Ora Lassila” rdf:_1 rdf:Seq dc:Creator rdf:Type “Ralph Swick” rdf:_2

Bag example

RDF reification association of a statement and a specific resource representing the statement used to make statements about statements Vocabulary: type rdf:asserts properties rdf:subject rdf:predicate rdf:object

Reification example In N3:

Reification example (cont.) In RDF:

Reification example (cont.) RDF Graph (by IsaViz):

RDF Schema (RDFS) RDF gives a formalism for meta data annotation, and a way to write it down in XML, but it does not give any special meaning to vocabulary such as subClassOf or type Interpretation is an arbitrary binary relation RDF Schema allows you to define vocabulary terms and the relations between those terms it gives “extra meaning” to particular RDF predicates and resources this “extra meaning”, or semantics, specifies how a term should be interpreted

Core Classes & Properties rdfs:Resource rdfs:Literal rdfs:XMLLiteral rdfs:Class rdfs:Property Core Classes rdfs:Type rdfs:SubClassOf rdfs:SubPropertyOf rdfs:Domain rdfs:Range rdfs:Label rdfs:Comment Core Properties

RDFS Examples <Person,type,Class> <hasColleague,type,Property> <Professor,subClassOf,Person> <Carole,type,Professor> <hasColleague,range,Person> <hasColleague,domain,Person>

RDF/RDFS “Liberality” No distinction between classes and instances (individuals) <Species,type,Class> <Lion,type,Species> <Leo,type,Lion> Properties can themselves have properties <hasDaughter,subPropertyOf,hasChild> <hasDaughter,type,familyProperty> No distinction between language constructors and ontology vocabulary, so constructors can be applied to themselves/each other <type,range,Class> <Property,type,Class> <type,subPropertyOf,subClassOf>

RDF and RDFS Layers

Friend of a Friend (FOAF) application Many communities, such as companies, professional organizations, and social groupings, have proliferated on the Internet. The Friend of a Friend (FOAF) RDF vocabulary, originated by Dan Brickley and Libby Miller, gives a basic expression for community membership. The FOAF project describes people and their basic properties, such as name, email address, and so on. Friend of a Friend allows the expression of personal information and relationships. As a result, search engines can find people with similar interests through FOAF. Friend of a Friend is simply an RDF vocabulary. You can create FOAF files on your Web server and share the URLs so that software can use the information. The creation of FOAF data is decentralized since it allows many to contribute independently.

FOAF example

Rich Site Summary (RSS) A form of publishing content such that machines can process them. One dialect is based on RDF Very popular for news sites Tools like RSS reader can syndicate news and bring them to the desktop

Problems with RDFS RDFS too weak to describe resources in sufficient detail No localised range and domain constraints Can’t say that the range of hasChild is person when applied to persons and elephant when applied to elephants No existence/cardinality constraints Can’t say that all instances of person have a mother that is also a person, or that persons have exactly 2 parents No transitive, inverse or symmetrical properties Can’t say that isPartOf is a transitive property, that hasPart is the inverse of isPartOf or that touches is symmetrical … Difficult to provide reasoning support No “native” reasoners for non-standard semantics May be possible to reason via FO axiomatisation

RDF(S) tools Read RDF data Parsers: Jena, Redland, SWI-Prolog Validators: W3C RDF validation service Editors: IsaViz, RDF Author, RDFEd, InferEd Store RDF data (XML format, tripples or relational/oo DB) Sesame, RSSDB, RDFLib Use RDF data (applications, RSS news, etc.) Manipulate RDF data (inference, query, etc.) Jena RDQL, etc. Example: SELECT ?person, ?knows WHERE (?x <http://xmlns.com/foap/knows> ?z), (?x <http://xmlns.com/foap/name> ?person), (?z <http://xmlns.com/foap/name> ?knows)

RDF Validators RDF Validation Service http://www.w3.org/RDF/Validator/ In general all the RDF parsers do some kind of validation

References RDF Resource Guide: http://www.w3.org/RDF/Validator/ http://www.ilrt.bris.ac.uk/discovery/rdf/resources/ http://www.w3.org/RDF http://www.w3.org/RDF/Validator/ Chapter 5 of the book