Scripts for ontology conversion for the PRObs ontology
Project description
PRObs ontology conversion module
This module contains scripts for converting an ontology to Datalog rules and bundling additional required facts together.
These scripts are compatible with RDFox version 7.
Running the RDFox scripts
This module reads the ontology definitions and data, and extracts the equivalent Datalog rules. The data is read from a file called data/ontology.nt
. The Datalog rules are written to a file called data/probs_ontology_rules.dlog
.
To run the module:
RDFox sandbox <root> scripts/ontology-conversion/master
where <root>
is the path to this folder.
Using probs-runner
Using probs-runner, this module can be run using the probs_convert_ontology
function.
Custom builds of the ontology including additional data / external ontologies
We build a version of the PRObs ontology bundled with the core external ontologies (PROV, QUDT) that are used with it, for convenience in loading into tools such as RDFox.
If you want to use additional ontologies or data (e.g., details of specific time periods or regions where your data is measured), you may find it useful to create a custom build by modifying the ontologies in the conversion
subfolder.
See conversion/README.md for more details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file probs_module_ontology_conversion-2.0.0.tar.gz
.
File metadata
- Download URL: probs_module_ontology_conversion-2.0.0.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 54a4a2b397c300be0a449297bc259a07015bb02abd84c8a480798440f1207ba3 |
|
MD5 | 71f88994cb989a45aadacc8eec226ab7 |
|
BLAKE2b-256 | 3202cf5dee0ae4322a6ee8f2ae7af8e2b5c5c1c31acf9b770f176c349d656218 |
File details
Details for the file probs_module_ontology_conversion-2.0.0-py3-none-any.whl
.
File metadata
- Download URL: probs_module_ontology_conversion-2.0.0-py3-none-any.whl
- Upload date:
- Size: 6.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 10d75f08edd18bebabc37b76186bed8452e63b736a3b30a7eb0673db08695989 |
|
MD5 | 75bdc852fac39c2c50f7f7437d96ed6d |
|
BLAKE2b-256 | eae262c155494cae8d7ee8aac539af5abb930c6fe5cc70307329419728571285 |