Package org.wikidata.wdtk.rdf.values
Class TimeValueConverter
java.lang.Object
org.wikidata.wdtk.rdf.values.AbstractValueConverter<V>
org.wikidata.wdtk.rdf.values.BufferedValueConverter<TimeValue>
org.wikidata.wdtk.rdf.values.TimeValueConverter
- All Implemented Interfaces:
ValueConverter<TimeValue>
-
Constructor Summary
ConstructorDescriptionTimeValueConverter
(RdfWriter rdfWriter, PropertyRegister PropertyRegister, OwlDeclarationBuffer rdfConversionBuffer) -
Method Summary
Modifier and TypeMethodDescriptionorg.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.Methods inherited from class org.wikidata.wdtk.rdf.values.BufferedValueConverter
writeAuxiliaryTriples
Methods inherited from class org.wikidata.wdtk.rdf.values.AbstractValueConverter
logIncompatibleValueError
-
Constructor Details
-
TimeValueConverter
public TimeValueConverter(RdfWriter rdfWriter, PropertyRegister PropertyRegister, OwlDeclarationBuffer rdfConversionBuffer)
-
-
Method Details
-
getRdfValue
public org.eclipse.rdf4j.model.Value getRdfValue(TimeValue value, PropertyIdValue propertyIdValue, boolean simple) Description copied from interface:ValueConverter
Returns an RDF value that should be used to represent the given Wikibase data value in RDF.- Parameters:
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 complex- Returns:
- the RDF value to use for representing the data value in RDF
-
writeValue
public void writeValue(TimeValue value, org.eclipse.rdf4j.model.Resource resource) throws org.eclipse.rdf4j.rio.RDFHandlerException Write the auxiliary RDF data for encoding the given value.- Specified by:
writeValue
in classBufferedValueConverter<TimeValue>
- Parameters:
value
- the value to writeresource
- the (subject) URI to use to represent this value in RDF- Throws:
org.eclipse.rdf4j.rio.RDFHandlerException
-