Project

General

Profile

Bug #493 » osd.xsd

Owen Eddins, 05/15/2002 10:14 AM

 
1
<?xml version="1.0"?>
2
<!-- edited with XML Spy v4.0.1 U (http://www.xmlspy.com) by Owen Eddins (University of New Mexico) -->
3
<xs:schema targetNamespace="eml:software-2.0.0beta8" xmlns:doc="eml:documentation-2.0.0beta8" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:res="eml:resource-2.0.0beta8" xmlns="eml:software-2.0.0beta8">
4
	<xs:import namespace="eml:documentation-2.0.0beta8" schemaLocation="eml-documentation.xsd"/>
5
	<xs:annotation>
6
		<xs:documentation>
7
       '$RCSfile: eml-software.xsd,v $'
8
       Copyright: 2000 Regents of the University of California and the
9
                  National Center for Ecological Analysis and Synthesis
10
     For Details: http://knb.ecoinformatics.org/
11
  
12
        '$Author: berkley $'
13
          '$Date: 2002/04/21 22:45:30 $'
14
      '$Revision: 1.6 $'
15
    
16
    This program is free software; you can redistribute it and/or modify
17
    it under the terms of the GNU General Public License as published by
18
    the Free Software Foundation; either version 2 of the License, or
19
    (at your option) any later version.
20
  
21
    This program is distributed in the hope that it will be useful,
22
    but WITHOUT ANY WARRANTY; without even the implied warranty of
23
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
24
    GNU General Public License for more details.
25
  
26
    You should have received a copy of the GNU General Public License
27
    along with this program; if not, write to the Free Software
28
    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
29
    </xs:documentation>
30
		<xs:appinfo>
31
			<doc:moduleName>eml-software</doc:moduleName>
32
			<doc:moduleDescription>
33
        The eml-software module contains general information that describes
34
        software resources.
35
      </doc:moduleDescription>
36
		</xs:appinfo>
37
	</xs:annotation>
38
	<!-- import the elements from eml-resource -->
39
	<xs:import namespace="eml:resource-2.0.0beta8" schemaLocation="eml-resource.xsd"/>
40
	<xs:complexType name="codeBase">
41
		<xs:sequence>
42
			<xs:element name="filename" type="xs:string"/>
43
			<xs:element name="onlineURL" type="xs:string" minOccurs="0"/>
44
			<xs:element name="size" type="xs:string" minOccurs="0"/>
45
		</xs:sequence>
46
	</xs:complexType>
47
	<xs:simpleType name="action">
48
		<xs:restriction base="xs:string">
49
			<xs:enumeration value="install"/>
50
			<xs:enumeration value="assert"/>
51
		</xs:restriction>
52
	</xs:simpleType>
53
	<xs:element name="softwarePackage" type="softwarePackage">
54
		<xs:annotation>
55
			<xs:appinfo>
56
				<doc:tooltip>
57
          				Software
58
        			</doc:tooltip>
59
				<doc:summary>
60
					Defines a software distribution.
61
                 		 </doc:summary>
62
				<doc:description>
63
          				The 'softwarePackage' element contains general information about a
64
          				software resource that is being documented.  This field is
65
          				intended to give information for software tools that are needed 
66
          				to interpret a dataset, software that was written to process a
67
         				 resource, or software as a resource in itself.
68
          
69
         				 It is based on eml-resource and Open Software Description (OSD) a W3C submission.
70
          			</doc:description>
71
				<doc:example>
72
         				 Please see the examples for each subelement of the 'softwarePackage' type.
73
        			</doc:example>
74
				<doc:lineage>
75
					The softwarePackage Element was introduced in 2.0.0 beta 9.  It replaces the software element.
76
          				The 'software' element was introduced into EML 2.0, however
77
         	 			it was derived from the eml-software module in EML 1.4.
78
        			</doc:lineage>
79
			</xs:appinfo>
80
		</xs:annotation>
81
	</xs:element>
82
	<xs:complexType name="softwarePackage">
83
		<xs:complexContent>
84
			<xs:extension base="res:ResourceBase">
85
				<xs:sequence>
86
					<xs:element name="implementation" maxOccurs="unbounded">
87
						<xs:annotation>
88
							<xs:appinfo>
89
								<doc:tooltip/>
90
								<doc:summary/>
91
								<doc:description/>
92
								<doc:example>
93
         								 Please see the examples for each subelement of the 'implementation' type.
94
        							</doc:example>
95
								<doc:lineage>
96
									The implementation Element was introduced in 2.0.0 beta 9.          
97
								</doc:lineage>
98
							</xs:appinfo>
99
						</xs:annotation>
100
						<xs:complexType>
101
							<xs:sequence>
102
								<xs:element name="codeBase" type="codeBase" maxOccurs="unbounded"/>
103
								<xs:element name="language" type="xs:string" minOccurs="0"/>
104
								<xs:element name="operatingSystem" type="xs:string" minOccurs="0"/>
105
								<xs:element name="processor" type="xs:string" minOccurs="0"/>
106
								<xs:element name="virtualMachine" type="xs:string" minOccurs="0"/>
107
								<xs:element name="diskUsage" type="xs:string" minOccurs="0"/>
108
								<xs:element name="runtimeMemoryUsage" type="xs:string" minOccurs="0"/>
109
								<xs:element name="programmingLanguage" type="xs:string" minOccurs="0"/>
110
							</xs:sequence>
111
						</xs:complexType>
112
					</xs:element>
113
					<xs:element name="dependency" type="dependency"/>
114
					<xs:choice minOccurs="0" maxOccurs="unbounded">
115
						<xs:element name="licenseURL" type="xs:string"/>
116
						<xs:element name="license" type="xs:string"/>
117
					</xs:choice>
118
					<xs:element name="version" type="xs:string">
119
						<xs:annotation>
120
							<xs:appinfo>
121
								<doc:tooltip/>
122
								<doc:summary>Version of the software being packaged.</doc:summary>
123
								<doc:description>String value corresponding to the major, minor, custom, and build version xs:annotation
124
								</doc:description>
125
								<doc:example/>
126
								<doc:lineage>
127
									The implementation Element was introduced in 2.0.0 beta 9.          
128
								</doc:lineage>
129
							</xs:appinfo>
130
						</xs:annotation>
131
					</xs:element>
132
				</xs:sequence>
133
			</xs:extension>
134
		</xs:complexContent>
135
	</xs:complexType>
136
	<xs:complexType name="dependency">
137
		<xs:sequence>
138
			<xs:element name="action" type="action"/>
139
			<xs:element name="softwarePackage" type="softwarePackage"/>
140
		</xs:sequence>
141
	</xs:complexType>
142
</xs:schema>
(1-1/5)