W3C home > Mailing lists > Public > public-csv-wg@w3.org > September 2014

Re: Reflection on the special telco of CSVW

From: Dan Brickley <danbri@google.com>
Date: Wed, 10 Sep 2014 14:35:49 +0100
Message-ID: <CAK-qy=4eF+RhV3boTAr38HaYqdrVXxEVhXs76aL3Dixqw_6viw@mail.gmail.com>
To: Axel Polleres <axel.polleres@wu.ac.at>
Cc: Ivan Herman <ivan@w3.org>, Andy Seaborne <andy@apache.org>, W3C CSV on the Web Working Group <public-csv-wg@w3.org>
On 10 September 2014 13:16, Axel Polleres <axel.polleres@wu.ac.at> wrote:
> first, (admittedly being a bit offline over the past months on CSV on the Web and our main participant
> in the group only being back next week), I have the (cautious) tendency to opt rather for Alternative
> 2, in case. wouldn't Alternative 1 essentuially mean re-inventing R2RML  (again, apologies if I missed
> that part in the discussion and would be grateful for pointers)?

R2RML has always been on our radar as a relevant nearby technology.
Would you or colleagues have interest/time in prototyping a concrete
example of using it with CSV data + associated JSON metadata?

> This also goes into the direction of
>>>> But the point is that such programming languages already exist. Several of them. One could say that we should not define yet another one.
> second, as a side note, just thinking out loud here on the mustache {{ }} syntax...
> Assuming I have RDF as output for a canonical conversion and want to use SPARQL CONSTRUCT as a
> base language for a more complex transformation on top of that. Then, {{ }} would probably not
> go nicely with parsers(?), since {{ }} may occur to separate group graph patterns.

Regarding Mustache, http://mustache.github.io/mustache.5.html says


Set Delimiter

Set Delimiter tags start with an equal sign and change the tag
delimiters from {{ and }} to custom strings.

Consider the following contrived example:

* {{default_tags}}
{{=<% %>=}}
* <% erb_style_tags %>
<%={{ }}=%>
* {{ default_tags_again }}

Here we have a list with three items. The first item uses the default
tag style, the second uses erb style as defined by the Set Delimiter
tag, and the third returns to the default style after yet another Set
Delimiter declaration.

According to ctemplates, this "is useful for languages like TeX, where
double-braces may occur in the text and are awkward to use for

Custom delimiters may not contain whitespace or the equals sign."

Here's the corresponding ctemplates doc,

This issue btw has also come up w.r.t. readability of templates that
target JSON-LD, since both use '{', '}' symbols heavily.

Received on Wednesday, 10 September 2014 13:36:18 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:27:42 UTC