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.
Usage
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.
Metadata
Release files for rdf-rules 2026.8.68
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| rdf_rules-2026.8.68.tar.gz | 8.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| rdf_rules-2026.8.68-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 22.7 kB
Release files / rdf_rules-2026.8.68.tar.gz
| Download URL | rdf_rules-2026.8.68.tar.gz |
|---|---|
| Size | 8.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e3444b3f1b87939a63b63fe622264e765a8abce2645dbcbe813c50925ed271cb
|
|
BLAKE2b-256 checksum How to use checksums |
71127bb574f4c98ba35b8f7cce66e795a382561c0a1b733870f99fdd1497492d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 14, 2026.
Transparency logRelease files / rdf_rules-2026.8.68-py3-none-any.whl
| Download URL | rdf_rules-2026.8.68-py3-none-any.whl |
|---|---|
| Size | 14.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a8491b6e22f7d6c192d54bf9d72277583ab17659033db6a7125705a3960d391b
|
|
BLAKE2b-256 checksum How to use checksums |
f4424f7520553b4a6ecc940f41923bb6c735c1b559aedbf20a427f85fa84e5fc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 14, 2026.
Transparency log