[Pellet-users] Applying SWRL rules using OWLAPI

Koh Shu Lin kohshulin at hotmail.com
Fri Jul 4 08:29:08 UTC 2008


Hi guys,1) I was trying to add a SWRL rule into my ontology using Protege and test it out with a program using OWLAPI. I just want to see whether my rules has been applied. However from the results, it does not seem that the rule has been executed. So, my question is how can I execute the rule using OWLAPI? Outcome after running the program: ObjectProperties: {hasDeliveryInfo=[ChenPo_deliveryInfo], manufacturingLeadTime=[ChenPo_manufacturingLeadTime]}DataProperties: {hasIncoterms=['CSCW'^^string]} Expected outcome: ObjectProperties: {hasDeliveryInfo=[ChenPo_deliveryInfo], manufacturingLeadTime=[ChenPo_manufacturingLeadTime], hasOrderLeadTime=[ChenPo_manufacturingLeadTime]}DataProperties: {hasIncoterms=['CSCW'^^string]} 2) When I pasted my ontology codes into the Pellet online demo, I realised that my ontology becomes a OWL FULL (after adding SWRL into my ontology) which previously it was a OWL DL type. Can explain why that happens and is it possible to keep my ontology as OWL
  DL type while having SWRL rules? Attached are my ontology and program source codes. Regards,Shu Lin
_________________________________________________________________
Help Splitzo Sally Before It’s Too Late! 
http://www.thegirlwhosplitinto5.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.owldl.com/pipermail/pellet-users/attachments/20080704/ebe64f51/attachment-0001.htm 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: Testing1.java
Url: http://lists.owldl.com/pipermail/pellet-users/attachments/20080704/ebe64f51/attachment-0002.diff 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: TestOntology1.owl
Url: http://lists.owldl.com/pipermail/pellet-users/attachments/20080704/ebe64f51/attachment-0003.diff 


More information about the Pellet-users mailing list