Commit dd209aab authored by Nico Mack's avatar Nico Mack

Updates to XML Schemas

parent 0fdbc601
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:tlp="tulip-core" xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning" targetNamespace="tulip-core" elementFormDefault="qualified" vc:minVersion="1.1" attributeFormDefault="unqualified">
<xs:include schemaLocation="file:///Users/mack/git/tulip/TULIP/resources/lu/list/itis/dkd/tui/Tulip.xsd"/>
<xs:simpleType name="outputType" final="restriction">
<xs:annotation>
<xs:documentation>enumerates possible values for output types</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:enumeration value="text"/>
<xs:enumeration value="logic"/>
<xs:enumeration value="numeric"/>
<xs:enumeration value="spatial"/>
<xs:enumeration value="vector"/>
<xs:enumeration value="map"/>
</xs:restriction>
</xs:simpleType>
<xs:complexType name="system">
<xs:all>
<xs:element name="connectors" minOccurs="0" maxOccurs="1">
<xs:complexType>
<xs:sequence>
<xs:element name="connector" minOccurs="1" maxOccurs="unbounded" type="tlp:connector"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="outputs" minOccurs="1" maxOccurs="1">
<xs:complexType>
<xs:sequence>
<xs:element name="output" minOccurs="1" maxOccurs="unbounded" type="tlp:output"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="equations" minOccurs="1" maxOccurs="1">
<xs:complexType>
<xs:sequence>
<xs:element name="equation" type="tlp:equation"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:all>
</xs:complexType>
<xs:complexType name="connector">
<xs:all>
<xs:element name="type" minOccurs="1" maxOccurs="1" type="xs:string"/>
</xs:all>
<xs:attribute name="name" use="required"/>
</xs:complexType>
<xs:complexType name="output">
<xs:attribute name="name" use="required"/>
<xs:attribute name="type" use="required"/>
<xs:attribute name="displayName" use="optional"/>
<xs:attribute name="initial" use="optional"/>
<xs:attributeGroup ref="tlp:numericOutput"/>
</xs:complexType>
<xs:complexType name="equation">
<xs:all>
<xs:element name="imports" minOccurs="0" maxOccurs="1">
<xs:complexType>
<xs:sequence>
<xs:element name="import" minOccurs="1" maxOccurs="1" type="tlp:import"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="parameters" minOccurs="1" maxOccurs="1">
<xs:complexType>
<xs:sequence>
<xs:element name="parameter" minOccurs="1" maxOccurs="unbounded" type="tlp:parameter"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="connector" minOccurs="0" maxOccurs="1">
<xs:complexType>
<xs:attribute name="name" use="required"/>
</xs:complexType>
</xs:element>
<xs:element name="invoke" minOccurs="1" maxOccurs="1">
<xs:complexType>
<xs:attribute name="executor" use="optional"/>
</xs:complexType>
</xs:element>
<xs:element name="results" minOccurs="0" maxOccurs="1">
<xs:complexType>
<xs:sequence>
<xs:element name="result" minOccurs="1" maxOccurs="unbounded" type="tlp:result"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:all>
<xs:attribute name="name" use="required"/>
<xs:attribute name="mode" use="optional"/>
<xs:attribute name="asynchronous" use="optional"/>
</xs:complexType>
<xs:complexType name="parameter">
<xs:attribute name="name" use="required"/>
<xs:attribute name="invoking" use="optional"/>
</xs:complexType>
<xs:complexType name="import">
<xs:attribute name="function" use="required"/>
<xs:attribute name="from" use="required"/>
</xs:complexType>
<xs:complexType name="result">
<xs:attribute name="name" use="required"/>
<xs:attribute name="equate" use="optional"/>
<xs:attribute name="field" use="optional"/>
<xs:attribute name="index" use="optional"/>
<xs:attribute name="key" use="optional"/>
<xs:attribute name="value" use="optional"/>
<xs:attribute name="format" use="optional"/>
</xs:complexType>
<xs:simpleType name="executorType">
<xs:annotation>
<xs:documentation>enumerates possible values for executor types</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:enumeration value="Javascript"/>
<xs:enumeration value="Python"/>
<xs:enumeration value="SQL"/>
<xs:enumeration value="R"/>
</xs:restriction>
</xs:simpleType>
<xs:complexType name="jdbcConnector">
<xs:complexContent>
<xs:extension base="tlp:connector">
<xs:sequence>
<xs:element name="url" minOccurs="1" maxOccurs="1" type="xs:string"/>
<xs:element name="driverClass" minOccurs="1" maxOccurs="1" type="xs:string"/>
<xs:element name="username" minOccurs="1" maxOccurs="1" type="xs:string"/>
<xs:element name="password" minOccurs="1" maxOccurs="1" type="xs:string"/>
<xs:element name="autoCommit" minOccurs="0" maxOccurs="1" type="xs:boolean" default="false"/>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="InfluxConnector">
<xs:complexContent>
<xs:extension base="tlp:connector">
<xs:sequence>
<xs:element name="url" minOccurs="1" maxOccurs="1" type="xs:string"/>
<xs:element name="database" minOccurs="1" maxOccurs="1" type="xs:string"/>
<xs:element name="username" minOccurs="1" maxOccurs="1" type="xs:string"/>
<xs:element name="password" minOccurs="1" maxOccurs="1" type="xs:string"/>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="WebServiceConnector">
<xs:complexContent>
<xs:extension base="tlp:connector">
<xs:sequence>
<xs:element name="url" minOccurs="1" maxOccurs="1" type="xs:string"/>
<xs:element name="token" minOccurs="0" maxOccurs="1">
<xs:complexType>
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="type" use="required"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:attributeGroup name="numericOutput">
<xs:attribute name="minimum" use="optional"/>
<xs:attribute name="maximum" use="optional"/>
<xs:attribute name="epsilon" use="optional"/>
<xs:attribute name="decimals" use="optional"/>
<xs:attribute name="scale" use="optional"/>
</xs:attributeGroup>
</xs:schema>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:tlp="tulip-core" xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning" targetNamespace="tulip-core" elementFormDefault="qualified" vc:minVersion="1.1" attributeFormDefault="unqualified">
<xs:include schemaLocation="file:///Users/mack/git/tulip/TULIP/resources/lu/list/itis/dkd/tui/Tulip.xsd"/>
<xs:element name="variable">
<xs:complexType>
<xs:all>
<xs:element name="type" minOccurs="1" maxOccurs="1" type="xs:string"/>
<xs:element name="name" minOccurs="1" maxOccurs="1" type="xs:string"/>
<xs:element name="displayName" minOccurs="0" maxOccurs="1" type="xs:string"/>
<xs:element name="unit" minOccurs="0" maxOccurs="1" type="xs:string"/>
</xs:all>
</xs:complexType>
</xs:element>
</xs:schema>
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment