1 / 14

Chapter 7: Resource Description Framework (RDF)

Chapter 7: Resource Description Framework (RDF). Service-Oriented Computing: Semantics, Processes, Agents – Munindar P. Singh and Michael N. Huhns, Wiley, 2005. RDF. Provides a basis for knowledge representation Supports inferencing

Download Presentation

Chapter 7: Resource Description Framework (RDF)

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Chapter 7:Resource 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 Service-Oriented Computing: Semantics, Processes, Agents - Munindar Singh and Michael Huhns

  3. Why RDF? • XML • Gives us a document tree • Doesn’t 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 Service-Oriented Computing: Semantics, Processes, Agents - Munindar Singh and Michael Huhns

  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 Service-Oriented Computing: Semantics, Processes, Agents - Munindar Singh and Michael Huhns

  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 Service-Oriented Computing: Semantics, Processes, Agents - Munindar Singh and Michael Huhns

  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 Service-Oriented Computing: Semantics, Processes, Agents - Munindar Singh and Michael Huhns

  7. Example in XML (Using Dublin Core) <?xml version='1.0' encoding='UTF-8'?> <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc="http://purl.org/dc/elements/1.1/"> <rdf:Description rdf:about="http://www.wiley.com/SOC"> <dc:title>Service-Oriented Computing</dc:title> <dc:creator>Munindar</dc:creator> <dc:creator>Michael</dc:creator> <dc:publisher>Wiley</dc:publisher> </rdf:Description> </rdf:RDF> • rdf:Description gathers statements about one subject Service-Oriented Computing: Semantics, Processes, Agents - Munindar Singh and Michael Huhns

  8. Example in N-Triples Notation <http://www.wiley.com/SOC> <http://purl.org/dc/elements/1.1/title> "Service-Oriented Computing" . <http://www.wiley.com/SOC> <http://purl.org/dc/elements/1.1/creator> "Munindar" . <http://www.wiley.com/SOC> <http://purl.org/dc/elements/1.1/creator> "Michael" . <http://www.wiley.com/SOC> <http://purl.org/dc/elements/1.1/publisher> "Wiley" . • Could also write individual statements in the XML syntax, but the rdf:Description element simplifies the notation Service-Oriented Computing: Semantics, Processes, Agents - Munindar Singh and Michael Huhns

  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 Service-Oriented Computing: Semantics, Processes, Agents - Munindar Singh and Michael Huhns

  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 • rdf:Statement is the class whose rdf:type the given statement (object) is; additional properties such as rdf:subject, rdf:object, and rdf:predicate Service-Oriented Computing: Semantics, Processes, Agents - Munindar Singh and Michael Huhns

  11. RDF Schema • Analogous to an object-oriented type system built on top of RDF. Defines • rdfs:Class, rdfs:subClassOf • rdfs:Resource, rdfs:Literal • rdfs:Property, rdfs:subPropertyOf • rdfs:range, rdfs:domain • rdfs:label, rdfs:comment, rdfs:seeAlso • Applications of RDF Schema deferred to OWL, which greatly enhances the above Service-Oriented Computing: Semantics, Processes, Agents - Munindar Singh and Michael Huhns

  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 Service-Oriented Computing: Semantics, Processes, Agents - Munindar Singh and Michael Huhns

  13. Collections • Function as containers • rdf:Bag • rdf:Sequence • rdf:Alt (choice) • Accompanied by properties to extract elements • Schematically represented as rdf:_1, and so on Service-Oriented Computing: Semantics, Processes, Agents - Munindar Singh and Michael Huhns

  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 Service-Oriented Computing: Semantics, Processes, Agents - Munindar Singh and Michael Huhns

More Related