Search Mailing List Archives


Limit search to: Subject & Body Subject Author
Sort by: Reverse Sort
Limit to: All This Week Last Week This Month Last Month
Select Date Range     through    

[protege-owl] Calculating duration using SWRL built-in swrlb:subtractDates

Martin Becker martin.becker at living-e.de
Tue Jan 15 06:42:02 PST 2008


Hi everybody,

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:

Project(?pr)  ∧
hasStartDate(?pr, ?date1)  ∧
hasEndDate(?pr, ?date2)  ∧
swrlb:subtractDates(?date2, ?date1) 
→ temporal:duration(?pr)

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
appreciated.

Best, Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3083 bytes
Desc: not available
URL: <http://mailman.stanford.edu/pipermail/protege-owl/attachments/20080115/f3ece4b2/attachment.p7s>


More information about the protege-owl mailing list