Strabon

changeset 582:e614ad7569c5

polishing
author Kostis Kyzirakos <kkyzir@di.uoa.gr>
date Wed Jul 18 16:54:59 2012 +0300 (2012-07-18)
parents 2d32cfc2db18
children 86e5ba1d801a
files scripts/v2.2/runNoaRefinementChain.sh
line diff
     1.1 --- a/scripts/v2.2/runNoaRefinementChain.sh	Wed Jul 18 16:47:35 2012 +0300
     1.2 +++ b/scripts/v2.2/runNoaRefinementChain.sh	Wed Jul 18 16:54:59 2012 +0300
     1.3 @@ -11,7 +11,7 @@
     1.4  #CHECKDIR="/home/konstantina/allhot/"
     1.5  #CHECKDIR="${HOME}/teleios/nkua/Hotspots/"
     1.6  
     1.7 -POSTGISTEMPLATE="postgistemplate"
     1.8 +#POSTGISTEMPLATE="postgistemplate"
     1.9  #POSTGISTEMPLATE="template_postgis"
    1.10  
    1.11  #dataDir="http://localhost/noa-teleios/out_triples/"
    1.12 @@ -103,6 +103,7 @@
    1.13  createdb -U postgres ${DB} 
    1.14  
    1.15  # load data
    1.16 +echo "initializing database"
    1.17  curl -s  http://dev.strabon.di.uoa.gr/rdf/Kallikratis-Coastline-Corine-dump-postgres-${POSTGRES_MAIN_VERSION}.tgz | tar xz -O | psql -U postgres -d ${DB}
    1.18  psql ${DB} -U postgres -c 'VACUUM ANALYZE '
    1.19  
    1.20 @@ -114,11 +115,8 @@
    1.21  	sudo service ${tomcat} start
    1.22  fi
    1.23  
    1.24 -exit
    1.25 -
    1.26 -echo "initializing database"
    1.27 -echo "IM S D R TP" >stderr.txt
    1.28 -
    1.29 +#echo "IM S D R TP" >stderr.txt
    1.30 +echo "Store Municipalities DeleteInSea Corine RefineInCoast TimePersistency" >stderr.txt
    1.31  
    1.32  #./scripts/endpoint query ${ENDPOINT} "SELECT (COUNT(*) AS ?C) WHERE {?s ?p ?o}"
    1.33  #sudo -u postgres psql -d endpoint -c 'CREATE INDEX datetime_values_idx_value ON datetime_values USING btree(value)';
    1.34 @@ -127,8 +125,6 @@
    1.35  #echo "Continue?"
    1.36  #read a
    1.37  
    1.38 -
    1.39 -
    1.40  for y in 7 8 10 11 ;do
    1.41  	for mon in `seq 4 10`; do
    1.42  		for d in `seq 1 30`; do
    1.43 @@ -178,6 +174,7 @@
    1.44  					../endpoint update ${ENDPOINT} "${query}"
    1.45  					
    1.46  					tmr2=$(timer)
    1.47 +					printf '%s ' $((tmr2-tmr1)) >>stderr.txt
    1.48  
    1.49  					echo;echo;echo;echo "File ${file} inserted Municipalities!"
    1.50