Skip to content

Commit

Permalink
Implemented skipping of Exporting properties
Browse files Browse the repository at this point in the history
  • Loading branch information
mrnolte committed Aug 2, 2022
1 parent 7388e66 commit d4f12b9
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,23 @@
public class PropertyListExporter implements CIRunnable {

private static final Logger logger = LoggerFactory.getLogger(PropertyListExporter.class);

private final Path path;
private final OntologyManager ontologyManager;

@Autowired
public PropertyListExporter(final OntologyManager ontologyManager, @Value("${propertyListPath}") final Path path) {
public PropertyListExporter(final OntologyManager ontologyManager,
@Value("${propertyListPath#{null}}") final Path path) {
this.path = path;
this.ontologyManager = ontologyManager;
}

@Override
public void run() throws IOException {
if (path == null) {
logger.info("CL argument 'propertyListPath' not given. Skipping export of properties.");
return;
}
for (final OWLOntology owlOntology : ontologyManager.mainOntologies().collect(Collectors.toSet())) {
exportProperties(owlOntology);
}
Expand Down

0 comments on commit d4f12b9

Please sign in to comment.