Semantic MediaWiki and related extensions
|
Public Member Functions | |
__construct () | |
setFactory (SQLStoreFactory $factory) | |
getDataItemHandlerForDIType ( $diType) | |
getSemanticData (DIWikiPage $subject, $filter=false) | |
getPropertyValues ( $subject, DIProperty $property, $requestOptions=null) | |
getProperties (DIWikiPage $subject, $requestOptions=null) | |
getPropertySubjects (DIProperty $property, $dataItem, $requestOptions=null) | |
getAllPropertySubjects (DIProperty $property, $requestoptions=null) | |
getInProperties (DataItem $value, $requestoptions=null) | |
deleteSubject (Title $title) | |
changeTitle (Title $oldTitle, Title $newTitle, $pageId, $redirectId=0) | |
getQueryResult (Query $query) | |
getPropertiesSpecial ( $requestOptions=null) | |
getUnusedPropertiesSpecial ( $requestOptions=null) | |
getWantedPropertiesSpecial ( $requestOptions=null) | |
getStatistics () | |
service ( $service,... $args) | |
setup ( $verbose=true) | |
drop ( $verbose=true) | |
refreshData (&$id, $count, $namespaces=false, $usejobs=true) | |
refreshConceptCache (Title $concept) | |
deleteConceptCache ( $concept) | |
getConceptCacheStatus ( $concept) | |
getSQLOptions (RequestOptions $requestOptions=null, $valueCol='') | |
getSQLConditions (RequestOptions $requestOptions=null, $valueCol='', $labelCol='', $addAnd=true) | |
applyRequestOptions (array $data, RequestOptions $requestOptions=null) | |
findTypeTableId ( $typeid) | |
findDiTypeTableId ( $dataItemId) | |
findPropertyTableID (DIProperty $property) | |
getPropertyTables () | |
getObjectIds () | |
clear () | |
getInfo ( $type=null) | |
getConnection ( $type='mw.db') | |
getPropertyTableInfoFetcher () | |
getPropertyTableIdReferenceFinder () | |
Public Member Functions inherited from SMW\Store | |
getSemanticData (DIWikiPage $subject, $filter=false) | |
getPropertyValues ( $subject, DIProperty $property, $requestoptions=null) | |
getPropertySubjects (DIProperty $property, $value, $requestoptions=null) | |
getAllPropertySubjects (DIProperty $property, $requestoptions=null) | |
getProperties (DIWikiPage $subject, $requestOptions=null) | |
getInProperties (DataItem $object, $requestoptions=null) | |
getWikiPageSortKey (DIWikiPage $dataItem) | |
getRedirectTarget (DataItem $dataItem) | |
deleteSubject (Title $subject) | |
updateData (SemanticData $semanticData) | |
clearData (DIWikiPage $di) | |
changeTitle (Title $oldtitle, Title $newtitle, $pageid, $redirid=0) | |
getQueryResult (SMWQuery $query) | |
getPropertiesSpecial ( $requestoptions=null) | |
getUnusedPropertiesSpecial ( $requestoptions=null) | |
getWantedPropertiesSpecial ( $requestoptions=null) | |
getStatistics () | |
service ( $service,... $args) | |
setup ( $verbose=true) | |
drop ( $verbose=true) | |
refreshData (&$index, $count, $namespaces=false, $usejobs=true) | |
getOptions () | |
setOption ( $key, $value) | |
getOption ( $key, $default=null) | |
clear () | |
getInfo ( $type=null) | |
setConnectionManager (ConnectionManager $connectionManager) | |
getConnection ( $type) | |
Public Attributes | |
const | FIXED_PROPERTY_ID_UPPERBOUND = 500 |
const | CONCEPT_CACHE_TABLE = 'smw_concept_cache' |
const | CONCEPT_TABLE = 'smw_fpt_conc' |
const | PROPERTY_STATISTICS_TABLE = 'smw_prop_stats' |
const | QUERY_LINKS_TABLE = 'smw_query_links' |
const | FT_SEARCH_TABLE = 'smw_ft_search' |
const | ID_TABLE = 'smw_object_ids' |
const | ID_AUXILIARY_TABLE = 'smw_object_aux' |
const | UPDATE_TRANSACTION = 'sql/transaction/update' |
$smwIds | |
Public Attributes inherited from SMW\Store | |
const | OPT_CREATE_UPDATE_JOB = 'opt.create.update.job' |
Protected Member Functions | |
doDataUpdate (SemanticData $semanticData) | |
fetchQueryResult (Query $query) | |
newServicesContainer () | |
Protected Member Functions inherited from SMW\Store | |
doDataUpdate (SemanticData $data) | |
fetchQueryResult (SMWQuery $query) | |
Protected Attributes | |
$servicesContainer | |
Protected Attributes inherited from SMW\Store | |
$connectionManager = null | |
$options = null | |
Additional Inherited Members | |
Static Public Member Functions inherited from SMW\Store | |
static | setupStore ( $verbose=true, $options=null) |
SQL-based implementation of SMW's storage abstraction layer.
Storage access class for using the standard MediaWiki SQL database for keeping semantic data.
GNU GPL v2+
SMW\SQLStore\SQLStore::__construct | ( | ) |
SMW\SQLStore\SQLStore::applyRequestOptions | ( | array | $data, |
RequestOptions | $requestOptions = null |
||
) |
array | $data | array of DataItem objects |
RequestOptions | null | $requestOptions |
SMW\SQLStore\SQLStore::clear | ( | ) |
Resets internal objects
SMW\SQLStore\SQLStore::deleteConceptCache | ( | $concept | ) |
Delete the concept cache for the given concept.
Title | $concept |
SMW\SQLStore\SQLStore::drop | ( | $verbose = true | ) |
SMW\SQLStore\SQLStore::findDiTypeTableId | ( | $dataItemId | ) |
SMW\SQLStore\SQLStore::findPropertyTableID | ( | DIProperty | $property | ) |
SMW\SQLStore\SQLStore::findTypeTableId | ( | $typeid | ) |
SMW\SQLStore\SQLStore::getAllPropertySubjects | ( | DIProperty | $property, |
$requestoptions = null |
|||
) |
SMW\SQLStore\SQLStore::getConceptCacheStatus | ( | $concept | ) |
Return status of the concept cache for the given concept as an array with key 'status' ('empty': not cached, 'full': cached, 'no': not cacheable). If status is not 'no', the array also contains keys 'size' (query size), 'depth' (query depth), 'features' (query features). If status is 'full', the array also contains keys 'date' (timestamp of cache), 'count' (number of results in cache).
Title | SMWWikiPageValue | $concept |
SMW\SQLStore\SQLStore::getConnection | ( | $type = 'mw.db' | ) |
string | $type |
SMW\SQLStore\SQLStore::getDataItemHandlerForDIType | ( | $diType | ) |
Get an object of the dataitem handler from the dataitem provided.
integer | $diType |
RuntimeException | if no handler exists for the given type |
SMW\SQLStore\SQLStore::getInfo | ( | $type = null | ) |
string | null | $type |
SMW\SQLStore\SQLStore::getInProperties | ( | DataItem | $value, |
$requestoptions = null |
|||
) |
SMW\SQLStore\SQLStore::getObjectIds | ( | ) |
SMW\SQLStore\SQLStore::getProperties | ( | DIWikiPage | $subject, |
$requestOptions = null |
|||
) |
SMW\SQLStore\SQLStore::getPropertiesSpecial | ( | $requestOptions = null | ) |
RequestOptions | null | $requestOptions |
SMW\SQLStore\SQLStore::getPropertySubjects | ( | DIProperty | $property, |
$dataItem, | |||
$requestOptions = null |
|||
) |
SMW\SQLStore\SQLStore::getPropertyTableIdReferenceFinder | ( | ) |
SMW\SQLStore\SQLStore::getPropertyTableInfoFetcher | ( | ) |
SMW\SQLStore\SQLStore::getPropertyTables | ( | ) |
PropertyTableInfoFetcher::getPropertyTableDefinitions
SMW\SQLStore\SQLStore::getPropertyValues | ( | $subject, | |
DIProperty | $property, | ||
$requestOptions = null |
|||
) |
SMW\SQLStore\SQLStore::getQueryResult | ( | Query | $query | ) |
Query | $query |
Implements SMW\QueryEngine.
SMW\SQLStore\SQLStore::getSemanticData | ( | DIWikiPage | $subject, |
$filter = false |
|||
) |
SMW\SQLStore\SQLStore::getSQLConditions | ( | RequestOptions | $requestOptions = null , |
$valueCol = '' , |
|||
$labelCol = '' , |
|||
$addAnd = true |
|||
) |
RequestOptions | null | $requestOptions | |
string | $valueCol | name of SQL column to which conditions apply |
string | $labelCol | name of SQL column to which string conditions apply, if any |
boolean | $addAnd | indicate whether the string should begin with " AND " if non-empty |
SMW\SQLStore\SQLStore::getSQLOptions | ( | RequestOptions | $requestOptions = null , |
$valueCol = '' |
|||
) |
SMW\SQLStore\SQLStore::getUnusedPropertiesSpecial | ( | $requestOptions = null | ) |
RequestOptions | null | $requestOptions |
SMW\SQLStore\SQLStore::getWantedPropertiesSpecial | ( | $requestOptions = null | ) |
RequestOptions | null | $requestOptions |
|
protected |
SMW\SQLStore\SQLStore::refreshConceptCache | ( | Title | $concept | ) |
Refresh the concept cache for the given concept.
Title | $concept |
SMW\SQLStore\SQLStore::service | ( | $service, | |
$args | |||
) |
SMW\SQLStore\SQLStore::setFactory | ( | SQLStoreFactory | $factory | ) |
SQLStoreFactory | $factory |
SMW\SQLStore\SQLStore::setup | ( | $verbose = true | ) |
const SMW\SQLStore\SQLStore::CONCEPT_CACHE_TABLE = 'smw_concept_cache' |
Name of the table to store the concept cache in.
const SMW\SQLStore\SQLStore::FIXED_PROPERTY_ID_UPPERBOUND = 500 |
Specifies the border limit (upper bound) for pre-defined properties used in the ID_TABLE
When changing the upper bound, please make sure to copy the current upper bound as legacy to the TableIntegrityExaminer::checkOnPostCreation
const SMW\SQLStore\SQLStore::FT_SEARCH_TABLE = 'smw_ft_search' |
Name of the table that manages the fulltext index
const SMW\SQLStore\SQLStore::ID_AUXILIARY_TABLE = 'smw_object_aux' |
Name of the ID auxiliary table
const SMW\SQLStore\SQLStore::ID_TABLE = 'smw_object_ids' |
Name of the table that manages the Store IDs
const SMW\SQLStore\SQLStore::PROPERTY_STATISTICS_TABLE = 'smw_prop_stats' |
Name of the table to store the concept cache in.
const SMW\SQLStore\SQLStore::QUERY_LINKS_TABLE = 'smw_query_links' |
Name of the table that manages the query dependency links
const SMW\SQLStore\SQLStore::UPDATE_TRANSACTION = 'sql/transaction/update' |
Identifies the UPDATE transaction