Return-Path: Delivered-To: apmail-uima-user-archive@www.apache.org Received: (qmail 85762 invoked from network); 20 Oct 2010 14:13:25 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 20 Oct 2010 14:13:25 -0000 Received: (qmail 37262 invoked by uid 500); 20 Oct 2010 14:13:25 -0000 Delivered-To: apmail-uima-user-archive@uima.apache.org Received: (qmail 37220 invoked by uid 500); 20 Oct 2010 14:13: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 37212 invoked by uid 99); 20 Oct 2010 14:13:24 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Oct 2010 14:13:24 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of kottmann@gmail.com designates 209.85.215.175 as permitted sender) Received: from [209.85.215.175] (HELO mail-ey0-f175.google.com) (209.85.215.175) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Oct 2010 14:13:16 +0000 Received: by eye27 with SMTP id 27so560698eye.6 for ; Wed, 20 Oct 2010 07:12:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=kXXZ9BWq79HLT4RE2V0zIHuPl8bTwQpGxZADP0LJQ64=; b=vViNeITF+gNN5LdeMzbj1D+2hiOOcPZkwOTmLT/kkpvrYpoG08vukr6GG4MsfRBaGd UiKjq62S1ae51mAKgmi3d05ucRSPsDMbSIM3j5MzNxPrmeN6meBBOZ6HR0cQK9xHB8t5 ql9VdyKw2q1uFqlHJD4t3bfTOURFpalBvJA54= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=N4CpY/alULBCUFVudAMWt8M7KTcSQNCFJrFWnjn+zAxBbhdHKARHO5BQ+L5YszEdyg L7hDqN63GFMBP0BFTbxQxhW864EP8VLysBSqz+jyw5ZQd4k2AbNck5oXx0TqU+4ImGBc 2YpilnggXi7Y61ZYm+rw0ZE8tLPvY8v/KBbSs= Received: by 10.213.108.70 with SMTP id e6mr560975ebp.6.1287583974477; Wed, 20 Oct 2010 07:12:54 -0700 (PDT) Received: from oslws056.infopaq.net (dkcphfw01.infopaq.dk [213.150.59.2]) by mx.google.com with ESMTPS id q51sm274845eeh.22.2010.10.20.07.12.53 (version=SSLv3 cipher=RC4-MD5); Wed, 20 Oct 2010 07:12:53 -0700 (PDT) Message-ID: <4CBEF8E4.2070905@gmail.com> Date: Wed, 20 Oct 2010 16:12:52 +0200 From: =?ISO-8859-1?Q?J=F6rn_Kottmann?= User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.9) Gecko/20100915 Thunderbird/3.1.4 MIME-Version: 1.0 To: user@uima.apache.org Subject: Re: Serialize only one view of a CAS References: <4CBEC600.8020808@gmail.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Thanks, I will try that. J�rn On 10/20/10 4:09 PM, Eddie Epstein wrote: > Hi J�rn, > > The only way to do this now is to create a 2nd CAS, copy over the > parts wanted using the org.apache.uima.util.CasCopier and serialize > the new CAS. > > A more direct solution is the proposal for serialization to support > "CAS projections". > A brief description is in > https://cwiki.apache.org/UIMA/reducing-overhead-for-remote-service-calls.html > > Eddie > > > On Wed, Oct 20, 2010 at 6:35 AM, J�rn Kottmann wrote: >> Hi everyone, >> >> is it possible to only serialize one view of a CAS ? >> >> In my case the "_InitialView" contains an xml document, which >> is transformed by an AE into a plain text representation, and >> placed in a view called "Article". >> The serialization code now should only write the "Article" >> view into the xmi file, and dropping the "_InitialView". >> >> As far as I know the "_InitialView" must always exist, >> so it would be ok to just rename the "Article" view >> to "_InitialView" in the serialzed CAS. >> >> I looked at the XmiCasSerializer class but could not find >> a setting which specifies which views are serialized. >> >> Thanks, >> J�rn >>