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] Puzzle of SQWRL collection

Haibo Hu hbhu at
Thu Sep 8 10:34:36 PDT 2011

Hi All,
I'm writing a SQWRL rule to calculate a ratio of specific individuals (such as ?a and ?b) in sets, like this,
sqwrl:makeSet(?s1, ?a) ∧ sqwrl:size(?size1, ?s1) ∧ 
sqwrl:makeSet(?s2, ?b) ∧ sqwrl:size(?size2, ?s2) ∧
swrlb:divide(?div, ?size1, ?size2) → sqwrl:select(?div)
It will return an integer. If ?size1 less than ?size2, then the output is 0.
Is there any way to make the result as float?
The School of Software Engineering,
Chongqing University, China
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the protege-owl mailing list