-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Right output on console but wrong by pyswip.query() #36
Comments
I'm having a very similar issue, with a 'findall' query working correctly when called in the PL console, but returning a list of atoms instead of values when called from pyswip: {'PROFILE': [Atom('7248900'), Atom('7249412'), Atom('7249796')]} Has there been any progress on this? |
OK, got it, it has to to with how Atoms are rendered by Python when submitted to print()... |
I modified easy.py as follows: Now the above query returns: {'PROFILE': [conf_cscw_jeffaylmss92, conf_ht_shackelfordss93, conf_ht_smiths91]} |
@hits-nlp The updated code for pyswip is at: https://github.com/yuce/pyswip/tree/refactor It is currently missing (a lot of) things, but the working parts should be more robust. Depending on your use case, it may work better. |
I am using pyswip to play with geoquery dataset.
It can get right result with prolog but weired output with pyswip:
The text was updated successfully, but these errors were encountered: