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

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

Best Java code snippets using org.semanticweb.owlapi.model.OWLDataFactory.getOWLDataHasValue (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: net.sourceforge.owlapi/owlexplanation

@Override
public OWLClassExpression visit(OWLSubDataPropertyOfAxiom ax) {
  OWLLiteral c = df.getOWLLiteral("x");
  OWLClassExpression subHasValue = df.getOWLDataHasValue(ax.getSubProperty(), c);
  OWLClassExpression supHasValue = df.getOWLDataHasValue(ax.getSuperProperty(), c);
  return df.getOWLObjectIntersectionOf(subHasValue, df.getOWLObjectComplementOf(supHasValue));
}
origin: owlcs/owlapi

  @Override
  public OWLClassExpression visit(OWLNegativeDataPropertyAssertionAxiom ax) {
    return df
      .getOWLObjectComplementOf(df.getOWLDataHasValue(ax.getProperty(), ax.getObject()));
  }
}
origin: net.sourceforge.owlapi/owlapi-distribution

  @Override
  public OWLClassExpression visit(OWLNegativeDataPropertyAssertionAxiom ax) {
    return df
      .getOWLObjectComplementOf(df.getOWLDataHasValue(ax.getProperty(), ax.getObject()));
  }
}
origin: com.github.ansell.owlapi/owlapi-parsers

  @Override
  protected OWLClassExpression createRestriction() {
    return getOWLDataFactory().getOWLDataHasValue(getProperty(), getFiller());
  }
}
origin: net.sourceforge.owlapi/owlapi-tools

  @Override
  public OWLClassExpression visit(OWLNegativeDataPropertyAssertionAxiom ax) {
    return df
      .getOWLObjectComplementOf(df.getOWLDataHasValue(ax.getProperty(), ax.getObject()));
  }
}
origin: net.sourceforge.owlapi/owlapi-osgidistribution

  @Override
  public OWLClassExpression visit(OWLNegativeDataPropertyAssertionAxiom ax) {
    return df
      .getOWLObjectComplementOf(df.getOWLDataHasValue(ax.getProperty(), ax.getObject()));
  }
}
origin: net.sourceforge.owlapi/owlapi

  protected OWLClassExpression translateRestriction(IRI mainNode) {
    OWLLiteral con = getLiteralObject(mainNode, OWLRDFVocabulary.OWL_HAS_VALUE.getIRI(), true);
    return getDataFactory().getOWLDataHasValue(translateOnProperty(mainNode), con);
  }
}
origin: owlcs/owlapi

@Override
public OWLDataHasValue visit(OWLDataHasValue ce) {
  return df
    .getOWLDataHasValue(ce.getProperty(), process(ce.getProperty(), ce.getFiller()));
}
origin: SmartDataAnalytics/DL-Learner

@Override
public void visit(OWLDataHasValue desc) {
  OWLDataPropertyExpression property = desc.getProperty();
  property = rename(property);
  OWLLiteral value = desc.getFiller();
  value = rename(value);
  renamedOWLObject = df.getOWLDataHasValue(property, value);
}
origin: owlcs/owlapi

 final public OWLClassExpression DataHasValue() throws ParseException {OWLDataPropertyExpression prop = null;
  OWLLiteral literal = null;
  jj_consume_token(DATAHASVALUE);
  jj_consume_token(OPENPAR);
  prop = DataPropertyExpression();
  literal = Literal();
  jj_consume_token(CLOSEPAR);
return df.getOWLDataHasValue(prop, literal);
}

origin: net.sourceforge.owlapi/owlapi-osgidistribution

 final public OWLClassExpression DataHasValue() throws ParseException {OWLDataPropertyExpression prop = null;
  OWLLiteral literal = null;
  jj_consume_token(DATAHASVALUE);
  jj_consume_token(OPENPAR);
  prop = DataPropertyExpression();
  literal = Literal();
  jj_consume_token(CLOSEPAR);
return df.getOWLDataHasValue(prop, literal);
}

origin: net.sourceforge.owlapi/owlapi-distribution

@Override
public OWLClassExpression visit(OWLDataPropertyAssertionAxiom axiom) {
  OWLClassExpression sub = oneOf(axiom.getSubject());
  OWLClassExpression sup = factory.getOWLDataHasValue(axiom.getProperty(), axiom.getObject());
  OWLSubClassOfAxiom ax = factory.getOWLSubClassOfAxiom(sub, sup);
  return ax.accept(this);
}
origin: net.sourceforge.owlapi/owlapi-tools

@Override
public OWLClassExpression visit(OWLDataPropertyAssertionAxiom axiom) {
  OWLClassExpression sub = oneOf(axiom.getSubject());
  OWLClassExpression sup = factory.getOWLDataHasValue(axiom.getProperty(), axiom.getObject());
  OWLSubClassOfAxiom ax = factory.getOWLSubClassOfAxiom(sub, sup);
  return ax.accept(this);
}
origin: net.sourceforge.owlapi/owlexplanation

@Override
public OWLClassExpression visit(OWLDataPropertyAssertionAxiom ax) {
  OWLClassExpression nom = df.getOWLObjectOneOf(ax.getSubject());
  OWLClassExpression hasVal = df.getOWLDataHasValue(ax.getProperty(), ax.getObject());
  return df.getOWLObjectIntersectionOf(nom, df.getOWLObjectComplementOf(hasVal));
}
origin: owlcs/owlapi

@Override
public OWLClassExpression visit(OWLDataPropertyAssertionAxiom axiom) {
  OWLClassExpression sub = oneOf(axiom.getSubject());
  OWLClassExpression sup = factory.getOWLDataHasValue(axiom.getProperty(), axiom.getObject());
  OWLSubClassOfAxiom ax = factory.getOWLSubClassOfAxiom(sub, sup);
  return ax.accept(this);
}
origin: com.hermit-reasoner/org.semanticweb.hermit

public Boolean visit(OWLNegativeDataPropertyAssertionAxiom axiom) {
  // see OWL 2 Syntax, Sec 11.2
  // No axiom in Ax of the following form contains anonymous individuals:
  // SameIndividual, DifferentIndividuals, NegativeObjectPropertyAssertion, and NegativeDataPropertyAssertion.
  if (axiom.getSubject().isAnonymous()) {
    throw new IllegalArgumentException("NegativeDataPropertyAssertion axioms are not allowed to be used "+"with anonymous individuals (see OWL 2 Syntax Sec 11.2) and the subject "+axiom.getSubject()+" of the axiom "+axiom+" is anonymous. ");
  }
  OWLClassExpression hasValue=factory.getOWLDataHasValue(axiom.getProperty(),axiom.getObject());
  OWLClassExpression doesNotHaveValue=factory.getOWLObjectComplementOf(hasValue);
  return reasoner.hasType(axiom.getSubject().asOWLNamedIndividual(),doesNotHaveValue,false);
}
origin: net.sourceforge.owlapi/owlapi-distribution

@Override
public OWLClassExpression visit(OWLNegativeDataPropertyAssertionAxiom axiom) {
  OWLClassExpression sub = oneOf(axiom.getSubject());
  OWLClassExpression sup = factory.getOWLDataHasValue(axiom.getProperty(), axiom.getObject());
  return factory.getOWLSubClassOfAxiom(sub, not(sup)).accept(this);
}
origin: net.sourceforge.owlapi/owlapi

public OWLSubClassOfAxiom asOWLSubClassOfAxiom() {
  OWLDataFactory df = getOWLDataFactory();
  return df.getOWLSubClassOfAxiom(
      df.getOWLObjectOneOf(getSubject()),
      df.getOWLObjectComplementOf(
          df.getOWLDataHasValue(getProperty(), getObject())
      )
  );
}
origin: owlcs/owlapi

@Override
public OWLClassExpression visit(OWLNegativeDataPropertyAssertionAxiom axiom) {
  OWLClassExpression sub = oneOf(axiom.getSubject());
  OWLClassExpression sup = factory.getOWLDataHasValue(axiom.getProperty(), axiom.getObject());
  return factory.getOWLSubClassOfAxiom(sub, not(sup)).accept(this);
}
origin: owlcs/owlapi

  @Override
  public OWLDataHasValue translate(IRI mainNode) {
    getConsumer().consumeTriple(mainNode, RDF_TYPE.getIRI(), OWL_RESTRICTION.getIRI());
    OWLLiteral lit = getConsumer().getLiteralObject(mainNode, OWL_HAS_VALUE, true);
    IRI propertyIRI = getConsumer().getResourceObject(mainNode, OWL_ON_PROPERTY, true);
    OWLDataPropertyExpression property = getConsumer()
      .translateDataPropertyExpression(verifyNotNull(propertyIRI));
    return getDataFactory().getOWLDataHasValue(property, verifyNotNull(lit));
  }
}
org.semanticweb.owlapi.modelOWLDataFactorygetOWLDataHasValue

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
  • startActivity (Activity)
  • setRequestProperty (URLConnection)
  • onCreateOptionsMenu (Activity)
  • Path (java.nio.file)
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • JComboBox (javax.swing)
  • Runner (org.openjdk.jmh.runner)
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