Class SparqlEngine_ResultRenderer_Default

Description

Implements interfaces:

Default result renderer for SparqlEngine

Located in /sparql/SparqlEngine/ResultRenderer/Default.php (line 12)


	
			
Method Summary
MemModel constructGraph (array $arVartable, GraphPattern $constructPattern)
mixed convertFromResult (array $arVartable, Query $query, SparqlEngine $engine)
MemModel describeGraph (array $arVartable)
String _determineType (Node $var, MemModel $resultGraph)
void _getAttributes (Array $list, MemModel $resultGraph,  $varvalue)
Methods
constructGraph (line 78)

Constructs a result graph.

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

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

  • return: Most likely an array
  • access: public
mixed convertFromResult (array $arVartable, Query $query, SparqlEngine $engine)
  • array $arVartable: Variable table
  • Query $query: SPARQL query object
  • SparqlEngine $engine: Sparql Engine to query the database

Implementation of:
SparqlEngine_ResultRenderer::convertFromResult()
Converts the database results into the desired output format and returns the result.
describeGraph (line 134)

Builds a describing named graph. To define an attribute list for a several rdf:type look at constants.php

MemModel describeGraph (array $arVartable)
  • array $arVartable
_determineType (line 179)

Tries to determine the rdf:type of the variable.

  • return: Uri of the rdf:type
  • access: protected
String _determineType (Node $var, MemModel $resultGraph)
  • Node $var: The variable
  • MemModel $resultGraph: The result graph which describes the Resource
_getAttributes (line 228)

Search the attributes listed in $list in the dataset.

Modifies $resultGraph

  • access: protected
void _getAttributes (Array $list, MemModel $resultGraph,  $varvalue)
  • Array $list: List containing the attributes
  • MemModel $resultGraph: The result graph which describes the Resource
  • $varvalue

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