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
Wed Jan 16 02:18:00 PST 2008


Martin,

your rule works as intended - thank you very much. After creating the
hasDuration datatype property I was able to hold the calculated value:

Project(?pr)  ∧
hasStartDate(?pr, ?date1)  ∧
hasEndDate(?pr, ?date2)  ∧
temporal:duration(?d, ?date1, ?date2, temporal:Days) 
→ hasDuration(?pr, ?d)

However, do you see a way to express this without reference to the temporal
library only by means of pure SWRL?

Best regards, 

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/20080116/32e656a9/attachment.p7s>


More information about the protege-owl mailing list