Resource Description Framework (RDF)

Thursday 12th of December 2013 09:59:25 AM


  Toggle Advanced Options



The Resource Description Framework (RDF) is a W3C Recommendation for describing resources. A resource can be though of as anything that can be identified.

Resources have properties. A property is represented by an arc, labeled with the name of a property. Properties are identified by a URI. There is no requirement that the URI of a property resolve to anything when accessed by a browser.

Each arc in an RDF model is called a statement. Each statement asserts a fact about a resource. A statement has three parts:

  • The subject (S) in the resource from which the arc leaves
  • The predicate (P) is the property that labels the arc
  • The object (O) is the resource or literal pointed to by the arc. The object of a statement can be either a literal or another resource.

A statement is sometimes called a triple, because of its three parts. An RDF model is represented as a set of statements.



<rdf:RDF
  xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#'
  xmlns:vcard='http://www.w3.org/2001/vcard-rdf/3.0#'
 >
  <rdf:Description rdf:about='http://somewhere/JohnSmith'>
    <vcard:FN>John Smith</vcard:FN>
    <vcard:N rdf:nodeID="A0"/>
  </rdf:Description>
  <rdf:Description rdf:nodeID="A0">
    <vcard:Given>John</vcard:Given>
    <vcard:Family>Smith</vcard:Family>
  </rdf:Description>
</rdf:RDF>



Comments

Acknowledgement@13-12-12 10:47:22 by Brett Kromkamp

The above example is taken from the Apache Jena RDF Introduction.






Google