Presentation on theme: "Introduction to RDF Based on tutorial at www.w3schools.com."— Presentation transcript:
Introduction to RDF Based on tutorial at
Resource Description Framework A framework (not a language) for describing resources Model for data Syntax to allow exchange and use of information stored in various locations The point is to facilitate reading and correct use of information by computers, not necessarily by people
w3c recommendation Find the official recommendation at Note the subtle difference between a standard and a recommendation –w3c has no power to enforce compliance. –Obeying the rules in the recommendation allows a site to participate in the world wide web cooperative enterprise.
Identification and description RDF identifies resources with URIs –Often, though not always, the same as a URL –Anything that can have a URI is a RESOURCE RDF describes resources with properties and property values –A property is a resource that has a name Ex. Author, Book, Address, Client, Product –A property value is the value of the Property Ex. “Joanna Santillo,” etc. A property value can be another resource, allowing nested descriptions.
Statements Resource, Property, Property Value Aka subject, predicate, object of a statement Predicates are not the same as English language verbs. –Specify a relationship between the subject and the object
Examples Statement: "The author of is Jan Egil Refsnes". Subject: Predicate: author Object: Jan Egil Refsnes Statement: "The homepage of is Subject: Predicate: homepage Object:
Binary predicates RDF offers only binary predicates. Think of them as P(x,y) where P is the relationship between the objects x and y. From the example, X = Y = Jan Egil Refsnes P = author Jan Egil Refsnes author
Bob Dylan USA Columbia Bonnie Tyler UK CBS Records …. Root element of RDF documents Source of namespace for elements with rdf prefix Source of namespace for elements with cd prefix Description element describes the resource identified by the rdf:about attribute. Cd:country etc are properties of the resource.
RDF validator Check the correctness of an RDF document: Result shows the subject, predicate and object of each element of the document and a graph of the model.
Containers Groups of things: unordered list; duplicates allowed ordered list; duplicates allowed list of alternatives; one will be selected
Example CD Record Tape Exactly one of these formats
Limiting the scope Collection - describes a group that contains only the specified members, no others.
RDF Schema Extension to RDF to allow definition of application-specific classes and properties –Does not define the classes, properties. –Provides a framework to describe such –Classes - similar to OOP Allows instances and subclasses of classes.
14 Horse defined as subclass of animal
15 Abbreviated version. Works because an RDFS class is an RDF resource. Use rdfs:Class instead of rdfDescription and drop the rdf:type information
Dublin Core RDF is metadata -- data about data Dublin core is a set of properties for describing documents See for detailswww.dublincore.org 15 basic elements: Contributor, coverage, creator, format, date, description, identifier, language, publisher, relation, rights, source, subject, title, type