SMWConceptDescription Class Reference
[SMWQuery]

Description of a single class as described by a concept page in the wiki. More...

Inherits SMWDescription.

List of all members.

Public Member Functions

 __construct (SMWDIWikiPage $concept)
 Constructor.
 getConcept ()
 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_concept


Detailed Description

Description of a single class as described by a concept page in the wiki.

Corresponds to classes in (the EL fragment of) OWL DL, and to some extent to tree-shaped queries in SPARQL.

Definition at line 306 of file SMW_Description.php.


Constructor & Destructor Documentation

SMWConceptDescription::__construct ( SMWDIWikiPage concept  ) 

Constructor.

Parameters:
SMWDIWikiPage $concept

Definition at line 318 of file SMW_Description.php.


Member Function Documentation

SMWConceptDescription::getConcept (  ) 

Returns:
SMWDIWikiPage

Definition at line 325 of file SMW_Description.php.

SMWConceptDescription::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 329 of file SMW_Description.php.

References SMWDataValueFactory::newDataItemValue().

SMWConceptDescription::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 339 of file SMW_Description.php.

SMWConceptDescription::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 343 of file SMW_Description.php.


Member Data Documentation

SMWConceptDescription::$m_concept [protected]

Definition at line 311 of file SMW_Description.php.


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

Generated on Fri Feb 10 07:15:45 2012 for Semantic MediaWiki by  doxygen 1.5.6