Discussion List Archives

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

Re: Draft JSON specification for CIF

On 13 April 2017 at 16:42, Andrius Merkys <andrius.merkys@gmail.com> wrote:> Dear Marcin,>> that's why I suggest retaining CIF value types. CIF parser knows the> type of each value read (here is the difference between ? and '?') and I> suggest storing this bit of information inside JSON explicitly.
Dear Andrius,Retaining all the information (single quote vs double quote, etc.) hassome uses, but there are trade-offs to consider.
Files used for macromolecular structures can be big. If you convert3j3q.cif (250MB) to the JSON you use, you will end up with even biggerfile.Or the chemical components dictionary:ftp://ftp.wwpdb.org/pub/pdb/data/monomers/components.cifwhich has similar size.So being more explicit makes it slower to download and parse resulting file.
Another thing is simplicity. I wrote a simple cif->json to checkcorrectness of my parser (for example by comparing the output withJMol).If the JSON format is simple, it's worth to add JSON writer to CIFparser just for the sake of testing. If JSON schema is too elaborate,it may not be worth.
Cheers,Marcin_______________________________________________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 Council for Science (admitted 1947). Member of CODATA, the ICSU Committee on Data. Member of ICSTI, the International Council for Scientific and Technical Information. Partner with UNESCO, the United Nations Educational, Scientific and Cultural Organization in the International Year of Crystallography 2014.

ICSU 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.