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 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 deanonimized.
  • Oxigraph can handle RDF-star data and querying. However, if

Usage

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-200.tar.gz (7.2 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-200-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: rdf_engine-200.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for rdf_engine-200.tar.gz
Algorithm Hash digest
SHA256 5674ce1960af6dd9ea95bd7838fa14c1b52443caa274eb057999b575651d4a21
MD5 b67cb02d7173ae70a4e42828d79e3637
BLAKE2b-256 e600123617ef5984d9e1fd1ccbea6c45634bb8d64efb9b11d32b1e9fb7842871

See more details on using hashes here.

Provenance

The following attestation bundles were made for rdf_engine-200.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-200-py3-none-any.whl.

File metadata

  • Download URL: rdf_engine-200-py3-none-any.whl
  • Upload date:
  • Size: 9.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for rdf_engine-200-py3-none-any.whl
Algorithm Hash digest
SHA256 65d3af42df644f17b64befb00df903e025d1b4fe50c0596e0aa9900f58644a8c
MD5 2355f86c9f7190220b8bb69c54912a74
BLAKE2b-256 2eab0c67349a205bb16587d40eee9df9ba990a79726583afddcaf432080912ab

See more details on using hashes here.

Provenance

The following attestation bundles were made for rdf_engine-200-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