PublicationHelper hits the API upon instantiation, even if the item already exists and it doesn't need to. It should check if the item exists upon call to "get_or_create" and then only if it doesn't exist, hit the external api and make all the statements. Because right now, its slow..
PublicationHelper hits the API upon instantiation, even if the item already exists and it doesn't need to. It should check if the item exists upon call to "get_or_create" and then only if it doesn't exist, hit the external api and make all the statements. Because right now, its slow..
https://github.com/SuLab/WikidataIntegrator/blob/master/wikidataintegrator/wdi_helpers/publication.py