Factory for EntityRdfBuilder based on factory callbacks.
More...
Factory for EntityRdfBuilder based on factory callbacks.
For use with EntityTypeDefinitions.
- Copyright
- GPL-2.0-or-later
- Author
- Amir Sarabadani ladsg.nosp@m.roup.nosp@m.@gmai.nosp@m.l.co.nosp@m.m
◆ __construct()
Wikibase\Repo\Rdf\EntityRdfBuilderFactory::__construct |
( |
array | $factoryCallbacks | ) |
|
- Parameters
-
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). |
◆ createEntityRdfBuilders()
- Parameters
-
int | $flavorFlags | Flavor flags to use for the entity rdf builder |
RdfVocabulary | $vocabulary | |
RdfWriter | $writer | |
EntityMentionListener | $mentionedEntityTracker | |
DedupeBag | $dedupe | |
- Returns
- EntityRdfBuilder[] array mapping entity types to their EntityRdfBuilders
◆ getEntityRdfBuilders()
Returns an associative array mapping entity type to EntityRdfBuilder implementations.
- Parameters
-
int | $flavorFlags | Flavor flags to use for the entity rdf builder |
RdfVocabulary | $vocabulary | |
RdfWriter | $writer | |
EntityMentionListener | $mentionedEntityTracker | |
DedupeBag | $dedupe | |
- Returns
- EntityRdfBuilder[] array mapping entity types to their EntityRdfBuilders
◆ $factoryCallbacks
Wikibase\Repo\Rdf\EntityRdfBuilderFactory::$factoryCallbacks |
|
private |
The documentation for this class was generated from the following file: