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

Hierarchy in the GUI is not loaded since there is a cycle #1708

Open
rombaum opened this issue Nov 27, 2024 · 1 comment
Open

Hierarchy in the GUI is not loaded since there is a cycle #1708

rombaum opened this issue Nov 27, 2024 · 1 comment

Comments

@rombaum
Copy link

rombaum commented Nov 27, 2024

URL address of the page where you encountered the problem

On the Skosmos instance of Sage there is an issue by clicking on hierarchy. e.g. for the term economic forecasting
grafik

Description of the problem

When I open the link above the hierarchy is not loaded since there is at least one cycle in the SKOS vocabulary. Which is depicted by the following figure in the section Additional information (e.g. screenshots) about the problem. I would except that the hierarchy is shown. We faced this issue by extending the Terminology Service Suite of TS4NFDI to display a SKOS hierarchy. We created a small check if a concept already exist in the hierarchy or not. After doing this the hierarchy is shown in our widget

The code is in React and could be found here. It should be easily adaptable for another programming language.

Additional information (e.g. screenshots) about the problem

There is a cycle in the sage vocabulary.

figure 2

We also contacted Sage to correct their vocabulary. We didn't get a response so far. However the problem could also appear in other Skosmos instances.

The browser you used when the problem appeared

Firefox 132.0

@osma
Copy link
Member

osma commented Jan 22, 2025

Thanks for the great issue report @rombaum !

We're using Skosify to pre-process our SKOS vocabularies before publishing them in Skosmos, as mentioned on the Data Model page in the wiki. It will remove cycles like this as well as fix many other kinds of common issues such as whitespace in labels.

We think that pre-processing the vocabulary before publishing is much better than trying to catch errors with Skosmos itself, as the errors would have to be caught in many places around the Skosmos codebase.

Therefore, I'm marking this issue as "Contribution-dependent". It means we at NatLibFi aren't going to work on this ourselves, but we are open to contributions from the community.

@osma osma added this to the Contribution-dependent features milestone Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Development

No branches or pull requests

2 participants