[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: Robert Hanson <hansonr@xxxxxxxxxx>
- Date: Tue, 16 May 2017 22:54:15 -0500
- DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=stolaf.edu; s=stolaf;h=mime-version:in-reply-to:references:from:date:message-id:subject:to;bh=VKvcMEZFIYKiAcbei3Xdoo+D2K9PV40nCi3pWCyzLUg=;b=SrSgp/SmOIb7fKVocurR2eFI7mGAEZw73vOVYqYBemqW2FqbRkYLIWhnSC0C3yAOjrSM9qerwctheWYft8kDBEjrXuqToqIATMZaDHdhZubJ8w7dnBEi3G60NJ733P/Ro842y79UCXAylYuKyBcJ0D+yMjcWkZzNwTayy1UcVzM=
- In-Reply-To: <CAM+dB2eq3Ue0w1=KYyfwXRanC_yf5KE8LhokUMWqK2Y_rqf7Cw@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><CAM+dB2eq3Ue0w1=KYyfwXRanC_yf5KE8LhokUMWqK2Y_rqf7Cw@mail.gmail.com>
On Tue, May 16, 2017 at 12:44 AM, James Hester <jamesrhester@gmail.com> wrote:
On 16 May 2017 at 13:51, Robert Hanson <hansonr@stolaf.edu> wrote:Q: Do I have this right?The draft version says "all names in JSON data blocks" but that is unnecessary, I think. Those have to start with "_" or either "save_" or "frame" depending upon what you want to do with same frames. Right?
(Reserved names). All CIF-JSON top-level names starting with an upper-case letter are reserved for future development.No, the idea is indeed that we reserve all capitalised JSON names within data blocks for future expansion, for example, if we wanted to store JSON numbers in 'Numbers' and uncertainties in 'Uncertainties'. These most naturally belong in the same data block as the item that they refer to. Anything new in the top level we would just store inside 'Metadata'. CIF-JSON users can then mess around with lower-case JSON names in data blocks for their own custom uses (I think you were talking about annotation, for example). Of course, reserving "save_*" for save frames is a bit of a wart in this system, especially as "save" would be a likely choice for an adhoc name.
My point is that all data names must start with "_" ("Tag" in CIF1 lingo):
<Tag> '_'{ <NonBlankChar>}+
<Tag> '_'{ <NonBlankChar>}+
So who cares about additional data names having capitalization or not? They just don't have to start with "_" -- like the "frames" idea. There was no need to capitalize that. So any item's key in a JSON data block object with a name that does not start with _ must be metadata of some sort -- or some additional CIF-JSON-specific hierarchy such as "frames".
I get it that at the top level you could say all names need to be lower case, because if "data_" is not prepended, then we have no other way to know which ones are block codes and which ones are metadata.
Bob_______________________________________________ cif-developers mailing list cif-developers@iucr.org http://mailman.iucr.org/cgi-bin/mailman/listinfo/cif-developers
Reply to: [list | sender only]
- Follow-Ups:
- Re: CIF-JSON draft 2017-05-15 (James Hester)
- 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 (James Hester)
- 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):