ValueConverter<V>public class QuantityValueConverter extends BufferedValueConverter<org.wikidata.wdtk.datamodel.interfaces.QuantityValue>
| Constructor | Description |
|---|---|
QuantityValueConverter(RdfWriter rdfWriter,
PropertyRegister propertyRegister,
OwlDeclarationBuffer rdfConversionBuffer) |
| Modifier and Type | Method | Description |
|---|---|---|
org.openrdf.model.Value |
getRdfValue(org.wikidata.wdtk.datamodel.interfaces.QuantityValue value,
org.wikidata.wdtk.datamodel.interfaces.PropertyIdValue propertyIdValue,
boolean simple) |
Returns an RDF value that should be used to represent the given Wikibase
data value in RDF.
|
void |
writeValue(org.wikidata.wdtk.datamodel.interfaces.QuantityValue value,
org.openrdf.model.Resource resource) |
Writes the triples for a single value, using the given resource as
subject.
|
logIncompatibleValueErrorwriteAuxiliaryTriplespublic QuantityValueConverter(RdfWriter rdfWriter, PropertyRegister propertyRegister, OwlDeclarationBuffer rdfConversionBuffer)
public org.openrdf.model.Value getRdfValue(org.wikidata.wdtk.datamodel.interfaces.QuantityValue value,
org.wikidata.wdtk.datamodel.interfaces.PropertyIdValue propertyIdValue,
boolean simple)
ValueConvertervalue - the value to convertpropertyIdValue - the property for which this value was used; this provides
important context information for the conversionsimple - if true, use a simplified conversion to RDF and do not convert
values that are inherently complexpublic void writeValue(org.wikidata.wdtk.datamodel.interfaces.QuantityValue value,
org.openrdf.model.Resource resource)
throws org.openrdf.rio.RDFHandlerException
BufferedValueConverterwriteValue in class BufferedValueConverter<org.wikidata.wdtk.datamodel.interfaces.QuantityValue>org.openrdf.rio.RDFHandlerExceptionCopyright © 2014–2017 Wikidata Toolkit Developers. Generated from source code published under the Apache License 2.0. For more information, see the Wikidata Toolkit homepage