Fwd: Error occurred while running the Drool

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Fwd: Error occurred while running the Drool

claire qiu

Hi,

I built an ontology using protege, and also create a rule in SWRLTab. After click the Drool button, the error occurred:


2017-06-23 15:38:12.701 [AWT-EventQueue-0] ERROR ProtegeApplication    Uncaught Exception in thread 'AWT-EventQueue-0'
java.lang.IllegalArgumentException: could not resolve an OWL data range from a Drools data range with id rdfs:Literal
at org.swrlapi.drools.converters.id.DroolsOWLDataRangeHandler.resolveOWLDataRange(DroolsOWLDataRangeHandler.java:65) ~[na:na]
at org.swrlapi.drools.factory.DefaultDroolsOWLAxiomExtractor.extract(DefaultDroolsOWLAxiomExtractor.java:278) ~[na:na]
at org.swrlapi.drools.owl.axioms.DPRA.extract(DPRA.java:37) ~[na:na]
at org.swrlapi.drools.owl.axioms.DPRA.extract(DPRA.java:15) ~[na:na]
at org.swrlapi.drools.core.DroolsSWRLRuleEngine.writeInferredOWLAxiomsToBridge(DroolsSWRLRuleEngine.java:360) ~[na:na]
at org.swrlapi.drools.core.DroolsSWRLRuleEngine.runRuleEngine(DroolsSWRLRuleEngine.java:225) ~[na:na]

I have checked my ontology, I did not find any data range with id rdfs:Literal.

Can anybody please give me some insights about what could be wrong with my modelling?


Thanks a lot!

Best,
Haonan


_______________________________________________
protege-user mailing list
[hidden email]
https://mailman.stanford.edu/mailman/listinfo/protege-user
Reply | Threaded
Open this post in threaded view
|

Re: Error occurred while running the Drool

Martin O'Connor-2

Are you using the latest Protege 5.2.0 and SWRLTab 2.0.0?

If so and you still have the error please email me the offending ontology.

Martin

On Jun 23, 2017, at 6:55 AM, claire Qiu <[hidden email]> wrote:


Hi,

I built an ontology using protege, and also create a rule in SWRLTab. After click the Drool button, the error occurred:


2017-06-23 15:38:12.701 [AWT-EventQueue-0] ERROR ProtegeApplication    Uncaught Exception in thread 'AWT-EventQueue-0'
java.lang.IllegalArgumentException: could not resolve an OWL data range from a Drools data range with id rdfs:Literal
at org.swrlapi.drools.converters.id.DroolsOWLDataRangeHandler.resolveOWLDataRange(DroolsOWLDataRangeHandler.java:65) ~[na:na]
at org.swrlapi.drools.factory.DefaultDroolsOWLAxiomExtractor.extract(DefaultDroolsOWLAxiomExtractor.java:278) ~[na:na]
at org.swrlapi.drools.owl.axioms.DPRA.extract(DPRA.java:37) ~[na:na]
at org.swrlapi.drools.owl.axioms.DPRA.extract(DPRA.java:15) ~[na:na]
at org.swrlapi.drools.core.DroolsSWRLRuleEngine.writeInferredOWLAxiomsToBridge(DroolsSWRLRuleEngine.java:360) ~[na:na]
at org.swrlapi.drools.core.DroolsSWRLRuleEngine.runRuleEngine(DroolsSWRLRuleEngine.java:225) ~[na:na]

I have checked my ontology, I did not find any data range with id rdfs:Literal.

Can anybody please give me some insights about what could be wrong with my modelling?


Thanks a lot!

Best,
Haonan

_______________________________________________
protege-user mailing list
[hidden email]
https://mailman.stanford.edu/mailman/listinfo/protege-user


_______________________________________________
protege-user mailing list
[hidden email]
https://mailman.stanford.edu/mailman/listinfo/protege-user
Reply | Threaded
Open this post in threaded view
|

Re: Error occurred while running the Drool

Martin O'Connor-2

I found the source of this bug. A new 2.0.1 version of the SWRLTab plugin in available with the fix. 

Download via File->Check for plugins… menu item.

Martin

On Jun 23, 2017, at 8:56 AM, Martin O'Connor <[hidden email]> wrote:


Are you using the latest Protege 5.2.0 and SWRLTab 2.0.0?

If so and you still have the error please email me the offending ontology.

Martin

On Jun 23, 2017, at 6:55 AM, claire Qiu <[hidden email]> wrote:


Hi,

I built an ontology using protege, and also create a rule in SWRLTab. After click the Drool button, the error occurred:


2017-06-23 15:38:12.701 [AWT-EventQueue-0] ERROR ProtegeApplication    Uncaught Exception in thread 'AWT-EventQueue-0'
java.lang.IllegalArgumentException: could not resolve an OWL data range from a Drools data range with id rdfs:Literal
at org.swrlapi.drools.converters.id.DroolsOWLDataRangeHandler.resolveOWLDataRange(DroolsOWLDataRangeHandler.java:65) ~[na:na]
at org.swrlapi.drools.factory.DefaultDroolsOWLAxiomExtractor.extract(DefaultDroolsOWLAxiomExtractor.java:278) ~[na:na]
at org.swrlapi.drools.owl.axioms.DPRA.extract(DPRA.java:37) ~[na:na]
at org.swrlapi.drools.owl.axioms.DPRA.extract(DPRA.java:15) ~[na:na]
at org.swrlapi.drools.core.DroolsSWRLRuleEngine.writeInferredOWLAxiomsToBridge(DroolsSWRLRuleEngine.java:360) ~[na:na]
at org.swrlapi.drools.core.DroolsSWRLRuleEngine.runRuleEngine(DroolsSWRLRuleEngine.java:225) ~[na:na]

I have checked my ontology, I did not find any data range with id rdfs:Literal.

Can anybody please give me some insights about what could be wrong with my modelling?


Thanks a lot!

Best,
Haonan

_______________________________________________
protege-user mailing list
[hidden email]
https://mailman.stanford.edu/mailman/listinfo/protege-user



_______________________________________________
protege-user mailing list
[hidden email]
https://mailman.stanford.edu/mailman/listinfo/protege-user