A port interface to allow erlang to interact with SWI Prolog