Issue with roundHalfToEven SWRL built-in

3 messages Options
Embed this post
Permalink
TT

Issue with roundHalfToEven SWRL built-in

Reply Threaded More More options
Print post
Permalink
roundHalfToEven SWRL built-in doesn't seem to return the expected result. It returns values without decimal points which what round function does. I can't find any documentation with examples on how to pass the arguments other than these two links (http://www.daml.org/2004/04/swrl/builtins#8.2  http://www.w3.org/TR/xpath-functions/#func-round-half-to-even) but then protégé doesn't like the arguments with precision 2. Example: roundHalfToEven(?dti, ?value, 2). It is logging IllegalArgumentException error. I am using Protege 4.0. Can someone please point me to the right direction on this?
 
Thanks,
 
tabby
_______________________________________________
protege-owl mailing list
[hidden email]
https://mailman.stanford.edu/mailman/listinfo/protege-owl

Instructions for unsubscribing: http://protege.stanford.edu/doc/faq.html#01a.03
Martin O'Connor

Re: Issue with roundHalfToEven SWRL built-in

Reply Threaded More More options
Print post
Permalink
If you are using Protege 4 then it is likely that you are using Pellet
for executing SWRL rules. I think this sounds like a Pellet problem.

Their mailing list is here:

http://lists.owldl.com/mailman/listinfo/pellet-users

Martin

Tabby Teklu wrote:

> roundHalfToEven SWRL built-in doesn't seem to return the expected
> result. It returns values without decimal points which what round
> function does. I can't find any documentation with examples on how to
> pass the arguments other than these two links
> (http://www.daml.org/2004/04/swrl/builtins#8.2 
> http://www.w3.org/TR/xpath-functions/#func-round-half-to-even) but
> then protégé doesn't like the arguments with precision 2. Example:
> roundHalfToEven(?dti, ?value, 2). It is logging
> IllegalArgumentException error. I am using Protege 4.0. Can someone
> please point me to the right direction on this?
>  
> Thanks,
>  
> tabby
>
>------------------------------------------------------------------------
>
>_______________________________________________
>protege-owl mailing list
>[hidden email]
>https://mailman.stanford.edu/mailman/listinfo/protege-owl
>
>Instructions for unsubscribing: http://protege.stanford.edu/doc/faq.html#01a.03
>  
>

_______________________________________________
protege-owl mailing list
[hidden email]
https://mailman.stanford.edu/mailman/listinfo/protege-owl

Instructions for unsubscribing: http://protege.stanford.edu/doc/faq.html#01a.03
TT

Re: Issue with roundHalfToEven SWRL built-in

Reply Threaded More More options
Print post
Permalink
Thanks Martin. I talked them and they created a ticket to reslove the issue.

On Wed, Nov 4, 2009 at 6:45 PM, Martin O'Connor <[hidden email]> wrote:
If you are using Protege 4 then it is likely that you are using Pellet for executing SWRL rules. I think this sounds like a Pellet problem.

Their mailing list is here:

http://lists.owldl.com/mailman/listinfo/pellet-users

Martin

Tabby Teklu wrote:

roundHalfToEven SWRL built-in doesn't seem to return the expected result. It returns values without decimal points which what round function does. I can't find any documentation with examples on how to pass the arguments other than these two links (http://www.daml.org/2004/04/swrl/builtins#8.2  http://www.w3.org/TR/xpath-functions/#func-round-half-to-even) but then protégé doesn't like the arguments with precision 2. Example: roundHalfToEven(?dti, ?value, 2). It is logging IllegalArgumentException error. I am using Protege 4.0. Can someone please point me to the right direction on this?
 Thanks,
 tabby

------------------------------------------------------------------------

_______________________________________________
protege-owl mailing list
[hidden email]
https://mailman.stanford.edu/mailman/listinfo/protege-owl

Instructions for unsubscribing: http://protege.stanford.edu/doc/faq.html#01a.03
 

_______________________________________________
protege-owl mailing list
[hidden email]
https://mailman.stanford.edu/mailman/listinfo/protege-owl

Instructions for unsubscribing: http://protege.stanford.edu/doc/faq.html#01a.03


_______________________________________________
protege-owl mailing list
[hidden email]
https://mailman.stanford.edu/mailman/listinfo/protege-owl

Instructions for unsubscribing: http://protege.stanford.edu/doc/faq.html#01a.03