SMWSparqlWhereCondition Class Reference
[SMWStore]

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

Inherits SMWSparqlCondition.

List of all members.

Public Member Functions

 __construct ($condition, $isSafe, $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

 $condition
 $isSafe


Detailed Description

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

Definition at line 124 of file SMW_SparqlStoreQueryEngine.php.


Constructor & Destructor Documentation

SMWSparqlWhereCondition::__construct ( condition,
isSafe,
namespaces 
)


Member Function Documentation

SMWSparqlWhereCondition::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 146 of file SMW_SparqlStoreQueryEngine.php.

SMWSparqlWhereCondition::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 150 of file SMW_SparqlStoreQueryEngine.php.

Referenced by __construct().


Member Data Documentation

SMWSparqlWhereCondition::$condition

Definition at line 131 of file SMW_SparqlStoreQueryEngine.php.

Referenced by __construct().

SMWSparqlWhereCondition::$isSafe

Definition at line 138 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:44 2012 for Semantic MediaWiki by  doxygen 1.5.6