From e3d41fb34136195c15c4b89a0830e6079ad136b4 Mon Sep 17 00:00:00 2001 From: Nick White Date: Sun, 11 Apr 2010 00:53:51 +0100 Subject: Another day, another serialisation: Turtle Switch to turtle for rdf serialisation, fix rss output --- .gitignore | 2 +- .htaccess | 2 +- .htstatic | 2 +- Makefile | 4 ++-- card.ttl | 18 ++++++++++++++++++ foaf.n3 | 18 ------------------ includes/header-index.xml | 4 ++-- includes/header.xml | 2 +- makerss.sh | 6 +++--- 9 files changed, 29 insertions(+), 29 deletions(-) create mode 100644 card.ttl delete mode 100644 foaf.n3 diff --git a/.gitignore b/.gitignore index cae0f7d..270db90 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,5 @@ *.xml *.gz -rss.n3 +index.ttl !includes/*.xml diff --git a/.htaccess b/.htaccess index fba45da..53b3bff 100755 --- a/.htaccess +++ b/.htaccess @@ -3,4 +3,4 @@ AddDefaultCharset utf-8 Options +Multiviews DirectoryIndex index AddEncoding x-gzip .gz -AddType "text/rdf+n3; charset=utf-8" .n3 +AddType "text/turtle" .ttl diff --git a/.htstatic b/.htstatic index fba45da..53b3bff 100755 --- a/.htstatic +++ b/.htstatic @@ -3,4 +3,4 @@ AddDefaultCharset utf-8 Options +Multiviews DirectoryIndex index AddEncoding x-gzip .gz -AddType "text/rdf+n3; charset=utf-8" .n3 +AddType "text/turtle" .ttl diff --git a/Makefile b/Makefile index bacd289..f284d8c 100644 --- a/Makefile +++ b/Makefile @@ -4,9 +4,9 @@ SITENAME=http://njw.me.uk FOAF=http://njw.me.uk/foaf\#i MARKDOWN=smu -RSS=rss.n3 +RSS=index.ttl PAGES=$(shell find . -name '*.txt' ! -name 'robots.txt' ! -name $(RSS)) -EXTRAS=$(shell find . -name '*.css') foaf.n3 +EXTRAS=$(shell find . -name '*.css') card.ttl TARGETS=$(PAGES:.txt=.xml) $(RSS) GZIP=$(PAGES:=.gz) $(TARGETS:=.gz) $(EXTRAS:=.gz) diff --git a/card.ttl b/card.ttl new file mode 100644 index 0000000..41f1660 --- /dev/null +++ b/card.ttl @@ -0,0 +1,18 @@ +@prefix rdf: . +@prefix foaf: . +@prefix dc: . +@prefix cc: . +@prefix : . + +<> a foaf:PersonalProfileDocument; + dc:creator :i; + cc:license ; + foaf:primaryTopic :i. + +:i a foaf:Person; + foaf:name "Nick J. White"; + foaf:givenName "Nick"; + foaf:nick "njw"; + foaf:homepage ; + foaf:openid ; + foaf:mbox_sha1sum "6401a28665a1feaecd7f4e5591dc5eadf285eeec". diff --git a/foaf.n3 b/foaf.n3 deleted file mode 100644 index 41f1660..0000000 --- a/foaf.n3 +++ /dev/null @@ -1,18 +0,0 @@ -@prefix rdf: . -@prefix foaf: . -@prefix dc: . -@prefix cc: . -@prefix : . - -<> a foaf:PersonalProfileDocument; - dc:creator :i; - cc:license ; - foaf:primaryTopic :i. - -:i a foaf:Person; - foaf:name "Nick J. White"; - foaf:givenName "Nick"; - foaf:nick "njw"; - foaf:homepage ; - foaf:openid ; - foaf:mbox_sha1sum "6401a28665a1feaecd7f4e5591dc5eadf285eeec". diff --git a/includes/header-index.xml b/includes/header-index.xml index 1e5119c..d6cb771 100644 --- a/includes/header-index.xml +++ b/includes/header-index.xml @@ -7,8 +7,8 @@ TITLE - - + + diff --git a/includes/header.xml b/includes/header.xml index ae28724..0b90e1f 100644 --- a/includes/header.xml +++ b/includes/header.xml @@ -7,7 +7,7 @@ TITLE - + diff --git a/makerss.sh b/makerss.sh index 4b8e12e..653bbb2 100755 --- a/makerss.sh +++ b/makerss.sh @@ -18,14 +18,14 @@ cat << EOF dc:creator <${creator}>; cc:license ; - :items [ + rss:items ( EOF for item in $items; do - echo " rdf:resource <${siteurl}${item}>;" + echo " <${siteurl}${item}>" done -echo " ]." +echo " )." for item in $items; do title=`head -n 1 ./${item}.txt` -- cgit v1.2.3