Skip to content

Commit

Permalink
Add predicate order switch
Browse files Browse the repository at this point in the history
  • Loading branch information
atextor committed May 14, 2021
1 parent 116ad30 commit 2b77e9f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cli/src/main/java/de/atextor/owlcli/OWLCLIWriteCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,10 @@ public class OWLCLIWriteCommand extends AbstractCommand implements Runnable {
description = "Sort order for subjects by type (Default: ${DEFAULT-VALUE})" )
private List<Resource> subjectOrder = FormattingStyle.DEFAULT.subjectOrder;

@CommandLine.Option( names = { "--predicateOrder" },
description = "Sort order for predicates (Default: ${DEFAULT-VALUE})" )
private List<Property> predicateOrder = FormattingStyle.DEFAULT.predicateOrder;

@CommandLine.Parameters( paramLabel = "INPUT", description = "File name, URL, or - for stdin", arity = "1",
index = "0" )
private String input;
Expand Down Expand Up @@ -174,6 +178,7 @@ public void run() {
.keepUnusedPrefixes( keepUnusedPrefixes )
.prefixOrder( prefixOrder )
.subjectOrder( subjectOrder )
.predicateOrder( predicateOrder )
.build();

final Configuration.ConfigurationBuilder configurationBuilder = Configuration.builder()
Expand Down

0 comments on commit 2b77e9f

Please sign in to comment.