Package org.wikidata.wdtk.rdf.values
Class BufferedValueConverter<V extends Value>
java.lang.Object
org.wikidata.wdtk.rdf.values.AbstractValueConverter<V>
org.wikidata.wdtk.rdf.values.BufferedValueConverter<V>
- All Implemented Interfaces:
ValueConverter<V>
- Direct Known Subclasses:
GlobeCoordinatesValueConverter
,QuantityValueConverter
,TimeValueConverter
-
Constructor Summary
ConstructorDescriptionBufferedValueConverter
(RdfWriter rdfWriter, PropertyRegister propertyRegister, OwlDeclarationBuffer rdfConversionBuffer) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Writes auxiliary triples that might be needed to encode a Wikibase value in RDF.abstract void
writeValue
(V value, org.eclipse.rdf4j.model.Resource resource) Writes the triples for a single value, using the given resource as subject.Methods inherited from class org.wikidata.wdtk.rdf.values.AbstractValueConverter
logIncompatibleValueError
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.wikidata.wdtk.rdf.values.ValueConverter
getRdfValue
-
Constructor Details
-
BufferedValueConverter
public BufferedValueConverter(RdfWriter rdfWriter, PropertyRegister propertyRegister, OwlDeclarationBuffer rdfConversionBuffer)
-
-
Method Details
-
writeAuxiliaryTriples
public void writeAuxiliaryTriples() throws org.eclipse.rdf4j.rio.RDFHandlerExceptionDescription copied from interface:ValueConverter
Writes auxiliary triples that might be needed to encode a Wikibase value in RDF.- Specified by:
writeAuxiliaryTriples
in interfaceValueConverter<V extends Value>
- Overrides:
writeAuxiliaryTriples
in classAbstractValueConverter<V extends Value>
- Throws:
org.eclipse.rdf4j.rio.RDFHandlerException
- if there is a problem writing the triples
-
writeValue
public abstract void writeValue(V value, org.eclipse.rdf4j.model.Resource resource) throws org.eclipse.rdf4j.rio.RDFHandlerException Writes the triples for a single value, using the given resource as subject.- Parameters:
value
-resource
-- Throws:
org.eclipse.rdf4j.rio.RDFHandlerException
-