Return-Path: Delivered-To: apmail-incubator-uima-user-archive@minotaur.apache.org Received: (qmail 92111 invoked from network); 3 Mar 2009 16:20:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Mar 2009 16:20:42 -0000 Received: (qmail 36423 invoked by uid 500); 3 Mar 2009 16:20:41 -0000 Delivered-To: apmail-incubator-uima-user-archive@incubator.apache.org Received: (qmail 36396 invoked by uid 500); 3 Mar 2009 16:20:41 -0000 Mailing-List: contact uima-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: uima-user@incubator.apache.org Delivered-To: mailing list uima-user@incubator.apache.org Received: (qmail 36385 invoked by uid 99); 3 Mar 2009 16:20:41 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Mar 2009 08:20:41 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of loren.cahlander@gmail.com designates 209.85.200.168 as permitted sender) Received: from [209.85.200.168] (HELO wf-out-1314.google.com) (209.85.200.168) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Mar 2009 16:20:27 +0000 Received: by wf-out-1314.google.com with SMTP id 25so3172053wfc.21 for ; Tue, 03 Mar 2009 08:20:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to :in-reply-to:content-type:mime-version:subject:date:references :x-mailer; bh=PwyccILCEM1eTH3Tf2XhnyyBsIHkbJx9CXvVHdOhgCM=; b=fac1z2lPVtqrBu5qlqd6DqmcJyvthlYpC1V8t/N0AuLeCr8GSiiIJZ8kfVbJ4D3gf9 x/ApoCY2xGtcorfIAL8skZozs/5kGQDEy8YLnlWSIyKe2bpnrpbPbLpB22dlFT770q/q IEA679PyM1VvLUy2kU/xWCIjbAJMfpK192E98= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:to:in-reply-to:content-type:mime-version:subject :date:references:x-mailer; b=KUyz8LQG0ntYNwZStO7ClDUoguCN1pBTDeqtInjLMVKlUisgfFzYp2Lx8CuSDKF2Kb 68ECVj7H9EdoTgSfWSO+NMiYKWmWvYfOJW3HKvJxeVz5bCNQYvrRrewuR+utGa+lvYoM mLd3wCjLt/H6mmcDrGcy/SuDIHuGQRbjotcFs= Received: by 10.142.239.11 with SMTP id m11mr3680594wfh.174.1236097205356; Tue, 03 Mar 2009 08:20:05 -0800 (PST) Received: from ?10.1.1.119? (zhbakdsl.static.iaxs.net [209.134.132.139]) by mx.google.com with ESMTPS id 9sm16098757wfc.19.2009.03.03.08.19.59 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 03 Mar 2009 08:20:04 -0800 (PST) Message-Id: <803D9D40-D110-499F-A710-99A57EBDAF10@gmail.com> From: Loren Cahlander To: uima-user@incubator.apache.org In-Reply-To: <991df1420903022036n6caf86b3sfaec71998f59ab4e@mail.gmail.com> Content-Type: multipart/mixed; boundary=Apple-Mail-11-91961555 Mime-Version: 1.0 (Apple Message framework v930.3) Subject: Re: Is there an example of a ResultSpecFile in the SimpleServer? Date: Tue, 3 Mar 2009 10:19:59 -0600 References: <991df1420903021747p488ef409naacc4e805b9ddf26@mail.gmail.com> <3FABBC39-759A-4F58-A4AC-8A41A047A7C8@gmail.com> <991df1420903022036n6caf86b3sfaec71998f59ab4e@mail.gmail.com> X-Mailer: Apple Mail (2.930.3) X-Virus-Checked: Checked by ClamAV on apache.org --Apple-Mail-11-91961555 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Tong, That is correct. The SimpleServer right now just returns the XML in the following form: --Apple-Mail-11-91961555 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Does anyone have a ResultSpecFile and classes for returning the results in RDF? Thank you, Loren Cahlander On Mar 2, 2009, at 10:36 PM, Tong Fin wrote: > Loren, > I am not sure if I understand your problem. > Let me try. > > In your web.xml, you define the DescriptorPath parameter. The value > of this > parameter will tell the Simple Server how to find the Analysis > Engine (in > your case, it is an aggregate) to be used as a service. > BUT, it is not enough since you need to tell Simple Server how to > return the > "results" (that is a "mapping" from UIMA types to "your defined > types"). > This returned results are specified in an XML file (conforming to > the XML > schema defined by Simple Server). In the web.xml, you will need to > define > the ResultSpecFile parameter. For example: > > > ResultSpecFile > > value>path_to_your_ResultSpec_XML_File_relative_to_your_web_app param-value> > > > -- Tong > > On Mon, Mar 2, 2009 at 9:10 PM, Loren Cahlander > wrote: > >> Tong, >> >> I am using the DescriptorPath parameter in the web.xml file: >> >> >> simple-server-test >> >> org.apache.uima.simpleserver.servlet.SimpleServerServlet >> >> >> >> DescriptorPath >> >> WEB-INF/resources/descriptors/test.xml >> >> >> >> >> Where test.xml is an aggregate >> >> >> >> org.apache.uima.java> frameworkImplementation> >> false >> >> >> >> >> >> >> >> >> >> test >> >> 1.0 >> >> >> >> >> >> WhitespaceTokenizer >> HmmTagger >> >> >> >> >> >> >> >> >> >> >> >> >> true >> true >> false >> >> >> >> >> >> >> Loren Cahlander >> >> >> >> On Mar 2, 2009, at 07:47 PM, Tong Fin wrote: >> >> Loren, >>> In the UIMA Simple Server User Guide >>> documentation< >>> http://incubator.apache.org/uima/downloads/sandbox/simple-server/simpleServerUserGuide.html#d0e134 >>>> , >>> >>> there is a description on how to use the >>> "WhitespaceTokenizer" (also in >>> the >>> sandbox) as a simple service. >>> >>> You can find the example of web.inf and ResultSpecFile for >>> "WhitespaceTokenizer" in the following directory of the Simple >>> Server >>> project: >>> SimpleServer/src/main/resources/samples >>> >>> -- Tong >>> >>> On Mon, Mar 2, 2009 at 8:15 PM, Loren Cahlander >>> wrote: >>> >>> I am looking for an example of a ResultSpecFile entry for the >>>> SimpleServer >>>> in the Sandbox? Does anyone have an example? >>>> >>>> org >>>> .apache.uima.simpleserver.servlet.SimpleServerServlet.initServer() >>>> >>>> String resultSpecParamValue = getInitParameter("ResultSpecFile"); >>>> if (resultSpecParamValue != null) { >>>> resultSpec = new File(this.baseWebappDirectory.getAbsoluteFile(), >>>> resultSpecParamValue); >>>> } >>>> >>>> >>>> Thank you, >>>> >>>> Loren Cahlander >>>> >>>> >>>> >>> >>> -- >>> Tong >>> >> >> > > > -- > Tong --Apple-Mail-11-91961555--