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

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

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

origin: owlcs/owlapi

/**
 * Range(R) = C is tautology iff ER.~C is unsatisfiable
 */
@Override
public void visit(OWLObjectPropertyRangeAxiom axiom) {
  isLocal = true;
  for (OWLClassExpression e : exprMap.get(axiom)) {
    isLocal &= !kernel.isSatisfiable(e);
  }
}
origin: owlcs/owlapi

@Override
public void visit(OWLDataPropertyRangeAxiom axiom) {
  isLocal = true;
  for (OWLClassExpression e : exprMap.get(axiom)) {
    isLocal &= !kernel.isSatisfiable(e);
  }
}
origin: net.sourceforge.owlapi/owlapi-distribution

@Override
public void visit(OWLDataPropertyRangeAxiom axiom) {
  isLocal = true;
  for (OWLClassExpression e : exprMap.get(axiom)) {
    isLocal &= !kernel.isSatisfiable(e);
  }
}
origin: net.sourceforge.owlapi/owlapi-tools

/**
 * Range(R) = C is tautology iff ER.~C is unsatisfiable
 */
@Override
public void visit(OWLObjectPropertyRangeAxiom axiom) {
  isLocal = true;
  for (OWLClassExpression e : exprMap.get(axiom)) {
    isLocal &= !kernel.isSatisfiable(e);
  }
}
origin: net.sourceforge.owlapi/owlapi-tools

@Override
public void visit(OWLDataPropertyRangeAxiom axiom) {
  isLocal = true;
  for (OWLClassExpression e : exprMap.get(axiom)) {
    isLocal &= !kernel.isSatisfiable(e);
  }
}
origin: owlcs/owlapi

@Override
public void visit(OWLDataPropertyRangeAxiom axiom) {
  isLocal = true;
  for (OWLClassExpression e : exprMap.get(axiom)) {
    isLocal &= !kernel.isSatisfiable(e);
  }
}
origin: net.sourceforge.owlapi/owlapi-osgidistribution

/**
 * Range(R) = C is tautology iff ER.~C is unsatisfiable
 */
@Override
public void visit(OWLObjectPropertyRangeAxiom axiom) {
  isLocal = true;
  for (OWLClassExpression e : exprMap.get(axiom)) {
    isLocal &= !kernel.isSatisfiable(e);
  }
}
origin: owlcs/owlapi

/**
 * Range(R) = C is tautology iff ER.~C is unsatisfiable
 */
@Override
public void visit(OWLObjectPropertyRangeAxiom axiom) {
  isLocal = true;
  for (OWLClassExpression e : exprMap.get(axiom)) {
    isLocal &= !kernel.isSatisfiable(e);
  }
}
origin: net.sourceforge.owlapi/owlapi-tools

/**
 * Range(R) = C is tautology iff ER.~C is unsatisfiable
 */
@Override
public void visit(OWLObjectPropertyRangeAxiom axiom) {
  isLocal = true;
  for (OWLClassExpression e : exprMap.get(axiom)) {
    isLocal &= !kernel.isSatisfiable(e);
  }
}
origin: net.sourceforge.owlapi/owlapi-distribution

/**
 * Range(R) = C is tautology iff ER.~C is unsatisfiable
 */
@Override
public void visit(OWLObjectPropertyRangeAxiom axiom) {
  isLocal = true;
  for (OWLClassExpression e : exprMap.get(axiom)) {
    isLocal &= !kernel.isSatisfiable(e);
  }
}
origin: protegeproject/protege

protected Set<? extends OWLClassExpression> getEquivalentClasses(OWLClass cls) {
  OWLReasoner myReasoner = reasoner;
  // Get the equivalent classes from the reasoner
  if (myReasoner == null) {
    return Collections.emptySet();
  }
  if (!myReasoner.isSatisfiable(cls)) {
    // We don't want every class in the ontology
    return Collections.emptySet();
  }
  return myReasoner.getEquivalentClasses(cls).getEntities();
}
origin: org.protege/protege-editor-owl

protected Set<? extends OWLClassExpression> getEquivalentClasses(OWLClass cls) {
  // Get the equivalent classes from the reasoner
  if (reasoner == null) {
    return Collections.emptySet();
  }
  if (!reasoner.isSatisfiable(cls)) {
    // We don't want every class in the ontology
    return Collections.emptySet();
  }
  return reasoner.getEquivalentClasses(cls).getEntities();
}
origin: org.protege/protege-editor-owl

public Set<OWLClass> getChildren(OWLClass object) {
  // Simply get the superclasses from the reasoner
  if (reasoner == null) {
    return Collections.emptySet();
  }
  if (!reasoner.isSatisfiable(object)) {
    // We don't want every class in the ontology!!
    return Collections.emptySet();
  }
  return reasoner.getSuperClasses(object, true).getFlattened();
}
origin: net.sourceforge.owlapi/owlapi

public void visit(OWLDisjointClassesAxiom axiom) {
  Set<OWLClassExpression> disjClasses = axiom.getClassExpressions();
  OWLClassExpression conjunction = df.getOWLObjectIntersectionOf(disjClasses);
  if (log.isLoggable(Level.FINE))
    log.fine("Calling the Reasoner");
  isLocal = !reasoner.isSatisfiable(df.getOWLNothing());
  if (log.isLoggable(Level.FINE))
    log.fine("DONE Calling the Reasoner. isLocal = " + isLocal);
}
origin: net.sourceforge.owlapi/owlexplanation

protected void updateUnsatisfiableDependents(OWLClassExpression op) {
  if (op.isAnonymous()) {
    op.accept(this);
  }
  else {
    if (!reasoner.isSatisfiable(op)) {
      dependsOn.add(op.asOWLClass());
    }
  }
}
origin: protegeproject/protege

private boolean isSatisfiable(@Nonnull OWLObject owlObject) {
  return !(owlObject instanceof OWLClass) || editorKit.getOWLModelManager()
                            .getOWLReasonerManager()
                            .getCurrentReasoner()
                            .isSatisfiable((OWLClass) owlObject);
}
origin: org.protege/protege-editor-owl

public Set<OWLClass> getEquivalents(OWLClass object) {
  if (!getReasoner().isSatisfiable(object)) {
    return Collections.emptySet();
  }
  Set<OWLClass> equivalents = getReasoner().getEquivalentClasses(object).getEntities();
  equivalents.remove(object);
  return equivalents;
}
origin: net.sourceforge.owlapi/owlapi

protected void addAxioms(OWLClass entity, OWLReasoner reasoner, OWLDataFactory dataFactory, Set<OWLSubClassOfAxiom> result) {
  if (reasoner.isSatisfiable(entity)) {
    for (OWLClass sup : reasoner.getSuperClasses(entity, true).getFlattened()) {
      result.add(dataFactory.getOWLSubClassOfAxiom(entity, sup));
    }
  }
  else {
    result.add(dataFactory.getOWLSubClassOfAxiom(entity, dataFactory.getOWLNothing()));
  }
}
origin: edu.stanford.protege/org.protege.editor.owl.codegeneration

@Override
public boolean canAs(OWLNamedIndividual i, OWLClass c) {
  OWLDataFactory factory = ontology.getOWLOntologyManager().getOWLDataFactory();
  return reasoner.isSatisfiable(factory.getOWLObjectIntersectionOf(c, factory.getOWLObjectOneOf(i)));
}
origin: edu.stanford.protege/org.protege.editor.owl

  public void run() {
    OWLReasoner reasoner = getOWLModelManager().getReasoner();
    boolean consistent = reasoner.isConsistent();
    if (!consistent || !getOWLModelManager().getReasoner().isSatisfiable((OWLClass) curEntity)) {
      // Paint red because of inconsistency
      doc.setCharacterAttributes(tokenStartIndex, tokenLength, inconsistentClassStyle, true);
    }
  }
});
org.semanticweb.owlapi.reasonerOWLReasonerisSatisfiable

Javadoc

A convenience method that determines if the specified class expression is satisfiable with respect to the reasoner axioms.

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.
  • 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
  • dispose
    Disposes of this reasoner. This frees up any resources used by the reasoner and detaches the reasone
  • 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

  • Reading from database using SQL prepared statement
  • requestLocationUpdates (LocationManager)
  • getResourceAsStream (ClassLoader)
  • addToBackStack (FragmentTransaction)
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • Top 12 Jupyter Notebook extensions
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