Reasoner public API

Obtain org.integratedmodelling.klab.api.services.Reasoner from the relevant scope. The service interprets declarations against its currently loaded worldview.

Operation Input and result
capabilities(scope) Returns capabilities including worldview identity, consistency and knowledge revision. Check these before using semantic results across a reload.
resolveConcept(definition) Resolves a concept name or supported semantic declaration to a Concept. Use it for hierarchy and relationship questions.
resolveObservable(definition) Returns the full Observable for a declaration, retaining observable-level qualifications such as a unit. Check for an unresolved or semantically empty result.
is(child, parent) Tests the requested semantic relationship in this order. A hierarchy test alone does not establish that a model can execute in the study area.
resolves(request, candidate, context) Tests whether candidate semantics can satisfy the requested semantics in context. Use the complete declaration when bearer or other clauses matter.

For a client making an observation, obtain the Reasoner from the focused context, resolve the declaration, and pass the resulting observable to that context's observation builder. The sample Java client checks that the result is a quality before submitting it. Java submission example ยท Web API

Full Reasoner interface