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
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 calledpath_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 withThe roots are no more only the concepts that doesn't have parents, but it depends also of the used schemes.
Requirement
concept.is_root? = concept.parents.empty? OR schemes_roots.contain?(concept)
Deployment