RDF was originally created in 1999 as a standard on top of XML for encoding metadata, e.g. data about data. It is a foundation for processing metadata.
RDF specifies the data model and syntax for sharing knowledge about concepts on the Web. It does not specify how concepts may relate to one another.
RDF has a simple data model, based on triples:
subject predicate object
It is a graph-based formalism for representing metadata, where the subject and the object are things (entities), and the predicate denotes the relationship between them. Each triple represents a fact. The figure below shows Peter to be the subject of the triple, Sofia to be the object, and lives in to be the predicate describing the relationship between Peter, the subject, and Sofia, the object of the triple.
RDF statements form a graph by being able to share subjects and objects. Also, the subject of one statement can be the object of another and vice versa. For instance, the figure below shows Sofia to be the object of the triple Peter lives in Sofia and the subject of the triple Sofia located in Bulgaria, and Peter to be the subject of both triples: Peter lives in Sofia and Peter has website www.peter.com.
Each subject, predicate and object can have a name, a URI. In the RDF model, these values are called RDF resources. So, an RDF triple really looks like this:
| Subject | Predicate | Object |
http://www.anon.com/foaf#Peter | http://www.location.org/rdf#lives_in | http://www.dbpedia.org/resource/Sofia |
Each resource is uniquely identified on the Web.
RDF graphs can be represented in XML. This is the RDF/XML syntax. XML encoding allows the graphs to be exchanged on the web. The example below shows the representation of the triple Peter lives in Sofia in RDF/XML.
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:ex="http://www.location.org/"
<rdf:Description rdf:about="http://www.anon.com/foaf#Peter">
<ex:lives_in>
<ex:location rdf:resource="http://www.dbpedia.org/resource/Sofia" />
</ex:lives_in>
</rdf:Description>
</rdf:RDF>
RDF provides a model for making logical statements which could be used for inference tasks. It is aligned to the Web architecture and is simple enough for uptake and usage. However, it does not specify how concepts may relate to one another.
RDF is part of the W3C's Semantic Web Activity. It is a W3C Recommendation.
The Resource Description Framework Schema (RDFS) is an extension of RDF. It allows to define simple ontologies - models about concepts and their properties. They can be used to conclude new knowledge.
The Web Ontology Language (OWL) extends RDFS. It makes richer models of knowledge about things possible, but at the cost of those models being more complex for a computer to process.
Copyright © 2008-2009 Ontotext AD