weso / hercules-sync

Tools to synchronise data between the ontology files and Wikibase instance for the Hercules project at University of Murcia.
GNU General Public License v3.0
4 stars 1 forks source link

Return ModificationResult objects from wikibase adapter #20

Closed alejgh closed 4 years ago

alejgh commented 4 years ago

In the triplestore_manager module the following class to present and manage the synchronisation results was implemented:

class ModificationResult():
    def __init__(self, successful: bool, message: str):
        self.successful = successful
        self.message = message

We should return this object from the wikibase adapter methods so we can handle the results.