I believe the README is out of date. To get this to work I had to:
pengine = Pengine(builder=pengine_builder)
# No pengine.create() seems to be automatic now
query = pengine.ask("member(X, [a, b, c])")
pengine.doAsk(query) # Not in README but makes the call
# Do stuff with results
pengine.iAmFinished(query) # If using with destroy=False to prepare for next query
I believe the README is out of date. To get this to work I had to:
I think this is how to use the
Pengine()
?