semantic-benchmark
Reusable Python helpers for semantic benchmark descriptions, aggregate RO-Crate creation, and RoHub provenance workflows.
Install
pip install semantic-benchmark
Install optional features with extras:
pip install "semantic-benchmark[rocrate]"
pip install "semantic-benchmark[all]"
To install the latest unreleased version directly from GitHub:
pip install "semantic-benchmark[all] @ git+https://github.com/Simulation-Benchmarks/semantic-benchmark.git"
Provided Modules
semantic_benchmark.semantics: dataclasses andBenchmarkLoaderfor JSON-LD benchmark descriptions.semantic_benchmark.rohub: RoHub configuration, upload, download, annotation, and query helpers.semantic_benchmark.rocrate: aggregate RO-Crate creation and validation helpers.semantic_benchmark.runner: shared parameter-file, workspace, resource staging, archive, logging, and aggregate RO-Crate helpers for project benchmark runners.
semantic_benchmark.semantics is available from the base installation.
semantic_benchmark.rocrate requires the rocrate extra.
semantic_benchmark.rohub is available from the base installation.
The root semantic_benchmark package re-exports the semantic classes for backwards compatibility.
The legacy semantic_benchmark.semantic module also remains as a compatibility shim.
Loaded numerical variables and parameters expose both unit (the original
JSON-LD value) and unit_iri (the full IRI expanded through the document's
namespace bindings). Consumers should use unit_iri when creating links.
semantic_benchmark.rohub.download_benchmark_resources(...) downloads the
requested benchmark resources from a RoHub research object. The semantic file
is selected from the Annotation Collection resource in list_resources().
Passing path="benchmark" (CLI: --path benchmark) exports the complete research
object using ros_export_to_rocrate(..., use_format="zip") and extracts its
contents directly into benchmark/. If path / --path is omitted, the crate
is extracted into the current directory. The directory is created if needed, and
the temporary ZIP is removed afterward. The returned mapping contains the research object identifier
under RO-Crate and the annotation resource identifier under
Annotation Collection for the requested downloads.
The package also exposes the
download-semantic-benchmark CLI.
upload-semantic-benchmark calls upload_provenance_rocrate(...) directly.
It accepts --provenance_folderpath (the RO-Crate ZIP), --benchmark-name,
--username, --password, and optional --code-repository-url,
--used-software-url, and --use-production-rohub arguments.
semantic_benchmark.rocrate.create_main_ro(...) can validate the generated
aggregate crate by passing validation_profile. The package writes the RO-Crate
zip, unpacks it to a validation directory, and runs validate_rocrate(...).
Repository-specific projects can override the packaged RoHub defaults with:
import semantic_benchmark.rohub as rohub
rohub.configure_repository_settings(
rohub_config={...},
)
Metadata
Release files for semantic-benchmark 0.2.1
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 | |
|---|---|---|---|---|
| semantic_benchmark-0.2.1.tar.gz | 31.4 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| semantic_benchmark-0.2.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 67.0 kB
Release files / semantic_benchmark-0.2.1.tar.gz
| Download URL | semantic_benchmark-0.2.1.tar.gz |
|---|---|
| Size | 31.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f7ce018b1cc091de73d4392f21c430be67caf5ca1b5da4f852493f21915b1658
|
|
BLAKE2b-256 checksum How to use checksums |
7e43dd14aec5a34e926ab77fa2f8d1b573152f4ff4775e0ce5565bb6f5467672
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|
Release files / semantic_benchmark-0.2.1-py3-none-any.whl
| Download URL | semantic_benchmark-0.2.1-py3-none-any.whl |
|---|---|
| Size | 35.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
027c6d114391d226ac52a4a72ddb6453f532503109d4db004d829e08b99eb808
|
|
BLAKE2b-256 checksum How to use checksums |
d2686e4a215117fcc2e84be1ee2976ed7fc41c65e36b8eae85057a9d853c1a2e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|
Security for semantic-benchmark 0.2.1
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.