Codota Logo
OWLEquivalentClassesAxiom.asOWLSubClassOfAxioms
Code IndexAdd Codota to your IDE (free)

How to use
asOWLSubClassOfAxioms
method
in
org.semanticweb.owlapi.model.OWLEquivalentClassesAxiom

Best Java code snippets using org.semanticweb.owlapi.model.OWLEquivalentClassesAxiom.asOWLSubClassOfAxioms (Showing top 10 results out of 315)

  • Common ways to obtain OWLEquivalentClassesAxiom
private void myMethod () {
OWLEquivalentClassesAxiom o =
  • Codota IconOWLDataFactory oWLDataFactory;OWLClassExpression clsA;OWLClassExpression clsB;oWLDataFactory.getOWLEquivalentClassesAxiom(clsA, clsB)
  • Codota IconOWLDataFactory oWLDataFactory;Set classExpressions;oWLDataFactory.getOWLEquivalentClassesAxiom(classExpressions)
  • Codota IconOWLDataFactory oWLDataFactory;Collection collection;oWLDataFactory.getOWLEquivalentClassesAxiom(collection)
  • Smart code suggestions by Codota
}
origin: owlcs/owlapi

@Override
public Collection<? extends OWLAxiom> visit(OWLEquivalentClassesAxiom axiom) {
  return axiom.asOWLSubClassOfAxioms();
}
origin: net.sourceforge.owlapi/owlapi-distribution

@Override
public Collection<? extends OWLAxiom> visit(OWLEquivalentClassesAxiom axiom) {
  return axiom.asOWLSubClassOfAxioms();
}
origin: net.sourceforge.owlapi/owlapi-osgidistribution

@Override
public Collection<? extends OWLAxiom> visit(OWLEquivalentClassesAxiom axiom) {
  return axiom.asOWLSubClassOfAxioms();
}
origin: net.sourceforge.owlapi/owlexplanation

@Override
public Set<OWLAxiom> visit(OWLEquivalentClassesAxiom axiom) {
  return visit(axiom.asOWLSubClassOfAxioms());
}
origin: protegeproject/webprotege

private Stream<OWLSubClassOfAxiom> getEquivalentClassAxiomsAsSubClassOfAxioms(OWLClass cls) {
  return getOntologies()
      .flatMap(o -> o.getEquivalentClassesAxioms(cls).stream())
      .flatMap(ax -> ax.asOWLSubClassOfAxioms().stream());
}
origin: org.semanticweb.more/more-reasoner

public void visit(OWLEquivalentClassesAxiom axiom){
  //We turn this OWLEquivalentClassesAxiom into a set of OWLSubClassOfAxiom and then use 
  //a new ELAxiomVisitor to visit them until we find one that is not EL
  Set<OWLSubClassOfAxiom> subClassOfAxioms = axiom.asOWLSubClassOfAxioms();		
  
  //We walk through the set of OWLSubClassOfAxiom with the help of in iterator
  Iterator<OWLSubClassOfAxiom> iterator = subClassOfAxioms.iterator();
  OWLSubClassOfAxiom oneSubClassOfAxiom = iterator.next();
  oneSubClassOfAxiom.accept(this);
  boolean isELSoFar = isEL;
  
  while(iterator.hasNext() && isELSoFar){
    oneSubClassOfAxiom = iterator.next();
    oneSubClassOfAxiom.accept(this);
    isELSoFar = isELSoFar && isEL;
  }
  isEL = isELSoFar;
}

origin: org.semanticweb.more/more-reasoner

public void visit(OWLEquivalentClassesAxiom axiom){
  //We turn this OWLEquivalentClassesAxiom into a set of OWLSubClassOfAxiom and then use 
  //a new ELAxiomVisitor to visit them until we find one that is not EL
  Set<OWLSubClassOfAxiom> subClassOfAxioms = axiom.asOWLSubClassOfAxioms();		
  
  //We walk through the set of OWLSubClassOfAxiom with the help of an iterator
  Iterator<OWLSubClassOfAxiom> iterator = subClassOfAxioms.iterator();
  OWLSubClassOfAxiom oneSubClassOfAxiom = iterator.next();
  oneSubClassOfAxiom.accept(this);
  boolean isSupportedByELKSoFar = isSupportedByELK;
  
  while(iterator.hasNext() && isSupportedByELKSoFar){
    oneSubClassOfAxiom = iterator.next();
    oneSubClassOfAxiom.accept(this);
    isSupportedByELKSoFar = isSupportedByELKSoFar && isSupportedByELK;
  }
  isSupportedByELK = isSupportedByELKSoFar;
}

origin: net.sourceforge.owlapi/owlexplanation

public Set<OWLAxiom> computeOPlus(Set<OWLAxiom> inputAxioms) {
  OPlusGenerator oPlusGenerator = new OPlusGenerator(man.getOWLDataFactory(), OPlusSplitting.TOP_LEVEL);
  Set<OWLAxiom> oPlus = new HashSet<>();
  for (OWLAxiom ax : inputAxioms) {
    Set<? extends OWLAxiom> weakenedAxioms = ax.accept(oPlusGenerator);
    oPlus.addAll(weakenedAxioms);
  }
  for(OWLAxiom ax : oPlus) {
    if(ax instanceof OWLEquivalentClassesAxiom) {
      OWLEquivalentClassesAxiom eca = (OWLEquivalentClassesAxiom) ax;
      if(oPlus.containsAll(eca.asOWLSubClassOfAxioms())) {
        System.out.println("POTENTIAL OPT!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!****************");
      }
    }
  }
  return oPlus;
}
origin: Quetzal-RDF/quetzal

Set<OWLSubClassOfAxiom> subclAxioms = (Set<OWLSubClassOfAxiom>)eqAx.asOWLSubClassOfAxioms();
ret =  toQLNormalForm(subclAxioms,tmpNonQLAxioms,!bestEffort);
origin: SmartDataAnalytics/DL-Learner

Set<OWLSubClassOfAxiom> subClassOfAxioms = ((OWLEquivalentClassesAxiom)pattern).asOWLSubClassOfAxioms();
for (OWLSubClassOfAxiom axiom : subClassOfAxioms) {
  if(!axiom.getSubClass().isAnonymous()){
org.semanticweb.owlapi.modelOWLEquivalentClassesAxiomasOWLSubClassOfAxioms

Popular methods of OWLEquivalentClassesAxiom

  • getClassExpressions
  • classExpressions
  • getClassExpressionsMinus
  • accept
  • namedClasses
    Gets the named classes (excluding owl:Thing and owl:Nothing) that are in this equivalent classes axi
  • getNamedClasses
    Gets the named classes (excluding owl:Thing and owl:Nothing) that are in this equivalent classes axi
  • annotations
  • getClassExpressionsAsList
  • containsOWLThing
    Determines if this class axiom makes a class expression equivalent to thing.
  • getAnnotations
  • contains
  • containsOWLNothing
    Determines if this class axiom makes a class expression equivalent to nothing.
  • contains,
  • containsOWLNothing,
  • getAxiomType,
  • operands,
  • splitToAnnotatedPairs,
  • allMatch,
  • asPairwiseAxioms,
  • containsNamedEquivalentClass,
  • getAxiomWithoutAnnotations

Popular in Java

  • Creating JSON documents from java classes using gson
  • getSystemService (Context)
  • setRequestProperty (URLConnection)
    Sets the general request property. If a property with the key already exists, overwrite its value wi
  • getSharedPreferences (Context)
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • PrintWriter (java.io)
    Prints formatted representations of objects to a text-output stream. This class implements all of th
  • Path (java.nio.file)
  • KeyStore (java.security)
    This class represents an in-memory collection of keys and certificates. It manages two types of entr
  • Reference (javax.naming)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now