Tabnine Logo
OWLDataFactory.getOWLDataUnionOf
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: net.sourceforge.owlapi/owlapi-distribution

  @Override
  public OWLDataUnionOf buildObject() {
    return df.getOWLDataUnionOf(items);
  }
}
origin: net.sourceforge.owlapi/org.semanticweb.hermit

@Override
public OWLDataRange visit(OWLDataIntersectionOf range) {
  return m_factory.getOWLDataUnionOf(range.operands().map(ExpressionManager.this::getComplementNNF));
}
@Override
origin: owlcs/owlapi

@Override
public OWLDataRange visit(OWLDataOneOf node) {
  // Encode as a data union of and return result
  return df.getOWLDataUnionOf(node.values().map(df::getOWLDataOneOf)).accept(this);
}
origin: edu.stanford.protege/org.protege.owl.server

@Override
public Object read(OWLInputStream in) throws IOException {
  Set<OWLDataRange> operands = in.readSet(OWLDataRange.class);
  return in.getOWLDataFactory().getOWLDataUnionOf(operands);
}
origin: net.sourceforge.owlapi/owlapi-gwt-supersource

@Override
public OWLDataRange visit(OWLDataIntersectionOf node) {
  Set<OWLDataRange> ops = new HashSet<OWLDataRange>();
  for (OWLDataRange op : node.getOperands()) {
    ops.add(op.accept(this));
  }
  if (negated) {
    return dataFactory.getOWLDataUnionOf(ops);
  } else {
    return dataFactory.getOWLDataIntersectionOf(ops);
  }
}
origin: net.sourceforge.owlapi/oboformat-included-owlapi

public OWLDataRange visit(OWLDataOneOf node) {
  // Encode as a data union of and return result
  Set<OWLDataOneOf> oneOfs = new HashSet<OWLDataOneOf>();
  for (OWLLiteral lit : node.getValues()) {
    oneOfs.add(dataFactory.getOWLDataOneOf(lit));
  }
  return dataFactory.getOWLDataUnionOf(oneOfs).accept(this);
}
origin: com.github.ansell.owlapi/owlapi-parsers

  @Override
  protected void endDataRangeElement() throws OWLXMLParserException {
    setDataRange(getOWLDataFactory().getOWLDataUnionOf(dataRanges));
  }
}
origin: liveontologies/elk-reasoner

@Override
public OWLDataUnionOf visit(ElkDataUnionOf expression) {
  return owlFactory_
      .getOWLDataUnionOf(toDataRangeSet(expression.getDataRanges()));
}
origin: liveontologies/elk-reasoner

@Override
public OWLDataUnionOf visit(ElkDataUnionOf expression) {
  return owlFactory_
      .getOWLDataUnionOf(toDataRangeSet(expression.getDataRanges()));
}
origin: net.sourceforge.owlapi/owlapi-distribution

@Override
public OWLDataRange visit(OWLDataUnionOf node) {
  Stream<OWLDataRange> ops = node.operands().map(p -> p.accept(this));
  if (negated) {
    // Flip to an intersection
    return df.getOWLDataIntersectionOf(ops);
  }
  return df.getOWLDataUnionOf(ops);
}
origin: owlcs/owlapi

@Override
public OWLDataRange visit(OWLDataUnionOf node) {
  Stream<OWLDataRange> ops = node.operands().map(p -> p.accept(this));
  if (negated) {
    // Flip to an intersection
    return df.getOWLDataIntersectionOf(ops);
  }
  return df.getOWLDataUnionOf(ops);
}
origin: net.sourceforge.owlapi/owlapi-distribution

@Override
public OWLDataRange visit(OWLDataIntersectionOf node) {
  Stream<OWLDataRange> ops = node.operands().map(p -> p.accept(this));
  if (negated) {
    return df.getOWLDataUnionOf(ops);
  }
  return df.getOWLDataIntersectionOf(ops);
}
origin: net.sourceforge.owlapi/owlapi-distribution

@Override
public OWLDataRange visit(OWLDataUnionOf node) {
  List<OWLDataRange> ops = asList(node.operands().map(op -> op.accept(this)));
  return df.getOWLDataUnionOf(ops);
}
origin: net.sourceforge.owlapi/owlapi-osgidistribution

@Override
public OWLDataRange visit(OWLDataUnionOf node) {
  Stream<OWLDataRange> ops = node.operands().map(p -> p.accept(this));
  if (negated) {
    // Flip to an intersection
    return df.getOWLDataIntersectionOf(ops);
  }
  return df.getOWLDataUnionOf(ops);
}
origin: net.sourceforge.owlapi/owlapi-osgidistribution

@Override
public OWLDataRange visit(OWLDataUnionOf node) {
  List<OWLDataRange> ops = asList(node.operands().map(op -> op.accept(this)));
  return df.getOWLDataUnionOf(ops);
}
origin: net.sourceforge.owlapi/owlapi-distribution

@Override
public OWLDataRange visit(OWLDataOneOf node) {
  if (node.values().count() == 1) {
    if (negated) {
      return df.getOWLDataComplementOf(node);
    }
    return node;
  }
  return df.getOWLDataUnionOf(node.values().map(df::getOWLDataOneOf)).accept(this);
}
origin: net.sourceforge.owlapi/owlapi-osgidistribution

@Override
public OWLDataRange visit(OWLDataOneOf node) {
  if (node.values().count() == 1) {
    if (negated) {
      return df.getOWLDataComplementOf(node);
    }
    return node;
  }
  return df.getOWLDataUnionOf(node.values().map(df::getOWLDataOneOf)).accept(this);
}
origin: owlcs/owlapi

@Override
public OWLDataRange visit(OWLDataOneOf node) {
  if (node.values().count() == 1) {
    if (negated) {
      return df.getOWLDataComplementOf(node);
    }
    return node;
  }
  return df.getOWLDataUnionOf(node.values().map(df::getOWLDataOneOf)).accept(this);
}
origin: com.github.galigator.openllet/openllet-owlapi

@Override
public void visitOr(final ATermAppl term)
{
  visitList((ATermList) term.getArgument(0));
  if (_obj instanceof OWLClassExpression)
    _obj = _factory.getOWLObjectUnionOf(dynamicCastTheSet(_set, OWLClassExpression.class));
  else
    if (_obj instanceof OWLDataRange)
      _obj = _factory.getOWLDataUnionOf(dynamicCastTheSet(_set, OWLDataRange.class));
}
origin: Galigator/openllet

@Override
public void visitOr(final ATermAppl term)
{
  visitList((ATermList) term.getArgument(0));
  if (_obj instanceof OWLClassExpression)
    _obj = _factory.getOWLObjectUnionOf(dynamicCastTheSet(_set, OWLClassExpression.class));
  else
    if (_obj instanceof OWLDataRange)
      _obj = _factory.getOWLDataUnionOf(dynamicCastTheSet(_set, OWLDataRange.class));
}
org.semanticweb.owlapi.modelOWLDataFactorygetOWLDataUnionOf

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
  • setRequestProperty (URLConnection)
  • scheduleAtFixedRate (Timer)
  • compareTo (BigDecimal)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • JPanel (javax.swing)
  • Option (scala)
  • Best IntelliJ 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