W3C home > Mailing lists > Public > semantic-web@w3.org > June 2012

Re: Template language for SPARQL?

From: Bill Roberts <bill@swirrl.com>
Date: Fri, 1 Jun 2012 09:10:34 +0100
Message-Id: <6D2F57B2-F877-4FA1-A2A2-BDD3226A0925@swirrl.com>
Cc: David Booth <david@dbooth.org>, semantic-web <semantic-web@w3.org>
To: Paul Hermans <paul@proxml.be>
Hi David 

Thanks to Paul for mentioning our blog post from a few weeks ago. We felt the same need as you and set up a simple approach to substitute URL parameters into a sparql query. We've found it very handy. 

If something like this was included in the standards then we'd be happy to adapt to follow that standard.

Bill

Sent from my iPhone

On 1 Jun 2012, at 07:57, Paul Hermans <paul@proxml.be> wrote:

> David,
> 
> See
> http://blog.swirrl.com/articles/new-publishmydata-feature-named-queries
> 
> Paul
> 
> On 01 Jun 2012, at 03:45, David Booth wrote:
> 
>> [Resending, as my previous message never showed up.]
>> 
>> I would like to be able to write something like this:
>> 
>> SELECT ?s
>> WHERE { ?s a ${CLASS} . }
>> 
>> and have ${CLASS} substituted in from an environment variable or other
>> parameter, but SPARQL does not currently provide anything like this, and
>> it's clearly beyond what the working group could put in SPARQL 1.1.  
>> So I'm wondering . . . 
>> 
>> What have others been using as a template language for SPARQL?  
>> 
>> I know TopQuadrant uses an RDF representation for SPARQL CONSTRUCT
>> queries in conjunction with SPIN, 
>> http://www.w3.org/Submission/2011/02/ 
>> but it shreds the SPARQL query into tiny RDF pieces, which is rather
>> unfriendly for a human to read.  It would be much nicer to have
>> something like the above.
>> 
>> How are others handling the need to parameterize their SPARQL queries
>> like this?
>> 
>> 
>> 
>> -- 
>> David Booth, Ph.D.
>> http://dbooth.org/
>> 
>> Opinions expressed herein are those of the author and do not necessarily
>> reflect those of his employer.
>> 
>> 
> 
> 
> Kind Regards,
> Paul Hermans
> 
> -------------------------
> ProXML bvba
> XML and OWL/RDF services
> (w) www.proxml.be
> (b) experiences and opinions
> (e) paul@proxml.be
> (t)  +32 15 23 00 76
> (m) +32 473 66 03 20
> 
> Narcisweg 17
> 3140 Keerbergen
> Belgium
> 
> 
> 
> 
> 
> 
> 
> 
Received on Friday, 1 June 2012 08:11:18 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 21:45:49 GMT