[not loaded]All predicatesShow sourceprophier.pl -- Vizualize the RDF property hierarchy

This program demonstrates simple data processing and vizualization. In order to process the request, we

  1. 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.
  2. emit the tree as a nested ul structure

Finally, we can add it to the ClioPatria menu by adding a clause for cliopatria:menu_item/2.

To be done
- Add style to make it look pretty.
Source property_hierarchy(+Request)[private]
HTTP Handler that emits the RDF property hierarchy as a nested ul tree where the properties are links to the ClioPatria local view.
Source property_tree(-List) is det[private]
Compute the entire property hierarchy for the RDF database. Most of the complication is due to the fact that we need to take care of possible loops in the property hierarchy. For this purpose, we use library(assoc) to maintain an binary tree of predicates we already expanded.
Arguments:
List- is a list of terms node(Predicate, Children)