congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
OWLDataFactory.getOWLObjectUnionOf
Code IndexAdd Tabnine to your IDE (free)

How to use
getOWLObjectUnionOf
method
in
org.semanticweb.owlapi.model.OWLDataFactory

Best Java code snippets using org.semanticweb.owlapi.model.OWLDataFactory.getOWLObjectUnionOf (Showing top 20 results out of 333)

origin: owlcs/owlapi

  @Override
  public OWLObjectUnionOf buildObject() {
    return df.getOWLObjectUnionOf(items);
  }
}
origin: protegeproject/protege

public OWLClassExpression getCoveringAxiom() {
  if (operands.isEmpty()) {
    return null;
  }
  return owlDataFactory.getOWLObjectUnionOf(operands);
}
origin: owlcs/owlapi

  @Override
  protected OWLClassExpression translateEquivalentClass(IRI mainNode) {
    return df.getOWLObjectUnionOf(
      consumer.translatorAccessor.translateToClassExpressionSet(mainNode));
  }
}
origin: com.github.ansell.owlapi/owlapi-parsers

  @Override
  protected OWLClassExpression createClassExpression(Set<OWLClassExpression> operands) {
    return getOWLDataFactory().getOWLObjectUnionOf(operands);
  }
}
origin: owlcs/owlapi

private void createUnionEquivalentClass() {
  OWLClassExpression equivalentClass;
  if (unionOfOperands.size() == 1) {
    equivalentClass = unionOfOperands.iterator().next();
  } else {
    equivalentClass = getDataFactory().getOWLObjectUnionOf(unionOfOperands);
  }
  createEquivalentClass(equivalentClass);
}
origin: owlcs/owlapi

@Override
public OWLClassExpression visit(OWLObjectUnionOf ce) {
  Set<OWLClassExpression> descs = new HashSet<>();
  ce.operands().forEach(op -> visitOperand(descs, op));
  return ldf.getOWLObjectUnionOf(descs);
}
origin: net.sourceforge.owlapi/owlapi-osgidistribution

@Override
public OWLClassExpression visit(OWLObjectUnionOf ce) {
  Set<OWLClassExpression> descs = new HashSet<>();
  ce.operands().forEach(op -> visitOperand(descs, op));
  return ldf.getOWLObjectUnionOf(descs);
}
origin: net.sourceforge.owlapi/owlapi

public OWLClassExpression visit(OWLObjectIntersectionOf desc) {
  Set<OWLClassExpression> ops = new HashSet<OWLClassExpression>();
  for (OWLClassExpression op : desc.getOperands()) {
    ops.add(op.accept(this));
  }
  if (negated) {
    return dataFactory.getOWLObjectUnionOf(ops);
  } else {
    return dataFactory.getOWLObjectIntersectionOf(ops);
  }
}
origin: owlcs/owlapi

@Override
public OWLClassExpression visit(OWLObjectUnionOf ce) {
  Stream<OWLClassExpression> ops = ce.operands().map(p -> p.accept(this));
  if (negated) {
    // Flip to an intersection
    return df.getOWLObjectIntersectionOf(ops);
  }
  return df.getOWLObjectUnionOf(ops);
}
origin: owlcs/owlapi

@Override
public OWLClassExpression visit(OWLObjectIntersectionOf ce) {
  Stream<OWLClassExpression> ops = ce.operands().map(p -> p.accept(this));
  if (negated) {
    return df.getOWLObjectUnionOf(ops);
  }
  return df.getOWLObjectIntersectionOf(ops);
}
origin: net.sourceforge.owlapi/owlapi

final public OWLClassExpression Or() throws ParseException {
 Set<OWLClassExpression> operands;
 jj_consume_token(OPENPAR);
 jj_consume_token(OR);
 operands = ConceptSet();
 jj_consume_token(CLOSEPAR);
   {if (true) return dataFactory.getOWLObjectUnionOf(operands);}
 throw new Error("Missing return statement in function");
}
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-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: owlcs/owlapi

 final public OWLClassExpression Or() throws ParseException, KRSS2OWLParserException {Set<OWLClassExpression> operands;
  jj_consume_token(OPENPAR);
  jj_consume_token(OR);
  operands = ConceptSet();
  jj_consume_token(CLOSEPAR);
return df.getOWLObjectUnionOf(operands);
}

origin: net.sourceforge.owlapi/owlapi

final public OWLClassExpression ObjectUnionOf() throws ParseException {
 Set<OWLClassExpression> classExpressions;
 jj_consume_token(OBJECTUNIONOF);
 jj_consume_token(OPENPAR);
 classExpressions = ClassExpressionSet();
 jj_consume_token(CLOSEPAR);
   {if (true) return dataFactory.getOWLObjectUnionOf(classExpressions);}
 throw new Error("Missing return statement in function");
}
origin: owlcs/owlapi

  @Override
  public OWLObjectUnionOf translate(IRI mainNode) {
    IRI listNode = getConsumer().getResourceObject(mainNode, OWL_UNION_OF, true);
    Set<OWLClassExpression> classExpressions = accessor
      .translateToClassExpressionSet(verifyNotNull(listNode));
    return getDataFactory().getOWLObjectUnionOf(classExpressions);
  }
}
origin: net.sourceforge.owlapi/owlapi-parsers

  @Override
  public OWLObjectUnionOf translate(IRI mainNode) {
    IRI listNode = getConsumer().getResourceObject(mainNode, OWL_UNION_OF, true);
    Set<OWLClassExpression> classExpressions = accessor
      .translateToClassExpressionSet(verifyNotNull(listNode));
    return getDataFactory().getOWLObjectUnionOf(classExpressions);
  }
}
origin: protegeproject/protege

public void actionPerformed(ActionEvent e) {
  OWLClass cls = getOWLWorkspace().getOWLSelectionModel().getLastSelectedClass();
  // TODO: Push into OWLAPI
  Set<OWLClass> subClses = getOWLModelManager().getOWLHierarchyManager().getOWLClassHierarchyProvider().getChildren(cls);
  OWLClassExpression coveringDesc = getOWLDataFactory().getOWLObjectUnionOf(subClses);
  OWLSubClassOfAxiom ax = getOWLDataFactory().getOWLSubClassOfAxiom(cls, coveringDesc);
  getOWLModelManager().applyChange(new AddAxiom(getOWLModelManager().getActiveOntology(), ax));
}
origin: edu.stanford.protege/protege-editor-owl

public void actionPerformed(ActionEvent e) {
  OWLClass cls = getOWLWorkspace().getOWLSelectionModel().getLastSelectedClass();
  // TODO: Push into OWLAPI
  Set<OWLClass> subClses = getOWLModelManager().getOWLHierarchyManager().getOWLClassHierarchyProvider().getChildren(cls);
  OWLClassExpression coveringDesc = getOWLDataFactory().getOWLObjectUnionOf(subClses);
  OWLSubClassOfAxiom ax = getOWLDataFactory().getOWLSubClassOfAxiom(cls, coveringDesc);
  getOWLModelManager().applyChange(new AddAxiom(getOWLModelManager().getActiveOntology(), ax));
}
origin: org.protege/protege-editor-owl

public void actionPerformed(ActionEvent e) {
  OWLClass cls = getOWLWorkspace().getOWLSelectionModel().getLastSelectedClass();
  // TODO: Push into OWLAPI
  Set<OWLClass> subClses = getOWLModelManager().getOWLHierarchyManager().getOWLClassHierarchyProvider().getChildren(cls);
  OWLClassExpression coveringDesc = getOWLDataFactory().getOWLObjectUnionOf(subClses);
  OWLSubClassOfAxiom ax = getOWLDataFactory().getOWLSubClassOfAxiom(cls, coveringDesc);
  getOWLModelManager().applyChange(new AddAxiom(getOWLModelManager().getActiveOntology(), ax));
}
org.semanticweb.owlapi.modelOWLDataFactorygetOWLObjectUnionOf

Popular methods of OWLDataFactory

  • getOWLClass
    Gets an OWL class that has the specified IRI
  • getOWLNamedIndividual
    Gets an OWL individual that has the specified IRI
  • getOWLObjectProperty
    Gets an OWL object property that has the specified IRI
  • getOWLSubClassOfAxiom
  • getOWLClassAssertionAxiom
  • getOWLDataProperty
    Gets an OWL data property that has the specified IRI
  • getOWLThing
    Gets the built in owl:Thing class, which has a URI of
  • getOWLAnnotationProperty
    Gets an OWLAnnotationProperty that has the specified IRI
  • getOWLLiteral
    Convenience method that obtains a literal typed as a boolean.
  • getOWLDeclarationAxiom
    Gets a declaration with zero or more annotations for an entity
  • getOWLObjectIntersectionOf
  • getOWLEquivalentClassesAxiom
  • getOWLObjectIntersectionOf,
  • getOWLEquivalentClassesAxiom,
  • getOWLObjectSomeValuesFrom,
  • getOWLNothing,
  • getOWLObjectComplementOf,
  • getOWLObjectPropertyAssertionAxiom,
  • getOWLAnnotationAssertionAxiom,
  • getOWLDataPropertyAssertionAxiom,
  • getOWLDatatype,
  • getOWLAnnotation

Popular in Java

  • Parsing JSON documents to java classes using gson
  • setScale (BigDecimal)
  • getExternalFilesDir (Context)
  • getContentResolver (Context)
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • Option (scala)
  • 21 Best IntelliJ Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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