Class for the URLSnak.
Most used property of this type is P854 (reference URL).
The snak for this class in JSON format.
const snak = new URLSnak(json); Copy
const snak = new URLSnak(json);
Checks if the snak has a value.
True if the snak has a value.
Creates a unique ID for the Snak.
The ID.
The value will be URL encoded.
The value of the snak.
url
This function checks if two snaks are equal.
The other snak.
True if the snaks are equal.
if (urlSnak.equals(other)) { // do something } Copy
if (urlSnak.equals(other)) { // do something }
The snak as JSON.
const json = urlSnak.toJSON(); Copy
const json = urlSnak.toJSON();
Static
The property of the snak in 'P-form'.
The URL.
A snak with the given properties.
const snak = URLSnak.fromURL('P854', 'https://example.com'); Copy
const snak = URLSnak.fromURL('P854', 'https://example.com');
Class for the URLSnak.
Most used property of this type is P854 (reference URL).