Json,XML和RDF之间的区别 [英] Difference between Json, XML and RDF

查看:506
本文介绍了Json,XML和RDF之间的区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对JSON,XML和RDF之间的区别感到怀疑.

I have a doubt about what are the differences between JSON, XML and RDF.

我在互联网上阅读:

  • JSON(JavaScript对象表示法)是一种轻量级的数据交换格式.人类很容易读写.机器很容易解析和生成.

  • JSON (JavaScript Object Notation) is a lightweight data-interchange format. It is easy for humans to read and write. It is easy for machines to parse and generate.

资源描述框架(RDF)是一种用于表示有关万维网中资源的信息的语言.

The Resource Description Framework (RDF) is a language for representing information about resources in the World Wide Web.

可扩展标记语言(XML)是一种从SGML(ISO 8879)派生的简单,非常灵活的文本格式. XML最初旨在应付大规模电子出版的挑战,但在Web和其他地方交换各种数据方面也起着越来越重要的作用.

Extensible Markup Language (XML) is a simple, very flexible text format derived from SGML (ISO 8879). Originally designed to meet the challenges of large-scale electronic publishing, XML is also playing an increasingly important role in the exchange of a wide variety of data on the Web and elsewhere.

因此,如果我没记错的话,可以使用Json进行数据交换. XML也用于数据交换. 两者之间的主要区别是什么?

So if I'm not mistaken, Json is used for exchange of data. XML is used for exchange of data too. what are the main differences between these two?

RDF用于描述Web上的资源,并且基于xml语法.那么xml既可以用于信息交换,又可以用于新语言的描述?

RDF is used to describe resources on the Web and is based on a xml syntax. So the xml can be used both for the exchange of information, both for the description of the new languages​​?

你能给我一些澄清吗?

我了解的是:

  • 资源描述框架"建议提供一个描述资源的框架.在大学考试中,我使用RDF来描述公司的本体,该本体描述了公司的主要组成部分以及它们之间的关系. RDF对于语义网很重要,因为描述资源"使我们可以将语义与资源相关联.

  • "Resource Description Framework" suggests that provides a framework for describing resources. In a university exam I have used RDF to describe the ontology of a company that I have described the main components of a company and the relationships between them. RDF is important for the semantic web because "describe resources" allows us to associate a semantic meaning to resources.

XML是一种标记语言.标记语言是一组规则,用于描述文本(维基百科)的表示机制(结构,语义或表示形式).因此,它可以用于定义RDF或SOAP等文本的结构. 您还说它用于数据序列化.

XML is a markup language. A markup language is a set of rules that describe the mechanisms of representation (structural, semantic or presentational) of a text (wikipedia). For this reason it can be used to define the structure of the text of RDF or SOAP etc.. You also say that it is used for data serialize.

JSON仅用于数据序列化.序列化数据JSON和XML相似,但是使用XML和XML SCHEMA可以将语义与数据相关联,还是我错了?

JSON is only for data serialize. To serialize data JSON and XML is similar but with XML and XML SCHEMA I can associate semantic meaning to data, or am I wrong?

推荐答案

XML开始作为一种文档标记语言而诞生.此外,它还被广泛用于以各种计算机语言存储(序列化)数据结构,并且是基于SOAP的Web服务的基础.

XML started life as a document markup language. It has been additionally been widely used to store (serialize) data structures in various computer languages and is the basis of SOAP based web services.

Json

Json and YAML are designed to record data structures. Yaml has been described as a superset of JSON. In practice I have found there is little practical difference apart from the fact that Yaml is simpler to read and write by humans. JSON is now more widely favoured by REST based webservices, due to its simplicity.

RDF的数据格式较少,而更准确地描述为元数据数据模型.它用于在Internet上记录信息,并且是语义网. RDF可以以各种不同的格式表示,例如 XML

RDF is less a data format and more acurately described as a metadata data model. It is used to record information on the internet and is one of the building block standards of the Semantic web. RDF can be expressed in various different formats, for example XML and JSON. I can recommend the following link as an introduction:

有关此主题的一些RDF示例和更多讨论:

For some RDF examples and more discussion on this topic:

这篇关于Json,XML和RDF之间的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆