I don't understand your question and also I don't understand the code:

Is it the whole snippet? If yes, the code cannot compile...
If no, show the whole code.

setProperty overrides the value, but this makes sense since a team can
only have one value for each league/cup.

By the way, it's called "Premi*e*r League" if you mean the soccer league
in England.

> I have team ontology in which we need to store information about teams like
> team wins, goals etc. I need to calculate the team goals in three
> categories: PremiurLeague, ChampionsLeague and FA cup.(From combo box each
> category should be selected)
>
>  if (Category=="PremiurLeague"){
> //get goals
> int premGoals=somevalue;
> team1.setPropertyValue(goals, literalvalue);
>
> }
> if (Category=="ChampLeague"){
> //get goals
> int champGoals=somevalue;
> team1.setPropertyValue(goals, literalvalue);
> }
> if (Category=="FACup"){
> //get goals
> int FAGoals=somevalue;
> team1.setPropertyValue(goals, literalvalue);
> }
>
> int total=premGoals+champGoals+FAGoals;
>
> But it does not give me the total goals, though it gives the individual
> league goals.
>
> Note: We enter the information about teams in one or two league at one time
> and of third league some other time. So its not necessary to enter
> information about all three leagues at one day. *Is it the main issue
> because we use setpropertyvalue() method which replaces previous values*.
>
> Thanks and happy New Year
>
> int total
>
-- 
Lorenz Bühmann
AKSW group, University of Leipzig
Group: http://aksw.org - semantic web research center

Reply via email to