Wikibase
MediaWiki Wikibase extension
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. More...
 
- Public Member Functions inherited from Wikibase\Repo\Specials\SpecialWikibasePage
 __construct ( $name='', $restriction='', $listed=true)
 
 getDescription ()
 
 setHeaders ()
 

Static Public Member Functions

static factory (HtmlCacheUpdater $htmlCacheUpdater, SerializerFactory $compactBaseDataModelSerializerFactory, Serializer $compactEntitySerializer, EntityContentFactory $entityContentFactory, EntityIdParser $entityIdParser, EntityRdfBuilderFactory $entityRdfBuilderFactory, EntityTitleStoreLookup $entityTitleLookup, LoggerInterface $logger, RdfVocabulary $rdfVocabulary, SettingsArray $repoSettings, Store $store, ValueSnakRdfBuilderFactory $valueSnakRdfBuilderFactory)
 

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. More...
 
 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,
SerializerFactory  $compactBaseDataModelSerializerFactory,
Serializer  $compactEntitySerializer,
EntityContentFactory  $entityContentFactory,
EntityIdParser  $entityIdParser,
EntityRdfBuilderFactory  $entityRdfBuilderFactory,
EntityTitleStoreLookup  $entityTitleLookup,
LoggerInterface  $logger,
RdfVocabulary  $rdfVocabulary,
SettingsArray  $repoSettings,
Store  $store,
ValueSnakRdfBuilderFactory  $valueSnakRdfBuilderFactory 
)
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: