<?xml version="1.0" encoding="UTF-8"?>
<!-- 	XSD for the Sekimo Generic Format-Lexical Chaining (SGF-LC)
  Version: 1.0
  Date: 2008-10-29
  Copyright (c) 2008 Maik Stührenberg, Sekimo project, Bielefeld University.
  All rights reserved
  Contact: maik.stuehrenberg@uni-bielefeld.de
-->
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
	xmlns="http://www.text-technology.de/lc"
	targetNamespace="http://www.text-technology.de/lc"
	xmlns:sgf="http://www.text-technology.de/sekimo"	
	xmlns:xml="http://www.w3.org/XML/1998/namespace"
	elementFormDefault="qualified" attributeFormDefault="unqualified">
	<xsd:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="xml.xsd" />
	<xsd:import namespace="http://www.text-technology.de/sekimo" schemaLocation="root.xsd" />
	<xsd:element name="chains">
		<xsd:complexType>
			<xsd:sequence>
				<xsd:element ref="chain" minOccurs="1" maxOccurs="unbounded"/>
			</xsd:sequence>
		</xsd:complexType>
	</xsd:element>
	<xsd:element name="chain">
		<xsd:complexType>
			<xsd:choice minOccurs="1" maxOccurs="unbounded">
				<xsd:element ref="ref"/>
			</xsd:choice>
			<xsd:attribute ref="xml:id" use="required"/>
			<xsd:attribute name="label" type="xsd:string" use="required"/>
		</xsd:complexType>
	</xsd:element>
	<xsd:element name="link">
		<xsd:complexType>
			<xsd:attribute name="from" type="xsd:IDREF" use="required"/>
			<xsd:attribute name="to" type="xsd:IDREF" use="required"/>
			<xsd:attribute name="relation" type="xsd:string"/>
			<xsd:attribute name="relationDirection" type="xsd:string"/>
			<xsd:attribute name="distance" type="xsd:float"/>
			<xsd:attribute name="distanceType" type="xsd:string"/>
			<xsd:attribute name="resourceUsed" type="xsd:IDREF"/>
		</xsd:complexType>
	</xsd:element>
	<xsd:element name="ref">
		<xsd:complexType>
			<xsd:attribute ref="sgf:segment" use="required" />
			<xsd:attribute ref="sgf:previousVersionLogEntry" use="optional" />
		</xsd:complexType>
	</xsd:element>
</xsd:schema>

