mardi_importer.importer.Importer module
Created on Thu Feb 17 18:53:53 2022
@author: alvaro
-
class mardi_importer.importer.Importer.AConfigParser[source]
Bases: object
Abstract base class for parsing config files
-
parse_config()[source]
Parse config file.
:returns: Dictionary containing config values
:rtype: Dictionary
-
class mardi_importer.importer.Importer.ADataSource[source]
Bases: object
Abstract base class for reading data from external sources.
-
process_data()[source]
Process data dump.
-
pull()[source]
Pull data from DataSource
-
push()[source]
Push data into the MaRDI knowledge graph.
-
write_data_dump()[source]
Write data dump from API.
-
class mardi_importer.importer.Importer.Importer(dataSource)[source]
Bases: object
Controller class for importing data from an external source to the local Wikibase.
-
import_all(pull=True, push=True)[source]
Manages the import process.
-
exception mardi_importer.importer.Importer.ImporterException[source]
Bases: Exception
Failed importer operation.