Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update mappings to use new triplestore (#284)
* Throughout update of mappings.py. * Added the Step class to represent different mapping routes and easy selection of the best one * Added cost for different routes for automatic suggestion and sorting of routes * Handle units correctly * Added functions for instantiating dlite instances. * Use the triplestore sub-package - use a Triplestore instance instead of a list of tuples * Also ensured that functions IRIs does not change between sessions, via the new function_id() help function. * Made MappingError a subclass of DLiteError as suggested by Francesca. * Added getprop() method to metadata for easy access to its properties. * Infer function_repo from triplestore. * Apply suggestions from code review by Francesca Co-authored-by: Francesca L. Bleken <48128015+francescalb@users.noreply.github.com>
- Loading branch information