Skip to content

Commit

Permalink
Add script for counting Abox axioms.
Browse files Browse the repository at this point in the history
  • Loading branch information
balhoff committed Jul 1, 2024
1 parent f0c876d commit 97b870b
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions scala/abox-axioms.sc
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
//> using scala "2.13"
//> using dep "net.sourceforge.owlapi:owlapi-distribution:4.5.29"

import org.semanticweb.owlapi.model.parameters.Imports
import org.semanticweb.owlapi.apibinding.OWLManager
import java.io.File

val modelsFolder = args(0)
val manager = OWLManager.createOWLOntologyManager()
val models = new File(modelsFolder)
.listFiles()
.foreach { file =>
val model = manager.loadOntologyFromOntologyDocument(file)
println(model.getLogicalAxiomCount(Imports.EXCLUDED))
}

0 comments on commit 97b870b

Please sign in to comment.