- From: Seaborne, Andy <andy.seaborne@hp.com>
- Date: Tue, 29 Sep 2009 21:32:06 +0000
- To: "public-rdf-dawg@w3.org" <public-rdf-dawg@w3.org>
Forwarded with permission: I asked Holger (TopQuadrant) what library functions they use: Andy -----Original Message----- From: jena-dev@yahoogroups.com [mailto:jena-dev@yahoogroups.com] On Behalf Of Holger Knublauch Sent: 29 September 2009 17:06 To: jena-dev@yahoogroups.com Andy wrote: > The WG has a (time-permitting) feature > > http://www.w3.org/2009/sparql/wiki/Design:FunctionLibrary > > which aims to be not too long but useful. Could you take a look and > make suggestions. Note that if it gets too large, implementations > will > skip the work and the idea is to have a set of operations available > everywhere. In practice we find the smf:if(<cond>, <exprTrue>, <exprFalse>) very useful, and I think you have proposed something similar. We see a lot of use cases for smf:indexOf and smf:lastIndexOf, which wrap the corresponding Java String functions. These are very helpful for transforming data from other sources (such as triplified spreadsheets etc). Another very popular function from our library is smf:buildString, which takes a string template with {?varName} or {?1} placeholders in it and returns a string where those values are substituted with the remaining arguments (or other bound variables, but this might be problematic to standardize). Holger
Received on Tuesday, 29 September 2009 21:33:47 UTC