Package org.wikidata.wdtk.rdf.values
Class AbstractValueConverter<V extends Value>
java.lang.Object
org.wikidata.wdtk.rdf.values.AbstractValueConverter<V>
- All Implemented Interfaces:
ValueConverter<V>
- Direct Known Subclasses:
BufferedValueConverter,EntityIdValueConverter,MonolingualTextValueConverter,StringValueConverter
public abstract class AbstractValueConverter<V extends Value>
extends Object
implements ValueConverter<V>
-
Constructor Summary
ConstructorsConstructorDescriptionAbstractValueConverter(RdfWriter rdfWriter, PropertyRegister propertyRegister, OwlDeclarationBuffer rdfConversionBuffer) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidlogIncompatibleValueError(PropertyIdValue propertyIdValue, String datatype, String valueType) Logs a message for a case where the value of a property does not fit to its declared datatype.voidWrites auxiliary triples that might be needed to encode a Wikibase value in RDF.Methods 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
-
AbstractValueConverter
public AbstractValueConverter(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>- Throws:
org.eclipse.rdf4j.rio.RDFHandlerException- if there is a problem writing the triples
-
logIncompatibleValueError
protected void logIncompatibleValueError(PropertyIdValue propertyIdValue, String datatype, String valueType) Logs a message for a case where the value of a property does not fit to its declared datatype.- Parameters:
propertyIdValue- the property that was useddatatype- the declared type of the propertyvalueType- a string to denote the type of value
-