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 Details

  • Method Details

    • writeAuxiliaryTriples

      public void writeAuxiliaryTriples() throws org.eclipse.rdf4j.rio.RDFHandlerException
      Description copied from interface: ValueConverter
      Writes auxiliary triples that might be needed to encode a Wikibase value in RDF.
      Specified by:
      writeAuxiliaryTriples in interface ValueConverter<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 used
      datatype - the declared type of the property
      valueType - a string to denote the type of value