org.geneontology.whelk.owlapi.WhelkOWLReasonerFactory.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of whelk-owlapi_2.13 Show documentation
Show all versions of whelk-owlapi_2.13 Show documentation
Whelk reasoner OWL API bindings
package org.geneontology.whelk.owlapi
import org.semanticweb.owlapi.model.OWLOntology
import org.semanticweb.owlapi.reasoner.{BufferingMode, OWLReasoner, OWLReasonerConfiguration, OWLReasonerFactory}
class WhelkOWLReasonerFactory extends OWLReasonerFactory {
def createNonBufferingReasoner(ontology: OWLOntology): OWLReasoner = new WhelkOWLReasoner(ontology, BufferingMode.NON_BUFFERING)
def createNonBufferingReasoner(ontology: OWLOntology, config: OWLReasonerConfiguration): OWLReasoner = new WhelkOWLReasoner(ontology, BufferingMode.NON_BUFFERING)
def createReasoner(ontology: OWLOntology): OWLReasoner = new WhelkOWLReasoner(ontology, BufferingMode.BUFFERING)
def createReasoner(ontology: OWLOntology, config: OWLReasonerConfiguration): OWLReasoner = new WhelkOWLReasoner(ontology, BufferingMode.BUFFERING)
def getReasonerName: String = "Whelk"
}