A Java API and reference implementation for creating, manipulating and serialising OWL Ontologies, focused towards OWL 2.
Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
org.semanticweb.owlapi.model.OWLOntology
Creates a new empty OWL ontology
import org.semanticweb.owlapi.model.OWLOntology;
import org.semanticweb.owlapi.apibinding.OWLManager;
public class Example {
public static void main(String[] args) throws Exception {
OWLOntology ontology = OWLManager.createOWLOntologyManager().createOntology();
System.out.println(ontology.getOntologyID());
}
}
Debug
Known footguns
No known footguns recorded.
Upgrade
Version history
Breaking-change detection hasn't run for this library yet.
Audit
Security & dependencies
CVE tracking and dependency tree are planned for a later release.