public static Value parseValue(String nTriplesValue,ValueFactory valueFactory) throws IllegalArgumentException {
  if (nTriplesValue.startsWith("<")) {
    return parseURI(nTriplesValue,valueFactory);
  }
 else   if (nTriplesValue.startsWith("_:")) {
    return parseBNode(nTriplesValue,valueFactory);
  }
 else   if (nTriplesValue.startsWith("\"")) {
    return parseLiteral(nTriplesValue,valueFactory);
  }
 else {
    throw new IllegalArgumentException("Not a legal N-Triples value: " + nTriplesValue);
  }
}

public static Value parseValue ( String nTriplesValue , ValueFactory valueFactory ) throws IllegalArgumentException { if ( nTriplesValue . startsWith ( "<" ) ) { return parseURI ( nTriplesValue , valueFactory ) ; } else if ( nTriplesValue . startsWith ( "_:" ) ) { return parseBNode ( nTriplesValue , valueFactory ) ; } else if ( nTriplesValue . startsWith ( "\"" ) ) { return parseLiteral ( nTriplesValue , valueFactory ) ; } else { throw new IllegalArgumentException ( "Not a legal N-Triples value: " + nTriplesValue ) ; } }
parses an n - triples value , creates an object for it using the supplied valuefactory and returns this object .
