<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XMLSPY v2004 rel. 2 U (http://www.xmlspy.com) by Markus Doering (BGBM) -->
<!--  $Id: keywordTransfer.xsd,v 1.4 2004/03/08 15:03:13 m.doering Exp $   -->
<xs:schema targetNamespace="http://www.biocase.org/schemas/keywords/1.2" xmlns="http://www.biocase.org/schemas/keywords/1.2" xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified" version="1.2">
	<xs:element name="termlist">
		<xs:complexType>
			<xs:sequence>
				<xs:element name="body" type="bodyType" minOccurs="0" maxOccurs="unbounded">
					<xs:annotation>
						<xs:documentation>For every body record, that is a collection organisation of network, a list of terms is bundled. A body record is identified either by its ID or by a combined key made of sourceID (the ID in NoDIT for example) and the nodeID (e.g. the National Nodes ID)</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element name="term" minOccurs="0" maxOccurs="unbounded">
					<xs:annotation>
						<xs:documentation>A single term given by the attribute name with an optional relevancy attribute. Status, source (of the term) and class (type of term) are recruited from a controlled vocabulary.</xs:documentation>
					</xs:annotation>
					<xs:complexType>
						<xs:complexContent>
							<xs:extension base="termType"/>
						</xs:complexContent>
					</xs:complexType>
				</xs:element>
			</xs:sequence>
		</xs:complexType>
	</xs:element>
	<xs:complexType name="bodyType">
		<xs:sequence>
			<xs:element name="term" maxOccurs="unbounded">
				<xs:annotation>
					<xs:documentation>A single term given by the attribute name with an optional relevancy attribute. Status, source (of the term) and class (type of term) are recruited from a controlled vocabulary.</xs:documentation>
				</xs:annotation>
				<xs:complexType>
					<xs:complexContent>
						<xs:extension base="termType"/>
					</xs:complexContent>
				</xs:complexType>
			</xs:element>
		</xs:sequence>
		<xs:attribute name="ID" type="xs:byte" use="optional"/>
		<xs:attribute name="sourceID" type="xs:string" use="optional"/>
		<xs:attribute name="nodeID" type="xs:string" use="optional"/>
		<xs:attribute name="documentType" type="xs:string" use="optional"/>
	</xs:complexType>
	<xs:complexType name="termType">
		<xs:attribute name="name" type="xs:string" use="required"/>
		<xs:attribute name="class" use="optional">
			<xs:simpleType>
				<xs:restriction base="xs:NMTOKENS">
					<xs:enumeration value="organisation class"/>
					<xs:enumeration value="object class"/>
					<xs:enumeration value="collection class"/>
					<xs:enumeration value="preservation method"/>
					<xs:enumeration value="taxon"/>
					<xs:enumeration value="common name"/>
					<xs:enumeration value="geography"/>
					<xs:enumeration value="time"/>
					<xs:enumeration value="living time"/>
					<xs:enumeration value="collecting time"/>
					<xs:enumeration value="assembling time"/>
					<xs:enumeration value="unknown"/>
				</xs:restriction>
			</xs:simpleType>
		</xs:attribute>
		<xs:attribute name="relevancy" type="xs:float" use="optional"/>
		<xs:attribute name="source" use="optional">
			<xs:simpleType>
				<xs:restriction base="xs:NMTOKEN">
					<xs:enumeration value="corm_description"/>
					<xs:enumeration value="meta_keywords"/>
					<xs:enumeration value="web_page_content"/>
					<xs:enumeration value="thesaurus_list"/>
				</xs:restriction>
			</xs:simpleType>
		</xs:attribute>
		<xs:attribute name="status" use="required">
			<xs:simpleType>
				<xs:restriction base="xs:NMTOKENS">
					<xs:enumeration value="to be validated"/>
					<xs:enumeration value="accepted"/>
					<xs:enumeration value="rejected"/>
					<xs:enumeration value="stop word"/>
				</xs:restriction>
			</xs:simpleType>
		</xs:attribute>
		<xs:attribute name="isInThesaurus" type="xs:boolean" use="optional"/>
	</xs:complexType>
</xs:schema>
