@Override public DataPropertyAssertion createDataPropertyAssertion(String dp, ObjectConstant o, ValueConstant v) throws InconsistentOntologyException { return OntologyBuilderImpl.createDataPropertyAssertion(new DataPropertyExpressionImpl(dp), o, v); } };
@Override public void addDataPropertyAssertion(DataPropertyExpression dpe, ObjectConstant o, ValueConstant v) throws InconsistentOntologyException { checkSignature(dpe); DataPropertyAssertion assertion = createDataPropertyAssertion(dpe, o, v); if (assertion != null) dataPropertyAssertions.add(assertion); }
@Override public void addDataPropertyAssertion(DataPropertyExpression dpe, ObjectConstant o, ValueConstant v) throws InconsistentOntologyException { checkSignature(dpe); DataPropertyAssertion assertion = createDataPropertyAssertion(dpe, o, v); if (assertion != null) dataPropertyAssertions.add(assertion); }
@Override public DataPropertyAssertion createDataPropertyAssertion(String dp, ObjectConstant o, ValueConstant v) throws InconsistentOntologyException { return OntologyBuilderImpl.createDataPropertyAssertion(new DataPropertyExpressionImpl(rdfFactory.createIRI(dp)), o, v); } };
public DataPropertyAssertion translate(OWLDataPropertyAssertionAxiom ax, OntologyVocabularyCategory<DataPropertyExpression> dataProperties) throws TranslationException, InconsistentOntologyException { IRIConstant c1 = getIndividual(ax.getSubject()); ValueConstant c2 = getValueOfLiteral(ax.getObject()); DataPropertyExpression dpe = getPropertyExpression(ax.getProperty(), dataProperties); return OntologyBuilderImpl.createDataPropertyAssertion(dpe, c1, c2); }