- From: Tim Williams <novastaylor@gmail.com>
- Date: Wed, 26 Mar 2014 11:46:00 -0400
- To: public-sparql-dev@w3.org
Received on Thursday, 27 March 2014 12:20:56 UTC
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 12:20:56 UTC