Semantic MediaWiki and related extensions
Public Member Functions | List of all members
SMW\SQLStore\Lookup\UsageStatisticsListLookup Class Reference
Inheritance diagram for SMW\SQLStore\Lookup\UsageStatisticsListLookup:
Inheritance graph
[legend]
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 ()
 
 getTotalEntitiesCount ()
 
 getUsedPropertiesCount ()
 
 getDeleteCount ()
 

Detailed Description

GNU GPL v2+

Since
2.2
Author
mwjames

Constructor & Destructor Documentation

◆ __construct()

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

Member Function Documentation

◆ fetchList()

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.

◆ getConceptCount()

SMW\SQLStore\Lookup\UsageStatisticsListLookup::getConceptCount ( )
Since
1.9
Returns
number

◆ getDeclaredPropertiesCount()

SMW\SQLStore\Lookup\UsageStatisticsListLookup::getDeclaredPropertiesCount ( )
Since
1.9
Returns
number

◆ getDeleteCount()

SMW\SQLStore\Lookup\UsageStatisticsListLookup::getDeleteCount ( )
Since
2.4
Returns
number

◆ getHash()

SMW\SQLStore\Lookup\UsageStatisticsListLookup::getHash ( )
Since
2.2
Returns
string

Implements SMW\SQLStore\Lookup\ListLookup.

◆ getImproperValueForCount()

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

◆ getPropertyPageCount()

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

◆ getPropertyUsageCount()

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

◆ getQueryCount()

SMW\SQLStore\Lookup\UsageStatisticsListLookup::getQueryCount ( )
Since
1.9
Returns
number

◆ getQueryFormatsCount()

SMW\SQLStore\Lookup\UsageStatisticsListLookup::getQueryFormatsCount ( )
Since
1.9
Returns
int[]

◆ getQuerySize()

SMW\SQLStore\Lookup\UsageStatisticsListLookup::getQuerySize ( )
Since
1.9
Returns
number

◆ getSubobjectCount()

SMW\SQLStore\Lookup\UsageStatisticsListLookup::getSubobjectCount ( )
Since
1.9
Returns
number

◆ getTimestamp()

SMW\SQLStore\Lookup\UsageStatisticsListLookup::getTimestamp ( )
Since
2.2
Returns
integer

Implements SMW\SQLStore\Lookup\ListLookup.

◆ getTotalEntitiesCount()

SMW\SQLStore\Lookup\UsageStatisticsListLookup::getTotalEntitiesCount ( )
Since
3.1
Returns
number

◆ getTotalPropertiesCount()

SMW\SQLStore\Lookup\UsageStatisticsListLookup::getTotalPropertiesCount ( )
Since
2.5
Returns
number

◆ getUsedPropertiesCount()

SMW\SQLStore\Lookup\UsageStatisticsListLookup::getUsedPropertiesCount ( )
Since
1.9
Returns
number

◆ isFromCache()

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:

About | General disclaimer | Privacy policy