Discussion List Archives

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CIF-JSON draft 2017-05-15

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.
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]
International Union of Crystallography

Scientific Union Member of the International Science Council (admitted 1947). Member of CODATA, the ISC Committee on Data. Partner with UNESCO, the United Nations Educational, Scientific and Cultural Organization in the International Year of Crystallography 2014.

International Science Council Scientific Freedom Policy

The IUCr observes the basic policy of non-discrimination and affirms the right and freedom of scientists to associate in international scientific activity without regard to such factors as ethnic origin, religion, citizenship, language, political stance, gender, sex or age, in accordance with the Statutes of the International Council for Science.