From user-return-4788-apmail-uima-user-archive=uima.apache.org@uima.apache.org Tue Feb 26 21:50:25 2013 Return-Path: X-Original-To: apmail-uima-user-archive@www.apache.org Delivered-To: apmail-uima-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2155ED418 for ; Tue, 26 Feb 2013 21:50:25 +0000 (UTC) Received: (qmail 8714 invoked by uid 500); 26 Feb 2013 21:50:24 -0000 Delivered-To: apmail-uima-user-archive@uima.apache.org Received: (qmail 8682 invoked by uid 500); 26 Feb 2013 21:50:24 -0000 Mailing-List: contact user-help@uima.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@uima.apache.org Delivered-To: mailing list user@uima.apache.org Received: (qmail 8672 invoked by uid 99); 26 Feb 2013 21:50:24 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Feb 2013 21:50:24 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of prvs=76205e416=Larry.Kline@usoncology.com designates 143.112.139.10 as permitted sender) Received: from [143.112.139.10] (HELO mail.usoncology.com) (143.112.139.10) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Feb 2013 21:50:18 +0000 X-IronPort-AV: E=Sophos;i="4.84,743,1355126400"; d="scan'208";a="46384826" Received: from usodpwpbh001.uson.usoncology.int ([10.5.214.215]) by mail.usoncology.com with ESMTP; 26 Feb 2013 13:49:57 -0800 Received: from txhous1eb018.uson.usoncology.int ([10.5.214.218]) by USODPWPBH001.uson.usoncology.int with Microsoft SMTPSVC(6.0.3790.4675); Tue, 26 Feb 2013 13:49:57 -0800 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Subject: RE: problem retrieving the annotations of a specific sofa view over a REST service Date: Tue, 26 Feb 2013 15:49:56 -0600 Message-ID: In-Reply-To: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: problem retrieving the annotations of a specific sofa view over a REST service Thread-Index: Ac4UYxUgrDIERsflQZWYEKobcPhQlgAB1Xvw References: From: "Kline, Larry D" To: X-OriginalArrivalTime: 26 Feb 2013 21:49:57.0040 (UTC) FILETIME=[37CA8B00:01CE146B] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org I have a similar pipeline and deployment (as a pear in a web service). I do a JCas.reset at the end of the web service method. This of course clears all the annotations out of the CAS. So before I do that I copy the annotations into some serializable POJOs of my own. Those are what I return to the client. I'm not using a RESTful interface so I generate client side code from the web service's WSDL. I'm not sure that UIMA annotations can be serialized over a web service call. Or if you would even want to. They have a very complicated internal structure. Larry Kline -----Original Message----- From: Helen Johnson -X (heljohns - Infobahn Softworld Inc at Cisco) [mailto:heljohns@cisco.com] = Sent: Tuesday, February 26, 2013 12:52 PM To: user@uima.apache.org Subject: problem retrieving the annotations of a specific sofa view over a REST service I have a UIMA pipeline that consists of an AAE that uses multiple sofa views. The first component of the AAE takes the _InitialView cas.documentText, which is XML, converts it to plain text, and inputs this new text and some annotations into a new view called plainText (thank you to those last week that helped me figure out this labyrinth). The subsequent AEs in the AAE create many annotations. A final AnnotationPrinter AE at the end of the pipeline shows that the plainText view of the CAS contains the annotations I expect. Next, this AAE is wrapped into a PEAR and deployed onto a tomcat server as a REST service (using the sandbox SimpleServer). The response to a call to the AAE server is supposed to be the annotations. However, the result is blank - there are no annotations being sent back from the AAE. - Could this have to do with the annotations being associated with the plainText view instead of the _InitialView? - If so, how do I force the AAE to return the annotations associated with the plainText view? - Or, how do I set the plainText view annotations to be available in the "default" view? Thank you, Helen Johnson The contents of this electronic mail message and any attachments are = confidential, possibly privileged and intended for the addressee(s) only.Only the addressee(s) may read, disseminate, retain or otherwise use this= message. If received in error, please immediately inform the sender and th= en delete this message without disclosing its contents to anyone.