RDF-Engine
Why?
Motivation: This was developed as part of BIM2RDF where the conversion from BIM to RDF is framed as 'mapping rules'.
How?
Rules are processes that generate triples. They are simply applied until no new triples are produced. Oxigraph is used to store data.
A rule is defined as a function that takes an Oxigraph instance and returns quads.
Features
- Handling of anonymous/blank nodes: They can be derandomized.
- Oxigraph can handle RDF-star data and querying.
However, RDF-star is derandomized for each graph in a rule.
RDF-star data is expected to be of form
<<data.subject data.predicate data.object >> meta.predicate meta.object.
Usage
The package can be obtained from PyPi.
Note the CLI is optional: rdf-engine[cli].
A 'program' is defined as a sequence of engine runs initialized by a `db'. Each engine run takes:
- (engine)
params - and a list of
rules. Each rule needs amodule,maker, andparams. See program example in test script.
Development Philosophy
- KISS: It should only address executing rules. Therefore, the code is expected to be feature complete (without need for adding more 'features').
- Minimal dependencies: follows from above.
- Explicit > Implicit: Parameters should be specificed (explicitly).
Metadata
Release files for rdf-engine 206
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| rdf_engine-206.tar.gz | 7.7 kB | With provenance | Details for rdf_engine-206.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| rdf_engine-206-py3-none-any.whl | Python 3 | none | any | Details for rdf_engine-206-py3-none-any.whl |
Total release size: 17.8 kB
Release files / rdf_engine-206.tar.gz
| Download URL | rdf_engine-206.tar.gz |
|---|---|
| Size | 7.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ee00a304dc12f87eb55a5eeeb4c11db27aa9a65d13204a4ecc37eecdd5561066
|
|
BLAKE2b-256 checksum How to use checksums |
430cfd45711c96a120c8294810fb23230333b6fcaa85e83ad0e058ba366d108c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.8
|
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 Jan 24, 2025.
Transparency logRelease files / rdf_engine-206-py3-none-any.whl
| Download URL | rdf_engine-206-py3-none-any.whl |
|---|---|
| Size | 10.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fd8cebf021518b0d466334e4b54b1a934a3324277f30e5744c098603906ecafa
|
|
BLAKE2b-256 checksum How to use checksums |
8520325aaea6f96aea5f4ba4cc514f11efd56d30619138ad6502948833e6a2eb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.8
|
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 Jan 24, 2025.
Transparency logSecurity for rdf-engine 206
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.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for rdf_engine-206.tar.gz
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 Jan 24, 2025.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.