Difference between Json, XML and RDF

I have doubts about the differences between JSON, XML, and RDF.

I read on the internet:

  • JSON (JavaScript Object Identifier) ​​is a lightweight data interchange format. It’s easy for a person to read and write. Cars are easily disassembled and generated.

  • Resource Description Framework (RDF) is a language for representing resource information on the World Wide 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 also plays an increasingly important role in sharing a wide variety of data on the Internet and elsewhere.

So, if I am not mistaken, Json is used for data exchange. XML is also used for data exchange. What are the main differences between the two?

RDF is used to describe resources on the Internet and is based on xml syntax. So, can xml be used both for exchanging information and for describing new languages?

Can you give me some clarification?

EDIT:

I understand:

  • The "Resource Description Framework" suggests creating a structure for describing resources. In the university exam, I used RDF to describe the ontology of the company, in which I described the main components of the company and the relationship between them. RDF is important for the semantic network because "describe resources" allows you to associate the semantic meaning with resources.

  • XML is a markup language. The markup language is a set of rules that describe the presentation mechanisms (structural, semantic or presentation) of a text (Wikipedia). For this reason, it can be used to determine the structure of RDF or SOAP text, etc. You also say that it is used to serialize data.

  • JSON is only for serializing data. For serializing data, JSON and XML are similar, but with XML and XML SCHEMA Can I associate a semantic value with data, or am I mistaken?

+7
json xml rdf
source share
1 answer

XML began to work as a document markup language. It has also been widely used for storing (serializing) data structures in various computer languages ​​and is the basis of SOAP-based web services.

Json and YAML are for writing data structures. Yaml has been described as a superset of JSON. In practice, I found that there are few practical differences, in addition to the fact that Yaml is easier to read and write to people. JSON is now using REST-based web services more widely due to its simplicity.

RDF is smaller than a data format and more accurately described as a metadata data model. It is used to record information on the Internet and is one of the standards for the building blocks of the Semantic web . RDF can be expressed in various formats, such as XML and JSON . I can recommend the following link as an introduction:

For some RDF examples and a more detailed discussion of this topic:

  • Convert JSON to XML
+11
source share

All Articles