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
OIDattribute to be the primary key for each entity set
<query> - union of queries QTi over each of the other tables Ti
TischemaTi/(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
TRIPLEreplicates data in all other tables- All queries over a triple store schema have equivalent formulations that only mention TRIPLE
- A relational schema with single
TRIPLEtable can replicate any relational database- Never requires revision
- Replacing
OIDwithURIroughly obtains a RDF encoding of data- Resource Description Framework (RDF)
- Graphical Data Models
- Each column
subjectorobjectas a graph node and each tuple inTRIPLEas a labelled graph edge
- Each column