Java Code Examples for org.semanticweb.owlapi.model.OWLOntology#getLogicalAxiomCount()
The following examples show how to use
org.semanticweb.owlapi.model.OWLOntology#getLogicalAxiomCount() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: OWLAPIIncrementalClassificationMultiDeltas.java From elk-reasoner with Apache License 2.0 | 6 votes |
@Override public void prepare() throws TaskException { // load positive and negative deltas via the OWL API try { OWLOntology additions = loadFromDisk(ADDITION_SUFFIX); OWLOntology deletions = loadFromDisk(DELETION_SUFFIX); applyToReasoner(additions.getLogicalAxioms(), true); applyToReasoner(deletions.getLogicalAxioms(), false); measureTime = additions.getLogicalAxiomCount() > 0 && deletions.getLogicalAxiomCount() > 0; } catch (OWLOntologyCreationException e) { throw new TaskException(e); } }