rafsun42 commented on issue #317: URL: https://github.com/apache/age/issues/317#issuecomment-1309358805
Here are the rules that I implemented. These rules are copied from Neo4j website. I added notes (in bold face) where I diverged slightly from Neo4j's convention. Please let me know if anything needs to be changed. Naming rules for labels: - Alphabetic characters: Names should begin with an alphabetic character. This includes "non-English" characters, such as å, ä, ö, ü etc. **(Note: I allowed underscore as well since Neo4j allows too, though does not mention it. Range of alphabetic character is a-zA-Z/x80-/xFF which is the same range found in the grammar file).** - Numbers: Names should not begin with a number. To illustrate, 1first is not allowed, whereas first1 is allowed. - Symbols: Names should not contain symbols, except for underscore, as in my_variable, or $ as the first character to denote a parameter, as given by $myParam. **(Note: I did not allow dollar symbol. I think parameter is not applicable outside cypher query where create_vlabel is called, for example).** - Length: Can be very long, up to 65535 (2^16 - 1) or 65534 characters, depending on the version of Neo4j. Naming rules for graphs: - Database name length must be between 3 and 63 characters. - The first character must be an ASCII alphabetic character. (including non-english) **(Note: I allowed underscore as well. Range of alphabetic character is a-zA-Z/x80-/xFF)** - Subsequent characters can be ASCII alphabetic (mydatabase), numeric characters (mydatabase2), dots (main.db), and dashes (main-db). **(Note: I allowed underscore as well.)** - Names cannot end with dots or dashes. - Names that begin with an underscore or with the prefix system are reserved for internal use. **(Note: I allowed these reserved names.)** -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
