Crate wikidata

Source
Expand description

Rust library for Wikidata. It has some support for Wikibase as well, although the main focus is supporting the Wikidata instance.

§A note on serialization

Many items in this crate implement serde::Serialize and serde::Deserialize. Note that the JSON serialization of entities provided by these traits is not the same as the serialization used by Wikidata in data dumps and Special:EntityData, but is instead a serialization specific to this crate.

Modules§

consts
Various IDs for commonly used entities/properties on Wikidata.

Structs§

ClaimValue
A claim value.
Entity
A Wikibase entity: this could be an entity, property, or lexeme.
Fid
A lexeme ID and associated form ID
Lang
A language, as used in the Wikibase data model.
Lid
A Wikidata lexeme ID
Pid
A Wikidata property ID
Qid
A Wikidata entity ID
ReferenceGroup
A group of claims that make up a single reference.
Sid
A lexeme ID and associated sense ID
SiteName
A site name, as used in the sitelinks.
SitelinkValue
A sitelink value.
Text
Text that is in a certain language.

Enums§

ClaimValueData
Data relating to a claim value.
EntityError
An error related to entity parsing/creation.
EntityType
The type of entity: normal entity with a Qid, a property with a Pid, or a lexeme with a Lid.
IdParseError
An error parsing an ID.
Rank
A statement rank.
WikiId
Three main types of IDs entities can have.