public class LangStringConverterImpl extends Object implements LangStringConverter
LangStringConverter
. Its identifier is "http://art.uniroma2.it/coda/converters/langString".Modifier and Type | Field and Description |
---|---|
static String |
CONVERTER_URI |
CONTRACT_URI
OSGI_SERVICE_PROPERTY_CONTRACT, OSGI_SERVICE_PROPERTY_CONVERTER, STATIC_FIELD_CONTRACT_URI, STATIC_FIELD_CONVERTER_URI
Constructor and Description |
---|
LangStringConverterImpl() |
Modifier and Type | Method and Description |
---|---|
org.eclipse.rdf4j.model.Literal |
produceLiteral(CODAContext ctx,
String datatype,
String lang,
String value,
String langArg)
Produces a language tagged literal based on the arguments corresponding to the parameters
value and langArg . |
public static final String CONVERTER_URI
public org.eclipse.rdf4j.model.Literal produceLiteral(CODAContext ctx, String datatype, String lang, String value, String langArg)
LangStringConverter
value
and langArg
. The motivation of this contract is that the parameter
lang
can only be set statically in the PEARL document, while the value of the additional
parameter langArg
can be determined at runtime.produceLiteral
in interface LangStringConverter
Copyright © 2022 ART Group, University of Rome, Tor Vergata. All rights reserved.