Inherits SMWDescription.
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 | |
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.
| SMWConceptDescription::__construct | ( | SMWDIWikiPage $ | concept | ) |
| SMWConceptDescription::getConcept | ( | ) |
| 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>]].
| boolean | $asvalue |
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.
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.
SMWConceptDescription::$m_concept [protected] |
Definition at line 311 of file SMW_Description.php.
1.5.6