@Test public void Long_String_Encoding() { writer.begin(); writer.handle(new STMT(RDF.predicate, RDFS.label, new LIT("1\n2\n3"))); writer.end(); System.out.println(writer.toString()); String str = writer.toString(); assertTrue(str.contains("rdf:predicate rdfs:label \"\"\"1\n2\n3\"\"\"^^xsd:string .")); }
@Override public String toString() { ((StringBuilder) appendable).insert(0, prefixesString.toString()); prefixesString.setLength(0); return appendable.toString(); }
TurtleStringWriter extends TurtleWriter { @Override public String toString() { ((StringBuilder) appendable).insert(0, prefixesString.toString()); prefixesString.setLength(0); return appendable.toString(); } }
TurtleStringWriter extends TurtleWriter { @Override public String toString() { ((StringBuilder) appendable).insert(0, prefixesString.toString()); prefixesString.setLength(0); return appendable.toString(); } TurtleStringWriter();  TurtleStringWriter(boolean blankNodeAsURI); }
TurtleStringWriter extends TurtleWriter { @Override public String toString() { ((StringBuilder) appendable).insert(0, prefixesString.toString()); prefixesString.setLength(0); return appendable.toString(); } TurtleStringWriter();  TurtleStringWriter(boolean blankNodeAsURI); @Override String toString(); }
TurtleStringWriter extends TurtleWriter { @Override public String toString() { ((StringBuilder) appendable).insert(0, prefixesString.toString()); prefixesString.setLength(0); return appendable.toString(); } TurtleStringWriter();  TurtleStringWriter(boolean blankNodeAsURI); @Override String toString();  }