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, |
|
|
array |
$labelPredicates |
|
) |
| |
- 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). |
string[][][] | $labelPredicates | |
◆ 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
◆ getTermRdfBuilder()
Wikibase\Repo\Rdf\EntityRdfBuilderFactory::getTermRdfBuilder |
( |
RdfVocabulary |
$vocabulary, |
|
|
RdfWriter |
$writer |
|
) |
| |
Produce new TermRdfWriter.
- Parameters
-
RdfVocabulary | $vocabulary | |
RdfWriter | $writer | |
- Returns
- TermsRdfBuilder
◆ $factoryCallbacks
Wikibase\Repo\Rdf\EntityRdfBuilderFactory::$factoryCallbacks |
|
private |
◆ $labelPredicates
Wikibase\Repo\Rdf\EntityRdfBuilderFactory::$labelPredicates |
|
private |
The documentation for this class was generated from the following file: