Strabon

view scripts/printNTriples @ 1335:2c2e2b77c225

Merging with default branch
author Kostis Kyzirakos <kostis@cwi.nl>
date Fri May 02 17:39:27 2014 +0200 (2014-05-02)
parents 8863c960e1f0
children
line source
1 #! /bin/bash
3 input=$1
5 if [ "$input" == "" ]; then
6 echo "give database name"
7 exit -1
8 fi
10 fgrep '[s=' $input \
11 | sed 's/\[s=\(.*\);o=\(.*\);p=\(.*\)\]/\1 \3 \2;/g' \
12 | sed 's/\(http:\/\/[^ >]*\)\([ ;]\)/<\1>\2/g' \
13 | sed 's/;/./g'