java.lang.Object
org.apache.jena.riot.process.normalize.CanonicalizeLiteral
- All Implemented Interfaces:
Function<org.apache.jena.graph.Node,
org.apache.jena.graph.Node>
public class CanonicalizeLiteral
extends Object
implements Function<org.apache.jena.graph.Node,org.apache.jena.graph.Node>
Convert literals to canonical form.
-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.jena.graph.Node
apply
(org.apache.jena.graph.Node node) Canonicalize a literal, both lexical form and language tag (RFc canonical).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.static CanonicalizeLiteral
get()
-
Method Details
-
get
-
apply
public org.apache.jena.graph.Node apply(org.apache.jena.graph.Node node) Canonicalize a literal, both lexical form and language tag (RFc canonical). -
canonicalValue
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 ::==
)
-