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

RDF mapping for TimeValues. More...

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

Public Member Functions

 __construct (DateTimeValueCleaner $dateCleaner, ComplexValueRdfHelper $complexValueHelper=null)
 
- Public Member Functions inherited from Wikibase\Repo\Rdf\ValueSnakRdfBuilder
 addValue (RdfWriter $writer, $propertyValueNamespace, $propertyValueLName, $dataType, $snakNamespace, PropertyValueSnak $snak)
 Adds specific value.
 

Private Member Functions

 sayDateLiteral (RdfWriter $writer, TimeValue $value)
 
 addValueNode (RdfWriter $writer, $propertyValueNamespace, $propertyValueLName, $dataType, $snakNamespace, TimeValue $value)
 Adds a value node representing all details of $value.
 

Private Attributes

 $dateCleaner
 
 $complexValueHelper
 

Detailed Description

RDF mapping for TimeValues.

Author
Daniel Kinzler
Stas Malyshev

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\Rdf\Values\TimeRdfBuilder::__construct ( DateTimeValueCleaner $dateCleaner,
ComplexValueRdfHelper $complexValueHelper = null )
Parameters
DateTimeValueCleaner$dateCleaner
ComplexValueRdfHelper | null$complexValueHelper

Member Function Documentation

◆ addValueNode()

Wikibase\Repo\Rdf\Values\TimeRdfBuilder::addValueNode ( RdfWriter $writer,
$propertyValueNamespace,
$propertyValueLName,
$dataType,
$snakNamespace,
TimeValue $value )
private

Adds a value node representing all details of $value.

Parameters
RdfWriter$writer
string$propertyValueNamespaceProperty value relation namespace
string$propertyValueLNameProperty value relation name
string$dataTypeProperty data type
string$snakNamespace
TimeValue$value

◆ sayDateLiteral()

Wikibase\Repo\Rdf\Values\TimeRdfBuilder::sayDateLiteral ( RdfWriter $writer,
TimeValue $value )
private

Member Data Documentation

◆ $complexValueHelper

Wikibase\Repo\Rdf\Values\TimeRdfBuilder::$complexValueHelper
private

◆ $dateCleaner

Wikibase\Repo\Rdf\Values\TimeRdfBuilder::$dateCleaner
private

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