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 E9E43D7F1 for ; Wed, 15 Aug 2012 19:32:30 +0000 (UTC) Received: (qmail 32066 invoked by uid 500); 15 Aug 2012 19:32:30 -0000 Delivered-To: apmail-uima-user-archive@uima.apache.org Received: (qmail 32013 invoked by uid 500); 15 Aug 2012 19:32:30 -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 32000 invoked by uid 99); 15 Aug 2012 19:32:30 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Aug 2012 19:32:30 +0000 X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests=FSL_RCVD_USER,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of msa@schor.com designates 67.18.66.20 as permitted sender) Received: from [67.18.66.20] (HELO gateway02.websitewelcome.com) (67.18.66.20) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Aug 2012 19:32:21 +0000 Received: by gateway02.websitewelcome.com (Postfix, from userid 5007) id 2C3AEE459F0C0; Wed, 15 Aug 2012 14:32:01 -0500 (CDT) Received: from gator74.hostgator.com (gator74.hostgator.com [184.173.199.208]) by gateway02.websitewelcome.com (Postfix) with ESMTP id 21CD8E459F09C for ; Wed, 15 Aug 2012 14:32:01 -0500 (CDT) Received: from [129.34.20.19] (port=14122 helo=[9.2.91.38]) by gator74.hostgator.com with esmtpsa (TLSv1:CAMELLIA256-SHA:256) (Exim 4.77) (envelope-from ) id 1T1jJw-00062G-Cx for user@uima.apache.org; Wed, 15 Aug 2012 14:32:00 -0500 Message-ID: <502BF92E.3090104@schor.com> Date: Wed, 15 Aug 2012 15:31:58 -0400 From: Marshall Schor User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:14.0) Gecko/20120713 Thunderbird/14.0 MIME-Version: 1.0 To: user@uima.apache.org Subject: Re: Defining SuperType or Range for Custom Type References: <502BA184.6080200@informatik.uni-leipzig.de> <502BA65D.1030001@schor.com> <502BED24.2030705@informatik.uni-leipzig.de> In-Reply-To: <502BED24.2030705@informatik.uni-leipzig.de> X-Enigmail-Version: 1.4.3 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - gator74.hostgator.com X-AntiAbuse: Original Domain - uima.apache.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - schor.com X-BWhitelist: no X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: ([9.2.91.38]) [129.34.20.19]:14122 X-Source-Auth: msa+schor.com X-Email-Count: 2 X-Source-Cap: bWlzY2hvcjttaXNjaG9yO2dhdG9yNzQuaG9zdGdhdG9yLmNvbQ== X-Virus-Checked: Checked by ClamAV on apache.org This should work if the range type, org.bson.types.ObjectId is defined as a uima type (meaning, that it has as the root of its supertype hierarchy the built-in uima type uima.cas.TOP). I noticed, also, that the main type you are defining, uima.cpe.DocumentMetadata, is named in a bit of a strange way, because the package name prefix part of this, "uima.cpe." could lead a casual reader to think that this type was some kind of a built-in type within UIMA itself, and I don't think that it is :-) So, for instance, if you were developing an application for a company "foo", it might be better (to avoid potential name collisions in the future) to name this type: foo.DocumentMetadata, or something like that. -Marshall On 8/15/2012 2:40 PM, Andreas Niekler wrote: > Hello, > > i had a review on the documentation and i still wonder if such things can be > done: > > uima.cpe.DocumentMetadata > This is a Type to add all Metadata to a document that is > defined > uima.tcas.DocumentAnnotation > > > DB_ID > THE DATABASE ID > > > org.bson.types.ObjectId > > > > > > > Thanks for clarification > > Andreas > > Am 15.08.2012 15:38, schrieb Marshall Schor: >> >> On 8/15/2012 9:17 AM, Andreas Niekler wrote: >>> Hello, >>> >>> right now i'm wondering if it is possible to define a type in the type editor, >>> which is not of a primitive from uima. Instead i want to give it a Class which >>> represents a Database Id. >>> >>> Is it possible to assign other SuperTypes than those in uima.tcas namespace? >> >> The uima types can have arbitrary supertypes, but the supertype chain eventually >> has to inherit from uima.cas.TOP. See >> http://uima.apache.org/d/uimaj-2.4.0/references.html#ugr.ref.cas.builtin_types >> >> -Marshall >> >