Constructs a result graph.
-
array
$arVartable: A table containing the result vars and their bindings
-
GraphPattern
$constructPattern: The CONSTRUCT pattern
Converts the database results into the desired output format and returns the result.
-
array
$arRecordSets: Array of (possibly several) SQL query results.
-
Query
$query: SPARQL query object
-
SparqlEngineDb
$engine: Sparql Engine to query the database
Implementation of:
- SparqlEngineDb_ResultRenderer::convertFromDbResults()
- Converts the database results into the desired output format and returns the result.
Creates an RDF object object contained in the given $dbRecordSet object.
Resource
createObjectFromDbRecordSetPart
(
$dbRecordSet,
string $strVarBase,
$strVarName)
-
ADORecordSet
$dbRecordSet: Record set returned from ADOConnection::Execute()
-
string
$strVarBase: Prefix of the columns the recordset fields have.
-
$strVarName
Creates an RDF predicate object contained in the given $dbRecordSet object.
Resource
createPredicateFromDbRecordSetPart
(
$dbRecordSet,
string $strVarBase,
$strVarName)
-
ADORecordSet
$dbRecordSet: Record set returned from ADOConnection::Execute()
-
string
$strVarBase: Prefix of the columns the recordset fields have.
-
$strVarName
Creates an RDF Statement object for one of the variables contained in the given $dbRecordSet object.
Statement
createStatementFromDbRecordSetPart
(
$dbRecordSet,
string $strVarBase)
-
ADORecordSet
$dbRecordSet: Record set returned from ADOConnection::Execute()
-
string
$strVarBase: Prefix of the columns the recordset fields have.
Creates an RDF subject object contained in the given $dbRecordSet object.
Resource
createSubjectFromDbRecordSetPart
(
$dbRecordSet,
string $strVarBase,
$strVarName)
-
ADORecordSet
$dbRecordSet: Record set returned from ADOConnection::Execute()
-
string
$strVarBase: Prefix of the columns the recordset fields have.
-
$strVarName
Converts a ADORecordSet object into an array of "rows" that are subarrays of variable => value pairs.
array
getVariableArrayFromRecordSet
( $dbRecordSet, $strResultForm)
-
ADORecordSet
$dbRecordSet: Anything ADOConnection::Execute() can return
-
$strResultForm
void
getVariableArrayFromRecordSets
( $arRecordSets, $strResultForm)
-
$arRecordSets
-
$strResultForm