Re: RDF to HTML templating

Hi Henry,

In which kind of format comes the PointedGraph? If you can transform it into a JSON Structure you can take any of the numerous JavaScript Template Libraries around. I personally prefer Handlebars, but also Mustache, Underscore are valid contenders. The interesting tidbit is how to map a Graph to a defined JSON Structure which can be consumed by a Template.

Michael

On 18.12.2013, at 17:04, Henry Story <henry.story@bblfish.net> wrote:

> Hi all,
> 
>  I have a quick question:
> 
> Is there a simple RDF to HTML templating library?
> 
> We have developed an initial PointedGraph library for 
> rdflib [1],  and would like to have a function such as
> 
>   template.apply(pg,template)
> 
> which would bind the pointed graph to a template.
> I imagine this could be best done with an RDFa 
> template, but I don't know what the issues with 
> this are. I am quite open to other suggestions too.
> 
> I have seen Vie, but this seems to require a whole
> framework. It would be nice to have a library dedicated
> to just this functionality, so that one can use it with
> different libraries, or develop our own.
> 
> All the best,
> 
> 	Henry Story  
> 
> 
> [1] https://github.com/stample/rww-play/blob/withPointedGraph/public/ldp/lib/pointedGraph.js
>   We'd like to then have an rdfstore implementation for this later.
> 
> Social Web Architect
> http://bblfish.net/
> 
> 

Received on Wednesday, 18 December 2013 16:53:21 UTC