Commit graph

34 commits

Author SHA1 Message Date
7515ad24d4
chore: edition 2024, and fmt and clippy 2025-06-27 13:52:06 -07:00
c86218be16
chore: cargo fmt and clippy 2025-06-27 13:48:17 -07:00
syvb
33302d9dc5 Add simpler accessors for getting claims
Adds {Entity,ReferenceGroup}::pid_claims, ClaimValue::qualifier_pid_claims, Entity::claim_by_id.
2024-06-25 19:28:14 -04:00
syvb
c85d79dd9a Derive Default impls 2023-12-09 18:23:49 -05:00
Lena Brüder
497ddf979b
Add support for sitelinks (#3) 2023-11-10 11:05:24 -05:00
syvb
ab0a0a8029 Properly handle invalid times 2023-11-06 17:20:41 -05:00
Smitty
a982174217 note lack of support for EntitySchemas 2022-12-10 15:43:41 -05:00
Smitty
c53655bc52 expand Entity::from_json docs 2021-12-26 12:36:43 -05:00
Smitty
258a4b2a94 Simplify wiki id parsing 2021-12-25 12:08:52 -05:00
Smitty
b94d358423 fix typo in docs 2021-12-25 11:38:50 -05:00
Smitty
30cd0db436 Move WikiId to ids.rs
This doesn't change the exported items since both modules get reexported
2021-09-05 15:22:39 -04:00
Smitty
ad918f8597 Fix panic on invalid entity 2021-08-31 17:28:00 -04:00
Smitty
6f54023b96 Improve entity documentation 2021-08-28 10:46:31 -04:00
Smitty
249cd707ee Use consistent formatting for trailing semicolons
Satisfies clippy::semicolon_if_nothing_returned
2021-08-28 10:38:05 -04:00
Dashiell Stander
e9cd90efff Added new field on Entity struct that has the ID on it
Co-authored-by: Smittyvb <me@smitop.com>
2021-07-27 10:46:34 -04:00
Smitty
c6e0b7745c Better handling of numbers 2021-05-30 11:00:35 -04:00
Smitty
284af1ad9f treat out of bounds dates as unknown value 2021-05-30 10:10:10 -04:00
Smitty
38b35a77cb support parsing items 2021-05-30 09:43:00 -04:00
Smitty
48eb6bf085 validate snak parsing results 2021-05-29 17:06:52 -04:00
Smitty
2939ad9918 use serde_json for JSON parsing 2021-05-29 16:58:11 -04:00
Smitty
c442ff1882 Use different types for ExpectedString errors 2021-05-29 10:11:23 -04:00
Smitty
b561b48aa3 Do more linting 2021-05-28 13:04:06 -04:00
Smitty
588a5777db simplify matches to if lets 2021-05-28 12:56:15 -04:00
Smitty
2b0db79c3e rename Stringg to String 2021-05-28 12:50:58 -04:00
Smitty
d9003c92d3 better format for DateTime table 2021-05-28 12:50:16 -04:00
Smitty
c9e1adca59 format 2021-05-28 12:43:23 -04:00
Smitty
0645f03e6a fix some panics 2021-05-28 10:24:29 -04:00
Smitty
15b8542c97 better lib structure/docs 2021-05-28 10:11:49 -04:00
Smitty
d1d175628f better match wikibase data model 2021-05-28 09:54:42 -04:00
Smitty
10fad9247e disambig entity types 2021-05-28 09:28:17 -04:00
Smitty
206030d95d rm logging statements 2021-05-28 09:13:51 -04:00
Smitty
c6a7f5df8b Don't panic on failure 2021-05-28 08:58:16 -04:00
Smitty
0d889b878e Don't use system time 2021-05-27 20:00:29 -04:00
Smitty
0d330126fe init library 2021-05-27 17:36:20 -04:00