Menu

#4 Function returning list of specific facts

Next Release
open
nobody
None
5
2013-09-12
2013-09-12
nvitucci
No

Hello,

it would be nice to have a function similar to fact_base.dump_specific_facts() which returns the list of specific facts rather than just printing them. As for now I'm using this to retrieve the list of facts after forward chaining:

...
engine.activate('fc')
mylist = engine.knowledge_bases['ontology'].entity_lists['triple'].case_specific_facts

Is it right? If yes, it would be nice to have a function doing just this (and the same for universal facts).

Thanks,

Nicola

Discussion


Log in to post a comment.