Tabnine Logo
OWLEquivalentClassesAxiom.accept
Code IndexAdd Tabnine 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)

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

  • Making http post requests using okhttp
  • requestLocationUpdates (LocationManager)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • compareTo (BigDecimal)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • Color (java.awt)
    The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
  • Menu (java.awt)
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • 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