Wikibase
MediaWiki Wikibase extension
|
RdfDumpGenerator generates an RDF dump of a given set of entities, excluding redirects. More...
Public Member Functions | |
__construct ( $out, EntityRevisionLookup $lookup, RdfBuilder $rdfBuilder, EntityPrefetcher $entityPrefetcher) | |
setTimestamp (int $timestamp) | |
Public Member Functions inherited from Wikibase\Repo\Dumpers\DumpGenerator | |
__construct ( $out, EntityPrefetcher $entityPrefetcher) | |
setLimit ( $limit) | |
Set maximum number of entities produced. More... | |
setBatchSize ( $batchSize) | |
Sets the batch size for processing. More... | |
setProgressReporter (MessageReporter $progressReporter) | |
setExceptionHandler (ExceptionHandler $exceptionHandler) | |
setShardingFilter ( $shardingFactor, $shard) | |
Set the sharding factor and desired shard. More... | |
setEntityTypesFilter ( $types) | |
Set the entity types to be included in the output. More... | |
generateDump (EntityIdPager $idPager) | |
Generates a dump, writing to the file handle provided to the constructor. More... | |
Static Public Member Functions | |
static | createDumpGenerator (string $format, $output, string $flavor, EntityRevisionLookup $entityRevisionLookup, EntityPrefetcher $entityPrefetcher, ?BNodeLabeler $labeler, RdfBuilderFactory $rdfBuilderFactory) |
Protected Member Functions | |
preDump () | |
Do something before dumping data. More... | |
postDump () | |
Do something after dumping data. More... | |
generateDumpForEntityId (EntityId $entityId) | |
Produces RDF dump of the entity. More... | |
Protected Member Functions inherited from Wikibase\Repo\Dumpers\DumpGenerator | |
writeToDump ( $data) | |
Writers the given string to the output provided to the constructor. More... | |
preBatchDump ( $entities) | |
Do something before dumping a batch of entities. More... | |
preEntityDump ( $dumpCount) | |
Do something before dumping entity. More... | |
postEntityDump ( $dumpCount) | |
Do something after dumping entity. More... | |
Static Private Member Functions | |
static | getRdfWriter (string $name, BNodeLabeler $labeler=null) |
static | getFlavorFlags (string $flavorName) |
Get the producer setting for the given flavor. More... | |
Private Attributes | |
$rdfBuilder | |
$entityRevisionLookup | |
$timestamp = 0 | |
Additional Inherited Members | |
Protected Attributes inherited from Wikibase\Repo\Dumpers\DumpGenerator | |
$batchSize = 100 | |
$out | |
$shardingFactor = 1 | |
$shard = 0 | |
$progressReporter | |
$exceptionHandler | |
$entityPrefetcher | |
$entityTypes | |
$limit = 0 | |
RdfDumpGenerator generates an RDF dump of a given set of entities, excluding redirects.
Wikibase\Repo\Dumpers\RdfDumpGenerator::__construct | ( | $out, | |
EntityRevisionLookup | $lookup, | ||
RdfBuilder | $rdfBuilder, | ||
EntityPrefetcher | $entityPrefetcher | ||
) |
resource | $out | |
EntityRevisionLookup | $lookup | Must not resolve redirects |
RdfBuilder | $rdfBuilder | |
EntityPrefetcher | $entityPrefetcher |
|
static |
string | $format | |
resource | $output | |
string | $flavor | Either "full" or "truthy" |
EntityRevisionLookup | $entityRevisionLookup | |
EntityPrefetcher | $entityPrefetcher | |
BNodeLabeler | null | $labeler | |
RdfBuilderFactory | $rdfBuilderFactory |
UnknownFlavorException |
|
protected |
Produces RDF dump of the entity.
EntityId | $entityId |
EntityLookupException | |
StorageException |
Reimplemented from Wikibase\Repo\Dumpers\DumpGenerator.
|
staticprivate |
Get the producer setting for the given flavor.
UnknownFlavorException |
|
staticprivate |
|
protected |
Do something after dumping data.
Reimplemented from Wikibase\Repo\Dumpers\DumpGenerator.
|
protected |
Do something before dumping data.
Reimplemented from Wikibase\Repo\Dumpers\DumpGenerator.
Wikibase\Repo\Dumpers\RdfDumpGenerator::setTimestamp | ( | int | $timestamp | ) |
|
private |
|
private |
|
private |