public abstract class AbstractValueConverter<V extends Value> extends Object implements ValueConverter<V>
Constructor and Description |
---|
AbstractValueConverter(RdfWriter rdfWriter,
PropertyRegister propertyRegister,
OwlDeclarationBuffer rdfConversionBuffer) |
Modifier and Type | Method and Description |
---|---|
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.
|
void |
writeAuxiliaryTriples()
Writes auxiliary triples that might be needed to encode a Wikibase value
in RDF.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getRdfValue
public AbstractValueConverter(RdfWriter rdfWriter, PropertyRegister propertyRegister, OwlDeclarationBuffer rdfConversionBuffer)
public void writeAuxiliaryTriples() throws org.eclipse.rdf4j.rio.RDFHandlerException
ValueConverter
writeAuxiliaryTriples
in interface ValueConverter<V extends Value>
org.eclipse.rdf4j.rio.RDFHandlerException
- if there is a problem writing the triplesprotected void logIncompatibleValueError(PropertyIdValue propertyIdValue, String datatype, String valueType)
propertyIdValue
- the property that was useddatatype
- the declared type of the propertyvalueType
- a string to denote the type of valueCopyright © 2014–2024 Wikidata Toolkit Developers. Generated from source code published under the Apache License 2.0. For more information, see the Wikidata Toolkit homepage