Support for string interpolation?
Hey there!
I've been trying to adopt OTTR in a lightweight manner a few times in the past, but I always hit a bit of a roadblock when it comes to creating templates that contain a string literal that should be parameterized.
E.g. I'd like to be able to create a Template that is able to produce:
:PizzaMargheritaRecipe rdfs:label "This recipe shows the steps to create a tasty Margherita pizza" .
:PizzaDiavoloRecipe rdfs:label "This recipe shows the steps to create a tasty Diavolo pizza" .
AFAIK this would right now have to be done by passing in the whole literal as a parameter rather than having e.g. a "This recipe shows the steps to create a tasty {:pizzaName} pizza"
template and only passing in :pizzaName
as a parameter. This could of course be done, but would move something that I would consider part of the templating into the preprocessing step.
Maybe I am missing something here, and there is a feature or technique that is commonly used for this. Would love to hear your thoughts!