@RDFCapability(value=literal) @DatatypeCapability(value="http://www.w3.org/2001/XMLSchema#dateTime") @Description(value="Generates a literal with datatype xsd:dateTime. The input value is parsed (compatibly with a set of recognized patterns) and is formatted according to the standard format (ISO 8601) yyyy-MM-ddThh:mm:ss. If no input value is provided, the converter generates the current datetime. If the input value cannot be parsed, the converter throws a ConverterConfigurationException.\nThe converter takes the same optional parameters of the coda:time converter.") public interface DatetimeConverter extends Converter
Modifier and Type | Field and Description |
---|---|
static String |
CONTRACT_URI |
OSGI_SERVICE_PROPERTY_CONTRACT, OSGI_SERVICE_PROPERTY_CONVERTER, STATIC_FIELD_CONTRACT_URI, STATIC_FIELD_CONVERTER_URI
Modifier and Type | Method and Description |
---|---|
org.eclipse.rdf4j.model.Literal |
produceLiteral(CODAContext ctx,
String datatype,
String lang,
String value)
Gets a value and returns it as typed literal (xsd:datetime) formatted according to the datetime
pattern (yyyy-MM-dd'T'HH:mm:ss).
|
org.eclipse.rdf4j.model.Literal |
produceLiteral(CODAContext ctx,
String datatype,
String lang,
String value,
String offset)
Gets a value and returns it as typed literal (xsd:datetime) formatted according to the datetime
pattern (yyyy-MM-dd'T'HH:mm:ss) and with the given offset.
|
org.eclipse.rdf4j.model.Literal |
produceLiteral(CODAContext ctx,
String datatype,
String lang,
String value,
String offset,
String additionalOffset)
Gets a value and returns it as typed literal (xsd:datetime) formatted according to the datetime
pattern (yyyy-MM-dd'T'HH:mm:ss) with the given offset added to the offset of the input.
|
static final String CONTRACT_URI
@FeaturePathArgument(requirementLevel=OPTIONAL) org.eclipse.rdf4j.model.Literal produceLiteral(CODAContext ctx, String datatype, String lang, String value) throws ConverterConfigurationException, ConversionException
ctx
- datatype
- lang
- value
- ConverterConfigurationException
ConversionException
@FeaturePathArgument(requirementLevel=OPTIONAL) org.eclipse.rdf4j.model.Literal produceLiteral(CODAContext ctx, String datatype, String lang, String value, @Parameter(name="offset") String offset) throws ConverterConfigurationException, ConversionException
ctx
- datatype
- lang
- value
- offset
- admitted values:
ConverterConfigurationException
ConversionException
@FeaturePathArgument(requirementLevel=REQUIRED) org.eclipse.rdf4j.model.Literal produceLiteral(CODAContext ctx, String datatype, String lang, String value, @Parameter(name="offset") String offset, @Parameter(name="additionalOffset") String additionalOffset) throws ConverterConfigurationException, ConversionException
ctx
- datatype
- lang
- value
- value of the featurePath to convertoffset
- admitted value:
additionalOffset
- offset expressed in format +/-HH:mm that is added to the original offset.
This parameter is compatible only when offset parameter is REUSEConverterConfigurationException
ConversionException
Copyright © 2022 ART Group, University of Rome, Tor Vergata. All rights reserved.