summaryrefslogtreecommitdiff
path: root/scripts/geoquery/query.rb
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/geoquery/query.rb')
-rwxr-xr-xscripts/geoquery/query.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/scripts/geoquery/query.rb b/scripts/geoquery/query.rb
new file mode 100755
index 0000000..9cec355
--- /dev/null
+++ b/scripts/geoquery/query.rb
@@ -0,0 +1,11 @@
+#!/usr/bin/env ruby
+
+require 'nlp_ruby'
+
+
+EVAL_PL='/workspace/grounded/wasp-1.0/data/geo-funql/eval/eval.pl'
+
+while line = STDIN.gets
+ puts `echo "execute_funql_query(#{line}, X)." | swipl -s #{EVAL_PL} 2>&1 | grep "X ="`.gsub('X = ','').strip
+end
+