Open Data Integration Benchmark Evaluation Lab
PyODIBEL generates and evaluates benchmark datasets for data integration tasks such as entity resolution, schema matching, and entity fusion. The datasets are built from Linked Open Data, public dumps (DBpedia, Wikipedia, Wikidata), and existing benchmark exports.
Version 0.1.0 is the alpha consolidation (OD-M0). The supported surface is the Python library under src/pyodibel and the workflows marked supported in the inventory. Abstract API types, the Scala temporal-KG jobs, and most scripts under resources/ are experimental.
Python >=3.10,<3.13. Spark commands need Java 17 (the Dockerfile and pom.xml use 17; a Java 8 default will fail).
uv sync --extra testOptional extras: test (pytest), docs (MkDocs), examples (pandas, for resources/examples/entity_resolution_benchset.py). Tests are not part of the installed package; run them from a checkout:
uv run pytest src/pyodibel/test -m "not network and not spark" # smoke, no Java needed
uv run pytest src/pyodibel/test -m "not network" # includes Spark, needs Java 17Network tests (-m network) are opt-in. CI runs both commands in .github/workflows/tests.yml on pushes to main and on pull requests. Scala mvn test is not covered by CI.
The console script is pyodibel. The Scala jobs are a separate Maven build: mvn package produces the jar used by the Dockerfile (ai.scads.odibel.main.Main).
The Python library and the Scala jobs are separate Spark runtimes and do not share a jar or a session. uv.lock resolves PySpark 4.1.2; pyproject.toml allows pyspark>=3.5.7, and the Python tests pass on both 3.5.7 and 4.1.2 with Java 17. pom.xml builds the Scala jobs against Spark 3.5.1 (Scala 2.13, Java 17). If you connect PySpark to an existing Spark 3.5 cluster, install a matching pyspark==3.5.*.
RDF on Spark, documented in docs/rdf2.md:
from pyodibel.management.spark_mgr import get_spark_session
from pyodibel.operations.rdf.rdf2 import rDF2
spark = get_spark_session("example")
rdf = rDF2.parse(spark, "/path/to/input.nt")CLI:
pyodibel rdf run --input /path/to/input.nt --output /path/to/output.nt --help
pyodibel rdf schema-graph --input /path/to/input.nt --output /path/to/schema.csv --helpAlso supported, with tests: N-Triples I/O and reachable subgraphs, shading and match clusters, stratified and representative sampling, in-memory entity filter/project/join, RocksDB and HTTP caches, entity-resolution benchmark data and evaluation, and overlapping subset construction (pyodibel.datasets.mp_mf).
KGI-Bench domain datasets from DBpedia and Text2KGBench ontologies are documented in docs/kgi_data.md. The scripts live in resources/text2kgbench/.
Input datasets and validated runs are registered under data/<dataset_id>/.odibel/ (metadata only; payloads stay local). The prototype pyodibel data commands (hash, verify, status, commit, log) check and version them; see docs/datasets.md.
These exist in the tree and are not a stable API:
pyodibel.apiinterfaces (Entity,Source,Operation,Benchmark,Evaluator) and the schema-matching and entity-fusion packagesGradoopSourcefor FAMER/Gradoop exports- Spark operation stubs that raise
NotImplementedError pyodibel.management.systemkg(imports withoutkgcore;require_kgcore()raises a clearImportErroruntil the external package is installed)- Not implemented and no longer exported from
pyodibel:WikidataDumpSource,LinkedDataSource,StorageBackend,PartitionStrategy import pyodibeldoes not configure logging or writepyodibel.log; callpyodibel.setup_logging()to opt in- Dataset scripts under
resources/other than the text2kgbench path above, including MovieKG (tracked in issues #11–#14) - The Scala DBpedia temporal KG pipeline under
src/main/scala/
src/pyodibel/ installed library (api, operations, benchmark, cache, cli, source)
src/main/scala/ Spark/Scala jobs (temporal KG)
resources/ dataset generation workflows, not installed
data/ registered datasets; only .odibel/ metadata is versioned
docs/ MkDocs site, including the OD-01 inventory
pom.xml Scala build
pyproject.toml Python build
New reusable code belongs in src/pyodibel/. A one-off generator stays in resources/<workflow>/ until a second workflow needs it. Details, branch dispositions, and follow-up issues are in docs/inventory.md.