SMWSparqlFilterCondition Class Reference
[SMWStore]

A SPARQL condition that consists in a FILTER term only (possibly with some weak conditions to introduce the variables that the filter acts on). More...

Inherits SMWSparqlCondition.

List of all members.

Public Member Functions

 __construct ($filter, $namespaces)
 getCondition ()
 Get the SPARQL condition string that this object represents.
 isSafe ()
 Tell whether the condition string returned by getCondition() is safe in the sense that it can be used alone in a SPARQL query.

Public Attributes

 $filter


Detailed Description

A SPARQL condition that consists in a FILTER term only (possibly with some weak conditions to introduce the variables that the filter acts on).

Definition at line 206 of file SMW_SparqlStoreQueryEngine.php.


Constructor & Destructor Documentation

SMWSparqlFilterCondition::__construct ( filter,
namespaces 
)

Definition at line 215 of file SMW_SparqlStoreQueryEngine.php.

References $filter, and SMWSparqlCondition::$namespaces.


Member Function Documentation

SMWSparqlFilterCondition::getCondition (  ) 

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

Reimplemented from SMWSparqlCondition.

Definition at line 220 of file SMW_SparqlStoreQueryEngine.php.

SMWSparqlFilterCondition::isSafe (  ) 

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

Reimplemented from SMWSparqlCondition.

Definition at line 224 of file SMW_SparqlStoreQueryEngine.php.


Member Data Documentation

SMWSparqlFilterCondition::$filter

Definition at line 213 of file SMW_SparqlStoreQueryEngine.php.

Referenced by __construct().


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

Generated on Sun Mar 18 07:15:43 2012 for Semantic MediaWiki by  doxygen 1.5.6