Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 73FEA200D2F for ; Wed, 1 Nov 2017 18:55:21 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 727F31609EC; Wed, 1 Nov 2017 17:55:21 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id B7F14160BEA for ; Wed, 1 Nov 2017 18:55:20 +0100 (CET) Received: (qmail 27016 invoked by uid 500); 1 Nov 2017 17:55:19 -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 26874 invoked by uid 99); 1 Nov 2017 17:55:19 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Nov 2017 17:55:19 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id BD5011A1547 for ; Wed, 1 Nov 2017 17:55:18 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -1.501 X-Spam-Level: X-Spam-Status: No, score=-1.501 tagged_above=-999 required=6.31 tests=[HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-2.8, SPF_PASS=-0.001] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id X-ia4h8WY2EF for ; Wed, 1 Nov 2017 17:55:16 +0000 (UTC) Received: from mx0a-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 5F4365F4E5 for ; Wed, 1 Nov 2017 17:55:16 +0000 (UTC) Received: from pps.filterd (m0098414.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id vA1Hqrjj136312 for ; Wed, 1 Nov 2017 13:55:16 -0400 Received: from smtp.notes.na.collabserv.com (smtp.notes.na.collabserv.com [192.155.248.75]) by mx0b-001b2d01.pphosted.com with ESMTP id 2dyj2suemj-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 01 Nov 2017 13:55:15 -0400 Received: from localhost by smtp.notes.na.collabserv.com with smtp.notes.na.collabserv.com ESMTP for from ; Wed, 1 Nov 2017 17:55:14 -0000 Received: from us1a3-smtp06.a3.dal06.isc4sb.com (10.146.103.243) by smtp.notes.na.collabserv.com (10.106.227.123) with smtp.notes.na.collabserv.com ESMTP; Wed, 1 Nov 2017 17:55:11 -0000 Received: from us1a3-mail38.a3.dal06.isc4sb.com ([10.146.77.53]) by us1a3-smtp06.a3.dal06.isc4sb.com with ESMTP id 2017110117551094-883735 ; Wed, 1 Nov 2017 17:55:10 +0000 MIME-Version: 1.0 In-Reply-To: Subject: uniqueID() function To: user@uima.apache.org From: "Kameron Cole" Date: Wed, 1 Nov 2017 12:55:12 -0500 References: X-KeepSent: 6C0580A7:0A81AE56-002581CB:0061C231; type=4; name=$KeepSent X-Mailer: IBM Notes Release 9.0.1FP7 August 18, 2016 X-LLNOutbound: False X-Disclaimed: 5523 X-TNEFEvaluated: 1 Content-type: multipart/alternative; Boundary="0__=8FBB0B58DFF244A18f9e8a93df938690918c8FBB0B58DFF244A1" Content-Disposition: inline x-cbid: 17110117-3815-0000-0000-0000032D9E72 X-IBM-SpamModules-Scores: BY=0.034205; FL=0; FP=0; FZ=0; HX=0; KW=0; PH=0; SC=0.423878; ST=0; TS=0; UL=0; ISC=; MB=0.210895 X-IBM-SpamModules-Versions: BY=3.00007992; HX=3.00000241; KW=3.00000007; PH=3.00000004; SC=3.00000239; SDB=6.00939687; UDB=6.00473779; IPR=6.00719948; BA=6.00005666; NDR=6.00000001; ZLA=6.00000005; ZF=6.00000009; ZB=6.00000000; ZP=6.00000000; ZH=6.00000000; ZU=6.00000002; MB=3.00017824; XFM=3.00000015; UTC=2017-11-01 17:55:12 X-IBM-AV-DETECTION: SAVI=unsuspicious REMOTE=unsuspicious XFE=unused X-IBM-AV-VERSION: SAVI=2017-11-01 17:52:57 - 6.00007547 x-cbparentid: 17110117-3816-0000-0000-0000A8B2DC78 Message-Id: X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2017-11-01_05:,, signatures=0 X-Proofpoint-Spam-Reason: safe archived-at: Wed, 01 Nov 2017 17:55:21 -0000 --0__=8FBB0B58DFF244A18f9e8a93df938690918c8FBB0B58DFF244A1 Content-Transfer-Encoding: quoted-printable Content-type: text/plain; charset=US-ASCII Hello I am trying to use the uniqueId() function, and find some examples. Basically I want to use the CAS unique ID as the unique id Feature for an annotation. Fro example, a police report Annotation would have a Feature reportid, which would leverage the uniqueId() . The ultimate purpose is to send the CAS to a database table, and use the reportid as the row's unique ID. I can't find any information on it, except here: http://uima.apache.org/d/uimaj-2.4.2/apidocs/org/apache/uima/cas/FeatureVal= uePath.html Contains CAS Type and Feature objects to represent a feature path of the form feature1/.../featureN. Each part that is enclosed within / is referred to as "path snippet" below. Also contains the necessary evaluation logic to yield the value of the feature path. For leaf snippets, the following "special features" are defined: coveredText() can be accessed using evaluateAsString typeName() can be accessed using evaluateAsString fsId() can be accessed using evaluateAsInt. Its result can be used to retrieve an FS from the current LowLevel-CAS. uniqueId() can be accessed using evaluateAsInt. Its result can be used to uniquely identify an FS for a document (even if the document is split over several CAS chunks) This is deprecated, and replaced with http://uima.apache.org/d/uimaj-2.4.2/apidocs/org/apache/uima/cas/FeaturePat= h.html However, FeaturePath does not have the uniqueID() method The feature path syntax also allows some built-in functions on the last feature path element. Built-in functions are added with a ":" followed by the function name. E.g. "/my/path:fsId()". The allowed built-in functions are: coveredText() fsId() typeName() Built-in functions are only evaluated if getValueAsString() is called. At least, I don't get it. Can I get an example? Thanks --0__=8FBB0B58DFF244A18f9e8a93df938690918c8FBB0B58DFF244A1--