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
ConstructorsConstructorDescriptionBufferedValueConverter(RdfWriter rdfWriter, PropertyRegister propertyRegister, OwlDeclarationBuffer rdfConversionBuffer) -
Method Summary
Modifier and TypeMethodDescriptionvoidWrites auxiliary triples that might be needed to encode a Wikibase value in RDF.abstract voidwriteValue(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
logIncompatibleValueErrorMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:ValueConverterWrites auxiliary triples that might be needed to encode a Wikibase value in RDF.- Specified by:
writeAuxiliaryTriplesin interfaceValueConverter<V extends Value>- Overrides:
writeAuxiliaryTriplesin 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
-