Module Entity.Item
Represents Wikidata Items.
Sitelinks
type sitelink={site : string;title : string;badges : string list;url : string option;}Links to the corresponding Wikipedia articles for this item, closely following the representation of sitelinks in the original JSON as specified in the Wikibase JSON specifications.
Items
class t : id:string -> entity_type:string -> labels:(lang * string) list -> descriptions:(lang * string) list -> aliases:(lang * string list) list -> statements:(propertyid * Statement.t list) list -> sitelinks:(string * sitelink) list -> object ... endRepresents Wikidata Items.
Conversions
val of_string : string -> tTurns a json string representing an Item (as described in the Wikibase JSON specification) into a
t.
val of_entities_string : string -> tReturns the first entity in a JSON string representing a group of entities as a
t. This is provided as a convenience function, as this is the format that requests tohttps://wikidata.org/wiki/Special:EntityData/{ID}.json(whereIDis a Wikidata Entity ID) are returned in.