Add your description here
Project description
A slightly opinionated, common set of 'rules' for creating rdf data using 'rdf-engine':
- Data Rules: for loading tables (csv), hierarchical (json), and rdf (ttl).
- Mapping rule: SPARQL construct
- Ontology rules: Inference and validation using TopQuadrant
These rules come together in the 'engine'.
Development
Develop with uv sync --all-packages --all-extras.
Run python tasks.py stamp_ver before pypi publishing.
Design Choices
These are choices given the common use case of mapping data to an ontology. They are somewhat firm.
- RDF1.2 annotates tripes with metadata as
<<?s ?p ?o>> ?mp ?mowhere?mpand?mocorrespond to simple (key,value) pairs of metadata. - Mappings are in the form of SPARQL constructs
stored as files with a
.mapping.rqextension (can also be.mapping.sparql). - Each (specified) ontology will be processed separately.
Quick Start
Examine how rules are fed into an engine in the tests. The common workflow is:
-
Specify rules. Each rule is constructed by providing arguments to
mkrule.mkruleprocesses objects such as file paths and data objects. A distinction is made for 'data rules'; These are only triggered once in the beginning. -
Specify engine run parameters. See
runfunction documentation. -
Extract data subsets with queries. 'System' queries are
mapped_and_inferredandvalidation(results). It's best to extract these using thequeryfunction as they slightly depend on configuration.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file rdf_rules-2026.8.61.tar.gz.
File metadata
- Download URL: rdf_rules-2026.8.61.tar.gz
- Upload date:
- Size: 8.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
53f780d1cc446053cd894c20b9e3128860197194c307db636495bb534f87d879
|
|
| MD5 |
385d4764bc579128883e4c05ac6e0972
|
|
| BLAKE2b-256 |
0b068ed02e1ed66952a8673b3a378e62f785f8b23fa53aab9635c7efe125fc6b
|
Provenance
The following attestation bundles were made for rdf_rules-2026.8.61.tar.gz:
Publisher:
python-publish.yaml on pnnl/rdf-rules
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
rdf_rules-2026.8.61.tar.gz -
Subject digest:
53f780d1cc446053cd894c20b9e3128860197194c307db636495bb534f87d879 - Sigstore transparency entry: 2314316044
- Sigstore integration time:
-
Permalink:
pnnl/rdf-rules@270471a284bb9443aedc7a049445121d907a3847 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/pnnl
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yaml@270471a284bb9443aedc7a049445121d907a3847 -
Trigger Event:
push
-
Statement type:
File details
Details for the file rdf_rules-2026.8.61-py3-none-any.whl.
File metadata
- Download URL: rdf_rules-2026.8.61-py3-none-any.whl
- Upload date:
- Size: 12.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4d057ea5f2aa73401f8d3fe72b0458a1cf964982c47716fa9d458e0266a0a535
|
|
| MD5 |
44053a53442fae29b57545af80d7c3e1
|
|
| BLAKE2b-256 |
b56ae6a6851374d1b9e96b59d8ce1ef67dfdc1472d8ef729680fb21c962dd8c9
|
Provenance
The following attestation bundles were made for rdf_rules-2026.8.61-py3-none-any.whl:
Publisher:
python-publish.yaml on pnnl/rdf-rules
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
rdf_rules-2026.8.61-py3-none-any.whl -
Subject digest:
4d057ea5f2aa73401f8d3fe72b0458a1cf964982c47716fa9d458e0266a0a535 - Sigstore transparency entry: 2314316051
- Sigstore integration time:
-
Permalink:
pnnl/rdf-rules@270471a284bb9443aedc7a049445121d907a3847 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/pnnl
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yaml@270471a284bb9443aedc7a049445121d907a3847 -
Trigger Event:
push
-
Statement type: