Wikibase
MediaWiki Wikibase extension
Wikibase\Repo\Rdf\Values\LiteralValueRdfBuilder Class Reference

RDF mapping for DataValues that map to a literal. More...

+ Inheritance diagram for Wikibase\Repo\Rdf\Values\LiteralValueRdfBuilder:
+ Collaboration diagram for Wikibase\Repo\Rdf\Values\LiteralValueRdfBuilder:

Public Member Functions

 __construct ( $typeBase, $typeLocal)
 
 addValue (RdfWriter $writer, $propertyValueNamespace, $propertyValueLName, $dataType, $snakNamespace, PropertyValueSnak $snak)
 Adds specific value. More...
 

Protected Member Functions

 getLiteralValue (DataValue $value)
 

Private Attributes

 $typeBase
 
 $typeLocal
 

Detailed Description

RDF mapping for DataValues that map to a literal.

Author
Daniel Kinzler
Stas Malyshev

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\Rdf\Values\LiteralValueRdfBuilder::__construct (   $typeBase,
  $typeLocal 
)
Parameters
string | null$typeBase
string | null$typeLocal

Member Function Documentation

◆ addValue()

Wikibase\Repo\Rdf\Values\LiteralValueRdfBuilder::addValue ( RdfWriter  $writer,
  $propertyValueNamespace,
  $propertyValueLName,
  $dataType,
  $snakNamespace,
PropertyValueSnak  $snak 
)

Adds specific value.

Parameters
RdfWriter$writer
string$propertyValueNamespaceProperty value relation namespace
string$propertyValueLNameProperty value relation name
string$dataTypeProperty data type
PropertyValueSnak$snak

Implements Wikibase\Repo\Rdf\ValueSnakRdfBuilder.

◆ getLiteralValue()

Wikibase\Repo\Rdf\Values\LiteralValueRdfBuilder::getLiteralValue ( DataValue  $value)
protected
Parameters
DataValue$value
Returns
string

Member Data Documentation

◆ $typeBase

Wikibase\Repo\Rdf\Values\LiteralValueRdfBuilder::$typeBase
private

◆ $typeLocal

Wikibase\Repo\Rdf\Values\LiteralValueRdfBuilder::$typeLocal
private

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