Strabon
changeset 916:b58aa113f25e
added query alias "all" for returning all triples
author | Babis Nikolaou <charnik@di.uoa.gr> |
---|---|
date | Sun Mar 24 23:33:02 2013 +0200 (2013-03-24) |
parents | e08f9275cd93 |
children | 7e9173482c03 |
files | scripts/strabon |
line diff
1.1 --- a/scripts/strabon Sun Mar 24 23:19:01 2013 +0200 1.2 +++ b/scripts/strabon Sun Mar 24 23:33:02 2013 +0200 1.3 @@ -63,6 +63,7 @@ 1.4 1.5 # predefined queries 1.6 QUERY_SIZE="SELECT (COUNT(*) as ?C) WHERE {?s ?p ?o}" 1.7 +QUERY_GETALL="SELECT * WHERE {?s ?p ?o}" 1.8 QUERY_DELETEALL="DELETE {?s ?p ?o} WHERE {?s ?p ?o}" 1.9 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.10 QUERY_EXPORT="CONSTRUCT {?s ?p ?o} WHERE {?s ?p ?o}" 1.11 @@ -144,6 +145,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 " all: returns all triples" 1.16 echo " hotspots: returns the number of hotspots" 1.17 echo " RESULT_FORMAT : the format of the result. Possible values are \`???' (default), \`xml'" 1.18 echo " \`html', \`kml', \`kmz', or \`geojson'" 1.19 @@ -454,6 +456,9 @@ 1.20 hotspots) 1.21 QUERY="${QUERY_HOTSPOT_SIZE}" 1.22 ;; 1.23 + all) 1.24 + QUERY="${QUERY_GETALL}" 1.25 + ;; 1.26 esac 1.27 1.28 # check for format of result