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] protege owl api: problem with swrl rules

Martin O'Connor martin.oconnor at stanford.edu
Wed Oct 1 14:15:20 PDT 2008


Can you send me the offending ontology.

Martin

Suja Ramachandran wrote:

>Hi,
>Thanks for your reply. But is there no way that i can execute my already 
>written swrl rules from the application?
>
>I read that Jena model of Pellet reasoner will automatically execute SWRL 
>rules. I tried that ; but it also doesn't seem to work...
>What can be the solution?
>
>regards,
>Suja
>----- Original Message ----- 
>From: "António Amado" <aca at uninova.pt>
>To: "User support for the Protege-OWL editor" 
><protege-owl at mailman.stanford.edu>
>Sent: Tuesday, September 30, 2008 4:29 PM
>Subject: Re: [protege-owl] protege owl api: problem with swrl rules
>
>
>  
>
>>Hello,
>>
>>In my app, if I use the method createJenaOWLModelFromInputStream and the
>>ontology, in protege 3.3 (I never use version 3.4), have the SWRLTab
>>activated, this method would return an exception. So I removed the
>>SWRLTab, and implement all the rules in the application I'm developing.
>>I don't know if this solves your problem, but I hope it helps.
>>
>>regards,
>>António Amado
>>
>>    
>>
>>>Hi all,
>>>I am writing an application using protege owl api . (protege 3.4 beta) . 
>>>I
>>>'ve written some SWRL rules (which do not use built-ins) using SWRLTab in
>>>Protege gui. I loaded the owl file (using
>>>createJenaOWLmodelFromInputStream) into the application. Now i want to
>>>execute those rules with Jess (Jess7.1p1) from my application. For that I
>>>wrote the following code:
>>>
>>>SWRLRuleEngineBridge bridge = null ;
>>>
>>>
>>>try {
>>>
>>>bridge = BridgeFactory.createBridge("SWRLJessBridge", owlModel);
>>>
>>>} catch (SWRLRuleEngineBridgeException e) {
>>>
>>>// TODO Auto-generated catch block
>>>
>>>System.out.println("Exxeption for Rule engine bridge");
>>>
>>>e.printStackTrace();
>>>
>>>}
>>>
>>>bridge.reset();
>>>
>>>bridge.infer();
>>>
>>>System.out.println("Imported
>>>individuals.."+bridge.getNumberOfImportedIndividuals());
>>>
>>>System.out.println("Imported
>>>..axioms"+bridge.getNumberOfImportedAxioms());
>>>
>>>System.out.println("Inferred axioms"+ 
>>>bridge.getNumberOfInferredAxioms());
>>>
>>>
>>>
>>>--The problem is that now I am getting "Inferred Axioms = 0"; where jess
>>>used to infer some 30 axioms when executed through the Jess tab in 
>>>protege
>>>GUI.
>>>
>>>The number of imported axioms and individuals are same in both cases.
>>>
>>>Can anybody plzz point out where I had gone wrong?
>>>
>>>thanks n regards,
>>>
>>>Suja
>>>
>>>
>>>
>>>
>>>_______________________________________________
>>>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
>>>
>>>      
>>>
>>_______________________________________________
>>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
>>
>>    
>>
>
>
>_______________________________________________
>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