knocean / knode

Knowledge Development Environment
BSD 3-Clause "New" or "Revised" License
1 stars 1 forks source link

Reimplement tree view for resources #76

Closed jamesaoverton closed 5 years ago

jamesaoverton commented 5 years ago

For each resource I would like a two-pane browsing view similar to Protege. On the left half of the page will be an Inspire Tree widget. On the right half will be a description of the selected class. For the Inspire Tree we'll follow their Dynamic Children example (http://www.inspire-tree.com/demos/dynamic.html): when the user clicks an "open" icon for a term, Inspire Tree will request a JSON file describing the children for that term. The server will build the list of children based on a query for rdfs:subClassOf the target term. For each child we need to know its ID, label, and whether it has children. When the user selects a node in the tree, we will load an HTML representation on the right that is basically the same as the single-term view.

We did work on this in #47 and #43, but we've changed a lot since then, so it can only serve as a sketch.