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