Skip to content

Preserve catalog path in metadata for multi-ontology-input commands - #1285

Open
balhoff wants to merge 1 commit into
masterfrom
issue-1250
Open

Preserve catalog path in metadata for multi-ontology-input commands#1285
balhoff wants to merge 1 commit into
masterfrom
issue-1250

Conversation

@balhoff

@balhoff balhoff commented Jun 22, 2026

Copy link
Copy Markdown
Contributor
  • docs/ have been added/updated
  • tests have been added/updated
  • mvn verify says all tests pass
  • mvn site says all JavaDocs correct
  • CHANGELOG.md has been updated

Fixes #1250.

for (String inputOntologyIRI : inputOntologyIRIs) {
inputOntologies.add(
ioHelper.loadOntology(IRI.create(inputOntologyIRI), catalogPath, inputFormat));
return getInputOntologiesWithMetadata(ioHelper, line, catalogPath).getOntologies();

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note this way you change the meaning of catalogPath == null from "dont use catalog" to "use default". I dont think this will pass the @jamesaoverton QC guard.

* @param catalogPath path to the explicit catalog, or null
*/
InputOntologies(String catalogPath) {
this.catalogPath = catalogPath;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

At least if I read the code correctly, you dont need the catalogPath in the object, and least not right now. The methods that are calling the class object already have the catalog available. just saying. :P

for (File inputOntologyFile : getFilesByPattern(pattern)) {
inputOntologies.add(ioHelper.loadOntology(inputOntologyFile, true, inputFormat));
OWLOntology ontology;
if (catalogFile != null) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Somehow this if else seems like it could be refactored to fit both 1160ff and this instance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

catalog path is not put into command state when merge operation is first

2 participants