From da14c926936da061be35db3f350afcded7a7f657 Mon Sep 17 00:00:00 2001 From: Nick White Date: Fri, 7 May 2010 10:17:19 +0100 Subject: Use correct rdf info for publications --- makerss.sh | 8 ++++++-- publications/index.ttl | 18 +++++++++--------- 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: . @prefix rss: . +@prefix bibo: . @prefix dc: . @prefix cc: . @@ -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 . 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 @@ a bibo:Article; dc:title "Issues of consent in human-animal sexual relations"; - dc:date "2008"; - dc:isPartOf ; - cc:license ; - bibo:status ; + dc:date "2008"; + dc:isPartOf ; + cc:license ; + bibo:status ; dc:creator . a bibo:Article; dc:title "Technological change and the consumption of music"; - dc:date "2009"; - dc:isPartOf ; - cc:license ; - bibo:status ; + dc:date "2009"; + dc:isPartOf ; + cc:license ; + bibo:status ; dc:creator . a bibo:Periodical; @@ -25,4 +25,4 @@ 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/". -- cgit v1.2.3