RDF API for PHP V0.9.1

Database Schema

RAP uses a denormalized database layout for increased performance.



Table models

Column name Type Comments
modelID id-ref, indexed  
modelURI varchar used at reopening a persistent model
baseURI varchar affects creating of new resources and serialization syntax



Table statemtents

Column name Type Comments
modelID id-ref, indexed  
subject varchar, indexed  
predicate varchar, indexed  
object blob, indexed  
l_language varchar only if object is a literal, otherwise NULL
l_datatype varchar only if object is a literal, otherwise NULL
subject_is varchar(1) flags whether subject is a resource or blankNode
object_is varchar(1) flags whether object is a resource, blankNode or literal
For best performance we recommend joint indexing on subject and predicate.