From user-return-8248-archive-asf-public=cust-asf.ponee.io@uima.apache.org Thu Oct 24 22:11:45 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id 3B65618065D for ; Fri, 25 Oct 2019 00:11:45 +0200 (CEST) Received: (qmail 33536 invoked by uid 500); 24 Oct 2019 22:11:44 -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 33521 invoked by uid 99); 24 Oct 2019 22:11:44 -0000 Received: from Unknown (HELO mailrelay1-lw-us.apache.org) (10.10.3.42) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Oct 2019 22:11:44 +0000 Received: from [192.168.0.122] (aftr-109-91-37-42.unity-media.net [109.91.37.42]) by mailrelay1-lw-us.apache.org (ASF Mail Server at mailrelay1-lw-us.apache.org) with ESMTPSA id 6205A59FA; Thu, 24 Oct 2019 22:11:43 +0000 (UTC) From: Richard Eckart de Castilho Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\)) Date: Fri, 25 Oct 2019 00:11:41 +0200 Subject: Use of CASes with sofaURI? Message-Id: To: uima-user X-Mailer: Apple Mail (2.3445.9.1) Hi there, does somebody have an example of how to work with CASes that where the = sofa data is not set using setDocumentText() but rather using = setSofaDataURI(...)? =20 It looks like the CAS text is then not accessible via the usual means: CAS cas =3D CasCreationUtils.createCas((TypeSystemDescription) = null, null, null); = cas.setSofaDataURI("https://www.apache.org/licenses/LICENSE-2.0.txt", = "text/plain"); CasIOUtils.save(cas, System.out, SerialFormat.XMI); System.out.println(cas.getDocumentText()); // -> prints "null" System.out.println(cas.getSofaDataString()); // -> prints "null" Apparently, one needs to call getSofaDataStream() - but even after = calling that, getDocumentAnnotation().getCoveredText() returns null. So how is one expected to work with CASes that are using this data URI = concept? Cheers, -- Richard=