[Pellet-users] swrl Rule problem

martin.kardos.pego at pegonet.sk martin.kardos.pego at pegonet.sk
Wed Apr 16 10:32:42 UTC 2008


Hi Alex,

 so I have to define new datatype property hasWeight? Because Weight is
datatype property in Domain Man with range int. So when I create instance
of Man I fill property weight so I tought that
swrlb:greaterThan(weight,100) is ok but now I don't know how to do?
hasWeigt has to be no datatype but object property, no? Sorry for ma
questions but this is my firs work.

 Thanks
             Matoo

> Hi Matoo,
>
> your model is not properly set up. How do you know to which man the
> weight belongs?
> It should be something like this:
>
> Man(?x) and
> hasWeight(?x,?y) and
> swrlb:greaterThan(?y, 100)
> => ObeseMan(?x)
>
> hasWeight has to be a datatype property.
>
> Hope this helps.
>
> --
> Bye
> Alex
>
> on Monday, April 14, 2008 at 12:33 martin pego wrote:
>
>> Helo,
>
>>  I am beginner in creating Ontology and SWRL rules. I use Protege
>> 3.4beta
>> to create ontology and rule and in application Jena+Pellet. I create in
>> my ontology class Man and int datatype property "weight" and subClass
>> ObeseMan.
>> In SWRL I tried create rule:
>> Man(?x) "conjuct" swrlb:greaterThan(weight, 100) => ObeseMan(?x)
>> Then I create some instance of Man which realized this rule and in my
>> application I tried print to output instance of ObeseMan and results are
>> nothing. I don't know how activates this my SWRL rule in my application
>> and if  it's correct?
>
>>   Could you help me, please
>
>>               Thanks
>
>>          Matoo
>
>
>> _______________________________________________
>> Pellet-users mailing list
>> Pellet-users at lists.owldl.com
>> http://lists.owldl.com/mailman/listinfo/pellet-users
>> _______________________________________________
>
>> Sponsored by Clark & Parsia, LLC http://clarkparsia.com/
>
>
>
>
>
>
>
> _______________________________________________
> Pellet-users mailing list
> Pellet-users at lists.owldl.com
> http://lists.owldl.com/mailman/listinfo/pellet-users
> _______________________________________________
>
> Sponsored by Clark & Parsia, LLC http://clarkparsia.com/




More information about the Pellet-users mailing list