[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Reply to: [list | sender only]
Re: Draft JSON specification, round 2
- Subject: Re: Draft JSON specification, round 2
- From: Andrius Merkys <andrius.merkys@xxxxxxxxx>
- Date: Thu, 20 Apr 2017 09:18:41 +0300
- DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;h=subject:to:references:from:message-id:date:user-agent:mime-version:in-reply-to:content-transfer-encoding;bh=R5xZlURt7HH09yjD53NTefhvZLlmwyjQxEdTcnsv4v0=;b=CZynkg7XYDOWJM+LLm1R3kH+y7QNTe/KYxmf7pucMKVpi9jwY2St/ixBfuXTM8cwLVuEUfYbppi+F+LXnX2BsaQZNcCkjBt0xWSFj78Lfk6wcRLlaSTm0VJAl8b+InCUm74ZvA/+y5AnI7FjVHxjtq1uroAkqPGtn7JqYHgfq/MwB5XOZGpJ1jAyHbOoeA+zV7ebPXuJ2JinMh3XRZ83QCh0uSCka7xcno+dK7iSIfSraonMof0Qwv8xVT+U9mlcotEYVJz5qMQMX03tOoV6+J51bULUU2ydaDq33o3UcOhpiJmfpcHiHTe6K9ahvpFjAlMqOS+SmD6AuEchi2AN1w==
- In-Reply-To: <CAF_YUvURvhf+CkErvsCjNr=b=Nq2=FkM68Z_Tap3EsAzfArc+w@mail.gmail.com>
- References: <CAM+dB2d4HcnH7PZRC4jYO8KLyNxs4pws_baT7WKi6vRiD2z1ow@mail.gmail.com><CAF_YUvURvhf+CkErvsCjNr=b=Nq2=FkM68Z_Tap3EsAzfArc+w@mail.gmail.com>
Dear all, On 19/04/17 20:20, Robert Hanson wrote:> Do you see these as having a serial array [...] at the top level or> an associative array {....}? I would recommend the use of a serial array [...] to preserve the orderof datablocks of input CIF. Some arguments for this approach: 1) Serial array removes the ambiguity of the datablock order in JSON ->CIF conversion, thus different programs will by default producediff-able output; 2) Input CIFs *may* contain two or more datablocks with the same name(i.e. concatenated files, incorrect files), thus CIF -> JSON converterswith top-level object approach must have explicit guidelines which ofthese datablocks will get overwritten or discarded; 3) I am aware of at least one CIF usage that makes use of datablockorder (Toby et al. 2003, https://doi.org/10.1107/S0021889803016819):"The first block in the CIF contains information used in a publication"; 4) One can always construct an associative array out of serial array,whereas vice versa is ambiguous. I understand that top-level object approach should be sufficient for themost of use cases, but I would argue against the loss of order information. Best regards,Andrius -- Andrius MerkysPhD student at Vilnius University Institute of Biotechnology, Saulėtekio al. 7, V325LT-10257 Vilnius, LithuaniaLecturer at Vilnius University Faculty of Mathematics and Informatics, Naugarduko g. 24LT-03225 Vilnius, Lithuania _______________________________________________cif-developers mailing listcif-developers@iucr.orghttp://mailman.iucr.org/cgi-bin/mailman/listinfo/cif-developers
Reply to: [list | sender only]
- Follow-Ups:
- Re: Draft JSON specification, round 2 (James Hester)
- References:
- Draft JSON specification, round 2 (James Hester)
- Re: Draft JSON specification, round 2 (Robert Hanson)
- Prev by Date: Treatment of Greek characters in CIF2
- Next by Date: Re: Treatment of Greek characters in CIF2
- Prev by thread: Re: Draft JSON specification, round 2
- Next by thread: Re: Draft JSON specification, round 2
- Index(es):