- From: Jeremy J Carroll <jjc@syapse.com>
- Date: Thu, 27 Mar 2014 09:18:52 -0700
- To: Tim Williams <novastaylor@gmail.com>
- Cc: public-sparql-dev@w3.org
You can change the variable name from codeLabel to TreatmentArm; but you can't put in a space in it (well without playing unicode tricks) OTOH the results at this level are intended for the application developer not the end customer. I would normally expect some fancy javascript code to format the results etc for the final display Jeremy J Carroll Principal Architect Syapse, Inc. On Mar 26, 2014, at 8:46 AM, Tim Williams <novastaylor@gmail.com> wrote: > Hello everyone, > > I am new to SPARQL and am learning my way around, thanks in large part to Bob Ducharme's book "Learning SPARQL" . Is this an appropriate forum for general SPARQL questions? What other mail lists and forums are available for basic-through-advanced questions? > > My basic question is on how I can format a query result. This query: > > SELECT ?codeLabel > WHERE > { > ?code skos:inScheme code:treatment . > ?code skos:prefLabel ?codeLabel . > } > > Returns the result: > > codeLabel > - - - - - - - - - - - > Active > Placebo > > > I would like to format the result to appear as: > > Treatment Arm > - - - - - - - - - - - > Active > Placebo > > > Is there a way to do this within the SPARQL query without post-processing? FYI I am currently using ARQ for querying a .ttl file directly. > > Cheers, > > Tim W. (SPARQL newbie) > >
Received on Thursday, 27 March 2014 16:19:22 UTC