RdfDumpGenerator generates an RDF dump of a given set of entities, excluding redirects.
More...
|
static | createDumpGenerator ( $format, $output, $flavor, EntityRevisionLookup $entityRevisionLookup, PropertyDataTypeLookup $propertyLookup, ValueSnakRdfBuilderFactory $valueSnakRdfBuilderFactory, EntityRdfBuilderFactory $entityRdfBuilderFactory, EntityPrefetcher $entityPrefetcher, RdfVocabulary $vocabulary, EntityContentFactory $entityContentFactory, BNodeLabeler $labeler=null) |
|
RdfDumpGenerator generates an RDF dump of a given set of entities, excluding redirects.
- Copyright
- GPL-2.0-or-later
- Author
- Daniel Kinzler
-
Stas Malyshev
◆ __construct()
Wikibase\Repo\Dumpers\RdfDumpGenerator::__construct |
( |
|
$out, |
|
|
EntityRevisionLookup |
$lookup, |
|
|
RdfBuilder |
$rdfBuilder, |
|
|
EntityPrefetcher |
$entityPrefetcher |
|
) |
| |
- Parameters
-
resource | $out | |
EntityRevisionLookup | $lookup | Must not resolve redirects |
RdfBuilder | $rdfBuilder | |
EntityPrefetcher | $entityPrefetcher | |
◆ createDumpGenerator()
static Wikibase\Repo\Dumpers\RdfDumpGenerator::createDumpGenerator |
( |
|
$format, |
|
|
|
$output, |
|
|
|
$flavor, |
|
|
EntityRevisionLookup |
$entityRevisionLookup, |
|
|
PropertyDataTypeLookup |
$propertyLookup, |
|
|
ValueSnakRdfBuilderFactory |
$valueSnakRdfBuilderFactory, |
|
|
EntityRdfBuilderFactory |
$entityRdfBuilderFactory, |
|
|
EntityPrefetcher |
$entityPrefetcher, |
|
|
RdfVocabulary |
$vocabulary, |
|
|
EntityContentFactory |
$entityContentFactory, |
|
|
BNodeLabeler |
$labeler = null |
|
) |
| |
|
static |
- Parameters
-
string | $format | |
resource | $output | |
string | $flavor | Either "full" or "truthy" |
EntityRevisionLookup | $entityRevisionLookup | |
PropertyDataTypeLookup | $propertyLookup | |
ValueSnakRdfBuilderFactory | $valueSnakRdfBuilderFactory | |
EntityRdfBuilderFactory | $entityRdfBuilderFactory | |
EntityPrefetcher | $entityPrefetcher | |
RdfVocabulary | $vocabulary | |
EntityContentFactory | $entityContentFactory | |
BNodeLabeler | null | $labeler | |
- Returns
- static
- Exceptions
-
◆ generateDumpForEntityId()
Wikibase\Repo\Dumpers\RdfDumpGenerator::generateDumpForEntityId |
( |
EntityId |
$entityId | ) |
|
|
protected |
◆ getFlavorFlags()
static Wikibase\Repo\Dumpers\RdfDumpGenerator::getFlavorFlags |
( |
|
$flavorName | ) |
|
|
staticprivate |
Get the producer setting for the given flavor.
- Parameters
-
- Returns
- int
- Exceptions
-
◆ getRdfWriter()
static Wikibase\Repo\Dumpers\RdfDumpGenerator::getRdfWriter |
( |
|
$name, |
|
|
BNodeLabeler |
$labeler = null |
|
) |
| |
|
staticprivate |
◆ postDump()
Wikibase\Repo\Dumpers\RdfDumpGenerator::postDump |
( |
| ) |
|
|
protected |
◆ preDump()
Wikibase\Repo\Dumpers\RdfDumpGenerator::preDump |
( |
| ) |
|
|
protected |
◆ setTimestamp()
Wikibase\Repo\Dumpers\RdfDumpGenerator::setTimestamp |
( |
|
$timestamp | ) |
|
◆ $entityRevisionLookup
Wikibase\Repo\Dumpers\RdfDumpGenerator::$entityRevisionLookup |
|
private |
◆ $rdfBuilder
Wikibase\Repo\Dumpers\RdfDumpGenerator::$rdfBuilder |
|
private |
◆ $timestamp
Wikibase\Repo\Dumpers\RdfDumpGenerator::$timestamp |
|
private |
The documentation for this class was generated from the following file: