ts4nfdi / terminology-service-suite

The Terminology Service Suite project is a collection of interactive widgets designed to ease the integration of terminology service functions into third-party applications.
https://ts4nfdi.github.io/terminology-service-suite/comp/latest/
MIT License
16 stars 2 forks source link

New widget: Hierarchy + GraphView Widget #167

Open jusa3 opened 4 days ago

jusa3 commented 4 days ago

Create a widget that combines the HierarchyWidget and GraphViewWidget into one widget. It should reuse both widgets so that we don't get code duplication!

Add a tab feature (optional) to show classes, properties and individuals for the hierarchy as shown here: image

Do a query beforehand to get the classes/properties/individual amounts.

Pooya-Oladazimi commented 4 days ago

@jusa3 They can be new tabs on the ontology Info widget: https://ts4nfdi.github.io/terminology-service-suite/comp/latest/?path=/docs/react_ontologyinfowidget--docs

Basically something like Metadata widget but for ontologies

jusa3 commented 4 days ago

@Pooya-Oladazimi Is it possible to add a feature to the graph view widget to use it without an IRI? To show the first or first few layers at the ontology page/ontology info widget as an overview, same as with the hierarchy?

Pooya-Oladazimi commented 4 days ago

@jusa3 well, graph for ontologies ... I am not sure. we can render the graph for roots for example but they would be like separated nodes. I am not sure. I can give it a try though to see how it looks.

on Tib ts is like: https://terminology.tib.eu/ts/ontologies/chebi Screenshot from 2024-11-21 15-23-19

jusa3 commented 4 days ago

You're right, only showing the root nodes is lame. I had some fancy overview graph view for ontologies in mind but no idea how to create it.

Pooya-Oladazimi commented 3 days ago

@jusa3 we can show the entire graph for an ontology so that all ontology's terms are expanded (full graph) but the issue is at least ols does not have any direct endpoint for this and we need to build this by many calls (graph endpont for all terms) that make it slow.

jusa3 commented 3 days ago

Could be nice for small terminologies but very chaotic for large ontologies. Question is, what is the added value of a graph view compared to a hierarchy view? At the moment I don't see any, so I wouldn't pursue this idea any further and make the Graph view optional in this new widget.