Module Wikidata.Snak
Represents Wikidata Snaks.
Value Types
type wikibase_entityid={entity_type : string;id : string;numeric_id : int option;}Represents a Wikibase entity id
type globecoordinate={latitude : float;longitude : float;precision : float option;globe : string;}Represents a Globe coordinate
type quantity={amount : float;upper_bound : float option;lower_bound : float option;quantity_unit : string;}Represents a Quantity
Data Types
type data=|CommonsMedia of string|GeographicShape of string|GlobeCoordinate of globecoordinate|MonolingualText of monolingualtext|Quantity of quantity|String of string|TabularData of string|Time of time|URL of string|ExternalIdentifier of string|Item of wikibase_entityid|Property of wikibase_entityid|MusicalNotation of string|MathematicalExpression of string|Lexeme of wikibase_entityid|Form of wikibase_entityid|Sense of wikibase_entityidThis type represents a data type according to this page. Data types on Wikidata represent the way that the data should be interpreted, not the format the data is returned in. Note that each variant data type has a corresponding value type, which represents the form the data will be returned in. For example, both
MusicalNotationandMathematicalExpressioncontain a simplestring, andItemandPropertyboth are represented by awikibase_entityid.
Snaks
type t=|Value of dataA snak with a known value
data.|SomeValueA snak with some unknown value.
|NoValueA snak representing an explicit, intentional lack of value.
This represents a Wikidata Snak.
Valuerepresents a known value.SomeValuerepresents an unknown but extent value, like William Shakespeare's date of birth.NoValuerepresents an explicitly empty value, like the children of Elizabeth I of England, who had no children.