Package org.apache.jena.riot.out
Class NodeFormatterTTL
- java.lang.Object
-
- org.apache.jena.riot.out.NodeFormatterBase
-
- org.apache.jena.riot.out.NodeFormatterNT
-
- org.apache.jena.riot.out.NodeFormatterTTL
-
- All Implemented Interfaces:
NodeFormatter
- Direct Known Subclasses:
NodeFormatterTTL_MultiLine
public class NodeFormatterTTL extends NodeFormatterNT
Node formatter for Turtle using single line strings
-
-
Constructor Summary
Constructors Constructor Description NodeFormatterTTL(java.lang.String baseIRI, PrefixMap prefixMap)
NodeFormatterTTL(java.lang.String baseIRI, PrefixMap prefixMap, NodeToLabel nodeToLabel)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
formatBNode(org.apache.jena.atlas.io.AWriter w, Node n)
Node is guaranteed to be a blank nodevoid
formatLitDT(org.apache.jena.atlas.io.AWriter w, java.lang.String lex, java.lang.String datatypeURI)
Literal with datatype, not a simple literal, not an xsd:string (RDF 1.1), no language tag.void
formatURI(org.apache.jena.atlas.io.AWriter w, java.lang.String uriStr)
-
Methods inherited from class org.apache.jena.riot.out.NodeFormatterNT
formatBNode, formatLitLang, formatLitString, formatVar
-
Methods inherited from class org.apache.jena.riot.out.NodeFormatterBase
format, formatLiteral, formatURI, formatVar
-
-
-
-
Constructor Detail
-
NodeFormatterTTL
public NodeFormatterTTL(java.lang.String baseIRI, PrefixMap prefixMap)
-
NodeFormatterTTL
public NodeFormatterTTL(java.lang.String baseIRI, PrefixMap prefixMap, NodeToLabel nodeToLabel)
-
-
Method Detail
-
formatURI
public void formatURI(org.apache.jena.atlas.io.AWriter w, java.lang.String uriStr)
- Specified by:
formatURI
in interfaceNodeFormatter
- Overrides:
formatURI
in classNodeFormatterNT
-
formatBNode
public void formatBNode(org.apache.jena.atlas.io.AWriter w, Node n)
Description copied from interface:NodeFormatter
Node is guaranteed to be a blank node- Specified by:
formatBNode
in interfaceNodeFormatter
- Overrides:
formatBNode
in classNodeFormatterBase
-
formatLitDT
public void formatLitDT(org.apache.jena.atlas.io.AWriter w, java.lang.String lex, java.lang.String datatypeURI)
Description copied from interface:NodeFormatter
Literal with datatype, not a simple literal, not an xsd:string (RDF 1.1), no language tag.- Specified by:
formatLitDT
in interfaceNodeFormatter
- Overrides:
formatLitDT
in classNodeFormatterNT
-
-