Sign Your Page

Here's a quick start guide on how to sign your pages with RDF and join the Semantic Web. First, start off by putting up an RDF description of your self (with an optional link to your PGP key):

<rdf:RDF 
  xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"   
  xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"  
  xmlns:wn="http://xmlns.com/wordnet/1.6/" 
  xmlns:dc="http://purl.org/dc/elements/1.1/"
  xmlns="http://xmlns.com/foaf/0.1/">

<wn:Person rdf:ID="joe">
  <name>Joe Bloggs</name>
  <mbox rdf:resource="mailto:joe@example.org"/>
  <homepage rdf:resource="http://example.org/~joe/"/>
  <pubkeyAddress rdf:resource="http://example.org/~joe/key.asc"/>

</wn:Person>
</rdf:RDF>

Let's pretend that we've placed that file at http://example.org/~joe/about.xrdf. Now we have an address in the Semantic Web: http://example.org/~joe/about.xrdf#joe

Now, we can add some metadata to our pages. Stick something like in between the <head> tags of your web page:

<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
         xmlns:dc="http://purl.org/dc/elements/1.1/"
         xmlns:wot="http://xmlns.com/wot/0.1/">
  <rdf:Description rdf:about=""

      dc:title       = "My document"
      dc:description = "My ramblings about my summer vacation."
      dc:date        = "2001-09-10"
  >
     <dc:creator rdf:resource="(uri-of-your-rdf-description)#joe" />
     <wot:assurance rdf:resource="(uri-of-document-signature)" />

  </rdf:Description>
</rdf:RDF>

Now, if you want you can use PGP to sign your homepage and place the signature at the address identified by (uri-of-document-signature) above.

If you look in the source code for this page, you can see that it is signed in just this way. The GPG command I used was: gpg -ba filename

Congratulations! You're now a Semantic Web pioneer.

Part of LogicError. Powered by Blogspace, an Aaron Swartz project. Email the webmaster with problems.