source: trunk/schema/template.xml @ 1419

Last change on this file since 1419 was 1257, checked in by robert@…, 13 years ago

Added an export and import functionality for templates, as described in ticket #76

File size: 2.3 KB
Line 
1<?xml version="1.0"?>
2
3<templates xmlns="gscf" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="gscf template.xsd" count="1">
4        <template>
5                <name>Academic Study</name>
6                <description></description>
7                <entity>dbnp.studycapturing.Study</entity>
8       
9                <!--
10                        Owner is not exported because there will be other users in the target database.
11                        Use the current user when importing as owner.
12                -->
13                <templateFields>
14                        <templateField>
15                                <name>Description</name>
16                                <type>TEXT</type>
17                                <unit />
18                                <comment></comment>
19                                <preferredIdentifier>true</preferredIdentifier>
20                        </templateField>
21                        <templateField>
22                                <name>Start date</name>
23                                <type>DATE</type>
24                                <unit />
25                                <comment>Use the start date of the study in this field</comment>
26                                <required>true</required>
27                        </templateField>
28                        <templateField>
29                                <name>Length</name>
30                                <type>LONG</type>
31                                <unit>weeks</unit>
32                                <comment>Use the start date of the study in this field</comment>
33                                <required>false</required>
34                        </templateField>
35                        <templateField>
36                                <name>Species</name>
37                                <type>ONTOLOGYTERM</type>
38                                <unit />
39                                <comment></comment>
40                                <ontologies>
41                                        <ontology>
42                                                <ncboId>1132</ncboId>
43                                                <ncboVersionedId>38802</ncboVersionedId>
44                                                <name>NCBI organismal classification</name>
45                                                <description>A taxonomic classification of living organisms and associated artifacts for their controlled description within the context of databases.</description>
46                                                <url>http://bioportal.bioontology.org/ontologies/38802</url>
47                                                <versionNumber>1.2</versionNumber>
48                                        </ontology>
49                                </ontologies>
50                        </templateField>
51                        <templateField>
52                                <name>Species</name>
53                                <type>ONTOLOGYTERM</type>
54                                <unit />
55                                <comment></comment>
56                                <ontologies>
57                                        <ontology>
58                                                <ncboId>1132</ncboId>
59                                                <ncboVersionedId>38802</ncboVersionedId>
60                                        </ontology>
61                                </ontologies>
62                        </templateField>
63                        <templateField>
64                                <name>Institute</name>
65                                <type>STRINGLIST</type>
66                                <unit />
67                                <comment>What institution has performed this study</comment>
68                                <listItems>
69                                        <listItem>
70                                                <name>TNO</name>
71                                        </listItem>
72                                        <listItem>
73                                                <name>Leiden University</name>
74                                        </listItem>
75                                        <listItem>
76                                                <name>WUR Wageningen</name>
77                                        </listItem>
78                                </listItems>
79                        </templateField>
80                </templateFields>
81        </template>
82</templates>
Note: See TracBrowser for help on using the repository browser.