I am using SMS to convert data from a CSV, following the “cars” example in the manual. I need to create an IRI for an interval that has a start date and an end date. In this case, the lifespan of a person.
Start date is birthdate: {#birthdate}
End date is deathdate: {#deathdate}
We don’t currently expose a facility to execute functions over inputs. We have a special value you can use in the field template to generate a UUID. It is _UUID_. So you can create the lifespan IRI as cdp1:Lifespan_{_UUID_}. The IRI contents itself shouldn’t be relevant, but serve to identify the relationships with what it represents.
We haven’t published a grammar specification for SMS mappings but it looks like you have the hang of it. Basically you use the curly braces as a placeholder for field values. Let us know if you have any specific questions.