[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Reply to: [list | sender only]
Re: CIF-JSON draft 2017-05-15
- Subject: Re: CIF-JSON draft 2017-05-15
- From: Marcin Wojdyr <wojdyr@xxxxxxxxx>
- Date: Wed, 17 May 2017 14:21:21 +0100
- DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;h=mime-version:in-reply-to:references:from:date:message-id:subject:to;bh=uExhxRPL6AL9KAZQ3xGR85SSlP5JH/9lgq3CR5PiROc=;b=sxjSHRZgzNh4e0g/nVIidANzcEtQbDarjkYF2e56btlN00Bmt0sLwxu6BQ9zYqnWUdBXv+TYOaJ+J+y6SRoSomfRMkuq4AwB/lfvGdHa1PZ1JjXVc5Yg0003VOv6K9hKZAeFA9gPbUnOHfvFBfVkPyPVmU+Kacv4aM9cd6n/c3rahbNIQSAdjt+QPoQiVshRxIVpy3HrqlhRnBtZZo/Tkf58qaoW08UFOWezv0roOEhpI8XtKkfhSM5axngEwaL2KVCgn5wrirkAgkEJJQyhK/ajytKLEKUS++2BDgoW5LYWAXhcmcGgdByy4AZmy/M7Avbt8ZRTBEaCf3OVuNAe2Q==
- In-Reply-To: <CAF_YUvXYCLN8gAjDZndba1UCgsgvRTavHKJR28VqAG2Hh4xSVQ@mail.gmail.com>
- References: <CAM+dB2cAAY3CjC741WU0GqaWmAi2iGHtwZ82iA1bCwuNoG6nQg@mail.gmail.com><CAF_YUvVa0JXgAN9Bec6fjd6Nmco5W7EHWLN=Ba=daRR9U-2PzQ@mail.gmail.com><CACaHzQVYeOfS9zTe4gDJMVNCTgxtat0zhMAd2EMX=etXj5g2Gw@mail.gmail.com><CAF_YUvWV3huhwoBuCOkKXqCcYH+8kjFCPjoa=j_v61JC4H32Jg@mail.gmail.com><CAF_YUvUMbVz2j5=XXD5WD3G+0XB4tY=r1zwXuADB14qQNZTPvg@mail.gmail.com><CAF_YUvXPj9g6CEnsKmwZwrp7p550nyykrnQY9iN5wpEnDzrrYQ@mail.gmail.com><CAF_YUvUaJM0bwV4vKZwARQw4Q44LN+TOyr4Ghge3P_qn90tUHQ@mail.gmail.com><CAF_YUvUGexW-7iSfJWQ_c=WZNnbzBJeFaNfzKRVK4DKmdydp+A@mail.gmail.com><CAM+dB2dY8xEp8BeSJfXD5E9+H6-qkBCodMV_gc-fetLNp=x_WA@mail.gmail.com><CAF_YUvU+O3yb-JG_zZWvTW0i7EuzA1_J3c0Q8drWqb6rScSkEw@mail.gmail.com><CAF_YUvWT4ZGT_BbpmB2G3Ya7ttzj70qXD7UofyAsPb010W_XJw@mail.gmail.com><CAF_YUvXb4jbKxSh=Q9Q76Zay-RMi8xXU_geQ5FB76cj5iozkOQ@mail.gmail.com><CAF_YUvW01EL98PYcAq0fADvF9BK6oJTdhe4Ju9byg5x5bmGc2Q@mail.gmail.com><CAM+dB2fz+Y45c+Cgk7BABsSPQB2FKe9JxX2j+fRgPC+ehh-ddw@mail.gmail.com><CAF_YUvWnEq0XsQCUhh3bis=vukuf3BQF=QxGi8HS5rTpc4uvkw@mail.gmail.com><CACaHzQUhG8ndiKBSX3OeB=vkn3pu+DugJ=wCEz8podKstFsQZA@mail.gmail.com><CAF_YUvUhv1Li3b-oLkASzq7SnV734WEozPWnMMcHAbVhOcT_Jg@mail.gmail.com><CACaHzQXm3Lti+cP_mQDFnkPdN1ia=--RmGTnPOOyYqP3doJTZw@mail.gmail.com><CAF_YUvXi_UgN9Fc+MATbP-ROKyG31fjcc4HcoS7UEs+2jh3CYA@mail.gmail.com><CAF_YUvXYCLN8gAjDZndba1UCgsgvRTavHKJR28VqAG2Hh4xSVQ@mail.gmail.com>
Ah, now I understand. I was thinking along what James wrote - that"CIF-JSON" would just replace "Metadata". I like what James proposed, and although there is a benefit in havinga magic string near the beginning, I'd rather avoid an extra level inthe hierarchy.After a program parses JSON (without knowing what kind of JSON it is),checking for "CIF-JSON" is easy regardless if it is a single key, orone of many keys. Going back to the draft. It mandates a schema: iv schema-uri: a URI for the CIF-JSON schema. Would it be a schema from json-schema.org? How would it look like?Very few things can be verified in CIF-JSON without knowing acorresponding DDL. Marcin On 17 May 2017 at 13:11, Robert Hanson <hansonr@stolaf.edu> wrote:> My proposal is that everything we have been talking about {...} be wrapped> by a self-identifying object with the single item "CIF-JSON":>> {"CIF-JSON":{....}}>> So while it is possible that there will be white-space:>> {> "CIF-JSON":>> {....}>>> }>> it is highly probable that this white space would be minimal, and that> certainly within the first N finite number of characters we would see> "CIF-JSON".>> Or, if a reader does need to read the entire file to process any JSON data> of any sort instead of streaming the data (Jmol might do this, too), then at> least we know that the outer object will have a single key, and that key> will be "CIF-JSON".>> It occurs to me that we could then also allow concatenation such as:>> [> {"CIF-JSON":{...}}> ,> {"CIF-JSON":{...}}> ,> {"CIF-JSON":{...}}> ,> ...> ]>> This would allow services such as COD to easily deliver multiple CIF-JSON> structures without worrying about what the CCDC fails to do -- modify the> data_ lines when concatenating.>>>> Bob>>>> _______________________________________________> cif-developers mailing list> cif-developers@iucr.org> http://mailman.iucr.org/cgi-bin/mailman/listinfo/cif-developers>_______________________________________________cif-developers mailing listcif-developers@iucr.orghttp://mailman.iucr.org/cgi-bin/mailman/listinfo/cif-developers
Reply to: [list | sender only]
- Follow-Ups:
- Re: CIF-JSON draft 2017-05-15 (Robert Hanson)
- References:
- CIF-JSON draft 2017-05-15 (James Hester)
- Re: CIF-JSON draft 2017-05-15 (Robert Hanson)
- Re: CIF-JSON draft 2017-05-15 (Marcin Wojdyr)
- Re: CIF-JSON draft 2017-05-15 (Robert Hanson)
- Re: CIF-JSON draft 2017-05-15 (Robert Hanson)
- Re: CIF-JSON draft 2017-05-15 (Robert Hanson)
- Re: CIF-JSON draft 2017-05-15 (Robert Hanson)
- Re: CIF-JSON draft 2017-05-15 (Robert Hanson)
- Re: CIF-JSON draft 2017-05-15 (James Hester)
- Re: CIF-JSON draft 2017-05-15 (Robert Hanson)
- Re: CIF-JSON draft 2017-05-15 (Robert Hanson)
- Re: CIF-JSON draft 2017-05-15 (Robert Hanson)
- Re: CIF-JSON draft 2017-05-15 (Robert Hanson)
- Re: CIF-JSON draft 2017-05-15 (James Hester)
- Re: CIF-JSON draft 2017-05-15 (Robert Hanson)
- Re: CIF-JSON draft 2017-05-15 (Marcin Wojdyr)
- Re: CIF-JSON draft 2017-05-15 (Robert Hanson)
- Re: CIF-JSON draft 2017-05-15 (Marcin Wojdyr)
- Re: CIF-JSON draft 2017-05-15 (Robert Hanson)
- Re: CIF-JSON draft 2017-05-15 (Robert Hanson)
- Prev by Date: Re: CIF-JSON draft 2017-05-15
- Next by Date: Re: CIF-JSON draft 2017-05-15
- Prev by thread: Re: CIF-JSON draft 2017-05-15
- Next by thread: Re: CIF-JSON draft 2017-05-15
- Index(es):