Tabnine Logo
OWLReasoner.dispose
Code IndexAdd Tabnine to your IDE (free)

How to use
dispose
method
in
org.semanticweb.owlapi.reasoner.OWLReasoner

Best Java code snippets using org.semanticweb.owlapi.reasoner.OWLReasoner.dispose (Showing top 20 results out of 315)

origin: net.sourceforge.fluxion/fluxion-utils

 /**
  * Empty the ReasonerSession of any previously loaded and classified
  * ontologies.  Marking a ReasonerSession as expired will cause any
  * subsequent attempts to lease it to fail.
  */
 public synchronized void expire() {
//    reasoner.clearOntologies();
  reasoner.dispose();
  expired = true;
 }

origin: org.semanticweb.more/more-reasoner

protected void disposeUsedReasoners() {
  // Can be empty if lsignature is empty
  if (lReasoner != null) {
    lReasoner.dispose();
  }
  if (owl2reasoner != null) {
    owl2reasoner.dispose();
  }
}
origin: edu.stanford.protege/ontology-browser-owlmanager

@Override
public synchronized void dispose() {
  r.dispose();
}
origin: com.github.galigator.openllet/openllet-owlapi

  @Override
  public void dispose()
  {
    _reasoner.ifPresent(r -> r.dispose());
  }
}
origin: Galigator/openllet

  @Override
  public void dispose()
  {
    _reasoner.ifPresent(r -> r.dispose());
  }
}
origin: Galigator/openllet

  @Override
  public void dispose()
  {
    _reasoner.ifPresent(r -> r.dispose());
  }
}
origin: edu.stanford.protege/ontology-browser-owlmanager

  @Override
  public void dispose() {
    for (OWLReasoner r : reasoners.values()){
      r.dispose();
    }
    reasoners.clear();
  }
}
origin: edu.stanford.protege/ontology-browser-owlmanager

@Override
public void dispose(OWLReasoner r){
  for (String name : reasoners.keySet()){
    if (reasoners.get(name).equals(r)){
      r.dispose();
      reasoners.remove(name);
      return;
    }
  }
}
origin: edu.stanford.protege/protege-editor-owl

private void clearAndDisposeReasoners() {
  for (OWLReasoner reasoner : reasonerMap.values()) {
    if (reasoner != null) {
      try {
        reasoner.dispose();
      } catch (Throwable t) {
        logger.warn("An error occurred whilst disposing of the '{}' reasoner.  Error: {}", reasoner.getReasonerName(), t);
      }
    }
  }
  reasonerMap.clear();
}
origin: protegeproject/protege

private void clearAndDisposeReasoners() {
  for (OWLReasoner reasoner : reasonerMap.values()) {
    if (reasoner != null) {
      try {
        reasoner.dispose();
      } catch (Throwable t) {
        logger.warn("An error occurred whilst disposing of the '{}' reasoner.  Error: {}", reasoner.getReasonerName(), t);
      }
    }
  }
  reasonerMap.clear();
}
origin: org.protege/protege-editor-owl

private void clearAndDisposeReasoners() {
  for (OWLReasoner reasoner : reasonerMap.values()) {
    if (reasoner != null) {
      try {
        reasoner.dispose();
      }
      catch (Throwable t) {
        ProtegeApplication.getErrorLog().logError(t);
      }
    }
  }
  reasonerMap.clear();
}
origin: edu.stanford.protege/org.protege.editor.owl

private void clearAndDisposeReasoners() {
  for (OWLReasoner reasoner : reasonerMap.values()) {
    if (reasoner != null) {
      try {
        reasoner.dispose();
      }
      catch (Throwable t) {
        ProtegeApplication.getErrorLog().logError(t);
      }
    }
  }
  reasonerMap.clear();
}
origin: org.protege/protege-editor-owl

public void killCurrentReasoner() {
  OWLReasoner reasoner = getCurrentReasoner();
  if (!(reasoner instanceof NoOpReasoner)) {
    reasoner.dispose();
    synchronized (reasonerMap)  {
      reasonerMap.put(owlModelManager.getActiveOntology(), null);
    }
  }
}

origin: owlcs/owlapi

@Override
public void dispose() {
  reset();
  getReasoner().dispose();
}
origin: net.sourceforge.owlapi/owlapi-osgidistribution

@Override
public void dispose() {
  reset();
  getReasoner().dispose();
}
origin: net.sourceforge.owlapi/owlapi-distribution

@Override
public void dispose() {
  reset();
  getReasoner().dispose();
}
origin: net.sourceforge.owlapi/owlapi-tools

@Override
public void dispose() {
  reset();
  getReasoner().dispose();
}
origin: protegeproject/protege

public void killCurrentReasoner() {
  OWLReasoner reasoner = getCurrentReasoner();
  if (!(reasoner instanceof NoOpReasoner)) {
    try {
      reasoner.dispose();
    } catch (Exception ex) {
      logger.warn("An error occurred whilst disposing of the current reasoner ({}).  Error: {}", reasoner.getReasonerName(), ex);
    }
    synchronized (reasonerMap) {
      reasonerMap.put(owlModelManager.getActiveOntology(), null);
    }
  }
}
origin: net.sourceforge.owlapi/owlapi

public void dispose() {
  reset();
  getReasoner().dispose();
}
origin: edu.stanford.protege/protege-editor-owl

public void killCurrentReasoner() {
  OWLReasoner reasoner = getCurrentReasoner();
  if (!(reasoner instanceof NoOpReasoner)) {
    try {
      reasoner.dispose();
    } catch (Exception ex) {
      logger.warn("An error occurred whilst disposing of the current reasoner ({}).  Error: {}", reasoner.getReasonerName(), ex);
    }
    synchronized (reasonerMap) {
      reasonerMap.put(owlModelManager.getActiveOntology(), null);
    }
  }
}
org.semanticweb.owlapi.reasonerOWLReasonerdispose

Javadoc

Disposes of this reasoner. This frees up any resources used by the reasoner and detaches the reasoner as an org.semanticweb.owlapi.model.OWLOntologyChangeListener from the org.semanticweb.owlapi.model.OWLOntologyManager that manages the ontologies contained within the reasoner.

Popular methods of OWLReasoner

  • getSuperClasses
    Gets the set of named classes that are the strict (potentially direct) super classes of the specifie
  • isConsistent
    Determines if the set of reasoner axioms is consistent. Note that this method will NOT throw an org.
  • isSatisfiable
    A convenience method that determines if the specified class expression is satisfiable with respect t
  • getSubClasses
    Gets the set of named classes that are the strict (potentially direct) subclasses of the specified c
  • precomputeInferences
    Asks the reasoner to precompute certain types of inferences. Note that it is NOT necessary to call t
  • getEquivalentClasses
    Gets the set of named classes that are equivalent to the specified class expression with respect to
  • getObjectPropertyValues
    Gets the object property values for the specified individual and object property expression. The ind
  • getTypes
    Gets the named classes which are (potentially direct) types of the specified named individual. The c
  • getUnsatisfiableClasses
    A convenience method that obtains the classes in the signature of the root ontology that are unsatis
  • getDataPropertyValues
    Gets the data property values for the specified individual and data property expression. The values
  • getInstances
    Gets the individuals which are instances of the specified class expression. The individuals are retu
  • getRootOntology
    Gets the "root" ontology that is loaded into this reasoner. The reasoner takes into account the axio
  • getInstances,
  • getRootOntology,
  • isEntailed,
  • getSuperDataProperties,
  • getSuperObjectProperties,
  • flush,
  • getDisjointClasses,
  • getSubObjectProperties,
  • getInverseObjectProperties

Popular in Java

  • Updating database using SQL prepared statement
  • onCreateOptionsMenu (Activity)
  • getContentResolver (Context)
  • addToBackStack (FragmentTransaction)
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • CodeWhisperer alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now