On Oct 17, 2016, at 6:38 AM, Richard wrote:
Hi, I'm investigating using Fancytree to replace an existing
implementation of a tree-based "browse" view that's being
used to display a variety of hierarchies;
Hi.
I just released an implementation of fancytree for browsing a hierarchy.
blogory.org <http://blogory.org/>
I am very very happy with fancytree.
Your question about loops is a very interesting one. I have not got there yet, but my understanding is as follows. Look at the data model. Clones are a good proxy model. What do you want to have happen when someone clicks on a close. Whatever you want to have happen, can happen. It can jump to the original one if you want. It can create a tree of clones, matching the original tree.
The problem is with the uplinks. In a graph you can have multiple parents. We will have to do something like a status node for each clone.
Anyhow this is a very interesting problem. Please keep us posed on what you decide to do and why.
If you are interested in my code, I am happy to do a code walkthourgh with you.
Maybe we need a new extension for this type of application.
Warm Regards
Chris
ROOT
A
X(2)
Y
B
X(2)
Y
ROOT
A
X
Y
X (see other)
B
X'
Y'
X (see other)
On Oct 19, 2016, at 4:12 AM, Richard wrote:
I hesitate to use lazy loading of the whole tree,
because I also want to support filtering,
i.e. using the filter extension. If I understand correctly, filtering
of lazy-loaded trees is still on the "wish list".
This is a topic that interests me hugely.
Here is how I plan on eventually doing filtering on a 10K node tree.
http://blogory.org/filtering-10k-nodes-with-fancytree
Warm Regards
Chris
it would be _internally_: i.e., getting the new children by
finding them elsewhere in the tree, rather than by AJAX call.
So the initially-loaded tree would be "complete" in the sense
of containing one "canonical" instance of every possible node -- which
I can already do because I have the output of a depth-first
search. Lazy loading would expand children by copying
the children of that "canonical" node.
I might have to use lazy loading with AJAX in any case
for very large vocabularies, but many vocabularies are small
enough to justify me trying to avoid it.
If I understand correctly, filtering
of lazy-loaded trees is still on the "wish list".
Hi, I'm investigating using Fancytree to replace an existing
implementation of a tree-based "browse" view that's being
used to display a variety of hierarchies; to be specific:
vocabularies (e.g., taxonomies and thesauruses) encoded using SKOS
(see, e.g., https://www.w3.org/TR/skos-primer/ for info about SKOS).
You can see an example of the existing implementation
of the "browse tree" in action at: https://vocabs.ands.org.au/anzsrc-for
I think I'd be fairly confident to go ahead and replace
the existing code with Fancytree.
However ... the key reason for considering replacing
the implementation in the first place is that the SKOS model
supports not only strict tree structures, but also
polyhierarchies (i.e., cases where a node has multiple
parents) and cycles, but the existing implementation
has no hope of coping with either of these situations.
Until now, we only had to "worry" about strictly tree-structured
vocabularies, but now we have users who want to display
polyhierarchies, and given that's the case, I want to
solve the problem of displaying cycles at the same time.