public class TimeValueConverter extends BufferedValueConverter<TimeValue>
Constructor and Description |
---|
TimeValueConverter(RdfWriter rdfWriter,
PropertyRegister PropertyRegister,
OwlDeclarationBuffer rdfConversionBuffer) |
Modifier and Type | Method and Description |
---|---|
org.eclipse.rdf4j.model.Value |
getRdfValue(TimeValue value,
PropertyIdValue propertyIdValue,
boolean simple)
Returns an RDF value that should be used to represent the given Wikibase
data value in RDF.
|
void |
writeValue(TimeValue value,
org.eclipse.rdf4j.model.Resource resource)
Write the auxiliary RDF data for encoding the given value.
|
writeAuxiliaryTriples
logIncompatibleValueError
public TimeValueConverter(RdfWriter rdfWriter, PropertyRegister PropertyRegister, OwlDeclarationBuffer rdfConversionBuffer)
public org.eclipse.rdf4j.model.Value getRdfValue(TimeValue value, PropertyIdValue propertyIdValue, boolean simple)
ValueConverter
value
- 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(TimeValue value, org.eclipse.rdf4j.model.Resource resource) throws org.eclipse.rdf4j.rio.RDFHandlerException
writeValue
in class BufferedValueConverter<TimeValue>
value
- the value to writeresource
- the (subject) URI to use to represent this value in RDForg.eclipse.rdf4j.rio.RDFHandlerException
Copyright © 2014–2024 Wikidata Toolkit Developers. Generated from source code published under the Apache License 2.0. For more information, see the Wikidata Toolkit homepage