Project

General

Profile

metacat / lib / schema / onedcx / onedcx.xsd @ 9857

1
<?xml version="1.0" encoding="UTF-8"?>
2
<!--
3

    
4
DataOne Dublin Core Extended Schema v1.0
5

    
6
This schema is based on the Library of Congres Dublin Core Extended Schema:
7
www.loc.gov/standards/sru/cql/contextSets/dcx/dcx.xsd
8
by Ray Denenberg (Library of Congress)
9

    
10
However this schema uses an unmodified dcterms.xsd schema and 
11
removes use of the 'mediator' and 'educationLevel' elements.  This is done
12
to avoid the substitution group ambiguity issues found in these elements
13
 when used in <xs:choice> defined parent element.
14

    
15
This schema allows you to include
16
1. dcterm simple elements (original 15)
17
2. dcterms elements
18
3. other elements
19

    
20
An instance looks like this:
21

    
22
<metadata>
23
	<simpleDc>
24
		<dcterms:title/>
25
		<dcterms:creator/>
26
	</simpleDc>
27
	<dcTerms>
28
		<dcterms:abstract/>
29
	</dcTerms>
30
	<otherElements>
31
		<other:xyz xmlns:other="info:xxx"/>
32
	</otherElements>
33
</metadata>
34

    
35
It is strongly encouraged that one 'title', 'abstract', at least one 'creator', 
36
	and a 'dateSubmitted' or 'available' date be provided.  This aids in the display of the document
37
	in the search index and search engine views.
38

    
39
-->
40
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
41
	targetNamespace="http://ns.dataone.org/metadata/schema/onedcx/v1.0"
42
 	xmlns="http://ns.dataone.org/metadata/schema/onedcx/v1.0"
43
  	xmlns:dcterms="http://purl.org/dc/terms/" 
44
  	elementFormDefault="qualified" 
45
  	attributeFormDefault="unqualified">
46

    
47
	<xs:import namespace="http://purl.org/dc/terms/" schemaLocation="http://dublincore.org/schemas/xmls/qdc/2008/02/11/dcterms.xsd"/>
48
	<!--
49
Root element declarations:
50
-->
51
	<xs:element name="metadata" type="onedcxType"/>
52
	<!--
53
End root element declarations:
54
-->
55
	<xs:complexType name="onedcxType">
56
		<xs:sequence>
57
			<xs:element name="simpleDc" minOccurs="0" maxOccurs="1" type="simpleDcType"/>
58
			<xs:element name="dcTerms" minOccurs="0" maxOccurs="1" type="dcTermsType"/>
59
			<xs:element name="otherElements" minOccurs="0" maxOccurs="1" type="otherElementsType"/>
60
		</xs:sequence>
61
	</xs:complexType>
62
	<xs:complexType name="simpleDcType">
63
		<xs:choice maxOccurs="unbounded">
64
			<xs:element ref="dcterms:title"/>
65
			<xs:element ref="dcterms:creator"/>
66
			<xs:element ref="dcterms:subject"/>
67
			<xs:element ref="dcterms:description"/>
68
			<xs:element ref="dcterms:publisher"/>
69
			<xs:element ref="dcterms:contributor"/>
70
			<xs:element ref="dcterms:date"/>
71
			<xs:element ref="dcterms:type"/>
72
			<xs:element ref="dcterms:format"/>
73
			<xs:element ref="dcterms:identifier"/>
74
			<xs:element ref="dcterms:source"/>
75
			<xs:element ref="dcterms:language"/>
76
			<xs:element ref="dcterms:relation"/>
77
			<xs:element ref="dcterms:coverage"/>
78
			<xs:element ref="dcterms:rights"/>
79
		</xs:choice>
80
	</xs:complexType>
81
	<xs:complexType name="dcTermsType">
82
		<xs:choice maxOccurs="unbounded">
83
			<xs:element ref="dcterms:alternative"/>
84
			<xs:element ref="dcterms:tableOfContents"/>
85
			<xs:element ref="dcterms:abstract"/>
86
			<xs:element ref="dcterms:created"/>
87
			<xs:element ref="dcterms:valid"/>
88
			<xs:element ref="dcterms:available"/>
89
			<xs:element ref="dcterms:issued"/>
90
			<xs:element ref="dcterms:modified"/>
91
			<xs:element ref="dcterms:dateAccepted"/>
92
			<xs:element ref="dcterms:dateCopyrighted"/>
93
			<xs:element ref="dcterms:dateSubmitted"/>
94
			<xs:element ref="dcterms:extent"/>
95
			<xs:element ref="dcterms:medium"/>
96
			<xs:element ref="dcterms:isVersionOf"/>
97
			<xs:element ref="dcterms:hasVersion"/>
98
			<xs:element ref="dcterms:isReplacedBy"/>
99
			<xs:element ref="dcterms:replaces"/>
100
			<xs:element ref="dcterms:isRequiredBy"/>
101
			<xs:element ref="dcterms:requires"/>
102
			<xs:element ref="dcterms:isPartOf"/>
103
			<xs:element ref="dcterms:hasPart"/>
104
			<xs:element ref="dcterms:isReferencedBy"/>
105
			<xs:element ref="dcterms:references"/>
106
			<xs:element ref="dcterms:isFormatOf"/>
107
			<xs:element ref="dcterms:hasFormat"/>
108
			<xs:element ref="dcterms:conformsTo"/>
109
			<xs:element ref="dcterms:spatial"/>
110
			<xs:element ref="dcterms:temporal"/>
111
			<xs:element ref="dcterms:audience"/>
112
			<xs:element ref="dcterms:accrualMethod"/>
113
			<xs:element ref="dcterms:accrualPeriodicity"/>
114
			<xs:element ref="dcterms:accrualPolicy"/>
115
			<xs:element ref="dcterms:instructionalMethod"/>
116
			<xs:element ref="dcterms:provenance"/>
117
			<xs:element ref="dcterms:rightsHolder"/>
118
			<xs:element ref="dcterms:accessRights"/>
119
			<xs:element ref="dcterms:license"/>
120
			<xs:element ref="dcterms:bibliographicCitation"/>
121
		</xs:choice>
122
	</xs:complexType>
123
	<xs:complexType name="otherElementsType">
124
		<xs:sequence>
125
			<xs:any maxOccurs="unbounded" namespace="##any" processContents="lax"/>
126
		</xs:sequence>
127
	</xs:complexType>
128
</xs:schema>