Thank you Scott,

Let me re-formulate my question.

The output shown below is from the main query that returns a 'parent' or 
'child' value for ?answer variable.

[cid:[email protected]]

When I look for  ?extended value, however, I am getting both 'yes' and 'no' 
answers. Is this because query looks at each row separately and generates an 
answer and if yes, how I can change my query so that it look in all return 
values and not row by row in a given subject and returns the appropriate answer?

As I mentioned previously, I have restrictions on using group_concat and 
TopBraid Spin/SPARQLMotion ....


Thanks!
Sina
From: [email protected] [mailto:[email protected]] 
On Behalf Of Scott Henninger
Sent: Tuesday, April 02, 2013 5:43 PM
To: [email protected]
Subject: Re: [topbraid-users] aggregating returned values

Madani; I don't think so.  These are the main use cases that group_concat and 
SPARQLMotion were designed for.

-- Scott
On 4/3/2013 12:15 AM, Madani,Sina wrote:
Hi,

Is there a way in SPARQL to combine returned values of a variable for a given 
(second) variable and not using group_concat function or TopBriad Spin/S.Motion 
functionalities ?

From

Patient 1              D1
Patient 1              D2
Patient 1              D3
Patient 2              D1
Patient 2              D4

To

Patient 1              D1,D2,D3
Patient 2              D1,D4



Thanks!
Sina
--
-- You received this message because you are subscribed to the Google
Group "TopBraid Suite Users", the topics of which include Enterprise Vocabulary 
Network (EVN), TopBraid Composer, TopBraid Live,
TopBraid Ensemble, SPARQLMotion, SPARQL Web Pages and SPIN.
To post to this group, send email to
[email protected]<mailto:[email protected]>
To unsubscribe from this group, send email to
[email protected]<mailto:[email protected]>
For more options, visit this group at
http://groups.google.com/group/topbraid-users?hl=en
---
You received this message because you are subscribed to the Google Groups 
"TopBraid Suite Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
[email protected]<mailto:[email protected]>.
For more options, visit https://groups.google.com/groups/opt_out.



--
-- You received this message because you are subscribed to the Google
Group "TopBraid Suite Users", the topics of which include Enterprise Vocabulary 
Network (EVN), TopBraid Composer, TopBraid Live,
TopBraid Ensemble, SPARQLMotion, SPARQL Web Pages and SPIN.
To post to this group, send email to
[email protected]<mailto:[email protected]>
To unsubscribe from this group, send email to
[email protected]<mailto:[email protected]>
For more options, visit this group at
http://groups.google.com/group/topbraid-users?hl=en
---
You received this message because you are subscribed to the Google Groups 
"TopBraid Suite Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
[email protected]<mailto:[email protected]>.
For more options, visit https://groups.google.com/groups/opt_out.


-- 
-- You received this message because you are subscribed to the Google
Group "TopBraid Suite Users", the topics of which include Enterprise Vocabulary 
Network (EVN), TopBraid Composer, TopBraid Live,
TopBraid Ensemble, SPARQLMotion, SPARQL Web Pages and SPIN.
To post to this group, send email to
[email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/topbraid-users?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"TopBraid Suite Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


<<inline: image003.jpg>>

Reply via email to