Skip to content

Report which QLever built each index - #921

Merged
ddeboer merged 2 commits into
mainfrom
feat/report-qlever-version
Oct 16, 2026
Merged

ddeboer merged 2 commits into
mainfrom
feat/report-qlever-version

Conversation

@ddeboer

@ddeboer ddeboer commented Oct 16, 2026

Copy link
Copy Markdown
Member

Fix #908

A pipeline log now says which QLever built each imported index:

Imported https://example.org/data.nt into QLever 9352d0 (12K triples, to http://localhost:7001/sparql) in 3s

  • @lde/sparql-importer: ImportSuccessful gets an optional, generic engine: { name, version }. version is the engine’s own identifier: a release number, or a commit hash for an engine without releases.
  • @lde/sparql-qlever: the importer reads the git-hash from meta-data.json, both after a fresh build and on a cache hit. For a cached index it reports the QLever that built the index, which can be older than the one serving it. The integration test against the real image asserts the hash.
  • @lde/pipeline (breaking): ResolvedDistribution and ProgressReporter.distributionSelected take one imported: { from, duration, tripleCount?, engine? } object instead of the positional importedFrom, importDuration and tripleCount. The DKG’s and Linked Open Limburg’s reporters don’t implement distributionSelected, so neither needs a change.
  • @lde/pipeline-console-reporter: prints the engine.

The pipeline’s statement coverage threshold drops from 96.74 to 96.73. The uncovered lines are the same as on main; the change removes covered statements, which shifts the ratio.

- Add an optional generic engine ({ name, version }) to ImportSuccessful
- Read QLever’s git-hash from meta-data.json, for fresh and cached indexes
- For a cached index, report the QLever that built it, not the one serving it
- Replace ResolvedDistribution’s importedFrom, importDuration and tripleCount with imported
- Pass that object to ProgressReporter.distributionSelected, now with the import engine
- Print the engine in the console reporter: “Imported <dump> into QLever 9352d0 (…)”

BREAKING CHANGE: ResolvedDistribution takes an ImportDetails object
({ from, duration, tripleCount?, engine? }) as its third argument instead of
importedFrom, importDuration and tripleCount, and exposes it as imported.
ProgressReporter.distributionSelected(dataset, distribution, imported?)
receives the same object.
@ddeboer
ddeboer enabled auto-merge (squash) October 16, 2026 16:31
@ddeboer
ddeboer merged commit 1302a3e into main Oct 16, 2026
4 checks passed
@ddeboer
ddeboer deleted the feat/report-qlever-version branch October 16, 2026 16:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Report which QLever built each index

1 participant