Codota Logo
OWLDataFactory.getOWLObjectUnionOf
Code IndexAdd Codota 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)

  • Common ways to obtain OWLDataFactory
private void myMethod () {
OWLDataFactory o =
  • Codota IconOWLOntologyManager manager;manager.getOWLDataFactory()
  • Codota IconOWLOntology ontology;ontology.getOWLOntologyManager().getOWLDataFactory()
  • Codota IconOWLManager.getOWLDataFactory()
  • Smart code suggestions by Codota
}
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

  • Creating JSON documents from java classes using gson
  • compareTo (BigDecimal)
  • addToBackStack (FragmentTransaction)
  • requestLocationUpdates (LocationManager)
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • JComboBox (javax.swing)
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