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

Public Member Functions

 __construct (Store $store, PropertyStatisticsStore $propertyStatisticsStore)
 
 fetchList ()
 
 isFromCache ()
 
 getTimestamp ()
 
 getHash ()
 
 getImproperValueForCount ()
 
 getQueryCount ()
 
 getQuerySize ()
 
 getConceptCount ()
 
 getSubobjectCount ()
 
 getDeclaredPropertiesCount ()
 
 getQueryFormatsCount ()
 
 getPropertyPageCount ()
 
 getPropertyUsageCount ()
 
 getTotalPropertiesCount ()
 
 getUsedPropertiesCount ()
 
 getDeleteCount ()
 

Detailed Description

GNU GPL v2+

Since
2.2
Author
mwjames

Constructor & Destructor Documentation

SMW\SQLStore\Lookup\UsageStatisticsListLookup::__construct ( Store  $store,
PropertyStatisticsStore  $propertyStatisticsStore 
)
Since
2.2
Parameters
Store$store
PropertyStatisticsStore$propertyStatisticsStore

Member Function Documentation

SMW\SQLStore\Lookup\UsageStatisticsListLookup::fetchList ( )

Returns a list with statistical information where keys are matched to:

  • 'PROPUSES': Number of property instances (value assignments) in the connection
  • 'USEDPROPS': Number of properties that are used with at least one value
  • 'DECLPROPS': Number of properties that have been declared (i.e. assigned a type)
  • 'OWNPAGE': Number of properties with their own page
  • 'QUERY': Number of inline queries
  • 'QUERYSIZE': Represents collective query size
  • 'CONCEPTS': Number of declared concepts
  • 'SUBOBJECTS': Number of declared subobjects
  • 'QUERYFORMATS': Array of used formats and its usage count
  • 'TOTALPROPS': Total number of registered properties
  • 'ERRORUSES': Number of annotations with an error
  • 'DELETECOUNT': Number of "marked for deletion"
Since
2.2
Returns
array

Implements SMW\SQLStore\Lookup\ListLookup.

SMW\SQLStore\Lookup\UsageStatisticsListLookup::getConceptCount ( )
Since
1.9
Returns
number
SMW\SQLStore\Lookup\UsageStatisticsListLookup::getDeclaredPropertiesCount ( )
Since
1.9
Returns
number
SMW\SQLStore\Lookup\UsageStatisticsListLookup::getDeleteCount ( )
Since
2.4
Returns
number
SMW\SQLStore\Lookup\UsageStatisticsListLookup::getHash ( )
Since
2.2
Returns
string

Implements SMW\SQLStore\Lookup\ListLookup.

SMW\SQLStore\Lookup\UsageStatisticsListLookup::getImproperValueForCount ( )
Since
2.2
Returns
number
SMW\SQLStore\Lookup\UsageStatisticsListLookup::getPropertyPageCount ( )
Since
1.9
Returns
number
SMW\SQLStore\Lookup\UsageStatisticsListLookup::getPropertyUsageCount ( )

Count property uses by summing up property statistics table

Note
subproperties that are part of container values are counted individually and it does not seem to be important to filter them by adding more conditions.
Since
1.9
Returns
number
SMW\SQLStore\Lookup\UsageStatisticsListLookup::getQueryCount ( )
Since
1.9
Returns
number
SMW\SQLStore\Lookup\UsageStatisticsListLookup::getQueryFormatsCount ( )
Since
1.9
Returns
int[]
SMW\SQLStore\Lookup\UsageStatisticsListLookup::getQuerySize ( )
Since
1.9
Returns
number
SMW\SQLStore\Lookup\UsageStatisticsListLookup::getSubobjectCount ( )
Since
1.9
Returns
number
SMW\SQLStore\Lookup\UsageStatisticsListLookup::getTimestamp ( )
Since
2.2
Returns
integer

Implements SMW\SQLStore\Lookup\ListLookup.

SMW\SQLStore\Lookup\UsageStatisticsListLookup::getTotalPropertiesCount ( )
Since
2.5
Returns
number
SMW\SQLStore\Lookup\UsageStatisticsListLookup::getUsedPropertiesCount ( )
Since
1.9
Returns
number
SMW\SQLStore\Lookup\UsageStatisticsListLookup::isFromCache ( )
Since
2.2
Returns
boolean

Implements SMW\SQLStore\Lookup\ListLookup.


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