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

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

Best Java code snippets using org.semanticweb.owlapi.model.OWLEquivalentClassesAxiom.accept (Showing top 17 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: net.sourceforge.owlapi/jfact

@Override
public Boolean visit(OWLDisjointUnionAxiom axiom) {
  return Boolean.valueOf(axiom.getOWLEquivalentClassesAxiom().accept(this).booleanValue()
    && axiom.getOWLDisjointClassesAxiom().accept(this).booleanValue());
}
origin: net.sourceforge.owlapi/owlexplanation

@Override
public Set<OWLAxiom> visit(OWLDisjointUnionAxiom axiom) {
  Set<OWLAxiom> result = new HashSet<>();
  result.addAll(axiom.getOWLDisjointClassesAxiom().accept(this));
  result.addAll(axiom.getOWLEquivalentClassesAxiom().accept(this));
  return result;
}
origin: net.sourceforge.owlapi/owlapi-parsers

@Override
public void visit(OWLEquivalentClassesAxiom axiom) {
  if (axiom.classExpressions().count() == 2) {
    addPairwise(axiom, axiom.classExpressions(), OWL_EQUIVALENT_CLASS.getIRI());
  } else {
    axiom.splitToAnnotatedPairs().stream().sorted().forEach(ax -> ax.accept(this));
  }
}
origin: owlcs/owlapi

@Override
public void visit(OWLEquivalentClassesAxiom axiom) {
  if (axiom.classExpressions().count() == 2) {
    addPairwise(axiom, axiom.classExpressions(), OWL_EQUIVALENT_CLASS.getIRI());
  } else {
    axiom.splitToAnnotatedPairs().stream().sorted().forEach(ax -> ax.accept(this));
  }
}
origin: net.sourceforge.owlapi/owlapi-distribution

@Override
public void visit(OWLEquivalentClassesAxiom axiom) {
  if (axiom.classExpressions().count() == 2) {
    addPairwise(axiom, axiom.classExpressions(), OWL_EQUIVALENT_CLASS.getIRI());
  } else {
    axiom.splitToAnnotatedPairs().stream().sorted().forEach(ax -> ax.accept(this));
  }
}
origin: net.sourceforge.owlapi/owlapi-osgidistribution

@Override
public void visit(OWLEquivalentClassesAxiom axiom) {
  if (axiom.classExpressions().count() == 2) {
    addPairwise(axiom, axiom.classExpressions(), OWL_EQUIVALENT_CLASS.getIRI());
  } else {
    axiom.splitToAnnotatedPairs().stream().sorted().forEach(ax -> ax.accept(this));
  }
}
origin: net.sourceforge.owlapi/owlapi-osgidistribution

public MacroExpansions() {
  visitor = new GCIVisitor(inputOntology, newAxioms);
  inputOntology.axioms(AxiomType.SUBCLASS_OF).forEach(axiom -> axiom.accept(visitor));
  inputOntology.axioms(AxiomType.EQUIVALENT_CLASSES)
    .forEach(axiom -> axiom.accept(visitor));
  inputOntology.axioms(AxiomType.CLASS_ASSERTION).forEach(axiom -> axiom.accept(visitor));
  inputOntology.axioms(AxiomType.ANNOTATION_ASSERTION).forEach(this::expand);
}
origin: net.sourceforge.owlapi/owlapi-oboformat

public MacroExpansions() {
  visitor = new GCIVisitor(inputOntology, newAxioms);
  inputOntology.axioms(AxiomType.SUBCLASS_OF).forEach(axiom -> axiom.accept(visitor));
  inputOntology.axioms(AxiomType.EQUIVALENT_CLASSES)
    .forEach(axiom -> axiom.accept(visitor));
  inputOntology.axioms(AxiomType.CLASS_ASSERTION).forEach(axiom -> axiom.accept(visitor));
  inputOntology.axioms(AxiomType.ANNOTATION_ASSERTION).forEach(this::expand);
}
origin: owlcs/owlapi

public MacroExpansions() {
  visitor = new GCIVisitor(inputOntology, newAxioms);
  inputOntology.axioms(AxiomType.SUBCLASS_OF).forEach(axiom -> axiom.accept(visitor));
  inputOntology.axioms(AxiomType.EQUIVALENT_CLASSES)
    .forEach(axiom -> axiom.accept(visitor));
  inputOntology.axioms(AxiomType.CLASS_ASSERTION).forEach(axiom -> axiom.accept(visitor));
  inputOntology.axioms(AxiomType.ANNOTATION_ASSERTION).forEach(this::expand);
}
origin: net.sourceforge.owlapi/owlapi-distribution

public MacroExpansions() {
  visitor = new GCIVisitor(inputOntology, newAxioms);
  inputOntology.axioms(AxiomType.SUBCLASS_OF).forEach(axiom -> axiom.accept(visitor));
  inputOntology.axioms(AxiomType.EQUIVALENT_CLASSES)
    .forEach(axiom -> axiom.accept(visitor));
  inputOntology.axioms(AxiomType.CLASS_ASSERTION).forEach(axiom -> axiom.accept(visitor));
  inputOntology.axioms(AxiomType.ANNOTATION_ASSERTION).forEach(this::expand);
}
origin: owlcs/owlapi

@Override
public Collection<OWLAxiom> visit(OWLDisjointUnionAxiom axiom) {
  Set<OWLAxiom> axioms = new HashSet<>();
  axioms.addAll(df.getOWLEquivalentClassesAxiom(axiom.getOWLClass(),
    df.getOWLObjectUnionOf(axiom.classExpressions())).accept(this));
  axioms.addAll(df.getOWLDisjointClassesAxiom(axiom.classExpressions()).accept(this));
  return axioms;
}
origin: net.sourceforge.owlapi/owlapi-distribution

@Override
public Collection<OWLAxiom> visit(OWLDisjointUnionAxiom axiom) {
  Set<OWLAxiom> axioms = new HashSet<>();
  axioms.addAll(df.getOWLEquivalentClassesAxiom(axiom.getOWLClass(),
    df.getOWLObjectUnionOf(axiom.classExpressions())).accept(this));
  axioms.addAll(df.getOWLDisjointClassesAxiom(axiom.classExpressions()).accept(this));
  return axioms;
}
origin: net.sourceforge.owlapi/owlapi-osgidistribution

@Override
public Collection<OWLAxiom> visit(OWLDisjointUnionAxiom axiom) {
  Set<OWLAxiom> axioms = new HashSet<>();
  axioms.addAll(df.getOWLEquivalentClassesAxiom(axiom.getOWLClass(),
    df.getOWLObjectUnionOf(axiom.classExpressions())).accept(this));
  axioms.addAll(df.getOWLDisjointClassesAxiom(axiom.classExpressions()).accept(this));
  return axioms;
}
origin: net.sourceforge.owlapi/owlapi-osgidistribution

public MacroExpansions() {
  inputOntology.axioms(AxiomType.SUBCLASS_OF).forEach(axiom -> {
    OWLAxiom newAxiom = axiom.accept(visitor);
    replaceIfDifferent(axiom, newAxiom);
  });
  inputOntology.axioms(AxiomType.EQUIVALENT_CLASSES).forEach(axiom -> {
    OWLAxiom newAxiom = axiom.accept(visitor);
    replaceIfDifferent(axiom, newAxiom);
  });
  inputOntology.axioms(AxiomType.CLASS_ASSERTION).forEach(axiom -> {
    OWLAxiom newAxiom = axiom.accept(visitor);
    replaceIfDifferent(axiom, newAxiom);
  });
  add(rmAxioms,
    inputOntology.axioms(AxiomType.ANNOTATION_ASSERTION).filter(this::expand));
}
origin: owlcs/owlapi

public MacroExpansions() {
  inputOntology.axioms(AxiomType.SUBCLASS_OF).forEach(axiom -> {
    OWLAxiom newAxiom = axiom.accept(visitor);
    replaceIfDifferent(axiom, newAxiom);
  });
  inputOntology.axioms(AxiomType.EQUIVALENT_CLASSES).forEach(axiom -> {
    OWLAxiom newAxiom = axiom.accept(visitor);
    replaceIfDifferent(axiom, newAxiom);
  });
  inputOntology.axioms(AxiomType.CLASS_ASSERTION).forEach(axiom -> {
    OWLAxiom newAxiom = axiom.accept(visitor);
    replaceIfDifferent(axiom, newAxiom);
  });
  add(rmAxioms,
    inputOntology.axioms(AxiomType.ANNOTATION_ASSERTION).filter(this::expand));
}
origin: net.sourceforge.owlapi/owlapi-distribution

public MacroExpansions() {
  inputOntology.axioms(AxiomType.SUBCLASS_OF).forEach(axiom -> {
    OWLAxiom newAxiom = axiom.accept(visitor);
    replaceIfDifferent(axiom, newAxiom);
  });
  inputOntology.axioms(AxiomType.EQUIVALENT_CLASSES).forEach(axiom -> {
    OWLAxiom newAxiom = axiom.accept(visitor);
    replaceIfDifferent(axiom, newAxiom);
  });
  inputOntology.axioms(AxiomType.CLASS_ASSERTION).forEach(axiom -> {
    OWLAxiom newAxiom = axiom.accept(visitor);
    replaceIfDifferent(axiom, newAxiom);
  });
  add(rmAxioms,
    inputOntology.axioms(AxiomType.ANNOTATION_ASSERTION).filter(this::expand));
}
origin: net.sourceforge.owlapi/owlapi-oboformat

public MacroExpansions() {
  inputOntology.axioms(AxiomType.SUBCLASS_OF).forEach(axiom -> {
    OWLAxiom newAxiom = axiom.accept(visitor);
    replaceIfDifferent(axiom, newAxiom);
  });
  inputOntology.axioms(AxiomType.EQUIVALENT_CLASSES).forEach(axiom -> {
    OWLAxiom newAxiom = axiom.accept(visitor);
    replaceIfDifferent(axiom, newAxiom);
  });
  inputOntology.axioms(AxiomType.CLASS_ASSERTION).forEach(axiom -> {
    OWLAxiom newAxiom = axiom.accept(visitor);
    replaceIfDifferent(axiom, newAxiom);
  });
  add(rmAxioms,
    inputOntology.axioms(AxiomType.ANNOTATION_ASSERTION).filter(this::expand));
}
org.semanticweb.owlapi.modelOWLEquivalentClassesAxiomaccept

Popular methods of OWLEquivalentClassesAxiom

  • getClassExpressions
  • classExpressions
  • getClassExpressionsMinus
  • asOWLSubClassOfAxioms
  • 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

  • Reading from database using SQL prepared statement
  • getExternalFilesDir (Context)
  • setScale (BigDecimal)
    Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
  • addToBackStack (FragmentTransaction)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • InetAddress (java.net)
    This class represents an Internet Protocol (IP) address. An IP address is either a 32-bit or 128-bit
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
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