Will it works like:

SELECT (SUM(?worldcupgoals ?eurogoals ?othergoals))
where { ?team rdf:type ont:Team . ?team ont:WorldCup_Goals ?worldcupgoals;
ont:EuroCup_Goals ?eurogoals ; ont:Other_Goals ?othergoals}


On Sat, Oct 8, 2016 at 12:43 PM, Martynas Jusevičius <marty...@graphity.org>
wrote:

> https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#aggregateExample
>
> On Sat, Oct 8, 2016 at 9:35 PM, neha gupta <neha.bang...@gmail.com> wrote:
> > I am sorry but need some details? I really have no idea how to sum
> multiple
> > values (data properties) using SPARQL, despite searched the web.
> >
> > On Sat, Oct 8, 2016 at 11:21 AM, Andy Seaborne <a...@apache.org> wrote:
> >
> >> SUM and GROUP BY
> >>
> >>     Andy
> >>
> >>
> >> On 08/10/16 19:14, neha gupta wrote:
> >>
> >>> team1  WorldCup_Goals  20
> >>> team1  EuroCup_Goals   25
> >>> team1  Other_Goals        50
> >>>
> >>> WorldCup_Goals,  EuroCup_Goals and Other_Goals are my properties.
> >>>
> >>> How to calculate total goals of team1 using SPARQL?
> >>>
> >>>
>

Reply via email to