This class performs as RDQL query on a DbModel.
Provided an rdql query parsed into an array of php variables and constraints at first the engine generates an sql statement and queries the database for tuples matching all patterns from the WHERE clause of the given RDQL query. Subsequently the result set is is filtered with evaluated boolean expressions from the AND clause of the given RDQL query.
Located in /rdql/RdqlDbEngine.php (line 23)
Object | --RdqlEngine | --RdqlDbEngine
Parsed query variables and constraints.
When an RDQL query is performed on a DbModel, in first step the engine searches in database for triples matching the Rdql-WHERE clause. A recordSet is returned.
$rsIndexes maps select and filter variables to their corresponding indexes in the returned recordSet.
Filter tuples containing variables matching all patterns from the WHERE clause of an RDQL query. As a result of a database query using ADOdb these tuples are returned as an ADORecordSet object, which is then passed to this function.
Generate an SQL string to query the database for tuples matching all patterns of $parsedQuery.
Generate an SQL WHERE clause
Perform an RDQL Query on the given DbModel.
Convert variable values of $queryResult to objects (Node).
Serialize variable values of $queryResult to string.
Converts a single row of ADORecordSet->fields array to the format of $queryResult array using pointers to indexes ($this->rsIndexes) in RecordSet->fields.
Generate a piece of an sql select statement for a variable.
Look first if the given variable is defined as a pattern object. (So you can select the node type, literal lang and dtype) If not found - look for subjects and select node label and type. If there is no result either go to predicates. Predicates are always resources therefore select only the node label.
Inherited From RdqlEngine
RdqlEngine::writeQueryResultAsHtmlTable()
Inherited From Object
Object::toString()
Documentation generated on Mon, 26 Jun 2006 14:25:59 +0200 by phpDocumentor 1.3.0RC6