semantic-benchmark 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- semantic_benchmark-0.1.0/LICENSE +21 -0
- semantic_benchmark-0.1.0/PKG-INFO +89 -0
- semantic_benchmark-0.1.0/README.md +54 -0
- semantic_benchmark-0.1.0/pyproject.toml +60 -0
- semantic_benchmark-0.1.0/setup.cfg +4 -0
- semantic_benchmark-0.1.0/src/semantic_benchmark/__init__.py +37 -0
- semantic_benchmark-0.1.0/src/semantic_benchmark/rocrate/__init__.py +6 -0
- semantic_benchmark-0.1.0/src/semantic_benchmark/rocrate/create.py +955 -0
- semantic_benchmark-0.1.0/src/semantic_benchmark/rocrate/validation.py +25 -0
- semantic_benchmark-0.1.0/src/semantic_benchmark/rohub/__init__.py +81 -0
- semantic_benchmark-0.1.0/src/semantic_benchmark/rohub/download.py +178 -0
- semantic_benchmark-0.1.0/src/semantic_benchmark/rohub/provenance.py +600 -0
- semantic_benchmark-0.1.0/src/semantic_benchmark/rohub/rohub_config.json +18 -0
- semantic_benchmark-0.1.0/src/semantic_benchmark/semantic.py +3 -0
- semantic_benchmark-0.1.0/src/semantic_benchmark/semantics/__init__.py +342 -0
- semantic_benchmark-0.1.0/src/semantic_benchmark.egg-info/PKG-INFO +89 -0
- semantic_benchmark-0.1.0/src/semantic_benchmark.egg-info/SOURCES.txt +19 -0
- semantic_benchmark-0.1.0/src/semantic_benchmark.egg-info/dependency_links.txt +1 -0
- semantic_benchmark-0.1.0/src/semantic_benchmark.egg-info/entry_points.txt +3 -0
- semantic_benchmark-0.1.0/src/semantic_benchmark.egg-info/requires.txt +15 -0
- semantic_benchmark-0.1.0/src/semantic_benchmark.egg-info/top_level.txt +1 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Simulation-Benchmarks
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: semantic-benchmark
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Reusable helpers for semantic benchmark metadata, RO-Crate aggregation, and RoHub provenance workflows.
|
|
5
|
+
Author-email: Mahdi Jafarkhani <mahdi.jafarkhani@tik.uni-stuttgart.de>
|
|
6
|
+
License-Expression: MIT
|
|
7
|
+
Project-URL: Homepage, https://github.com/Simulation-Benchmarks/semantic-benchmark
|
|
8
|
+
Project-URL: Repository, https://github.com/Simulation-Benchmarks/semantic-benchmark.git
|
|
9
|
+
Project-URL: Issues, https://github.com/Simulation-Benchmarks/semantic-benchmark/issues
|
|
10
|
+
Keywords: benchmark,metadata,provenance,ro-crate,rohub
|
|
11
|
+
Classifier: Development Status :: 3 - Alpha
|
|
12
|
+
Classifier: Intended Audience :: Science/Research
|
|
13
|
+
Classifier: Programming Language :: Python :: 3
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
17
|
+
Classifier: Topic :: Scientific/Engineering
|
|
18
|
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
19
|
+
Requires-Python: >=3.10
|
|
20
|
+
Description-Content-Type: text/markdown
|
|
21
|
+
License-File: LICENSE
|
|
22
|
+
Requires-Dist: rdflib
|
|
23
|
+
Provides-Extra: rocrate
|
|
24
|
+
Requires-Dist: rocrate; extra == "rocrate"
|
|
25
|
+
Requires-Dist: roc-validator; extra == "rocrate"
|
|
26
|
+
Provides-Extra: rohub
|
|
27
|
+
Requires-Dist: pandas; extra == "rohub"
|
|
28
|
+
Requires-Dist: rohub; extra == "rohub"
|
|
29
|
+
Provides-Extra: all
|
|
30
|
+
Requires-Dist: pandas; extra == "all"
|
|
31
|
+
Requires-Dist: roc-validator; extra == "all"
|
|
32
|
+
Requires-Dist: rocrate; extra == "all"
|
|
33
|
+
Requires-Dist: rohub; extra == "all"
|
|
34
|
+
Dynamic: license-file
|
|
35
|
+
|
|
36
|
+
# semantic-benchmark
|
|
37
|
+
|
|
38
|
+
Reusable Python helpers for semantic benchmark descriptions, aggregate RO-Crate creation, and RoHub provenance workflows.
|
|
39
|
+
|
|
40
|
+
## Install
|
|
41
|
+
|
|
42
|
+
```bash
|
|
43
|
+
pip install semantic-benchmark
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
Install optional features with extras:
|
|
47
|
+
|
|
48
|
+
```bash
|
|
49
|
+
pip install "semantic-benchmark[rocrate]"
|
|
50
|
+
pip install "semantic-benchmark[rohub]"
|
|
51
|
+
pip install "semantic-benchmark[all]"
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
To install the latest unreleased version directly from GitHub:
|
|
55
|
+
|
|
56
|
+
```bash
|
|
57
|
+
pip install "semantic-benchmark[all] @ git+https://github.com/Simulation-Benchmarks/semantic-benchmark.git"
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
## Provided Modules
|
|
61
|
+
|
|
62
|
+
- `semantic_benchmark.semantics`: dataclasses and `BenchmarkLoader` for JSON-LD benchmark descriptions.
|
|
63
|
+
- `semantic_benchmark.rohub`: RoHub configuration, upload, download, annotation, and query helpers.
|
|
64
|
+
- `semantic_benchmark.rocrate`: aggregate RO-Crate creation and validation helpers.
|
|
65
|
+
|
|
66
|
+
`semantic_benchmark.semantics` is available from the base installation.
|
|
67
|
+
`semantic_benchmark.rocrate` requires the `rocrate` extra.
|
|
68
|
+
`semantic_benchmark.rohub` requires the `rohub` extra.
|
|
69
|
+
|
|
70
|
+
The root `semantic_benchmark` package re-exports the semantic classes for backwards compatibility.
|
|
71
|
+
The legacy `semantic_benchmark.semantic` module also remains as a compatibility shim.
|
|
72
|
+
|
|
73
|
+
`semantic_benchmark.rohub.download_benchmark_resources(...)` downloads the
|
|
74
|
+
software source code and annotation collection resources from a RoHub research
|
|
75
|
+
object. The package also exposes the `download-semantic-benchmark` CLI.
|
|
76
|
+
|
|
77
|
+
`semantic_benchmark.rocrate.create_main_ro(...)` can validate the generated
|
|
78
|
+
aggregate crate by passing `validation_profile`. The package writes the RO-Crate
|
|
79
|
+
zip, unpacks it to a validation directory, and runs `validate_rocrate(...)`.
|
|
80
|
+
|
|
81
|
+
Repository-specific projects can override the packaged RoHub defaults with:
|
|
82
|
+
|
|
83
|
+
```python
|
|
84
|
+
import semantic_benchmark.rohub as rohub
|
|
85
|
+
|
|
86
|
+
rohub.configure_repository_settings(
|
|
87
|
+
rohub_config={...},
|
|
88
|
+
)
|
|
89
|
+
```
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# semantic-benchmark
|
|
2
|
+
|
|
3
|
+
Reusable Python helpers for semantic benchmark descriptions, aggregate RO-Crate creation, and RoHub provenance workflows.
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
pip install semantic-benchmark
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
Install optional features with extras:
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
pip install "semantic-benchmark[rocrate]"
|
|
15
|
+
pip install "semantic-benchmark[rohub]"
|
|
16
|
+
pip install "semantic-benchmark[all]"
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
To install the latest unreleased version directly from GitHub:
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
pip install "semantic-benchmark[all] @ git+https://github.com/Simulation-Benchmarks/semantic-benchmark.git"
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
## Provided Modules
|
|
26
|
+
|
|
27
|
+
- `semantic_benchmark.semantics`: dataclasses and `BenchmarkLoader` for JSON-LD benchmark descriptions.
|
|
28
|
+
- `semantic_benchmark.rohub`: RoHub configuration, upload, download, annotation, and query helpers.
|
|
29
|
+
- `semantic_benchmark.rocrate`: aggregate RO-Crate creation and validation helpers.
|
|
30
|
+
|
|
31
|
+
`semantic_benchmark.semantics` is available from the base installation.
|
|
32
|
+
`semantic_benchmark.rocrate` requires the `rocrate` extra.
|
|
33
|
+
`semantic_benchmark.rohub` requires the `rohub` extra.
|
|
34
|
+
|
|
35
|
+
The root `semantic_benchmark` package re-exports the semantic classes for backwards compatibility.
|
|
36
|
+
The legacy `semantic_benchmark.semantic` module also remains as a compatibility shim.
|
|
37
|
+
|
|
38
|
+
`semantic_benchmark.rohub.download_benchmark_resources(...)` downloads the
|
|
39
|
+
software source code and annotation collection resources from a RoHub research
|
|
40
|
+
object. The package also exposes the `download-semantic-benchmark` CLI.
|
|
41
|
+
|
|
42
|
+
`semantic_benchmark.rocrate.create_main_ro(...)` can validate the generated
|
|
43
|
+
aggregate crate by passing `validation_profile`. The package writes the RO-Crate
|
|
44
|
+
zip, unpacks it to a validation directory, and runs `validate_rocrate(...)`.
|
|
45
|
+
|
|
46
|
+
Repository-specific projects can override the packaged RoHub defaults with:
|
|
47
|
+
|
|
48
|
+
```python
|
|
49
|
+
import semantic_benchmark.rohub as rohub
|
|
50
|
+
|
|
51
|
+
rohub.configure_repository_settings(
|
|
52
|
+
rohub_config={...},
|
|
53
|
+
)
|
|
54
|
+
```
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=69", "wheel"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "semantic-benchmark"
|
|
7
|
+
version = "0.1.0"
|
|
8
|
+
description = "Reusable helpers for semantic benchmark metadata, RO-Crate aggregation, and RoHub provenance workflows."
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
requires-python = ">=3.10"
|
|
11
|
+
license = "MIT"
|
|
12
|
+
license-files = ["LICENSE"]
|
|
13
|
+
authors = [
|
|
14
|
+
{ name = "Mahdi Jafarkhani", email = "mahdi.jafarkhani@tik.uni-stuttgart.de" },
|
|
15
|
+
]
|
|
16
|
+
keywords = ["benchmark", "metadata", "provenance", "ro-crate", "rohub"]
|
|
17
|
+
classifiers = [
|
|
18
|
+
"Development Status :: 3 - Alpha",
|
|
19
|
+
"Intended Audience :: Science/Research",
|
|
20
|
+
"Programming Language :: Python :: 3",
|
|
21
|
+
"Programming Language :: Python :: 3.10",
|
|
22
|
+
"Programming Language :: Python :: 3.11",
|
|
23
|
+
"Programming Language :: Python :: 3.12",
|
|
24
|
+
"Topic :: Scientific/Engineering",
|
|
25
|
+
"Topic :: Software Development :: Libraries :: Python Modules",
|
|
26
|
+
]
|
|
27
|
+
dependencies = [
|
|
28
|
+
"rdflib",
|
|
29
|
+
]
|
|
30
|
+
|
|
31
|
+
[project.optional-dependencies]
|
|
32
|
+
rocrate = [
|
|
33
|
+
"rocrate",
|
|
34
|
+
"roc-validator",
|
|
35
|
+
]
|
|
36
|
+
rohub = [
|
|
37
|
+
"pandas",
|
|
38
|
+
"rohub",
|
|
39
|
+
]
|
|
40
|
+
all = [
|
|
41
|
+
"pandas",
|
|
42
|
+
"roc-validator",
|
|
43
|
+
"rocrate",
|
|
44
|
+
"rohub",
|
|
45
|
+
]
|
|
46
|
+
|
|
47
|
+
[project.urls]
|
|
48
|
+
Homepage = "https://github.com/Simulation-Benchmarks/semantic-benchmark"
|
|
49
|
+
Repository = "https://github.com/Simulation-Benchmarks/semantic-benchmark.git"
|
|
50
|
+
Issues = "https://github.com/Simulation-Benchmarks/semantic-benchmark/issues"
|
|
51
|
+
|
|
52
|
+
[project.scripts]
|
|
53
|
+
create-semantic-benchmark-rocrate = "semantic_benchmark.rocrate.create:main"
|
|
54
|
+
download-semantic-benchmark = "semantic_benchmark.rohub.download:main"
|
|
55
|
+
|
|
56
|
+
[tool.setuptools.packages.find]
|
|
57
|
+
where = ["src"]
|
|
58
|
+
|
|
59
|
+
[tool.setuptools.package-data]
|
|
60
|
+
"semantic_benchmark.rohub" = ["*.json"]
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"""Top-level package exports for semantic-benchmark."""
|
|
2
|
+
|
|
3
|
+
from semantic_benchmark.semantics import (
|
|
4
|
+
BenchmarkLoader,
|
|
5
|
+
FieldMapping,
|
|
6
|
+
IOObject,
|
|
7
|
+
KGNode,
|
|
8
|
+
MathematicalModel,
|
|
9
|
+
NumericalParameter,
|
|
10
|
+
NumericalVariable,
|
|
11
|
+
ParameterEntry,
|
|
12
|
+
ParameterSet,
|
|
13
|
+
ProcessingStep,
|
|
14
|
+
Publication,
|
|
15
|
+
ResearchProblem,
|
|
16
|
+
SemanticBenchmark,
|
|
17
|
+
TextParameter,
|
|
18
|
+
Tool,
|
|
19
|
+
)
|
|
20
|
+
|
|
21
|
+
__all__ = [
|
|
22
|
+
"BenchmarkLoader",
|
|
23
|
+
"FieldMapping",
|
|
24
|
+
"IOObject",
|
|
25
|
+
"KGNode",
|
|
26
|
+
"MathematicalModel",
|
|
27
|
+
"NumericalParameter",
|
|
28
|
+
"NumericalVariable",
|
|
29
|
+
"ParameterEntry",
|
|
30
|
+
"ParameterSet",
|
|
31
|
+
"ProcessingStep",
|
|
32
|
+
"Publication",
|
|
33
|
+
"ResearchProblem",
|
|
34
|
+
"SemanticBenchmark",
|
|
35
|
+
"TextParameter",
|
|
36
|
+
"Tool",
|
|
37
|
+
]
|