sparna-git / Sparnatural

Sparnatural : Typescript visual SPARQL query builder for knowledge graphs, configurable with SHACL
http://sparnatural.eu
GNU Lesser General Public License v3.0
206 stars 34 forks source link

Widget that combine a search and a tree #554

Open tfrancart opened 5 months ago

tfrancart commented 5 months ago

When we are facing a hierarchical set of values, we need to have the ability to both search like an autocomplete field, or browse the hierarchy. We need a combination of the AutocompleteWidget and the TreeWidget.

Some do that:

image

Searching:

image

Browsing:

image

When values are selected:

image

Then we add more values we see which one are already selected

image

That's very nice. We could be more simple and:

I would like this to be the default widget when we detect that target entities both have a label property annotated and a hierarchical property annotated.