JSON and Graph model

JSON and Graph model

Lecturer: Jiaheng Lu

Autumn 2016

helsinki.fi

21.11.2016

1

Review and outline

? History of databases (Why we use databases)

? Data models

? Three features of data models

? Relational model

? Semi-structure model

? XML model

? JSON model

? Graph model

helsinki.fi

Trends in XML and JSON usage

Wow! I better have

expertise in both

XML and JSON

80%

XML

70%

60%

50%

40%

JSON

30%

20%

10%

0%

2006

2007

2008

2009

2010

2011

2012

2013

Based on directory of 11,000 web APIs listed at Programmable Web, December 2013

helsinki.fi

Example of XML-formatted data

The below XML document contains data about a book: its title,

authors, date of publication, and publisher.

Parsing Techniques

Dick Grune

Ceriel J.H. Jacobs

2007

Springer

helsinki.fi

Same data, JSON-formatted

{

"Book":

{

"Title": "Parsing Techniques",

"Authors": [ "Dick Grune", "Ceriel J.H. Jacobs" ],

"Date": "2007",

"Publisher": "Springer"

}

}

helsinki.fi

................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download