SMWSparqlSingletonCondition Class Reference
[SMWStore]

A SPARQL condition that can match only a single element, or nothing at all. More...

Inherits SMWSparqlCondition.

List of all members.

Public Member Functions

 __construct (SMWExpElement $matchElement, $condition= '', $isSafe=false, $namespaces=array())
 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
 $matchElement
 $isSafe


Detailed Description

A SPARQL condition that can match only a single element, or nothing at all.

Definition at line 160 of file SMW_SparqlStoreQueryEngine.php.


Constructor & Destructor Documentation

SMWSparqlSingletonCondition::__construct ( SMWExpElement matchElement,
condition = '',
isSafe = false,
namespaces = array() 
)


Member Function Documentation

SMWSparqlSingletonCondition::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 190 of file SMW_SparqlStoreQueryEngine.php.

SMWSparqlSingletonCondition::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 194 of file SMW_SparqlStoreQueryEngine.php.

Referenced by __construct().


Member Data Documentation

SMWSparqlSingletonCondition::$condition

Definition at line 168 of file SMW_SparqlStoreQueryEngine.php.

Referenced by __construct().

SMWSparqlSingletonCondition::$matchElement

Definition at line 174 of file SMW_SparqlStoreQueryEngine.php.

SMWSparqlSingletonCondition::$isSafe

Definition at line 181 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