kevins8
08/31/2020, 9:26 PM> sibling:
> tools.dendron.notes.demo.md -> create new journal note -> tools.dendron.notes.journal.2020-08-03.md
>
> child:
> tools.dendron.notes.demo.md -> create new journal note -> tools.dendron.notes.demo.journal.2020-08-03.md
>
> root:
> tools.dendron.remarks.md -> create new journal note -> journal.2020-08-03.md
>
> schema:
> tools.dendron.notes.demo.md -> create new journal note -> tools.dendron.journal.2020-08-03.md
>
> in this example, the schema-option assumes that "tools" is defined in the schema, and it has set namespace to true.
>
>
> Continuing on this, the term "namespace" is also somewhat hard to understand correctly. Elsewhere in the docs: "when a schema is a namespace, it can have arbitrary children. equivalent to cli.* glob pattern". What makes this difficult is that any node in the schema can anyway have arbitrary children, since "...you can create notes that don’t match any schema". Anyway, after spending some time on this, I think I now know how it works. Maybe formulating namespace something like this could help "making a schema node a namespace automatically brings its immediate children as part of the schema, even if they are not explicitly defined in the schema definition".
@User
i use domain to mean the root of the current hierarchy. i like your simplified values, would just swap root with domain. in the future, instead of having parent: root in the default schema to indicate that it is the root of the hierarchy, planning on adding a domain: true property instead and removing parent altogether