Did you know? SWI-Prolog has support for large, static tablesSearch Documentation:
SWI-Prolog owl logoPredicate with_output_to/2