Wikibase
MediaWiki Wikibase extension
|
Factory for EntityStubRdfBuilderFactory based on factory callbacks. More...
Public Member Functions | |
__construct (array $factoryCallbacks) | |
getEntityStubRdfBuilders (RdfVocabulary $vocabulary, RdfWriter $writer) | |
Returns an associative array mapping entity type to EntityStubRdfBuilder implementations. | |
Private Member Functions | |
createEntityRdfBuilders (RdfVocabulary $vocabulary, RdfWriter $writer) | |
Private Attributes | |
$factoryCallbacks | |
Factory for EntityStubRdfBuilderFactory based on factory callbacks.
For use with EntityTypeDefinitions.
Wikibase\Repo\Rdf\EntityStubRdfBuilderFactory::__construct | ( | array | $factoryCallbacks | ) |
callable[] | $factoryCallbacks | Factory callback functions as returned for EntityTypeDefinitions::RDF_BUILDER_STUB_FACTORY_CALLBACK. Callbacks will be invoked with the signature ( RdfVocabulary, RdfWrite ) and must return a EntityRdfBuilder |
|
private |
RdfVocabulary | $vocabulary | |
RdfWriter | $writer |
Wikibase\Repo\Rdf\EntityStubRdfBuilderFactory::getEntityStubRdfBuilders | ( | RdfVocabulary | $vocabulary, |
RdfWriter | $writer ) |
Returns an associative array mapping entity type to EntityStubRdfBuilder implementations.
RdfVocabulary | $vocabulary | |
RdfWriter | $writer |
|
private |