public static OWLObjectPropertyAssertionAxiom ObjectPropertyAssertion( OWLObjectPropertyExpression property, OWLIndividual source, OWLIndividual target) { return DF.getOWLObjectPropertyAssertionAxiom(property, source, target); }
public static OWLObjectPropertyAssertionAxiom ObjectPropertyAssertion( OWLObjectPropertyExpression property, OWLIndividual source, OWLIndividual target, Collection<OWLAnnotation> a) { return DF.getOWLObjectPropertyAssertionAxiom(property, source, target, a); }
public static OWLObjectPropertyAssertionAxiom ObjectPropertyAssertion( OWLObjectPropertyExpression property, OWLIndividual source, OWLIndividual target) { return DF.getOWLObjectPropertyAssertionAxiom(property, source, target); }
@Nonnull @Override public Set<OWLAxiom> visit(OWLNamedIndividual subject) { return Collections.singleton(df.getOWLObjectPropertyAssertionAxiom(propertyValue.getProperty().getEntity(), subject, propertyValue.getValue().getEntity())); } });
protected OWLObjectPropertyAssertionAxiom createAxiom(OWLObjectPropertyIndividualPair editedObject) { return getOWLDataFactory().getOWLObjectPropertyAssertionAxiom(editedObject.getProperty(), getRootObject(), editedObject.getIndividual()); }
@Override public OWLObjectPropertyAssertionAxiom buildObject() { return df.getOWLObjectPropertyAssertionAxiom(verifyNotNull(getProperty()), verifyNotNull(subject), verifyNotNull(value), annotations); }
protected OWLObjectPropertyAssertionAxiom createAxiom(OWLObjectPropertyIndividualPair object) { return getOWLDataFactory().getOWLObjectPropertyAssertionAxiom(object.getProperty(), getRootObject(), object.getIndividual()); }
protected OWLObjectPropertyAssertionAxiom createAxiom(OWLObjectPropertyIndividualPair object) { return getOWLDataFactory().getOWLObjectPropertyAssertionAxiom(object.getProperty(), getRootObject(), object.getIndividual()); }
final public OWLAxiom Related() throws ParseException {OWLIndividual subj; OWLObjectProperty prop; OWLIndividual obj; jj_consume_token(OPENPAR); jj_consume_token(RELATED); subj = IndividualName(); prop = RoleName(); obj = IndividualName(); jj_consume_token(CLOSEPAR); return df.getOWLObjectPropertyAssertionAxiom(prop, subj, obj); }
final public OWLAxiom parseObjectPropertyAssertion() throws ParseException {OWLIndividual subj, obj; OWLObjectPropertyExpression prop; prop = parseObjectPropertyId(); jj_consume_token(OPENPAR); subj = parseIndividualId(); jj_consume_token(31); obj = parseIndividualId(); jj_consume_token(CLOSEPAR); return factory.getOWLObjectPropertyAssertionAxiom(prop, subj, obj); }
final public OWLAxiom parseObjectPropertyAssertion() throws ParseException {OWLIndividual subj, obj; OWLObjectPropertyExpression prop; prop = parseObjectPropertyId(); jj_consume_token(OPENPAR); subj = parseIndividualId(); jj_consume_token(31); obj = parseIndividualId(); jj_consume_token(CLOSEPAR); return factory.getOWLObjectPropertyAssertionAxiom(prop, subj, obj); }
@Override public void handleTriple(IRI s, IRI p, IRI o) { if (isOpLax(p)) { consume(s, p, o); add(df.getOWLObjectPropertyAssertionAxiom(op(p), ind(s), ind(o), anns())); } } }
@Override public OWLObjectPropertyAssertionAxiom visit(OWLObjectPropertyAssertionAxiom ax) { return df.getOWLObjectPropertyAssertionAxiom(t(ax.getProperty()), t(ax.getSubject()), t(ax.getObject()), a(ax)); }
@Override public void visit(OWLObjectPropertyAssertionAxiom ax) { obj = df.getOWLObjectPropertyAssertionAxiom(dup(ax.getProperty()), dup(ax.getSubject()), dup(ax.getObject()), anns(ax)); }
@Override public OWLObjectPropertyAssertionAxiom visit(OWLObjectPropertyAssertionAxiom axiom) { return df .getOWLObjectPropertyAssertionAxiom(get(axiom.getProperty()), get(axiom.getSubject()), get(axiom .getObject()), anns(axiom)); }
final public void Related() throws ParseException, KRSS2OWLParserException {OWLIndividual subj; OWLObjectProperty prop; OWLIndividual obj; jj_consume_token(OPENPAR); jj_consume_token(RELATED); subj = IndividualName(); prop = RoleName(); obj = IndividualName(); jj_consume_token(CLOSEPAR); addAxiom( df.getOWLObjectPropertyAssertionAxiom(prop, subj, obj)); }
@Override public void handleTriple(IRI s, IRI p, IRI o) { if (isOpLax(p)) { consume(s, p, o); add(df.getOWLObjectPropertyAssertionAxiom(op(p), ind(s), ind(o), anns())); } } }
@Override public OWLObjectPropertyAssertionAxiom visit(OWLObjectPropertyAssertionAxiom ax) { return df.getOWLObjectPropertyAssertionAxiom(t(ax.getProperty()), t(ax.getSubject()), t(ax.getObject()), a(ax)); }
public OWLIndividualAxiom translate(ObjectPropertyAssertion opa) { IRI roleIRI = IRI.create(opa.getProperty().getName()); OWLObjectProperty property = dataFactory.getOWLObjectProperty(roleIRI); OWLIndividual subject = translate(opa.getSubject()); OWLIndividual object = translate(opa.getObject()); return dataFactory.getOWLObjectPropertyAssertionAxiom(property, subject, object); }
@Override public Object visit(OWLObjectPropertyAssertionAxiom axiom) { return visitAxiom(axiom, () -> df.getOWLObjectPropertyAssertionAxiom(t(axiom.getProperty()), t(axiom .getSubject()), t(axiom.getObject()), t(axiom.annotations()))); }