Class BlankNode

    • Method Detail

      • hasPrefix

        public static boolean hasPrefix​(String value)
        Returns true if the given value starts with a blank node prefix '_:'.
        Parameters:
        value - to check
        Returns:
        true if the give value has blank node prefix
      • isWellFormed

        public static boolean isWellFormed​(String blankNodeId)
        BLANK_NODE_LABEL ::= '_:' (PN_CHARS_U | [0-9]) ((PN_CHARS | '.')* PN_CHARS)?
        Parameters:
        blankNodeId - to check
        Returns:
        true if the provided string is well formed blank node identifier
        See Also:
        N-Quads Grammar