The statement in a JSON format
const statement = new Statement(json); Copy
const statement = new Statement(json);
Gets the unique hash of the statement.
The ID
Gets the property of the statement.
The property of the statement
const property = statement.property; Copy
const property = statement.property;
Compares this statement with another statement.
The other statement
True if the two statements are equal
if (statement1.equals(statement2)) { // do something } Copy
if (statement1.equals(statement2)) { // do something }
const json = statement.toJSON(); Copy
const json = statement.toJSON();
Static
Creates a statement from a snak.
The snak for the statement
The statement
const statement = Statement.fromSnak(snak); Copy
const statement = Statement.fromSnak(snak);
The statement in a JSON format