the snak that will be parsed
const snak = new MonolingualTextSnak(json);
the language of the value
the value of the snak
true if the snak has a value
create a unique id for the Snak
the id
this function checks if two snaks are equal
the other snak
true if the snaks are equal
if (snak.equals(other)) {
// do something
}
Static
fromthe property of the snak in 'P-form'
the language of the snak
the value
a snak with the given properties
const snak = MonolingualTextSnak.fromValue('P1476', 'en', 'test');
Generated using TypeDoc
class for the MonolingualTextSnak
most used property of this type P1476 (title)