Class CanonicalizeLiteral

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

@Deprecated public class CanonicalizeLiteral extends Object implements Function<org.apache.jena.graph.Node,org.apache.jena.graph.Node>
Deprecated.
Convert literals to canonical form.

Strictly, this is "normalization" - XSD Schema 1.1 does not define a canonical form for all cases.

N.B. The normalization does produce forms for decimals and doubles that are correct as Turtle syntactic forms. For doubles, but not floats, zero is "0.0e0", whereas Java produces "0.0". For floats, the Java is returned for values with low precision.

  • Constructor Details

    • CanonicalizeLiteral

      public CanonicalizeLiteral()
      Deprecated.
  • Method Details

    • get

      @Deprecated public static CanonicalizeLiteral get()
      Deprecated.
      Use NormalizeRDFTerms.get().normalize.
      Suitable for use in Turtle output syntax.
    • apply

      public org.apache.jena.graph.Node apply(org.apache.jena.graph.Node node)
      Deprecated.
      Specified by:
      apply in interface Function<org.apache.jena.graph.Node,org.apache.jena.graph.Node>
    • canonicalValue

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