Inherits SMWDescription.
Inherited by SMAreaValueDescription, and SMGeoCoordsValueDescription.
Public Member Functions | |
| __construct (SMWDataItem $dataItem, $property, $comparator=SMW_CMP_EQ) | |
| getDataValue () | |
| getDataItem () | |
| getComparator () | |
| 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. | |
| getSize () | |
| Compute the size of the decription. | |
Protected Attributes | |
| $m_dataItem | |
| $m_comparator | |
| $m_property | |
Technically this usually corresponds to nominal predicates or to unary concrete domain predicates in OWL which are parametrised by one constant from the concrete domain. In RDF, concrete domain predicates that define ranges (like "greater or equal to") are not directly available.
Definition at line 392 of file SMW_Description.php.
| SMWValueDescription::__construct | ( | SMWDataItem $ | dataItem, | |
| $ | property, | |||
| $ | comparator = SMW_CMP_EQ | |||
| ) |
| SMWValueDescription::getDataValue | ( | ) |
Definition at line 405 of file SMW_Description.php.
| SMWValueDescription::getDataItem | ( | ) |
Definition at line 409 of file SMW_Description.php.
Referenced by SMWSparqlStoreQueryEngine::buildValueCondition(), SMAreaValueDescription::getQueryString(), SMGeoCoordsValueDescription::getSQLCondition(), and SMAreaValueDescription::getSQLCondition().
| SMWValueDescription::getComparator | ( | ) |
Definition at line 413 of file SMW_Description.php.
Referenced by SMGeoCoordsValueDescription::getSQLCondition(), and SMAreaValueDescription::getSQLCondition().
| SMWValueDescription::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.
Reimplemented in SMAreaValueDescription, and SMGeoCoordsValueDescription.
Definition at line 417 of file SMW_Description.php.
References SMWQueryLanguage::getStringForComparator(), and SMWDataValueFactory::newDataItemValue().
| SMWValueDescription::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 431 of file SMW_Description.php.
| SMWValueDescription::getSize | ( | ) |
Compute the size of the decription.
Default is 1.
Reimplemented from SMWDescription.
Definition at line 439 of file SMW_Description.php.
Referenced by SMAreaValueDescription::prune().
SMWValueDescription::$m_dataItem [protected] |
Definition at line 394 of file SMW_Description.php.
SMWValueDescription::$m_comparator [protected] |
Definition at line 395 of file SMW_Description.php.
SMWValueDescription::$m_property [protected] |
Definition at line 396 of file SMW_Description.php.
1.5.6