congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
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

  • Start an intent from android
  • setContentView (Activity)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getContentResolver (Context)
  • String (java.lang)
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • Top Sublime Text plugins
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