Did you know? SWI-Prolog can work with tar archivesSearch Documentation:
SWI-Prolog owl logoPredicate read_stream_to_codes/3