Skip to main content

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


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

File hashes

Hashes for probs_module_ontology_conversion-2.0.0.tar.gz
Algorithm Hash digest
SHA256 54a4a2b397c300be0a449297bc259a07015bb02abd84c8a480798440f1207ba3
MD5 71f88994cb989a45aadacc8eec226ab7
BLAKE2b-256 3202cf5dee0ae4322a6ee8f2ae7af8e2b5c5c1c31acf9b770f176c349d656218

See more details on using hashes here.

File details

Details for the file probs_module_ontology_conversion-2.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for probs_module_ontology_conversion-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 10d75f08edd18bebabc37b76186bed8452e63b736a3b30a7eb0673db08695989
MD5 75bdc852fac39c2c50f7f7437d96ed6d
BLAKE2b-256 eae262c155494cae8d7ee8aac539af5abb930c6fe5cc70307329419728571285

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page