Class CanonicalizeLiteral

java.lang.Object
org.apache.jena.riot.process.normalize.CanonicalizeLiteral
All Implemented Interfaces:
Function<Node,Node>

public class CanonicalizeLiteral extends Object implements Function<Node,Node>
Convert literals to canonical form.
  • Method Details

    • get

      public static CanonicalizeLiteral get()
    • apply

      public Node apply(Node node)
      Canonicaize a literal, both lexical form and language tag (RFc canonical).
      Specified by:
      apply in interface Function<Node,Node>
    • canonicalValue

      public static Node canonicalValue(Node node)
      Convert the lexical form to a canonical form if one of the known datatypes, otherwise return the node argument. (same object :: ==)