public static OWLDataPropertyAssertionAxiom DataPropertyAssertion( OWLDataPropertyExpression property, OWLIndividual source, OWLLiteral target) { return DF.getOWLDataPropertyAssertionAxiom(property, source, target); }
public static OWLDataPropertyAssertionAxiom DataPropertyAssertion( OWLDataPropertyExpression property, OWLIndividual source, OWLLiteral target, Collection<OWLAnnotation> a) { return DF.getOWLDataPropertyAssertionAxiom(property, source, target, a); }
/** * 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)); }
/** * 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))); }
/** * 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)); }
/** * 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))); }
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); } }
@Override public OWLDataPropertyAssertionAxiom buildObject() { return df.getOWLDataPropertyAssertionAxiom(getProperty(), getSubject(), getLiteral(), annotations); }
protected OWLDataPropertyAssertionAxiom createAxiom(OWLDataPropertyConstantPair editedObject) { return getOWLDataFactory().getOWLDataPropertyAssertionAxiom(editedObject.getProperty(), getRootObject(), editedObject.getConstant()); }
protected OWLDataPropertyAssertionAxiom createAxiom(OWLDataPropertyConstantPair object) { return getOWLDataFactory().getOWLDataPropertyAssertionAxiom(object.getProperty(), getRootObject(), object.getConstant()); }
@Override public void handleTriple(IRI s, IRI p, OWLLiteral o) { add(df.getOWLDataPropertyAssertionAxiom(dp(p), ind(s), o, anns())); consume(s, p, o); } }
@Override public OWLDataPropertyAssertionAxiom visit(OWLDataPropertyAssertionAxiom axiom) { return df.getOWLDataPropertyAssertionAxiom(axiom.getProperty(), axiom.getSubject(), process(axiom .getProperty(), axiom.getObject())); }
@Override public OWLDataPropertyAssertionAxiom visit(OWLDataPropertyAssertionAxiom axiom) { return df.getOWLDataPropertyAssertionAxiom(axiom.getProperty(), axiom.getSubject(), process(axiom .getProperty(), axiom.getObject())); }
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)); }
@Override public void visit(OWLDataPropertyAssertionAxiom ax) { obj = df.getOWLDataPropertyAssertionAxiom(dup(ax.getProperty()), dup(ax.getSubject()), dup(ax.getObject()), anns(ax)); }
@Override public OWLDataPropertyAssertionAxiom visit(OWLDataPropertyAssertionAxiom axiom) { return df .getOWLDataPropertyAssertionAxiom(get(axiom.getProperty()), get(axiom.getSubject()), get(axiom .getObject()), anns(axiom)); }
@Override public OWLDataPropertyAssertionAxiom visit(OWLDataPropertyAssertionAxiom ax) { return df.getOWLDataPropertyAssertionAxiom(t(ax.getProperty()), t(ax.getSubject()), t(ax.getObject()), a(ax)); }
@Override public OWLDataPropertyAssertionAxiom visit(OWLDataPropertyAssertionAxiom axiom) { return df .getOWLDataPropertyAssertionAxiom(get(axiom.getProperty()), get(axiom.getSubject()), get(axiom .getObject()), anns(axiom)); }
@Override public Object visit(OWLDataPropertyAssertionAxiom axiom) { return visitAxiom(axiom, () -> df.getOWLDataPropertyAssertionAxiom(t(axiom.getProperty()), t(axiom .getSubject()), t(axiom.getObject()), t(axiom.annotations()))); }
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) {