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

Public Member Functions

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

Public Attributes

 $orderByVariable = ''
 
 $orderVariables = []
 
 $weakConditions = []
 
 $cogentConditions = []
 
 $namespaces = []
 

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

◆ getCondition()

SMW\SPARQLStore\QueryEngine\Condition\Condition::getCondition ( )
abstract

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

Returns
string

◆ isSafe()

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

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

About | General disclaimer | Privacy policy