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 13568107F4 for ; Thu, 17 Apr 2014 13:18:26 +0000 (UTC) Received: (qmail 2098 invoked by uid 500); 17 Apr 2014 13:18:24 -0000 Delivered-To: apmail-uima-user-archive@uima.apache.org Received: (qmail 2054 invoked by uid 500); 17 Apr 2014 13:18: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 2032 invoked by uid 99); 17 Apr 2014 13:18:23 -0000 Received: from minotaur.apache.org (HELO minotaur.apache.org) (140.211.11.9) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Apr 2014 13:18:23 +0000 Received: from localhost (HELO s0675.dyn.hrz.tu-darmstadt.de) (127.0.0.1) (smtp-auth username rec, mechanism plain) by minotaur.apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Apr 2014 13:18:23 +0000 Content-Type: text/plain; charset=iso-8859-1 Mime-Version: 1.0 (Mac OS X Mail 7.2 \(1874\)) Subject: Re: Sofa-unaware AEs that create new views in an AAE From: Richard Eckart de Castilho In-Reply-To: <534FD316.6080307@uni-wuerzburg.de> Date: Thu, 17 Apr 2014 15:18:19 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: <1048B8BD-D5F9-42DA-9145-32A23FB0A4D6@apache.org> References: <534FC366.70209@uni-wuerzburg.de> <1ED08ACD-BB28-489B-9A83-8375E089C071@apache.org> <534FD316.6080307@uni-wuerzburg.de> To: user@uima.apache.org X-Mailer: Apple Mail (2.1874) Have a look at this thread. I believe to have discussed the same general issue with Luca there: http://markmail.org/thread/dgwku65srpvqdvdr At least, maybe that helps to better pinpoint the problem. -- Richard On 17.04.2014, at 15:11, Peter Kl=FCgl wrote: > Am 17.04.2014 15:02, schrieb Richard Eckart de Castilho: >> On 17.04.2014, at 14:04, Peter Kl=FCgl = wrote: >>=20 >>> Hi, >>>=20 >>> as I understand the implementation, an AE is sofa aware if it = specifies >>> input or output views in its capabilities. Let's say it only = specifies >>> an output view, so it's sofa aware. If it is part of an AAE with = sofa >>> mapping (one AAE sofa mapped to the default input view of the AE), = then >>> it get passed the base CAS independently of the sofa mapping. = Shouldn't >>> it get the view mapped in the AAE? >> It should be able to get the mapped views by the mapped names instead >> of by whatever original name they have. >>=20 >=20 > What do you mean exactly? It is maybe possible, or it should be > possible? Investigating the metadata in the process() method? >=20 >=20 >> I guess you ask whether it should get the defaultView because the >> input view is unmapped? >=20 >=20 > It doesn't get the mapped view, but the base view, which is the > _InitialView if the AAE uses it. If the AAE uses some arbitrary input > view, it gets an empty sofa. >=20 >=20 >>=20 >>> I have a simple AE that should just get the mapped sofa as input and >>> then should create a new view, which name is given by a parameter. = Is >>> it correct that I have to introduce another parameter for the input = view >>> and have to "getView" in the AE? Is there no way to just use the = mapped >>> sofa? >> Well, what do you map it to? The mapping allows you to have a global = set >> of view names and a set of local view names for each component. E.g. >> your component should postulate that it expects the input data in a = view >> called "INPUT" (hardcoded - no parameter). Then you use a sofa = mapping to >> map a global view name to the local name "INPUT" on your AE.=20 >=20 > Hmm, maybe I do not understand you. "INPUT" would be the name of the > view that is accessed in the process() method? Do you mean with > postulate the capabilities? >=20 > If the AE should be able to operate on different input views, e.g., > because there are several of those AEs in one AAE, then this would = lead > again to a parameter specifying "INPUT". >=20 > Peter >=20 >=20 >> -- Richard >=20