You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by sc...@apache.org on 2011/03/29 16:04:43 UTC

svn commit: r1086587 - in /uima/uimaj/trunk/uimaj-core/src/test: java/org/apache/uima/ae/ java/org/apache/uima/ae/multiplier/ java/org/apache/uima/ae/noop/ resources/ExampleTae/ resources/data/

Author: schor
Date: Tue Mar 29 14:04:42 2011
New Revision: 1086587

URL: http://svn.apache.org/viewvc?rev=1086587&view=rev
Log:
[UIMA-2078] test case resources for MultiprocessingAE testing

Added:
    uima/uimaj/trunk/uimaj-core/src/test/java/org/apache/uima/ae/
    uima/uimaj/trunk/uimaj-core/src/test/java/org/apache/uima/ae/multiplier/
    uima/uimaj/trunk/uimaj-core/src/test/java/org/apache/uima/ae/multiplier/SimpleCasGenerator.java
    uima/uimaj/trunk/uimaj-core/src/test/java/org/apache/uima/ae/noop/
    uima/uimaj/trunk/uimaj-core/src/test/java/org/apache/uima/ae/noop/NoOpAnnotator.java
    uima/uimaj/trunk/uimaj-core/src/test/resources/ExampleTae/NoOpAnnotator.xml
    uima/uimaj/trunk/uimaj-core/src/test/resources/ExampleTae/SimpleCasGenerator.xml
    uima/uimaj/trunk/uimaj-core/src/test/resources/ExampleTae/SimpleTestAggregate.xml
    uima/uimaj/trunk/uimaj-core/src/test/resources/data/IBM_LifeSciences.xml

Added: uima/uimaj/trunk/uimaj-core/src/test/java/org/apache/uima/ae/multiplier/SimpleCasGenerator.java
URL: http://svn.apache.org/viewvc/uima/uimaj/trunk/uimaj-core/src/test/java/org/apache/uima/ae/multiplier/SimpleCasGenerator.java?rev=1086587&view=auto
==============================================================================
--- uima/uimaj/trunk/uimaj-core/src/test/java/org/apache/uima/ae/multiplier/SimpleCasGenerator.java (added)
+++ uima/uimaj/trunk/uimaj-core/src/test/java/org/apache/uima/ae/multiplier/SimpleCasGenerator.java Tue Mar 29 14:04:42 2011
@@ -0,0 +1,146 @@
+/*
+ * 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.
+ */
+
+package org.apache.uima.ae.multiplier;
+
+/*
+ * 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.
+ */
+
+import java.io.File;
+import java.io.FileInputStream;
+import java.net.URL;
+
+import org.apache.uima.UIMAFramework;
+import org.apache.uima.UimaContext;
+import org.apache.uima.analysis_component.CasMultiplier_ImplBase;
+import org.apache.uima.analysis_engine.AnalysisEngineProcessException;
+import org.apache.uima.cas.AbstractCas;
+import org.apache.uima.cas.CAS;
+import org.apache.uima.resource.ResourceInitializationException;
+import org.apache.uima.util.Level;
+
+/**
+ * An example CasMultiplier, which generates the specified number of output CASes.
+ */
+public class SimpleCasGenerator extends CasMultiplier_ImplBase {
+  private int mCount;
+
+  private int nToGen;
+
+  private String text;
+
+  long docCount = 0;
+
+  /*
+   * (non-Javadoc)
+   * 
+   * @seeorg.apache.uima.analysis_component.AnalysisComponent_ImplBase#initialize(org.apache.uima.
+   * UimaContext)
+   */
+  public void initialize(UimaContext aContext) throws ResourceInitializationException {
+    super.initialize(aContext);
+    this.nToGen = ((Integer) aContext.getConfigParameterValue("NumberToGenerate")).intValue();
+    FileInputStream fis = null;
+    try {
+      String filename = ((String) aContext.getConfigParameterValue("InputFile")).trim();
+      File file = null;
+      try {
+        URL url = this.getClass().getClassLoader().getResource(filename);
+//        System.out.println("************ File::::" + url.getPath());
+        // open input stream to file
+        file = new File(url.getPath());
+      } catch (Exception e) {
+        file = new File(filename);
+      }
+      fis = new FileInputStream(file);
+      byte[] contents = new byte[(int) file.length()];
+      fis.read(contents);
+      text = new String(contents);
+    } catch (Exception e) {
+      throw new ResourceInitializationException(e);
+    } finally {
+      if (fis != null) {
+        try {
+          fis.close();
+        } catch (Exception e) {
+        }
+      }
+    }
+
+  }
+
+  /*
+   * (non-Javadoc)
+   * 
+   * @see JCasMultiplier_ImplBase#process(JCas)
+   */
+  public void process(CAS aCas) throws AnalysisEngineProcessException {
+    this.mCount = 0;
+    this.docCount = 0;
+  }
+
+  /*
+   * (non-Javadoc)
+   * 
+   * @see org.apache.uima.analysis_component.AnalysisComponent#hasNext()
+   */
+  public boolean hasNext() throws AnalysisEngineProcessException {
+    return this.mCount < this.nToGen;
+  }
+
+  /*
+   * (non-Javadoc)
+   * 
+   * @see org.apache.uima.analysis_component.AnalysisComponent#next()
+   */
+  public AbstractCas next() throws AnalysisEngineProcessException {
+
+    CAS cas = getEmptyCAS();
+    /*
+     * int junk = this.gen.nextInt(); if ((junk & 1) != 0) { cas.setDocumentText(this.mDoc1); } else
+     * { cas.setDocumentText(this.mDoc2); }
+     */
+    if (docCount == 0 && UIMAFramework.getLogger().isLoggable(Level.FINE)) {
+      System.out.println("Initializing CAS with a Document of Size:" + text.length());
+    }
+    docCount++;
+    if (UIMAFramework.getLogger().isLoggable(Level.FINE))
+      System.out.println("CasMult creating document#" + docCount);
+    cas.setDocumentText(this.text);
+    this.mCount++;
+    return cas;
+  }
+
+}

Added: uima/uimaj/trunk/uimaj-core/src/test/java/org/apache/uima/ae/noop/NoOpAnnotator.java
URL: http://svn.apache.org/viewvc/uima/uimaj/trunk/uimaj-core/src/test/java/org/apache/uima/ae/noop/NoOpAnnotator.java?rev=1086587&view=auto
==============================================================================
--- uima/uimaj/trunk/uimaj-core/src/test/java/org/apache/uima/ae/noop/NoOpAnnotator.java (added)
+++ uima/uimaj/trunk/uimaj-core/src/test/java/org/apache/uima/ae/noop/NoOpAnnotator.java Tue Mar 29 14:04:42 2011
@@ -0,0 +1,141 @@
+/*
+ * 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.
+ */
+
+package org.apache.uima.ae.noop;
+
+import java.io.FileNotFoundException;
+
+import org.apache.uima.UIMAFramework;
+import org.apache.uima.UimaContext;
+import org.apache.uima.analysis_component.CasAnnotator_ImplBase;
+import org.apache.uima.analysis_engine.AnalysisEngineProcessException;
+import org.apache.uima.cas.CAS;
+import org.apache.uima.cas.TypeSystem;
+import org.apache.uima.resource.ResourceInitializationException;
+import org.apache.uima.util.Level;
+import org.apache.uima.util.Logger;
+
+public class NoOpAnnotator extends CasAnnotator_ImplBase {
+  private long counter = 0;
+
+  private long countDown = 0;
+
+  int errorFrequency = 0;
+
+  int processDelay = 0;
+
+  int finalCount = 0;
+
+  int cpcDelay = 0;
+
+  public void initialize(UimaContext aContext) throws ResourceInitializationException {
+    super.initialize(aContext);
+
+    if (getContext().getConfigParameterValue("FailDuringInitialization") != null) {
+      throw new ResourceInitializationException(new FileNotFoundException("Simulated Exception"));
+    }
+
+    if (getContext().getConfigParameterValue("ErrorFrequency") != null) {
+      errorFrequency = ((Integer) getContext().getConfigParameterValue("ErrorFrequency"))
+              .intValue();
+      countDown = errorFrequency;
+    }
+
+    if (getContext().getConfigParameterValue("CpCDelay") != null) {
+      cpcDelay = ((Integer) getContext().getConfigParameterValue("CpCDelay")).intValue();
+      System.out.println("NoOpAnnotator.initialize() Initializing With CpC Delay of " + cpcDelay
+              + " millis");
+    }
+    if (getContext().getConfigParameterValue("ProcessDelay") != null) {
+      processDelay = ((Integer) getContext().getConfigParameterValue("ProcessDelay")).intValue();
+      System.out.println("NoOpAnnotator.initialize() Initializing With Process Delay of "
+              + processDelay + " millis");
+
+    }
+    if (getContext().getConfigParameterValue("FinalCount") != null) {
+      finalCount = ((Integer) getContext().getConfigParameterValue("FinalCount")).intValue();
+    }
+
+    // write log messages
+    Logger logger = getContext().getLogger();
+    logger.log(Level.CONFIG, "NAnnotator initialized");
+  }
+
+  public void typeSystemInit(TypeSystem aTypeSystem) throws AnalysisEngineProcessException {
+  }
+
+  public void collectionProcessComplete() throws AnalysisEngineProcessException {
+    System.out
+            .println("NoOpAnnotator.collectionProcessComplete() Called -------------------------------------");
+
+    if (cpcDelay > 0) {
+      try {
+        System.out.println("NoOpAnnotator.collectionProcessComplete() Delaying CpC Reply For "
+                + cpcDelay + " millis");
+        synchronized (this) {
+          this.wait(cpcDelay);
+        }
+      } catch (InterruptedException e) {
+
+      }
+    }
+    if (finalCount > 0 && finalCount != counter) {
+      String msg = "NoOpAnnotator expected " + finalCount + " CASes but was given " + counter;
+      System.out.println(msg);
+      throw new AnalysisEngineProcessException(new Exception(msg));
+    }
+    counter = 0;
+  }
+
+  public void process(CAS aCAS) throws AnalysisEngineProcessException {
+    ++counter;
+    try {
+      if (processDelay == 0) {
+        if (UIMAFramework.getLogger().isLoggable(Level.FINE))
+          System.out.println("NoOpAnnotator.process() called for the " + counter
+                  + "th time. Hashcode:" + hashCode());
+      } else {
+        // if ( UIMAFramework.getLogger().isLoggable(Level.FINE))
+        System.out.println("NoOpAnnotator.process() called for the " + counter
+                + "th time, delaying Response For:" + processDelay + " millis");
+        synchronized (this) {
+          try {
+            wait(processDelay);
+          } catch (InterruptedException e) {
+          }
+        }
+      }
+
+      // If creating exceptions, reduce interval between them each time.
+      if (errorFrequency > 0) {
+        if (--countDown == 0) {
+          System.out.println("Generating OutOfBoundsException on " + counter + "th call.");
+          if (errorFrequency > 1) {
+            --errorFrequency;
+          }
+          countDown = errorFrequency;
+          throw new IndexOutOfBoundsException();
+        }
+      }
+    } catch (Exception e) {
+      throw new AnalysisEngineProcessException(e);
+    }
+  }
+
+}

Added: uima/uimaj/trunk/uimaj-core/src/test/resources/ExampleTae/NoOpAnnotator.xml
URL: http://svn.apache.org/viewvc/uima/uimaj/trunk/uimaj-core/src/test/resources/ExampleTae/NoOpAnnotator.xml?rev=1086587&view=auto
==============================================================================
--- uima/uimaj/trunk/uimaj-core/src/test/resources/ExampleTae/NoOpAnnotator.xml (added)
+++ uima/uimaj/trunk/uimaj-core/src/test/resources/ExampleTae/NoOpAnnotator.xml Tue Mar 29 14:04:42 2011
@@ -0,0 +1,80 @@
+<?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.
+   ***************************************************************
+   -->
+<analysisEngineDescription xmlns="http://uima.apache.org/resourceSpecifier">
+  <frameworkImplementation>org.apache.uima.java</frameworkImplementation>
+  <primitive>true</primitive>
+  <annotatorImplementationName>org.apache.uima.ae.noop.NoOpAnnotator</annotatorImplementationName>
+  <analysisEngineMetaData>
+    <name>NoOpAnnotator</name>
+    <description>Annotator That Does Nothin</description>
+    <version>1.0</version>
+    <vendor>The Apache Software Foundation</vendor>
+    
+    <configurationParameters>
+      <configurationParameter>
+        <name>ErrorFrequency</name>
+        <description>Frequency of Generated Errors</description>
+        <type>Integer</type>
+        <multiValued>false</multiValued>
+        <mandatory>true</mandatory>
+      </configurationParameter>
+
+      <configurationParameter>
+        <name>ProcessDelay</name>
+        <description>Process Delay</description>
+        <type>Integer</type>
+        <multiValued>false</multiValued>
+        <mandatory>true</mandatory>
+      </configurationParameter>
+    
+    </configurationParameters>
+    
+    <configurationParameterSettings>
+      <nameValuePair>
+        <name>ErrorFrequency</name>
+        <value>
+          <integer>0</integer>
+        </value>
+      </nameValuePair>
+
+      <nameValuePair>
+        <name>ProcessDelay</name>
+        <value>
+          <integer>0</integer>
+        </value>
+      </nameValuePair>
+    
+    </configurationParameterSettings>
+    
+    <typeSystemDescription>
+    </typeSystemDescription>
+    
+    <capabilities>
+    </capabilities>
+	
+    <operationalProperties>
+		<modifiesCas>true</modifiesCas>
+		<multipleDeploymentAllowed>true</multipleDeploymentAllowed>
+		<outputsNewCASes>false</outputsNewCASes>
+	</operationalProperties>	  
+  </analysisEngineMetaData>
+</analysisEngineDescription>

Added: uima/uimaj/trunk/uimaj-core/src/test/resources/ExampleTae/SimpleCasGenerator.xml
URL: http://svn.apache.org/viewvc/uima/uimaj/trunk/uimaj-core/src/test/resources/ExampleTae/SimpleCasGenerator.xml?rev=1086587&view=auto
==============================================================================
--- uima/uimaj/trunk/uimaj-core/src/test/resources/ExampleTae/SimpleCasGenerator.xml (added)
+++ uima/uimaj/trunk/uimaj-core/src/test/resources/ExampleTae/SimpleCasGenerator.xml Tue Mar 29 14:04:42 2011
@@ -0,0 +1,112 @@
+<?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.
+   ***************************************************************
+   -->
+<analysisEngineDescription xmlns="http://uima.apache.org/resourceSpecifier">
+  <frameworkImplementation>org.apache.uima.java</frameworkImplementation>
+  <primitive>true</primitive>
+  <annotatorImplementationName>org.apache.uima.ae.multiplier.SimpleCasGenerator</annotatorImplementationName>
+  <analysisEngineMetaData>
+    <name>Simple Text Segmenter</name>
+    <description>Generates specified number of CASes.</description>
+    <version>1.0</version>
+    <vendor>The Apache Software Foundation</vendor>
+    <configurationParameters>
+      <configurationParameter>
+        <name>NumberToGenerate</name>
+        <description>Approximate number of CASes to create.</description>
+        <type>Integer</type>
+        <multiValued>false</multiValued>
+        <mandatory>true</mandatory>
+      </configurationParameter>
+      
+      
+      <configurationParameter>
+        <name>StringOne</name>
+        <description>document text</description>
+        <type>String</type>
+        <multiValued>false</multiValued>
+        <mandatory>true</mandatory>
+      </configurationParameter>
+      <configurationParameter>
+        <name>StringTwo</name>
+        <description>document text</description>
+        <type>String</type>
+        <multiValued>false</multiValued>
+        <mandatory>true</mandatory>
+      </configurationParameter>
+    
+    
+      <configurationParameter>
+        <name>InputFile</name>
+        <description>document text</description>
+        <type>String</type>
+        <multiValued>false</multiValued>
+        <mandatory>true</mandatory>
+      </configurationParameter>
+    
+    
+    
+    
+    </configurationParameters>
+    <configurationParameterSettings>
+      <nameValuePair>
+        <name>NumberToGenerate</name>
+        <value>
+          <integer>1</integer>
+        </value>
+      </nameValuePair>
+      <nameValuePair>
+        <name>StringOne</name>
+        <value>
+          <string>Upcoming UIMA Seminars      April 7, 2004 Distillery Lunch Seminar   UIMA and its Metadata   12:00PM-1:00PM in HAW GN-K35.       Dave Ferrucci will give a UIMA overview and discuss the types of component metadata that UIMA components provide.  Jon Lenchner will give a demo of the Text Analysis Engine configurator tool.         April 16, 2004 KM &amp; I Department Tea    Title: An Eclipse-based TAE Configurator Tool   3:00PM-4:30PM in HAW GN-K35 .      Jon Lenchner will demo an Eclipse plugin for configuring TAE descriptors, which will be available soon for you to use.  No more editing XML descriptors by hand!         May 11, 2004 UIMA Tutorial    9:00AM-5:00PM in HAW GN-K35.      This is a full-day, hands-on tutorial on UIMA, covering the development of Text Analysis Engines and Collection Processing Engines, as well as how to include these components in your own applications.   </string>
+        </value>
+      </nameValuePair>
+      <nameValuePair>
+        <name>StringTwo</name>
+        <value>
+          <string>UIMA Summer School      August 26, 2003   UIMA 101 - The New UIMA Introduction    (Hands-on Tutorial)   9:00AM-5:00PM in HAW GN-K35      August 28, 2003   FROST Tutorial   9:00AM-5:00PM in HAW GN-K35      September 15, 2003   UIMA 201: UIMA Advanced Topics    (Hands-on Tutorial)   9:00AM-5:00PM in HAW 1S-F53      September 17, 2003   The UIMA System Integration Test and Hardening Service   The "SITH"   3:00PM-4:30PM in HAW GN-K35            UIMA Summer School Tutorial and Presentation Details   UIMA 101: The new UIMA tutorial     Tuesday August 26 9:00AM - 4:30PM in GN-K35      UIMA 101 is a hands-on programming tutorial.      UIMA 101 is intended for people who want a first introductory course to UIMA or for people who would like a refresher.      The tutorial covers the same concepts in the first UIMA tutorial given in 3Q 2002 except for some key updates:      1) It uses a new interface to the CAS that makes it more natural to access and update CAS featur
 e structures using ordinary Java objects (i.e., the JCAS) and   2) It uses updated TAE interfaces that give the application developer more control over managing multiple CASs.       Please NOTE expert users of UIMA can skip this one and should consider attending the Advanced Topics tutorial.      Prerequisites for the UIMA 101 Tutorial   1) Java Programming   2) Some experience with Eclipse IDE helpful      FROST Tutorial   August 28  9:00AM - 5:00PM  in GN-K35      Visitors from the FROST team will be here to talk to us about FROST.      UIMA 201: The UIMA Advanced Topics Tutorial   September 15:   9:00AM - 5:30PM in Hawthorne 1S-F53      UIMA 201 will introduce some new UIMA concepts and walk the student through hands-on examples.      The advanced topics tutorial is designed for people who have some experience with UIMA and want    to use new capabilities of UIMA 1.0 to address one or more of the following    Advanced Topics:      1) Collection Processing and Collection P
 rocessing Engines (CPEs)   2) Multi-Threading and CAS Pooling   3) Using the UIMA adapter framework to integrate network TAEs with Java TAEs   4) A Semantic Search Application that brings it all together	      Prerequisites for UIMA 201   1) UIMA 101 Tutorial OR Extensive UIMA Experience      The UIMA Integration Test bed Service (The "SITH")   September 17 3:00PM - 4:30PM in HAW GN-K35      We have developed the first version of the UIMA Integration Test bed service.      This service is being developed to help test, evaluate, certify and publish UIMA compliant components.      In this talk we will explain the service and what it is intended to provide the UIMA community. We will address the following topics:      1. SITH Services   2. How to submit components and what to expect in return   3. Overview of the test bed implementation using Collection Processing UIMA and Juru.    4. Next Steps for the SITH         </string>
+        </value>
+      </nameValuePair>
+    
+      <nameValuePair>
+        <name>InputFile</name>
+        <value>
+        <string>src/test/resources/data/IBM_LifeSciences.xml</string>
+          <!-- <string>c:/new-nt.xml</string>  -->
+        </value>
+      </nameValuePair>
+    
+    </configurationParameterSettings>
+    <typeSystemDescription/>
+    <capabilities>
+      <capability>
+        <inputs/>
+        <outputs/>
+        <languagesSupported/>
+      </capability>
+    </capabilities>
+    <operationalProperties>
+      <modifiesCas>false</modifiesCas>
+      <multipleDeploymentAllowed>true</multipleDeploymentAllowed>
+      <outputsNewCASes>true</outputsNewCASes>
+    </operationalProperties>
+  </analysisEngineMetaData>
+</analysisEngineDescription>

Added: uima/uimaj/trunk/uimaj-core/src/test/resources/ExampleTae/SimpleTestAggregate.xml
URL: http://svn.apache.org/viewvc/uima/uimaj/trunk/uimaj-core/src/test/resources/ExampleTae/SimpleTestAggregate.xml?rev=1086587&view=auto
==============================================================================
--- uima/uimaj/trunk/uimaj-core/src/test/resources/ExampleTae/SimpleTestAggregate.xml (added)
+++ uima/uimaj/trunk/uimaj-core/src/test/resources/ExampleTae/SimpleTestAggregate.xml Tue Mar 29 14:04:42 2011
@@ -0,0 +1,67 @@
+<?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.
+	 ***************************************************************
+   -->
+   
+<analysisEngineDescription xmlns="http://uima.apache.org/resourceSpecifier">
+  <frameworkImplementation>org.apache.uima.java</frameworkImplementation>
+  <primitive>false</primitive>
+  <delegateAnalysisEngineSpecifiers>
+    
+    <delegateAnalysisEngine key="TestMultiplier">
+      <import location="SimpleCasGenerator.xml"/>
+    </delegateAnalysisEngine>
+
+
+      <delegateAnalysisEngine key="NoOp">
+      <import location="NoOpAnnotator.xml"/>
+    </delegateAnalysisEngine>
+  
+  </delegateAnalysisEngineSpecifiers>
+  <analysisEngineMetaData>
+    <name>Test Aggregate TAE</name>
+    <description>Detects Nothing</description>
+    <configurationParameters/>
+    <configurationParameterSettings/>
+    <flowConstraints>
+      <fixedFlow>
+      
+        <node>TestMultiplier</node>
+        <node>NoOp</node> 
+      </fixedFlow>
+    </flowConstraints>
+    <capabilities>
+      <capability>
+        <inputs/>
+        <outputs>
+        </outputs>
+        <languagesSupported>
+          <language>en</language>
+        </languagesSupported>
+      </capability>
+    </capabilities>
+	<operationalProperties>
+		<modifiesCas>true</modifiesCas>
+		<multipleDeploymentAllowed>true</multipleDeploymentAllowed>
+		<outputsNewCASes>false</outputsNewCASes>
+	</operationalProperties>
+  </analysisEngineMetaData>
+</analysisEngineDescription>

Added: uima/uimaj/trunk/uimaj-core/src/test/resources/data/IBM_LifeSciences.xml
URL: http://svn.apache.org/viewvc/uima/uimaj/trunk/uimaj-core/src/test/resources/data/IBM_LifeSciences.xml?rev=1086587&view=auto
==============================================================================
--- uima/uimaj/trunk/uimaj-core/src/test/resources/data/IBM_LifeSciences.xml (added)
+++ uima/uimaj/trunk/uimaj-core/src/test/resources/data/IBM_LifeSciences.xml Tue Mar 29 14:04:42 2011
@@ -0,0 +1,40 @@
+<?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.
+	 ***************************************************************
+   -->
+
+<DOC>
+<TITLE>IBM announces $100 Million investment in Life Sciences</TITLE>
+<DATE>16 August 2000</DATE>
+<TEXT>"Life sciences is one of the emerging markets at the heart of IBM's growth strategy," said John M. Thompson, IBM senior vice president &amp; group executive, Software. "This investment is the first of a number of steps we will be taking to advance IBM's life sciences initiatives." In his role as newly appointed IBM Corporation vice chairman, effective September 1, Mr. Thompson will be responsible for integrating and accelerating IBM's efforts to exploit life sciences and other emerging growth areas.
+
+IBM estimates the market for IT solutions for life sciences will skyrocket from $3.5 billion today to more than $9 billion by 2003. Driving demand is the explosive growth in genomic, proteomic and pharmaceutical research. For example, the Human Genome Database is approximately three terabytes of data, or the equivalent of 150 million pages of information. The volume of life sciences data is doubling every six months. 
+
+"All of this genetic data is worthless without the information technology that can help scientists manage and analyze it to unlock the pathways that will lead to new cures for many of today's diseases," said Dr. Caroline Kovac, vice president of IBM's new Life Sciences unit. "IBM can help speed this process by enabling more efficient interpretation of data and sharing of knowledge. The potential for change based on innovation in life sciences is bigger than the change caused by the digital circuit."
+
+Among the life sciences initiatives already underway at IBM are:
+- DiscoveryLink* -- For the first time, researchers using this combination of innovative middleware and integration services can join together information from many sources to solve complex medical research problems. DiscoveryLink creates a "virtual database" that permits data to be accessed and extracted from multiple data sources used in research and development projects. This IT solution can dramatically improve product cycle time and lower development costs for pharmaceutical, biotechnology and agri-science companies. 
+
+- Blue Gene* - IBM is building a supercomputer 100 times faster than any available today designed to advance understanding of the mechanisms behind protein folding through large-scale biomolecular simulation. In December, IBM committed $100 million to this five-year research project to advance the state-of-the-art in supercomputing for biological applications.
+- Bio-Dictionary* -- IBM has compiled a protein dictionary containing some 30 million protein "words" designed to accelerate the understanding of protein shapes and functions.Bio-Dictionaries for selected genomes, as well as bioinformatics algorithms for pattern discovery and other relevant applications, are available to scientists and researchers for noncommercial use through a website dedicated to life sciences content at http://www.research.ibm.com/compsci/compbio/.
+</TEXT>
+<FOOTER>* Indicates trademark or registered trademark of IBM Corporation.</FOOTER>
+</DOC>
\ No newline at end of file