private void setFormatter() { fmt = new NodeFormatterTTL(baseURI, pMap, nodeToLabel) ; }
protected NodeFormatter createNodeFormatter() { // Use a Turtle formatter to format terms return new NodeFormatterTTL(null, null); }
private void setFormatter() { fmt = new NodeFormatterTTL(baseURI, pMap, nodeToLabel) ; }
private BindingOutputStream(Writer out, List<Var> variables, PrefixMap prefixMapping) { bw = IO.wrap(out) ; vars = variables ; pmap = prefixMapping ; nodeFormatter = new NodeFormatterTTL(null, pmap) ; needOutputVars = (vars != null ) && vars.size() > 0 ; }
private BindingOutputStream(Writer out, List<Var> variables, PrefixMap prefixMapping) { bw = IO.wrap(out) ; vars = variables ; pmap = prefixMapping ; nodeFormatter = new NodeFormatterTTL(null, pmap) ; needOutputVars = (vars != null ) && vars.size() > 0 ; }
public static void serialize(IndentedWriter w, Node n, String base, PrefixMap prefixMap) { if ( prefixMap == null ) prefixMap = dftPrefixMap ; NodeFormatter formatter = new NodeFormatterTTL(base, prefixMap) ; formatter.format(w, n) ; }
protected TurtleShell(IndentedWriter out, PrefixMap pmap, String baseURI) { this.out = out ; if ( pmap == null ) pmap = PrefixMapFactory.emptyPrefixMap() ; this.nodeFmt = new NodeFormatterTTL(baseURI, pmap, NodeToLabel.createScopeByDocument()) ; this.prefixMap = pmap ; this.baseURI = baseURI ; }
private String literalToString(Literal l) { StringWriterI sw = new StringWriterI(); NodeFormatter fmt = new NodeFormatterTTL(null, null); fmt.formatLiteral(sw, l.asNode()); return sw.toString(); }
private String literalToString(Literal l) { StringWriterI sw = new StringWriterI(); NodeFormatter fmt = new NodeFormatterTTL(null, null); fmt.formatLiteral(sw, l.asNode()); return sw.toString(); }
public static void serialize(IndentedWriter w, Node n, String base, PrefixMap prefixMap) { NodeFormatter formatter ; if ( base == null && prefixMap == null ) formatter = plainFormatter ; else formatter = new NodeFormatterTTL(base, prefixMap) ; formatter.format(w, n) ; }
static public NodeFormatter createNodeFormatter(PrefixMap pmap, String baseURI, Context context) { if ( context != null && context.isTrue(RIOT.multilineLiterals) ) return new NodeFormatterTTL_MultiLine(baseURI, pmap, NodeToLabel.createScopeByDocument()) ; else return new NodeFormatterTTL(baseURI, pmap, NodeToLabel.createScopeByDocument()) ; }
private static String literalToString(Literal l) { StringWriterI sw = new StringWriterI(); NodeFormatter fmt = new NodeFormatterTTL(null, null); fmt.formatLiteral(sw, l.asNode()); return sw.toString(); }
private String literalToString(Literal l) { StringWriterI sw = new StringWriterI(); NodeFormatter fmt = new NodeFormatterTTL(null, null); fmt.formatLiteral(sw, l.asNode()); return sw.toString(); }
NodeFormatterTTL formatter = new NodeFormatterTTL(null, null);