Wikibase
MediaWiki Wikibase extension
|
Factory for EntityRdfBuilder based on factory callbacks. More...
Public Member Functions | |
__construct (array $factoryCallbacks, array $labelPredicates) | |
getEntityRdfBuilders ( $flavorFlags, RdfVocabulary $vocabulary, RdfWriter $writer, EntityMentionListener $mentionedEntityTracker, DedupeBag $dedupe) | |
Returns an associative array mapping entity type to EntityRdfBuilder implementations. More... | |
Private Member Functions | |
createEntityRdfBuilders ( $flavorFlags, RdfVocabulary $vocabulary, RdfWriter $writer, EntityMentionListener $mentionedEntityTracker, DedupeBag $dedupe) | |
Private Attributes | |
$factoryCallbacks | |
$labelPredicates | |
Factory for EntityRdfBuilder based on factory callbacks.
For use with EntityTypeDefinitions.
Wikibase\Repo\Rdf\EntityRdfBuilderFactory::__construct | ( | array | $factoryCallbacks, |
array | $labelPredicates | ||
) |
callable[] | $factoryCallbacks | Factory callback functions as returned for EntityTypeDefinitions::RDF_BUILDER_FACTORY_CALLBACK. Callbacks will be invoked with the signature ($mode, RdfVocabulary, RdfWrite, EntityMentionListener, DedupeBag) and must return a EntityRdfBuilder (or null). |
string[][][] | $labelPredicates |
|
private |
int | $flavorFlags | Flavor flags to use for the entity rdf builder |
RdfVocabulary | $vocabulary | |
RdfWriter | $writer | |
EntityMentionListener | $mentionedEntityTracker | |
DedupeBag | $dedupe |
Wikibase\Repo\Rdf\EntityRdfBuilderFactory::getEntityRdfBuilders | ( | $flavorFlags, | |
RdfVocabulary | $vocabulary, | ||
RdfWriter | $writer, | ||
EntityMentionListener | $mentionedEntityTracker, | ||
DedupeBag | $dedupe | ||
) |
Returns an associative array mapping entity type to EntityRdfBuilder implementations.
int | $flavorFlags | Flavor flags to use for the entity rdf builder |
RdfVocabulary | $vocabulary | |
RdfWriter | $writer | |
EntityMentionListener | $mentionedEntityTracker | |
DedupeBag | $dedupe |
|
private |
|
private |