@Description(value="Produces a resource by replacing placeholder in the template with values passed as arguments:\n$NUM : the value matched in the regex according to the group applications of regexes (similar to what it is done in Java replaceAll)") public interface RegexpConverter 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,
String regex,
String template)
Produce a Literal (with the given language and/or datatype) by replacing che placeholders in the input text with the values coming from the feature path
and the input args
|
org.eclipse.rdf4j.model.IRI |
produceURI(CODAContext ctx,
String value,
String regex,
String template)
Produce an IRI by replacing che placeholders in the input text with the values coming from the feature path
and the input args
|
static final String CONTRACT_URI
@FeaturePathArgument(requirementLevel=OPTIONAL) org.eclipse.rdf4j.model.IRI produceURI(CODAContext ctx, String value, @Parameter(name="regex") String regex, @Parameter(name="template") String template) throws ConverterException
ctx
- value
- regex
- template
- ConverterConfigurationException
ConverterException
@FeaturePathArgument(requirementLevel=OPTIONAL) org.eclipse.rdf4j.model.Literal produceLiteral(CODAContext ctx, String datatype, String lang, String value, @Parameter(name="regex") String regex, @Parameter(name="template") String template) throws ConverterException
ctx
- datatype
- lang
- value
- ConverterConfigurationException
ConverterException
Copyright © 2022 ART Group, University of Rome, Tor Vergata. All rights reserved.