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§
- Various IDs for commonly used entities/properties on Wikidata.
Structs§
- A claim value.
- A Wikibase entity: this could be an entity, property, or lexeme.
- A lexeme ID and associated form ID
- A language, as used in the Wikibase data model.
- A Wikidata lexeme ID
- A Wikidata property ID
- A Wikidata entity ID
- A group of claims that make up a single reference.
- A lexeme ID and associated sense ID
- A site name, as used in the sitelinks.
- A sitelink value.
- Text that is in a certain language.
Enums§
- Data relating to a claim value.
- An error related to entity parsing/creation.
- The type of entity: normal entity with a Qid, a property with a Pid, or a lexeme with a Lid.
- An error parsing an ID.
- A statement rank.
- Three main types of IDs entities can have.