V
- the type of Wikibase value converted by this classpublic interface ValueConverter<V extends Value>
Modifier and Type | Method and Description |
---|---|
org.eclipse.rdf4j.model.Value |
getRdfValue(V value,
PropertyIdValue propertyIdValue,
boolean simple)
Returns an RDF value that should be used to represent the given Wikibase
data value in RDF.
|
void |
writeAuxiliaryTriples()
Writes auxiliary triples that might be needed to encode a Wikibase value
in RDF.
|
org.eclipse.rdf4j.model.Value getRdfValue(V value, PropertyIdValue propertyIdValue, boolean simple)
value
- the value to convertpropertyIdValue
- the property for which this value was used; this provides
important context information for the conversionsimple
- if true, use a simplified conversion to RDF and do not convert
values that are inherently complexvoid writeAuxiliaryTriples() throws org.eclipse.rdf4j.rio.RDFHandlerException
org.eclipse.rdf4j.rio.RDFHandlerException
- if there is a problem writing the triplesCopyright © 2014–2024 Wikidata Toolkit Developers. Generated from source code published under the Apache License 2.0. For more information, see the Wikidata Toolkit homepage