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§
- Claim
Value - 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
- Reference
Group - A group of claims that make up a single reference.
- Sid
- A lexeme ID and associated sense ID
- Site
Name - A site name, as used in the sitelinks.
- Sitelink
Value - A sitelink value.
- Text
- Text that is in a certain language.
Enums§
- Claim
Value Data - Data relating to a claim value.
- Entity
Error - An error related to entity parsing/creation.
- Entity
Type - The type of entity: normal entity with a Qid, a property with a Pid, or a lexeme with a Lid.
- IdParse
Error - An error parsing an ID.
- Rank
- A statement rank.
- WikiId
- Three main types of IDs entities can have.