Re: RDF Template

On Sunday, January 25, Sebastian Samaruga wrote: 
> Why not just use PHP, JSP, Velocity or any other template engine for the
> Web? After all, RDF is just some kind of markup. It then could be processed
> by any kind of semantic tool and parameters to those scripts could be used
> as search arguments for some kind of database backend.

++

We've had success using this approach with Turtle templates that look like this :

    https://github.com/USGCRP/gcis/blob/master/lib/Tuba/files/templates/dataset/object.ttl.tut

It's been useful to have a templating engine with enough flexibility to
implement turtle-specific rules for escaping literals as well as custom
'plugins' that do things like filter out lines with empty predicates and
generate URIs.  Also, it's been helpful to couple this with a regression
test suite that validates the syntax of the rendered turtle using a
variety of inputs.

Brian

Received on Monday, 26 January 2015 15:09:16 UTC