Inherits SMWDescription.
Public Member Functions | |
| __construct (SMWDIProperty $property, SMWDescription $description) | |
| getProperty () | |
| getDescription () | |
| 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. | |
| getDepth () | |
| Compute the depth of the decription. | |
| getQueryFeatures () | |
| Report on query features used in description. | |
| prune (&$maxsize, &$maxdepth, &$log) | |
| Recursively restrict query to a maximal size and depth as given. | |
Protected Attributes | |
| $m_description | |
| $m_property | |
Corresponds to existential quatification ("SomeValuesFrom" restriction) on properties in OWL. In conjunctive queries (OWL) and SPARQL (RDF), it is represented by using variables in the object part of such properties.
Definition at line 745 of file SMW_Description.php.
| SMWSomeProperty::__construct | ( | SMWDIProperty $ | property, | |
| SMWDescription $ | description | |||
| ) |
Definition at line 750 of file SMW_Description.php.
| SMWSomeProperty::getProperty | ( | ) |
Definition at line 755 of file SMW_Description.php.
Referenced by SMWSparqlStoreQueryEngine::buildPropertyCondition().
| SMWSomeProperty::getDescription | ( | ) |
| SMWSomeProperty::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 763 of file SMW_Description.php.
Referenced by prune().
| SMWSomeProperty::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 783 of file SMW_Description.php.
| SMWSomeProperty::getSize | ( | ) |
Compute the size of the decription.
Default is 1.
Reimplemented from SMWDescription.
Definition at line 787 of file SMW_Description.php.
References getDescription().
| SMWSomeProperty::getDepth | ( | ) |
Compute the depth of the decription.
Default is 0.
Reimplemented from SMWDescription.
Definition at line 791 of file SMW_Description.php.
References getDescription().
| SMWSomeProperty::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 795 of file SMW_Description.php.
| SMWSomeProperty::prune | ( | &$ | maxsize, | |
| &$ | maxdepth, | |||
| &$ | log | |||
| ) |
Recursively restrict query to a maximal size and depth as given.
Returns a possibly changed description that should be used as a replacement. Reduce values of parameters to account for the returned descriptions size. Default implementation for non-nested descriptions of size 1. The parameter $log contains a list of all pruned conditions, updated when some description was reduced.
Reimplemented from SMWDescription.
Definition at line 799 of file SMW_Description.php.
References SMWDescription::getPrintRequests(), and getQueryString().
SMWSomeProperty::$m_description [protected] |
Definition at line 747 of file SMW_Description.php.
SMWSomeProperty::$m_property [protected] |
Definition at line 748 of file SMW_Description.php.
1.5.6