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

Public Member Functions

 __construct (array $descriptions=array())
 
 getFingerprint ()
 
 getDescriptions ()
 
 addDescription (Description $description)
 
 getQueryString ($asValue=false)
 
 isSingleton ()
 
 getSize ()
 
 getDepth ()
 
 getQueryFeatures ()
 
 prune (&$maxsize, &$maxdepth, &$log)
 
- 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 a collection of many descriptions, at least one of which must be satisfied (OR, disjunction).

Corresponds to disjunction in OWL and SPARQL. Not available in RDFS.

GNU GPL v2+

Since
1.6
Author
Markus Krötzsch

Constructor & Destructor Documentation

SMW\Query\Language\Disjunction::__construct ( array  $descriptions = array())

Member Function Documentation

SMW\Query\Language\Disjunction::addDescription ( Description  $description)

TODO: use subdisjunct. for multiple SMWSomeProperty descs with same property

TODO: This may not be a good solution, since it does modify $description and since it does not react to future cahges

SMW\Query\Language\Disjunction::getDepth ( )
SMW\Query\Language\Disjunction::getDescriptions ( )
SMW\Query\Language\Disjunction::getFingerprint ( )
See also
Description::getFingerprint
Since
2.5
Returns
string
SMW\Query\Language\Disjunction::getQueryFeatures ( )
SMW\Query\Language\Disjunction::getQueryString (   $asValue = false)
SMW\Query\Language\Disjunction::getSize ( )
SMW\Query\Language\Disjunction::isSingleton ( )

NOTE: this neglects the unimportant case where several disjuncts describe the same object.

SMW\Query\Language\Disjunction::prune ( $maxsize,
$maxdepth,
$log 
)

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