|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Statement
An RDF statement, with optional associated context. A statement can have an associated context in specific cases, for example when fetched from a repository. The context field does not influence statement equality; a statement is equal to another statement if the subjects, predicates and objects are equal.
| Method Summary | |
|---|---|
boolean |
equals(Object other)
Compares a statement object to another object. |
Resource |
getContext()
Gets the context of this statement. |
Value |
getObject()
Gets the object of this statement. |
URI |
getPredicate()
Gets the predicate of this statement. |
Resource |
getSubject()
Gets the subject of this statement. |
int |
hashCode()
The hash code of a statement is defined as: 961 * subject.hashCode() + 31 * predicate.hashCode() + object.hashCode(). |
| Method Detail |
|---|
Resource getSubject()
URI getPredicate()
Value getObject()
Resource getContext()
boolean equals(Object other)
equals in class Objectother - The object to compare this statement to.
Statement and if their subjects, predicates and objects
are equal.int hashCode()
String.hashCode() is
defined.
hashCode in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||