Strabon

diff scripts/printNTriples @ 1422:f86d1129ce79

it turns out that there is no simple way of having the datatype of a constant geometry available in the query builder, thus it is not easy for geof:getSRID to determine the correct datatype and return the appropriate URI for the CRS, when that has SRID 4326. Therefore, we choose to always return CRS84, even for strdf:WKT arguments. Notice, that when geof:getSRID is called evaluated in Java, we have such information available and we can return the correct result. However, we chose in changeset 1420:37792dd7041b to always push the evaluation of all spatial functions in the database. The respective tests have been updated as well.
author Babis Nikolaou <charnik@di.uoa.gr>
date Tue Sep 23 14:05:26 2014 +0300 (2014-09-23)
parents 8863c960e1f0
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/scripts/printNTriples	Tue Sep 23 14:05:26 2014 +0300
     1.3 @@ -0,0 +1,13 @@
     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'