Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New widget: Hierarchy + GraphView Widget #167

Open
jusa3 opened this issue Nov 21, 2024 · 7 comments
Open

New widget: Hierarchy + GraphView Widget #167

jusa3 opened this issue Nov 21, 2024 · 7 comments

Comments

@jusa3
Copy link
Collaborator

jusa3 commented Nov 21, 2024

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
Copy link
Collaborator

Pooya-Oladazimi commented Nov 21, 2024

@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
Copy link
Collaborator Author

jusa3 commented Nov 21, 2024

@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
Copy link
Collaborator

Pooya-Oladazimi commented Nov 21, 2024

@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
Copy link
Collaborator Author

jusa3 commented Nov 21, 2024

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
Copy link
Collaborator

@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
Copy link
Collaborator Author

jusa3 commented Nov 22, 2024

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.

@VincentKneip
Copy link
Collaborator

Implemented the new widget HierarchyGraphWidget (should this be renamed?) displaying

  • The hierarchy and graph for a specific entity if an iri is provided and entityType != ontology
  • The root hierarchy and entity list for all entityTypes if entityType == ontology
    Unsuited tabs are disabled (e.g. hierarchy for individuals for now)

To display the list of all entities of a given entityType and ontologyId, I also added a new widget OntologyEntityListWidget:
image

The HierarchyGraphWidget currently looks like this:
image
(specific entity)
image
(ontology)

For more information have a look at the linked development branch (hierarchy-graph-widget)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

3 participants