Permalink
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
comp-metadata/template/deep_process_schema.xsd
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
109 lines (103 sloc)
3.45 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> | |
<xs:complexType name="author_type"> | |
<xs:sequence> | |
<xs:element name="name" type="xs:string"/> | |
<xs:element name="email" type="xs:string"/> | |
</xs:sequence> | |
</xs:complexType> | |
<xs:complexType name="file_type"> | |
<xs:sequence> | |
<xs:element name="identifier" type="xs:string" /> | |
<xs:element name="format" type="xs:string" default="see file extension" /> | |
<xs:element name="quantity"> | |
<xs:simpleType> | |
<xs:restriction base="xs:string"> | |
<xs:enumeration value="single" /> | |
<xs:enumeration value="collection" /> | |
</xs:restriction> | |
</xs:simpleType> | |
</xs:element> | |
<xs:element name="comment" type="xs:string" default="no comment" /> | |
</xs:sequence> | |
</xs:complexType> | |
<xs:complexType name="tool_type"> | |
<xs:sequence> | |
<xs:element name="name"> | |
<xs:simpleType> | |
<xs:restriction base="xs:string"> | |
<xs:minLength value="2" /> | |
</xs:restriction> | |
</xs:simpleType> | |
</xs:element> | |
<xs:element name="version"> | |
<xs:simpleType> | |
<xs:restriction base="xs:string"> | |
<xs:minLength value="1" /> | |
</xs:restriction> | |
</xs:simpleType> | |
</xs:element> | |
<xs:element name="command_line"> | |
<xs:simpleType> | |
<xs:restriction base="xs:string"> | |
<!-- the following minLength restriction takes the <![CDATA[ CMDLINE ]]> enclosure | |
from the Process template file into account (= fails) --> | |
<xs:minLength value="15" /> | |
</xs:restriction> | |
</xs:simpleType> | |
</xs:element> | |
<xs:element name="loop" type="xs:string" default="no looping" /> | |
<xs:element name="comment" type="xs:string" default="no comment" /> | |
</xs:sequence> | |
</xs:complexType> | |
<xs:element name="process"> | |
<xs:complexType> | |
<xs:sequence> | |
<xs:element name="name"> | |
<xs:simpleType> | |
<xs:restriction base="xs:string"> | |
<xs:pattern value="[A-Z][A-Z][A-Z]"/> | |
</xs:restriction> | |
</xs:simpleType> | |
</xs:element> | |
<xs:element name="version"> | |
<xs:simpleType> | |
<xs:restriction base="xs:nonNegativeInteger"> | |
<xs:pattern value="[0-9]"/> | |
</xs:restriction> | |
</xs:simpleType> | |
</xs:element> | |
<xs:element name="author" type="author_type"/> | |
<xs:element name="description" type="xs:string"/> | |
<xs:element name="inputs"> | |
<xs:complexType> | |
<xs:sequence> | |
<xs:element name="filetype" type="file_type" maxOccurs="unbounded" /> | |
</xs:sequence> | |
</xs:complexType> | |
</xs:element> | |
<xs:element name="references"> | |
<xs:complexType> | |
<xs:sequence> | |
<xs:element name="filetype" type="file_type" maxOccurs="unbounded" /> | |
</xs:sequence> | |
</xs:complexType> | |
</xs:element> | |
<xs:element name="outputs"> | |
<xs:complexType> | |
<xs:sequence> | |
<xs:element name="filetype" type="file_type" maxOccurs="unbounded" /> | |
</xs:sequence> | |
</xs:complexType> | |
</xs:element> | |
<xs:element name="software"> | |
<xs:complexType> | |
<xs:sequence> | |
<xs:element name="tool" type="tool_type" maxOccurs="unbounded" /> | |
</xs:sequence> | |
</xs:complexType> | |
</xs:element> | |
</xs:sequence> | |
</xs:complexType> | |
</xs:element> | |
</xs:schema> |