Repository navigation
Fixes 35501: Report which reasoning operations a store implements, and add NOT_IMPLEMENTED - #35502
Conversation
…EMENTED Capabilities gain an operations list (REFRESH, CHECK, EXPLAIN, RESULTS, QUERY, each AVAILABLE or NOT_IMPLEMENTED), so OpenMetadata can tell a store that cannot yet perform an operation from one that failed. The problem codes gain NOT_IMPLEMENTED, permanent for a store build, beside the transient NOT_READY. Limits become mandatory per operation instead of for readiness: limits lists what the store enforces, and the schema rejects an AVAILABLE operation without the limits it needs. Readiness stays the memory-budget and admission answer. Generated Java and TypeScript gain only the new list, its two enums and the new problem code.
Missing required limits now leave an operation NOT_IMPLEMENTED instead of failing readiness, and OM negotiates operations through capabilities.
❌ PR checklist incompleteThis PR cannot be merged until the following are addressed on its linked issue:
The fields live on the linked issue in the Shipping project (open the issue → right sidebar → Projects). After you set them, re-run this check (or push a commit) — issue/project changes do not re-trigger it automatically. Maintainers can bypass this check by adding the |
Code Review ✅ Approved🟡 Medium risk · Adding optional operation declarations changes RDF reasoning negotiation; clients may treat legacy stores without the field as unable to run operations and disable features. Adds per-operation availability reporting to RDF reasoning capabilities, so a store lists which of REFRESH, CHECK, EXPLAIN, RESULTS and QUERY it implements, plus a permanent VerificationRules No rules evaluated Functional validation Not enabledAuto-approval Not enabledFor more verification details, comment OptionsDisplay: compact → Showing compact verification results. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source |
|
|



Describe your changes:
Fixes #35501
Follow-up to #34975 and #35199 (phase 2 of
docs/plans/2026-10-07-fuseki-native-reasoning.md), found while building open-metadata/jena#2. Capabilities now say which operations a store implements, a new problem code says "this build cannot do that", and limits become mandatory per operation instead of per readiness.Type of change:
High-level design:
operationsinrdfReasoningCapabilities.json: at most one{operation, availability, reason}perREFRESH/CHECK/EXPLAIN/RESULTS/QUERY(contains/maxContains: 1), availabilityAVAILABLEorNOT_IMPLEMENTED. Unlisted or absent meansNOT_IMPLEMENTED. The field is optional, so an older store still validates;protocolVersionstays 1.NOT_IMPLEMENTEDproblem code inrdfReasoningJob.json: permanent for a build, next toNOT_READY(temporary, retry whenREADY). Chosen overUNSUPPORTED_OPERATIONbecause it matches the HTTP 501 the store sends and OpenMetadata's ownNOT_IMPLEMENTEDerror type, and is not confused with unsupported OWL constructs (PROFILE_VIOLATION, coverage).limitslists only what the store enforces;allOf/if/thenrejects anAVAILABLEoperation without the limits it needs (every job operation:maxQueuedJobs,maxJobSeconds,maxDiskBytes,maxClosureAxioms,maxIndividuals,maxExpressionDepth,maxImports;REFRESHaddsmaxDerivedTriples,maxRulePasses;RESULTS/QUERYaddmaxResultRows;QUERYaddsmaxQuerySeconds). Readiness depends only on admission. The plan's resource contract and phase 7 negotiation text are updated.docs/decisions/2026-10-14-rdf-reasoning-capabilities-list-each-operation-and-the-limits-it-enforces.md; the 2026-10-11 request record gets a v2 amendment (a new operation is also added to the capabilities enum and its limit rules).RdfReasoningCapabilityOperation,RdfReasoningOperationAvailability,RdfReasoningOperationSupportand one enum value; TS regenerated with the json2ts process (quicktype 20.0.27), which reproduces main's output byte for byte;rdfReasoningSnapshot.tsandrdfReasoningJobRequest.tsare unchanged.Tests:
Use cases covered
AVAILABLEoperation without its required limits (closure, rule passes, query deadline, row limit, job deadline) is rejected; a store lists only the limits it enforces; an operation needs only its own limits.capturewithNOT_IMPLEMENTEDvalidates.Unit tests
RdfReasoningContractTest: 56 run, 0 failures (43 before): new examplesoperations-not-implemented-capabilitiesandnot-implemented-job, 7 rejection cases and 2 acceptance cases.Backend integration tests
JobServiceTestchecks the store's capabilities and jobs against these schemas.UI screen recording:
Not applicable — schema/backend only.
Checklist:
Fixes <issue-number>: <short explanation>Fixes #<issue-number>above.