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] Issue with creating SWRLRuleEngineBridge

Reddy lavanyasunilreddy at yahoo.com
Wed Oct 29 10:28:50 PDT 2008



Hi Martin,

Thank you very much. Its working now.

Thanks,
Lavanya.

--- On Wed, 10/29/08, Martin O'Connor <martin.oconnor at stanford.edu> wrote:
From: Martin O'Connor <martin.oconnor at stanford.edu>
Subject: Re: [protege-owl] Issue with creating SWRLRuleEngineBridge
To: protege-owl at lists.stanford.edu
Received: Wednesday, October 29, 2008, 11:50 AM

The JavaDoc lists the location of the SWRLRuleBridge and the  
SWRLRuleEngine, e.g.,

http://protege.stanford.edu/download/prerelease_javadoc_owl/edu/stanford/smi/protegex/owl/swrl/bridge/SWRLRuleEngineBridge.html

Are you importing these?

Martin

Quoting lavanya_k <lavanyasunilreddy at yahoo.com>:

>
> Hi,
>
> I am seeing the following error while using this code:
>
> Exception in thread "main" java.lang.Error: Unresolved
compilation problems:
> 	SWRLRuleEngineBridge cannot be resolved to a type
> 	BridgeFactory cannot be resolved
>
>    String uri = "file:/C:/Project1/Protege_3.4_beta/MH.owl";
>         OWLModel owlModel = ProtegeOWL.createJenaOWLModelFromURI(uri);
>         SWRLRuleEngineBridge bridge =
> BridgeFactory.createBridge("SWRLJessBridge", owlModel);
>
> I am importing the following:
>
> import edu.stanford.smi.protegex.owl.ProtegeOWL;
> import edu.stanford.smi.protegex.owl.jena.JenaOWLModel;
> import edu.stanford.smi.protegex.owl.model.*;
> import edu.stanford.smi.protegex.owl.swrl.*;
>
> import java.io.File;
> import java.util.Collection;
> import java.util.Iterator;
>
> I am using Eclipse and have added all the JAR files in the class path.
> I am able to read and create Instances to the Ontology successfully using
> API.
>
> Can you pls. let me know what I am missing.
> I appreciate any help.
>
> Thanks,
> Lavanya.
>
> --
> View this message in context:   
>
http://www.nabble.com/Issue-with-creating-SWRLRuleEngineBridge-tp20229043p20229043.html
> Sent from the Protege - OWL mailing list archive at Nabble.com.
>
> _______________________________________________
> 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




      __________________________________________________________________
Yahoo! Canada Toolbar: Search from anywhere on the web, and bookmark your favourite sites. Download it now at
http://ca.toolbar.yahoo.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.stanford.edu/pipermail/protege-owl/attachments/20081029/14880257/attachment.html>


More information about the protege-owl mailing list