Wikibaseintegrator

Latest version: v0.12.10

Safety actively analyzes 682361 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 5 of 6

0.11.1

What's Changed
* Only reset specific language when replacing description (164) (Thanks pgrond)
* Improves the error message if the operator are trying to use a writing function without setting allow_anonymous or having a valid login object. (Thanks dpriskorn)
* __init__(): Give the user back the prop_nr so they can better understand why the check failed. (178) (Thanks dpriskorn)
* Simplify qualifiers/references support (212) (Thanks dpriskorn)
* Add the keyword "now" to Time datatype to set the value to the current UTC time (213) (Thanks dpriskorn)
* Add retry for HTTP Code 500, 502 and 504 (234) (Thanks dpriskorn)
* Implement PEP 498 (Thanks dpriskorn)
* Update unit tests
* Update dependencies

New Contributors
* pgrond made their first contribution in https://github.com/LeMyst/WikibaseIntegrator/pull/164

**Full Changelog**: https://github.com/LeMyst/WikibaseIntegrator/compare/v0.11.0...v0.11.1

0.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` by `wbi_functions`.
* Remove `FunctionsEngine.get_linked_by()` and `FunctionsEngine.delete_item()`. WikibaseIntegrator will only support wikibase-oriented functions. Directly use `wbi_functions.mediawiki_api_call_helper` instead.
* Rename `FunctionsEngine.delete_statement()` to `wbi_functions.remove_claims()`.
* `revision` parameter in now optional.
* Add `summary` parameter.
* Change parameters order.
* Rename `FunctionsEngine.get_search_results()` to `wbi_functions.search_entities()`.
* Remove dataframe support in `wbi_functions.execute_sparql_query`, use [sparqldataframe](https://pypi.org/project/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

0.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.

0.10.0

Not secure
* Add support for unitless wd:Q199 in `wbi_core.Quantity()`
* `wbi_core.ItemEngine()` allow `wbi_core.BaseDataType()` as parameter `data` value type
* `wbi_core.Time()` accept new parameter `before` and `after`
* `wbi_core.BaseDataType()` allow an integer for `prop_nr` parameter
* Fix missing `self.value` for `wbi_core.Sense()` and `wbi_core.Form()`
* Fix `TypeError` for `wbi_core.GeoShape()` and `wbi_core.TabularData()` if `value` is `None`
* Add more check if `BaseDataType` value is None
* Improve handle of `wbi_core.BaseDataType.is_reference` and `wbi_core.BaseDataType.is_qualifier` when used in `references=` or `qualifiers=`
* 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 is `false`
* `wbi_core.FunctionsEngine.merge_items()`. Default is `false`
* `wbi_core.FunctionsEngine.delete_item()`. Default is `false`
* `wbi_core.FunctionsEngine.get_search_results()`. Default is `true`
* `wbi_core.FunctionsEngine.generate_item_instances()`. Default is `true`
* Fix an issue with `wbi_core.ItemEngine` methods `set_label` and `set_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` to `wbi_core.FunctionsEngine.mediawiki_api_call`
* Move `wbi_core.ItemEngine.get_linked_by` to `wbi_core.FunctionsEngine.get_linked_by`
* Move `wbi_core.ItemEngine.execute_sparql_query` to `wbi_core.FunctionsEngine.execute_sparql_query`
* Move `wbi_core.ItemEngine.merge_items` to `wbi_core.FunctionsEngine.merge_items`
* Move `wbi_core.ItemEngine.delete_item` to `wbi_core.FunctionsEngine.delete_item`
* Move `wbi_core.ItemEngine.delete_statement` to `wbi_core.FunctionsEngine.delete_statement`
* Move `wbi_core.ItemEngine.get_search_results` to `wbi_core.FunctionsEngine.get_search_results`
* `wbi_core.Quantity()` change parameter from `value` to `quantity`
* `wbi_core.MonolingualText()` change parameter from `value` to `text`
* `wbi_core.FunctionsEngine.get_search_results()` change parameter from `dict_id_label` to `dict_result`
* Remove `wbi_core.BaseDataType.is_reference()` and `wbi_core.BaseDataType.is_qualifier()`, use attribute instead
* Remove parameter `append_value` from `wbi_core.ItemEngine()`. Use `if_exists` parameter from `wbi_core.BaseDataType()`

0.9.0

Not secure
* 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

0.8.2

Not secure
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

Page 5 of 6

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.