The snak for this class in JSON format.
The file name as used in the Wiki Commons URL
Gets the link to the Wiki Commons page.
The link to the Wiki Commons page.
Checks if the snak has a value.
True if the snak has a value.
Gets the link to the image.
Uses the Special:Redirect
function of Wiki Commons to find the right URL.
The link to the image.
Creates 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.
Static
fromCreates a snak from a property and a file name.
The property of the snak in 'P-form'.
The file name.
A snak with the given properties.
Class for the CommonsMediaSnak.
Most used property of this type is P18 (image).