Semantic MediaWiki and related extensions
Public Member Functions | List of all members
SMW\SPARQLStore\QueryEngine\QueryResultFactory Class Reference

Public Member Functions

 __construct (Store $store)
 
 newEmptyQueryResult (Query $query, $hasFurtherResults=false)
 
 newQueryResult (RepositoryResult $repositoryResult=null, Query $query)
 

Detailed Description

GNU GPL v2+

Since
2.0
Author
Markus Krötzsch
mwjames

Constructor & Destructor Documentation

SMW\SPARQLStore\QueryEngine\QueryResultFactory::__construct ( Store  $store)
Since
2.0
Parameters
Store$store

Member Function Documentation

SMW\SPARQLStore\QueryEngine\QueryResultFactory::newEmptyQueryResult ( Query  $query,
  $hasFurtherResults = false 
)
Since
2.0
Parameters
Query$queryQueryResults hold a reference to original query
boolean$hasFurtherResults
Returns
QueryResult
SMW\SPARQLStore\QueryEngine\QueryResultFactory::newQueryResult ( RepositoryResult  $repositoryResult = null,
Query  $query 
)

This function is used to generate instance query results, and the given result wrapper must have an according format (one result column that contains URIs of wiki pages).

Parameters
RepositoryResult | null$repositoryResult
Query$queryQueryResults hold a reference to original query
Returns
QueryResult

The documentation for this class was generated from the following file: