Search Mailing List Archives
[protege-owl] Calculating duration using SWRL built-in swrlb:subtractDates
martin.becker at living-e.de
Tue Jan 15 06:42:02 PST 2008
I would like to calculate the duration of projects by using the SWRL
built-in swrlb:subtractDates. Suppose you have a project 'pr1' with a start
date 'date1' and a finish date 'date2' and you now want to calculate the
duration between 'date1' and 'date2'.
My idea was as follows:
hasStartDate(?pr, ?date1) ∧
hasEndDate(?pr, ?date2) ∧
Where 'hasStartDate' and 'hasEndDate' are datatype properties with class
'Project' as domain and 'xsd:date' as range.
The project 'pr1' should then get the calculated value as duration. Does
anyone of you have a clue how to implement this. Any reply is greatly
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 3083 bytes
Desc: not available
More information about the protege-owl