RDF store at scale — rebuild and query under a full catalog
Part of the Scale and reliability validation EPIC.
What
The RDF store is built from the whole catalog and has never been measured at one.
- Full store rebuild at target asset count: wall clock, peak memory, failure modes.
- Query latency against a fully populated store.
- Behaviour when a rebuild is interrupted.
Related correctness work is #31105, tracked under the Ontology Studio EPIC. This issue is the scale half.
Done when
- RDF rebuild and query numbers published from the harness at target asset count.
- The interrupted-rebuild path leaves the store in a known state, not a partial one.
Input for the rebuild estimate, found while working #32048. Verified against main @ 957d0c3fa5.
Every lineage edge is stored twice, mirrored — the triple count is 2× the edge count
RdfRepository.buildLineageModel writes both directions for a single edge:
// PROV-O: to wasDerivedFrom from (reverse direction for semantic correctness)
Property derivedFrom = model.createProperty("http://www.w3.org/ns/prov#", "wasDerivedFrom");
toResource.addProperty(derivedFrom, fromResource); // RdfRepository.java:836
// OpenMetadata-specific upstream for compatibility
Property upstream = model.createProperty("https://open-metadata.org/ontology/", "UPSTREAM");
fromResource.addProperty(upstream, toResource); // RdfRepository.java:840
Same fact, opposite directions, both persisted. So a catalog with 2M lineage edges produces 4M triples for the edges alone, before lineage details — which add om:hasLineageDetails, two rdf:type assertions and the PROV Activity predicates per edge on top.
This multiplier does not appear to be stated anywhere, and it changes any rebuild wall-clock, memory or disk estimate this issue produces. Worth making it an explicit input to the harness rather than something the numbers absorb silently.
Two related notes for whoever picks this up:
- The shipped Fuseki manifest is
replicas: 1(docker/rdf-store/kubernetes/fuseki-deployment.yaml:37). Whatever the rebuild numbers turn out to be, there is no HA on the store itself, which belongs in the same picture. RdfIndexAppruns a post-run compaction step (RdfIndexApp.java:223-248) whose comment says disk reclamation lags the reindex by up to ten minutes. Peak disk during a rebuild is therefore higher than steady-state disk, and the harness should measure the peak rather than the settled figure.
There is prior art in the closed #30115 ("Scale RDF/Fuseki indexing for million-relation catalogs") that may already cover part of this.