Semantic MediaWiki and related extensions
Public Member Functions | Public Attributes | Protected Member Functions | List of all members
SMW\SPARQLStore\QueryEngine\QueryEngine Class Reference
Collaboration diagram for SMW\SPARQLStore\QueryEngine\QueryEngine:
Collaboration graph
[legend]

Public Member Functions

 __construct (RepositoryConnection $connection, CompoundConditionBuilder $compoundConditionBuilder, QueryResultFactory $queryResultFactory, EngineOptions $engineOptions=null)
 
 getQueryResult (Query $query)
 

Public Attributes

const RESULT_VARIABLE = 'result'
 

Protected Member Functions

 getOptions (Query $query, Condition $compoundCondition)
 

Detailed Description

Class mapping SMWQuery objects to SPARQL, and for controlling the execution of these queries to obtain suitable QueryResult objects.

GNU GPL v2+

Since
2.0
Author
Markus Krötzsch
mwjames

Constructor & Destructor Documentation

SMW\SPARQLStore\QueryEngine\QueryEngine::__construct ( RepositoryConnection  $connection,
CompoundConditionBuilder  $compoundConditionBuilder,
QueryResultFactory  $queryResultFactory,
EngineOptions  $engineOptions = null 
)
Since
2.0
Parameters
RepositoryConnection$connection
CompoundConditionBuilder$compoundConditionBuilder
QueryResultFactory$queryResultFactory
EngineOptions | null$EngineOptions

Member Function Documentation

SMW\SPARQLStore\QueryEngine\QueryEngine::getOptions ( Query  $query,
Condition  $compoundCondition 
)
protected

Get a SPARQL option array for the given query.

Parameters
Query$query
Condition$compoundCondition(storing order by variable names)
Returns
array
SMW\SPARQLStore\QueryEngine\QueryEngine::getQueryResult ( Query  $query)
Since
2.0
Parameters
Query$query
Returns
QueryResult|string

Implements SMW\QueryEngine.

Member Data Documentation

const SMW\SPARQLStore\QueryEngine\QueryEngine::RESULT_VARIABLE = 'result'

The name of the SPARQL variable that represents the query result.


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