Semantic MediaWiki and related extensions
Public Member Functions | List of all members
SMW\Query\Language\ValueDescription Class Reference
Collaboration diagram for SMW\Query\Language\ValueDescription:
Collaboration graph
[legend]

Public Member Functions

 __construct (DataItem $dataItem, DIProperty $property=null, $comparator=SMW_CMP_EQ)
 
 getFingerprint ()
 
 getDataValue ()
 
 getDataItem ()
 
 getProperty ()
 
 getComparator ()
 
 getQueryString ($asValue=false)
 
 isSingleton ()
 
 getSize ()
 
- Public Member Functions inherited from SMW\Query\Language\Description
 getPrintRequests ()
 
 setPrintRequests (array $printRequests)
 
 addPrintRequest (PrintRequest $printRequest)
 
 prependPrintRequest (PrintRequest $printRequest)
 
 getFingerprint ()
 
 getMembership ()
 
 setMembership ($membership)
 
 getQueryString ($asValue=false)
 
 isSingleton ()
 
 getSize ()
 
 getDepth ()
 
 getQueryFeatures ()
 
 prune (&$maxsize, &$maxDepth, &$log)
 

Additional Inherited Members

- Protected Attributes inherited from SMW\Query\Language\Description
 $m_printreqs = array()
 
 $fingerprint = null
 

Detailed Description

Description of one data value, or of a range of data values.

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.

GNU GPL v2+

Since
1.6
Author
Markus Krötzsch

Constructor & Destructor Documentation

SMW\Query\Language\ValueDescription::__construct ( DataItem  $dataItem,
DIProperty  $property = null,
  $comparator = SMW_CMP_EQ 
)
Parameters
DataItem$dataItem
null | DIProperty$property
integer$comparator

Member Function Documentation

SMW\Query\Language\ValueDescription::getComparator ( )
Returns
integer
SMW\Query\Language\ValueDescription::getDataItem ( )
Returns
DataItem
SMW\Query\Language\ValueDescription::getDataValue ( )
Deprecated:
Use getDataItem() and ::getInstance()->newDataValueByItem() if needed. Vanishes before SMW 1.7
Returns
DataItem
SMW\Query\Language\ValueDescription::getFingerprint ( )
See also
Description::getFingerprint
Since
2.5
Returns
string
SMW\Query\Language\ValueDescription::getProperty ( )
Since
2.1
Returns
DIProperty|null
SMW\Query\Language\ValueDescription::getQueryString (   $asValue = false)
Parameters
bool$asValue
Returns
string
SMW\Query\Language\ValueDescription::getSize ( )
SMW\Query\Language\ValueDescription::isSingleton ( )

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