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

Factory for ValueSnakRdfBuilder based on factory callbacks. More...

Public Member Functions

 __construct (array $factoryCallbacks, LoggerInterface $logger=null)
 
 getValueSnakRdfBuilder ( $flavorFlags, RdfVocabulary $vocabulary, RdfWriter $writer, EntityMentionListener $mentionedEntityTracker, DedupeBag $dedupe)
 Returns an ValueSnakRdfBuilder for reified value output.
 

Private Member Functions

 createValueSnakRdfBuilders ( $flavorFlags, RdfVocabulary $vocabulary, RdfWriter $writer, EntityMentionListener $mentionedEntityTracker, DedupeBag $dedupe)
 

Private Attributes

 $factoryCallbacks
 
 $logger
 

Detailed Description

Factory for ValueSnakRdfBuilder based on factory callbacks.

For use with DataTypeDefinitions.

Author
Daniel Kinzler

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\Rdf\ValueSnakRdfBuilderFactory::__construct ( array $factoryCallbacks,
LoggerInterface $logger = null )
Parameters
callable[]$factoryCallbacksFactory callback functions as returned by DataTypeDefinitions::getRdfBuilderFactoryCallbacks(). Callbacks will be invoked with the signature ($mode, RdfVocabulary, EntityMentionListener) and must return a ValueSnakRdfBuilder (or null).
LoggerInterface | null$logger

Member Function Documentation

◆ createValueSnakRdfBuilders()

Wikibase\Repo\Rdf\ValueSnakRdfBuilderFactory::createValueSnakRdfBuilders ( $flavorFlags,
RdfVocabulary $vocabulary,
RdfWriter $writer,
EntityMentionListener $mentionedEntityTracker,
DedupeBag $dedupe )
private
Parameters
int$flavorFlagsFlavor flags to use for the snak builder
RdfVocabulary$vocabulary
RdfWriter$writer
EntityMentionListener$mentionedEntityTracker
DedupeBag$dedupe
Returns
ValueSnakRdfBuilder[]

◆ getValueSnakRdfBuilder()

Wikibase\Repo\Rdf\ValueSnakRdfBuilderFactory::getValueSnakRdfBuilder ( $flavorFlags,
RdfVocabulary $vocabulary,
RdfWriter $writer,
EntityMentionListener $mentionedEntityTracker,
DedupeBag $dedupe )

Returns an ValueSnakRdfBuilder for reified value output.

Parameters
int$flavorFlagsFlavor flags to use for the snak builder
RdfVocabulary$vocabulary
RdfWriter$writer
EntityMentionListener$mentionedEntityTracker
DedupeBag$dedupe
Returns
DispatchingValueSnakRdfBuilder

Member Data Documentation

◆ $factoryCallbacks

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

◆ $logger

Wikibase\Repo\Rdf\ValueSnakRdfBuilderFactory::$logger
private

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