Codota Logo
OWLDataFactory.getOWLDataOneOf
Code IndexAdd Codota to your IDE (free)

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

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

  • 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 OWLDataOneOf buildObject() {
    return df.getOWLDataOneOf(items);
  }
}
origin: net.sourceforge.owlapi/owlapi-osgidistribution

  @Override
  public OWLDataOneOf buildObject() {
    return df.getOWLDataOneOf(items);
  }
}
origin: net.sourceforge.owlapi/owlapi-distribution

  @Override
  public OWLDataOneOf buildObject() {
    return df.getOWLDataOneOf(items);
  }
}
origin: net.sourceforge.owlapi/owlapi-fixers

  @Override
  public OWLDataOneOf buildObject() {
    return df.getOWLDataOneOf(items);
  }
}
origin: SmartDataAnalytics/DL-Learner

@Override
public void visit(OWLDataOneOf desc) {
  Set<OWLLiteral> literals = desc.getValues();
  Set<OWLLiteral> renamedLiterals = new TreeSet<>();
  for (OWLLiteral lit : literals) {
    renamedLiterals.add(rename(lit));
  }
  renamedOWLObject = df.getOWLDataOneOf(renamedLiterals);
}
origin: edu.stanford.protege/org.protege.owl.server

@Override
public Object read(OWLInputStream in) throws IOException {
  Set<OWLLiteral> values = in.readSet(OWLLiteral.class);
  return in.getOWLDataFactory().getOWLDataOneOf(values);
}
origin: net.sourceforge.owlapi/owlapi

private OWLDataOneOf process(OWLDataPropertyExpression prop, OWLDataOneOf oneOf) {
  Set<OWLLiteral> vals = new HashSet<OWLLiteral>();
  for (OWLLiteral con : oneOf.getValues()) {
    vals.add(process(prop, con));
  }
  return getDataFactory().getOWLDataOneOf(vals);
}
origin: net.sourceforge.owlapi/org.semanticweb.hermit

protected void axiomatizeTopDataProperty(OWLAxioms axioms) {
  OWLDatatype anonymousConstantsDatatype=m_factory.getOWLDatatype(IRI.create("internal:anonymous-constants"));
  OWLLiteral newConstant=m_factory.getOWLLiteral("internal:constant",anonymousConstantsDatatype);
  OWLDataOneOf oneOfNewConstant=m_factory.getOWLDataOneOf(newConstant);
  OWLDataSomeValuesFrom hasTopNewConstant=m_factory.getOWLDataSomeValuesFrom(m_topDataProperty,oneOfNewConstant);
  axioms.m_conceptInclusions.add(Arrays.asList(hasTopNewConstant));
}
protected void axiomatizeBottomDataProperty(OWLAxioms axioms) {
origin: SmartDataAnalytics/DL-Learner

private OWLDataRange asDataOneOf(OWLDataFactory df, Set<Literal> literals){
  //return Boolean datatype because it doesn't make sense to return a enumeration of Boolean values
  if(getOWLDatatype(df, literals).equals(df.getBooleanOWLDatatype())){
    return df.getBooleanOWLDatatype();
  }
  return df.getOWLDataOneOf(asOWLLiterals(df, literals));
}

origin: SmartDataAnalytics/DL-Learner

private OWLDataRange asDataOneOf(OWLDataFactory df, Set<Literal> literals){
  //return Boolean datatype because it doesn't make sense to return a enumeration of Boolean values
  if(getOWLDatatype(df, literals).equals(df.getBooleanOWLDatatype())){
    return df.getBooleanOWLDatatype();
  }
  return df.getOWLDataOneOf(asOWLLiterals(df, literals));
}

origin: net.sourceforge.owlapi/org.semanticweb.hermit

@Override
public OWLClassExpression visit(OWLDataHasValue d) {
  OWLDataOneOf nominal=m_factory.getOWLDataOneOf(d.getFiller());
  return m_factory.getOWLDataSomeValuesFrom(d.getProperty(),nominal);
}
@Override
origin: com.github.ansell.owlapi/owlapi-parsers

  @Override
  protected void endDataRangeElement() throws OWLXMLParserException {
    if (constants.isEmpty()) {
      throw new OWLXMLParserElementNotFoundException(getLineNumber(), getColumnNumber(), "data oneOf element");
    }
    setDataRange(getOWLDataFactory().getOWLDataOneOf(constants));
  }
}
origin: net.sourceforge.owlapi/owlapi

  protected void endDataRangeElement() throws OWLXMLParserException {
    if (constants.isEmpty()) {
      throw new OWLXMLParserElementNotFoundException(getLineNumber(), getColumnNumber(), "data oneOf element");
    }
    setDataRange(getOWLDataFactory().getOWLDataOneOf(constants));
  }
}
origin: com.github.ansell.pellet/pellet-owlapiv3

public void visitValue(ATermAppl term) {
  ATermAppl nominal = (ATermAppl) term.getArgument(0);
  if (ATermUtils.isLiteral(nominal)) {
    visitLiteral(nominal);
    obj = factory.getOWLDataOneOf((OWLLiteral) obj);
  }
  else {
    obj = factory.getOWLObjectOneOf(convertIndividual(nominal));
  }
}
origin: com.github.galigator.openllet/openllet-owlapi

@Override
public void visitValue(final ATermAppl term)
{
  final ATermAppl nominal = (ATermAppl) term.getArgument(0);
  if (ATermUtils.isLiteral(nominal))
  {
    visitLiteral(nominal);
    _obj = _factory.getOWLDataOneOf((OWLLiteral) _obj);
  }
  else
    _obj = _factory.getOWLObjectOneOf(convertIndividual(nominal));
}
origin: net.sourceforge.owlapi/pellet-owlapi-ignazio1977

@Override
public void visitValue(ATermAppl term) {
  ATermAppl nominal = (ATermAppl) term.getArgument(0);
  if (ATermUtils.isLiteral(nominal)) {
    visitLiteral(nominal);
    obj = factory.getOWLDataOneOf((OWLLiteral) obj);
  }
  else {
    obj = factory.getOWLObjectOneOf(convertIndividual(nominal));
  }
}
origin: owlcs/owlapi

@Override
public Collection<OWLAxiom> visit(OWLNegativeDataPropertyAssertionAxiom axiom) {
  return subClassOf(df.getOWLObjectOneOf(axiom.getSubject()),
    df.getOWLDataAllValuesFrom(axiom.getProperty(),
      df.getOWLDataComplementOf(df.getOWLDataOneOf(axiom.getObject()))));
}
origin: net.sourceforge.owlapi/owlapi-osgidistribution

@Override
public Collection<OWLAxiom> visit(OWLNegativeDataPropertyAssertionAxiom axiom) {
  return subClassOf(df.getOWLObjectOneOf(axiom.getSubject()),
    df.getOWLDataAllValuesFrom(axiom.getProperty(),
      df.getOWLDataComplementOf(df.getOWLDataOneOf(axiom.getObject()))));
}
origin: net.sourceforge.owlapi/owlapi-distribution

@Override
public Collection<OWLAxiom> visit(OWLNegativeDataPropertyAssertionAxiom axiom) {
  return subClassOf(df.getOWLObjectOneOf(axiom.getSubject()),
    df.getOWLDataAllValuesFrom(axiom.getProperty(),
      df.getOWLDataComplementOf(df.getOWLDataOneOf(axiom.getObject()))));
}
origin: net.sourceforge.owlapi/owlapi

public Set<OWLAxiom> visit(OWLNegativeDataPropertyAssertionAxiom axiom) {
  return subClassOf(df.getOWLObjectOneOf(axiom.getSubject()),
      df.getOWLDataAllValuesFrom(axiom.getProperty(),
          df.getOWLDataComplementOf(df.getOWLDataOneOf(axiom.getObject()))));
}
org.semanticweb.owlapi.modelOWLDataFactorygetOWLDataOneOf

Javadoc

Gets an OWLDataOneOf (see spec)

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
  • scheduleAtFixedRate (ScheduledExecutorService)
  • setScale (BigDecimal)
    Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
  • orElseThrow (Optional)
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • Collectors (java.util.stream)
  • JList (javax.swing)
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
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