breck7 / truebase

TrueBase - information you can trust. Software for building computable encyclopedias.
https://truebase.treenotation.org
9 stars 0 forks source link

Is is possible to create keys that have spaces #28

Closed ghost closed 1 year ago

ghost commented 1 year ago

true base supports values that contain spaces but is it possible to create keys that contains spaces without confusing the parser ?

breck7 commented 1 year ago

No. Spaces are not allowed in keys. CamelCase is used instead. If one needs to display a pretty title for an entry one way to work around this is to have a child property such as "label".

There are definitely a lot of languages that support spaces in keys, such as YAML.

My thinking was that it would keep the data easier to work with to have a more restricted character set.

Perhaps I was wrong. Maybe "fuzzy keys", powered by LLMs, might be a better approach. I am not sure.

ghost commented 1 year ago

Thank you for the clarification. Closing the issue.