A Survey on JSON Mapping With XML/RDF

A Survey on JSON Mapping With XML/RDF

Gbéboumé Crédo Charles Adjallah-Kondo, Zongmin Ma
DOI: 10.4018/978-1-5225-8446-9.ch005
OnDemand:
(Individual Chapters)
Available
$37.50
No Current Special Offers
TOTAL SAVINGS: $37.50

Abstract

As a data format, JSON is able to store and exchange data. It can be mapped with RDF (resource description framework), which is an ontology technology in the direction of web resources. This chapter replies to the question about which techniques or methods to utilize for mapping XML to JSON and RDF. However, a plethora of methods have been explored. Consequently, the goal of this survey is to give the whole presentation of the currents approaches to map JSON with XML and RDF by providing their differences.
Chapter Preview
Top

Introduction

The conspicuous development in the semantic web has given birth to different data formats sanctioning exchange, management and storage of data. The challenge is to find a way for mapping a data format to another which has different structure, common (XML, JSON, RDF) and convenient dealing with different applications. First, researches stipulate that it is better to utilize JSON (JavaScript Object Notation) than XML (Extensible Markup Language derived from an older standard format called SGML). Also, XML and REST APIs can support JSON. Converting subsisting XML document to JSON became a consequential question. Albeit they have unique purport, XML has to be parsed by XML parser and JSON by a standard JavaScript function. On the other hand, verbalizing about another format, RDF (Resource Description Framework) is a standard promote mundane data format and exchange protocols on the Web. Since JSON cannot be used directly on the web of data due to certain consequential features like URIs and semantical links, the conversion from JSON to RDF is then primordial.

JSON designated in early 2000s (Resource Description Framework, n.d.) by Douglas Crockford, is a lightweight data-interchange format. It’s a syntax sanctioning to store and exchange data. JSON is a text format predicated on Java Script programming language and is thoroughly independent language data format. It is elaborated as human-readable, “self-describing” and facile for computer to understand. It is nowadays an ideal data-interchange language on the web especially in web applications and used to supersede XML.

XML, (XML essentials, n.d.) derived from an older standard format called SGML (Standard Generalized Markup Language - ISO 8879), is text format and markup language much homogeneous to HTML. It was designed to store and convey structured data and additionally designed to be self-descriptive, simple and human-machine readable. XML was recommended by W3C (World Wide Web Consortium) in early February 1998. It is one of the most widely-used formats for sharing structured information today.

The RDF is a fundamental lower layer on top of which the semantic web is built. It is also a framework for representing information in the Web. RDF is a (Resource Description Framework, n.d.) standard model for data interchange on the Web and has features that facilitate data merging even if the underlying schemas differ, and it specifically supports the evolution of schemas over time without requiring all the data consumers to be changed. The RDF specification defines a data model and a syntax which is defined on top of the XML syntax. RDF data can be expressed with different notations like XML (for machine interchange), N3 and Turtle (human readable).

This paper elucidates the current methods that can be habituated to convert first XML to JSON and the mapping from JSON to RDF. For longtime, XML was the only option to sanction data storage and interchange. But with the apparition of JSON, it is now a popular alternative to XML for sundry reasons. The findings of this study will redound to benefit of developer dealing with APIs and users to share, exchange and store data without format issues on the web and applications.

The section one dedicatory to the conversion of XML to JSON, in particular, gives definitions, main differences and kindred attributes between them; explores methods for how this mapping can be done and conclusively explores the approach by (Falco & Thom, 2014) deeply in details. Moving on, the second part will verbalize mainly about mapping JSON to RDF. Afore this can be done, it provides definitions, the kindred attributes and convergences, analyses subsisting approaches. Furthermore, the current method to go about converting JSON to RDF is explored from the commencement to his implementation. This method emanates from Pasquale Lisena and Raphaël Troncy in Transforming the JSON Output of SPARQL Queries for Linked Data Clients. After all then comes the conclusion.

Background

This component introduces a formal data model for JSON, XML and RDF documents reflecting the comparison between these data formats. After introducing them, highlights the difference and the homogeneous attributes.

Key Terms in this Chapter

Parser: A parser can be understood as a compiler that makes easier the translation of a specific data to another one by dividing them in parts for instance, attributes, methods or objects.

Translation: A translation can be a direct or indirect mapping from a given data document to another one without losing the meaning of the whole document. The output of a translation can be also a reduced form of the input.

Data Format: In order to store and manipulate the set of values of variable which are actually called data, it is imperative to encode it by a specific structure. That’s from where come the data format notion.

Queries: Queries represent all the questions in a specific way for information or data from a database. The results can be generated as graphs or structured texts. Querying a database refers to two different ways (selection or action). They are sent by the computer and processed by a software.

Constraints of Structure: They actually are the basis make the difference between two or many data format structure.

Attribute: An attribute defines the properties of a document or data format and also refers to a single value.

Valid Instance Document: It refers to a document structure with a legal elements and attributes that can be used to replace another one. For example, XSD is XML valid instance document.

Complete Chapter List

Search this Book:
Reset