Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase.default.php File Reference

Variables

global $wgCdnMaxAge
 
 return ['federatedPropertiesEnabled'=> false, 'federatedPropertiesSourceScriptUrl'=> 'https:'taintedReferencesEnabled'=> false, 'ssrServerUrl'=> null, 'ssrServerTimeout'=> 3, 'termboxEnabled'=> true, 'termboxUserSpecificSsrEnabled'=> true, 'reservedIds'=>[], 'readOnlyEntityTypes'=>[], 'statementSections'=>[], 'string-limits'=>['multilang'=>['length'=> 250,], 'VT:monolingualtext'=>['length'=> 400,], 'VT:string'=>['length'=> 400,], 'PT:url'=>['length'=> 500,],], 'urlSchemes'=>[ 'bzr', 'cvs', 'ftp', 'git', 'http', 'https', 'irc', 'mailto', 'ssh', 'svn'], 'badgeItems'=>[], 'redirectBadgeItems'=>[], 'dataCdnMaxAge'=> $wgCdnMaxAge, 'localClientDatabases'=>[], 'entityDataFormats'=>['json', 'php', 'rdfxml', 'n3', 'turtle', 'ntriples', 'jsonld', 'html',], 'entityDataCachePaths'=> function() { return[wfAppendQuery(str_replace(' $1', 'Special:EntityData/{entity_id}.json', $GLOBALS['wgArticlePath']), 'revision={revision_id}'), wfAppendQuery(str_replace(' $1', 'Special:EntityData/{entity_id}.ttl', $GLOBALS['wgArticlePath']), 'flavor=dump &revision={revision_id}'),];}, 'enableEntitySearchUI'=> true, 'dataRightsUrl'=> function() { return $GLOBALS['wgRightsUrl'];}, 'rdfDataRightsUrl'=> 'http:'dataRightsText'=> function() { return $GLOBALS['wgRightsText'];}, 'sparqlEndpoint'=> null, 'transformLegacyFormatOnExport'=> true, 'formatterUrlProperty'=> null, 'canonicalUriProperty'=> null, 'allowEntityImport'=> false, 'sharedCacheKeyPrefix'=> 'wikibase_shared/' . $GLOBALS['wgDBname'], 'sharedCacheKeyGroup'=> $GLOBALS['wgDBname'], 'sharedCacheDuration'=> 60 *60, 'sharedCacheType'=> $GLOBALS['wgMainCacheType'], 'disabledDataTypes'=>[], 'canonicalLanguageCodes'=>['simple'=> 'en-simple', 'crh'=> 'crh-Latn', 'cbk-zam'=> 'cbk-x-zam', 'map-bms'=> 'jv-x-bms', 'nrm'=> 'fr-x-nrm', 'roa-tara'=> 'it-x-tara', 'de-formal'=> 'de-x-formal', 'es-formal'=> 'es-x-formal', 'hu-formal'=> 'hu-x-formal', 'nl-informal'=> 'nl-x-informal',], 'preferredPageImagesProperties'=>[], 'preferredGeoDataProperties'=>[], 'globeUris'=>['http:'http:'http:'http:'http:'http:'http:'http:'http:'http:'http:'http:'http:'http:'http:'http:'http:'http:'http:'http:'http:'http:'http:'http:'http:'http:'http:], 'pagePropertiesRdf'=>['wb-sitelinks'=>[ 'name'=> 'sitelinks', 'type'=> 'integer'], 'wb-claims'=>[ 'name'=> 'statements', 'type'=> 'integer'], 'wb-identifiers'=>[ 'name'=> 'identifiers', 'type'=> 'integer'],], 'geoShapeStorageApiEndpointUrl'=> 'https:'geoShapeStorageBaseUrl'=> 'https:'tabularDataStorageApiEndpointUrl'=> 'https:'tabularDataStorageBaseUrl'=> 'https:'searchIndexProperties'=>[], 'searchIndexTypes'=>[], 'searchIndexPropertiesExclude'=>[], 'searchIndexQualifierPropertiesForQuantity'=>[], 'searchProfiles'=>[ 'default'=> null], 'dumpDBDefaultGroup'=> 'dump', 'useKartographerGlobeCoordinateFormatter'=> false, 'useKartographerMaplinkInWikitext'=> false, 'enableRefTabs'=> false, 'idGenerator'=> 'original', 'idGeneratorSeparateDbConnection'=> false, 'idGeneratorInErrorPingLimiter'=> 0, 'entityTypesWithoutRdfOutput'=>[], 'defaultEntityNamespaces'=> false, 'entitySources'=> function(SettingsArray $settings) { if( $settings->getSetting( 'defaultEntityNamespaces')) { global $wgServer;if(!defined( 'WB_NS_ITEM')) { throw new Exception( 'Constant WB_NS_ITEM is not defined');} if(!defined( 'WB_NS_PROPERTY')) { throw new Exception( 'Constant WB_NS_PROPERTY is not defined');} $entityNamespaces=['item'=> WB_NS_ITEM, 'property'=> WB_NS_PROPERTY,];$hookContainer=MediaWikiServices::getInstance() ->getHookContainer();$hookContainer->run( 'WikibaseRepoEntityNamespaces', [&$entityNamespaces]);return[$settings->getSetting( 'localEntitySourceName')=>['entityNamespaces'=> $entityNamespaces, 'repoDatabase'=> false, 'baseUri'=> $wgServer . '/entity/', 'rdfNodeNamespacePrefix'=> 'wd', 'rdfPredicateNamespacePrefix'=> '', 'interwikiPrefix'=> '',],];} throw new Exception( 'entitySources must be configured manually(or use the example settings)');}, 'localEntitySourceName'=> 'local', 'enablePopulateWithRandomEntitiesAndTermsScript'=> false, 'entitySchemaNamespace'=> 640, 'dataBridgeEnabled'=> false, 'changeVisibilityNotificationClientRCMaxAge'=> $GLOBALS['wgRCMaxAge'], 'changeVisibilityNotificationJobBatchSize'=> 3, 'deleteNotificationClientRCMaxAge'=> $GLOBALS['wgRCMaxAge'], 'termFallbackCacheVersion'=> null, 'wikibasePingback'=> false, 'pingbackHost'=> 'https:'tmpSerializeEmptyListsAsObjects'=> false, 'sandboxEntityIds'=>['mainItem'=> 'Q999999998', 'auxItem'=> 'Q999999999'], 'updateRepoTags'=>[], 'viewUiTags'=>[], 'termboxTags'=>[], 'specialPageTags'=>[], 'tmpNormalizeDataValues'=> false, 'tmpEnableMulLanguageCode'=> false,]
 -file-suppress PhanUnextractableAnnotation
 

Variable Documentation

◆ $wgCdnMaxAge

global $wgCdnMaxAge

◆ return

return[ 'federatedPropertiesEnabled'=> false, 'federatedPropertiesSourceScriptUrl'=> 'https: 'taintedReferencesEnabled'=> false, 'ssrServerUrl'=> null, 'ssrServerTimeout'=> 3, 'termboxEnabled'=> true, 'termboxUserSpecificSsrEnabled'=> true, 'reservedIds'=>[], 'readOnlyEntityTypes'=>[], 'statementSections'=>[], 'string-limits'=>[ 'multilang'=>[ 'length'=> 250,], 'VT:monolingualtext'=>[ 'length'=> 400,], 'VT:string'=>[ 'length'=> 400,], 'PT:url'=>[ 'length'=> 500,],], 'urlSchemes'=>['bzr', 'cvs', 'ftp', 'git', 'http', 'https', 'irc', 'mailto', 'ssh', 'svn'], 'badgeItems'=>[], 'redirectBadgeItems'=>[], 'dataCdnMaxAge'=> $wgCdnMaxAge, 'localClientDatabases'=>[], 'entityDataFormats'=>[ 'json', 'php', 'rdfxml', 'n3', 'turtle', 'ntriples', 'jsonld', 'html',], 'entityDataCachePaths'=> function() { return[ wfAppendQuery( str_replace(' $1', 'Special:EntityData/{entity_id}.json', $GLOBALS[ 'wgArticlePath']), 'revision={revision_id}'), wfAppendQuery( str_replace(' $1', 'Special:EntityData/{entity_id}.ttl', $GLOBALS[ 'wgArticlePath']), 'flavor=dump &revision={revision_id}'),];}, 'enableEntitySearchUI'=> true, 'dataRightsUrl'=> function() { return $GLOBALS[ 'wgRightsUrl'];}, 'rdfDataRightsUrl'=> 'http:'dataRightsText'=> function() { return $GLOBALS[ 'wgRightsText'];}, 'sparqlEndpoint'=> null, 'transformLegacyFormatOnExport'=> true, 'formatterUrlProperty'=> null, 'canonicalUriProperty'=> null, 'allowEntityImport'=> false, 'sharedCacheKeyPrefix'=> 'wikibase_shared/' . $GLOBALS[ 'wgDBname'], 'sharedCacheKeyGroup'=> $GLOBALS[ 'wgDBname'], 'sharedCacheDuration'=> 60 *60, 'sharedCacheType'=> $GLOBALS[ 'wgMainCacheType'], 'disabledDataTypes'=>[], 'canonicalLanguageCodes'=>[ 'simple'=> 'en-simple', 'crh'=> 'crh-Latn', 'cbk-zam'=> 'cbk-x-zam', 'map-bms'=> 'jv-x-bms', 'nrm'=> 'fr-x-nrm', 'roa-tara'=> 'it-x-tara', 'de-formal'=> 'de-x-formal', 'es-formal'=> 'es-x-formal', 'hu-formal'=> 'hu-x-formal', 'nl-informal'=> 'nl-x-informal',], 'preferredPageImagesProperties'=>[], 'preferredGeoDataProperties'=>[], 'globeUris'=>[ 'http: 'http: 'http: 'http: 'http: 'http: 'http: 'http: 'http: 'http: 'http: 'http: 'http: 'http: 'http: 'http: 'http: 'http: 'http: 'http: 'http: 'http: 'http: 'http: 'http: 'http: 'http:], 'pagePropertiesRdf'=>[ 'wb-sitelinks'=>['name'=> 'sitelinks', 'type'=> 'integer'], 'wb-claims'=>['name'=> 'statements', 'type'=> 'integer'], 'wb-identifiers'=>['name'=> 'identifiers', 'type'=> 'integer'],], 'geoShapeStorageApiEndpointUrl'=> 'https: 'geoShapeStorageBaseUrl'=> 'https: 'tabularDataStorageApiEndpointUrl'=> 'https: 'tabularDataStorageBaseUrl'=> 'https: 'searchIndexProperties'=>[], 'searchIndexTypes'=>[], 'searchIndexPropertiesExclude'=>[], 'searchIndexQualifierPropertiesForQuantity'=>[], 'searchProfiles'=>['default'=> null], 'dumpDBDefaultGroup'=> 'dump', 'useKartographerGlobeCoordinateFormatter'=> false, 'useKartographerMaplinkInWikitext'=> false, 'enableRefTabs'=> false, 'idGenerator'=> 'original', 'idGeneratorSeparateDbConnection'=> false, 'idGeneratorInErrorPingLimiter'=> 0, 'entityTypesWithoutRdfOutput'=>[], 'defaultEntityNamespaces'=> false, 'entitySources'=> function(SettingsArray $settings) { if($settings->getSetting('defaultEntityNamespaces')) { global $wgServer; if(!defined('WB_NS_ITEM')) { throw new Exception('Constant WB_NS_ITEM is not defined'); } if(!defined('WB_NS_PROPERTY')) { throw new Exception('Constant WB_NS_PROPERTY is not defined'); } $entityNamespaces=[ 'item'=> WB_NS_ITEM, 'property'=> WB_NS_PROPERTY,]; $hookContainer=MediaWikiServices::getInstance() ->getHookContainer(); $hookContainer->run('WikibaseRepoEntityNamespaces',[& $entityNamespaces]); return[ $settings->getSetting('localEntitySourceName')=>[ 'entityNamespaces'=> $entityNamespaces, 'repoDatabase'=> false, 'baseUri'=> $wgServer . '/entity/', 'rdfNodeNamespacePrefix'=> 'wd', 'rdfPredicateNamespacePrefix'=> '', 'interwikiPrefix'=> '',],]; } throw new Exception('entitySources must be configured manually(or use the example settings)');}, 'localEntitySourceName'=> 'local', 'enablePopulateWithRandomEntitiesAndTermsScript'=> false, 'entitySchemaNamespace'=> 640, 'dataBridgeEnabled'=> false, 'changeVisibilityNotificationClientRCMaxAge'=> $GLOBALS[ 'wgRCMaxAge'], 'changeVisibilityNotificationJobBatchSize'=> 3, 'deleteNotificationClientRCMaxAge'=> $GLOBALS[ 'wgRCMaxAge'], 'termFallbackCacheVersion'=> null, 'wikibasePingback'=> false, 'pingbackHost'=> 'https: 'tmpSerializeEmptyListsAsObjects'=> false, 'sandboxEntityIds'=>[ 'mainItem'=> 'Q999999998', 'auxItem'=> 'Q999999999'], 'updateRepoTags'=>[], 'viewUiTags'=>[], 'termboxTags'=>[], 'specialPageTags'=>[], 'tmpNormalizeDataValues'=> false, 'tmpEnableMulLanguageCode'=> false,]

-file-suppress PhanUnextractableAnnotation