# Implementing Hierarchies/Namespaces in org-roam (V2)

**URL:** <https://org-roam.discourse.group/t/implementing-hierarchies-namespaces-in-org-roam-v2/1504>\
**Category:** Development\
**Created:** [April 24, 2021, 10:04pm UTC](https://org-roam.discourse.group/t/implementing-hierarchies-namespaces-in-org-roam-v2/1504 "2021-04-24T22:04:55Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![nobiot](https://yyz2.discourse-cdn.com/free1/user_avatar/org-roam.discourse.group/nobiot/32/159_2.png) [@nobiot](https://org-roam.discourse.group/u/nobiot)\
**Post date:** [April 25, 2021, 9:19pm UTC](https://org-roam.discourse.group/t/implementing-hierarchies-namespaces-in-org-roam-v2/1504/8 "2021-04-25T21:19:17Z")

</div>

@spicy

For a “schema” concept, I have tried a different approach as a proof of concept. I took it to be a list of categories in a hierarchy.

Sometimes it might be useful to get outside the Org paradigm a little – this time, I create a new file create function without using `org-capture` or `org-roam-capture`. Resultant files are ID’ed and part of Org-roam (they are nodes).

 ![image](https://global.discourse-cdn.com/free1/uploads/orgroam/original/1X/5f05c890906f32e6b6bb81597298bafa009f6ce1.png)  
Searching with stock standard `find-file`

 ![2021-04-25-dendroam](https://global.discourse-cdn.com/free1/uploads/orgroam/original/1X/8d49ce5040f79e9e782eecc71da06159df1f8829.gif)  
Creating a new note with a custom function ([source on Gist](https://gist.github.com/nobiot/152a5f0e6f761f5100e6b4e019bf0ccf)).

You can create a new category in the hierarchy (Emacs prompts for confirmation). This implementation does not persist the hierarchy in a file, so the history resets when you quit Emacs.

I haven’t used Dendron so the UX might not be as good.

And I have to admit I don’t know how histories actually work in completion functions I used (homework for me, I think).

Thoughts?

---

_[View the full topic](https://org-roam.discourse.group/t/implementing-hierarchies-namespaces-in-org-roam-v2/1504)._
