Released on June 30, 2017.
Fixed
ValueError
fromEntity.label <wikidata.entity.Entity.label>
/Entity.description <wikidata.entity.Entity.description>
with languages ISO 639-1 doesn't cover (e.g.cbk-zam
). [2
]Although this fix prevents these properties from raising
ValueError
, it doesn't completely fix the problem.babel.core.Locale
type, which Wikidata depends on, currently doesn't supprot languages other than ISO 639-1. In order to completely fix the problem, we need to patch Babel to support them, or make Wikidata independent from Babel.
Released on June 28, 2017.
- Fixed
AssertionError
from empty~wikidata.entity.multilingual_attribute
s.
Released on June 28, 2017.
- Fixed
AssertionError
fromlen()
or iterating (iter()
) on~wikidata.entity.Entity
objects with empty claims.
Released on June 13, 2017.
- Wikidata API calls over network became possible to be cached.
~wikidata.client.Client
now has~wikidata.client.Client.cache_policy
attribute and constructor option. Nothing is cached by default.- Added
wikidata.cache
module and~wikidata.cache.CachePolicy
interface in it. Two built-in implementation of the interface were added:~wikidata.cache.NullCachePolicy
No-op.
~wikidata.cache.MemoryCachePolicy
LRU cache in memory.
~wikidata.cache.ProxyCachePolicy
Proxy/adapter to another proxy object. Useful for utilizing third-party cache libraries.
wikidata.client.Client.request
logger became to record logs about cache hits as~logging.DEBUG
level.
Released on June 30, 2017.
Fixed
ValueError
fromEntity.label <wikidata.entity.Entity.label>
/Entity.description <wikidata.entity.Entity.description>
with languages ISO 639-1 doesn't cover (e.g.cbk-zam
). [2
]Although this fix prevents these properties from raising
ValueError
, it doesn't completely fix the problem.babel.core.Locale
type, which Wikidata depends on, currently doesn't supprot languages other than ISO 639-1. In order to completely fix the problem, we need to patch Babel to support them, or make Wikidata independent from Babel.
Released on June 28, 2017.
- Fixed
AssertionError
from empty~wikidata.entity.multilingual_attribute
s.
Released on June 28, 2017.
- Fixed
AssertionError
fromlen()
or iterating (iter()
) on~wikidata.entity.Entity
objects with empty claims.
Released on April 30, 2017.
- Fixed
AssertionError
from~wikidata.entity.Entity.getlist()
on entities with empty claims.
Released on April 24, 2017.
- Monolingual texts became able to be handled.
- Added
~wikidata.multilingual.MonolingualText
type which is a true subtype ofstr
.
- Added
Released on February 23, 2017.
- Now
~wikidata.client.Client
became able to customize how it decodes datavalues to Python objects.- Added
wikidata.datavalue
module and~wikidata.datavalue.Decoder
class inside it. - Added
~.wikidata.client.Client.datavalue_decoder
option to~wikidata.client.Client
.
- Added
- Now files on Wikimeda Commons became able to be handled.
- New decoder became able to parse Wikimedia Commons files e.g. images.
- Added
wikidata.commonsmedia
module and~wikidata.commonsmedia.File
class inside it.
- The meaning of
~wikidata.client.Client
constructor'sbase_url
prameter beccame not to contain the trailing pathwiki/
fromhttps://www.wikidata.org/wiki/
. As its meaning changed, the value of~wikidata.client.WIKIDATA_BASE_URL
constant also changed to not have the trailing path. - Added
load
option toClient.get() <wikidata.client.Client.get>
method.
Released on February 19, 2017.
- Made
~wikidata.entity.Entity
multidict. Now it satisfies~typing.Mapping
[~wikidata.entity.Entity
,object
] protocol. - Added
Entity.type <wikidata.entity.Entity.type>
property and~wikidata.entity.EntityType
enum class to represent it. - Added
~wikidata.client.Client.entity_type_guess
option and~wikidata.client.Client.guess_entity_type()
method to~wikidata.client.Client
class. - Implemented
~typing.Hashable
protocol and==
/!=
operators to~wikidata.entity.Entity
for equality test.
Initial version. Released on February 15, 2017.