Return-Path: X-Original-To: apmail-asterixdb-dev-archive@minotaur.apache.org Delivered-To: apmail-asterixdb-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 31255183E9 for ; Wed, 5 Aug 2015 23:10:40 +0000 (UTC) Received: (qmail 5509 invoked by uid 500); 5 Aug 2015 23:10:40 -0000 Delivered-To: apmail-asterixdb-dev-archive@asterixdb.apache.org Received: (qmail 5445 invoked by uid 500); 5 Aug 2015 23:10:40 -0000 Mailing-List: contact dev-help@asterixdb.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@asterixdb.incubator.apache.org Delivered-To: mailing list dev@asterixdb.incubator.apache.org Received: (qmail 5434 invoked by uid 99); 5 Aug 2015 23:10:39 -0000 Received: from Unknown (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Aug 2015 23:10:39 +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 629141A988D for ; Wed, 5 Aug 2015 23:10:39 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.892 X-Spam-Level: * X-Spam-Status: No, score=1.892 tagged_above=-999 required=6.31 tests=[HEADER_FROM_DIFFERENT_DOMAINS=0.001, HTML_MESSAGE=3, RCVD_IN_MSPIKE_H2=-1.108, SPF_PASS=-0.001] autolearn=disabled Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id veNpM2Q7c-8P for ; Wed, 5 Aug 2015 23:10:37 +0000 (UTC) Received: from mail-lb0-f175.google.com (mail-lb0-f175.google.com [209.85.217.175]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTPS id 6F9A42100B for ; Wed, 5 Aug 2015 23:10:37 +0000 (UTC) Received: by lbbyj8 with SMTP id yj8so33021593lbb.0 for ; Wed, 05 Aug 2015 16:10:30 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:content-type; bh=KW5N4u0khlGxcnyiAYpdwboDfud8L6Sg9H14ERv07Wo=; b=dVCWdELaii5PCl3Nag+VTcKW8f4s6Eq32IzMffqcb6WvFWvWAJyNRKZFRjg6gFkMbJ WYqHCB4pUTO5Mrvp0TcsCffhcY7g9/Lcb5iX8OnSArCp8vJmCUUEARfQE1HirC8r4yII qvMQGfcKOOwrHbOrIoMqdjKGYWgSudsWf1EzigVVLuJ3B1Gzk0g/C5JXVtkYNqMTHsXr RagqxzNU+X8qt6GgmiiKW2KiFRRiutj3TovafH0UpLGWMCH7HDE2TXMAS8wXiqMYWi7n X+SLWRDj/IuSM6BMKrSrxk3N0WUZt19tv9PTJ+6CgO9vgMckugN0kQewyDO2pv7BcnpV wrbg== X-Gm-Message-State: ALoCoQkWTOj4PR3Mp6TPyQuG7Wn7lv/apg8R4q5JucBa92hCuDNb2HIcDOaQfwQUr9dRLx8OLTF2 X-Received: by 10.152.9.66 with SMTP id x2mr10826316laa.76.1438816229961; Wed, 05 Aug 2015 16:10:29 -0700 (PDT) MIME-Version: 1.0 Sender: ceej@lambda.nu Received: by 10.25.91.209 with HTTP; Wed, 5 Aug 2015 16:10:10 -0700 (PDT) X-Originating-IP: [69.62.207.190] In-Reply-To: References: <55BCF130.1090805@gmail.com> <5F1DCABB-A9D4-4EF1-88B4-85AE6053F40B@apache.org> <55C1B59C.6040400@gmail.com> From: Chris Hillery Date: Wed, 5 Aug 2015 16:10:10 -0700 X-Google-Sender-Auth: MU6_I83p6kW1pxaXRegWP-Z75hQ Message-ID: Subject: Re: json vs. JSON To: dev@asterixdb.incubator.apache.org Content-Type: multipart/alternative; boundary=089e0158b8e848bf65051c98820c --089e0158b8e848bf65051c98820c Content-Type: text/plain; charset=UTF-8 On Wed, Aug 5, 2015 at 12:23 PM, Wail Alkowaileet wrote: > 1- Line with *start* and *end* attributes give it a sense of "direction" > which means {"start": [x1,y1], "end": [x2,y2]} != {"start": [x2,y2], "end": > [x1,y1]}. > I take it that you think that's not correct? Is the ADM "line" explicitly non-directional? I had the same concern, honestly. As I said, my proposal was in part a strawman, and this is exactly the kind of commentary I needed. Not clear what better names would be... maybe just "a" and "b"? > 2-Similarly for the rectangles, it seem there are some direction on the > lines forming the rectangle. > Ditto the above. Just "a" and "b"? I was going to go with something like "upper-left" and "lower-right", but that would require some logic in the serializer to determine which was which that I don't think is appropriate. It also wouldn't allow for a rectangle to be defined by the other two corners, which I assume ADM is OK with. > * I would suggest something similar to JTS (Java Topology Suites) where > there are some generalization like for instance *rectangle *is-a *polygon > *with > two-points. I think - kind of like GeoJSON (see next email) - that this suggestion is a bit out of scope. That would be a good discussion to have regarding the actual definition of the ADM types themselves, but it doesn't make sense for the JSON serialization to somehow coerce the ADM meaning into some other form. The serialization should be a very thin veneer over the actual type definition. Ceej aka Chris Hillery --089e0158b8e848bf65051c98820c--