Wikibase
MediaWiki Wikibase extension
|
Dispatching implementation of ValueSnakRdfBuilder. More...
Public Member Functions | |
__construct (array $valueBuilders, LoggerInterface $logger=null) | |
addValue (RdfWriter $writer, $propertyValueNamespace, $propertyValueLName, $dataType, $snakNamespace, PropertyValueSnak $snak) | |
Adds specific value. | |
Private Member Functions | |
getValueBuilder ( $dataTypeId, $dataValueType) | |
Private Attributes | |
$valueBuilders | |
$logger | |
Dispatching implementation of ValueSnakRdfBuilder.
This allows extensions to register ValueSnakRdfBuilders for custom data types.
Wikibase\Repo\Rdf\DispatchingValueSnakRdfBuilder::__construct | ( | array | $valueBuilders, |
LoggerInterface | $logger = null ) |
ValueSnakRdfBuilder[] | $valueBuilders | ValueSnakRdfBuilder objects keyed by data type (with prefix "PT:") or value type (with prefix "VT:"). |
LoggerInterface | null | $logger | Used to log a warning when encountering a value without a builder in $valueBuilders. |
Wikibase\Repo\Rdf\DispatchingValueSnakRdfBuilder::addValue | ( | RdfWriter | $writer, |
$propertyValueNamespace, | |||
$propertyValueLName, | |||
$dataType, | |||
$snakNamespace, | |||
PropertyValueSnak | $snak ) |
Adds specific value.
RdfWriter | $writer | |
string | $propertyValueNamespace | Property value relation namespace |
string | $propertyValueLName | Property value relation name |
string | $dataType | Property data type |
string | $snakNamespace | |
PropertyValueSnak | $snak |
Implements Wikibase\Repo\Rdf\ValueSnakRdfBuilder.
|
private |
string | null | $dataTypeId | |
string | $dataValueType |
|
private |
|
private |