This class performes as RDQL query on a MemModel.
Provided an rdql query parsed into an array of php variables and constraints at first the engine searches for tuples matching all patterns from the WHERE clause of the given RDQL query. Then the query result set is filtered with evaluated boolean expressions from the AND clause of the given RDQL query.
Located in /rdql/RdqlMemEngine.php (line 22)
Object | --RdqlEngine | --RdqlMemEngine
Parsed query variables and constraints.
Filter the result-set of query variables by evaluating each filter from the AND clause of the RDQL query.
Search in $memModel for triples matching one pattern from the WHERE clause.
'ANY' input for $subjLabel..$objLabel, $obj_is will match anything. NULL input for $objDtype will only match obj->dtype = NULL NULL input for $objLanguage will match obj->lang = NULL or anything if a literal is datatyped (except for XMLLiterals and plain literals) This method also checks internal bindings if provided.
Find triples matching all patterns of an RDQL query and return an array with variables from all patterns and their corresponding values.
The variable values returned are instances of object Node.
Find tuples matching one pattern and return an array with pattern variables and their corresponding values (instances of object Node).
Perform an SQL-like inner join on two resultSets.
Perform an RDQL Query on the given MemModel.
Remove all conditional variables from the result-set and leave only variables specified in the SELECT clause of the RDQL query.
Convert the variable values of $finalRes from objects to their string serialization.
Check if the given triple meets pattern internal bindings e.g. (?x, ?z, ?x) ==> statement subject must be identical with the statement object
Check if the lang and dtype of the passed object Literal are equal $lang and $dtype !!! Language only differentiates literals in rdf:XMLLiterals and plain literals (xsd:string).
!!! Therefore if a literal is datatyped ignore the language.
Inherited From RdqlEngine
RdqlEngine::writeQueryResultAsHtmlTable()
Inherited From Object
Object::toString()
Documentation generated on Mon, 26 Jun 2006 14:26:00 +0200 by phpDocumentor 1.3.0RC6