码迷,mamicode.com
首页 > 其他好文 > 详细

Dataexchange

时间:2016-08-14 23:55:35      阅读:137      评论:0      收藏:0      [点我收藏+]

标签:

Data Exchange includes taking data structured under a source schema and transform it into the target data schema, so that the target data is an accurate representation of the original source data.

JSON

JSON stands for JavaScript Object Notation and is an open-standard format that uses human-readable text to transmit data objects consisting of key-value pairs.

Advantage

* Simple and compact data format* Support hierarchical data structure* Its size is smaller than XML’s* Easy to handle using JavaScript object parsing and web applications* Compact data format to exchange data between applications.* Very good tool support since almost every programming language supports JSON.

 

Disadvantages

* JSON format(RDF - Resource Description Framework ) structures that go beyond key/value pairs) is very hard to read for humans.* Every single comma, quote, and bracket should be in exactly the correct place.* JSON is not suitable for large data’s.* JSON does not have a < [CDATA []]> feature, so it is not suitable for handling multimedia formats. That is text, images etc.

XML

stands for Extensible Markup Language that defines a set of rules for encoding documents in a format that is both human-readable and machine-readable.

 

Advantage

* Support hierarchical data structure* Information coded in XML is easy to read and understand.* Lots of APIs exist to convert data into native data* XML documents can contain any possible data type — from multimedia data (image, sound, video) to active components (Java applets, ActiveX).* Very good tool support since almost every programming language supports XML.

Disadvantages

* There is no optimization of queries.* There is no built-in security model.* Data is not normalized, duplications are not eliminated.* XML is case-sensitive.* Very long and hard to read.* Size is largest due to open and close tag

CSV

A CSV is a comma separated values file, which allows data to be saved in a table structured format.

Advantage

* CSV is human readable and easy to edit manually* Most compact format, half or less size of XM and JSON format* CSV is simple to implement and parse

* CSV is processed by almost all existing applications

Disadvantages

* CSV allows to move most basic data only. Complex configurations cannot be imported and exported this way.* There is no distinction between text and numeric values* No standard way to represent binary data* Poor support of special characters

Dataexchange

标签:

原文地址:http://www.cnblogs.com/luaicun/p/5771385.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!