INCATools / ontology-development-kit

Bootstrap an OBO Library ontology
http://incatools.github.io/ontology-development-kit/
BSD 3-Clause "New" or "Revised" License
228 stars 54 forks source link

Seeding creates individual import modules even when `use_base_merging` is used #828

Closed gouttegd closed 1 year ago

gouttegd commented 1 year ago

When a repository is initialized (or updated with update_repo), the seeding process automatically creates a src/ontology/imports/{imp.id}_import.owl file (containing a boilerplate RDF/XML header) for each id import declared in the ODK configuration file.

Problem is that it does that even when use_base_merging is True, even though in that case those individual import modules are actually never needed (what’s needed instead is a single src/ontology/imports/merged-import.owl module).

The _dynamic_files.jinja2 template should be updated to take into account the use_base_merging parameter when creating the placeholder import modules, so that it creates only the merged-import.owl module when use_base_merging is True.