Adapt SemWebLib.class to new prolog methods.