summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick White <git@njw.me.uk>2010-04-09 16:26:39 +0100
committerNick White <git@njw.me.uk>2010-04-09 16:26:39 +0100
commitff00b54db50ec038e0dde03c3df3da6ca469dfb9 (patch)
tree52df68e4c2184c8c378b6e66202b4c81f716e4f0
parent76b6f5e4339021ad8adb3cb934ec89e744f8c35f (diff)
downloadnjw-website-ff00b54db50ec038e0dde03c3df3da6ca469dfb9.tar.bz2
njw-website-ff00b54db50ec038e0dde03c3df3da6ca469dfb9.zip
Added a simple personal foaf file
-rwxr-xr-x.htaccess1
-rwxr-xr-x.htstatic1
-rw-r--r--Makefile2
-rw-r--r--foaf.n318
-rw-r--r--includes/header-index.xml1
5 files changed, 22 insertions, 1 deletions
diff --git a/.htaccess b/.htaccess
index fe1acbe..fba45da 100755
--- a/.htaccess
+++ b/.htaccess
@@ -3,3 +3,4 @@ AddDefaultCharset utf-8
Options +Multiviews
DirectoryIndex index
AddEncoding x-gzip .gz
+AddType "text/rdf+n3; charset=utf-8" .n3
diff --git a/.htstatic b/.htstatic
index fe1acbe..fba45da 100755
--- a/.htstatic
+++ b/.htstatic
@@ -3,3 +3,4 @@ AddDefaultCharset utf-8
Options +Multiviews
DirectoryIndex index
AddEncoding x-gzip .gz
+AddType "text/rdf+n3; charset=utf-8" .n3
diff --git a/Makefile b/Makefile
index 71cf825..5c45561 100644
--- a/Makefile
+++ b/Makefile
@@ -5,7 +5,7 @@ MARKDOWN=smu
RSS=rss.rdf
PAGES=$(shell find . -name '*.txt' ! -name 'robots.txt' ! -name $(RSS))
-EXTRAS=$(shell find . -name '*.css')
+EXTRAS=$(shell find . -name '*.css') foaf.n3
TARGETS=$(PAGES:.txt=.xml) $(RSS)
GZIP=$(PAGES:=.gz) $(TARGETS:=.gz) $(EXTRAS:=.gz)
diff --git a/foaf.n3 b/foaf.n3
new file mode 100644
index 0000000..41f1660
--- /dev/null
+++ b/foaf.n3
@@ -0,0 +1,18 @@
+@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>.
+@prefix foaf: <http://xmlns.com/foaf/0.1/>.
+@prefix dc: <http://purl.org/dc/elements/1.1/>.
+@prefix cc: <http://creativecommons.org/ns#>.
+@prefix : <http://njw.me.uk/foaf#>.
+
+<> a foaf:PersonalProfileDocument;
+ dc:creator :i;
+ cc:license <http://creativecommons.org/licenses/by-sa/3.0/>;
+ foaf:primaryTopic :i.
+
+:i a foaf:Person;
+ foaf:name "Nick J. White";
+ foaf:givenName "Nick";
+ foaf:nick "njw";
+ foaf:homepage <http://njw.me.uk>;
+ foaf:openid <http://njw.me.uk>;
+ foaf:mbox_sha1sum "6401a28665a1feaecd7f4e5591dc5eadf285eeec".
diff --git a/includes/header-index.xml b/includes/header-index.xml
index 8f43c64..d692a16 100644
--- a/includes/header-index.xml
+++ b/includes/header-index.xml
@@ -8,6 +8,7 @@
<link rel="stylesheet" type="text/css" href="/includes/style" />
<link rel="icon" href="/graphics/candles.ico" />
<link rel="alternate" type="application/rdf+xml" href="/rss" />
+ <link rel="meta" title="foaf" type="application/rdf+n3" href="/foaf#i" />
<link rel="openid.server" href="http://certifi.ca/_serve" />
<link rel="openid.delegate" href="http://certifi.ca/njw" />
</head>