how to build and publish your own FOAF.rdf

analysis, developer, informatics, tech

Recipe.

Ingredients = exactitude, XML, at least one FOAF friend

STEPS

1. look around online for authoritative examples of foaf.rdf files.

2. copy as text, edit (.txt) in notepad, rebuild using your own urn/url variables, save in utf-8 format as an .rdf

3. post in the root directory of your website

4. make page head meta references like this:

<meta charset=”utf-8″>
<html prefix=”rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns#
foaf: http://xmlns.com/foaf/0.1/
rdfs: http://www.w3.org/2000/01/rdf-schema#
<meta name=”author” content=”Person Name
<link rel=”meta” type=”application/rdf+xml” title=”FOAF” href=”http://www.example.com/foaf.rdf

{code =replace end quote and greater-than, last 3 lines, but with forward slash, before greater-than in the final line}

5. verify your code using the very cool W3C RDF Validation Results like this: http://j.mp/1yCRRSE

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s