Inherits SMWDescription.
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 | |
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.
| SMWNamespaceDescription::__construct | ( | $ | namespace | ) |
Constructor.
| integer | $namespace The namespace index |
Definition at line 352 of file SMW_Description.php.
| SMWNamespaceDescription::getNamespace | ( | ) |
| 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>]].
| boolean | $asvalue |
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.
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.
SMWNamespaceDescription::$m_namespace [protected] |
Definition at line 345 of file SMW_Description.php.
1.5.6