Hello
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