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 age of a person using SWRL

Martin Becker martin.becker at
Fri Jan 18 01:22:24 PST 2008

Dear all,

I want to calculate the age of a person based on his or her birthdate using
a SWRL rule. 

Suppose that you have a class 'Person' and a datatype property
'hasBirthDate' having xsd:date as range.
Now I want to calculate the age of that person and store the value in a
datatype property 'hasAge'.

Question: Does the Core SWRL library built-in or the temporal library
built-in provide a function that would enable me to calculate the age of a
person by subtracting the birthdate from the current date?

Best regards,



-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3083 bytes
Desc: not available
URL: <>

More information about the protege-owl mailing list