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] query using SWRLImp in Java program

wassim bouaziz wassim.bouaziz at univ-tlse1.fr
Mon Feb 2 01:21:01 PST 2009


hi,
I found in previous discussions that this exception is fixed, but when I 
try to run the query I have this exception :

Rule engine 'SWRLJessBridge' registered with the SWRLTab bridge.
2 févr. 2009 09:51:00 
edu.stanford.smi.protegex.owl.swrl.bridge.BridgeFactory registerBridge
INFO: Rule engine 'SWRLJessBridge' registered with the SWRLTab bridge.
edu.stanford.smi.protegex.owl.swrl.sqwrl.exceptions.SQWRLException: 
error running SQWRL queries: Jess reported an error in routine 
invokeSWRLBuiltIn
    while executing (invokeSWRLBuiltIn "HJA" 
"http://sqwrl.stanford.edu/ontologies/built-ins/3.4/sqwrl.owl#select" 0 
false 
?http://www.univ-tlse1.fr/ceriss/soc/perso/bouaziz/ontology/ProOnto.owl#p)
    while executing rule LHS (Node2)
    while executing rule LHS (TECT)
    while executing (assert 
(MAIN::http://www.univ-tlse1.fr/ceriss/soc/perso/bouaziz/ontology/ProOnto.owl#AbstractAction 
(name 
http://www.univ-tlse1.fr/ceriss/soc/perso/bouaziz/ontology/ProOnto.owl#C.Receive_CFP))).
  Message: error invoking built-in from Jess: exception thrown by 
built-in 'sqwrl:select' in rule 'HJA': attempt to add data beyond the 
end of a row.
  Program text: ( assert ( 
http://www.univ-tlse1.fr/ceriss/soc/perso/bouaziz/ontology/ProOnto.owl#AbstractAction 
( name 
http://www.univ-tlse1.fr/ceriss/soc/perso/bouaziz/ontology/ProOnto.owl#C.Receive_CFP 
) ) )  at line 1.
    at 
edu.stanford.smi.protegex.owl.swrl.bridge.impl.AbstractSWRLRuleEngineBridge.runSQWRLQueries(Unknown 
Source)
    at Extraction.main(Extraction.java:35)

Here is the query :
SWRLImp imp = factory.createImp("HJA", "AbstractAction(?p)-> 
sqwrl:select(?p)");
               
                System.out.println("H1");
                SQWRLQueryEngine queryEngine = 
SQWRLQueryEngineFactory.create(owlModel);
                queryEngine.runSQWRLQueries();

//throws an exception at the last line.
//


/Can one tell me how to resolve this?
//
//Thanks,
//Wassim
/

-- 
-------------------------------------------------------------------------------
Wassim BOUAZIZ, PHD Student in Computer Science
UT1/IRIT/ Cooperative MultiAgent System(SMAC)
Phone: +33 (0)561633563 - Office 369, Arsenal
Mail: wassim.bouaziz at univ-tlse1.fr || wbouaziz at irit.fr
-------------------------------------------------------------------------------




More information about the protege-owl mailing list