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

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

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

origin: net.sourceforge.owlapi/owlapi-distribution

public static OWLDataPropertyAssertionAxiom DataPropertyAssertion(
  OWLDataPropertyExpression property,
  OWLIndividual source, OWLLiteral target) {
  return DF.getOWLDataPropertyAssertionAxiom(property, source, target);
}
origin: owlcs/owlapi

public static OWLDataPropertyAssertionAxiom DataPropertyAssertion(
  OWLDataPropertyExpression property,
  OWLIndividual source, OWLLiteral target, Collection<OWLAnnotation> a) {
  return DF.getOWLDataPropertyAssertionAxiom(property, source, target, a);
}
origin: com.github.galigator.openllet/openllet-owlapi

/**
 * remove axiom from the ontology
 *
 * @param property that carry the data
 * @param subject is the root of the property
 * @param literal is the target of the property
 * @since 2.5.1
 */
default public void removeDataPropertyAxiom(final OWLDataProperty property, final OWLIndividual subject, final OWLLiteral literal)
{
  removeAxiom(getFactory().getOWLDataPropertyAssertionAxiom(property, subject, literal));
}
origin: Galigator/openllet

/**
 * Remove all the value of an data property that are related to an individual. This function is slow and should be optmized.
 *
 * @param property to remove
 * @param subject to consider.
 * @since 2.5.1
 */
default public void removeDataPropertyAxiom(final OWLDataProperty property, final OWLNamedIndividual subject)
{
  removeAxioms(getValues(subject, property).stream().map(value -> getFactory().getOWLDataPropertyAssertionAxiom(property, subject, value)));
}
origin: Galigator/openllet

/**
 * remove axiom from the ontology
 *
 * @param property that carry the data
 * @param subject is the root of the property
 * @param literal is the target of the property
 * @since 2.5.1
 */
default public void removeDataPropertyAxiom(final OWLDataProperty property, final OWLIndividual subject, final OWLLiteral literal)
{
  removeAxiom(getFactory().getOWLDataPropertyAssertionAxiom(property, subject, literal));
}
origin: Galigator/openllet

/**
 * Remove all the value of an data property that are related to an individual. This function is slow and should be optmized.
 *
 * @param property to remove
 * @param subject to consider.
 * @since 2.5.1
 */
default public void removeDataPropertyAxiom(final OWLDataProperty property, final OWLNamedIndividual subject)
{
  removeAxioms(getValues(subject, property).stream().map(value -> getFactory().getOWLDataPropertyAssertionAxiom(property, subject, value)));
}
origin: edu.stanford.protege/org.protege.editor.owl.codegeneration

public void addPropertyValue(OWLNamedIndividual i, OWLDataProperty p, Object o) {
  OWLLiteral literal = getLiteralFromObject(owlDataFactory, o);
  if (literal != null) {
    OWLAxiom axiom = owlDataFactory.getOWLDataPropertyAssertionAxiom(p, i, literal);
    manager.addAxiom(owlOntology, axiom);
  }
  else {
    throw new CodeGenerationRuntimeException("Invalid type for property value object " + o);
  }
}
origin: owlcs/owlapi

@Override
public OWLDataPropertyAssertionAxiom buildObject() {
  return df.getOWLDataPropertyAssertionAxiom(getProperty(), getSubject(), getLiteral(),
    annotations);
}
origin: protegeproject/protege

protected OWLDataPropertyAssertionAxiom createAxiom(OWLDataPropertyConstantPair editedObject) {
  return getOWLDataFactory().getOWLDataPropertyAssertionAxiom(editedObject.getProperty(),
                                getRootObject(),
                                editedObject.getConstant());
}
origin: protegeproject/protege

protected OWLDataPropertyAssertionAxiom createAxiom(OWLDataPropertyConstantPair object) {
  return getOWLDataFactory().getOWLDataPropertyAssertionAxiom(object.getProperty(),
                                getRootObject(),
                                object.getConstant());
}
origin: net.sourceforge.owlapi/owlapi-distribution

  @Override
  public void handleTriple(IRI s, IRI p, OWLLiteral o) {
    add(df.getOWLDataPropertyAssertionAxiom(dp(p), ind(s), o, anns()));
    consume(s, p, o);
  }
}
origin: owlcs/owlapi

@Override
public OWLDataPropertyAssertionAxiom visit(OWLDataPropertyAssertionAxiom axiom) {
  return df.getOWLDataPropertyAssertionAxiom(axiom.getProperty(), axiom.getSubject(),
    process(axiom
      .getProperty(), axiom.getObject()));
}
origin: net.sourceforge.owlapi/owlapi-distribution

@Override
public OWLDataPropertyAssertionAxiom visit(OWLDataPropertyAssertionAxiom axiom) {
  return df.getOWLDataPropertyAssertionAxiom(axiom.getProperty(), axiom.getSubject(),
    process(axiom
      .getProperty(), axiom.getObject()));
}
origin: net.sourceforge.owlapi/owlapi

public void visit(OWLDataPropertyAssertionAxiom axiom) {
  axiom.getSubject().accept(this);
  OWLIndividual subj = (OWLIndividual) obj;
  axiom.getProperty().accept(this);
  OWLDataPropertyExpression prop = (OWLDataPropertyExpression) obj;
  axiom.getObject().accept(this);
  OWLLiteral con = (OWLLiteral) obj;
  obj = dataFactory.getOWLDataPropertyAssertionAxiom(prop, subj, con, duplicateAxiomAnnotations(axiom));
}
origin: owlcs/owlapi

@Override
public void visit(OWLDataPropertyAssertionAxiom ax) {
  obj = df.getOWLDataPropertyAssertionAxiom(dup(ax.getProperty()), dup(ax.getSubject()),
    dup(ax.getObject()),
    anns(ax));
}
origin: owlcs/owlapi

@Override
public OWLDataPropertyAssertionAxiom visit(OWLDataPropertyAssertionAxiom axiom) {
  return df
    .getOWLDataPropertyAssertionAxiom(get(axiom.getProperty()), get(axiom.getSubject()),
      get(axiom
        .getObject()), anns(axiom));
}
origin: owlcs/owlapi

@Override
public OWLDataPropertyAssertionAxiom visit(OWLDataPropertyAssertionAxiom ax) {
  return df.getOWLDataPropertyAssertionAxiom(t(ax.getProperty()), t(ax.getSubject()),
          t(ax.getObject()), a(ax));
}
origin: net.sourceforge.owlapi/owlapi-distribution

@Override
public OWLDataPropertyAssertionAxiom visit(OWLDataPropertyAssertionAxiom axiom) {
  return df
    .getOWLDataPropertyAssertionAxiom(get(axiom.getProperty()), get(axiom.getSubject()),
      get(axiom
        .getObject()), anns(axiom));
}
origin: owlcs/owlapi

@Override
public Object visit(OWLDataPropertyAssertionAxiom axiom) {
  return visitAxiom(axiom,
    () -> df.getOWLDataPropertyAssertionAxiom(t(axiom.getProperty()), t(axiom
      .getSubject()), t(axiom.getObject()), t(axiom.annotations())));
}
origin: com.hermit-reasoner/org.semanticweb.hermit

public void visit(SWRLDataPropertyAtom atom) {
  if (!(atom.getSecondArgument() instanceof SWRLLiteralArgument))
    throwVarError(atom);
  if (!(atom.getFirstArgument() instanceof SWRLIndividualArgument))
    throwVarError(atom);
  OWLIndividual ind=((SWRLIndividualArgument)atom.getFirstArgument()).getIndividual();
  if (ind.isAnonymous())
    throwAnonIndError(atom);
  OWLLiteral lit=((SWRLLiteralArgument)atom.getSecondArgument()).getLiteral();
  addFact(m_factory.getOWLDataPropertyAssertionAxiom(atom.getPredicate().asOWLDataProperty(),ind.asOWLNamedIndividual(),lit));
}
public void visit(SWRLBuiltInAtom atom) {
org.semanticweb.owlapi.modelOWLDataFactorygetOWLDataPropertyAssertionAxiom

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,
  • getOWLDatatype,
  • getOWLAnnotation

Popular in Java

  • Reactive rest calls using spring rest template
  • getResourceAsStream (ClassLoader)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • setRequestProperty (URLConnection)
  • Color (java.awt)
    The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
  • Kernel (java.awt.image)
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • Best plugins for Eclipse
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