95-733 Internet Technologies 1 Master of Information System Management Internet Technologies The Resource Description Framework (RDF)

Slides:



Advertisements
Similar presentations
Introduction to RDF Based on tutorial at
Advertisements

XML Technology in E-Commerce
CS570 Artificial Intelligence Semantic Web & Ontology 2
Master Informatique 1 Semantic Technologies Part 4Jena Werner Nutt.
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.
Dr. Alexandra I. Cristea RDF.
The Semantic Web Resource Description Framework (RDF) Michael B. Spring Department of Information Science and Telecommunications University of Pittsburgh.
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.
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.
Internet Technologies1 RDF Bibliography: “XML How To Program” by Deitel, Deitel, Nieto, Lin and Sadhu. “XML Bible” by Elliotte Rusty Harold. HP’s Jena.
1 CS 502: Computing Methods for Digital Libraries Lecture 17 Descriptive Metadata: Dublin Core.
Intelligent Systems Semantic Web. Aims of the session To introduce the basic concepts of semantic web ontologies.
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.
Resource Description Framework ( RDF ) Xinxia An.
Jena 4/17/2017.
1 An Introduction to RDF and the Jena RDF API. 2 Outline Introduction Statements Writing RDF Reading RDF Navigating a Graph Querying a Graph Operations.
Module 2b: Modeling Information Objects and Relationships IMT530: Organization of Information Resources Winter, 2007 Michael Crandall.
The Semantic Web An Emerging Successor of the Web By Tim Berners-Lee, James Hendler and Ora Lassila Presentedby Veera Chandra Sekhar.
Using Java in Linked Data Applications Fuming Shih Oct 12.
UKOLUG - July Metadata for the Web RDF and the Dublin Core Andy Powell UKOLN, University of Bath UKOLN.
Metadata Standards and Applications 4. Metadata Syntaxes and Containers.
1 Networks and the Internet A network is a structure linking computers together for the purpose of sharing resources such as printers and files Users typically.
RDF (Resource Description Framework) Why?. XML XML is a metalanguage that allows users to define markup XML separates content and structure from formatting.
8/28/97Organization of Information in Collections Introduction to Description: Dublin Core and History University of California, Berkeley School of Information.
Practical RDF Chapter 1. RDF: An Introduction
1cs The Need “Most of the Web's content today is designed for humans to read, not for computer programs to manipulate meaningfully.” Berners-Lee,
WORKING WITH XSLT AND XPATH
RDA data and applications Gordon Dunsire Presented to staff of the British Library, Boston Spa, 20 Mar 2014.
The Semantic Web Service Shuying Wang Outline Semantic Web vision Core technologies XML, RDF, Ontology, Agent… Web services DAML-S.
Chapter 1 Understanding the Web Design Environment Principles of Web Design, 4 th Edition.
1 © Netskills Quality Internet Training, University of Newcastle Introducing XML © Netskills, Quality Internet Training University.
INF 384 C, Spring 2009 Ontologies Knowledge representation to support computer reasoning.
Logics for Data and Knowledge Representation
By: Dan Johnson & Jena Block. RDF definition What is Semantic web? Search Engine Example What is RDF? Triples Vocabularies RDF/XML Why RDF?
Integrating Live Plant Images with Other Types of Biodiversity Records Steve Baskauf Vanderbilt Dept. of Biological Sciences
RDF (Resource Description Framework). 2 Table of Contents  Introduction  Basic RDF –Basic RDF Model –Basic Syntax  Containers  Statements about Statements.
Guidance on expressing the Dublin Core within the Resource Description Framework(RDF) Eric Miller, Paul Miller, Dan Brickley Dublin Core Metadata Initiative.
Resource Description Framework (RDF) Presented by: Jonathan Catlett.
WEB BASED DATA TRANSFORMATION USING XML, JAVA Group members: Darius Balarashti & Matt Smith.
Of 41 lecture 4: rdf – basics and language. of 41 RDF basic ideas the fundamental concepts of RDF  resources  properties  statements ece 720, winter.
1 Metadata –Information about information – Different objects, different forms – e.g. Library catalogue record Property:Value: Author Ian Beardwell Publisher.
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.
1 Overview of XSL. 2 Outline We will use Roger Costello’s tutorial The purpose of this presentation is  To give a quick overview of XSL  To describe.
Internet Technologies1 RDF These slides were built using modified examples from “XML How To Program” by Deitel, Deitel, Nieto, Lin and Sadhu. The slides.
EEL 5937 Ontologies EEL 5937 Multi Agent Systems Lecture 5, Jan 23 th, 2003 Lotzi Bölöni.
Practical RDF Ch.6 Creating an RDF Vocabulary DongHyuk Im SNU OOPSLA Lab. Shelley Powers, O’Reilly August 19, 2004.
The future of the Web: Semantic Web 9/30/2004 Xiangming Mu.
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.
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.
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.
THE BIBFRAME EDITOR AND THE LC PILOT Module 3 – Unit 1 The Semantic Web and Linked Data : a Recap of the Key Concepts Library of Congress BIBFRAME Pilot.
Practical RDF Ch.4 Specialized RDF Relationships: Reification, Containers, and Collections Kim, Jong-Nam SNU OOPSLA Lab. August 12, 2004.
1cs The Need “Most of the Web's content today is designed for humans to read, not for computer programs to manipulate meaningfully.” Berners-Lee,
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.
 XML derives its strength from a variety of supporting technologies.  Structure and data types: When using XML to exchange data among clients, partners,
Other RDF Capabilities. Exercise: Write the following information into a set of statements (triples) and then draw them into and RDF graph The article.
Web Design Principles 5 th Edition Chapter 3 Writing HTML for the Modern Web.
Semantic Web In Depth Resource Description Framework Dr Nicholas Gibbins –
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.
1 Knowledge Representation XI – IKT437 Knowledge Representation XI – IKT437 Part I RDF Jan Pettersen Nytun, UiA Apache Jena.
Introduction to Persistent Identifiers
Building the Semantic Web
Jena 6/8/2018.
RDF For Semantic Web Dhaval Patel 2nd Year Student School of IT
Presentation transcript:

Internet Technologies 1 Master of Information System Management Internet Technologies The Resource Description Framework (RDF)

Internet Technologies 2 Master of Information System Management The Resource Description Framework (RDF) is a W3C recommendation for an XML encoding of metadata. A standard for encoding metadata is important for finding and describing resources. A “resource” is anything with a URI. This would include people, books, devices and so on. Card catalogs, for example, have been used for years to record metadata about the collection of materials in libraries. Is Google the card catalogue for the web? Are we done? RDF

Internet Technologies 3 Master of Information System Management RDF Is All About Making Statements An RDF Document contains Statements. A statement can be thought of as an ordered triple composed of three items: (resource, property-type, property-value) A Resource is anything that can be identified. A Predicate is a property name that has a URI. The Predicate may or may not actually be resolvable. A Value is another Resource or a literal Statements may be represented in RDF XML, abbreviated RDF XML, N-Triples or graphs.

Internet Technologies 4 Master of Information System Management RDF Triples (resource, property-type, property-value) It is required that each resource have a URI. urn:isbn: A property is a specific characteristic, attribute or relationship of a resource. Each property has a specific meaning that can be identified by the property’s name and the associated schema. The schema must actually be pointed to by the property’s namespace. Using RDF Schema we can describe the property names, values and value ranges that are permitted for the property.

Internet Technologies 5 Master of Information System Management A Simple Description property value property value

Internet Technologies 6 Master of Information System Management Resource Valued Property <creator rdf:resource = " Mike McCarthy

Internet Technologies 7 Master of Information System Management Making Many Statements property value property value :

Internet Technologies 8 Master of Information System Management Blank Nodes Joe Smith

Internet Technologies 9 Master of Information System Management XML Valued Property

Internet Technologies 10 Master of Information System Management A Type Property <rdf:type rdf:resource= "

Internet Technologies 11 Master of Information System Management An Abbreviated Type Property property value property value

Internet Technologies 12 Master of Information System Management Bag Valued Properties value property value The resource is of this type

Internet Technologies 13 Master of Information System Management Sequence Valued Properties value property value The resource is of this type

Internet Technologies 14 Master of Information System Management Alternative Valued Properties value property value The resource is of this type

Internet Technologies 15 Master of Information System Management RDF Notations English RDF XML Abbreviated RDF XML N-Triples Graph

Internet Technologies 16 Master of Information System Management An Example Document Represented in RDF/XML Describe a web site From Deitel and Deitel

Internet Technologies 17 Master of Information System Management <rdf:RDF xmlns:rdf = " xmlns:dc = " Deitel and Associates, Inc. This is the home page of Deitel and Associates, Inc text/html en Deitel and Associates The root element of an RDF document is RDF. Each property of the resource being described is a child element of the Description element. The content of the child is the value of the property. Namespaces are used to distinguish between RDF elements and elements in property types and values. Describing a web site

Internet Technologies 18 Master of Information System Management The Dublin Core A collection of property elements designed to provide a similar structure as that provided by a card catalog. For example, the following are elements defined in the Dublin Core namespace: TITLE The name given to the resource CREATOR The person or organization that created … SUBJECT The topic of the resource… DESCRIPTION… :

Internet Technologies 19 Master of Information System Management <rdf:RDF xmlns:rdf = " xmlns:dc = " Deitel and Associates, Inc. This is the home page of Deitel and Associates, Inc text/html en Deitel and Associates A single RDF element can contain any number of Description elements. A Description element can state more than one property about a resource. Some properties may be resource valued. For example, suppose Deitel and Associates has an address…

Internet Technologies 20 Master of Information System Management <rdf:RDF xmlns:rdf = " xmlns:dc = " Deitel and Associates, Inc. This is the home page of Deitel and Associates, Inc text/html en Deitel and Associates The Creator becomes a resource rather than a literal. This is a resource valued property. Another way to say the same thing is with a resource attribute…

Internet Technologies 21 Master of Information System Management <rdf:RDF xmlns:rdf = " xmlns:dc = " Deitel and Associates, Inc. This is the home page of Deitel and Associates, Inc text/html en Deitel and Associates

Internet Technologies 22 Master of Information System Management RDF Containers An RDF element may describe a resource with multiple properties of the same type. Perhaps a book has several authors or a web page may be found at several sites. RDF defines three types of container objects: Bag – a group of unorderd properties – use li. Seq – a sequence (ordered list) of properties Alt – a list of alternative properties from which to choose a single one Let’s look at a more involved example from Deitel and Deitel…

Internet Technologies 23 Master of Information System Management <rdf:RDF xmlns:rdf = " xmlns:dc = " Home page of Deitel products Deitel and Associates, Inc. Statements can be made about a container as a whole and so we give the container an ID.

Internet Technologies 24 Master of Information System Management About our Products The aboutEach attribute applies to each element in the container.

Internet Technologies 25 Master of Information System Management Announcements, Oppurtunities and internships at Deitel Associates All about us Books, Multimedia Cyber Classrooms and Complete Training Courses <rdf:Description about = " Corporate Training Courses

Internet Technologies 26 Master of Information System Management <rdf:Description about = " Looking for Training Contractors <rdf:Description about = " Internships at Deitel and Associates, Inc. Introduction to Deitel and Associates, Inc. Our location and how to get there

Internet Technologies 27 Master of Information System Management An RDF Application Composite Capabilities/Preference Profiles The CC/PP working group was formed in August Its mission was to develop an RDF-based framework for the management of device profile information. Now under W3C’s Ubiquitous Web Applications Working Group (UWAWG)

Internet Technologies 28 Master of Information System Management A composite capability/preference profile is a collection of information which describes the capabilities, hardware, system software and applications used by someone accessing the web. Information might include: Preferred language (Spanish, French, etc.) Sound (on/off) Images (on/off) Class of device (phone, PC, printer, etc.) Screen size Available bandwidth Version of HTML supported, and so on. An RDF Application CC/PP

Internet Technologies 29 Master of Information System Management Composite Capability/Preference Profiles (CC/PP) DEVICE PROFILE CC/PP RDF XML CC/PP provides the equivalent of database fields and associated model for formalizing the device profiles RDF is language which provides a standard way for using XML to represent metadata in the form of properties and relationships of items on the Web. The device profile and user preferences might be stored in a CC/PP repository. CC/PP is in turn an RDF application.

Internet Technologies 30 Master of Information System Management The location of the device profile is sent with a request for a Web page. The CC/PP data is accessed and on the basis of the profile, a Web server can choose the right content. This might be a certain XHTML file or perhaps a suitable document would be generated on the fly. A document on the server may refer to its own document profile-describing the required capabilities of its client. The server might match and send or generate and send. Composite Capability/Preference Profiles (CC/PP)

Internet Technologies 31 Master of Information System Management Each variant of the document has a document profile describing the browser support it needs to display it DEVICE PROFILES DOCUMENT PROFILES NEGOTIATE CORRECT CONTENT FOR DEVICES If none of the document variants are suitable, existing document may be transformed by style sheet or tool for the purpose, or new document generated DEVICES RECEIVE RIGHT MARK-UP

Internet Technologies 32 Master of Information System Management Processing RDF in Java DOM? SAX? StAX? Open source Jena from HP Research provides another approach

Internet Technologies 33 Master of Information System Management Jena Example 1 // Modified from HP's Jena Tutorial // ~/mm6/www/95-733/examples/Jena import com.hp.hpl.jena.rdf.model.*; import com.hp.hpl.jena.vocabulary.*; public class Tutorial01 extends Object { // some definitions static String personURI = " static String fullName = "John Smith";

Internet Technologies 34 Master of Information System Management public static void main (String args[]) { // create an empty model (An empty RDF graph) Model model = ModelFactory.createDefaultModel(); // create the resource Resource johnSmith = model.createResource(personURI); // add the property johnSmith.addProperty(VCARD.FN, fullName); model.write(System.out); }

Internet Technologies 35 Master of Information System Management D:\McCarthy\www\95-733\examples\Jena>java Tutorial01 <rdf:RDF xmlns:rdf=" xmlns:vcard=" > John Smith

Internet Technologies 36 Master of Information System Management A Resource Valued Predicate // Modified from HP's Jena Tutorial import com.hp.hpl.jena.rdf.model.*; import com.hp.hpl.jena.vocabulary.*; public class Tutorial03 extends Object { public static void main (String args[]) { String personURI = " String givenName = "John"; String familyName = "Smith"; String fullName = givenName + " " + familyName; // create an empty model Model model = ModelFactory.createDefaultModel();

Internet Technologies 37 Master of Information System Management // create the resource // and add the properties cascading style Resource johnSmith = model.createResource(personURI).addProperty(VCARD.FN, fullName).addProperty(VCARD.N, model.createResource().addProperty(VCARD.Given, givenName).addProperty(VCARD.Family, familyName));

Internet Technologies 38 Master of Information System Management // list the statements in the graph StmtIterator iter = model.listStatements(); // print out the predicate, subject and object of each statement while (iter.hasNext()) { Statement stmt = iter.nextStatement(); // get next statement Resource subject = stmt.getSubject(); // get the subject Property predicate = stmt.getPredicate(); // get the predicate RDFNode object = stmt.getObject(); // get the object System.out.print(subject.toString()); System.out.print(" " + predicate.toString() + " ");

Internet Technologies 39 Master of Information System Management if (object instanceof Resource) { System.out.print(object.toString()); } else { // object is a literal System.out.print(" \"" + object.toString() + "\""); } System.out.println("."); } // end while System.out.println("==================="); model.write(System.out); }

Internet Technologies 40 Master of Information System Management D:\McCarthy\www\95-733\examples\Jena>java Tutorial03 16fa474:fd074695f6: "John". "John Smith". 16fa474:fd074695f6: "Smith" fa474:fd074695f6: =================== <rdf:RDF xmlns:rdf=" xmlns:vcard=" > John Smith John Smith Notes: 16fa… is a blank node with family and given properties. The main resource has a blank node as the value of the N property. The main resource also has a FN property with a value.

Internet Technologies 41 Master of Information System Management Reading OWL with Jena import com.hp.hpl.jena.rdf.model.*; import com.hp.hpl.jena.ontology.*; import java.io.*; import java.net.*; public class ReadWineOntology extends Object { public static void main (String args[]) throws Exception { // create an empty model OntModel model = ModelFactory.createOntologyModel();

Internet Technologies 42 Master of Information System Management // read the wine.xml file either way model.read("file:D:/McCarthy/www/95-733/examples/Jena/wine.xml"); //model.read(" // write it to standard out model.write(System.out); } The next step is to use Jena to make or verify deductions.

Internet Technologies 43 Master of Information System Management The Semantic Web By augmenting web pages with data directed at computers and by adding documents solely for computers, we will transform the web into the Semantic Web. Intuitive software will be developed that will allow anyone to create Semantic Web Pages. For the semantic web to function, computers must have access to structured collections of information and sets of inference rules that can be used to conduct automated reasoning. XML has no built-in mechanism to convey the meaning of the user’s new tags to other users. These notes are from an article entitled “The Semantic Web” by Tim Berners-Lee, James Hendler and Ora Lassila appearing in Scientific American, May 2001

Internet Technologies 44 Master of Information System Management The Semantic Web The challenge of the Semantic Web is to provide a language that expresses both data and rules for reasoning about the data and that allows rules from an existing knowledge-representation system to be exported unto the Web. Ontologies: Collections of statements written in a language such as RDF that define the relations between concepts and specify logical rules for reasoning about them. Computers will “understand” the meaning of semantic data on a web page by following links to specified ontologies. Consider the statement “a hex-head bolt is a type of machine bolt”. We could encode this in RDF. When writing code against traditional XML data, the programmer must know what the the document author uses each tag for. Meaning is expressed by RDF, which encodes it in a set of triples.

Internet Technologies 45 Master of Information System Management The Semantic Web An RDF document makes assertions that particular things (people, web pages, or whatever) have properties (such as “is sister of”, “is the author of”) with certain values (another person, another Web page). We can remove ambiguity by associating each of the three parts with a URI. For example: “(filed 5 in database A) (is a field of type) (zip code)” could be replaced with three URI’s. An ontology is a document or file that formally defines the relations among terms. An ontology may express a rule “If a city code is associated with a state code, and an address uses that city code, then that address has the associated state code.” A program can then draw conclusions. The meaning of terms or XML codes can be defined by pointers from the page to an ontology.

Internet Technologies 46 Master of Information System Management The Semantic Web Many automated web based services already exist without semantics, but other programs such as agents have no way to locate one that will perform a specific function. Service Discovery will happen only when there is a common language to describe a service in a way that lets other agents “understand” both the function offered and how to take advantage of it. Services can advertise their functions in directories analogous to the Yellow Pages. Devices can advertise their abilities with RDF.