source: Dev/trunk/rdfapi/sparql/SparqlEngine/ResultRenderer.php @ 12

Last change on this file since 12 was 12, checked in by basvannuland, 14 years ago

Added RAP RDF API
Added RDF reader writer for save and load survey

File size: 924 bytes
Line 
1<?php
2
3/**
4*   Result renderer interface that any result renderer needs to implement.
5*   A result renderer converts results into a
6*   - for the user - usable result format, e.g. php arrays, xml, json and
7*   so on.
8*
9*   @author Christian Weiske <cweiske@cweiske.de>
10*   @license http://www.gnu.org/licenses/lgpl.html LGPL
11*
12*   @package sparql
13*/
14interface SparqlEngine_ResultRenderer
15{
16    /**
17    *   Converts the database results into the desired output format
18    *   and returns the result.
19    *
20    *   @param array $arVartable    Variable table
21    *   @param Query $query         SPARQL query object
22    *   @param SparqlEngine $engine Sparql Engine to query the database
23    *   @return mixed   The result as rendered by the result renderers.
24    */
25    public function convertFromResult($arVartable, Query $query, SparqlEngine $engine);
26
27}//interface SparqlEngine_ResultRenderer
28
29?>
Note: See TracBrowser for help on using the repository browser.