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] SQWRL queries in another OWL file

Ely Edison Matos ely.matos at ufjf.edu.br
Mon Jan 7 17:49:47 PST 2008


Hello,
Thanks, Thusitha. I thought of error associated with the mixed ontologies.
I've not noticed the related bug.

Thanks,
Ely

----- Original Message ----- 
From: "Thusitha Mabotuwana" <thusitha at cs.auckland.ac.nz>
To: <protege-owl at lists.stanford.edu>
Sent: Monday, January 07, 2008 5:40 PM
Subject: Re: [protege-owl] SQWRL queries in another OWL file


> sqwrl.exceptions.InvalidQueryNameException for valid query? -
>
https://mailman.stanford.edu/pipermail/protege-owl/2007-December/005205.html
>
>
>
>
> Quoting Ely Edison Matos <ely.matos at ufjf.edu.br>:
>
> > Hello,
> > Sorry by the old and persistent question...
> >
> > I have a OWL file with my ontology (with individuals) and another OWL
file
> > with SQWRL queries. This queries are to be applied on the ontology.
> > BUT...the ontology is built at runtime...so, I add code to "import" the
file
> > with queries. A sample code:
> >
> > owlModel =....already created...
> > String uriRules = "file:///E:/temp/queries.owl";
> > //create the ImportHelper
> > ImportHelper importHelper = new ImportHelper((JenaOWLModel)owlModel);
> > owlModel.getNamespaceManager().setPrefix(new
> > URI("file:///E:/temp/queries.owl#"), "query");
> > importHelper.addImport(URI.create(uriRules));
> > try {
> >         //do the actual import
> >         importHelper.importOntologies(false);
> > } catch (Exception e) {
> >         e.printStackTrace();
> > }
> > SQWRLQueryEngine queryEngine = SQWRLQueryEngineFactory.create(owlModel);
> > SQWRLResult result = queryEngine.getSQWRLResult("QPar");
<-----generate a
> >
exception...edu.stanford.smi.protegex.owl.swrl.sqwrl.exceptions.InvalidQuery
NameException
> >
> > How can I reference a "QPar" rule defined in rules file
> > (file:///E:/temp/queries.owl) ?
> >
> > Thanks,
> > Ely
> >
> > _______________________________________________
> > 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