What is the best way to store and query heterogeneous facts and rules in DB or other store .
For example :
https://www.swi-prolog.org/pack/list?p=db_facts