Skip to main content

semops-system

SemOps System as one Python package:

  • the HOLOS RDF 1.2 store and SPARQL 1.2 engine, with GeoSPARQL, SHACL and the fn:, afn: and spif: function libraries;
  • the SHACL engine;
  • tarka, for mapping tables and data frames to RDF;
  • the 61 ontology quality checks.

One native extension holds them all, built from one commit of the SemOps System workspace.

pip install semops-system
pip install "semops-system[polars]"     # to map Polars data frames with tarka as well
import semops_system as so

store = so.holos.Store()                      # in memory; Store("path") persists to disk
store.update("""
    PREFIX ex: <http://example.org/>
    INSERT DATA { ex:alice ex:age 42 {| ex:source ex:census |} }
""")
store.query("ASK { ?r <http://www.w3.org/1999/02/22-rdf-syntax-ns#reifies> ?t }")   # True

report = so.shacl.Shapes.from_file("shapes.ttl").validate_file("data.ttl")
report.conforms

mapping = so.tarka.Mapping.tarql_file("people.tarql")
mapping.triplify(polars_frame)

run = so.check("ontology.ttl")                # the quality checks, as `semops check` runs them
for finding in run["findings"]:
    print(finding["severity"], finding["check_id"], finding["focus_node"])

so.holos, so.shacl and so.tarka are the modules the holosdb, shacl and tarka-rdf wheels carry, with the same classes and functions, so their documentation applies as it stands: HOLOS, SHACL engine, tarka.

so.check(*paths, engine="both", data=None) reads the files into one graph and runs each check as a SHACL shape and as a SPARQL query, merging the findings. so.check_text(text, format) does the same for text, and so.list_checks() lists the registry, each check with how check runs it (sparql, shacl, native), and runs and not_run for the 13 that only the suite or the extension runs. With data, a list of files, the data is also checked against the ontology the paths give (CNF-001 to CNF-005, with_data in the list), as semops check --data does. A run is a dict: findings, failed (the checks whose query did not run) and complete, which is false when any did not.

The semops command

The wheel installs the semops command, the same command as the binary, with every subcommand: serve, query, load, validate, map, check, diff, repair and the rest. A build that has Python needs nothing else to gate on the quality checks:

pip install semops-system
semops check ontology/*.ttl --format sarif --out semops.sarif

python -m semops_system runs it too. Under semops serve, --max-query-memory is not enforced: an extension module cannot install the counting allocator the binary has. For a server, prefer the binary or the container image.

tarka produces RDF 1.1. To get RDF 1.2 from its output, load it into a store and run SPARQL 1.2. For example, this annotates every mapped triple with its source:

INSERT { ?s ?p ?o {| ex:source ex:spreadsheet |} } WHERE { ?s ?p ?o }

Releases

  • 0.32.0 adds a graph API to semops_system.holos (term objects, triples(), subjects(), objects(), value(), prefixes, load_text()), OWL 2 RL entailment (Store.entail(profile="owl-rl")), and check(..., data=[...]) for the CNF checks.
  • 0.31.1 fixes SHACL-SPARQL for a $this inside an RDF 1.2 triple term, and HOLOS's SERVICE for the variables inside one.
  • 0.31.0 needs Polars only with [polars], adds upload and download and reads Azure Blob Storage URLs as inputs, and carries the SHACL fix for a computed ?value.
  • 0.30.0 installs the semops command, which now has diff and repair.
  • 0.29.0 was the first native release.
  • 0.29.0.dev1 was a bridge that installed three separately released engines (holosdb 0.27.0, shacl 0.3.9 and tarka-rdf 0.3.1) under these names. Code written against it keeps working.

Wheels are built for Linux (x86_64 and aarch64, glibc 2.28 or later), macOS (Apple Silicon and Intel) and Windows (x64), each for every CPython from 3.11. On other platforms, pip builds from the sdist, which needs a Rust toolchain, a C++ compiler and libclang.

Licence: MIT OR Apache-2.0.

Metadata

Release files for semops-system 0.32.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for semops-system 0.32.0
File Size Uploaded Provenance Actions
semops_system-0.32.0.tar.gz 1.5 MB With provenance Details for semops_system-0.32.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for semops-system 0.32.0
File Actions
semops_system-0.32.0-cp39-abi3-win_amd64.whl CPython 3.9 abi3 Windows x86-64 Details for semops_system-0.32.0-cp39-abi3-win_amd64.whl
semops_system-0.32.0-cp39-abi3-manylinux_2_28_x86_64.whl CPython 3.9 abi3 Linux glibc 2.28+ x86-64 Details for semops_system-0.32.0-cp39-abi3-manylinux_2_28_x86_64.whl
semops_system-0.32.0-cp39-abi3-manylinux_2_28_aarch64.whl CPython 3.9 abi3 Linux glibc 2.28+ ARM64 Details for semops_system-0.32.0-cp39-abi3-manylinux_2_28_aarch64.whl
semops_system-0.32.0-cp39-abi3-macosx_11_0_arm64.whl CPython 3.9 abi3 macOS 11.0+ ARM64 Details for semops_system-0.32.0-cp39-abi3-macosx_11_0_arm64.whl
semops_system-0.32.0-cp39-abi3-macosx_10_13_x86_64.whl CPython 3.9 abi3 macOS 10.13+ x86-64 Details for semops_system-0.32.0-cp39-abi3-macosx_10_13_x86_64.whl

Total release size: 113.2 MB

Release files / semops_system-0.32.0.tar.gz

Download URL semops_system-0.32.0.tar.gz
Size 1.5 MB
Tags Source
SHA-256 checksum
How to use checksums
1fdc2ebc5dfcc63180065018fbe4301e20fed4f7f52229dceb7cea25a660fdfe
BLAKE2b-256 checksum
How to use checksums
e6d4cd02298c053e78074ffe7fae82299afd4023c79f92e156104109bf215c4d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Dec 2, 2026.

Transparency log

Release files / semops_system-0.32.0-cp39-abi3-win_amd64.whl

Download URL semops_system-0.32.0-cp39-abi3-win_amd64.whl
Size 22.4 MB
Tags CPython 3.9 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
acb17db70616aa906bbf22a16b66b0ac60aa47e72a824830a53485d700088820
BLAKE2b-256 checksum
How to use checksums
a7bb1cba322ac6521dacfc7b8bcbb63291e21a1091e6c46349c4c8029745a5be
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Dec 2, 2026.

Transparency log

Release files / semops_system-0.32.0-cp39-abi3-manylinux_2_28_x86_64.whl

Download URL semops_system-0.32.0-cp39-abi3-manylinux_2_28_x86_64.whl
Size 23.7 MB
Tags CPython 3.9 Linux glibc 2.28+ x86-64 abi3
SHA-256 checksum
How to use checksums
1d56b70f9e888f2877578f37bdd8f8aa4c5e5aae5be04e41082c573dd3dad177
BLAKE2b-256 checksum
How to use checksums
58555712cb6c2e0e39b4714ee3ddc221db8c02d4b48a97ea7580ed07a23be6e4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Dec 2, 2026.

Transparency log

Release files / semops_system-0.32.0-cp39-abi3-manylinux_2_28_aarch64.whl

Download URL semops_system-0.32.0-cp39-abi3-manylinux_2_28_aarch64.whl
Size 22.6 MB
Tags CPython 3.9 Linux glibc 2.28+ ARM64 abi3
SHA-256 checksum
How to use checksums
14c10bf6cb780ea22d82ca231ff3c333d2ea38f4320864925414185b4303a7bb
BLAKE2b-256 checksum
How to use checksums
670bbb1b4fcdd06ab58330aca03c58f16e5fbb4348e8231aa47a4806b76256fd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Dec 2, 2026.

Transparency log

Release files / semops_system-0.32.0-cp39-abi3-macosx_11_0_arm64.whl

Download URL semops_system-0.32.0-cp39-abi3-macosx_11_0_arm64.whl
Size 20.8 MB
Tags CPython 3.9 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
89a412e46d39337e9713f99de5c7acd430909020ef20f27215c435eb85954d7c
BLAKE2b-256 checksum
How to use checksums
235638b46157e46545301b3f97144d88abf048833a05f6af605f9cadf93a9d0e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Dec 2, 2026.

Transparency log

Release files / semops_system-0.32.0-cp39-abi3-macosx_10_13_x86_64.whl

Download URL semops_system-0.32.0-cp39-abi3-macosx_10_13_x86_64.whl
Size 22.3 MB
Tags CPython 3.9 abi3 macOS 10.13+ x86-64
SHA-256 checksum
How to use checksums
d658b51f32d4ae7e69f29acc23606f7e5ae20b961d7619f85fa9493277defa85
BLAKE2b-256 checksum
How to use checksums
e10fd91ae6c002f41a31fc08c235c6769034721b40754ceb2606ec7fbf936287
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Dec 2, 2026.

Transparency log

Security for semops-system 0.32.0

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 6 files in this release have been uploaded with provenance metadata.

Select from 6 files

Attestation for semops_system-0.32.0.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 Dec 2, 2026.

Transparency log

A 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page