java.lang.Object
org.apache.jena.riot.out.NodeFormatterBase
org.apache.jena.riot.out.NodeFormatterNT
org.apache.jena.riot.out.NodeFormatterTTL
org.apache.jena.riot.out.NodeFormatterTTL_MultiLine
- All Implemented Interfaces:
NodeFormatter
Node formatter for pretty-printed Turtle. This
NodeFormatter
switches
between " and ' quotes to avoid escapes. This code writes multiline literals with
""" or '''.-
Constructor Summary
ConstructorDescriptionNodeFormatterTTL_MultiLine
(String baseIRI, PrefixMap prefixMap) NodeFormatterTTL_MultiLine
(String baseIRI, PrefixMap prefixMap, NodeToLabel nodeToLabel) -
Method Summary
Modifier and TypeMethodDescriptionvoid
formatLitLang
(org.apache.jena.atlas.io.AWriter w, String lex, String langTag) String with language tagvoid
formatLitString
(org.apache.jena.atlas.io.AWriter w, String lex) Plain string / xsd:string (RDF 1.1)Methods inherited from class org.apache.jena.riot.out.NodeFormatterTTL
formatBNode, formatLitDT, formatURI
Methods inherited from class org.apache.jena.riot.out.NodeFormatterNT
formatBNode, formatVar
Methods inherited from class org.apache.jena.riot.out.NodeFormatterBase
format, formatLiteral, formatURI, formatVar
-
Constructor Details
-
NodeFormatterTTL_MultiLine
-
NodeFormatterTTL_MultiLine
-
-
Method Details
-
formatLitString
Description copied from interface:NodeFormatter
Plain string / xsd:string (RDF 1.1)- Specified by:
formatLitString
in interfaceNodeFormatter
- Overrides:
formatLitString
in classNodeFormatterNT
-
formatLitLang
Description copied from interface:NodeFormatter
String with language tag- Specified by:
formatLitLang
in interfaceNodeFormatter
- Overrides:
formatLitLang
in classNodeFormatterNT
-