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
ConstructorDescriptionAbstractValueConverter
(RdfWriter rdfWriter, PropertyRegister propertyRegister, OwlDeclarationBuffer rdfConversionBuffer) -
Method Summary
Modifier and TypeMethodDescriptionprotected 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.void
Writes 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, wait
Methods 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:ValueConverter
Writes auxiliary triples that might be needed to encode a Wikibase value in RDF.- Specified by:
writeAuxiliaryTriples
in 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
-