swagger: "2.0" definitions: KnowledgeCarrier: type: object discriminator: _class properties: _class : type: string assetId: $ref: '../id/id.yaml#/definitions/KeyIdentifier' xml: namespace: 'https://www.omg.org/spec/API4KP/20230201/id' rootId: $ref: '../id/id.yaml#/definitions/KeyIdentifier' xml: namespace: 'https://www.omg.org/spec/API4KP/20230201/id' artifactId: $ref: '../id/id.yaml#/definitions/KeyIdentifier' xml: namespace: 'https://www.omg.org/spec/API4KP/20230201/id' level: $ref: '#/definitions/Level' xml: namespace: 'https://www.omg.org/spec/API4KP/20230201/services' href: type: string xml: namespace: 'http://www.w3.org/2001/XMLSchema' label: type: string xml: namespace: 'http://www.w3.org/2001/XMLSchema' structType: $ref: '#/definitions/CompositeStructType' xml: namespace: 'https://www.omg.org/spec/API4KP/20230201/services' components: type: array items: $ref: '#/definitions/KnowledgeCarrier' minItems: 0 xml: namespace: 'https://www.omg.org/spec/API4KP/20230201/services' struct: $ref: '#/definitions/KnowledgeCarrier' xml: namespace: 'https://www.omg.org/spec/API4KP/20230201/services' expression: type: object xml: namespace: 'http://www.w3.org/2001/XMLSchema' representation: $ref: '../id/id.yaml#/definitions/MIMECode' xml: namespace: 'https://www.omg.org/spec/API4KP/20230201/id' required: - _class xml: namespace: 'https://www.omg.org/spec/API4KP/20230201/services' KnowledgeBase: type: object discriminator: _class properties: _class : type: string kbaseId: $ref: '../id/id.yaml#/definitions/KeyIdentifier' xml: namespace: 'https://www.omg.org/spec/API4KP/20230201/id' manifestation: $ref: '#/definitions/KnowledgeCarrier' xml: namespace: 'https://www.omg.org/spec/API4KP/20230201/services' kbaseRef: $ref: '../id/id.yaml#/definitions/Pointer' xml: namespace: 'https://www.omg.org/spec/API4KP/20230201/id' required: - _class xml: namespace: 'https://www.omg.org/spec/API4KP/20230201/services' Issue: type: object discriminator: _class properties: _class : type: string id: type: string xml: namespace: 'http://www.w3.org/2001/XMLSchema' instance: type: string xml: namespace: 'http://www.w3.org/2001/XMLSchema' title: type: string xml: namespace: 'http://www.w3.org/2001/XMLSchema' detail: type: string xml: namespace: 'http://www.w3.org/2001/XMLSchema' type: type: string xml: namespace: 'http://www.w3.org/2001/XMLSchema' status: type: number xml: namespace: 'http://www.w3.org/2001/XMLSchema' severity: $ref: '#/definitions/Severity' xml: namespace: 'https://www.omg.org/spec/API4KP/20230201/services' cause: $ref: '#/definitions/Issue' xml: namespace: 'https://www.omg.org/spec/API4KP/20230201/services' trace: type: array items: type: string minItems: 0 xml: namespace: 'http://www.w3.org/2001/XMLSchema' components: type: array items: $ref: '#/definitions/Issue' minItems: 0 xml: namespace: 'https://www.omg.org/spec/API4KP/20230201/services' required: - _class xml: namespace: 'https://www.omg.org/spec/API4KP/20230201/services' Answer: type: object discriminator: _class properties: _class : type: string data: type: object xml: namespace: 'http://www.w3.org/2001/XMLSchema' meta: $ref: '../datatypes/datatypes.yaml#/definitions/Bindings' xml: namespace: 'https://www.omg.org/spec/API4KP/20230201/datatypes' links: $ref: '#/definitions/Links' xml: namespace: 'https://www.omg.org/spec/API4KP/20230201/services' errors: type: array items: $ref: '#/definitions/Issue' minItems: 0 xml: namespace: 'https://www.omg.org/spec/API4KP/20230201/services' required: - _class xml: namespace: 'https://www.omg.org/spec/API4KP/20230201/services' Links: type: object discriminator: _class properties: _class : type: string self: type: string xml: namespace: 'http://www.w3.org/2001/XMLSchema' related: type: array items: $ref: '#/definitions/Link' minItems: 0 xml: namespace: 'https://www.omg.org/spec/API4KP/20230201/services' first: type: string xml: namespace: 'http://www.w3.org/2001/XMLSchema' next: type: string xml: namespace: 'http://www.w3.org/2001/XMLSchema' prev: type: string xml: namespace: 'http://www.w3.org/2001/XMLSchema' last: type: string xml: namespace: 'http://www.w3.org/2001/XMLSchema' required: - _class xml: namespace: 'https://www.omg.org/spec/API4KP/20230201/services' Link: type: object discriminator: _class properties: _class : type: string href: type: string xml: namespace: 'http://www.w3.org/2001/XMLSchema' rel: type: string xml: namespace: 'http://www.w3.org/2001/XMLSchema' title: type: string xml: namespace: 'http://www.w3.org/2001/XMLSchema' hrefLang: $ref: '../id/id.yaml#/definitions/MIMECode' xml: namespace: 'https://www.omg.org/spec/API4KP/20230201/id' describedBy: type: string xml: namespace: 'http://www.w3.org/2001/XMLSchema' required: - _class xml: namespace: 'https://www.omg.org/spec/API4KP/20230201/services' QueryResults: type: object discriminator: _class properties: _class : type: string vars: type: array items: type: string minItems: 0 xml: namespace: 'http://www.w3.org/2001/XMLSchema' link: type: array items: type: string minItems: 0 xml: namespace: 'http://www.w3.org/2001/XMLSchema' results: $ref: '#/definitions/ResultSet' xml: namespace: 'https://www.omg.org/spec/API4KP/20230201/services' boolean: type: boolean xml: namespace: 'http://www.w3.org/2001/XMLSchema' required: - _class xml: namespace: 'https://www.omg.org/spec/API4KP/20230201/services' ResultSet: type: object discriminator: _class properties: _class : type: string bindings: type: array items: $ref: '../datatypes/datatypes.yaml#/definitions/Bindings' minItems: 0 xml: namespace: 'https://www.omg.org/spec/API4KP/20230201/datatypes' required: - _class xml: namespace: 'https://www.omg.org/spec/API4KP/20230201/services' Event: type: object discriminator: _class properties: _class : type: string id: type: string xml: namespace: 'http://www.w3.org/2001/XMLSchema' source: type: string xml: namespace: 'http://www.w3.org/2001/XMLSchema' type: $ref: '../id/id.yaml#/definitions/ControlledTerm' xml: namespace: 'https://www.omg.org/spec/API4KP/20230201/id' dataContentType: $ref: '../id/id.yaml#/definitions/MIMECode' xml: namespace: 'https://www.omg.org/spec/API4KP/20230201/id' subject: type: string xml: namespace: 'http://www.w3.org/2001/XMLSchema' dataSchema: type: string xml: namespace: 'http://www.w3.org/2001/XMLSchema' time: type: string xml: namespace: 'http://www.w3.org/2001/XMLSchema' data: type: object xml: namespace: 'http://www.w3.org/2001/XMLSchema' required: - _class xml: namespace: 'https://www.omg.org/spec/API4KP/20230201/services' AssetPayload: type: object discriminator: _class properties: _class : type: string asset: $ref: '../id/id.yaml#/definitions/Pointer' xml: namespace: 'https://www.omg.org/spec/API4KP/20230201/id' carrier: type: array items: $ref: '#/definitions/KnowledgeCarrier' minItems: 0 xml: namespace: 'https://www.omg.org/spec/API4KP/20230201/services' surrogate: type: array items: $ref: '#/definitions/KnowledgeCarrier' minItems: 0 xml: namespace: 'https://www.omg.org/spec/API4KP/20230201/services' required: - _class xml: namespace: 'https://www.omg.org/spec/API4KP/20230201/services' CompositeStructType: type: string enum: - TREE - SET - GRAPH - NONE xml: namespace: 'https://www.omg.org/spec/API4KP/20230201/services' Severity: type: string enum: - OK - INF - UNK - WRN - ERR - FATAL xml: namespace: 'https://www.omg.org/spec/API4KP/20230201/services' Level: type: string enum: - INTERNAL - ABSTRACT - CONCRETE - SERIALIZED - ENCODED xml: namespace: 'https://www.omg.org/spec/API4KP/20230201/services'