Wikibase
MediaWiki Wikibase extension
Wikibase\Repo\Maintenance\DumpRdf Class Reference
+ Inheritance diagram for Wikibase\Repo\Maintenance\DumpRdf:
+ Collaboration diagram for Wikibase\Repo\Maintenance\DumpRdf:

Public Member Functions

 __construct ()
 
 setServices (SqlEntityIdPagerFactory $sqlEntityIdPagerFactory, array $existingEntityTypes, array $entityTypesWithoutRdfOutput, EntityPrefetcher $entityPrefetcher, PropertyDataTypeLookup $propertyDataTypeLookup, ValueSnakRdfBuilderFactory $valueSnakRdfBuilderFactory, EntityRdfBuilderFactory $entityRdfBuilderFactory, EntityRevisionLookup $entityRevisionLookup, RdfVocabulary $rdfVocabulary, EntityContentFactory $entityContentFactory)
 
 execute ()
 Do the actual work. More...
 
- Public Member Functions inherited from Wikibase\Repo\Maintenance\DumpEntities
 setDumpEntitiesServices (SqlEntityIdPagerFactory $sqlEntityIdPagerFactory, array $existingEntityTypes, array $entityTypesToExcludeFromOutput)
 
 logMessage ( $message)
 Outputs a message vis the output() method. More...
 
 finalSetup ()
 

Protected Member Functions

 getRedirectMode ()
 Returns one of the EntityIdPager::XXX_REDIRECTS constants. More...
 
 createDumper ( $output)
 Create concrete dumper instance. More...
 
 getDumpType ()
 Used in description of script at command-line. More...
 
- Protected Member Functions inherited from Wikibase\Repo\Maintenance\DumpEntities
 getEntityRevisionLookupCacheMode ()
 Cache flag for use in Store::getEntityRevisionLookup. More...
 

Private Attributes

 $revisionLookup
 
 $entityPrefetcher
 
 $propertyDatatypeLookup
 
 $valueSnakRdfBuilderFactory
 
 $entityRdfBuilderFactory
 
 $rdfVocabulary
 
 $hasHadServicesSet = false
 
 $entityContentFactory
 

Detailed Description

Author
Stas Malyshev
Addshore

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\Maintenance\DumpRdf::__construct ( )

Member Function Documentation

◆ createDumper()

Wikibase\Repo\Maintenance\DumpRdf::createDumper (   $output)
protected

Create concrete dumper instance.

Parameters
resource$output
Returns
DumpGenerator

Reimplemented from Wikibase\Repo\Maintenance\DumpEntities.

◆ execute()

Wikibase\Repo\Maintenance\DumpRdf::execute ( )

Do the actual work.

All child classes will need to implement this

Reimplemented from Wikibase\Repo\Maintenance\DumpEntities.

◆ getDumpType()

Wikibase\Repo\Maintenance\DumpRdf::getDumpType ( )
protected

Used in description of script at command-line.

Returns
string

Reimplemented from Wikibase\Repo\Maintenance\DumpEntities.

◆ getRedirectMode()

Wikibase\Repo\Maintenance\DumpRdf::getRedirectMode ( )
protected

Returns one of the EntityIdPager::XXX_REDIRECTS constants.

Returns
mixed a EntityIdPager::XXX_REDIRECTS constant

Reimplemented from Wikibase\Repo\Maintenance\DumpEntities.

◆ setServices()

Wikibase\Repo\Maintenance\DumpRdf::setServices ( SqlEntityIdPagerFactory  $sqlEntityIdPagerFactory,
array  $existingEntityTypes,
array  $entityTypesWithoutRdfOutput,
EntityPrefetcher  $entityPrefetcher,
PropertyDataTypeLookup  $propertyDataTypeLookup,
ValueSnakRdfBuilderFactory  $valueSnakRdfBuilderFactory,
EntityRdfBuilderFactory  $entityRdfBuilderFactory,
EntityRevisionLookup  $entityRevisionLookup,
RdfVocabulary  $rdfVocabulary,
EntityContentFactory  $entityContentFactory 
)

Member Data Documentation

◆ $entityContentFactory

Wikibase\Repo\Maintenance\DumpRdf::$entityContentFactory
private

◆ $entityPrefetcher

Wikibase\Repo\Maintenance\DumpRdf::$entityPrefetcher
private

◆ $entityRdfBuilderFactory

Wikibase\Repo\Maintenance\DumpRdf::$entityRdfBuilderFactory
private

◆ $hasHadServicesSet

Wikibase\Repo\Maintenance\DumpRdf::$hasHadServicesSet = false
private

◆ $propertyDatatypeLookup

Wikibase\Repo\Maintenance\DumpRdf::$propertyDatatypeLookup
private

◆ $rdfVocabulary

Wikibase\Repo\Maintenance\DumpRdf::$rdfVocabulary
private

◆ $revisionLookup

Wikibase\Repo\Maintenance\DumpRdf::$revisionLookup
private

◆ $valueSnakRdfBuilderFactory

Wikibase\Repo\Maintenance\DumpRdf::$valueSnakRdfBuilderFactory
private

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