Closed ssssarah closed 8 months ago
Attention: 4 lines
in your changes are missing coverage. Please review.
Comparison is base (
55ba0ce
) 74.39% compared to head (e8baeb1
) 74.36%.
Files | Patch % | Lines |
---|---|---|
kgforge/core/forge.py | 42.85% | 4 Missing :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
KnowledgeGraphForge picks specializations of mappings/mappers as default types of Mapping/Mapper to use. There's a cyclic dependency error if one tries to import both KnowledgeGraphForge and DictionaryMapping.
This removes the imports of DictionaryMapping and DictionaryMapper in KnowledgeGraphForge: I think having core import specializations is not a good practice, and I've replaced the default value that KnowledgeGraphForge with the mapping and mapper defined by the store it holds. It could be that this makes no sense, if ever the intended usage of these mappings/mappers is different.
I've also made the specializations file import the classes directly from the files they were defined, and not the packages they are contained in. I feel like it's more of a user interface feature to have the ability to import from packages. It could be argued that specializations should be defined by users and so they should also import the same way...