TurtleUtil { public static boolean isPN_LOCAL(String name) { if (name.length() == 0) { return true; } if (!isPN_CHARS_U(name.charAt(0)) && name.charAt(0) != ':' && !ASCIIUtil.isNumber(name.charAt(0)) && !isPLX_START(name)) { logger.debug("PN_LOCAL was not valid (start characters invalid) i=" + 0 + " nextchar=" + name.charAt(0) + " name=" + name); return false; } if (!isNameStartChar(name.charAt(0))) { logger.debug("name was not valid (start character invalid) i=" + 0 + " nextchar=" + name.charAt(0) + " name=" + name); return false; } for (int i = 1; i < name.length(); i++) { if (!isNameChar(name.charAt(i))) { logger.debug("name was not valid (intermediate character invalid) i=" + i + " nextchar=" + name.charAt(i) + " name=" + name); return false; } if (name.charAt(i) == '%' && (name.length() - i) < 3) { logger.debug("name was not valid (short percent escape) i=" + i + " nextchar=" + name.charAt(i) + " name=" + name); return false; } } return true; }  static int findURISplitIndex(String uri); static boolean isWhitespace(int codePoint); static boolean isPN_CHARS_BASE(int codePoint); static boolean isPN_CHARS_U(int codePoint); static boolean isPN_CHARS(int codePoint); static boolean isPrefixStartChar(int codePoint); static boolean isBLANK_NODE_LABEL_StartChar(int codePoint); static boolean isBLANK_NODE_LABEL_Char(int codePoint); static boolean isBLANK_NODE_LABEL_EndChar(int codePoint); static boolean isNameStartChar(int codePoint); static boolean isNameChar(int codePoint); static boolean isNameEndChar(int codePoint); static boolean isLocalEscapedChar(int codePoint); static boolean isPrefixChar(int codePoint); static boolean isLanguageStartChar(int codePoint); static boolean isLanguageChar(int codePoint); static boolean isPN_PREFIX(String prefix); static boolean isPLX_START(String name); static boolean isPERCENT(String name); static boolean isPLX_INTERNAL(String name); static boolean isPN_LOCAL_ESC(String name); static boolean isPN_LOCAL(String name); static String encodeString(String s); static String encodeLongString(String s); @Deprecated static String encodeURIString(String s); static String decodeString(String s); static final char[] LOCAL_ESCAPED_CHARS; }
@Ignore("TODO: Implement me") @Test public final void testIsPN_LOCAL() { }