• Login
  • Help/Guide
  • About Trac
  • Preferences
  • Wiki
  • Timeline
  • Roadmap
  • Browse Source
  • View Tickets
  • Search

Context Navigation

  • Last Change
  • Annotate
  • Revision Log

root/Xml/Working/STD.xsd

Revision 195, 5.7 kB (checked in by andrew, 4 months ago)

Version presented in meeting 10th Sept 2008

Line 
1<?xml version = "1.0" encoding = "UTF-8"?>
2<!--
3        #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4        #
5        # Copyright (C) 2003-2008 Open Microscopy Environment
6        #       Massachusetts Institute of Technology,
7        #       National Institutes of Health,
8        #       University of Dundee,
9        #       University of Wisconsin at Madison
10        #
11        #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
12-->
13<!--
14        #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
15        # Written by: Ilya G. Goldberg, Josiah Johnston, Andrew J Patterson
16        #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
17-->
18<xsd:schema xmlns:xsd = "http://www.w3.org/2001/XMLSchema"
19        targetNamespace = "http://www.openmicroscopy.org/Schemas/STD/2008-02"
20        xmlns:STD = "http://www.openmicroscopy.org/Schemas/STD/2008-02"
21        xmlns:xml="http://www.w3.org/XML/1998/namespace"
22        version = "1"
23        elementFormDefault = "qualified">
24        <xsd:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="http://www.w3.org/2001/xml.xsd"/>
25        <xsd:element name = "Element"> <!-- top level definition -->
26                <xsd:annotation>
27                        <xsd:documentation>Describes a field of a SemanticType</xsd:documentation>
28                </xsd:annotation>
29                <xsd:complexType>
30                        <xsd:sequence>
31                                <xsd:element ref = "STD:Label" minOccurs = "0" maxOccurs = "unbounded"/>
32                                <xsd:element ref = "STD:Description" minOccurs = "0" maxOccurs = "unbounded"/>
33                        </xsd:sequence>
34                        <xsd:attribute name = "Name" use = "required">
35                                <xsd:simpleType>
36                                        <xsd:restriction base = "xsd:string">
37                                                <xsd:maxLength value = "64"/>
38                                        </xsd:restriction>
39                                </xsd:simpleType>
40                        </xsd:attribute>
41                        <xsd:attribute name = "DBLocation" use = "optional" type = "xsd:string"/>
42                        <xsd:attribute name = "DataType" use = "required">
43                                <xsd:simpleType>
44                                        <xsd:restriction base = "xsd:string">
45                                                <xsd:enumeration value = "bigint"/>
46                                                <xsd:enumeration value = "integer"/>
47                                                <xsd:enumeration value = "smallint"/>
48                                                <xsd:enumeration value = "double"/>
49                                                <xsd:enumeration value = "float"/>
50                                                <xsd:enumeration value = "boolean"/>
51                                                <xsd:enumeration value = "string"/>
52                                                <xsd:enumeration value = "reference"/>
53                                        </xsd:restriction>
54                                </xsd:simpleType>
55                        </xsd:attribute>
56                        <xsd:attribute name = "RefersTo" use="optional" type = "xsd:string"/>
57                </xsd:complexType>
58        </xsd:element>
59        <xsd:element name = "SemanticType"> <!-- top level definition -->
60                <xsd:annotation>
61                        <xsd:documentation>
62                                Defines a semantic type.
63                                Notes:
64                                Granularity of SemanticType is infered from the granularity of the record it derives from. In a record, this granularity is specified by the AppliesTo attribute.
65                        </xsd:documentation>
66                </xsd:annotation>
67                <xsd:complexType>
68                        <xsd:sequence>
69                                <xsd:element ref = "STD:Label" minOccurs = "0" maxOccurs = "unbounded"/>
70                                <xsd:element ref = "STD:Description" minOccurs = "0" maxOccurs = "unbounded"/>
71                                <xsd:element ref = "STD:Element" maxOccurs = "unbounded"/>
72                        </xsd:sequence>
73                        <xsd:attribute name = "Name" use = "required">
74                                <xsd:simpleType>
75                                        <xsd:restriction base = "xsd:string">
76                                                <xsd:maxLength value = "64"/>
77                                        </xsd:restriction>
78                                </xsd:simpleType>
79                        </xsd:attribute>
80                        <xsd:attribute name = "Parent" use = "optional">
81                                <xsd:simpleType>
82                                        <xsd:restriction base = "xsd:string">
83                                                <xsd:maxLength value = "64"/>
84                                        </xsd:restriction>
85                                </xsd:simpleType>
86                        </xsd:attribute>
87                        <xsd:attribute name = "AppliesTo" use = "required">
88                                <xsd:annotation>
89                                        <xsd:documentation>This specifies what this record is an attribute of. The options are Global, Dataset, Image, or Region (was called Feature hence letter F).
90                                        </xsd:documentation>
91                                </xsd:annotation>
92                                <xsd:simpleType>
93                                        <xsd:restriction base = "xsd:string">
94                                                <xsd:enumeration value = "G"/>
95                                                <xsd:enumeration value = "D"/>
96                                                <xsd:enumeration value = "I"/>
97                                                <xsd:enumeration value = "F"/>
98                                                <xsd:length value = "1"/>
99                                        </xsd:restriction>
100                                </xsd:simpleType>
101                        </xsd:attribute>
102                </xsd:complexType>
103                <xsd:unique name = "SemanticElement">
104                        <xsd:selector xpath = "STD:SemanticElement"/>
105                        <xsd:field xpath = "@Name"/>
106                </xsd:unique>
107        </xsd:element>
108        <xsd:element name = "SemanticTypeDefinitions"> <!-- top level definition -->
109                <xsd:annotation>
110                        <xsd:documentation>Describes semantic types that can be derived from custom attributes. </xsd:documentation>
111                </xsd:annotation>
112                <xsd:complexType>
113                        <xsd:sequence>
114                                <xsd:element ref = "STD:SemanticType" minOccurs="1" maxOccurs = "unbounded"/>
115                        </xsd:sequence>
116                </xsd:complexType>
117                <xsd:unique name = "SemanticTypeName">
118                        <xsd:selector xpath = "STD:SemanticType"/>
119                        <xsd:field xpath = "@SemanticTypeName"/>
120                </xsd:unique>
121        </xsd:element>
122        <xsd:attribute name = "SemanticTypeName"> <!-- top level definition -->
123                <xsd:simpleType>
124                        <xsd:restriction base = "xsd:string">
125                                <xsd:maxLength value = "64"/>
126                        </xsd:restriction>
127                </xsd:simpleType>
128        </xsd:attribute>
129        <xsd:element name = "Description"> <!-- top level definition -->
130                <xsd:annotation>
131                        <xsd:documentation>
132                                Just some human-readable text to serve as documentation.
133                        </xsd:documentation>
134                </xsd:annotation>
135                <xsd:complexType>
136                        <xsd:simpleContent>
137                                <xsd:extension base = "xsd:string">
138                                        <xsd:attribute ref = "xml:lang" default = "en" use="optional"/>
139                                </xsd:extension>
140                        </xsd:simpleContent>
141                </xsd:complexType>
142        </xsd:element>
143        <xsd:element name = "Label"> <!-- top level definition -->
144                <xsd:complexType>
145                        <xsd:simpleContent>
146                                <xsd:extension base = "xsd:string">
147                                        <xsd:attribute ref = "xml:lang" default = "en" use="optional"/>
148                                </xsd:extension>
149                        </xsd:simpleContent>
150                </xsd:complexType>
151        </xsd:element>
152</xsd:schema>
Note: See TracBrowser for help on using the browser.

Download in other formats:

  • Original Format

Trac Powered

Powered by Trac 0.11
By Edgewall Software.

Visit the Trac open source project at
http://trac.edgewall.org/