public static BNode parseBNode(String nTriplesBNode,ValueFactory valueFactory) throws IllegalArgumentException {
  if (nTriplesBNode.startsWith("_:")) {
    return valueFactory.createBNode(nTriplesBNode.substring(2));
  }
 else {
    throw new IllegalArgumentException("Not a legal N-Triples Blank Node: " + nTriplesBNode);
  }
}

public static BNode parseBNode ( String nTriplesBNode , ValueFactory valueFactory ) throws IllegalArgumentException { if ( nTriplesBNode . startsWith ( "_:" ) ) { return valueFactory . createBNode ( nTriplesBNode . substring ( 2 ) ) ; } else { throw new IllegalArgumentException ( "Not a legal N-Triples Blank Node: " + nTriplesBNode ) ; } }
parses an n - triples bnode , creates an object for it using the supplied valuefactory and returns this object .
