public static String toNTriplesString(Literal lit,boolean xsdStringToPlainLiteral){
  try {
    StringBuilder sb=new StringBuilder();
    append(lit,sb,xsdStringToPlainLiteral);
    return sb.toString();
  }
 catch (  IOException e) {
    throw new AssertionError();
  }
}

public static String toNTriplesString ( Literal lit , boolean xsdStringToPlainLiteral ) { try { StringBuilder sb = new StringBuilder ( ) ; append ( lit , sb , xsdStringToPlainLiteral ) ; return sb . toString ( ) ; } catch ( IOException e ) { throw new AssertionError ( ) ; } }
creates an n - triples string for the supplied literal , optionally ignoring the xsd : string datatype as it is implied for rdf - 1 . 1 .
