DbStore is a persistent store of RDF data using relational database technology.
DbStore uses ADOdb Library for PHP V3.60 (http://php.weblogs.com/ADODB), which allows to connect to multiple databases in a portable manner. This class also provides methods for creating tables for MsAccess, MySQL, and MS SQL Server. If you want to use other databases, you will have to create tables by yourself according to the abstract database schema described in the API documentation.
You can activate debug mode by defining ADODB_DEBUG_MODE to "1".
Located in /model/DbStore.php (line 29)
Object | --DbStore
Constructor: Set the database connection with the given parameters.
Close the DbStore.
!!! Warning: If you close the DbStore all active instances of DbModel from this !!! DbStore will lose their database connection !!!
Create tables and indexes for the given database type.
Currently supported: MsAccess and MySQL. If you want to use other databases, you will have to create tables by yourself according to the abstract <a href="database_schema.html">database schema</a> described in the API documentation.
Check if the Dataset with the given $datasetName is already stored in the database
Create a new instance of DatasetDb with the given $datasetName and load the corresponding values from the database.
Return FALSE if the DbModel does not exist.
Create a new instance of DbModel with the given $modelURI and load the corresponding values of modelID and baseURI from the database.
Return FALSE if the DbModel does not exist.
Create a new instance of namedGraphDb with the given $modelURI and graphName and load the corresponding values of modelID and baseURI from the database.
Return FALSE if the DbModel does not exist.
Create a new instance of DatasetDb with the given $datasetName and insert the DatasetDb variables into the database.
Return FALSE if there is already a model with the given URI.
Create a new instance of DbModel with the given $modelURI and insert the DbModel variables into the database.
Return FALSE if there is already a model with the given URI.
Create a new instance of namedGraphDb with the given $modelURI and graphName and insert the DbModel variables into the database (not the graphName. This is only stored persistently, when added to dataset).
Return FALSE if there is already a model with the given URI.
Checks if tables are setup for RAP
Check if the DbModel with the given modelURI is already stored in the database
Store a MemModel or another DbModel from a different DbStore in the database.
Return FALSE if there is already a model with modelURI matching the modelURI of the given model.
Removes the graph with all statements from the database.
Warning: A single namedGraph can be added to several datasets. So it'll be removed from all datasets.
Inherited From Object
Object::toString()
Documentation generated on Fri, 1 Jun 2007 16:48:52 +0200 by phpDocumentor 1.3.2