Class SparqlEngineDb_ResultRenderer_Default

Description

Implements interfaces:

Default RAP result renderer.

Located in /sparql/SparqlEngineDb/ResultRenderer/Default.php (line 11)


	
			
Variable Summary
Method Summary
MemModel constructGraph (array $arVartable, GraphPattern $constructPattern)
mixed convertFromDbResults (array $arRecordSets, Query $query, SparqlEngineDb $engine)
Resource createObjectFromDbRecordSetPart ( $dbRecordSet, string $strVarBase,  $strVarName)
Resource createPredicateFromDbRecordSetPart ( $dbRecordSet, string $strVarBase,  $strVarName)
Statement createStatementFromDbRecordSetPart ( $dbRecordSet, string $strVarBase)
Resource createSubjectFromDbRecordSetPart ( $dbRecordSet, string $strVarBase,  $strVarName)
array getVariableArrayFromRecordSet ( $dbRecordSet,  $strResultForm)
void getVariableArrayFromRecordSets ( $arRecordSets,  $strResultForm)
Variables
array $arCreationMethods = array(
's' => 'createSubjectFromDbRecordSetPart',
'p' => 'createPredicateFromDbRecordSetPart',
'o' => 'createObjectFromDbRecordSetPart'
)
(line 24)

Defines the methods needed to create the types in $arVarAssignments.

Key is the type (e.g. "s" for subject), and value the method's name.

  • see: $arVarAssignments
  • access: protected
Methods
constructGraph (line 286)

Constructs a result graph.

  • return: The result graph which matches the CONSTRUCT pattern
  • access: protected
MemModel constructGraph (array $arVartable, GraphPattern $constructPattern)
  • array $arVartable: A table containing the result vars and their bindings
  • GraphPattern $constructPattern: The CONSTRUCT pattern
convertFromDbResults (line 41)

Converts the database results into the desired output format and returns the result.

  • return: The result as rendered by the result renderers.
  • access: public
mixed convertFromDbResults (array $arRecordSets, Query $query, SparqlEngineDb $engine)
  • 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.
createObjectFromDbRecordSetPart (line 252)

Creates an RDF object object contained in the given $dbRecordSet object.

  • return: RDF triple object resource object
  • see: convertFromDbResult() to understand $strVarBase necessity
  • access: protected
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
createPredicateFromDbRecordSetPart (line 229)

Creates an RDF predicate object contained in the given $dbRecordSet object.

  • return: RDF triple predicate resource object
  • see: convertFromDbResult() to understand $strVarBase necessity
  • access: protected
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
createStatementFromDbRecordSetPart (line 176)

Creates an RDF Statement object for one of the variables contained in the given $dbRecordSet object.

  • return: RDF statement object
  • see: convertFromDbResult() to understand $strVarBase necessity
  • access: protected
Statement createStatementFromDbRecordSetPart ( $dbRecordSet, string $strVarBase)
  • ADORecordSet $dbRecordSet: Record set returned from ADOConnection::Execute()
  • string $strVarBase: Prefix of the columns the recordset fields have.
createSubjectFromDbRecordSetPart (line 198)

Creates an RDF subject object contained in the given $dbRecordSet object.

  • return: RDF triple subject resource object
  • see: convertFromDbResult() to understand $strVarBase necessity
  • access: protected
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
getVariableArrayFromRecordSet (line 124)

Converts a ADORecordSet object into an array of "rows" that are subarrays of variable => value pairs.

  • access: protected
array getVariableArrayFromRecordSet ( $dbRecordSet,  $strResultForm)
  • ADORecordSet $dbRecordSet: Anything ADOConnection::Execute() can return
  • $strResultForm
getVariableArrayFromRecordSets (line 103)
  • access: protected
void getVariableArrayFromRecordSets ( $arRecordSets,  $strResultForm)
  • $arRecordSets
  • $strResultForm

Documentation generated on Fri, 1 Jun 2007 16:49:00 +0200 by phpDocumentor 1.3.2