Class SparqlEngine_ResultConverter

Description

Converts a memory result into a proper rdf statement triple array

Located in /sparql/SparqlEngine/ResultConverter.php (line 12)


	
			
Method Summary
static mixed convertFromResult (array $arVartable, SparqlEngine $engine, [mixed $resultform = false])
static mixed loadClass (string $strClass)
Methods
static convertFromResult (line 30)

Determines the correct renderer and calls it.

The $resultform may be:

  • false: The default renderer is taken then
  • an object that implements SparqlEngine_ResultRenderer interface
  • a string like "HTML" or "XML". The appropriate renderer is used then.
  • a full class name, e.g. SparqlEngine_ResultRenderer_XML

  • return: Most likely an array or a boolean value, or anything else as determined by $resultform
  • access: public
static mixed convertFromResult (array $arVartable, SparqlEngine $engine, [mixed $resultform = false])
  • array $arVartable: Variable table
  • SparqlEngine $engine: Sparql database engine.
  • mixed $resultform: Which format the results shall be in (false or "xml")
static loadClass (line 84)

Tries to load a given class if it doesn't exist, and returns true if the class can be used.

  • return: Class name if the class is loaded and can be used, false if not.
  • access: protected
static mixed loadClass (string $strClass)
  • string $strClass: Classname

Documentation generated on Fri, 1 Jun 2007 16:51:40 +0200 by phpDocumentor 1.3.2