Prolog interface for UIMA perception pipeline