some utility functions for using cl_json_prolog and knowrob