RDFXMLinSVG

From FOAF

Jump to: navigation, search

This is a quick example of using RDF/XML inside an otherwise empty SVG element, allowing RDF metadata to fit within CDF WICD world (see also http://www.w3.org/TR/2007/CR-WICDFull-20070718/ ). CDF doesn't itself provide explicit support for RDF/XML or RDFa, but seems to allow it implicitly.

TODO:

  • find complete CDF/WICD examples and check the RDF is legitimate
  • figure out if the rdf:RDF element can be omitted (from RDF's point of view it probably can)

<svg version="1.2" baseProfile="tiny" xmlns="http://www.w3.org/2000/svg" 
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" 
   xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#">
  <metadata>
      <rdf:RDF xmlns="http://xmlns.com/foaf/0.1/">
           <Person>
             <name>Dan Brickley</name>
             <openid rdf:resource="http://danbri.org/"/>
             <homepage rdf:resource="http://danbri.org/"/>
             <weblog rdf:resource="http://danbri.org/words/"/>
             <rdfs:seeAlso rdf:resource="http://danbri.org/foaf.rdf"/>
           </Person>
      </rdf:RDF>
    </metadata>
</svg>