uk.ac.manchester.cs.owl.owlapi.concurrent.NonConcurrentOWLOntologyBuilder Maven / Gradle / Ivy
package uk.ac.manchester.cs.owl.owlapi.concurrent;
import static org.semanticweb.owlapi.util.OWLAPIPreconditions.verifyNotNull;
import javax.inject.Inject;
import org.semanticweb.owlapi.model.OWLOntology;
import org.semanticweb.owlapi.model.OWLOntologyBuilder;
import org.semanticweb.owlapi.model.OWLOntologyID;
import org.semanticweb.owlapi.model.OWLOntologyManager;
import uk.ac.manchester.cs.owl.owlapi.OWLOntologyImplementationFactory;
/**
* Matthew Horridge Stanford Center for Biomedical Informatics Research 10/04/15
*/
public class NonConcurrentOWLOntologyBuilder implements OWLOntologyBuilder {
private final transient OWLOntologyImplementationFactory implementationFactory;
/**
* @param implementationFactory
* implementation factory
*/
@Inject
public NonConcurrentOWLOntologyBuilder(OWLOntologyImplementationFactory implementationFactory) {
this.implementationFactory = verifyNotNull(implementationFactory);
}
@Override
public OWLOntology createOWLOntology(OWLOntologyManager manager, OWLOntologyID ontologyID) {
return implementationFactory.createOWLOntology(manager, ontologyID);
}
}