Skip to main content

Module age_names

Module age_names 

Source
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, an ID_Start character or underscore first, ID_Continue characters plus . and - in the middle, and an ID_Continue character last.
is_valid_label_name
AGE is_valid_label_name: 1 to 63 bytes, an ID_Start character or underscore first, and ID_Continue characters after it.