Sections
You are here: Home » Data » Documents » Development » XML Schema » XML schema for Model (API 1.1)

XML schema for Model (API 1.1)

— filed under:

Model.xsd — Extensible Markup Language (XML), 1Kb

File contents

<?xml version="1.0" encoding="UTF-8"?>
<schema targetNamespace="http://opentox.org/1.0/" elementFormDefault="qualified" xmlns="http://www.w3.org/2001/XMLSchema" 
				xmlns:ot="http://opentox.org/1.0/">

<complexType name="Link">
    	<attribute name="href" type="anyURI" ></attribute>
		<attribute name="order" type="int" default="1" use="optional"></attribute>
		<attribute name="id" type="int" default="1" use="optional"></attribute>
</complexType>

<complexType name="Model">
	<attribute name="ID" type="string" use="required"></attribute>
	<attribute name="Name" type="string" use="required"></attribute>
	
	<element name="link" type="ot:Link" minOccurs="1" maxOccurs="1" />
	<element name="AlgorithmID" type="ot:Link" minOccurs="1" maxOccurs="1" />
	<element name="DatasetID" type="ot:Link" minOccurs="1" maxOccurs="1" />
	
	<element name="AlgorithmParameters">
		<complexType>
		 	<sequence>
    		<element name="param" type="string">
				<attribute name="name" type="string" use="required"></attribute>
				<attribute name="type" type="string" use="required"></attribute>
			</element>
			</sequence>
		</complexType>
	</element> 
	
	<element name="FeatureDefinitions">
		<complexType>
			<sequence>
				<element name="link" type="ot:Link" minOccurs="1"/>
			</sequence>
		</complexType>
	</element>
	
	
	<element name="User" type="string" use="required"></element>
	<element name="Timestamp" type="date" use="required"></element>
</complexType>
</schema>
Document Actions