DB_Virtuoso Class Reference
[Framework for the Web Services]
Database connector to the Virtuoso datastore.
More...
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.
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
Definition at line 212 of file db.php.
References $query.
| DB_Virtuoso::connect | ( | ) | [private] |
| DB_Virtuoso::DB_Virtuoso | ( | $ | username, | |
| $ | password, | |||
| $ | dsn, | |||
| $ | host | |||
| ) |
| DB_Virtuoso::delete | ( | ) | [private] |
| 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
Definition at line 110 of file db.php.
References $resultset.
Member Data Documentation
DB_Virtuoso::$dsn [private] |
DB_Virtuoso::$queryProcessTime = 0 [private] |
DB_Virtuoso::$resultset [private] |
The documentation for this class was generated from the following file:

