You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@clerezza.apache.org by Minto van der Sluis <mi...@xup.nl> on 2013/01/06 11:21:16 UTC
templating question
Hi folks,
I have a question that's not really clerezza specific, but more about
RDF in general. I hope other people on this mailing list have faced
similar situations and come up with a solution.
I would like to use the data in a triple collection to for instance
build a text document or an email message. Normally I would use
templating engines like Freemarker or Velocity for this. Now I wonder if
something similar exists for RDF.
Any ideas?
Regards,
Minto van der Sluis
Software innovator / renovator
Xup BV
Re: templating question
Posted by Minto van der Sluis <mi...@xup.nl>.
Thanks Reto,
I will definitely look into this.
Regards,
Minto
Op 8-1-2013 14:32, Reto Bachmann-Gmür schreef:
> Hi Minto,
>
> The two clerezza templating mechanism JavaServerPages and Seedsnipe are
> currently tied a bit to HTTP. They can be used in email by sending the mail
> with MailMan#sendEmailToUser but the template has to be registered with
> typerendering first.
>
> If you are used to freemarker you might be interested in its
> LdPathTemplates extension. A bundle ldpathtemplate allowing rendering of
> Clerezza GraphNodes is provided by stanbol and part of the trunk version of
> clerezza. The relevant method is render(GraphNode node, final String
> templatePath, Writer out) in
> org.apache.stanbol.commons.ldpathtemplate.LdRenderer. An example template
> is here:
> http://code.google.com/p/ldpath/source/browse/ldpath-template-linkeddata/src/test/resources/city-html.ftl
>
> Cheers,
> Reto
>
> On Sun, Jan 6, 2013 at 11:21 AM, Minto van der Sluis <mi...@xup.nl> wrote:
>
>> Hi folks,
>>
>> I have a question that's not really clerezza specific, but more about
>> RDF in general. I hope other people on this mailing list have faced
>> similar situations and come up with a solution.
>>
>> I would like to use the data in a triple collection to for instance
>> build a text document or an email message. Normally I would use
>> templating engines like Freemarker or Velocity for this. Now I wonder if
>> something similar exists for RDF.
>>
>> Any ideas?
>>
>> Regards,
>>
>> Minto van der Sluis
>> Software innovator / renovator
>> Xup BV
>>
>>
--
ir. ing. Minto van der Sluis
Software innovator / renovator
Xup BV
Mobiel: +31 (0) 626 014541
Re: templating question
Posted by Reto Bachmann-Gmür <re...@wymiwyg.com>.
Of course, thanks Tsuy!
On 27 Jan 2013 10:45, "Tsuyoshi Ito" <ts...@trialox.org> wrote:
> Hi Reto
>
> Do you really mean JavaServerPages? I think you mean ScalaServerPages
>
> cheers
> tsuy
>
> On Tue, Jan 8, 2013 at 2:32 PM, Reto Bachmann-Gmür <re...@apache.org>
> wrote:
>
> > Hi Minto,
> >
> > The two clerezza templating mechanism JavaServerPages and Seedsnipe are
> > currently tied a bit to HTTP. They can be used in email by sending the
> mail
> > with MailMan#sendEmailToUser but the template has to be registered with
> > typerendering first.
> >
> > If you are used to freemarker you might be interested in its
> > LdPathTemplates extension. A bundle ldpathtemplate allowing rendering of
> > Clerezza GraphNodes is provided by stanbol and part of the trunk version
> of
> > clerezza. The relevant method is render(GraphNode node, final String
> > templatePath, Writer out) in
> > org.apache.stanbol.commons.ldpathtemplate.LdRenderer. An example template
> > is here:
> >
> >
> http://code.google.com/p/ldpath/source/browse/ldpath-template-linkeddata/src/test/resources/city-html.ftl
> >
> > Cheers,
> > Reto
> >
> > On Sun, Jan 6, 2013 at 11:21 AM, Minto van der Sluis <mi...@xup.nl>
> wrote:
> >
> > > Hi folks,
> > >
> > > I have a question that's not really clerezza specific, but more about
> > > RDF in general. I hope other people on this mailing list have faced
> > > similar situations and come up with a solution.
> > >
> > > I would like to use the data in a triple collection to for instance
> > > build a text document or an email message. Normally I would use
> > > templating engines like Freemarker or Velocity for this. Now I wonder
> if
> > > something similar exists for RDF.
> > >
> > > Any ideas?
> > >
> > > Regards,
> > >
> > > Minto van der Sluis
> > > Software innovator / renovator
> > > Xup BV
> > >
> > >
> >
>
>
>
> --
> --trialox ag--------------------------------------
>
> Tsuyoshi Ito
> URL: http://trialox.org
>
Re: templating question
Posted by Tsuyoshi Ito <ts...@trialox.org>.
Hi Reto
Do you really mean JavaServerPages? I think you mean ScalaServerPages
cheers
tsuy
On Tue, Jan 8, 2013 at 2:32 PM, Reto Bachmann-Gmür <re...@apache.org> wrote:
> Hi Minto,
>
> The two clerezza templating mechanism JavaServerPages and Seedsnipe are
> currently tied a bit to HTTP. They can be used in email by sending the mail
> with MailMan#sendEmailToUser but the template has to be registered with
> typerendering first.
>
> If you are used to freemarker you might be interested in its
> LdPathTemplates extension. A bundle ldpathtemplate allowing rendering of
> Clerezza GraphNodes is provided by stanbol and part of the trunk version of
> clerezza. The relevant method is render(GraphNode node, final String
> templatePath, Writer out) in
> org.apache.stanbol.commons.ldpathtemplate.LdRenderer. An example template
> is here:
>
> http://code.google.com/p/ldpath/source/browse/ldpath-template-linkeddata/src/test/resources/city-html.ftl
>
> Cheers,
> Reto
>
> On Sun, Jan 6, 2013 at 11:21 AM, Minto van der Sluis <mi...@xup.nl> wrote:
>
> > Hi folks,
> >
> > I have a question that's not really clerezza specific, but more about
> > RDF in general. I hope other people on this mailing list have faced
> > similar situations and come up with a solution.
> >
> > I would like to use the data in a triple collection to for instance
> > build a text document or an email message. Normally I would use
> > templating engines like Freemarker or Velocity for this. Now I wonder if
> > something similar exists for RDF.
> >
> > Any ideas?
> >
> > Regards,
> >
> > Minto van der Sluis
> > Software innovator / renovator
> > Xup BV
> >
> >
>
--
--trialox ag--------------------------------------
Tsuyoshi Ito
URL: http://trialox.org
Re: templating question
Posted by Reto Bachmann-Gmür <re...@apache.org>.
Hi Minto,
The two clerezza templating mechanism JavaServerPages and Seedsnipe are
currently tied a bit to HTTP. They can be used in email by sending the mail
with MailMan#sendEmailToUser but the template has to be registered with
typerendering first.
If you are used to freemarker you might be interested in its
LdPathTemplates extension. A bundle ldpathtemplate allowing rendering of
Clerezza GraphNodes is provided by stanbol and part of the trunk version of
clerezza. The relevant method is render(GraphNode node, final String
templatePath, Writer out) in
org.apache.stanbol.commons.ldpathtemplate.LdRenderer. An example template
is here:
http://code.google.com/p/ldpath/source/browse/ldpath-template-linkeddata/src/test/resources/city-html.ftl
Cheers,
Reto
On Sun, Jan 6, 2013 at 11:21 AM, Minto van der Sluis <mi...@xup.nl> wrote:
> Hi folks,
>
> I have a question that's not really clerezza specific, but more about
> RDF in general. I hope other people on this mailing list have faced
> similar situations and come up with a solution.
>
> I would like to use the data in a triple collection to for instance
> build a text document or an email message. Normally I would use
> templating engines like Freemarker or Velocity for this. Now I wonder if
> something similar exists for RDF.
>
> Any ideas?
>
> Regards,
>
> Minto van der Sluis
> Software innovator / renovator
> Xup BV
>
>
Re: templating question
Posted by Tommaso Teofili <to...@gmail.com>.
Hi Minto,
I don't know anything really "specific" for RDF, from a quick google search
I got
http://answers.semanticweb.com/questions/11990/what-html-templating-systems-exist-for-rdf
.
I'd personally represent triples in some lightweight triple format (e.g.
JSON-LD) and then write / use specific selectors for JSoN nodes of interest.
My 2 cents,
Tommaso
2013/1/6 Minto van der Sluis <mi...@xup.nl>
> Hi folks,
>
> I have a question that's not really clerezza specific, but more about
> RDF in general. I hope other people on this mailing list have faced
> similar situations and come up with a solution.
>
> I would like to use the data in a triple collection to for instance
> build a text document or an email message. Normally I would use
> templating engines like Freemarker or Velocity for this. Now I wonder if
> something similar exists for RDF.
>
> Any ideas?
>
> Regards,
>
> Minto van der Sluis
> Software innovator / renovator
> Xup BV
>
>