This program demonstrates simple data processing and vizualization. In order to process the request, we
- compute the hierarchy as a Prolog datastructure (using property_tree/1). This allows for reuse, for example emitting the same datastructure as JSON, so we can do the rendering in Javscript at the client side.
- emit the tree as a nested
Finally, we can add it to the ClioPatria menu by adding a clause for cliopatria:menu_item/2.