Strabon

changeset 201:8bf0129c5b34

moved printNTriples into scripts/ directory. The script needs comments!
author Babis Nikolaou <charnik@di.uoa.gr>
date Wed May 30 12:52:01 2012 +0300 (2012-05-30)
parents 83372b21a26b
children 365ab173a655
files printNTriples scripts/printNTriples
line diff
     1.1 --- a/printNTriples	Mon May 28 18:06:32 2012 +0300
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,13 +0,0 @@
     1.4 -#! /bin/bash
     1.5 -
     1.6 -input=$1
     1.7 -
     1.8 -if [ "$input" == "" ]; then
     1.9 -	echo "give database name"
    1.10 -	exit -1
    1.11 -fi
    1.12 -
    1.13 -fgrep '[s=' $input \
    1.14 -| sed 's/\[s=\(.*\);o=\(.*\);p=\(.*\)\]/\1 \3 \2;/g' \
    1.15 -| sed 's/\(http:\/\/[^ >]*\)\([ ;]\)/<\1>\2/g' \
    1.16 -| sed 's/;/./g'
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/scripts/printNTriples	Wed May 30 12:52:01 2012 +0300
     2.3 @@ -0,0 +1,13 @@
     2.4 +#! /bin/bash
     2.5 +
     2.6 +input=$1
     2.7 +
     2.8 +if [ "$input" == "" ]; then
     2.9 +	echo "give database name"
    2.10 +	exit -1
    2.11 +fi
    2.12 +
    2.13 +fgrep '[s=' $input \
    2.14 +| sed 's/\[s=\(.*\);o=\(.*\);p=\(.*\)\]/\1 \3 \2;/g' \
    2.15 +| sed 's/\(http:\/\/[^ >]*\)\([ ;]\)/<\1>\2/g' \
    2.16 +| sed 's/;/./g'