Re: RDF to HTML templating

On 18 December 2013 17:52, Michael Luggen <michael@oiu.ch> wrote:

> Hi Henry,
>
> In which kind of format comes the PointedGraph?


Looking at:

https://github.com/stample/rww-play/blob/withPointedGraph/public/ldp/lib/pointedGraph.js#L3

It seems to be a quad store, so I would imagine it's the rdflib indexed
formula.


> 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 17:06:56 UTC