Wikibase
MediaWiki Wikibase extension
|
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 | |
Factory for ValueSnakRdfBuilder based on factory callbacks.
For use with DataTypeDefinitions.
Wikibase\Repo\Rdf\ValueSnakRdfBuilderFactory::__construct | ( | array | $factoryCallbacks, |
LoggerInterface | $logger = null ) |
callable[] | $factoryCallbacks | Factory 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 |
|
private |
int | $flavorFlags | Flavor flags to use for the snak builder |
RdfVocabulary | $vocabulary | |
RdfWriter | $writer | |
EntityMentionListener | $mentionedEntityTracker | |
DedupeBag | $dedupe |
Wikibase\Repo\Rdf\ValueSnakRdfBuilderFactory::getValueSnakRdfBuilder | ( | $flavorFlags, | |
RdfVocabulary | $vocabulary, | ||
RdfWriter | $writer, | ||
EntityMentionListener | $mentionedEntityTracker, | ||
DedupeBag | $dedupe ) |
Returns an ValueSnakRdfBuilder for reified value output.
int | $flavorFlags | Flavor flags to use for the snak builder |
RdfVocabulary | $vocabulary | |
RdfWriter | $writer | |
EntityMentionListener | $mentionedEntityTracker | |
DedupeBag | $dedupe |
|
private |
|
private |