question: public static Resource parseResource ( String nTriplesResource , ValueFactory valueFactory ) throws IllegalArgumentException { if ( nTriplesResource . startsWith ( "<" ) ) { return parseURI ( nTriplesResource , valueFactory ) ; } else if ( nTriplesResource . startsWith ( "_:" ) ) { return parseBNode ( nTriplesResource , valueFactory ) ; } else { throw new IllegalArgumentException ( "Not a legal N-Triples resource: " + nTriplesResource ) ; } }
target:  Parses an N-Triples resource, creates an object for it using the supplied ValueFactory and returns this object.