summaryrefslogtreecommitdiff
path: root/scripts/geoquery/query.rb
blob: 3b4b681200e629564ca491d957402f8dd2a7f1c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/env ruby

require 'nlp_ruby'
require 'memcached'


require_relative ARGV[0]

while line = STDIN.gets
  puts `echo "execute_funql_query(#{line}, X)." | swipl -s #{EVAL_PL} 2>&1  | grep "X ="`.gsub('X = ','').strip
end