Author: tommaso
Date: Thu Apr 28 12:15:10 2011
New Revision: 1097429

URL: http://svn.apache.org/viewvc?rev=1097429&view=rev
Log:
[CLEREZZA-497] - fix casmodel param condition

Modified:
    
incubator/clerezza/trunk/parent/uima/uima.casconsumer/src/main/java/org/apache/clerezza/uima/casconsumer/ClerezzaCASConsumer.java
    
incubator/clerezza/trunk/parent/uima/uima.casconsumer/src/main/resources/ClerezzaCASConsumerDescriptor.xml

Modified: 
incubator/clerezza/trunk/parent/uima/uima.casconsumer/src/main/java/org/apache/clerezza/uima/casconsumer/ClerezzaCASConsumer.java
URL: 
http://svn.apache.org/viewvc/incubator/clerezza/trunk/parent/uima/uima.casconsumer/src/main/java/org/apache/clerezza/uima/casconsumer/ClerezzaCASConsumer.java?rev=1097429&r1=1097428&r2=1097429&view=diff
==============================================================================
--- 
incubator/clerezza/trunk/parent/uima/uima.casconsumer/src/main/java/org/apache/clerezza/uima/casconsumer/ClerezzaCASConsumer.java
 (original)
+++ 
incubator/clerezza/trunk/parent/uima/uima.casconsumer/src/main/java/org/apache/clerezza/uima/casconsumer/ClerezzaCASConsumer.java
 Thu Apr 28 12:15:10 2011
@@ -61,7 +61,8 @@ public class ClerezzaCASConsumer extends
     // create the root node
     GraphNode sample = new GraphNode(new BNode(), outputGraph);
 
-    if (casModelFilePath!=null && casModelFilePath.length()>0) {
+    // if no casModel was specified use the default mapping
+    if (casModelFilePath==null || casModelFilePath.length()==0) {
       try {
         UIMAUtils.enhanceNode(sample, UIMAUtils.getAllFSofType(TOP.type, 
cas.getJCas()));
       } catch (FeatureStructureNotFoundException e) {
@@ -70,6 +71,7 @@ public class ClerezzaCASConsumer extends
         throw new AnalysisEngineProcessException(e);
       }
     }
+    // TODO otherwise map UIMA FeatureStructures to Triples using the given 
casModel
 
   }
 

Modified: 
incubator/clerezza/trunk/parent/uima/uima.casconsumer/src/main/resources/ClerezzaCASConsumerDescriptor.xml
URL: 
http://svn.apache.org/viewvc/incubator/clerezza/trunk/parent/uima/uima.casconsumer/src/main/resources/ClerezzaCASConsumerDescriptor.xml?rev=1097429&r1=1097428&r2=1097429&view=diff
==============================================================================
--- 
incubator/clerezza/trunk/parent/uima/uima.casconsumer/src/main/resources/ClerezzaCASConsumerDescriptor.xml
 (original)
+++ 
incubator/clerezza/trunk/parent/uima/uima.casconsumer/src/main/resources/ClerezzaCASConsumerDescriptor.xml
 Thu Apr 28 12:15:10 2011
@@ -1,22 +1,22 @@
 <?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
+    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
+    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.
+    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";>


Reply via email to