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

Public Member Functions

 getCondition ()
 
 isSafe ()
 
 addNamespaces (array $namespaces)
 
 getWeakConditionString ()
 
 getCogentConditionString ()
 

Public Attributes

 $orderByVariable = ''
 
 $orderVariables = array()
 
 $weakConditions = array()
 
 $cogentConditions = array()
 
 $namespaces = array()
 

Detailed Description

Abstract class that represents a SPARQL (sub-)pattern and relevant pieces of associated information for using it in query building.

GNU GPL v2+

Since
1.6
Author
Markus Krötzsch

Member Function Documentation

SMW\SPARQLStore\QueryEngine\Condition\Condition::addNamespaces ( array  $namespaces)
SMW\SPARQLStore\QueryEngine\Condition\Condition::getCogentConditionString ( )
SMW\SPARQLStore\QueryEngine\Condition\Condition::getCondition ( )
abstract

Get the SPARQL condition string that this object represents. This does not inlcude the weak conditions, or additional formulations to match singletons (see SMWSparqlSingletonCondition).

Returns
string
SMW\SPARQLStore\QueryEngine\Condition\Condition::getWeakConditionString ( )
SMW\SPARQLStore\QueryEngine\Condition\Condition::isSafe ( )
abstract

Tell whether the condition string returned by getCondition() is safe in the sense that it can be used alone in a SPARQL query. This requires that all filtered variables occur in some graph pattern, and that the condition is not empty.

Returns
boolean

Member Data Documentation

SMW\SPARQLStore\QueryEngine\Condition\Condition::$cogentConditions = array()
SMW\SPARQLStore\QueryEngine\Condition\Condition::$namespaces = array()
SMW\SPARQLStore\QueryEngine\Condition\Condition::$orderByVariable = ''
SMW\SPARQLStore\QueryEngine\Condition\Condition::$orderVariables = array()
SMW\SPARQLStore\QueryEngine\Condition\Condition::$weakConditions = array()

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