RDF documents are made of RDF statements that describe resources. Each statement has three parts , so it's called a triple. Here are the three parts of an RDF statement:
An RDF statement, then, is made up of a resource, a named property, and a property value. In RDF, you name these three parts like this:
Here's a simple example RDF document: Listing ch18_04.rdf<?xml version="1.0" ?> <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> <rdf:Description about="http://www.starpowder.com/planets.html"> <Creator>Nicolas Copernicus</Creator> </rdf:Description> </rdf:RDF> In this case, the subject is the document http://www.starpowder.com/planets.html , the predicate is the named property Creator , and the object is the name of the document's creator, Nicolas Copernicus. To understand RDF, I'm going to take this document apart piece-by-piece now. |