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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.jena.graph.Node
apply
(org.apache.jena.graph.Node node) Deprecated.static org.apache.jena.graph.Node
canonicalValue
(org.apache.jena.graph.Node node) Deprecated.static CanonicalizeLiteral
get()
Deprecated.UseNormalizeRDFTerms.get().normalize
.
-
Constructor Details
-
CanonicalizeLiteral
public CanonicalizeLiteral()Deprecated.
-
-
Method Details
-
get
Deprecated.UseNormalizeRDFTerms.get().normalize
.Suitable for use in Turtle output syntax. -
apply
public org.apache.jena.graph.Node apply(org.apache.jena.graph.Node node) Deprecated. -
canonicalValue
@Deprecated public static org.apache.jena.graph.Node canonicalValue(org.apache.jena.graph.Node node) Deprecated.Convert the lexical form to a canonical form if one of the known datatypes, otherwise return the node argument. (same object ::==
)
-
NormalizeRDFTerms
.