Skip to content

[BUG] - oml2owl should guard against and diagnose input taxonomies with loops or cycles #36

@StevenJenkinsJPL

Description

@StevenJenkinsJPL

Description

Vocabulary bundle closure fails with uncaught exceptions if the constructed taxonomy contains loops (self edges) or cycles. The former can be prevented (self edges are trivially true; every class is a subclass of itself) by disregarding them; they play no role in bundle closure. The latter cannot be prevented but the exception should be caught and some diagnostic output produced.

Steps to Reproduce

Steps to reproduce the behavior:

  • Attempt to close a vocabulary with loops or cycles in the taxonomy
  • Observe uncaught exception

Expected Behavior

In the case of a loop, no exception thrown. In the case of a cycle, diagnostic emitted showing at least the edge completing the cycle.

Metadata

Metadata

Labels

BugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions