You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
tripper.Namespace already allow working with ontologies using numerical IDs, like EMMO, in a user friendly way. However, it requires that the ontology is downloaded at every invocation, which may have a detrimental impact on performance.
Also, some ontologies does not load all its modules by default. This is e.g. the case of EMMO that for instance doesn't load pre-fixed and non-coherent units by default. Hence, by default not all concepts are accessible from the namespace object.
To address these two issues:
cache the downloaded ontology
make it easy to load additional modules into the namespace
The text was updated successfully, but these errors were encountered:
# Description
Simplified and improved the usability of namespaces
* Added persistent cache to Namespace. Loading a large namespace like EMMO from cache is now almost instant.
* Added extend_namespace() utility function.
* Simplified the implementation of Namespace, including:
- replaced `cachemode` argument with the simple boolean argument `reload`
- removed `triplestore_url` argument
- added `format` argument for supporting loading ontologies in formats other than turtle
* Updated the `Triplestore.bind()` method to make it simpler to use.
* Updated the tutorial and improved the description of how namespaces can be used.
* Added and improved tests. Added example for simplified SPARQL queries using tripper Namespace.
Closes#194
## Type of change
- [ ] Bug fix and code cleanup
- [x] New feature
- [x] Documentation update
- [x] Testing
Co-authored-by: Tor S. Haugland <tor.haugland@sintef.no>
Co-authored-by: Francesca L. Bleken <48128015+francescalb@users.noreply.github.com>
tripper.Namespace
already allow working with ontologies using numerical IDs, like EMMO, in a user friendly way. However, it requires that the ontology is downloaded at every invocation, which may have a detrimental impact on performance.Also, some ontologies does not load all its modules by default. This is e.g. the case of EMMO that for instance doesn't load pre-fixed and non-coherent units by default. Hence, by default not all concepts are accessible from the namespace object.
To address these two issues:
The text was updated successfully, but these errors were encountered: