W3C home > Mailing lists > Public > public-rdf-dawg@w3.org > July to September 2009

[TF-LIB] From a user

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>
Message-ID: <B6CF1054FDC8B845BF93A6645D19BEA3693EA8DA6D@GVW1118EXC.americas.hpqcorp.net>
Forwarded with permission:

I asked Holger (TopQuadrant) what library functions they use:


-----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).

Received on Tuesday, 29 September 2009 21:33:47 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:00:57 UTC