Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Repo\Specials\SpecialEntityData Class Reference

Special page to act as a data endpoint for the linked data web. More...

+ Inheritance diagram for Wikibase\Repo\Specials\SpecialEntityData:
+ Collaboration diagram for Wikibase\Repo\Specials\SpecialEntityData:

Public Member Functions

 __construct (EntityDataRequestHandler $requestHandler, EntityDataFormatProvider $entityDataFormatProvider)
 
 execute ( $subPage)
 
 showForm ()
 Shows an informative page to the user; Called when there is no entity to output.
 
- Public Member Functions inherited from Wikibase\Repo\Specials\SpecialWikibasePage
 __construct ( $name='', $restriction='', $listed=true)
 
 getDescription ()
 
 setHeaders ()
 

Static Public Member Functions

static factory (HtmlCacheUpdater $htmlCacheUpdater, EntityDataFormatProvider $entityDataFormatProvider, EntityDataSerializationService $serializationService, EntityDataUriManager $entityDataUriManager, EntityIdParser $entityIdParser, EntityRevisionLookup $entityRevisionLookup, LoggerInterface $logger, SettingsArray $repoSettings, Store $store, SubEntityTypesMapper $subEntityTypesMapper)
 

Public Attributes

const SPECIAL_PAGE_NAME = 'EntityData'
 

Private Attributes

 $requestHandler
 
 $entityDataFormatProvider
 

Additional Inherited Members

- Protected Member Functions inherited from Wikibase\Repo\Specials\SpecialWikibasePage
 getGroupName ()
 
 checkBlocked ()
 Checks if user is blocked, and if blocked throws a UserBlocked.
 
 showErrorHTML ( $error)
 
- Protected Attributes inherited from Wikibase\Repo\Specials\SpecialWikibasePage
 $stringNormalizer
 

Detailed Description

Special page to act as a data endpoint for the linked data web.

The web server should generally be configured to make this accessible via a canonical URL/URI, such as http://my.domain.org/entity/Q12345.

Note that this is implemented as a special page and not a per-page action, so there is no need for the web server to map ID prefixes to wiki namespaces.

Author
Daniel Kinzler
Thomas Pellissier Tanon
Anja Jentzsch < anja..nosp@m.jent.nosp@m.zsch@.nosp@m.wiki.nosp@m.media.nosp@m..de >

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\Specials\SpecialEntityData::__construct ( EntityDataRequestHandler $requestHandler,
EntityDataFormatProvider $entityDataFormatProvider )

Member Function Documentation

◆ execute()

Wikibase\Repo\Specials\SpecialEntityData::execute ( $subPage)
See also
SpecialWikibasePage::execute
Parameters
string | null$subPage
Exceptions
HttpError

Reimplemented from Wikibase\Repo\Specials\SpecialWikibasePage.

◆ factory()

static Wikibase\Repo\Specials\SpecialEntityData::factory ( HtmlCacheUpdater $htmlCacheUpdater,
EntityDataFormatProvider $entityDataFormatProvider,
EntityDataSerializationService $serializationService,
EntityDataUriManager $entityDataUriManager,
EntityIdParser $entityIdParser,
EntityRevisionLookup $entityRevisionLookup,
LoggerInterface $logger,
SettingsArray $repoSettings,
Store $store,
SubEntityTypesMapper $subEntityTypesMapper )
static

◆ showForm()

Wikibase\Repo\Specials\SpecialEntityData::showForm ( )

Shows an informative page to the user; Called when there is no entity to output.

Member Data Documentation

◆ $entityDataFormatProvider

Wikibase\Repo\Specials\SpecialEntityData::$entityDataFormatProvider
private

◆ $requestHandler

Wikibase\Repo\Specials\SpecialEntityData::$requestHandler
private

◆ SPECIAL_PAGE_NAME

const Wikibase\Repo\Specials\SpecialEntityData::SPECIAL_PAGE_NAME = 'EntityData'

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