summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xmakerss.sh8
-rw-r--r--publications/index.ttl18
2 files changed, 15 insertions, 11 deletions
diff --git a/makerss.sh b/makerss.sh
index d98ac66..a63c412 100755
--- a/makerss.sh
+++ b/makerss.sh
@@ -4,12 +4,14 @@
[[ "$1" ]] && siteurl="$1" || siteurl=""
[[ "$2" ]] && creator="$2" || creator=""
-items=`find . -name '*.txt' ! -name 'robots.txt' | sed 's/^\.//g' | sed 's/\.txt$//g'`
+items=`find . -name '*.txt' ! -name 'robots.txt' ! -path '*/publications/2*' | sed -e 's/^\.//g' -e 's/\.txt$//g'`
+pubs=`find ./publications -name '2*.txt' | sed -e 's/^\.//g' -e 's/\.txt$//g'`
title=`head -n 1 index.txt`
cat << EOF
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>.
@prefix rss: <http://purl.org/rss/1.0/>.
+@prefix bibo: <http://purl.org/ontology/bibo/>.
@prefix dc: <http://purl.org/dc/elements/1.1/>.
@prefix cc: <http://creativecommons.org/ns#>.
@@ -21,7 +23,7 @@ cat << EOF
rss:items [ a rdf:Seq;
EOF
-for item in $items; do
+for item in $items $pubs; do
echo " rdf:li <${siteurl}${item}>;"
done
@@ -41,3 +43,5 @@ for item in $items; do
cc:license <http://creativecommons.org/licenses/by-sa/3.0/>.
EOF
done;
+
+sed -e '/^@/d' -e "s|http://njw.me.uk|${siteurl}|g" < publications/index.ttl
diff --git a/publications/index.ttl b/publications/index.ttl
index bda2b07..07f0238 100644
--- a/publications/index.ttl
+++ b/publications/index.ttl
@@ -5,18 +5,18 @@
<http://njw.me.uk/publications/2008-consent> a bibo:Article;
dc:title "Issues of consent in human-animal sexual relations";
- dc:date "2008";
- dc:isPartOf <urn:issn:17552273>;
- cc:license <http://creativecommons.org/licenses/by-sa/3.0/>;
- bibo:status <bibo:status/forthcoming>;
+ dc:date "2008";
+ dc:isPartOf <urn:issn:17552273>;
+ cc:license <http://creativecommons.org/licenses/by-sa/3.0/>;
+ bibo:status <bibo:status/forthcoming>;
dc:creator <http://njw.me.uk/card#i>.
<http://njw.me.uk/publications/2009-copyme> a bibo:Article;
dc:title "Technological change and the consumption of music";
- dc:date "2009";
- dc:isPartOf <urn:issn:20411405>;
- cc:license <http://creativecommons.org/licenses/by-sa/3.0/>;
- bibo:status <bibo:status/forthcoming>;
+ dc:date "2009";
+ dc:isPartOf <urn:issn:20411405>;
+ cc:license <http://creativecommons.org/licenses/by-sa/3.0/>;
+ bibo:status <bibo:status/forthcoming>;
dc:creator <http://njw.me.uk/card#i>.
<urn:issn:20411405> a bibo:Periodical;
@@ -25,4 +25,4 @@
<urn:issn:17552273> a bibo:Periodical;
dc:title "Learning and Teaching (LATISS)";
- bibo:uri "http://www.berghahnbooks.com/journals/ltss/".
+ bibo:uri "http://www.berghahnbooks.com/journals/ltss/".