Chapter 7: Resource Description Framework (RDF) - PowerPoint PPT Presentation

1 / 14
About This Presentation
Title:

Chapter 7: Resource Description Framework (RDF)

Description:

... about='http://www.wiley.com/SOC' ... http://www.wiley.com/SOC http://purl.org/dc/elements/1.1/title 'Service ... rdf:Alt (choice) Accompanied by properties ... – PowerPoint PPT presentation

Number of Views:42
Avg rating:3.0/5.0
Slides: 15
Provided by: DrMunind5
Category:

less

Transcript and Presenter's Notes

Title: Chapter 7: Resource Description Framework (RDF)


1
  • Chapter 7Resource Description Framework (RDF)

Service-Oriented Computing Semantics, Processes,
Agents Munindar P. Singh and Michael N. Huhns,
Wiley, 2005
2
RDF
  • Provides a basis for knowledge representation
  • Supports inferencing
  • Simple language to capture assertions
    (statements), which help capture knowledge, e.g.,
    about resources
  • Combines old KR ideas (frames, OO modeling) but
    uses the Web to enhance their range and avoid
    some longstanding problems

3
Why RDF?
  • XML
  • Gives us a document tree
  • Doesnt identify the content represented by a
    document, where content means
  • Concepts the document is about
  • Relationships among them
  • Enables multiple representations for the same
    content
  • RDF expresses the content itself

4
Resources and Literals
  • RDF captures descriptions of resources
  • A resource is an addressable object
  • Identified via a URI
  • Of which a description can be given (and which is
    worth talking about)
  • A literal is something simpler
  • A value, e.g., string or integer
  • Cannot be given a description

5
Statements or Triples
  • RDF is based on a simple grammar
  • An RDF document is just a set of statements or
    triples
  • Each statement consists of
  • Subject a resource
  • Object a resource or a literal
  • Predicate a resource
  • Comes with RDFS, a vocabulary to create
    vocabularies

6
Rendering RDF
  • RDF is not about the surface syntax but about the
    underlying content
  • Using the XML serialization of RDF
  • RDF is not tied to XML
  • Standard XML namespace syntax
  • Namespaces defined by the RDF standard
  • Typically abbreviated rdf and rdfs

7
Example in XML (Using Dublin Core)
  • lt?xml version'1.0' encoding'UTF-8'?gt
  • ltrdfRDF
  • xmlnsrdf"http//www.w3.org/1999/02/22-rdf-syn
    tax-ns"
  • xmlnsdc"http//purl.org/dc/elements/1.1/"gt
  • ltrdfDescription rdfabout"http//www.wiley.co
    m/SOC"gt
  • ltdctitlegtService-Oriented
    Computinglt/dctitlegt
  • ltdccreatorgtMunindarlt/dccreatorgt
  • ltdccreatorgtMichaellt/dccreatorgt
  • ltdcpublishergtWileylt/dcpublishergt
  • lt/rdfDescriptiongt
  • lt/rdfRDFgt
  • rdfDescription gathers statements about one
    subject

8
Example in N-Triples Notation
  • lthttp//www.wiley.com/SOCgt
  • lthttp//purl.org/dc/elements/1.1/titlegt
  • "Service-Oriented Computing" .
  • lthttp//www.wiley.com/SOCgt
  • lthttp//purl.org/dc/elements/1.1/creatorgt
  • "Munindar" .
  • lthttp//www.wiley.com/SOCgt
  • lthttp//purl.org/dc/elements/1.1/creatorgt
  • "Michael" .
  • lthttp//www.wiley.com/SOCgt
  • lthttp//purl.org/dc/elements/1.1/publishergt
  • "Wiley" .
  • Could also write individual statements in the XML
    syntax, but the rdfDescription element
    simplifies the notation

9
Exercise
  • Graphs represent binary relationships naturally
  • The vendor ships SKU-99
  • Express a three-party relationship
  • The vendor ships SKU-99 quickly
  • Hint think of gerunds from natural language
    grammar

10
Reification of Statements
  • Reify to make referenceable, essential for
    quoting statements to
  • Agree or disagree with them
  • Assert modalities possible, desirable,
  • Make a statement into a resource then talk about
    it
  • rdfStatement is the class whose rdftype the
    given statement (object) is additional
    properties such as rdfsubject, rdfobject, and
    rdfpredicate

11
RDF Schema
  • Analogous to an object-oriented type system built
    on top of RDF. Defines
  • rdfsClass, rdfssubClassOf
  • rdfsResource, rdfsLiteral
  • rdfsProperty, rdfssubPropertyOf
  • rdfsrange, rdfsdomain
  • rdfslabel, rdfscomment, rdfsseeAlso
  • Applications of RDF Schema deferred to OWL, which
    greatly enhances the above

12
RDF Schema versus XML Schema
  • Both help define custom vocabularies
  • An XML Schema document gives us syntactic details
  • An RDF Schema document gives us (part of) the
    meaning of a vocabulary
  • An OWL document (next chapter) captures richer
    meaning

13
Collections
  • Function as containers
  • rdfBag
  • rdfSequence
  • rdfAlt (choice)
  • Accompanied by properties to extract elements
  • Schematically represented as rdf_1, and so on

14
Chapter 7 Summary
  • RDF captures deeper structure than XML
  • RDF captures graphs in general
  • Meaning depends on the graph, not the document
    that represents a graph
  • RDF is based on an simple linguistic
    representation subject, predicate, object
  • But webified via URIs
  • RDF comes with RDF Schema
  • In essence, an object-oriented type system a
    vocabulary to create new vocabularies
  • Used for important vocabularies (FOAF, DC,
    Mozilla extensions)
  • Provides a basis for OWL
Write a Comment
User Comments (0)
About PowerShow.com