<-Data Types Go to ToC API ->

MPAI-MAS V1.1 specifies the ontology of Table 1 to Table 6: the service and its actors, its API, its Data Type, their relations and their values. Every element has a definition and the source of that definition in this Technical Specification. An element marked MPAI choice has no definition of its own in this Technical Specification; the reason is given.

The Controller, the AI Modules, their Ports, the Bouts and the MPAI Store are concepts of MPAI-AIF V3.0; the Instance Credential, the Trust Anchor, the Cryptographic Instance Identity and the Trust Messages are concepts of MPAI-PTF V1.0. This ontology imports their ontologies (Table 5) and defines what MPAI-MAS adds: MPAI as a Service, the Service Controller Instance – a Controller – and the Remote Client Application, the actors of the service, its planes, its life cycle, its Service Level Agreement, its API with its operations, and the AIM Description.

Services have ontologies of their own. Where one of their concepts is close to one of MPAI-MAS, it is given by its identifier: OWL-S 1.2 (a service, its Profile, its Process, its Grounding), the W3C Web of Things Thing Description 1.1 (Interaction Affordances, Forms, Security Schemes) and W3C DCAT 3 (Data Service). Nothing of them is copied.

The ontology in OWL is at https://ontologies.mpai.community/MAS/V1.1/mas.owl (RDF/XML) and, the same in Turtle, at https://ontologies.mpai.community/MAS/V1.1/mas.ttl; this page and those files say the same thing. Other Standards reference its elements by their identifiers, which begin with https://ontologies.mpai.community/MAS/V1.1/mas#.

Table 1 – The service, its actors and its API

Class Is a Definition Source Close to
MPAI as a Service (MaaS) A Service offering access to a Service Controller Instance. Definitions OWL-S: Service
Service Controller Instance (SCI) MPAI-AIF: Controller The instance of a Controller to be activated by the Remote Client Application. Definitions WoT TD: Thing
Remote Client Application (RCA) Application running on a device that is remote to the Service Controller Instance. Definitions
API Client The local client through which a Remote Client Application issues HTTPS Requests to the Server API. MPAI choice: named by the Architecture ("through the local API Client")
MAS API Service Exposes a REST API allowing Remote Client Applications to use AI Modules as a Service: the Server API, which creates the Service Controller Instances and forwards the requests to them. Architecture and Operation DCAT: DataService
Server A remote machine executing one or more AIMs. Definitions
MPAI Store Service Provides a package validation, registration and verification service for AIM Bundles, Metadata and Packages: the MPAI Store as the Service Controller Instance and the Implementers reach it, through the Store API. Architecture and Operation
Deployment Controller Responsible for the provisioning and life cycle management of the resources required for the running of Controllers and AIMs. Architecture and Operation
Deployed Resources The deployed VM and/or containerised resources required for the running of AIMs. Architecture and Operation
Implementer Who registers with the MPAI Store, receiving an Implementer ID, and submits AIM Bundles for conformance validation and publication. Architecture and Operation
AIM Bundle What an Implementer submits to the MPAI Store: the AIM Metadata containing the implementation package URLs and fingerprints. Architecture and Operation MPAI-AIF: AIMImplementation
Package The implementation of an AIM, retrieved from the Implementer's repository by the provisioned resources and checked for validity by submitting its calculated fingerprint to the MPAI Store before activation. Architecture and Operation
Control Plane The deployment and control plane, responsible for the creation and termination of the infrastructure, with no access to application data. Architecture and Operation
Data Plane The application data plane, responsible for the exchange of application data, which is not exposed to the control plane; it carries the Bouts. Architecture and Operation
Service Level Agreement (SLA) What a Remote Client Application and the MPAI as a Service Provider negotiate and agree before the use of the Server API; it describes the application security paradigm. API
Security Paradigm The application security paradigm, chosen from the standard HTTP security paradigms (BASIC, DIGEST, BEARER); not normative. API WoT Security: SecurityScheme
Transport Layer Security (TLS) Cryptographic protocol providing secure communication over a computer network. Every API request uses its most recent version (RFC 8446). Definitions
Unique Universal Identifier (UUID) A 128-bit number designed to be a unique identifier for objects in computer systems. Recommended for the Service Controller Instance and Module Instance IDs. Definitions
MAS API The remote HTTPS-based protocol that exposes the MPAI-AIF Basic API functionality to a Remote Client Application: the minimum profile of its Request and Response Messages. Architecture and Operation OWL-S: ServiceGrounding
API Operation A Request of the MAS API and its Response: an HTTP method on a route under the prefix /MPAI/AIFU, or under the prefix the Service Controller Instance returned. API WoT TD: InteractionAffordance; OWL-S: AtomicProcess; WoT Hypermedia: Form
Route Prefix The prefix of the routes of the API: /MPAI/AIFU, or the alternative prefix the Controller Initialisation Response may return, to be used in all later Requests for that Service Controller Instance. API
Port Path A boundary Port of a Module in a request URL: two path segments, its Data Type in canonical form and its Port Number, under /Input/ or /Output/; the form <DataType>#<PortNumber> is used outside a URL. API
Refusal A refusal of a Bout operation: a standard HTTP status code (RFC 9110) with, as body, the MPAI-PTF Error Code of the check that failed. API WoT Hypermedia: AdditionalExpectedResponse
Service Phase A phase of the life cycle of an MPAI as a Service Instance. Architecture and Operation
Module State The state of a Module in a Service Controller Instance, with the date of its change, as the Responses of the API give it. API MPAI-AIF: Status
Signing Mode How the Service Controller Instance signs the Bout Instances of a Bout it opens on an output Port: each Instance, or a chain at an interval. API
Content Type The media type of the data of a Port in the body of a Request or Response: a native JSON object or a compressed JSON object (a Bout Instance). API

Table 2 – The Data Type and its values

Class Is a Definition Source Close to
AIM Description (MAS-AID) AIM Description describes an AIM, Basic or Composite, implementation in terms of Identifier, Types, Ports and Documentation. AIM Description OWL-S: Profile
Port Direction The direction of the communication flow of a Port of an AIM Description. AIM Description
Documentation Type The type of a document an AIM Description references. AIM Description

Table 3 – The relations

Relation From To Definition Source
offers access to MPAI as a Service Service Controller Instance MPAI as a Service is a Service offering access to a Service Controller Instance. Definitions
is governed by MPAI as a Service Service Level Agreement The Service Level Agreement is agreed before the use of the Server API. API
describes Service Level Agreement Security Paradigm The application security paradigm is described by the Service Level Agreement. API
uses Remote Client Application API Client The Remote Client Application issues HTTPS Requests to the Server API through the local API Client. Architecture and Operation
requests Remote Client Application API Operation The Remote Client Application issues the Requests of the API. Architecture and Operation
exposes MAS API Service API Operation The MAS API Service exposes the API to Remote Client Applications. Architecture and Operation
implements MAS API Service MAS API The MAS API Service implements the MAS API. Architecture and Operation
creates MAS API Service Service Controller Instance The MAS API Service creates a Controller Instance for the management of the AIMs launched for a Remote Client Application. Architecture and Operation
is activated by Service Controller Instance Remote Client Application The Service Controller Instance is the instance of a Controller to be activated by the Remote Client Application. Definitions
launches Service Controller Instance MPAI-AIF: Module The Service Controller Instance launches the Modules the Remote Client Application asks for, giving each an identity. Architecture and Operation
retrieves from Service Controller Instance MPAI-AIF: MPAIStore The Service Controller Instance retrieves Descriptions and Components of AIMs from the MPAI Store. Architecture and Operation
provisions through Service Controller Instance Deployment Controller The Service Controller Instance initiates the provisioning and life cycle management of the resources required for the AIM. Architecture and Operation
provisions Deployment Controller Deployed Resources The Deployment Controller provisions the resources for the AIM, through installation and configuration to operation. Architecture and Operation
runs on MPAI-AIF: AIM Server A Server is a remote machine executing one or more AIMs. Definitions
issues Service Controller Instance MPAI-PTF: Instance Credential The Service Controller Instance issues an Instance Credential to a Remote Client Application that sent a proof of identity, valid until the Instance is deleted. API
gives Service Controller Instance MPAI-PTF: Trust Anchor The Response to the Controller Initialisation gives the Trust Anchor of the Controller of the Service Controller Instance; only from it is it accepted. API
proves its identity with Remote Client Application MPAI-PTF: Cryptographic Instance Identity A Remote Client Application that will give Bouts on input Ports sends its Cryptographic Instance Identity as proof. API
verifies with Remote Client Application MPAI-PTF: Trust Anchor With the public key of the Trust Anchor the Remote Client Application verifies the Bouts the Service Controller Instance gives and the Instance Credential it issues. API
gives data to Remote Client Application MPAI-AIF: Port The Remote Client Application delivers data to the input Ports of the launched Modules, in full or as Bout Instances. Architecture and Operation
takes data from Remote Client Application MPAI-AIF: Port The Remote Client Application receives the data of the output Ports of the launched Modules, in full or as Bout Instances. Architecture and Operation
gives Bout any MPAI-AIF: Bout The Service Controller Instance gives the Bout of an output Port, a Remote Client Application holding an Instance Credential that of an input Port. Architecture and Operation
addresses Port Path MPAI-AIF: Port A Port Path names a boundary Port of the Module by its Data Type and Port Number. API
describes AIM Description MPAI-AIF: AIM An AIM Description describes an AIM, Basic or Composite, implementation. AIM Description
is a restriction of AIM Description MPAI-AIF: AIMMetadata An AIM Description is a restriction of an AI Module Metadata. Definitions
is selected from AIM Description MPAI-AIF: MPAIStore The Server API negotiates through the Store API the selection of appropriate AIM Descriptions. Architecture and Operation
submits Implementer AIM Bundle An Implementer submits an AIM Bundle to the MPAI Store for conformance validation and publication. Architecture and Operation
is validated by AIM Bundle MPAI Store Service The MPAI Store tests the conformance of the code downloaded from the URL declared in the AIM Metadata. Architecture and Operation
is checked by Package MPAI Store Service A received Package is checked for validity by submitting its calculated fingerprint to the MPAI Store. Architecture and Operation
is secured by API Operation Transport Layer Security All API requests use the most recent version of TLS. API
has phase MPAI as a Service Service Phase The life cycle of an MPAI as a Service Instance. Architecture and Operation
is in plane Service Phase any Creation and termination of the infrastructure belong to the control plane, message exchange to the data plane. Architecture and Operation

Table 4 – The values

Value Is a Definition Close to
BASIC Security Paradigm The HTTP security paradigm BASIC. WoT Security: BasicSecurityScheme
DIGEST Security Paradigm The HTTP security paradigm DIGEST. WoT Security: DigestSecurityScheme
BEARER Security Paradigm The HTTP security paradigm BEARER. WoT Security: BearerSecurityScheme
POST /MPAI/AIFU/Controller API Operation Initialise the Controller Instance: Creates a Service Controller Instance and returns its identifier, the Trust Anchor of its Controller and, where a proof was sent, an Instance Credential.
POST /MPAI/AIFU/{cid}/MODULE/Start API Operation Start AI Module: Requests the Service Controller Instance to initiate a Module.
GET /MPAI/AIFU/{cid}/MODULE/{mid}/Pause API Operation Pause AI Module: Requests the Service Controller Instance to suspend a Module.
GET /MPAI/AIFU/{cid}/MODULE/{mid} API Operation AI Module Status: Requests the current status of a Module.
GET /MPAI/AIFU/{cid}/MODULE/{mid}/Resume API Operation Resume AI Module: Requests the Service Controller Instance to resume a paused Module.
POST /MPAI/AIFU/{cid}/MODULE/{mid}/Input/{DataType}/{PortNumber} API Operation Send Input Data: Delivers input data prepared by the Remote Client Application to an input Port of a Module.
GET /MPAI/AIFU/{cid}/MODULE/{mid}/Output/{DataType}/{PortNumber} API Operation Receive Output Data: Receives the data delivered by an output Port of a Module.
POST /MPAI/AIFU/{cid}/MODULE/{mid}/Output/{DataType}/{PortNumber}/Bout API Operation Open Bout: Has the Messages of an output Port given as a Bout, signed by the Controller of the Service Controller Instance.
GET /MPAI/AIFU/{cid}/MODULE/{mid}/Output/{DataType}/{PortNumber}/Bout API Operation Get Bout: Returns the Bout in force on an output Port.
DELETE /MPAI/AIFU/{cid}/MODULE/{mid}/Output/{DataType}/{PortNumber}/Bout API Operation Close Bout: Closes the Bout in force on an output Port: the Service Controller Instance gives the CloseBout Trust Message.
POST /MPAI/AIFU/{cid}/MODULE/{mid}/Input/{DataType}/{PortNumber}/Bout API Operation Give Bout: Gives the Service Controller Instance a Bout for an input Port, signed with the key of the Instance Credential; the Service Controller Instance accepts it (AcceptBout).
POST /MPAI/AIFU/{cid}/MODULE/{mid}/Input/{DataType}/{PortNumber}/Bout/Close API Operation End Bout: Ends the Bout the Remote Client Application gives on an input Port, with the CloseBout Trust Message signed by it.
GET /MPAI/AIFU/{cid}/MODULE/{mid}/Stop API Operation Terminate AI Module: Releases a Module instantiated by the Service Controller Instance.
DELETE /MPAI/AIFU/Controller/{cid} API Operation Delete Remote Controller Instance: Releases the Service Controller Instance; the Instance Credential of the Remote Client Application is revoked and the Bouts it gives are closed.
404 Refusal No Bout is in force.
409 Refusal The Port may not be given as a Bout.
415 Refusal The Remote Client Application does not accept application/zstd.
401 Refusal The Remote Client Application gives a Bout and holds no valid Instance Credential of the Service Controller Instance.
422 Refusal The Service Controller Instance refuses a Bout it is given (MPAI-PTF AcceptBout).
Creation of infrastructure Service Phase Creation of a Controller instance and launch of the desired AI Modules; the responsibility of the control plane.
Message Exchange Service Phase Delivery of messages to the input Ports and reception from the output Ports of the AI Modules, also as Bouts; the responsibility of the data plane.
Termination of infrastructure Service Phase Termination of the AI Modules and release of the Controller.
ACTIVE Module State The Module State ACTIVE.
PAUSED Module State The Module State PAUSED.
EachInstance Signing Mode Each Bout Instance is signed.
Chain Signing Mode The Bout Instances are signed as a chain, at the interval ChainInterval.
application/json Content Type A native JSON object.
application/zstd Content Type A compressed JSON object: a Bout Instance, a Zstandard frame (RFC 8878).
Input Port Direction The value "Input" of Port Direction.
Output Port Direction The value "Output" of Port Direction.
Specification Documentation Type The value "Specification" of Documentation Type.
Manual Documentation Type The value "Manual" of Documentation Type.
Tutorial Documentation Type The value "Tutorial" of Documentation Type.
Video Documentation Type The value "Video" of Documentation Type.

Table 5 – The terms MPAI-MAS uses that other Standards own

Term Owner
Bout MPAI-AIF: Bout
Bout Instance MPAI-AIF: Bout Instance
Dictionary MPAI-AIF: Dictionary
MPAI Store MPAI-AIF: MPAIStore
Port MPAI-AIF: Port
Controller MPAI-AIF: Controller
AI Module (Simple or Composite) MPAI-AIF: AIM
Module MPAI-AIF: Module
AIM Metadata MPAI-AIF: AIMMetadata
API Profile (Basic, Secure) MPAI-AIF: Profile
Protocol MPAI-AIF: Protocol
Instance Credential MPAI-PTF: Instance Credential
Trust Anchor MPAI-PTF: Trust Anchor
Cryptographic Instance Identity (the proof) MPAI-PTF: Cryptographic Instance Identity
CloseBout Trust Message MPAI-PTF: Trust Message
AcceptBout MPAI-PTF: Op Accept Bout
Error Code MPAI-PTF: Error Code
Data Exchange Metadata MPAI-PTF: Data Exchange Metadata

Table 6 – What the ontology found

Element Finding
Definitions Table 1 has "Artificial Intelligence – Description" ("A restriction of an AI Module Metadata"): the Data Type is the AIM Description. "Artificial Intelligence – Server" and "MPAI – Server" have the same definition. "MPAI – Store" ends with two dots.
Actors The Actors in the Scenario list A (MPAI Store Service) twice and have no B.
Deployment The resources of an AIM are provisioned by the Deployment Controller (Actor F), the Cloud Management Service (Action 12) and the Deployment Service (Action 13): three names for one actor, or two?
Server Server is defined as "a remote machine": the only place where MPAI-MAS names a machine rather than a concept.
AIM Description The page says "Profile of the as defined by the Standard" and refers to a "governing section 6.1.1"; the Protocol is "an ontology value" – the Protocols of the MPAI-AIF ontology.
Remote Client CAE-ASM V1.0 defines a "Remote Client" (a User Agent … that runs on the device of a client of MPAI as a Service, MPAI-MAS); MPAI-MAS defines the Remote Client Application. The name differs.
Service ontologies OWL-S (Service, Profile, Process, Grounding) and the W3C Web of Things Thing Description (Interaction Affordances, Forms, Security Schemes) cover what MPAI-MAS specifies by its API; DCAT's Data Service its MAS API Service. None knows the Controller that runs Modules, nor the MPAI Store: those are MPAI-AIF's. Offers, prices and licences of services (schema.org Offer, ODRL, MPEG-21 Media Contract Ontology) are not in MPAI-MAS V1.1.

<-Data Types Go to ToC API ->