@Test public void Duplicate_Predicate() { writer.handle(new STMT(RDF.type, RDF.type, RDF.Property)); writer.handle(new STMT(RDF.type, RDF.type, RDFS.Resource)); writer.handle(new STMT(RDF.type, RDFS.label, new LIT("X"))); writer.end(); System.out.println(writer.toString()); String str = writer.toString(); assertTrue(str.contains("rdf:type a rdf:Property , rdfs:Resource ; rdfs:label \"X\"^^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();  }