Reasoner web API

Use the Reasoner's own service root. Public capabilities report the loaded worldview. Semantic operations require authentication.

Method and route Request and response
POST /api/v1/resolve/concept Text containing a concept declaration. Returns the resolved concept.
POST /api/v1/resolve/observable Text containing the complete declaration. Returns an observable, including its semantic qualifications.
POST /api/v1/children A serialized concept. Returns its children.
POST /api/v1/subsumes A JSON array of two concepts. Returns the result of is(first, second).
POST /api/v1/validate/document A typed SemanticValidationRequest. Returns a SemanticValidationResponse with the validation outcome.

Set REASONER_ROOT to the advertised root. Substitute a declaration recognized by the loaded worldview for this example.

curl --fail --header "Authorization: Bearer $KLAB_TOKEN" --header "Content-Type: text/plain" --header "Accept: application/json" --data-binary "earth:Elevation in m" "$REASONER_ROOT/api/v1/resolve/observable"

The response describes meaning. To obtain elevation values, submit the resolved observable in a twin containing the relevant subject. Make an observation ยท Common service contracts

HTTP controller and request types