@RDFCapability(value=literal) @DatatypeCapability(value="http://www.w3.org/2001/XMLSchema#date") @Description(value="Generates a literal with datatype xsd:date. The input value is parsed (compatibly with a set of recognized patterns) and is formatted according to the standard format (ISO 8601) yyyy-MM-dd. If no input value is provided, the converter generates the current date. If the input value cannot be parsed, the converter throws a ConverterConfigurationException.") public interface DateConverter 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:date) formatted according to the date
pattern (yyyy-MM-dd).
|
static final String CONTRACT_URI
@FeaturePathArgument(requirementLevel=OPTIONAL) org.eclipse.rdf4j.model.Literal produceLiteral(CODAContext ctx, String datatype, String lang, String value) throws ConverterException
ctx
- ConverterException
Copyright © 2022 ART Group, University of Rome, Tor Vergata. All rights reserved.