HTML and CSS Reference
In-Depth Information
Listing 7-53. Describing a Person in RDF
<rdf:RDF
xmlns:rdf=" http://www.w3.org/1999/02/22-rdf-syntax-ns# "
xmlns:foaf=" http://xmlns.com/foaf/0.1/ "
xmlns="http://www.example.com/johnsmith/contact.rdf#">
<foaf:Person rdf:about="http://www.example.com/johnsmith/contact.rdf#johnsmith">
<foaf:mbox rdf:resource="mailto:john.smith@example.com" />
<foaf:homepage rdf:resource="http://www.example.com/johnsmith/" />
<foaf:family_name>Smith</foaf:family_name>
<foaf:givenname>John</foaf:givenname>
</foaf:Person>
</rdf:RDF>
Figure 7-3 represents this file as an RDF graph.
Figure 7-3. A simple RDF graph
As you will see, RDF can be expressed in a variety of formats. For example, Listing 7-54 is another notation of
Listing 7-53. This notation, N3, will also be described later in detail.
 
Search WWH ::




Custom Search