Administrator
|
Hi,
You can do such computation in Python with Owlready, however, the formula with not be stored in the ontology nor the value of 'reputation' updated automatically when the values of 'initial perception', etc change (if you need that, you probably want to use an SWRL rule).
In Owlready you may use (after getting your individual):
individual.reputation = individual.initial_perception * 0.2 + individual.travel_confidence * 0.3 + individual.reputation * 0.5
(NB if properties are not functional, their values are lists, so you'll have to manage that).
Jiba
|