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 3.4.8 and SWRL rules

Martin O'Connor martin.oconnor at stanford.edu
Fri Feb 24 09:11:13 PST 2012


The API changed slightly between 3.4.4 and 3.4.8.

cf.http://protege.cim3.net/cgi-bin/wiki.pl?SWRLRuleEngineAPI#nidAX2

All SWRLTab APIs are documented here:

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

Martin

On 2/24/2012 9:06 AM, Maria Koutraki wrote:
> Hi all,
>
> I want to execute some swrl rules throw protege owl-api.
> I use Protege 3.4.8.
> I had written the code before with Protege 3.4.4 owl-api but my code doesn't work in Protege 3.4.8.
>
> Is there any example of how to do this?
>
>
> My code in Protege 3.4.4 owl-api was:
>
> JenaOWLModel  owlModel = ProtegeOWL.createJenaOWLModelFromURI(uri);
> SWRLRuleEngineBridge bridge = BridgeFactory.createBridge("SWRLJessBridge", owlModel);
> bridge = BridgeFactory.createBridge(owlModel);
> bridge.reset();
> bridge.importSWRLRulesAndOWLKnowledge();
> bridge.run();
> bridge.infer();
>
> -- 
> Mary
>
>
> _______________________________________________
> 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