Did you know? You can interface C++ to SWI-PrologSearch Documentation:
SWI-Prolog owl logoPredicate trace/0