public class NQuadsAlphabet extends Object
IntPredicate instances to
identify specific character sets used in N-Quads processing, as well as a
method to escape special characters in string values.
Character predicates include:
ASCII_ALPHA - Matches ASCII alphabetic characters (A-Z,
a-z).ASCII_DIGIT - Matches ASCII digits (0-9).ASCII_ALPHA_NUM - Matches alphanumeric characters.WHITESPACE - Matches whitespace characters (tab, space).EOL - Matches end-of-line characters (LF, CR).HEX - Matches hexadecimal digits (0-9, A-F, a-f).PN_CHARS_BASE - Matches base name characters as per RDF
standard.PN_CHARS_U - Matches base characters plus underscore and
colon.PN_CHARS - Matches all valid name characters.
The escape(String) method provides a way to escape special
characters in string values according to N-Quads formatting rules.
This class is not meant to be instantiated.
| Modifier and Type | Field and Description |
|---|---|
static IntPredicate |
ASCII_ALPHA |
static IntPredicate |
ASCII_ALPHA_NUM |
static IntPredicate |
ASCII_DIGIT |
static String |
DIR_LANG_STRING |
static IntPredicate |
EOL |
static IntPredicate |
HEX |
static String |
I18N_BASE |
static String |
LANG_STRING |
static IntPredicate |
PN_CHARS |
static IntPredicate |
PN_CHARS_BASE |
static IntPredicate |
PN_CHARS_U |
static IntPredicate |
WHITESPACE |
static String |
XSD_STRING |
| Modifier | Constructor and Description |
|---|---|
protected |
NQuadsAlphabet() |
| Modifier and Type | Method and Description |
|---|---|
static String |
escape(String value)
Escapes special characters in the given string according to N-Quads syntax.
|
public static final String I18N_BASE
public static final String LANG_STRING
public static final String DIR_LANG_STRING
public static final String XSD_STRING
public static final IntPredicate ASCII_ALPHA
public static final IntPredicate ASCII_DIGIT
public static final IntPredicate ASCII_ALPHA_NUM
public static final IntPredicate WHITESPACE
public static final IntPredicate EOL
public static final IntPredicate HEX
public static final IntPredicate PN_CHARS_BASE
public static final IntPredicate PN_CHARS_U
public static final IntPredicate PN_CHARS
public static final String escape(String value)
value - the string to be escapedCopyright © 2020–2025. All rights reserved.