Triple Store
create view TRIPLE as ( <query> )
Schema TRIPLE/(subject, property, object)
ER Diagram Modification
- Turn all entity sets into regular entity sets
- Add an
OID
attribute to be the primary key for each entity set
<query>
- union of queries QTi
over each of the other tables Ti
Ti
schemaTi/(OID, A1, ..., An)
Qti =
(select OID as subject, 'in' as property, 'Ti' as object from Ti)
union
(select OID as subject, 'A1' as property, A1 as object from Ti)
union
...
union
(select OID as subject, 'An' as property, An as object from Ti)
Note
- Data in
TRIPLE
replicates data in all other tables- All queries over a triple store schema have equivalent formulations that only mention TRIPLE
- A relational schema with single
TRIPLE
table can replicate any relational database- Never requires revision
- Replacing
OID
withURI
roughly obtains a RDF encoding of data- Resource Description Framework (RDF)
- Graphical Data Models
- Each column
subject
orobject
as a graph node and each tuple inTRIPLE
as a labelled graph edge
- Each column