NTriplesUtil { public static IRI parseURI(String nTriplesURI, ValueFactory valueFactory) throws IllegalArgumentException { if (nTriplesURI.startsWith("<") && nTriplesURI.endsWith(">")) { String uri = nTriplesURI.substring(1, nTriplesURI.length() - 1); if (!uri.startsWith("<")) { uri = unescapeString(uri); return valueFactory.createIRI(uri); } } throw new IllegalArgumentException("Not a legal N-Triples URI: " + nTriplesURI); }  static Value parseValue(String nTriplesValue, ValueFactory valueFactory); static Resource parseResource(String nTriplesResource, ValueFactory valueFactory); static IRI parseURI(String nTriplesURI, ValueFactory valueFactory); static BNode parseBNode(String nTriplesBNode, ValueFactory valueFactory); static Literal parseLiteral(String nTriplesLiteral, ValueFactory valueFactory); static Triple parseTriple(String nTriplesTriple, ValueFactory valueFactory); static String toNTriplesString(Value value); static String toNTriplesString(Value value, boolean xsdStringToPlainLiteral); static void append(Value value, Appendable appendable); static void append(Value value, Appendable appendable, boolean xsdStringToPlainLiteral,
			boolean escapeUnicode); static String toNTriplesString(Resource resource); static void append(Resource resource, Appendable appendable); static String toNTriplesString(IRI uri); static void append(IRI uri, Appendable appendable); static void append(IRI uri, Appendable appendable, boolean escapeUnicode); static String toNTriplesString(BNode bNode); static void append(BNode bNode, Appendable appendable); static String toNTriplesString(Literal lit); static String toNTriplesString(Literal lit, boolean xsdStringToPlainLiteral); static void append(Literal lit, Appendable appendable); static void append(Literal lit, Appendable appendable, boolean xsdStringToPlainLiteral,
			boolean escapeUnicode); static String toNTriplesString(Triple triple); static void append(Triple triple, Appendable appendable); @Deprecated static boolean isLetterOrNumber(int c); @Deprecated static boolean isLetter(int c); @Deprecated static boolean isNumber(int c); static boolean isValidCharacterForBNodeLabel(int c); static boolean isLiberalCharactersButNotDot(int c); static boolean isUnderscore(int c); static boolean isDot(int c); static String escapeString(String label); static void escapeString(String label, Appendable appendable); static void escapeString(String label, Appendable appendable, boolean escapeUnicode); static String unescapeString(String s); static String toHexString(int decimal, int stringLength);  }
@Test(expected = IllegalArgumentException.class) public void testParseIRIvsTriple() { NTriplesUtil.parseURI("<<<urn:a><urn:b><urn:c>>>", f); }