<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns="https://www.omg.org/spec/API4KP/20230201/services"
            xmlns:ns1="https://www.omg.org/spec/API4KP/20230201/datatypes"
            xmlns:ns2="https://www.omg.org/spec/API4KP/20230201/id"
            xmlns:xmi="http://www.omg.org/spec/XMI/20131001"
            xmlns:xs="http://www.w3.org/2001/XMLSchema"
            elementFormDefault="qualified"
            targetNamespace="https://www.omg.org/spec/API4KP/20230201/services">
   <xs:import namespace="https://www.omg.org/spec/API4KP/20230201/datatypes"
               schemaLocation="../datatypes/datatypes.xsd"/>
   <xs:import namespace="https://www.omg.org/spec/API4KP/20230201/id"
               schemaLocation="../id/id.xsd"/>
   <xs:element name="knowledgeCarrier" type="KnowledgeCarrier"/>
   <xs:complexType xmi:id="_19_0_3_6330176_1646874097876_521764_5242"
                    name="KnowledgeCarrier">
      <xs:complexContent>
         <xs:sequence>
            <xs:element xmlns:tns="https://www.omg.org/spec/API4KP/20230201/id"
                         name="assetId"
                         minOccurs="0"
                         maxOccurs="1"
                         type="tns:KeyIdentifier"/>
            <xs:element xmlns:tns="https://www.omg.org/spec/API4KP/20230201/id"
                         name="rootId"
                         minOccurs="0"
                         maxOccurs="1"
                         type="tns:KeyIdentifier"/>
            <xs:element xmlns:tns="https://www.omg.org/spec/API4KP/20230201/id"
                         name="artifactId"
                         minOccurs="0"
                         maxOccurs="1"
                         type="tns:KeyIdentifier"/>
            <xs:element xmlns:tns="https://www.omg.org/spec/API4KP/20230201/services"
                         name="level"
                         minOccurs="0"
                         maxOccurs="1"
                         type="tns:Level"/>
            <xs:element xmlns:tns="http://www.w3.org/2001/XMLSchema"
                         name="href"
                         minOccurs="0"
                         maxOccurs="1"
                         type="tns:anyURI"/>
            <xs:element xmlns:tns="http://www.w3.org/2001/XMLSchema"
                         name="label"
                         minOccurs="0"
                         maxOccurs="1"
                         type="tns:string"/>
            <xs:element xmlns:tns="https://www.omg.org/spec/API4KP/20230201/services"
                         name="structType"
                         minOccurs="0"
                         maxOccurs="1"
                         type="tns:CompositeStructType"/>
            <xs:element xmlns:tns="https://www.omg.org/spec/API4KP/20230201/services"
                         name="components"
                         minOccurs="0"
                         maxOccurs="unbounded"
                         type="tns:KnowledgeCarrier"/>
            <xs:element xmlns:tns="https://www.omg.org/spec/API4KP/20230201/services"
                         name="struct"
                         minOccurs="0"
                         maxOccurs="1"
                         type="tns:KnowledgeCarrier"/>
            <xs:element xmlns:tns="http://www.w3.org/2001/XMLSchema"
                         name="expression"
                         minOccurs="0"
                         maxOccurs="1"
                         type="tns:anyType"/>
            <xs:element xmlns:tns="https://www.omg.org/spec/API4KP/20230201/id"
                         name="representation"
                         minOccurs="0"
                         maxOccurs="1"
                         type="tns:MIMECode"/>
         </xs:sequence>
      </xs:complexContent>
   </xs:complexType>
   <xs:element name="knowledgeBase" type="KnowledgeBase"/>
   <xs:complexType xmi:id="_19_0_3_6330176_1646874119261_488534_5292" name="KnowledgeBase">
      <xs:complexContent>
         <xs:sequence>
            <xs:element xmlns:tns="https://www.omg.org/spec/API4KP/20230201/id"
                         name="kbaseId"
                         minOccurs="0"
                         maxOccurs="1"
                         type="tns:KeyIdentifier"/>
            <xs:element xmlns:tns="https://www.omg.org/spec/API4KP/20230201/services"
                         name="manifestation"
                         minOccurs="0"
                         maxOccurs="1"
                         type="tns:KnowledgeCarrier"/>
            <xs:element xmlns:tns="https://www.omg.org/spec/API4KP/20230201/id"
                         name="kbaseRef"
                         minOccurs="0"
                         maxOccurs="1"
                         type="tns:Pointer"/>
         </xs:sequence>
      </xs:complexContent>
   </xs:complexType>
   <xs:element name="issue" type="Issue"/>
   <xs:complexType xmi:id="_19_0_3_6330176_1646878428224_797733_5611" name="Issue">
      <xs:complexContent>
         <xs:sequence>
            <xs:element xmlns:tns="http://www.w3.org/2001/XMLSchema"
                         name="id"
                         minOccurs="0"
                         maxOccurs="1"
                         type="tns:string"/>
            <xs:element xmlns:tns="http://www.w3.org/2001/XMLSchema"
                         name="instance"
                         minOccurs="0"
                         maxOccurs="1"
                         type="tns:anyURI"/>
            <xs:element xmlns:tns="http://www.w3.org/2001/XMLSchema"
                         name="title"
                         minOccurs="0"
                         maxOccurs="1"
                         type="tns:string"/>
            <xs:element xmlns:tns="http://www.w3.org/2001/XMLSchema"
                         name="detail"
                         minOccurs="0"
                         maxOccurs="1"
                         type="tns:string"/>
            <xs:element xmlns:tns="http://www.w3.org/2001/XMLSchema"
                         name="type"
                         minOccurs="0"
                         maxOccurs="1"
                         type="tns:anyURI"/>
            <xs:element xmlns:tns="http://www.w3.org/2001/XMLSchema"
                         name="status"
                         minOccurs="0"
                         maxOccurs="1"
                         type="tns:int"/>
            <xs:element xmlns:tns="https://www.omg.org/spec/API4KP/20230201/services"
                         name="severity"
                         minOccurs="0"
                         maxOccurs="1"
                         type="tns:Severity"/>
            <xs:element xmlns:tns="https://www.omg.org/spec/API4KP/20230201/services"
                         name="cause"
                         minOccurs="0"
                         maxOccurs="1"
                         type="tns:Issue"/>
            <xs:element xmlns:tns="http://www.w3.org/2001/XMLSchema"
                         name="trace"
                         minOccurs="0"
                         maxOccurs="unbounded"
                         type="tns:string"/>
            <xs:element xmlns:tns="https://www.omg.org/spec/API4KP/20230201/services"
                         name="components"
                         minOccurs="0"
                         maxOccurs="unbounded"
                         type="tns:Issue"/>
         </xs:sequence>
      </xs:complexContent>
   </xs:complexType>
   <xs:element name="answer" type="Answer"/>
   <xs:complexType xmi:id="_19_0_3_6330176_1673536324092_635324_5768" name="Answer">
      <xs:complexContent>
         <xs:sequence>
            <xs:element xmlns:tns="http://www.w3.org/2001/XMLSchema"
                         name="data"
                         minOccurs="0"
                         maxOccurs="1"
                         type="tns:anyType"/>
            <xs:element xmlns:tns="https://www.omg.org/spec/API4KP/20230201/datatypes"
                         name="meta"
                         minOccurs="0"
                         maxOccurs="1"
                         type="tns:Bindings"/>
            <xs:element xmlns:tns="https://www.omg.org/spec/API4KP/20230201/services"
                         name="links"
                         minOccurs="0"
                         maxOccurs="1"
                         type="tns:Links"/>
            <xs:element xmlns:tns="https://www.omg.org/spec/API4KP/20230201/services"
                         name="errors"
                         minOccurs="0"
                         maxOccurs="unbounded"
                         type="tns:Issue"/>
         </xs:sequence>
      </xs:complexContent>
   </xs:complexType>
   <xs:element name="links" type="Links"/>
   <xs:complexType xmi:id="_19_0_3_6330176_1673537452091_947177_5801" name="Links">
      <xs:complexContent>
         <xs:sequence>
            <xs:element xmlns:tns="http://www.w3.org/2001/XMLSchema"
                         name="self"
                         minOccurs="0"
                         maxOccurs="1"
                         type="tns:anyURI"/>
            <xs:element xmlns:tns="https://www.omg.org/spec/API4KP/20230201/services"
                         name="related"
                         minOccurs="0"
                         maxOccurs="unbounded"
                         type="tns:Link"/>
            <xs:element xmlns:tns="http://www.w3.org/2001/XMLSchema"
                         name="first"
                         minOccurs="0"
                         maxOccurs="1"
                         type="tns:anyURI"/>
            <xs:element xmlns:tns="http://www.w3.org/2001/XMLSchema"
                         name="next"
                         minOccurs="0"
                         maxOccurs="1"
                         type="tns:anyURI"/>
            <xs:element xmlns:tns="http://www.w3.org/2001/XMLSchema"
                         name="prev"
                         minOccurs="0"
                         maxOccurs="1"
                         type="tns:anyURI"/>
            <xs:element xmlns:tns="http://www.w3.org/2001/XMLSchema"
                         name="last"
                         minOccurs="0"
                         maxOccurs="1"
                         type="tns:anyURI"/>
         </xs:sequence>
      </xs:complexContent>
   </xs:complexType>
   <xs:element name="link" type="Link"/>
   <xs:complexType xmi:id="_19_0_3_6330176_1673537751990_537455_5832" name="Link">
      <xs:complexContent>
         <xs:sequence>
            <xs:element xmlns:tns="http://www.w3.org/2001/XMLSchema"
                         name="href"
                         minOccurs="0"
                         maxOccurs="1"
                         type="tns:anyURI"/>
            <xs:element xmlns:tns="http://www.w3.org/2001/XMLSchema"
                         name="rel"
                         minOccurs="0"
                         maxOccurs="1"
                         type="tns:anyURI"/>
            <xs:element xmlns:tns="http://www.w3.org/2001/XMLSchema"
                         name="title"
                         minOccurs="0"
                         maxOccurs="1"
                         type="tns:string"/>
            <xs:element xmlns:tns="https://www.omg.org/spec/API4KP/20230201/id"
                         name="hrefLang"
                         minOccurs="0"
                         maxOccurs="1"
                         type="tns:MIMECode"/>
            <xs:element xmlns:tns="http://www.w3.org/2001/XMLSchema"
                         name="describedBy"
                         minOccurs="0"
                         maxOccurs="1"
                         type="tns:anyURI"/>
         </xs:sequence>
      </xs:complexContent>
   </xs:complexType>
   <xs:element name="queryResults" type="QueryResults"/>
   <xs:complexType xmi:id="_19_0_3_6330176_1673528433624_968712_5008" name="QueryResults">
      <xs:complexContent>
         <xs:sequence>
            <xs:element xmlns:tns="http://www.w3.org/2001/XMLSchema"
                         name="vars"
                         minOccurs="0"
                         maxOccurs="unbounded"
                         type="tns:string"/>
            <xs:element xmlns:tns="http://www.w3.org/2001/XMLSchema"
                         name="link"
                         minOccurs="0"
                         maxOccurs="unbounded"
                         type="tns:anyURI"/>
            <xs:element xmlns:tns="https://www.omg.org/spec/API4KP/20230201/services"
                         name="results"
                         minOccurs="0"
                         maxOccurs="1"
                         type="tns:ResultSet"/>
            <xs:element xmlns:tns="http://www.w3.org/2001/XMLSchema"
                         name="boolean"
                         minOccurs="0"
                         maxOccurs="1"
                         type="tns:boolean"/>
         </xs:sequence>
      </xs:complexContent>
   </xs:complexType>
   <xs:element name="resultSet" type="ResultSet"/>
   <xs:complexType xmi:id="_19_0_3_6330176_1646510152581_192946_5543" name="ResultSet">
      <xs:complexContent>
         <xs:sequence>
            <xs:element xmlns:tns="https://www.omg.org/spec/API4KP/20230201/datatypes"
                         name="bindings"
                         minOccurs="0"
                         maxOccurs="unbounded"
                         type="tns:Bindings"/>
         </xs:sequence>
      </xs:complexContent>
   </xs:complexType>
   <xs:element name="event" type="Event"/>
   <xs:complexType xmi:id="_19_0_3_6330176_1673555474242_140016_6325" name="Event">
      <xs:complexContent>
         <xs:sequence>
            <xs:element xmlns:tns="http://www.w3.org/2001/XMLSchema"
                         name="id"
                         minOccurs="0"
                         maxOccurs="1"
                         type="tns:string"/>
            <xs:element xmlns:tns="http://www.w3.org/2001/XMLSchema"
                         name="source"
                         minOccurs="0"
                         maxOccurs="1"
                         type="tns:anyURI"/>
            <xs:element xmlns:tns="https://www.omg.org/spec/API4KP/20230201/id"
                         name="type"
                         minOccurs="0"
                         maxOccurs="1"
                         type="tns:ControlledTerm"/>
            <xs:element xmlns:tns="https://www.omg.org/spec/API4KP/20230201/id"
                         name="dataContentType"
                         minOccurs="0"
                         maxOccurs="1"
                         type="tns:MIMECode"/>
            <xs:element xmlns:tns="http://www.w3.org/2001/XMLSchema"
                         name="subject"
                         minOccurs="0"
                         maxOccurs="1"
                         type="tns:anyURI"/>
            <xs:element xmlns:tns="http://www.w3.org/2001/XMLSchema"
                         name="dataSchema"
                         minOccurs="0"
                         maxOccurs="1"
                         type="tns:anyURI"/>
            <xs:element xmlns:tns="http://www.w3.org/2001/XMLSchema"
                         name="time"
                         minOccurs="0"
                         maxOccurs="1"
                         type="tns:dateTime"/>
            <xs:element xmlns:tns="http://www.w3.org/2001/XMLSchema"
                         name="data"
                         minOccurs="0"
                         maxOccurs="1"
                         type="tns:anyType"/>
         </xs:sequence>
      </xs:complexContent>
   </xs:complexType>
   <xs:element name="assetPayload" type="AssetPayload"/>
   <xs:complexType xmi:id="_19_0_3_6330176_1674674104753_694221_5251" name="AssetPayload">
      <xs:complexContent>
         <xs:sequence>
            <xs:element xmlns:tns="https://www.omg.org/spec/API4KP/20230201/id"
                         name="asset"
                         minOccurs="0"
                         maxOccurs="1"
                         type="tns:Pointer"/>
            <xs:element xmlns:tns="https://www.omg.org/spec/API4KP/20230201/services"
                         name="carrier"
                         minOccurs="0"
                         maxOccurs="unbounded"
                         type="tns:KnowledgeCarrier"/>
            <xs:element xmlns:tns="https://www.omg.org/spec/API4KP/20230201/services"
                         name="surrogate"
                         minOccurs="0"
                         maxOccurs="unbounded"
                         type="tns:KnowledgeCarrier"/>
         </xs:sequence>
      </xs:complexContent>
   </xs:complexType>
   <xs:simpleType name="CompositeStructType">
      <xs:restriction base="xs:string">
         <xs:enumeration value="TREE"/>
         <xs:enumeration value="SET"/>
         <xs:enumeration value="GRAPH"/>
         <xs:enumeration value="NONE"/>
      </xs:restriction>
   </xs:simpleType>
   <xs:simpleType name="Severity">
      <xs:restriction base="xs:string">
         <xs:enumeration value="OK"/>
         <xs:enumeration value="INF"/>
         <xs:enumeration value="UNK"/>
         <xs:enumeration value="WRN"/>
         <xs:enumeration value="ERR"/>
         <xs:enumeration value="FATAL"/>
      </xs:restriction>
   </xs:simpleType>
   <xs:simpleType name="Level">
      <xs:restriction base="xs:string">
         <xs:enumeration value="INTERNAL"/>
         <xs:enumeration value="ABSTRACT"/>
         <xs:enumeration value="CONCRETE"/>
         <xs:enumeration value="SERIALIZED"/>
         <xs:enumeration value="ENCODED"/>
      </xs:restriction>
   </xs:simpleType>
</xs:schema>
