Releases: LeMyst/WikibaseIntegrator
Releases · LeMyst/WikibaseIntegrator
v0.12.0.dev2
Fix packaging issues.
v0.11.0
- Only send changes when writing to Wikibase.
- Add Exception if format is set to something else than json when using
FunctionsEngine.mediawiki_api_call()
. - Add Python 3.10 CI workflow.
- Remove
pandas
as a dependency. - Fix issue when core_prop id is and ItemID (#155 thanks to @maximearmstrong)
BREAKING CHANGES
- Replace
wbi_core.FunctionsEngine
bywbi_functions
. - Remove
FunctionsEngine.get_linked_by()
andFunctionsEngine.delete_item()
. WikibaseIntegrator will only support wikibase-oriented functions. Directly usewbi_functions.mediawiki_api_call_helper
instead. - Rename
FunctionsEngine.delete_statement()
towbi_functions.remove_claims()
.revision
parameter in now optional.- Add
summary
parameter. - Change parameters order.
- Rename
FunctionsEngine.get_search_results()
towbi_functions.search_entities()
. - Remove dataframe support in
wbi_functions.execute_sparql_query
, use sparqldataframe package instead. - Move format force to json to
wbi_functions.mediawiki_api_call()
. - Move all datatypes from wbi_core to wbi_datatype.
- Move wbi_core.JsonParser to wbi_jsonparser.JsonParser
v0.10.1
- Add OAuth 1.0a and OAuth 2.0 owner-only consumer support. It's now the best methods to securely authenticate against a MediaWiki instance.
- Automatically disable unit support in fastrun query if datatype is not quantity.
- Fix
wbi_core.set_label()
which replaced all labels. Allow delete of label with parameter label as None. - Update the format validator for Url property.
- Ignore maxlag parameter if maxlag is 0 or less.
- Add maxlag support to more functions.
- Add documentation for
wbi_core.FunctionsEngine.mediawiki_api_call_helper()
in the README.md.
v0.10.0
- Add support for unitless wd:Q199 in
wbi_core.Quantity()
wbi_core.ItemEngine()
allowwbi_core.BaseDataType()
as parameterdata
value typewbi_core.Time()
accept new parameterbefore
andafter
wbi_core.BaseDataType()
allow an integer forprop_nr
parameter- Fix missing
self.value
forwbi_core.Sense()
andwbi_core.Form()
- Fix
TypeError
forwbi_core.GeoShape()
andwbi_core.TabularData()
ifvalue
isNone
- Add more check if
BaseDataType
value is None - Improve handle of
wbi_core.BaseDataType.is_reference
andwbi_core.BaseDataType.is_qualifier
when used inreferences=
orqualifiers=
- Improve
wbi_login
with more warning and error messages from the API - Replace
wbi_core.BaseDataType()
parameters by kwargs - Add
allow_anonymous
parameter to:wbi_core.write()
. Default isfalse
wbi_core.FunctionsEngine.merge_items()
. Default isfalse
wbi_core.FunctionsEngine.delete_item()
. Default isfalse
wbi_core.FunctionsEngine.get_search_results()
. Default istrue
wbi_core.FunctionsEngine.generate_item_instances()
. Default istrue
- Fix an issue with
wbi_core.ItemEngine
methodsset_label
andset_description
only worked in "fast run" mode wbi_core.ItemEngine.set_aliases()
now accept string and list- Add Python 3.9 support
BREAKING CHANGES
- Drop Python 3.6 support
- Move
wbi_core.ItemEngine.mediawiki_api_call
towbi_core.FunctionsEngine.mediawiki_api_call
- Move
wbi_core.ItemEngine.get_linked_by
towbi_core.FunctionsEngine.get_linked_by
- Move
wbi_core.ItemEngine.execute_sparql_query
towbi_core.FunctionsEngine.execute_sparql_query
- Move
wbi_core.ItemEngine.merge_items
towbi_core.FunctionsEngine.merge_items
- Move
wbi_core.ItemEngine.delete_item
towbi_core.FunctionsEngine.delete_item
- Move
wbi_core.ItemEngine.delete_statement
towbi_core.FunctionsEngine.delete_statement
- Move
wbi_core.ItemEngine.get_search_results
towbi_core.FunctionsEngine.get_search_results
wbi_core.Quantity()
change parameter fromvalue
toquantity
wbi_core.MonolingualText()
change parameter fromvalue
totext
wbi_core.FunctionsEngine.get_search_results()
change parameter fromdict_id_label
todict_result
- Remove
wbi_core.BaseDataType.is_reference()
andwbi_core.BaseDataType.is_qualifier()
, use attribute instead - Remove parameter
append_value
fromwbi_core.ItemEngine()
. Useif_exists
parameter fromwbi_core.BaseDataType()
v0.9.0
- Improve _query_data function to correctly retrieve value, unit, quantifier, quantifier value and quantifier unit (Thanks to Dipsacus fullonum)
- Remove wikidata prefixes in queries and only use IRI
- In ItemEngine class will not try to load item data if the parameter search_only is set to true
- Improve fastrun's base filter by supporting the SequencePath
- Add parameter if_exists for set_label (with default value REPLACE)
- Change append to if_exists (with default value APPEND) for set_aliases
- Add parameter if_exists for set_description (with default value REPLACE)
- Change default config
- Remove CONCEPT_BASE_URI. it's now derivated from WIKIBASE_URL
- Add DEFAULT_LANGUAGE with a default value 'en'
- Remove shexer, pyshex and rdflib dependencies
- Remove all shex and rdf related functions. Please use your own
- Set default lang to None in functions parameters. If lang is set to None, use global DEFAULT_LANGUAGE
- Remove logging functions. Please use your own
- Improve unit tests
- Move from httpstat.us to httpbin.org
- Improve some tests with decimal value instead of simple integer
- Add unit testing for some
- Adapt tests with new parameters
v0.8.2
Move from WikidataIntegrator to WikibaseIntegrator
- Module name changes :
- wdi_backoff -> wbi_backoff
- wdi_config -> wbi_config
- wdi_core -> wbi_core
- wdi_fastrun -> wbi_fastrun
- wdi_login -> wbi_login
- Classe name changes:
- WDLogin -> Login
- WDItemEngine -> ItemEngine
- WDBaseDataType -> BaseDataType
- WDCommonsMedia -> CommonsMedia
- WDExternalID -> ExternalID
- WDForm -> Form
- WDGeoShape -> GeoShape
- WDGlobeCoordinate -> GlobeCoordinate
- WDItemID -> ItemID
- WDLexeme -> Lexeme
- WDMath -> Math
- WDMonolingualText -> MonolingualText
- WDMusicalNotation -> MusicalNotation
- WDProperty -> Property
- WDQuantity -> Quantity
- WDSense -> Sense
- WDString -> String
- WDTabularData -> TabularData
- WDTime -> Time
- WDUrl -> Url
- ItemEngine parameter changes:
- wd_item_id -> item_id
- ItemEngine attribute changes:
- wd_item_id -> item_id
v0.8.1
- Fork and rename project from WikidataIntegrator to WikibaseIntegrator
- Add Github Action to publish to PyPi
- Remove notebook/, doc/ and docs/ folder
- Remove wdi_helpers
- Update requirements.txt with versions and remove useless package
- Improve FastRunContainer
- Improve search_only mode