public static IRI parseURI(String nTriplesURI,ValueFactory valueFactory) throws IllegalArgumentException {
  if (nTriplesURI.startsWith("<") && nTriplesURI.endsWith(">")) {
    String uri=nTriplesURI.substring(1,nTriplesURI.length() - 1);
    uri=unescapeString(uri);
    return valueFactory.createIRI(uri);
  }
 else {
    throw new IllegalArgumentException("Not a legal N-Triples URI: " + nTriplesURI);
  }
}

public static IRI parseURI ( String nTriplesURI , ValueFactory valueFactory ) throws IllegalArgumentException { if ( nTriplesURI . startsWith ( "<" ) && nTriplesURI . endsWith ( ">" ) ) { String uri = nTriplesURI . substring ( 1 , nTriplesURI . length ( ) - 1 ) ; uri = unescapeString ( uri ) ; return valueFactory . createIRI ( uri ) ; } else { throw new IllegalArgumentException ( "Not a legal N-Triples URI: " + nTriplesURI ) ; } }
parses an n - triples uri , creates an object for it using the supplied valuefactory and returns this object .
