Skip to content

Commit

Permalink
Merge pull request #1227 from ontodev/owl-diff-update
Browse files Browse the repository at this point in the history
Update owl-diff dependency for stable ordering and to avoid large string creation
  • Loading branch information
jamesaoverton authored Nov 20, 2024
2 parents 0e688c1 + 0ae683d commit ff47bff
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]

## Fixed
- Update owl-diff dependency for stable ordering and to avoid large string creation [#1227]
- Improve disambiguation of properties in QuotedEntityChecker [#1226]
- Skip "non-robot" columns in templates for the purposes of axiom annotations [#1216]
- Add missing filter for deprecated in lowercase_definition check [#1220]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,6 @@ public CommandState execute(CommandState state, String[] args) throws Exception
options.put("format", CommandLineHelper.getDefaultValue(line, "format", "plain"));

DiffOperation.compare(leftOntology, rightOntology, ioHelper, writer, options);
writer.flush();
writer.close();

return state;
Expand Down
2 changes: 1 addition & 1 deletion robot-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@
<dependency>
<groupId>org.geneontology</groupId>
<artifactId>owl-diff_${scala.version}</artifactId>
<version>1.2.2</version>
<version>1.3.0</version>
<exclusions>
<exclusion>
<groupId>net.sourceforge.owlapi</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ public static boolean compare(

switch (format) {
case "plain":
writer.write(BasicDiffRenderer.renderPlain(diff));
BasicDiffRenderer.renderPlainWriter(diff, writer);
break;
case "pretty":
DefaultPrefixManager pm = ioHelper.getPrefixManager();
Expand All @@ -137,15 +137,15 @@ public static boolean compare(
OBOShortenerShortFormProvider iriProvider = new OBOShortenerShortFormProvider(pm);
DoubleShortFormProvider doubleProvider =
new DoubleShortFormProvider(iriProvider, labelProvider);
writer.write(BasicDiffRenderer.render(diff, doubleProvider));
BasicDiffRenderer.renderWriter(diff, doubleProvider, writer);
break;
case "markdown":
Differ.GroupedDiff groupedForMarkdown = Differ.groupedDiff(diff);
writer.write(MarkdownGroupedDiffRenderer.render(groupedForMarkdown, ontologyProvider));
MarkdownGroupedDiffRenderer.renderWriter(groupedForMarkdown, ontologyProvider, writer);
break;
case "html":
Differ.GroupedDiff groupedForHTML = Differ.groupedDiff(diff);
writer.write(HTMLDiffRenderer.render(groupedForHTML, ontologyProvider));
HTMLDiffRenderer.renderWriter(groupedForHTML, ontologyProvider, writer);
break;
default:
throw new IOException("Unknown diff format: " + format);
Expand Down

0 comments on commit ff47bff

Please sign in to comment.