java.lang.Object
org.apache.jena.riot.system.SyntaxLabels
Factory for default policies for syntax labels to and from nodes.
For label to node (parsing) we use a scalable hashing scheme (MD5 of a seed and the label)
"RT" encodes the label into characters 0-9,A-Z.
For node to label (pretty labels output), we use a unique tracking scheme. Fully scalable writers use different polices and don't have short, pretty bNode labels.
These should be used pairs:
createNodeToLabel , createLabelToNode createNodeToLabelRT , createLabelToNodeRT createNodeToLabelAsGiven , createLabelToNodeAsGiven"AsGiven" assumes that the label is valid syntax for the usage, no checking.
"RT" encodes the label into characters 0-9,A-Z.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic LabelToNode
Default setup - scope by document, relabel BNodes ids to short formsstatic LabelToNode
Raw string label setupstatic LabelToNode
Round-trip setupstatic NodeToLabel
Default setup - scope by document, relabel BNodes ids to short formsstatic NodeToLabel
Raw string label setupstatic NodeToLabel
Round-trip setup
-
Constructor Details
-
SyntaxLabels
public SyntaxLabels()
-
-
Method Details
-
createNodeToLabel
Default setup - scope by document, relabel BNodes ids to short forms -
createLabelToNode
Default setup - scope by document, relabel BNodes ids to short forms -
createNodeToLabelRT
Round-trip setup -
createLabelToNodeRT
Round-trip setup -
createNodeToLabelAsGiven
Raw string label setup -
createLabelToNodeAsGiven
Raw string label setup
-