RDF mapping for UnboundedQuantityValue and QuantityValue.
More...
|
| linkNormalizedValue ( $valueNamespace, $valueLName, $normLName) |
| Connects a normalized value node to its base node via the quantityNormalized predicate.
|
|
| addValueNode (RdfWriter $writer, $propertyValueNamespace, $propertyValueLName, $dataType, $valueNamespace, UnboundedQuantityValue $value, $normalized=false) |
| Adds a value node representing all details of $value.
|
|
RDF mapping for UnboundedQuantityValue and QuantityValue.
- Copyright
- GPL-2.0-or-later
- Author
- Daniel Kinzler
-
Stas Malyshev
◆ __construct()
◆ addValueNode()
Wikibase\Repo\Rdf\Values\QuantityRdfBuilder::addValueNode |
( |
RdfWriter | $writer, |
|
|
| $propertyValueNamespace, |
|
|
| $propertyValueLName, |
|
|
| $dataType, |
|
|
| $valueNamespace, |
|
|
UnboundedQuantityValue | $value, |
|
|
| $normalized = false ) |
|
private |
Adds a value node representing all details of $value.
- Parameters
-
RdfWriter | $writer | |
string | $propertyValueNamespace | Property value relation namespace |
string | $propertyValueLName | Property value relation name |
string | $dataType | Property data type |
string | $valueNamespace | |
UnboundedQuantityValue | $value | |
bool | $normalized | Is this a normalized value? |
- Returns
- string|null The LName of the value node (in the RdfVocabulary::NS_VALUE namespace), or null if the value node should not be processed (generally, because it already has been processed).
◆ linkNormalizedValue()
Wikibase\Repo\Rdf\Values\QuantityRdfBuilder::linkNormalizedValue |
( |
| $valueNamespace, |
|
|
| $valueLName, |
|
|
| $normLName ) |
|
private |
Connects a normalized value node to its base node via the quantityNormalized predicate.
- Parameters
-
string | $valueNamespace | |
string | null | $valueLName | |
string | null | $normLName | |
◆ writeQuantityValue()
Wikibase\Repo\Rdf\Values\QuantityRdfBuilder::writeQuantityValue |
( |
UnboundedQuantityValue | $value | ) |
|
Write data for the value.
This expects the current subject of the RDF writer to be the value node. No instance-of statement is written about the value.
- Parameters
-
UnboundedQuantityValue | $value | |
◆ $complexValueHelper
Wikibase\Repo\Rdf\Values\QuantityRdfBuilder::$complexValueHelper |
|
private |
◆ $unitConverter
Wikibase\Repo\Rdf\Values\QuantityRdfBuilder::$unitConverter |
|
private |
The documentation for this class was generated from the following file: