Return-Path: X-Original-To: apmail-incubator-clerezza-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-clerezza-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5E9A7EB18 for ; Tue, 8 Jan 2013 13:33:28 +0000 (UTC) Received: (qmail 92371 invoked by uid 500); 8 Jan 2013 13:33:28 -0000 Delivered-To: apmail-incubator-clerezza-dev-archive@incubator.apache.org Received: (qmail 92332 invoked by uid 500); 8 Jan 2013 13:33:28 -0000 Mailing-List: contact clerezza-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: clerezza-dev@incubator.apache.org Delivered-To: mailing list clerezza-dev@incubator.apache.org Received: (qmail 92324 invoked by uid 99); 8 Jan 2013 13:33:28 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Jan 2013 13:33:28 +0000 X-ASF-Spam-Status: No, hits=2.9 required=5.0 tests=HTML_MESSAGE,SPF_HELO_PASS,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [216.86.168.182] (HELO mxout-07.mxes.net) (216.86.168.182) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Jan 2013 13:33:17 +0000 Received: from mail-lb0-f182.google.com (unknown [209.85.217.182]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id 4ACDA22E253 for ; Tue, 8 Jan 2013 08:32:56 -0500 (EST) Received: by mail-lb0-f182.google.com with SMTP id go10so381013lbb.27 for ; Tue, 08 Jan 2013 05:32:54 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-originating-ip:in-reply-to:references:date :message-id:subject:from:to:content-type:x-gm-message-state; bh=qLsPHLIu9LARZ8T4/qexlC/Kq2i27lC48Dm6I2pWYtk=; b=Y4y3tw4gbVZZATo8xyIXpgQc+0vp6TgM2EtuZSLcmSZC90d8YO57P2y0pntf2ew7u/ atjW0ARZAk1Q7/m0a+PWfm6SQkf1hsCcpy/IieI6QHtQyesIboaj0xYerF4cgygMru1h N8FvPWa4Vli9qTUcxF2veBQtXl2ZqFi/SYx4kGW4bGidGu6rDdQNMgOF1WIa+HdfJSYH 6h76KRRdVy7G6QU9riDGh03jn5o5M2qoPRRNJNQuIIYa3MQHhkRi4cTwM8lA9Zoz8sNU h4KXrD4gA9jQ1VqJxT5pPIWYbMSfwe+2Byxq5cF119UKOXELka9lj+8medMfavdlmdxI M7MA== MIME-Version: 1.0 Received: by 10.112.51.233 with SMTP id n9mr27159218lbo.47.1357651974895; Tue, 08 Jan 2013 05:32:54 -0800 (PST) Received: by 10.152.14.3 with HTTP; Tue, 8 Jan 2013 05:32:54 -0800 (PST) X-Originating-IP: [91.137.97.21] In-Reply-To: <50E9501C.2070306@xup.nl> References: <50E9501C.2070306@xup.nl> Date: Tue, 8 Jan 2013 14:32:54 +0100 Message-ID: Subject: Re: templating question From: =?ISO-8859-1?Q?Reto_Bachmann=2DGm=FCr?= To: clerezza-dev@incubator.apache.org Content-Type: multipart/alternative; boundary=f46d0401f97fb139dd04d2c6fbe0 X-Gm-Message-State: ALoCoQmdirC2NY7Pc0BQupuNd45Ii8YZ+Pwz2rbT59sM8Hq3tqGwd7KNXQhdSrnxx8pEzkbmaewg X-Virus-Checked: Checked by ClamAV on apache.org --f46d0401f97fb139dd04d2c6fbe0 Content-Type: text/plain; charset=ISO-8859-1 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 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 > > --f46d0401f97fb139dd04d2c6fbe0--