SWI-Prolog Did You Know Did you know? about the full featured web framework Search Documentation:
Predicate rdf_canonical_literal/2