Skip to main content

A rules engine for RDF data

Project description

PyPI - Status

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 quads. They are simply applied until no new quads 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.

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 a module, maker, and params. 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).

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

rdf_engine-225.tar.gz (8.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rdf_engine-225-py3-none-any.whl (10.8 kB view details)

Uploaded Python 3

File details

Details for the file rdf_engine-225.tar.gz.

File metadata

  • Download URL: rdf_engine-225.tar.gz
  • Upload date:
  • Size: 8.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for rdf_engine-225.tar.gz
Algorithm Hash digest
SHA256 e8384dfb5a638d836960d2d9579022d7f58dbe43bfd7e8aae41297b1aca313df
MD5 c95c12effe3610a287c6c821d350f492
BLAKE2b-256 68c6a4cdef01b354549a20533c4dd919d1a6077edd5a5cf382523b3cd9c4697f

See more details on using hashes here.

Provenance

The following attestation bundles were made for rdf_engine-225.tar.gz:

Publisher: python-publish.yml on pnnl/rdf-engine

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file rdf_engine-225-py3-none-any.whl.

File metadata

  • Download URL: rdf_engine-225-py3-none-any.whl
  • Upload date:
  • Size: 10.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for rdf_engine-225-py3-none-any.whl
Algorithm Hash digest
SHA256 a37deceb072f7b71b8e94e6cd23eab5376b00488e905e7f617388fe4ab5ae8b9
MD5 37302070dfb341b7569e2709a068c69a
BLAKE2b-256 86e8c4486a709e58a4b14c790787930860c148ceddab7b56778414de0dfe05e9

See more details on using hashes here.

Provenance

The following attestation bundles were made for rdf_engine-225-py3-none-any.whl:

Publisher: python-publish.yml on pnnl/rdf-engine

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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