Skip to content

Releases: LeMyst/WikibaseIntegrator

v0.12.0.dev2

26 Aug 21:35
b4ebb36
Compare
Choose a tag to compare
v0.12.0.dev2 Pre-release
Pre-release

Fix packaging issues.

v0.11.0

06 Jun 09:21
316584a
Compare
Choose a tag to compare
  • 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 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

01 May 22:51
f72e63e
Compare
Choose a tag to compare
  • 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

11 Feb 16:32
088e782
Compare
Choose a tag to compare
  • 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()

v0.9.0

09 Oct 17:34
Compare
Choose a tag to compare
  • 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

07 Aug 22:06
Compare
Choose a tag to compare

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

05 Aug 19:00
Compare
Choose a tag to compare
  • 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