Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mgrub/dsi_from_qudt
https://github.com/mgrub/dsi_from_qudt
Last synced: 10 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/mgrub/dsi_from_qudt
- Owner: mgrub
- License: mit
- Created: 2022-10-19T13:04:17.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-10-25T10:53:37.000Z (about 1 year ago)
- Last Synced: 2023-10-25T12:01:44.531Z (about 1 year ago)
- Language: Python
- Size: 187 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# SPARQL QUDT to DSI extractor test
## Disclaimer
Please be aware that the source code provided in this repository is work in progress and doesn't claim to be correct or complete by any means.
## Goal
- prototypical proof-of-concept implementation to see, whether the conversion is possible at all
- aims to provide a DSI-string for (a selected subset of) the QUDT-units, e.g. to provide this to a user / LaTeX-engine## Run the Code
Try the SPARQL code by copying it into the interface of:
Alternatively, for local execution you can use the provided Python scripts to download the required ontologies
```bash
python download_ontologies.py
```and run them by
```bash
python execute_sparql.py
```Please note, that this requires a Python environment with the packages listed in `requirements.txt`.
The creation of a dedicated Python environment (venv, pyenv, etc. ) is highly recommended.## Known limits and issues
- only units with conversionmultiplier==1.0 and conversionoffset==0.0 considered so far (location+amount of prefixed units (e.g., mm/ms) of the prefix not clear, e.g. check m/ms = km/s )
- some units with DEG_C still show up, although offset units should be filtered?
- not considered so far: official order of quantities in DSI?
- not considered so far: dimensionless quantities like m/m## Links
-
-
-