SMWNamespaceDescription Class Reference
[SMWQuery]

Description of all pages within a given wiki namespace, given by a numerical constant. More...

Inherits SMWDescription.

List of all members.

Public Member Functions

 __construct ($namespace)
 Constructor.
 getNamespace ()
 getQueryString ($asvalue=false)
 Return a string expressing this query.
 isSingleton ()
 Return true if the description is required to encompass at most a single result, independently of the knowledge base.
 getQueryFeatures ()
 Report on query features used in description.

Protected Attributes

 $m_namespace


Detailed Description

Description of all pages within a given wiki namespace, given by a numerical constant.

Corresponds to a class restriction with a special class that characterises the given namespace (or at least that is how one could map this to OWL etc.).

Definition at line 340 of file SMW_Description.php.


Constructor & Destructor Documentation

SMWNamespaceDescription::__construct ( namespace  ) 

Constructor.

Parameters:
integer $namespace The namespace index

Definition at line 352 of file SMW_Description.php.


Member Function Documentation

SMWNamespaceDescription::getNamespace (  ) 

Returns:
integer

Definition at line 359 of file SMW_Description.php.

SMWNamespaceDescription::getQueryString ( asvalue = false  ) 

Return a string expressing this query.

Some descriptions have different syntax in property value positions. The parameter $asvalue specifies whether the serialisation should take that into account.

Example: The SMWValueDescription [[Paris]] returns the single result "Paris" but can also be used as value in [[has location::Paris]] which is preferred over the canonical [[has location::<q>[[Paris]]</q>]].

Parameters:
boolean $asvalue
Returns:
string

Reimplemented from SMWDescription.

Definition at line 363 of file SMW_Description.php.

SMWNamespaceDescription::isSingleton (  ) 

Return true if the description is required to encompass at most a single result, independently of the knowledge base.

Returns:
boolean

Reimplemented from SMWDescription.

Definition at line 372 of file SMW_Description.php.

SMWNamespaceDescription::getQueryFeatures (  ) 

Report on query features used in description.

Return values are (sums of) query feature constants such as SMW_PROPERTY_QUERY.

Reimplemented from SMWDescription.

Definition at line 376 of file SMW_Description.php.


Member Data Documentation

SMWNamespaceDescription::$m_namespace [protected]

Definition at line 345 of file SMW_Description.php.


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