Skip to content

Commit 1758d14

Browse files
committed
Implement --base-iri option in the normalize command.
The `odk:normalize` command declared a `--base-iri` option, but did not include the logic to actually do anything when that option was used. We fix that here.
1 parent aa3982d commit 1758d14

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/main/java/org/incenp/obofoundry/odk/NormalizeCommand.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,9 @@ public void performOperation(CommandState state, CommandLine line) throws Except
8686
boolean doSubsetDecls = CommandLineHelper.getBooleanValue(line, "subset-decls", defValue);
8787
boolean doSynonymDecls = CommandLineHelper.getBooleanValue(line, "synonym-decls", defValue);
8888
boolean doInjectSource = CommandLineHelper.getBooleanValue(line, "add-source", false);
89+
for ( String prefix : CommandLineHelper.getOptionalValues(line, "base-iri") ) {
90+
basePrefixes.add(getIRI(prefix, "base-iri").toString());
91+
}
8992

9093
OWLOntology ontology = state.getOntology();
9194

0 commit comments

Comments
 (0)