Strabon
changeset 317:ca965a7829ba
added template query for returning the number of hotspots. The alias is "hotspots"
author | Babis Nikolaou <charnik@di.uoa.gr> |
---|---|
date | Thu Jun 21 20:49:51 2012 +0300 (2012-06-21) |
parents | ab82fc8816c0 |
children | 48d640f6f1db |
files | scripts/strabon |
line diff
1.1 --- a/scripts/strabon Thu Jun 21 14:56:00 2012 +0300 1.2 +++ b/scripts/strabon Thu Jun 21 20:49:51 2012 +0300 1.3 @@ -47,6 +47,7 @@ 1.4 # predefined queries 1.5 QUERY_SIZE="SELECT (COUNT(*) as ?C) WHERE {?s ?p ?o}" 1.6 QUERY_DELETEALL="DELETE {?s ?p ?o} WHERE {?s ?p ?o}" 1.7 +QUERY_HOTSPOT_SIZE="SELECT (COUNT(*) as ?C) WHERE {?h <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://teleios.di.uoa.gr/ontologies/noaOntology.owl#Hotspot>}" 1.8 1.9 # debug option for log4j configuration: 1.10 #-Dlog4j.debug 1.11 @@ -102,6 +103,7 @@ 1.12 echo 1.13 echo " SPARQL_QUERY : the SPARQL query to execute or an alias name such as the following:" 1.14 echo " size: returns the number of triples" 1.15 + echo " hotspots: returns the number of hotspots" 1.16 echo " RESULT_FROM : the format of the result. Possible values are \`???' (default), \`xml'" 1.17 echo " \`html', \`kml', \`kmz', or \`geojson'" 1.18 } 1.19 @@ -342,6 +344,9 @@ 1.20 size) 1.21 QUERY="${QUERY_SIZE}" 1.22 ;; 1.23 + hotspots) 1.24 + QUERY="${QUERY_HOTSPOT_SIZE}" 1.25 + ;; 1.26 esac 1.27 1.28 # check for format of result