Repository navigation
The Adaptive Expansion of Hierarchical Data Structures #11
AdamSobieski
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Introduction
For a context, one potentially including a user model, how might tree-like data structures be expanded?
Use Cases
Use cases include, but are not limited to: adaptive outlining, adaptive content summarization, the adaptive presentation of documents, the adaptive presentation of mathematical proofs, visual content summarization, the display of maps and geospatial data at task-appropriate and adaptive levels of detail, the display of diagrams at task-appropriate and adaptive levels of detail, other adaptive content presentation and display scenarios, and scenarios involving graph-based data provided at an adaptive level of detail.
Implementation
With respect to implementation,
x-switchelements could have ancontextchangedevent such that event-listener functions would receive an event object which provides acontextobject (see also:CustomEventand subclassingEvent) of use for conditionally changing the state of thex-switchelement.Meanwhile,
x-caseelements provide astateattribute such that that the firstx-caseelement with astateattribute's value matching its parentx-switchelement's state would be selected. See also: using custom elements and the:state()pseudo-class.As considered,
x-switchelements containx-caseelements which can contain nestedx-switchelements. So, tree traversals could be used to determine the resultant states of a tree-like data structure for acontextprovided in acontextchangedevent.With these techniques, one could implement custom elements having two states, e.g., collapsed and expanded, or custom elements having various other numbers of states, i.e., gradated extents of expansion.
Graph-based Data
This general-purpose pattern is applicable to graph-based data. The adaptive expansion of a tree-like data structure can vary the contents of a semantic graph or dataset formed by merging data accompanying the data structure.
A semantic graph or dataset can be formed by merging an optional graph or dataset in a data block with optional graphs or datasets in data blocks in the appropriate branch of content (
x-case), depending upon which state that thex-switchelement is in, and subsequently merging in the graphs or datasets of appropriate descendentx-switchelements, recursively.Client-side versus Server-side
In theory, one could also send context changes (diffs/deltas) to servers which could adaptively expand hierarchical data structures (e.g., nested switch/case structures) to, perhaps, send any resultant content changes (diffs/deltas) back to clients.
Conclusion
What do you think about these ideas? Thank you.
All reactions