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] SWRL Rule calculate Sum and result only > 18

Martin O'Connor martin.oconnor at stanford.edu
Thu Jul 22 08:21:05 PDT 2010


The collection construction and grouping clauses should be together:

Person(?p) ^ unterrichtet_Vorlesung(?p, ?m) ^ AnzahlSWS(?m, ?a)  ˚
sqwrl:makeSet(?s, ?a) ^ sqwrl:groupBy(?s, ?p) ˚
sqwrl:sum(?sum, ?s) ˚  ^ swrlb:lessThan(?sum, 16)   → 
 sqwrl:select(?sum, ?p)

Documentation of SQWRL's new collections features (3.4.4+) can be found 
here:

http://protege.cim3.net/cgi-bin/wiki.pl?CollectionsSQWRL

Martin

Hakan BULU wrote:
> you are welcome ;)
>
> On Thu, Jul 22, 2010 at 12:52 PM, Thomas Farrenkopf 
> <Thomas.Farrenkopf at mnd.fh-friedberg.de 
> <mailto:Thomas.Farrenkopf at mnd.fh-friedberg.de>> wrote:
>
>      very good. it seems to work right now. thank you very much!
>
>     Am 22.07.2010 11:41, schrieb Hakan BULU:
>
>         try this one;
>
>         Person(?p) ^ unterrichtet_Vorlesung(?p, ?m) ^ AnzahlSWS(?m,
>         ?a)  ˚ sqwrl:makeSet(?s, ?a) ˚  sqwrl:sum(?sum, ?s) ˚
>          sqwrl:groupBy(?s, ?p) ^ swrlb:lessThan(?sum, 16)   →
>          sqwrl:select(?sum, ?p)
>
>
>         second parameter of groupBy may be incorrect for your system.
>         But i think you shoud use sqwrl:groupBy atom.
>
>         regards.
>
>
>     _______________________________________________
>     protege-owl mailing list
>     protege-owl at lists.stanford.edu <mailto:protege-owl at lists.stanford.edu>
>     https://mailman.stanford.edu/mailman/listinfo/protege-owl
>
>     Instructions for unsubscribing:
>     http://protege.stanford.edu/doc/faq.html#01a.03
>
>
>
>
> -- 
> Hakan BULU
> Ph.D. student in Dokuz Eylul University
> Department of Computer Engineering
> TURKEY
> +90 232 412 79 73
> +90 536 248 49 10
> ------------------------------------------------------------------------
>
> _______________________________________________
> protege-owl mailing list
> protege-owl at lists.stanford.edu
> https://mailman.stanford.edu/mailman/listinfo/protege-owl
>
> Instructions for unsubscribing: http://protege.stanford.edu/doc/faq.html#01a.03
>   




More information about the protege-owl mailing list