in src/main/java/software/amazon/neptune/csv2rdf/UriPostTransformation.java [143:162]
public UriPostTransformation(@JsonProperty(value = "srcPattern", required = true) @NonNull String srcPattern,
@JsonProperty(value = "typeUri", required = true) @NonNull String typeUri,
@JsonProperty(value = "propertyUri", required = true) @NonNull String propertyUri,
@JsonProperty(value = "dstPattern", required = true) @NonNull String dstPattern) {
try {
this.srcPattern = Pattern.compile(srcPattern);
} catch (PatternSyntaxException e) {
throw new Csv2RdfException("Regex is bad. " + e.getMessage() + ".", e);
}
this.typeUri = typeUri;
this.propertyUri = propertyUri;
if (!dstPattern.contains(PropertyGraph2RdfConverter.REPLACEMENT_VARIABLE)) {
throw new Csv2RdfException(
"The pattern <" + dstPattern + "> for the new URI must contain the replacement variable "
+ PropertyGraph2RdfConverter.REPLACEMENT_VARIABLE + ".");
}
this.dstPattern = dstPattern;
}