From dev-return-43087-apmail-uima-dev-archive=uima.apache.org@uima.apache.org Fri Jul 12 15:45:59 2019 Return-Path: X-Original-To: apmail-uima-dev-archive@www.apache.org Delivered-To: apmail-uima-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by minotaur.apache.org (Postfix) with SMTP id D23D71968D for ; Fri, 12 Jul 2019 15:45:58 +0000 (UTC) Received: (qmail 65122 invoked by uid 500); 12 Jul 2019 15:45:54 -0000 Delivered-To: apmail-uima-dev-archive@uima.apache.org Received: (qmail 65097 invoked by uid 500); 12 Jul 2019 15:45:54 -0000 Mailing-List: contact dev-help@uima.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@uima.apache.org Delivered-To: mailing list dev@uima.apache.org Received: (qmail 65086 invoked by uid 99); 12 Jul 2019 15:45:54 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Jul 2019 15:45:54 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id AF716C2E9E for ; Fri, 12 Jul 2019 15:45:53 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.002 X-Spam-Level: X-Spam-Status: No, score=-0.002 tagged_above=-999 required=6.31 tests=[RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=disabled Received: from mx1-he-de.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id 3zlV3aYGyRlj for ; Fri, 12 Jul 2019 15:45:51 +0000 (UTC) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=192.185.55.25; helo=gateway20.websitewelcome.com; envelope-from=msa@schor.com; receiver= Received: from gateway20.websitewelcome.com (gateway20.websitewelcome.com [192.185.55.25]) by mx1-he-de.apache.org (ASF Mail Server at mx1-he-de.apache.org) with ESMTPS id 361087E20D for ; Fri, 12 Jul 2019 15:45:50 +0000 (UTC) Received: from cm11.websitewelcome.com (cm11.websitewelcome.com [100.42.49.5]) by gateway20.websitewelcome.com (Postfix) with ESMTP id A2450400E1403 for ; Fri, 12 Jul 2019 09:43:07 -0500 (CDT) Received: from gator3253.hostgator.com ([198.57.247.217]) by cmsmtp with SMTP id lxjzhHqM3dnCelxjzhoO3G; Fri, 12 Jul 2019 10:45:43 -0500 X-Authority-Reason: nr=8 Received: from [129.34.9.50] (port=10538 helo=[9.31.98.199]) by gator3253.hostgator.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.92) (envelope-from ) id 1hlxjy-0007pC-RA for dev@uima.apache.org; Fri, 12 Jul 2019 10:45:42 -0500 Subject: Re: graphQL and UIMA To: dev@uima.apache.org References: <168a2925-b18b-ba17-2411-a7556f924891@schor.com> <9093C870-74F6-4018-ADCE-550FAB865556@apache.org> From: Marshall Schor Openpgp: preference=signencrypt Autocrypt: addr=msa@schor.com; prefer-encrypt=mutual; keydata= mQINBFjyRhwBEADCmBAgPZHFtpGBlNCwYhwjrgXnJEkETZe4Y9h3b/zfg4F8VFeQsR4Ju17V I63cYIaVNisWoURVOVFyia9/C2nK5q8u5qhb4mBEQIZ8zqpcm9qUOfoM21XwK/SireOQrNQn cxAsWoC5znEuFM/UtYQFygSfGKOs/pVliGkpbvwByUugJvwKsDaWeoDYeC1Qfv3NWyJhGf0A HMHZAv0hlry6n9bxkrPHWrHMH/Pev5pPAogVf5dGAFhEQ0fYIgKJBlqe0OruKGD+ZU657bIL r/MZDnE6RTEH8OMow1Hm8yC8KQUgmKjpwx4nqe1Doyn4nvjyHXWIO9zyjA0lgP4FkpVURaYj AnlyMV3+swu5NbA7+FuonkGuMXRMFJiGDJIHqgrfvbRHM6zqlGNXzHpd7xuZn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FdvO125cRa8GhPUa4l74zEmfj SVFGOp3dgWYP5R2GqQMouXyQJUw2mzJ6Vw8vFAtJuxzJqKA+RoEYIB08wPeAgeo1A7Fj0OGC QiGOujQBHsiXp1bHaZnoGvSFiMHsourbEdGXSV6o1wmAgEeKeGrjf1NKWweF98QdAviwP+PJ BfaLP/2mru8NeFcxgKMsAdgvqDmAA4Y61u7cvCail8pEHijihV8L0wqRFonYZliiaWPQrSn4 DK/1wG+YG4rP/G1PQEtT4pk7tEfVSihV4tx6PsC+Um+gJEFtlipQf4V6ANjU8vFlyTgaHPJG iiCGe2lQkeChXIWP2a+fTntbidGEG/+FpYmQdIawuTBbN8vPq0QPdQapJG2NAbenB5k4eHQb /+9ttfYIRlz6kRhiNFdMbw== Message-ID: <71a8b296-ac7f-b112-0c91-237a996b89e8@schor.com> Date: Fri, 12 Jul 2019 11:45:41 -0400 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <9093C870-74F6-4018-ADCE-550FAB865556@apache.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Content-Language: en-US X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - gator3253.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-IP: 129.34.9.50 X-Source-L: No X-Exim-ID: 1hlxjy-0007pC-RA X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: ([9.31.98.199]) [129.34.9.50]:10538 X-Source-Auth: msa+schor.com X-Email-Count: 4 X-Source-Cap: bWlzY2hvcjttaXNjaG9yO2dhdG9yMzI1My5ob3N0Z2F0b3IuY29t X-Local-Domain: yes Re: Reader for UIMA JSON xml format This of course could be done.  It wasn't done initially, because:   - workload management (people were busy...)   - it was new, and perhaps would change based on initial feedback     (that hasn't happened) So, it's probably a good time to do this.  Any volunteers? -Marshall On 7/11/2019 2:07 PM, Richard Eckart de Castilho wrote: > Hi Marshall, > > thanks for the pointer to GraphQL. I think I'll have a look into that > in relation to the annotation editors I'm working on. We are looking > there for a nice solution to allow building custom UIs without having to > do backend coding. > >> Some time ago, we added JSON serialization to UIMA, with some complexities >> around enabling accurate representation of the complete complexities of >> interlinked UIMA features. > Yep :) And I regularly get asked by people for a reader for this data because > at the moment UIMA can only write JSON. For the purpose of communicating with > a UI, the JSON format provided by UIMA probably is way too complex, but I think > for people who wish to exchange data with UIMA it would be very convenient if > there would also be a reader. JSON is the new XML... > >> It strikes me that users frequently are interested in much simpler kinds of >> things, and sometimes roll their own simple json serializers of some small part >> of the CAS. > ... and not even of the entire CAS but maybe only of parts of it, e.g. restricted > to particular annotation types, restricted to particular parts of a document or > otherwise. > >> I'm wondering if we could figure out and implement some general kind of graphQL >> support, to enable users to easily spec-out and retrieve what they wanted, and >> whether or not the user community would find that of interest? > It seems to me that the UV3 select API goes a long way already. Maybe it is > straightforward to expose it via a GraphQL API? > > Should UIMA actually implement some kind of CAS server with a GraphQL remote API? Not sure. > > My intuition from working on the annotation tools would be that at least > in that applications scenario, there is so much extra functionality specific > to a particular annotation tool (e.g. coloring, displaying of validation warnings, > etc.) that I'd probably want to write my own GraphQL wrapper anyway which might > not directly access the CAS but maybe some intermediate representation. > > So I think it would be a great idea to add a reader for the existing UIMA JSON format. > > I also think it would be nice to switch from Velocity to something more modern for the > UIMA website ;) > > Cheers, > > -- Richard > > >