Assertion extends NamedResource { public static Assertion createDataPropertyAssertion(URI assertionIdentifier, boolean isInferred) { return new DataPropertyAssertion(assertionIdentifier, isInferred); } protected  Assertion(URI identifier, boolean isInferred); protected  Assertion(URI identifier, String language, boolean isInferred); boolean isInferred(); boolean isClassAssertion(); abstract AssertionType getType(); String getLanguage(); boolean hasLanguage(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); static Assertion createClassAssertion(boolean isInferred); static Assertion createUnspecifiedPropertyAssertion(boolean isInferred); static Assertion createUnspecifiedPropertyAssertion(String language, boolean isInferred); static Assertion createPropertyAssertion(URI assertionIdentifier, boolean isInferred); static Assertion createPropertyAssertion(URI assertionIdentifier, String language, boolean isInferred); static Assertion createObjectPropertyAssertion(URI assertionIdentifier, boolean isInferred); static Assertion createDataPropertyAssertion(URI assertionIdentifier, boolean isInferred); static Assertion createDataPropertyAssertion(URI assertionIdentifier, String language, boolean isInferred); static Assertion createAnnotationPropertyAssertion(URI assertionIdentifier, boolean isInferred); static Assertion createAnnotationPropertyAssertion(URI assertionIdentifier, String language,
                                                              boolean isInferred);  }
@Test void equalsReturnsFalseWhenAssertionsDifferInLanguage() { final Assertion aOne = Assertion.createDataPropertyAssertion(ID, "cs", false); final Assertion aTwo = Assertion.createDataPropertyAssertion(ID, "en", false); assertNotEquals(aOne, aTwo); }
@Test void equalsReturnsFalseWhenAssertionsDifferInInferenceType() { final Assertion aOne = Assertion.createDataPropertyAssertion(ID, false); final Assertion aTwo = Assertion.createDataPropertyAssertion(ID, true); assertNotEquals(aOne, aTwo); }