Calling the Models API using the REST API
The Container ModelsAPI
ModelsAPI
is the container that serves and communicates with the models.
- See C++ ref ModelsAPI
Calling ModelsAPI
Calling ModelsAPI
has four possible forms as explained in Function calls. Two forms for getting the result from
either calling exec from a block or a query (a constant included in the API call). Also, the same two forms but assigning the result to a
block in a container.
Tip: In a call, the base is
model
, the entity is the specific model you want to use, the key is an entry point to your model (typically a predicate like run
, search
, explain
, …) and the block (or constant) passed are the arguments, possibly a tuple.Models in ModelsAPI
The models are created, typically, extending Jazz using uplifting the class ModelsAPI
just registers
the existing models and forwards the calls to them.
Entry points in ModelsAPI
The available entry points are specific to the model you are using. Every model will support run
and id
entry points.
- See C++ ref Model