@Override public void addObjectPropertyAssertion(ObjectPropertyExpression ope, ObjectConstant o1, ObjectConstant o) throws InconsistentOntologyException { checkSignature(ope); ObjectPropertyAssertion assertion = createObjectPropertyAssertion(ope, o1, o); if (assertion != null) objectPropertyAssertions.add(assertion); }
@Override public void addObjectPropertyAssertion(ObjectPropertyExpression ope, ObjectConstant o1, ObjectConstant o) throws InconsistentOntologyException { checkSignature(ope); ObjectPropertyAssertion assertion = createObjectPropertyAssertion(ope, o1, o); if (assertion != null) objectPropertyAssertions.add(assertion); }
@Override public ObjectPropertyAssertion createObjectPropertyAssertion(String op, ObjectConstant o1, ObjectConstant o2) throws InconsistentOntologyException { return OntologyBuilderImpl.createObjectPropertyAssertion(new ObjectPropertyExpressionImpl(op), o1, o2); }
@Override public ObjectPropertyAssertion createObjectPropertyAssertion(String op, ObjectConstant o1, ObjectConstant o2) throws InconsistentOntologyException { return OntologyBuilderImpl.createObjectPropertyAssertion(new ObjectPropertyExpressionImpl(rdfFactory.createIRI(op)), o1, o2); }
public ObjectPropertyAssertion translate(OWLObjectPropertyAssertionAxiom ax, OntologyVocabularyCategory<ObjectPropertyExpression> objectProperties) throws TranslationException, InconsistentOntologyException { IRIConstant c1 = getIndividual(ax.getSubject()); IRIConstant c2 = getIndividual(ax.getObject()); ObjectPropertyExpression ope = getPropertyExpression(ax.getProperty(), objectProperties); return OntologyBuilderImpl.createObjectPropertyAssertion(ope, c1, c2); }