congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
OWLDataFactory.getOWLDataOneOf
Code IndexAdd Tabnine 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)

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

  • Reading from database using SQL prepared statement
  • getApplicationContext (Context)
  • getExternalFilesDir (Context)
  • scheduleAtFixedRate (Timer)
  • ObjectMapper (com.fasterxml.jackson.databind)
    ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • Top 17 Plugins for Android Studio
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