Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Repo\Rdf\EntityStubRdfBuilderFactory Class Reference

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
 

Detailed Description

Factory for EntityStubRdfBuilderFactory based on factory callbacks.

For use with EntityTypeDefinitions.

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\Rdf\EntityStubRdfBuilderFactory::__construct ( array $factoryCallbacks)
Parameters
callable[]$factoryCallbacksFactory 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

Member Function Documentation

◆ createEntityRdfBuilders()

Wikibase\Repo\Rdf\EntityStubRdfBuilderFactory::createEntityRdfBuilders ( RdfVocabulary $vocabulary,
RdfWriter $writer )
private
Parameters
RdfVocabulary$vocabulary
RdfWriter$writer
Returns
EntityStubRdfBuilder[] array mapping entity types to their EntityStubRdfBuilder

◆ getEntityStubRdfBuilders()

Wikibase\Repo\Rdf\EntityStubRdfBuilderFactory::getEntityStubRdfBuilders ( RdfVocabulary $vocabulary,
RdfWriter $writer )

Returns an associative array mapping entity type to EntityStubRdfBuilder implementations.

Parameters
RdfVocabulary$vocabulary
RdfWriter$writer
Returns
EntityStubRdfBuilder[] array mapping entity types to their EntityStubRdfBuilder

Member Data Documentation

◆ $factoryCallbacks

Wikibase\Repo\Rdf\EntityStubRdfBuilderFactory::$factoryCallbacks
private

The documentation for this class was generated from the following file: