Building and Using Knowledge Graphs made easy
GNU Lesser General Public License v3.0
38
stars
19
forks
source link
Mapping from a dictionary mapping which cannot find mapping file path doesn't throw any errors #332
Closed
ssssarah closed 10 months ago
When using forge.map and providing a Mapping:
When initialising the Mapping, if you provide to a mapping a file path and it can't find it, the mapping value will resolve to the mapping file path. See https://github.com/BlueBrain/nexus-forge/blob/02640967dd4034a4a4f5d566f322f2d9fdb9bd42/kgforge/core/archetypes/mapping.py#L64
When using the Mapper, if it doesn't understand the Mapping value, it simply returns the mapping
self.rules
value, which is an array with as a single value, the "unresolved" file path. See https://github.com/BlueBrain/nexus-forge/blob/02640967dd4034a4a4f5d566f322f2d9fdb9bd42/kgforge/specializations/mappers/dictionaries.py#L62