Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Right result on console output but wrong output with pyswip.query()

93 views
Skip to first unread message

Zichao Li

unread,
Jun 11, 2018, 11:14:10 PM6/11/18
to pyswip
I am using pyswip to play with geoquery dataset (http://www.cs.utexas.edu/users/ml/nldata/geoquery.html). 

In [1]: from Prolog import prolog

In [2]: prolog.consult('geobase')
In [3]: prolog.consult('geoquery')
In [4]: list(prolog.query('answer(A,(river(A),loc(A,B),const(B,stateid(california)))).'))
Enter code here...



Answer = [colorado]
Out[71]: [{'A': Variable(68), 'B': Variable(71)}]


Anyone knows how to fix this issue? TIA!

yuce

unread,
Jun 12, 2018, 5:33:51 AM6/12/18
to pyswip
Hi,

Can you open an issue for this at: https://github.com/yuce/pyswip/issues ? I'll fix that as soon as I can.

Yuce

Reply all
Reply to author
Forward
0 new messages