diff options
author | Nick White <git@njw.me.uk> | 2010-04-11 00:53:51 +0100 |
---|---|---|
committer | Nick White <git@njw.me.uk> | 2010-04-11 00:53:51 +0100 |
commit | e3d41fb34136195c15c4b89a0830e6079ad136b4 (patch) | |
tree | 071ad31a736b3680b97ee4d3e1c18940e72b90be | |
parent | 3435faa2756cd10697ddc69fcda84a0343093d2d (diff) | |
download | njw-website-e3d41fb34136195c15c4b89a0830e6079ad136b4.tar.bz2 njw-website-e3d41fb34136195c15c4b89a0830e6079ad136b4.zip |
Another day, another serialisation: Turtle
Switch to turtle for rdf serialisation, fix rss output
-rw-r--r-- | .gitignore | 2 | ||||
-rwxr-xr-x | .htaccess | 2 | ||||
-rwxr-xr-x | .htstatic | 2 | ||||
-rw-r--r-- | Makefile | 4 | ||||
-rw-r--r-- | card.ttl (renamed from foaf.n3) | 0 | ||||
-rw-r--r-- | includes/header-index.xml | 4 | ||||
-rw-r--r-- | includes/header.xml | 2 | ||||
-rwxr-xr-x | makerss.sh | 6 |
8 files changed, 11 insertions, 11 deletions
@@ -1,5 +1,5 @@ *.xml *.gz -rss.n3 +index.ttl !includes/*.xml @@ -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 @@ -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 @@ -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/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>TITLE</title> <link rel="stylesheet" type="text/css" href="/includes/style" /> <link rel="icon" href="/graphics/candles.ico" /> - <link rel="alternate" title="rss" type="text/n3" href="/rss" /> - <link rel="meta" title="foaf" type="text/n3" href="/foaf#i" /> + <link rel="alternate" title="rss" type="text/turtle" href="/index.ttl" /> + <link rel="meta" title="foaf" type="text/turtle" href="/card#i" /> <link rel="openid.server" href="http://certifi.ca/_serve" /> <link rel="openid.delegate" href="http://certifi.ca/njw" /> </head> 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>TITLE</title> <link rel="stylesheet" type="text/css" href="/includes/style" /> <link rel="icon" href="/graphics/candles.ico" /> - <link rel="alternate" title="rss" type="text/n3" href="/rss" /> + <link rel="alternate" title="rss" type="text/turtle" href="/index.ttl" /> </head> <body> @@ -18,14 +18,14 @@ cat << EOF dc:creator <${creator}>; cc:license <http://creativecommons.org/licenses/by-sa/3.0/>; - :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` |