<?xml version="1.0" encoding="UTF-8"?>

  <!--
   ***************************************************************
   * Licensed to the Apache Software Foundation (ASF) under one
   * or more contributor license agreements.  See the NOTICE file
   * distributed with this work for additional information
   * regarding copyright ownership.  The ASF licenses this file
   * to you under the Apache License, Version 2.0 (the
   * "License"); you may not use this file except in compliance
   * with the License.  You may obtain a copy of the License at
   *
   *   http://www.apache.org/licenses/LICENSE-2.0
   * 
   * Unless required by applicable law or agreed to in writing,
   * software distributed under the License is distributed on an
   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
   * KIND, either express or implied.  See the License for the
   * specific language governing permissions and limitations
   * under the License.
   ***************************************************************
   -->

<typeSystemDescription  xmlns="http://uima.apache.org/resourceSpecifier">
    <name>GTS</name>
    <description>Component of GALE Type System:  types for cross-referencing among sofas.</description>
    <version>1.4</version>
    <imports>
      <import location="GaleSpeechTypes.xml"/>
      <import location="GaleMTTypes.xml"/>
      <import location="GaleEntityTypes.xml"/>
    </imports>
    <types>

	<!-- ================================================================
	AudioXref
	================================================================ -->

        <typeDescription>
            <name>org.gale.AudioXref</name>
            <description>Cross-reference from a text annotation back to the corresponding AudioSpan.
            </description>
            <supertypeName>uima.tcas.Annotation</supertypeName>
            <features>
                <featureDescription>
                    <name>span</name>
                    <description>Reference to an AudioSpan on the Audio Sofa</description>
                    <rangeTypeName>org.gale.AudioSpan</rangeTypeName>
                </featureDescription>
            </features>
        </typeDescription>

	<!-- ================================================================
	TranslateXref
	================================================================ -->

        <typeDescription>
            <name>org.gale.TranslateXref</name>
            <description>Cross-reference from an annotation on target text back to the corresponding source.
                Aligns a pair of phrases in the source and target texts such
                that all word-word alignments are within the phrases.
                Usually the smallest pairings with all internal alignments, but
                could be larger, i.e. sentence-to-sentence.
            </description>
            <supertypeName>uima.tcas.Annotation</supertypeName>
            <features>
                <featureDescription>
                    <name>source</name>
                    <description>Reference to an Annotation on the source language Sofa</description>
                    <rangeTypeName>uima.tcas.Annotation</rangeTypeName>
                </featureDescription>
            </features>
        </typeDescription>

	<!-- ================================================================
	TranslationResultXref
	================================================================ -->

        <typeDescription>
            <name>org.gale.TranslationResultXref</name>
            <description>Cross-reference from an annotation on target
            text back to the corresponding TranslationResult.
            Aligns a span of target text to the TranslationResult
            on the source-language sofa that provided it.
            </description>
            <supertypeName>uima.tcas.Annotation</supertypeName>
            <features>
                <featureDescription>
                    <name>source</name>
                    <description>Reference to an TranslationResult on the source language Sofa</description>
                    <rangeTypeName>org.gale.TranslationResult</rangeTypeName>
                </featureDescription>
            </features>
        </typeDescription>

	<!-- ================================================================
	EntityMentionXref
	================================================================ -->

        <typeDescription>
            <name>org.gale.EntityMentionXref</name>
            <description>Cross-reference from an EntityMention on target text
              back to the corresponding EntityMention on the source-language
              sofa.  Mentions are expected to be a single span of text in both
              the source and target sofas.
            </description>
            <supertypeName>uima.tcas.Annotation</supertypeName>
            <features>
                <featureDescription>
                    <name>source</name>
                    <description>Reference to a Mention on the source language Sofa</description>
                    <rangeTypeName>org.gale.EntityMention</rangeTypeName>
                </featureDescription>
                <featureDescription>
                    <name>target</name>
                    <description>Reference to an EntityMention on the target language Sofa</description>
                    <rangeTypeName>org.gale.EntityMention</rangeTypeName>
                </featureDescription>
            </features>
        </typeDescription>

	<!-- ================================================================
	EventMentionXref
	================================================================ -->

        <typeDescription>
            <name>org.gale.EventMentionXref</name>
            <description>Cross-reference from an EventMention on
            target text back to the corresponding EventMention on the
            source-language sofa.
            </description>
            <supertypeName>uima.tcas.Annotation</supertypeName>
            <features>
                <featureDescription>
                    <name>source</name>
                    <description>Reference to a Mention on the source language Sofa</description>
                    <rangeTypeName>org.gale.EventMention</rangeTypeName>
                </featureDescription>
                <featureDescription>
                    <name>target</name>
                    <description>Reference to an Mention on the target language Sofa</description>
                    <rangeTypeName>org.gale.EventMention</rangeTypeName>
                </featureDescription>
            </features>
        </typeDescription>

	<!-- ================================================================
	RelationMentionXref
	================================================================ -->

        <typeDescription>
            <name>org.gale.RelationMentionXref</name>
            <description>Cross-reference from a RelationMention on
            target text back to the corresponding RelationMention on
            the source-language sofa.
            </description>
            <supertypeName>uima.tcas.Annotation</supertypeName>
            <features>
                <featureDescription>
                    <name>source</name>
                    <description>Reference to a Mention on the source-language Sofa</description>
                    <rangeTypeName>org.gale.RelationMention</rangeTypeName>
                </featureDescription>
                <featureDescription>
                    <name>target</name>
                    <description>Reference to an RelationMention on the target-language Sofa</description>
                    <rangeTypeName>org.gale.RelationMention</rangeTypeName>
                </featureDescription>
            </features>
        </typeDescription>

    </types>
</typeSystemDescription>
