Package org.apache.jena.riot.out
Class NodeFormatterTTL_MultiLine
- 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
public class NodeFormatterTTL_MultiLine extends NodeFormatterTTL
Node formatter for pretty-printed Turtle. ThisNodeFormatter
switches between " and ' quotes to avoid escapes. This code writes multiline literals with """ or '''.
-
-
Constructor Summary
Constructors Constructor Description NodeFormatterTTL_MultiLine(java.lang.String baseIRI, PrefixMap prefixMap)
NodeFormatterTTL_MultiLine(java.lang.String baseIRI, PrefixMap prefixMap, NodeToLabel nodeToLabel)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
formatLitDT(org.apache.jena.atlas.io.AWriter w, java.lang.String lex, java.lang.String datatype)
Literal with datatype, not a simple literal, not an xsd:string (RDF 1.1), no language tag.void
formatLitLang(org.apache.jena.atlas.io.AWriter w, java.lang.String lex, java.lang.String langTag)
String with language tagvoid
formatLitString(org.apache.jena.atlas.io.AWriter w, java.lang.String lex)
Plain string / xsd:string (RDF 1.1)-
Methods inherited from class org.apache.jena.riot.out.NodeFormatterTTL
formatBNode, 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 Detail
-
NodeFormatterTTL_MultiLine
public NodeFormatterTTL_MultiLine(java.lang.String baseIRI, PrefixMap prefixMap)
-
NodeFormatterTTL_MultiLine
public NodeFormatterTTL_MultiLine(java.lang.String baseIRI, PrefixMap prefixMap, NodeToLabel nodeToLabel)
-
-
Method Detail
-
formatLitString
public void formatLitString(org.apache.jena.atlas.io.AWriter w, java.lang.String lex)
Description copied from interface:NodeFormatter
Plain string / xsd:string (RDF 1.1)- Specified by:
formatLitString
in interfaceNodeFormatter
- Overrides:
formatLitString
in classNodeFormatterNT
-
formatLitLang
public void formatLitLang(org.apache.jena.atlas.io.AWriter w, java.lang.String lex, java.lang.String langTag)
Description copied from interface:NodeFormatter
String with language tag- Specified by:
formatLitLang
in interfaceNodeFormatter
- Overrides:
formatLitLang
in classNodeFormatterNT
-
formatLitDT
public void formatLitDT(org.apache.jena.atlas.io.AWriter w, java.lang.String lex, java.lang.String datatype)
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 classNodeFormatterTTL
-
-