Semantic MediaWiki and related extensions
|
Public Member Functions | |
__construct () | |
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 (SMWDataItem $value, $requestoptions=null) | |
getWriter () | |
deleteSubject (Title $title) | |
changeTitle (Title $oldTitle, Title $newTitle, $pageId, $redirectId=0) | |
getQueryResult (SMWQuery $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 (SMWRequestOptions $requestOptions=null, $valueCol='') | |
getSQLConditions (SMWRequestOptions $requestOptions=null, $valueCol='', $labelCol='', $addAnd=true) | |
applyRequestOptions (array $data, SMWRequestOptions $requestOptions=null) | |
findTypeTableId ( $typeid) | |
findDiTypeTableId ( $dataItemId) | |
findPropertyTableID (DIProperty $property) | |
getPropertyTables () | |
getObjectIds () | |
getStatisticsTable () | |
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 Member Functions inherited from SMW\QueryEngine | |
getQueryResult (Query $query) | |
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' |
$smwIds | |
Public Attributes inherited from SMW\Store | |
const | OPT_CREATE_UPDATE_JOB = 'opt.create.update.job' |
Protected Member Functions | |
doDataUpdate (SemanticData $semanticData) | |
fetchQueryResult (SMWQuery $query) | |
newServicesContainer () | |
Protected Member Functions inherited from SMW\Store | |
doDataUpdate (SemanticData $data) | |
fetchQueryResult (SMWQuery $query) | |
Protected Attributes | |
$servicesContainer | |
$writer = false | |
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) |
Storage access class for using the standard MediaWiki SQL database for keeping semantic data.
SMWSQLStore3::__construct | ( | ) |
SMWSQLStore3::applyRequestOptions | ( | array | $data, |
SMWRequestOptions | $requestOptions = null |
||
) |
array | $data | array of SMWDataItem objects |
SMWRequestOptions | null | $requestOptions |
SMWSQLStore3::clear | ( | ) |
Resets internal objects
SMWSQLStore3::deleteConceptCache | ( | $concept | ) |
Delete the concept cache for the given concept.
Title | $concept |
SMWSQLStore3::drop | ( | $verbose = true | ) |
SMWSQLStore3::findDiTypeTableId | ( | $dataItemId | ) |
PropertyTableInfoFetcher::findTableIdForDataItemTypeId
integer | $dataItemId |
SMWSQLStore3::findPropertyTableID | ( | DIProperty | $property | ) |
PropertyTableInfoFetcher::findTableIdForProperty
DIProperty | $property |
SMWSQLStore3::findTypeTableId | ( | $typeid | ) |
PropertyTableInfoFetcher::findTableIdForDataTypeTypeId
string | $typeid |
SMWSQLStore3::getAllPropertySubjects | ( | DIProperty | $property, |
$requestoptions = null |
|||
) |
SMWSQLStore3::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 |
SMWSQLStore3::getConnection | ( | $type = 'mw.db' | ) |
string | $type |
SMWSQLStore3::getDataItemHandlerForDIType | ( | $diType | ) |
Get an object of the dataitem handler from the dataitem provided.
integer | $diType |
RuntimeException | if no handler exists for the given type |
SMWSQLStore3::getInfo | ( | $type = null | ) |
string | null | $type |
SMWSQLStore3::getInProperties | ( | SMWDataItem | $value, |
$requestoptions = null |
|||
) |
SMWSQLStore3::getObjectIds | ( | ) |
SMWSQLStore3::getProperties | ( | DIWikiPage | $subject, |
$requestOptions = null |
|||
) |
SMWSQLStore3::getPropertiesSpecial | ( | $requestOptions = null | ) |
RequestOptions | null | $requestOptions |
SMWSQLStore3::getPropertySubjects | ( | DIProperty | $property, |
$dataItem, | |||
$requestOptions = null |
|||
) |
SMWSQLStore3::getPropertyTableIdReferenceFinder | ( | ) |
SMWSQLStore3::getPropertyTableInfoFetcher | ( | ) |
SMWSQLStore3::getPropertyTables | ( | ) |
PropertyTableInfoFetcher::getPropertyTableDefinitions
SMWSQLStore3::getPropertyValues | ( | $subject, | |
DIProperty | $property, | ||
$requestOptions = null |
|||
) |
SMWSQLStore3::getQueryResult | ( | SMWQuery | $query | ) |
SMWQuery | $query |
SMWSQLStore3::getSemanticData | ( | DIWikiPage | $subject, |
$filter = false |
|||
) |
SMWSQLStore3::getSQLConditions | ( | SMWRequestOptions | $requestOptions = null , |
$valueCol = '' , |
|||
$labelCol = '' , |
|||
$addAnd = true |
|||
) |
SMWRequestOptions | 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 |
SMWSQLStore3::getSQLOptions | ( | SMWRequestOptions | $requestOptions = null , |
$valueCol = '' |
|||
) |
SMWRequestOptions | null | $requestOptions | |
string | $valuecol |
SMWSQLStore3::getStatisticsTable | ( | ) |
Returns the statics table
SMWSQLStore3::getUnusedPropertiesSpecial | ( | $requestOptions = null | ) |
RequestOptions | null | $requestOptions |
SMWSQLStore3::getWantedPropertiesSpecial | ( | $requestOptions = null | ) |
RequestOptions | null | $requestOptions |
|
protected |
SMWSQLStore3::refreshConceptCache | ( | Title | $concept | ) |
Refresh the concept cache for the given concept.
Title | $concept |
SMWSQLStore3::service | ( | $service, | |
$args | |||
) |
SMWSQLStore3::setup | ( | $verbose = true | ) |
const SMWSQLStore3::CONCEPT_CACHE_TABLE = 'smw_concept_cache' |
Name of the table to store the concept cache in.
const SMWSQLStore3::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 SMWSQLStore3::FT_SEARCH_TABLE = 'smw_ft_search' |
Name of the table that manages the fulltext index
const SMWSQLStore3::ID_TABLE = 'smw_object_ids' |
Name of the table that manages the Store IDs
const SMWSQLStore3::PROPERTY_STATISTICS_TABLE = 'smw_prop_stats' |
Name of the table to store the concept cache in.
const SMWSQLStore3::QUERY_LINKS_TABLE = 'smw_query_links' |
Name of the table that manages the query dependency links