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-195.tar.gz (7.0 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-195-py3-none-any.whl (9.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for rdf_engine-195.tar.gz
Algorithm Hash digest
SHA256 700cf65dfcfeabf0c07892769537267a779669122fcccb5e44b4ba4874c6ca32
MD5 2e3fdb5b716ef2d0f44beb44efccf6ef
BLAKE2b-256 b58bf0de03bdbe8797461af1f2ccecfa965996089d67525d5eb1b302b751f247

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: rdf_engine-195-py3-none-any.whl
  • Upload date:
  • Size: 9.4 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-195-py3-none-any.whl
Algorithm Hash digest
SHA256 72471e743f6654d8c21d76d6464574cc93db4b64a5b1adbd0a67c64eb0c24b21
MD5 19d45c75649ba065cb2d70aa0696f678
BLAKE2b-256 be602027683c8f3765ab11ec0e2031383920ad4f0a82d763ff5e4af3268cac12

See more details on using hashes here.

Provenance

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