Source for file Engine.php
Documentation is available at Engine.php
// ----------------------------------------------------------------------------------
// Class: RDF_RDQL_Engine
// ----------------------------------------------------------------------------------
* Some general methods common for RDQLMemEngine and RDQLDBEngine
* @author Radoslaw Oldakowski <radol@gmx.de>
* Prints a query result as HTML table.
* You can change the colors in the configuration file.
* @param array $queryResult [][?VARNAME] = object Node
if (current($queryResult[0 ]) == null ) {
echo '<table border="1" cellpadding="3" cellspacing="0"><tr><td><b>No.</b></td>';
foreach ($queryResult[0 ] as $varName => $value)
echo " <td align='center'><b>$varName</b></td>";
foreach ($queryResult as $n => $var) {
echo '<tr><td width="20" align="right">' . ($n + 1 ) . '.</td>';
foreach ($var as $varName => $value) {
echo RDF_INDENTATION . RDF_INDENTATION . '<td bgcolor="';
echo RDF_Util ::chooseColor ($value);
if (is_a($value, 'RDF_Literal')) {
if ($value->getLanguage () != null ) {
$lang = ' <b>(xml:lang="' . $value->getLanguage () . '") </b> ';
if ($value->getDatatype () != null ) {
$dtype = ' <b>(rdf:datatype="' . $value->getDatatype () . '") </b> ';
echo RDF_Util ::getNodeTypeName ($value) . $value->getLabel () . $lang . $dtype . '</p>';
} // end: Class RDQLEngine
Documentation generated on Mon, 11 Mar 2019 15:39:49 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|