Wikibase
MediaWiki Wikibase extension
|
Dispatching implementation of ValueSnakRdfBuilder. More...
Public Member Functions | |
__construct (array $valueBuilders) | |
addValue (RdfWriter $writer, $propertyValueNamespace, $propertyValueLName, $dataType, $snakNamespace, PropertyValueSnak $snak) | |
Adds specific value. | |
Private Member Functions | |
getValueBuilder ( $dataTypeId, $dataValueType) | |
Private Attributes | |
$valueBuilders | |
Dispatching implementation of ValueSnakRdfBuilder.
This allows extensions to register ValueSnakRdfBuilders for custom data types.
Wikibase\Repo\Rdf\DispatchingValueSnakRdfBuilder::__construct | ( | array | $valueBuilders | ) |
ValueSnakRdfBuilder[] | $valueBuilders | ValueSnakRdfBuilder objects keyed by data type (with prefix "PT:") or value type (with prefix "VT:"). |
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 |
PropertyValueSnak | $snak |
Implements Wikibase\Repo\Rdf\ValueSnakRdfBuilder.
|
private |
string | null | $dataTypeId | |
string | $dataValueType |
|
private |