EggheadExample

From FOAF

Jump to: navigation, search

Here is an RDF example which you can feed to the RDF Validator.

It says, in RDF, "Alice knows someone that has an IQ of 200".

http://rdfweb.org/mt/foaflog/archives/egghead.png

If you didn't know this was RDF, and just looked at the XML, you wouldn't be sure whether the property of having iq=200 was being ascribed to Alice, to the person she knew, or even to the fact of her knowing this person.

<?xml version="1.0"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  xmlns:dc="http://purl.org/dc/elements/1.1/"
  xmlns="http://example.org/rss2-madeup-ns"
  xmlns:mensa="http://example.com/egghead-metrics-ns#"
  xmlns:foaf="http://xmlns.com/foaf/0.1/">
<rdf:Description rdf:about="http://page">
<description>a page about a person</description>
<foaf:topic>
  <foaf:Person>   
    <foaf:name>Alice</foaf:name>
    <foaf:knows mensa:iq="200"/>
 </foaf:Person>
</foaf:topic>
</rdf:Description>
</rdf:RDF>