You are on page 1of 1

Introduction to Database 2

Chapter 8
ˆ Semi-structured Data: need for flexible schema, multivalued/nested data.
JSON, XML, RDF
RDF: knowledge graph (entity: oval, literal: rectangle)
Query like ”?subject predicate object”
ˆ ORDB: add OO features, e.g., inheritance, encapsulation, class, object id, rich type, ...
”create type Person as (ID varchar(20) primary key, ... ref from(ID))”
then ”create table people of Person”
inherit like ”create type Student under Person (degree varchar(20))”
refer like ”create type Department(..., head ref(Person) scope people)”
which works like ”insert into Department values (..., ’12345’)”, because ”ref from(ID)”
ˆ OODB: native support for OO language data

ˆ ORM: maps Java objects to RDB tuples


pros: easy to use, perf gain when operating on objs cached in memory
cons: proprietary libraries, dependency between objs and DB schema

Chapter 9-2
ˆ Single Sign-On: authenticate once, access multiple servers who communicate with the central au-
thentication service

You might also like