# HG changeset patch # User Babis Nikolaou # Date 1364160782 -7200 # Node ID b58aa113f25e16724a246a0a34db22b75c08fa17 # Parent e08f9275cd93e37eea085220f0cd59d198853510 added query alias "all" for returning all triples diff -r e08f9275cd93 -r b58aa113f25e scripts/strabon --- a/scripts/strabon Sun Mar 24 23:19:01 2013 +0200 +++ b/scripts/strabon Sun Mar 24 23:33:02 2013 +0200 @@ -63,6 +63,7 @@ # predefined queries QUERY_SIZE="SELECT (COUNT(*) as ?C) WHERE {?s ?p ?o}" +QUERY_GETALL="SELECT * WHERE {?s ?p ?o}" QUERY_DELETEALL="DELETE {?s ?p ?o} WHERE {?s ?p ?o}" QUERY_HOTSPOT_SIZE="SELECT (COUNT(*) as ?C) WHERE {?h }" QUERY_EXPORT="CONSTRUCT {?s ?p ?o} WHERE {?s ?p ?o}" @@ -144,6 +145,7 @@ echo echo " SPARQL_QUERY : the SPARQL query to execute or an alias name such as the following:" echo " size: returns the number of triples" + echo " all: returns all triples" echo " hotspots: returns the number of hotspots" echo " RESULT_FORMAT : the format of the result. Possible values are \`???' (default), \`xml'" echo " \`html', \`kml', \`kmz', or \`geojson'" @@ -454,6 +456,9 @@ hotspots) QUERY="${QUERY_HOTSPOT_SIZE}" ;; + all) + QUERY="${QUERY_GETALL}" + ;; esac # check for format of result