Prolog interface for Semantria API