DB_Virtuoso Class Reference
[Framework for the Web Services]

Database connector to the Virtuoso datastore. More...

List of all members.

Public Member Functions

 DB_Virtuoso ($username, $password, $dsn, $host)
 Creating a connection to the datbase system.
 getError ()
 getErrorMsg ()
 query ($db_query, $benchmark=FALSE)
 Send a query to the server.
 close ()
 Close a connection with the server.
 build_sparql_query ($query, $query_variables, $sponger)
 Build a SPARQL query to send to the datastore. This wrap the sparql query for delevery of the query via a ODB channel.

Private Member Functions

 connect ()
 Connect to the database server.
 delete ()
 Delete this object from the memory.

Private Attributes

 $db_host
 Database host address.
 $db_user
 Database username.
 $db_pass
 Database password.
 $dsn
 Database DSN.
 $resultset
 Query resultset.
 $db_link
 Database connection link.
 $queryProcessTime = 0
 Query process time in milliseconds; This is used for benchmarking purposes.


Detailed Description

Database connector to the Virtuoso datastore.


Author:
Frederick Giasson, Structured Dynamics LLC.



Definition at line 26 of file db.php.


Member Function Documentation

DB_Virtuoso::build_sparql_query ( query,
query_variables,
sponger 
)

Build a SPARQL query to send to the datastore. This wrap the sparql query for delevery of the query via a ODB channel.


Parameters:
[in] $query SPARQL query to to wrap
[in] $query_variables An array that list all the variables used in the SPARLQ query to wrap (take care of the order!)
[in] $sponger Enables the sponger
Returns:
returns the SPARQL query to send the to triple store
Author:
Frederick Giasson, Structured Dynamics LLC.



Definition at line 212 of file db.php.

References $query.

DB_Virtuoso::close (  ) 

Close a connection with the server.


Author:
Frederick Giasson, Structured Dynamics LLC.



Definition at line 180 of file db.php.

DB_Virtuoso::connect (  )  [private]

Connect to the database server.


Author:
Frederick Giasson, Structured Dynamics LLC.



Definition at line 81 of file db.php.

Referenced by DB_Virtuoso().

DB_Virtuoso::DB_Virtuoso ( username,
password,
dsn,
host 
)

Creating a connection to the datbase system.


Parameters:
[in] $username Database username
[in] $password Database password
[in] $dsn Database DSN
[in] $host Database host
Author:
Frederick Giasson, Structured Dynamics LLC.



Definition at line 62 of file db.php.

References $dsn, and connect().

Here is the call graph for this function:

DB_Virtuoso::delete (  )  [private]

Delete this object from the memory.


Author:
Frederick Giasson, Structured Dynamics LLC.



Definition at line 196 of file db.php.

DB_Virtuoso::getError (  ) 

Definition at line 93 of file db.php.

DB_Virtuoso::getErrorMsg (  ) 

Definition at line 95 of file db.php.

DB_Virtuoso::query ( db_query,
benchmark = FALSE 
)

Send a query to the server.


Parameters:
[in] $db_query Query to send to the datastore (SQL or SPARQL)
[in] $benchmark Enable benchmarking capabilities of the system
Returns:
returns the resltset of the query
Author:
Frederick Giasson, Structured Dynamics LLC.



Definition at line 110 of file db.php.

References $resultset.


Member Data Documentation

DB_Virtuoso::$db_host [private]

Database host address.

Definition at line 29 of file db.php.

DB_Virtuoso::$db_link [private]

Database connection link.

Definition at line 44 of file db.php.

DB_Virtuoso::$db_pass [private]

Database password.

Definition at line 35 of file db.php.

DB_Virtuoso::$db_user [private]

Database username.

Definition at line 32 of file db.php.

DB_Virtuoso::$dsn [private]

Database DSN.

Definition at line 38 of file db.php.

Referenced by DB_Virtuoso().

DB_Virtuoso::$queryProcessTime = 0 [private]

Query process time in milliseconds; This is used for benchmarking purposes.

Definition at line 47 of file db.php.

DB_Virtuoso::$resultset [private]

Query resultset.

Definition at line 41 of file db.php.

Referenced by query().


The documentation for this class was generated from the following file:
Copyright © 2009. Structured Dynamics LLC Structured Dynamics LLC. All rights reserved.