ontoportal-lirmm / ontologies_linked_data

Models and serializers for ontologies and related artifacts backed by 4store
Other
0 stars 6 forks source link

update the path_to_root of a concept methods to use custom roots #44

Closed syphax-bouazzouni closed 1 year ago

syphax-bouazzouni commented 1 year ago

Context

The /tree endpoint of a concept gives the path that takes the concept to reach one the roots of the resource. This endpoint is using to achieve that a function called path_to_root.

Issue

The path_to_root method was testing that it reached the root, if the tested concept has no more parents or is owl:Thing. The problem is that with

The roots are no more only the concepts that doesn't have parents, but it depends also of the used schemes.

Requirement

Deployment

syphax-bouazzouni commented 1 year ago

Done

Tree without a concept_schemes

Image

Tree with concept_schemes

Image