Package no.hasmac.jsonld.lang
Class BlankNode
- java.lang.Object
-
- no.hasmac.jsonld.lang.BlankNode
-
public final class BlankNode extends java.lang.Object
- See Also:
- A syntax for expressing Compact URIs
-
-
Constructor Summary
Constructors Modifier Constructor Description private
BlankNode()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
hasPrefix(java.lang.String value)
Returnstrue
if the given value starts with a blank node prefix '_:
'.static boolean
isWellFormed(java.lang.String blankNodeId)
BLANK_NODE_LABEL ::= '_:' (PN_CHARS_U | [0-9]) ((PN_CHARS | '.')* PN_CHARS)?
-
-
-
Method Detail
-
hasPrefix
public static boolean hasPrefix(java.lang.String value)
Returnstrue
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(java.lang.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
-
-