Expand description
Apache AGE graph and label name validation.
AGE validates names with anchored regular expressions built from the
Unicode ID_Start and ID_Continue classes (name_validation.c):
- graph names:
^[ID_Start_][ID_Continue.-]*[ID_Continue]$, 3 to 63 bytes - label names:
^[ID_Start_][ID_Continue]*$, 1 to 63 bytes
Lengths are byte lengths because AGE measures them with strlen.
Constants§
- EDGE_
DEFAULT_ LABEL_ NAME - Name of the AGE default edge label that every graph owns.
- MAX_
GRAPH_ NAME_ LEN - AGE
MAX_GRAPH_NAME_LEN. - MAX_
LABEL_ NAME_ LEN - AGE
MAX_LABEL_NAME_LEN(NAMEDATALEN - 1). - MIN_
GRAPH_ NAME_ LEN - AGE
MIN_GRAPH_NAME_LEN. - MIN_
LABEL_ NAME_ LEN - AGE
MIN_LABEL_NAME_LEN. - VERTEX_
DEFAULT_ LABEL_ NAME - Name of the AGE default vertex label that every graph owns.
Functions§
- is_
valid_ graph_ name - AGE
is_valid_graph_name: 3 to 63 bytes, anID_Startcharacter or underscore first,ID_Continuecharacters plus.and-in the middle, and anID_Continuecharacter last. - is_
valid_ label_ name - AGE
is_valid_label_name: 1 to 63 bytes, anID_Startcharacter or underscore first, andID_Continuecharacters after it.