Error at Java Program using SWRL + Jess

6 messages Options
Embed this post
Permalink
Ely Edison Matos

Error at Java Program using SWRL + Jess

Reply Threaded More More options
Print post
Permalink
Some javascript/style in this post has been disabled (why?)
Hello,
I'm getting a error when applying rules to a ontology via a Java program, using SWRL and Jess. Partial output is:
 
...
Rule engine 'SWRLJessBridge' registered with the SWRLTab bridge.
edu.stanford.smi.protegex.owl.swrl.bridge.jess.exceptions.SWRLJessBridgeExceptio
n: Jess reported an error in routine invokeSWRLBuiltIn
        while executing (invokeSWRLBuiltIn "Def-hasBiologicalVariable" "http://w
ww.w3.org/2003/11/swrlb#stringEqualIgnoreCase" 0 false ?x2 ?x4)
        while executing rule LHS (Node2)
        while executing rule LHS (Node2)
        while executing rule LHS (Node2)
        while executing rule LHS (Node2)
        while executing rule LHS (MTELN)
        while executing rule LHS (TECT)
        while executing (assert (MAIN::http://celo.mmc.br/ontologies/celo.o
wl#hasName http://celo.mmc.br/ontologies/celo.owl#Myoplasm "myoplasm")).
  Message: Error during execution.
  Program text: ( assert ( http://celo.mmc.br/ontologies/celo.owl#hasName h
ttp://celo.mmc.br/ontologies/celo.owl#Myoplasm "myoplasm" ) )  at line 1.
        at edu.stanford.smi.protegex.owl.swrl.bridge.jess.SWRLJessBridge.execute
Commands(Unknown Source)
        at edu.stanford.smi.protegex.owl.swrl.bridge.jess.SWRLJessBridge.defineA
xiom(Unknown Source)
        at edu.stanford.smi.protegex.owl.swrl.bridge.impl.AbstractSWRLRuleEngine
Bridge.exportAxioms(Unknown Source)
        at edu.stanford.smi.protegex.owl.swrl.bridge.impl.AbstractSWRLRuleEngine
Bridge.exportSWRLRulesAndOWLKnowledge(Unknown Source)
        at edu.stanford.smi.protegex.owl.swrl.bridge.impl.AbstractSWRLRuleEngine
Bridge.importSWRLRulesAndOWLKnowledge(Unknown Source)
        at edu.stanford.smi.protegex.owl.swrl.bridge.impl.AbstractSWRLRuleEngine
Bridge.infer(Unknown Source)
        at edu.stanford.smi.protegex.owl.swrl.bridge.impl.AbstractSWRLRuleEngine
Bridge.infer(Unknown Source)
...
This rule is defined as (copied from Protege SWRL Rules Tab):
celo:Variable(?x1)  ∧  celo:hasDetail(?x1, ?x2)  ∧  celo:BiologicalEntity(?x3)  ∧  celo:hasName(?x3, ?x4)  ∧  swrlb:stringEqualIgnoreCase(?x2, ?x4) → celo:hasDomainEntity(?x1, ?x3)
 
the imports related with SWRL are:
import edu.stanford.smi.protegex.owl.swrl.bridge.exceptions.SWRLRuleEngineBridgeException;
import edu.stanford.smi.protegex.owl.swrl.bridge.jess.*;
import edu.stanford.smi.protegex.owl.swrl.model.SWRLBuiltin;
import edu.stanford.smi.protegex.owl.swrl.model.SWRLFactory;
import edu.stanford.smi.protegex.owl.swrl.model.SWRLImp;
import edu.stanford.smi.protegex.owl.swrl.model.SWRLIndividual;
I think of a error related to Builtins, but I cannot figure what. I hope someone can help...:-)))
 
Thanks,
Ely
 
 

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

Instructions for unsubscribing: http://protege.stanford.edu/doc/faq.html#01a.03
Martin O'Connor

Re: Error at Java Program using SWRL + Jess

Reply Threaded More More options
Print post
Permalink
The exception is truncated. Can you post the full stack trace.

Martin

----- Original Message -----
From: "Ely Edison Matos" <[hidden email]>
To: [hidden email]
Sent: Wednesday, November 11, 2009 6:51:00 PM GMT -08:00 Tijuana / Baja California
Subject: [protege-owl] Error at Java Program using SWRL + Jess



Hello,
I'm getting a error when applying rules to a ontology via a Java program, using SWRL and Jess. Partial output is:

...
Rule engine 'SWRLJessBridge' registered with the SWRLTab bridge.
edu.stanford.smi.protegex.owl.swrl.bridge.jess.exceptions.SWRLJessBridgeExceptio
n: Jess reported an error in routine invokeSWRLBuiltIn
while executing (invokeSWRLBuiltIn "Def-hasBiologicalVariable" " http://w 
ww.w3.org/2003/11/swrlb#stringEqualIgnoreCase" 0 false ?x2 ?x4)
while executing rule LHS (Node2)
while executing rule LHS (Node2)
while executing rule LHS (Node2)
while executing rule LHS (Node2)
while executing rule LHS (MTELN)
while executing rule LHS (TECT)
while executing (assert (MAIN::http://celo.mmc.br/ontologies/celo.o 
wl#hasName http://celo.mmc.br/ontologies/celo.owl#Myoplasm "myoplasm")).
Message: Error during execution.
Program text: ( assert ( http://celo.mmc.br/ontologies/celo.owl#hasName h
ttp://celo.mmc.br/ontologies/celo.owl#Myoplasm "myoplasm" ) ) at line 1.
at edu.stanford.smi.protegex.owl.swrl.bridge.jess.SWRLJessBridge.execute
Commands(Unknown Source)
at edu.stanford.smi.protegex.owl.swrl.bridge.jess.SWRLJessBridge.defineA
xiom(Unknown Source)
at edu.stanford.smi.protegex.owl.swrl.bridge.impl.AbstractSWRLRuleEngine
Bridge.exportAxioms(Unknown Source)
at edu.stanford.smi.protegex.owl.swrl.bridge.impl.AbstractSWRLRuleEngine
Bridge.exportSWRLRulesAndOWLKnowledge(Unknown Source)
at edu.stanford.smi.protegex.owl.swrl.bridge.impl.AbstractSWRLRuleEngine
Bridge.importSWRLRulesAndOWLKnowledge(Unknown Source)
at edu.stanford.smi.protegex.owl.swrl.bridge.impl.AbstractSWRLRuleEngine
Bridge.infer(Unknown Source)
at edu.stanford.smi.protegex.owl.swrl.bridge.impl.AbstractSWRLRuleEngine
Bridge.infer(Unknown Source)
...

This rule is defined as (copied from Protege SWRL Rules Tab):
celo:Variable(?x1) ∧ celo:hasDetail(?x1, ?x2) ∧ celo:BiologicalEntity(?x3) ∧ celo:hasName(?x3, ?x4) ∧ swrlb:stringEqualIgnoreCase(?x2, ?x4) → celo:hasDomainEntity(?x1, ?x3)

the imports related with SWRL are:
import edu.stanford.smi.protegex.owl.swrl.bridge.exceptions.SWRLRuleEngineBridgeException;
import edu.stanford.smi.protegex.owl.swrl.bridge.jess.*;
import edu.stanford.smi.protegex.owl.swrl.model.SWRLBuiltin;
import edu.stanford.smi.protegex.owl.swrl.model.SWRLFactory;
import edu.stanford.smi.protegex.owl.swrl.model.SWRLImp;
import edu.stanford.smi.protegex.owl.swrl.model.SWRLIndividual;

I think of a error related to Builtins, but I cannot figure what. I hope someone can help...:-)))

Thanks,
Ely


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

Instructions for unsubscribing: http://protege.stanford.edu/doc/faq.html#01a.03
_______________________________________________
protege-owl mailing list
[hidden email]
https://mailman.stanford.edu/mailman/listinfo/protege-owl

Instructions for unsubscribing: http://protege.stanford.edu/doc/faq.html#01a.03
Ely Edison Matos

[POSSIBLE VIRUS:###] Re: Error at Java Program using SWRL + Jess

Reply Threaded More More options
Print post
Permalink
Some javascript/style in this post has been disabled (why?)

Hello Martin,
thanks for help.
 
I'm attaching a zip file with the Java program, the OWL file, the rules and the output of program execution (reproduced below).
I forgot to say that I have tested with Protege 3.4_beta and 3.4.1 (it works only at IDE). I don't know about support for SWRL at Protege 4.0 yet.
 
Thanks,
Ely
 
set JARS="C:/Program Files/Protege_3.4.1/*";"C:/Program Files/Protege_3.4.1/plugins/edu.stanford.smi.protegex.owl/*";"C:/Program Files/Protege_3.4.1/plugins/edu.stanford.smi.protegex.owl.inference.pellet/*";
 
Protege 3.4.1 Build 537, JVM 1.6.0_10-ea-b07, memory=532M, Windows 2003, encodin
g=UTF-8, language=pt, country=BR
Loaded plugin edu.stanford.smi.protegex.owl - OWL Plugin
Loaded plugin ca.uvic.cs.chisel.jambalaya - Jambalaya
Loaded plugin dfki.protege.ontoviz
Loaded plugin edu.stanford.smi.protegex.rdf_backend - RDF Backend
Loaded plugin edu.stanford.smi.protegex.changes - Changes tab
Loaded plugin edu.stanford.smi.protegex.standard_extensions - Graph Widget, Tabl
e Widget
Loaded plugin edu.stanford.smi.protegex.chatPlugin - Chat
Loaded plugin edu.stanford.smi.protege.collab - Collaborative Protege
Loaded plugin edu.stanford.smi.protege.script - Script Plugin
Loaded plugin edu.stanford.smi.protege.stringsearch - String Search Tab
Loaded plugin edu.stanford.smi.protegex.datamaster - DataMaster Tab
Loaded plugin edu.stanford.smi.protegex.pal_tabs - PAL Tabs
Loaded plugin edu.stanford.smi.protegex.ezpal - EZPal Tab
Loaded plugin edu.stanford.smi.protegex.facets_tab
Loaded plugin edu.stanford.smi.protegex.instance_tree
Loaded plugin edu.stanford.smi.protegex.prompt - PROMPT Tab
Loaded plugin edu.stanford.smi.protegex.metaanalysis - MetaAnalysis Tab
Loaded plugin edu.stanford.smi.protegex.owl.inference.pellet - Protege Pellet Re
asoner
Loaded plugin edu.stanford.smi.protegex.umls_tab - UMLS Tab
Loaded plugin edu.stanford.smi.protegex.wordnet - WordNet Tab
Loaded plugin edu.stanford.smi.protegex.xml_tab - XML Tab
Loaded plugin org.algernon - Algernon
Loaded plugin se.liu.ida.JessTab - JessTab Plugin
Loaded plugin uk.ac.iam.soton.akt.tgviztab - TGVizTab
Loaded plugin uk.ac.man.cs.mig.coode.debugger
Loaded plugin uk.ac.man.cs.mig.coode.manchesterowlsyntaxeditor
Loaded plugin uk.ac.man.cs.mig.coode.owldoc
Loaded plugin uk.ac.man.cs.mig.coode.owlindividualstab
Loaded plugin uk.ac.man.cs.mig.coode.owlviz
Loaded plugin uk.ac.man.cs.mig.coode.protege.wizard - Basic Wizards
Loaded plugin uk.ac.man.cs.mig.coode.protege.wizard.owl - OWL Wizards
Loading triples from: file:/e:/Auckland/cellml2owl/hh_1952/membrane_1.owl
    Completed triple loading after 250 ms
Importing http://celo.mmc.ufjf.br/ontologies/celo.owl from location: http://celo
.mmc.ufjf.br/ontologies/celo.owl
Loading triples from: http://celo.mmc.ufjf.br/ontologies/celo.owl
    Completed triple loading after 109 ms
Importing http://swrl.stanford.edu/ontologies/built-ins/3.3/abox.owl from locati
on: C:\Program Files\Protege_3.4_beta\plugins\edu.stanford.smi.protegex.owl\abox
.owl
Loading triples from: http://swrl.stanford.edu/ontologies/built-ins/3.3/abox.owl
 
    Completed triple loading after 0 ms
Importing http://sqwrl.stanford.edu/ontologies/built-ins/3.4/sqwrl.owl from loca
tion: C:\Program Files\Protege_3.4_beta\plugins\edu.stanford.smi.protegex.owl\sq
wrl.owl
Loading triples from: http://sqwrl.stanford.edu/ontologies/built-ins/3.4/sqwrl.o
wl
    Completed triple loading after 0 ms
Importing http://swrl.stanford.edu/ontologies/3.3/swrla.owl from location: C:\Pr
ogram Files\Protege_3.4_beta\plugins\edu.stanford.smi.protegex.owl\swrla.owl
Loading triples from: http://swrl.stanford.edu/ontologies/3.3/swrla.owl
    Completed triple loading after 0 ms
Importing http://swrl.stanford.edu/ontologies/built-ins/3.4/swrlm.owl from locat
ion: C:\Program Files\Protege_3.4_beta\plugins\edu.stanford.smi.protegex.owl\swr
lm.owl
Loading triples from: http://swrl.stanford.edu/ontologies/built-ins/3.4/swrlm.ow
l
    Completed triple loading after 0 ms
Importing http://swrl.stanford.edu/ontologies/built-ins/3.4/swrlxml.owl from loc
ation: C:\Program Files\Protege_3.4_beta\plugins\edu.stanford.smi.protegex.owl\S
WRLXML.owl
Loading triples from: http://swrl.stanford.edu/ontologies/built-ins/3.4/swrlxml.
owl
    Completed triple loading after 16 ms
Importing http://swrl.stanford.edu/ontologies/built-ins/3.3/temporal.owl from lo
cation: C:\Program Files\Protege_3.4_beta\plugins\edu.stanford.smi.protegex.owl\
temporal.owl
Loading triples from: http://swrl.stanford.edu/ontologies/built-ins/3.3/temporal
.owl
    Completed triple loading after 15 ms
Importing http://swrl.stanford.edu/ontologies/built-ins/3.3/swrlx.owl from locat
ion: C:\Program Files\Protege_3.4_beta\plugins\edu.stanford.smi.protegex.owl\swr
lx.owl
Loading triples from: http://swrl.stanford.edu/ontologies/built-ins/3.3/swrlx.ow
l
    Completed triple loading after 0 ms
Importing http://swrl.stanford.edu/ontologies/built-ins/3.3/tbox.owl from locati
on: C:\Program Files\Protege_3.4_beta\plugins\edu.stanford.smi.protegex.owl\tbox
.owl
Loading triples from: http://swrl.stanford.edu/ontologies/built-ins/3.3/tbox.owl
 
    Completed triple loading after 16 ms
Postprocess: Process entities with incorrect Java type (12 entities) ... 0 ms
Postprocess: Process metaclasses (3 metaclasses) ... 0 ms
Postprocess: Process subclasses of rdf:List (1 classes) ... 0 ms
Postprocess: Instances with multiple types (72 instances) ... 0 ms
Postprocess: Add inferred superclasses ... 47 ms
Postprocess: Process orphan classes (95 classes) ... 15 ms
Postprocess: Generalized Concept Inclusion (0 axioms) ... 0 ms
Postprocess: Abstract classes... 0 ms
Postprocess: Domain and range of properties... 16 ms
Postprocess: Possibly typed entities (1 resources) ... 0 ms
Updating underlying frames model in 0 ms
Loading triples from: file:/E:/Auckland/ontologies/celo_rules.owl
    Completed triple loading after 46 ms
Importing http://celo.mmc.ufjf.br/ontologies/celo.owl from location: http://celo
.mmc.ufjf.br/ontologies/celo.owl
Loading triples from: http://celo.mmc.ufjf.br/ontologies/celo.owl
    Completed triple loading after 1125 ms
Importing http://swrl.stanford.edu/ontologies/built-ins/3.3/abox.owl from locati
on: C:\Program Files\Protege_3.4.1\plugins\edu.stanford.smi.protegex.owl\abox.ow
l
Loading triples from: http://swrl.stanford.edu/ontologies/built-ins/3.3/abox.owl
 
    Completed triple loading after 0 ms
Importing http://sqwrl.stanford.edu/ontologies/built-ins/3.4/sqwrl.owl from loca
tion: C:\Program Files\Protege_3.4.1\plugins\edu.stanford.smi.protegex.owl\sqwrl
.owl
Loading triples from: http://sqwrl.stanford.edu/ontologies/built-ins/3.4/sqwrl.o
wl
    Completed triple loading after 0 ms
Importing http://swrl.stanford.edu/ontologies/built-ins/3.4/swrlm.owl from locat
ion: C:\Program Files\Protege_3.4.1\plugins\edu.stanford.smi.protegex.owl\swrlm.
owl
Loading triples from: http://swrl.stanford.edu/ontologies/built-ins/3.4/swrlm.ow
l
    Completed triple loading after 0 ms
Importing http://swrl.stanford.edu/ontologies/built-ins/3.4/swrlxml.owl from loc
ation: C:\Program Files\Protege_3.4.1\plugins\edu.stanford.smi.protegex.owl\SWRL
XML.owl
Loading triples from: http://swrl.stanford.edu/ontologies/built-ins/3.4/swrlxml.
owl
    Completed triple loading after 15 ms
Importing http://swrl.stanford.edu/ontologies/3.3/swrla.owl from location: C:\Pr
ogram Files\Protege_3.4.1\plugins\edu.stanford.smi.protegex.owl\swrla.owl
Loading triples from: http://swrl.stanford.edu/ontologies/3.3/swrla.owl
    Completed triple loading after 0 ms
Importing http://swrl.stanford.edu/ontologies/built-ins/3.3/temporal.owl from lo
cation: C:\Program Files\Protege_3.4.1\plugins\edu.stanford.smi.protegex.owl\tem
poral.owl
Loading triples from: http://swrl.stanford.edu/ontologies/built-ins/3.3/temporal
.owl
    Completed triple loading after 0 ms
Importing http://swrl.stanford.edu/ontologies/built-ins/3.3/swrlx.owl from locat
ion: C:\Program Files\Protege_3.4.1\plugins\edu.stanford.smi.protegex.owl\swrlx.
owl
Loading triples from: http://swrl.stanford.edu/ontologies/built-ins/3.3/swrlx.ow
l
    Completed triple loading after 0 ms
Importing http://swrl.stanford.edu/ontologies/built-ins/3.3/tbox.owl from locati
on: C:\Program Files\Protege_3.4.1\plugins\edu.stanford.smi.protegex.owl\tbox.ow
l
Loading triples from: http://swrl.stanford.edu/ontologies/built-ins/3.3/tbox.owl
 
    Completed triple loading after 16 ms
Postprocess: Process entities with incorrect Java type (4 entities) ... 0 ms
Postprocess: Process metaclasses (3 metaclasses) ... 0 ms
Postprocess: Process subclasses of rdf:List (1 classes) ... 0 ms
Postprocess: Instances with multiple types (91 instances) ... 16 ms
Postprocess: Add inferred superclasses ... 0 ms
Postprocess: Process orphan classes (121 classes) ... 0 ms
Postprocess: Generalized Concept Inclusion (0 axioms) ... 0 ms
Postprocess: Abstract classes... 0 ms
Postprocess: Domain and range of properties... 0 ms
Postprocess: Possibly typed entities (1 resources) ... 0 ms
Updating underlying frames model in 0 ms
Rule engine 'SWRLJessBridge' registered with the SWRLTab bridge.
edu.stanford.smi.protegex.owl.swrl.bridge.jess.exceptions.SWRLJessBridgeExceptio
n: Jess reported an error in routine invokeSWRLBuiltIn
        while executing (invokeSWRLBuiltIn "Def-hasBiologicalVariable" "http://w
ww.w3.org/2003/11/swrlb#stringEqualIgnoreCase" 0 false ?x2 ?x4)
        while executing rule LHS (Node2)
        while executing rule LHS (Node2)
        while executing rule LHS (Node2)
        while executing rule LHS (Node2)
        while executing rule LHS (MTELN)
        while executing rule LHS (TECT)
        while executing (assert (MAIN::http://celo.mmc.ufjf.br/ontologies/celo.o
wl#hasDetail http://celo.mmc.ufjf.br/owl/hh_1952/membrane#membrane_i_K "-")).
  Message: Error during execution.
  Program text: ( assert ( http://celo.mmc.ufjf.br/ontologies/celo.owl#hasDetail
 http://celo.mmc.ufjf.br/owl/hh_1952/membrane#membrane_i_K "-" ) )  at line 1.
        at edu.stanford.smi.protegex.owl.swrl.bridge.jess.SWRLJessBridge.execute
Commands(Unknown Source)
        at edu.stanford.smi.protegex.owl.swrl.bridge.jess.SWRLJessBridge.defineA
xiom(Unknown Source)
        at edu.stanford.smi.protegex.owl.swrl.bridge.impl.AbstractSWRLRuleEngine
Bridge.exportAxioms(Unknown Source)
        at edu.stanford.smi.protegex.owl.swrl.bridge.impl.AbstractSWRLRuleEngine
Bridge.exportSWRLRulesAndOWLKnowledge(Unknown Source)
        at edu.stanford.smi.protegex.owl.swrl.bridge.impl.AbstractSWRLRuleEngine
Bridge.importSWRLRulesAndOWLKnowledge(Unknown Source)
        at edu.stanford.smi.protegex.owl.swrl.bridge.impl.AbstractSWRLRuleEngine
Bridge.infer(Unknown Source)
        at edu.stanford.smi.protegex.owl.swrl.bridge.impl.AbstractSWRLRuleEngine
Bridge.infer(Unknown Source)
        at br.ufjf.mmc.celo.editor.OWLRules.execute(OWLRules.java:101)
        at br.ufjf.mmc.celo.editor.OWLRules.main(OWLRules.java:43)
 
 
----- Original Message -----
Sent: Thursday, November 12, 2009 2:12 AM
Subject: Re: [protege-owl] Error at Java Program using SWRL + Jess

The exception is truncated. Can you post the full stack trace.

Martin

----- Original Message -----
From: "Ely Edison Matos" <[hidden email]>
To: [hidden email]
Sent: Wednesday, November 11, 2009 6:51:00 PM GMT -08:00 Tijuana / Baja California
Subject: [protege-owl] Error at Java Program using SWRL + Jess



Hello,
I'm getting a error when applying rules to a ontology via a Java program, using SWRL and Jess. Partial output is:

...
Rule engine 'SWRLJessBridge' registered with the SWRLTab bridge.
edu.stanford.smi.protegex.owl.swrl.bridge.jess.exceptions.SWRLJessBridgeExceptio
n: Jess reported an error in routine invokeSWRLBuiltIn
while executing (invokeSWRLBuiltIn "Def-hasBiologicalVariable" " http://w
ww.w3.org/2003/11/swrlb#stringEqualIgnoreCase" 0 false ?x2 ?x4)
while executing rule LHS (Node2)
while executing rule LHS (Node2)
while executing rule LHS (Node2)
while executing rule LHS (Node2)
while executing rule LHS (MTELN)
while executing rule LHS (TECT)
while executing (assert (MAIN::http://celo.mmc.br/ontologies/celo.o
wl#hasName http://celo.mmc.br/ontologies/celo.owl#Myoplasm "myoplasm")).
Message: Error during execution.
Program text: ( assert ( http://celo.mmc.br/ontologies/celo.owl#hasName h
ttp://celo.mmc.br/ontologies/celo.owl#Myoplasm "myoplasm" ) ) at line 1.
at edu.stanford.smi.protegex.owl.swrl.bridge.jess.SWRLJessBridge.execute
Commands(Unknown Source)
at edu.stanford.smi.protegex.owl.swrl.bridge.jess.SWRLJessBridge.defineA
xiom(Unknown Source)
at edu.stanford.smi.protegex.owl.swrl.bridge.impl.AbstractSWRLRuleEngine
Bridge.exportAxioms(Unknown Source)
at edu.stanford.smi.protegex.owl.swrl.bridge.impl.AbstractSWRLRuleEngine
Bridge.exportSWRLRulesAndOWLKnowledge(Unknown Source)
at edu.stanford.smi.protegex.owl.swrl.bridge.impl.AbstractSWRLRuleEngine
Bridge.importSWRLRulesAndOWLKnowledge(Unknown Source)
at edu.stanford.smi.protegex.owl.swrl.bridge.impl.AbstractSWRLRuleEngine
Bridge.infer(Unknown Source)
at edu.stanford.smi.protegex.owl.swrl.bridge.impl.AbstractSWRLRuleEngine
Bridge.infer(Unknown Source)
...

This rule is defined as (copied from Protege SWRL Rules Tab):
celo:Variable(?x1) ∧ celo:hasDetail(?x1, ?x2) ∧ celo:BiologicalEntity(?x3) ∧ celo:hasName(?x3, ?x4) ∧ swrlb:stringEqualIgnoreCase(?x2, ?x4) → celo:hasDomainEntity(?x1, ?x3)

the imports related with SWRL are:
import edu.stanford.smi.protegex.owl.swrl.bridge.exceptions.SWRLRuleEngineBridgeException;
import edu.stanford.smi.protegex.owl.swrl.bridge.jess.*;
import edu.stanford.smi.protegex.owl.swrl.model.SWRLBuiltin;
import edu.stanford.smi.protegex.owl.swrl.model.SWRLFactory;
import edu.stanford.smi.protegex.owl.swrl.model.SWRLImp;
import edu.stanford.smi.protegex.owl.swrl.model.SWRLIndividual;

I think of a error related to Builtins, but I cannot figure what. I hope someone can help...:-)))

Thanks,
Ely


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

Instructions for unsubscribing: http://protege.stanford.edu/doc/faq.html#01a.03


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

Instructions for unsubscribing: http://protege.stanford.edu/doc/faq.html#01a.03

swrl.zip (12K) Download Attachment
Martin O'Connor

Re: [POSSIBLE VIRUS:###] Re: Error at Java Program using SWRL + Jess

Reply Threaded More More options
Print post
Permalink
I tested celo_rules.owl interactively in the SWRLJessTab and it does not
throw any exceptions

Does this only fail from the Java application?

Martin

 Ely Edison Matos wrote:

> Hello Martin,
> thanks for help.
>  
> I'm attaching a zip file with the Java program, the OWL file, the
> rules and the output of program execution (reproduced below).
> I forgot to say that I have tested with Protege 3.4_beta and 3.4.1 (it
> works only at IDE). I don't know about support for SWRL at Protege 4.0
> yet.
>  
> Thanks,
> Ely
>  
> set JARS="C:/Program Files/Protege_3.4.1/*";"C:/Program
> Files/Protege_3.4.1/plugins/edu.stanford.smi.protegex.owl/*";"C:/Program
> Files/Protege_3.4.1/plugins/edu.stanford.smi.protegex.owl.inference.pellet/*";
>  
> Protege 3.4.1 Build 537, JVM 1.6.0_10-ea-b07, memory=532M, Windows
> 2003, encodin
> g=UTF-8, language=pt, country=BR
> Loaded plugin edu.stanford.smi.protegex.owl - OWL Plugin
> Loaded plugin ca.uvic.cs.chisel.jambalaya - Jambalaya
> Loaded plugin dfki.protege.ontoviz
> Loaded plugin edu.stanford.smi.protegex.rdf_backend - RDF Backend
> Loaded plugin edu.stanford.smi.protegex.changes - Changes tab
> Loaded plugin edu.stanford.smi.protegex.standard_extensions - Graph
> Widget, Tabl
> e Widget
> Loaded plugin edu.stanford.smi.protegex.chatPlugin - Chat
> Loaded plugin edu.stanford.smi.protege.collab - Collaborative Protege
> Loaded plugin edu.stanford.smi.protege.script - Script Plugin
> Loaded plugin edu.stanford.smi.protege.stringsearch - String Search Tab
> Loaded plugin edu.stanford.smi.protegex.datamaster - DataMaster Tab
> Loaded plugin edu.stanford.smi.protegex.pal_tabs - PAL Tabs
> Loaded plugin edu.stanford.smi.protegex.ezpal - EZPal Tab
> Loaded plugin edu.stanford.smi.protegex.facets_tab
> Loaded plugin edu.stanford.smi.protegex.instance_tree
> Loaded plugin edu.stanford.smi.protegex.prompt - PROMPT Tab
> Loaded plugin edu.stanford.smi.protegex.metaanalysis - MetaAnalysis Tab
> Loaded plugin edu.stanford.smi.protegex.owl.inference.pellet - Protege
> Pellet Re
> asoner
> Loaded plugin edu.stanford.smi.protegex.umls_tab - UMLS Tab
> Loaded plugin edu.stanford.smi.protegex.wordnet - WordNet Tab
> Loaded plugin edu.stanford.smi.protegex.xml_tab - XML Tab
> Loaded plugin org.algernon - Algernon
> Loaded plugin se.liu.ida.JessTab - JessTab Plugin
> Loaded plugin uk.ac.iam.soton.akt.tgviztab - TGVizTab
> Loaded plugin uk.ac.man.cs.mig.coode.debugger
> Loaded plugin uk.ac.man.cs.mig.coode.manchesterowlsyntaxeditor
> Loaded plugin uk.ac.man.cs.mig.coode.owldoc
> Loaded plugin uk.ac.man.cs.mig.coode.owlindividualstab
> Loaded plugin uk.ac.man.cs.mig.coode.owlviz
> Loaded plugin uk.ac.man.cs.mig.coode.protege.wizard - Basic Wizards
> Loaded plugin uk.ac.man.cs.mig.coode.protege.wizard.owl - OWL Wizards
> Loading triples from: file:/e:/Auckland/cellml2owl/hh_1952/membrane_1.owl
>     Completed triple loading after 250 ms
> Importing http://celo.mmc.ufjf.br/ontologies/celo.owl from location:
> http://celo
> .mmc.ufjf.br/ontologies/celo.owl
> Loading triples from: http://celo.mmc.ufjf.br/ontologies/celo.owl
>     Completed triple loading after 109 ms
> Importing http://swrl.stanford.edu/ontologies/built-ins/3.3/abox.owl 
> from locati
> on: C:\Program
> Files\Protege_3.4_beta\plugins\edu.stanford.smi.protegex.owl\abox
> .owl
> Loading triples from:
> http://swrl.stanford.edu/ontologies/built-ins/3.3/abox.owl
>  
>     Completed triple loading after 0 ms
> Importing http://sqwrl.stanford.edu/ontologies/built-ins/3.4/sqwrl.owl 
> from loca
> tion: C:\Program
> Files\Protege_3.4_beta\plugins\edu.stanford.smi.protegex.owl\sq
> wrl.owl
> Loading triples from:
> http://sqwrl.stanford.edu/ontologies/built-ins/3.4/sqwrl.o
> wl
>     Completed triple loading after 0 ms
> Importing http://swrl.stanford.edu/ontologies/3.3/swrla.owl from
> location: C:\Pr
> ogram
> Files\Protege_3.4_beta\plugins\edu.stanford.smi.protegex.owl\swrla.owl
> Loading triples from: http://swrl.stanford.edu/ontologies/3.3/swrla.owl
>     Completed triple loading after 0 ms
> Importing http://swrl.stanford.edu/ontologies/built-ins/3.4/swrlm.owl 
> from locat
> ion: C:\Program
> Files\Protege_3.4_beta\plugins\edu.stanford.smi.protegex.owl\swr
> lm.owl
> Loading triples from:
> http://swrl.stanford.edu/ontologies/built-ins/3.4/swrlm.ow
> l
>     Completed triple loading after 0 ms
> Importing
> http://swrl.stanford.edu/ontologies/built-ins/3.4/swrlxml.owl from loc
> ation: C:\Program
> Files\Protege_3.4_beta\plugins\edu.stanford.smi.protegex.owl\S
> WRLXML.owl
> Loading triples from:
> http://swrl.stanford.edu/ontologies/built-ins/3.4/swrlxml.
> owl
>     Completed triple loading after 16 ms
> Importing
> http://swrl.stanford.edu/ontologies/built-ins/3.3/temporal.owl from lo
> cation: C:\Program
> Files\Protege_3.4_beta\plugins\edu.stanford.smi.protegex.owl\
> temporal.owl
> Loading triples from:
> http://swrl.stanford.edu/ontologies/built-ins/3.3/temporal
> .owl
>     Completed triple loading after 15 ms
> Importing http://swrl.stanford.edu/ontologies/built-ins/3.3/swrlx.owl 
> from locat
> ion: C:\Program
> Files\Protege_3.4_beta\plugins\edu.stanford.smi.protegex.owl\swr
> lx.owl
> Loading triples from:
> http://swrl.stanford.edu/ontologies/built-ins/3.3/swrlx.ow
> l
>     Completed triple loading after 0 ms
> Importing http://swrl.stanford.edu/ontologies/built-ins/3.3/tbox.owl 
> from locati
> on: C:\Program
> Files\Protege_3.4_beta\plugins\edu.stanford.smi.protegex.owl\tbox
> .owl
> Loading triples from:
> http://swrl.stanford.edu/ontologies/built-ins/3.3/tbox.owl
>  
>     Completed triple loading after 16 ms
> Postprocess: Process entities with incorrect Java type (12 entities)
> ... 0 ms
> Postprocess: Process metaclasses (3 metaclasses) ... 0 ms
> Postprocess: Process subclasses of rdf:List (1 classes) ... 0 ms
> Postprocess: Instances with multiple types (72 instances) ... 0 ms
> Postprocess: Add inferred superclasses ... 47 ms
> Postprocess: Process orphan classes (95 classes) ... 15 ms
> Postprocess: Generalized Concept Inclusion (0 axioms) ... 0 ms
> Postprocess: Abstract classes... 0 ms
> Postprocess: Domain and range of properties... 16 ms
> Postprocess: Possibly typed entities (1 resources) ... 0 ms
> Updating underlying frames model in 0 ms
> Loading triples from: file:/E:/Auckland/ontologies/celo_rules.owl
>     Completed triple loading after 46 ms
> Importing http://celo.mmc.ufjf.br/ontologies/celo.owl from location:
> http://celo
> .mmc.ufjf.br/ontologies/celo.owl
> Loading triples from: http://celo.mmc.ufjf.br/ontologies/celo.owl
>     Completed triple loading after 1125 ms
> Importing http://swrl.stanford.edu/ontologies/built-ins/3.3/abox.owl 
> from locati
> on: C:\Program
> Files\Protege_3.4.1\plugins\edu.stanford.smi.protegex.owl\abox.ow
> l
> Loading triples from:
> http://swrl.stanford.edu/ontologies/built-ins/3.3/abox.owl
>  
>     Completed triple loading after 0 ms
> Importing http://sqwrl.stanford.edu/ontologies/built-ins/3.4/sqwrl.owl 
> from loca
> tion: C:\Program
> Files\Protege_3.4.1\plugins\edu.stanford.smi.protegex.owl\sqwrl
> .owl
> Loading triples from:
> http://sqwrl.stanford.edu/ontologies/built-ins/3.4/sqwrl.o
> wl
>     Completed triple loading after 0 ms
> Importing http://swrl.stanford.edu/ontologies/built-ins/3.4/swrlm.owl 
> from locat
> ion: C:\Program
> Files\Protege_3.4.1\plugins\edu.stanford.smi.protegex.owl\swrlm.
> owl
> Loading triples from:
> http://swrl.stanford.edu/ontologies/built-ins/3.4/swrlm.ow
> l
>     Completed triple loading after 0 ms
> Importing
> http://swrl.stanford.edu/ontologies/built-ins/3.4/swrlxml.owl from loc
> ation: C:\Program
> Files\Protege_3.4.1\plugins\edu.stanford.smi.protegex.owl\SWRL
> XML.owl
> Loading triples from:
> http://swrl.stanford.edu/ontologies/built-ins/3.4/swrlxml.
> owl
>     Completed triple loading after 15 ms
> Importing http://swrl.stanford.edu/ontologies/3.3/swrla.owl from
> location: C:\Pr
> ogram Files\Protege_3.4.1\plugins\edu.stanford.smi.protegex.owl\swrla.owl
> Loading triples from: http://swrl.stanford.edu/ontologies/3.3/swrla.owl
>     Completed triple loading after 0 ms
> Importing
> http://swrl.stanford.edu/ontologies/built-ins/3.3/temporal.owl from lo
> cation: C:\Program
> Files\Protege_3.4.1\plugins\edu.stanford.smi.protegex.owl\tem
> poral.owl
> Loading triples from:
> http://swrl.stanford.edu/ontologies/built-ins/3.3/temporal
> .owl
>     Completed triple loading after 0 ms
> Importing http://swrl.stanford.edu/ontologies/built-ins/3.3/swrlx.owl 
> from locat
> ion: C:\Program
> Files\Protege_3.4.1\plugins\edu.stanford.smi.protegex.owl\swrlx.
> owl
> Loading triples from:
> http://swrl.stanford.edu/ontologies/built-ins/3.3/swrlx.ow
> l
>     Completed triple loading after 0 ms
> Importing http://swrl.stanford.edu/ontologies/built-ins/3.3/tbox.owl 
> from locati
> on: C:\Program
> Files\Protege_3.4.1\plugins\edu.stanford.smi.protegex.owl\tbox.ow
> l
> Loading triples from:
> http://swrl.stanford.edu/ontologies/built-ins/3.3/tbox.owl
>  
>     Completed triple loading after 16 ms
> Postprocess: Process entities with incorrect Java type (4 entities)
> ... 0 ms
> Postprocess: Process metaclasses (3 metaclasses) ... 0 ms
> Postprocess: Process subclasses of rdf:List (1 classes) ... 0 ms
> Postprocess: Instances with multiple types (91 instances) ... 16 ms
> Postprocess: Add inferred superclasses ... 0 ms
> Postprocess: Process orphan classes (121 classes) ... 0 ms
> Postprocess: Generalized Concept Inclusion (0 axioms) ... 0 ms
> Postprocess: Abstract classes... 0 ms
> Postprocess: Domain and range of properties... 0 ms
> Postprocess: Possibly typed entities (1 resources) ... 0 ms
> Updating underlying frames model in 0 ms
> Rule engine 'SWRLJessBridge' registered with the SWRLTab bridge.
> edu.stanford.smi.protegex.owl.swrl.bridge.jess.exceptions.SWRLJessBridgeExceptio
> n: Jess reported an error in routine invokeSWRLBuiltIn
>         while executing (invokeSWRLBuiltIn "Def-hasBiologicalVariable"
> "http://w
> ww.w3.org/2003/11/swrlb#stringEqualIgnoreCase" 0 false ?x2 ?x4)
>         while executing rule LHS (Node2)
>         while executing rule LHS (Node2)
>         while executing rule LHS (Node2)
>         while executing rule LHS (Node2)
>         while executing rule LHS (MTELN)
>         while executing rule LHS (TECT)
>         while executing (assert
> (MAIN::http://celo.mmc.ufjf.br/ontologies/celo.o
> wl#hasDetail http://celo.mmc.ufjf.br/owl/hh_1952/membrane#membrane_i_K 
> "-")).
>   Message: Error during execution.
>   Program text: ( assert (
> http://celo.mmc.ufjf.br/ontologies/celo.owl#hasDetail
>  http://celo.mmc.ufjf.br/owl/hh_1952/membrane#membrane_i_K "-" ) )  at
> line 1.
>         at
> edu.stanford.smi.protegex.owl.swrl.bridge.jess.SWRLJessBridge.execute
> Commands(Unknown Source)
>         at
> edu.stanford.smi.protegex.owl.swrl.bridge.jess.SWRLJessBridge.defineA
> xiom(Unknown Source)
>         at
> edu.stanford.smi.protegex.owl.swrl.bridge.impl.AbstractSWRLRuleEngine
> Bridge.exportAxioms(Unknown Source)
>         at
> edu.stanford.smi.protegex.owl.swrl.bridge.impl.AbstractSWRLRuleEngine
> Bridge.exportSWRLRulesAndOWLKnowledge(Unknown Source)
>         at
> edu.stanford.smi.protegex.owl.swrl.bridge.impl.AbstractSWRLRuleEngine
> Bridge.importSWRLRulesAndOWLKnowledge(Unknown Source)
>         at
> edu.stanford.smi.protegex.owl.swrl.bridge.impl.AbstractSWRLRuleEngine
> Bridge.infer(Unknown Source)
>         at
> edu.stanford.smi.protegex.owl.swrl.bridge.impl.AbstractSWRLRuleEngine
> Bridge.infer(Unknown Source)
>         at br.ufjf.mmc.celo.editor.OWLRules.execute(OWLRules.java:101)
>         at br.ufjf.mmc.celo.editor.OWLRules.main(OWLRules.java:43)
>  
>  
>
>     ----- Original Message -----
>     *From:* Martin O'Connor <mailto:[hidden email]>
>     *To:* Ely Edison Matos <mailto:[hidden email]> ; User
>     support for the Protege-OWL editor
>     <mailto:[hidden email]>
>     *Sent:* Thursday, November 12, 2009 2:12 AM
>     *Subject:* Re: [protege-owl] Error at Java Program using SWRL + Jess
>
>     The exception is truncated. Can you post the full stack trace.
>
>     Martin
>
>     ----- Original Message -----
>     From: "Ely Edison Matos" <[hidden email]
>     <mailto:[hidden email]>>
>     To: [hidden email]
>     <mailto:[hidden email]>
>     Sent: Wednesday, November 11, 2009 6:51:00 PM GMT -08:00 Tijuana /
>     Baja California
>     Subject: [protege-owl] Error at Java Program using SWRL + Jess
>
>
>
>     Hello,
>     I'm getting a error when applying rules to a ontology via a Java
>     program, using SWRL and Jess. Partial output is:
>
>     ...
>     Rule engine 'SWRLJessBridge' registered with the SWRLTab bridge.
>     edu.stanford.smi.protegex.owl.swrl.bridge.jess.exceptions.SWRLJessBridgeExceptio
>
>     n: Jess reported an error in routine invokeSWRLBuiltIn
>     while executing (invokeSWRLBuiltIn "Def-hasBiologicalVariable" "
>     http://w
>     ww.w3.org/2003/11/swrlb#stringEqualIgnoreCase" 0 false ?x2 ?x4)
>     while executing rule LHS (Node2)
>     while executing rule LHS (Node2)
>     while executing rule LHS (Node2)
>     while executing rule LHS (Node2)
>     while executing rule LHS (MTELN)
>     while executing rule LHS (TECT)
>     while executing (assert (MAIN::http://celo.mmc.br/ontologies/celo.o
>     wl#hasName http://celo.mmc.br/ontologies/celo.owl#Myoplasm
>     "myoplasm")).
>     Message: Error during execution.
>     Program text: ( assert (
>     http://celo.mmc.br/ontologies/celo.owl#hasName h
>     ttp://celo.mmc.br/ontologies/celo.owl#Myoplasm "myoplasm" ) ) at
>     line 1.
>     at
>     edu.stanford.smi.protegex.owl.swrl.bridge.jess.SWRLJessBridge.execute
>     Commands(Unknown Source)
>     at
>     edu.stanford.smi.protegex.owl.swrl.bridge.jess.SWRLJessBridge.defineA
>     xiom(Unknown Source)
>     at
>     edu.stanford.smi.protegex.owl.swrl.bridge.impl.AbstractSWRLRuleEngine
>     Bridge.exportAxioms(Unknown Source)
>     at
>     edu.stanford.smi.protegex.owl.swrl.bridge.impl.AbstractSWRLRuleEngine
>     Bridge.exportSWRLRulesAndOWLKnowledge(Unknown Source)
>     at
>     edu.stanford.smi.protegex.owl.swrl.bridge.impl.AbstractSWRLRuleEngine
>     Bridge.importSWRLRulesAndOWLKnowledge(Unknown Source)
>     at
>     edu.stanford.smi.protegex.owl.swrl.bridge.impl.AbstractSWRLRuleEngine
>     Bridge.infer(Unknown Source)
>     at
>     edu.stanford.smi.protegex.owl.swrl.bridge.impl.AbstractSWRLRuleEngine
>     Bridge.infer(Unknown Source)
>     ...
>
>     This rule is defined as (copied from Protege SWRL Rules Tab):
>     celo:Variable(?x1) ∧ celo:hasDetail(?x1, ?x2) ∧
>     celo:BiologicalEntity(?x3) ∧ celo:hasName(?x3, ?x4) ∧
>     swrlb:stringEqualIgnoreCase(?x2, ?x4) → celo:hasDomainEntity(?x1,
>     ?x3)
>
>     the imports related with SWRL are:
>     import
>     edu.stanford.smi.protegex.owl.swrl.bridge.exceptions.SWRLRuleEngineBridgeException;
>
>     import edu.stanford.smi.protegex.owl.swrl.bridge.jess.*;
>     import edu.stanford.smi.protegex.owl.swrl.model.SWRLBuiltin;
>     import edu.stanford.smi.protegex.owl.swrl.model.SWRLFactory;
>     import edu.stanford.smi.protegex.owl.swrl.model.SWRLImp;
>     import edu.stanford.smi.protegex.owl.swrl.model.SWRLIndividual;
>
>     I think of a error related to Builtins, but I cannot figure what.
>     I hope someone can help...:-)))
>
>     Thanks,
>     Ely
>
>
>     _______________________________________________
>     protege-owl mailing list
>     [hidden email] <mailto:[hidden email]>
>     https://mailman.stanford.edu/mailman/listinfo/protege-owl
>
>     Instructions for unsubscribing:
>     http://protege.stanford.edu/doc/faq.html#01a.03
>
>------------------------------------------------------------------------
>
>_______________________________________________
>protege-owl mailing list
>[hidden email]
>https://mailman.stanford.edu/mailman/listinfo/protege-owl
>
>Instructions for unsubscribing: http://protege.stanford.edu/doc/faq.html#01a.03
>  
>

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

Instructions for unsubscribing: http://protege.stanford.edu/doc/faq.html#01a.03
Ely Edison Matos

Re: Error at Java Program using SWRL + Jess

Reply Threaded More More options
Print post
Permalink
Some javascript/style in this post has been disabled (why?)

Hello Martin,
yes, this fail only at running Java application. Inside Protege (at SWRLJessTab) I can get it working correctly...So, I think I am using the same libraries and I can't figure what is the real problem...
 
Thanks for help,
Ely
----- Original Message -----
Sent: Wednesday, November 18, 2009 9:55 PM
Subject: Re: [protege-owl] [POSSIBLE VIRUS:###] Re: Error at Java Program using SWRL + Jess

I tested celo_rules.owl interactively in the SWRLJessTab and it does not
throw any exceptions

Does this only fail from the Java application?

Martin

 Ely Edison Matos wrote:

> Hello Martin,
> thanks for help.

> I'm attaching a zip file with the Java program, the OWL file, the
> rules and the output of program execution (reproduced below).
> I forgot to say that I have tested with Protege 3.4_beta and 3.4.1 (it
> works only at IDE). I don't know about support for SWRL at Protege 4.0
> yet.

> Thanks,
> Ely

> set JARS="C:/Program Files/Protege_3.4.1/*";"C:/Program
> Files/Protege_3.4.1/plugins/edu.stanford.smi.protegex.owl/*";"C:/Program
> Files/Protege_3.4.1/plugins/edu.stanford.smi.protegex.owl.inference.pellet/*";

> Protege 3.4.1 Build 537, JVM 1.6.0_10-ea-b07, memory=532M, Windows
> 2003, encodin
> g=UTF-8, language=pt, country=BR
> Loaded plugin edu.stanford.smi.protegex.owl - OWL Plugin
> Loaded plugin ca.uvic.cs.chisel.jambalaya - Jambalaya
> Loaded plugin dfki.protege.ontoviz
> Loaded plugin edu.stanford.smi.protegex.rdf_backend - RDF Backend
> Loaded plugin edu.stanford.smi.protegex.changes - Changes tab
> Loaded plugin edu.stanford.smi.protegex.standard_extensions - Graph
> Widget, Tabl
> e Widget
> Loaded plugin edu.stanford.smi.protegex.chatPlugin - Chat
> Loaded plugin edu.stanford.smi.protege.collab - Collaborative Protege
> Loaded plugin edu.stanford.smi.protege.script - Script Plugin
> Loaded plugin edu.stanford.smi.protege.stringsearch - String Search Tab
> Loaded plugin edu.stanford.smi.protegex.datamaster - DataMaster Tab
> Loaded plugin edu.stanford.smi.protegex.pal_tabs - PAL Tabs
> Loaded plugin edu.stanford.smi.protegex.ezpal - EZPal Tab
> Loaded plugin edu.stanford.smi.protegex.facets_tab
> Loaded plugin edu.stanford.smi.protegex.instance_tree
> Loaded plugin edu.stanford.smi.protegex.prompt - PROMPT Tab
> Loaded plugin edu.stanford.smi.protegex.metaanalysis - MetaAnalysis Tab
> Loaded plugin edu.stanford.smi.protegex.owl.inference.pellet - Protege
> Pellet Re
> asoner
> Loaded plugin edu.stanford.smi.protegex.umls_tab - UMLS Tab
> Loaded plugin edu.stanford.smi.protegex.wordnet - WordNet Tab
> Loaded plugin edu.stanford.smi.protegex.xml_tab - XML Tab
> Loaded plugin org.algernon - Algernon
> Loaded plugin se.liu.ida.JessTab - JessTab Plugin
> Loaded plugin uk.ac.iam.soton.akt.tgviztab - TGVizTab
> Loaded plugin uk.ac.man.cs.mig.coode.debugger
> Loaded plugin uk.ac.man.cs.mig.coode.manchesterowlsyntaxeditor
> Loaded plugin uk.ac.man.cs.mig.coode.owldoc
> Loaded plugin uk.ac.man.cs.mig.coode.owlindividualstab
> Loaded plugin uk.ac.man.cs.mig.coode.owlviz
> Loaded plugin uk.ac.man.cs.mig.coode.protege.wizard - Basic Wizards
> Loaded plugin uk.ac.man.cs.mig.coode.protege.wizard.owl - OWL Wizards
> Loading triples from: file:/e:/Auckland/cellml2owl/hh_1952/membrane_1.owl
>     Completed triple loading after 250 ms
> Importing http://celo.mmc.ufjf.br/ontologies/celo.owl from location:
> http://celo
> .mmc.ufjf.br/ontologies/celo.owl
> Loading triples from: http://celo.mmc.ufjf.br/ontologies/celo.owl
>     Completed triple loading after 109 ms
> Importing http://swrl.stanford.edu/ontologies/built-ins/3.3/abox.owl
> from locati
> on: C:\Program
> Files\Protege_3.4_beta\plugins\edu.stanford.smi.protegex.owl\abox
> .owl
> Loading triples from:
> http://swrl.stanford.edu/ontologies/built-ins/3.3/abox.owl

>     Completed triple loading after 0 ms
> Importing http://sqwrl.stanford.edu/ontologies/built-ins/3.4/sqwrl.owl
> from loca
> tion: C:\Program
> Files\Protege_3.4_beta\plugins\edu.stanford.smi.protegex.owl\sq
> wrl.owl
> Loading triples from:
> http://sqwrl.stanford.edu/ontologies/built-ins/3.4/sqwrl.o
> wl
>     Completed triple loading after 0 ms
> Importing http://swrl.stanford.edu/ontologies/3.3/swrla.owl from
> location: C:\Pr
> ogram
> Files\Protege_3.4_beta\plugins\edu.stanford.smi.protegex.owl\swrla.owl
> Loading triples from: http://swrl.stanford.edu/ontologies/3.3/swrla.owl
>     Completed triple loading after 0 ms
> Importing http://swrl.stanford.edu/ontologies/built-ins/3.4/swrlm.owl
> from locat
> ion: C:\Program
> Files\Protege_3.4_beta\plugins\edu.stanford.smi.protegex.owl\swr
> lm.owl
> Loading triples from:
> http://swrl.stanford.edu/ontologies/built-ins/3.4/swrlm.ow
> l
>     Completed triple loading after 0 ms
> Importing
> http://swrl.stanford.edu/ontologies/built-ins/3.4/swrlxml.owl from loc
> ation: C:\Program
> Files\Protege_3.4_beta\plugins\edu.stanford.smi.protegex.owl\S
> WRLXML.owl
> Loading triples from:
> http://swrl.stanford.edu/ontologies/built-ins/3.4/swrlxml.
> owl
>     Completed triple loading after 16 ms
> Importing
> http://swrl.stanford.edu/ontologies/built-ins/3.3/temporal.owl from lo
> cation: C:\Program
> Files\Protege_3.4_beta\plugins\edu.stanford.smi.protegex.owl\
> temporal.owl
> Loading triples from:
> http://swrl.stanford.edu/ontologies/built-ins/3.3/temporal
> .owl
>     Completed triple loading after 15 ms
> Importing http://swrl.stanford.edu/ontologies/built-ins/3.3/swrlx.owl
> from locat
> ion: C:\Program
> Files\Protege_3.4_beta\plugins\edu.stanford.smi.protegex.owl\swr
> lx.owl
> Loading triples from:
> http://swrl.stanford.edu/ontologies/built-ins/3.3/swrlx.ow
> l
>     Completed triple loading after 0 ms
> Importing http://swrl.stanford.edu/ontologies/built-ins/3.3/tbox.owl
> from locati
> on: C:\Program
> Files\Protege_3.4_beta\plugins\edu.stanford.smi.protegex.owl\tbox
> .owl
> Loading triples from:
> http://swrl.stanford.edu/ontologies/built-ins/3.3/tbox.owl

>     Completed triple loading after 16 ms
> Postprocess: Process entities with incorrect Java type (12 entities)
> ... 0 ms
> Postprocess: Process metaclasses (3 metaclasses) ... 0 ms
> Postprocess: Process subclasses of rdf:List (1 classes) ... 0 ms
> Postprocess: Instances with multiple types (72 instances) ... 0 ms
> Postprocess: Add inferred superclasses ... 47 ms
> Postprocess: Process orphan classes (95 classes) ... 15 ms
> Postprocess: Generalized Concept Inclusion (0 axioms) ... 0 ms
> Postprocess: Abstract classes... 0 ms
> Postprocess: Domain and range of properties... 16 ms
> Postprocess: Possibly typed entities (1 resources) ... 0 ms
> Updating underlying frames model in 0 ms
> Loading triples from: file:/E:/Auckland/ontologies/celo_rules.owl
>     Completed triple loading after 46 ms
> Importing http://celo.mmc.ufjf.br/ontologies/celo.owl from location:
> http://celo
> .mmc.ufjf.br/ontologies/celo.owl
> Loading triples from: http://celo.mmc.ufjf.br/ontologies/celo.owl
>     Completed triple loading after 1125 ms
> Importing http://swrl.stanford.edu/ontologies/built-ins/3.3/abox.owl
> from locati
> on: C:\Program
> Files\Protege_3.4.1\plugins\edu.stanford.smi.protegex.owl\abox.ow
> l
> Loading triples from:
> http://swrl.stanford.edu/ontologies/built-ins/3.3/abox.owl

>     Completed triple loading after 0 ms
> Importing http://sqwrl.stanford.edu/ontologies/built-ins/3.4/sqwrl.owl
> from loca
> tion: C:\Program
> Files\Protege_3.4.1\plugins\edu.stanford.smi.protegex.owl\sqwrl
> .owl
> Loading triples from:
> http://sqwrl.stanford.edu/ontologies/built-ins/3.4/sqwrl.o
> wl
>     Completed triple loading after 0 ms
> Importing http://swrl.stanford.edu/ontologies/built-ins/3.4/swrlm.owl
> from locat
> ion: C:\Program
> Files\Protege_3.4.1\plugins\edu.stanford.smi.protegex.owl\swrlm.
> owl
> Loading triples from:
> http://swrl.stanford.edu/ontologies/built-ins/3.4/swrlm.ow
> l
>     Completed triple loading after 0 ms
> Importing
> http://swrl.stanford.edu/ontologies/built-ins/3.4/swrlxml.owl from loc
> ation: C:\Program
> Files\Protege_3.4.1\plugins\edu.stanford.smi.protegex.owl\SWRL
> XML.owl
> Loading triples from:
> http://swrl.stanford.edu/ontologies/built-ins/3.4/swrlxml.
> owl
>     Completed triple loading after 15 ms
> Importing http://swrl.stanford.edu/ontologies/3.3/swrla.owl from
> location: C:\Pr
> ogram Files\Protege_3.4.1\plugins\edu.stanford.smi.protegex.owl\swrla.owl
> Loading triples from: http://swrl.stanford.edu/ontologies/3.3/swrla.owl
>     Completed triple loading after 0 ms
> Importing
> http://swrl.stanford.edu/ontologies/built-ins/3.3/temporal.owl from lo
> cation: C:\Program
> Files\Protege_3.4.1\plugins\edu.stanford.smi.protegex.owl\tem
> poral.owl
> Loading triples from:
> http://swrl.stanford.edu/ontologies/built-ins/3.3/temporal
> .owl
>     Completed triple loading after 0 ms
> Importing http://swrl.stanford.edu/ontologies/built-ins/3.3/swrlx.owl
> from locat
> ion: C:\Program
> Files\Protege_3.4.1\plugins\edu.stanford.smi.protegex.owl\swrlx.
> owl
> Loading triples from:
> http://swrl.stanford.edu/ontologies/built-ins/3.3/swrlx.ow
> l
>     Completed triple loading after 0 ms
> Importing http://swrl.stanford.edu/ontologies/built-ins/3.3/tbox.owl
> from locati
> on: C:\Program
> Files\Protege_3.4.1\plugins\edu.stanford.smi.protegex.owl\tbox.ow
> l
> Loading triples from:
> http://swrl.stanford.edu/ontologies/built-ins/3.3/tbox.owl

>     Completed triple loading after 16 ms
> Postprocess: Process entities with incorrect Java type (4 entities)
> ... 0 ms
> Postprocess: Process metaclasses (3 metaclasses) ... 0 ms
> Postprocess: Process subclasses of rdf:List (1 classes) ... 0 ms
> Postprocess: Instances with multiple types (91 instances) ... 16 ms
> Postprocess: Add inferred superclasses ... 0 ms
> Postprocess: Process orphan classes (121 classes) ... 0 ms
> Postprocess: Generalized Concept Inclusion (0 axioms) ... 0 ms
> Postprocess: Abstract classes... 0 ms
> Postprocess: Domain and range of properties... 0 ms
> Postprocess: Possibly typed entities (1 resources) ... 0 ms
> Updating underlying frames model in 0 ms
> Rule engine 'SWRLJessBridge' registered with the SWRLTab bridge.
> edu.stanford.smi.protegex.owl.swrl.bridge.jess.exceptions.SWRLJessBridgeExceptio
> n: Jess reported an error in routine invokeSWRLBuiltIn
>         while executing (invokeSWRLBuiltIn "Def-hasBiologicalVariable"
> "http://w
> ww.w3.org/2003/11/swrlb#stringEqualIgnoreCase" 0 false ?x2 ?x4)
>         while executing rule LHS (Node2)
>         while executing rule LHS (Node2)
>         while executing rule LHS (Node2)
>         while executing rule LHS (Node2)
>         while executing rule LHS (MTELN)
>         while executing rule LHS (TECT)
>         while executing (assert
> (MAIN::http://celo.mmc.ufjf.br/ontologies/celo.o
> wl#hasDetail http://celo.mmc.ufjf.br/owl/hh_1952/membrane#membrane_i_K
> "-")).
>   Message: Error during execution.
>   Program text: ( assert (
> http://celo.mmc.ufjf.br/ontologies/celo.owl#hasDetail
http://celo.mmc.ufjf.br/owl/hh_1952/membrane#membrane_i_K "-" ) )  at
> line 1.
>         at
> edu.stanford.smi.protegex.owl.swrl.bridge.jess.SWRLJessBridge.execute
> Commands(Unknown Source)
>         at
> edu.stanford.smi.protegex.owl.swrl.bridge.jess.SWRLJessBridge.defineA
> xiom(Unknown Source)
>         at
> edu.stanford.smi.protegex.owl.swrl.bridge.impl.AbstractSWRLRuleEngine
> Bridge.exportAxioms(Unknown Source)
>         at
> edu.stanford.smi.protegex.owl.swrl.bridge.impl.AbstractSWRLRuleEngine
> Bridge.exportSWRLRulesAndOWLKnowledge(Unknown Source)
>         at
> edu.stanford.smi.protegex.owl.swrl.bridge.impl.AbstractSWRLRuleEngine
> Bridge.importSWRLRulesAndOWLKnowledge(Unknown Source)
>         at
> edu.stanford.smi.protegex.owl.swrl.bridge.impl.AbstractSWRLRuleEngine
> Bridge.infer(Unknown Source)
>         at
> edu.stanford.smi.protegex.owl.swrl.bridge.impl.AbstractSWRLRuleEngine
> Bridge.infer(Unknown Source)
>         at br.ufjf.mmc.celo.editor.OWLRules.execute(OWLRules.java:101)
>         at br.ufjf.mmc.celo.editor.OWLRules.main(OWLRules.java:43)


>
>     ----- Original Message -----
>     *From:* Martin O'Connor <[hidden email]>
>     *To:* Ely Edison Matos <[hidden email]> ; User
>     support for the Protege-OWL editor
>     <[hidden email]>
>     *Sent:* Thursday, November 12, 2009 2:12 AM
>     *Subject:* Re: [protege-owl] Error at Java Program using SWRL + Jess
>
>     The exception is truncated. Can you post the full stack trace.
>
>     Martin
>
>     ----- Original Message -----
>     From: "Ely Edison Matos" <[hidden email]
>     <[hidden email]>>
>     To: [hidden email]
>     <[hidden email]>
>     Sent: Wednesday, November 11, 2009 6:51:00 PM GMT -08:00 Tijuana /
>     Baja California
>     Subject: [protege-owl] Error at Java Program using SWRL + Jess
>
>
>
>     Hello,
>     I'm getting a error when applying rules to a ontology via a Java
>     program, using SWRL and Jess. Partial output is:
>
>     ...
>     Rule engine 'SWRLJessBridge' registered with the SWRLTab bridge.
>     edu.stanford.smi.protegex.owl.swrl.bridge.jess.exceptions.SWRLJessBridgeExceptio
>
>     n: Jess reported an error in routine invokeSWRLBuiltIn
>     while executing (invokeSWRLBuiltIn "Def-hasBiologicalVariable" "
>     http://w
>     ww.w3.org/2003/11/swrlb#stringEqualIgnoreCase" 0 false ?x2 ?x4)
>     while executing rule LHS (Node2)
>     while executing rule LHS (Node2)
>     while executing rule LHS (Node2)
>     while executing rule LHS (Node2)
>     while executing rule LHS (MTELN)
>     while executing rule LHS (TECT)
>     while executing (assert (MAIN::http://celo.mmc.br/ontologies/celo.o
>     wl#hasName http://celo.mmc.br/ontologies/celo.owl#Myoplasm
>     "myoplasm")).
>     Message: Error during execution.
>     Program text: ( assert (
>     http://celo.mmc.br/ontologies/celo.owl#hasName h
>     ttp://celo.mmc.br/ontologies/celo.owl#Myoplasm "myoplasm" ) ) at
>     line 1.
>     at
>     edu.stanford.smi.protegex.owl.swrl.bridge.jess.SWRLJessBridge.execute
>     Commands(Unknown Source)
>     at
>     edu.stanford.smi.protegex.owl.swrl.bridge.jess.SWRLJessBridge.defineA
>     xiom(Unknown Source)
>     at
>     edu.stanford.smi.protegex.owl.swrl.bridge.impl.AbstractSWRLRuleEngine
>     Bridge.exportAxioms(Unknown Source)
>     at
>     edu.stanford.smi.protegex.owl.swrl.bridge.impl.AbstractSWRLRuleEngine
>     Bridge.exportSWRLRulesAndOWLKnowledge(Unknown Source)
>     at
>     edu.stanford.smi.protegex.owl.swrl.bridge.impl.AbstractSWRLRuleEngine
>     Bridge.importSWRLRulesAndOWLKnowledge(Unknown Source)
>     at
>     edu.stanford.smi.protegex.owl.swrl.bridge.impl.AbstractSWRLRuleEngine
>     Bridge.infer(Unknown Source)
>     at
>     edu.stanford.smi.protegex.owl.swrl.bridge.impl.AbstractSWRLRuleEngine
>     Bridge.infer(Unknown Source)
>     ...
>
>     This rule is defined as (copied from Protege SWRL Rules Tab):
>     celo:Variable(?x1) ∧ celo:hasDetail(?x1, ?x2) ∧
>     celo:BiologicalEntity(?x3) ∧ celo:hasName(?x3, ?x4) ∧
>     swrlb:stringEqualIgnoreCase(?x2, ?x4) → celo:hasDomainEntity(?x1,
>     ?x3)
>
>     the imports related with SWRL are:
>     import
>     edu.stanford.smi.protegex.owl.swrl.bridge.exceptions.SWRLRuleEngineBridgeException;
>
>     import edu.stanford.smi.protegex.owl.swrl.bridge.jess.*;
>     import edu.stanford.smi.protegex.owl.swrl.model.SWRLBuiltin;
>     import edu.stanford.smi.protegex.owl.swrl.model.SWRLFactory;
>     import edu.stanford.smi.protegex.owl.swrl.model.SWRLImp;
>     import edu.stanford.smi.protegex.owl.swrl.model.SWRLIndividual;
>
>     I think of a error related to Builtins, but I cannot figure what.
>     I hope someone can help...:-)))
>
>     Thanks,
>     Ely
>
>
>     _______________________________________________
>     protege-owl mailing list
>     [hidden email] <[hidden email]>
>     https://mailman.stanford.edu/mailman/listinfo/protege-owl
>
>     Instructions for unsubscribing:
>     http://protege.stanford.edu/doc/faq.html#01a.03
>
>------------------------------------------------------------------------
>
>_______________________________________________
>protege-owl mailing list
>[hidden email]
>https://mailman.stanford.edu/mailman/listinfo/protege-owl
>
>Instructions for unsubscribing: http://protege.stanford.edu/doc/faq.html#01a.03

>

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

Instructions for unsubscribing: http://protege.stanford.edu/doc/faq.html#01a.03
Zhang Weishan

Re: Error at Java Program using SWRL + Jess

Reply Threaded More More options
Print post
Permalink
Some javascript/style in this post has been disabled (why?)
Some time ago, i reported a similar problem i believe.

Cheers,
Weishan


From: Ely Edison Matos <[hidden email]>
To: [hidden email]
Sent: Thu, November 19, 2009 11:03:03 AM
Subject: Re: [protege-owl] Error at Java Program using SWRL + Jess


Hello Martin,
yes, this fail only at running Java application. Inside Protege (at SWRLJessTab) I can get it working correctly...So, I think I am using the same libraries and I can't figure what is the real problem...
 
Thanks for help,
Ely
----- Original Message -----
Sent: Wednesday, November 18, 2009 9:55 PM
Subject: Re: [protege-owl] [POSSIBLE VIRUS:###] Re: Error at Java Program using SWRL + Jess

I tested celo_rules.owl interactively in the SWRLJessTab and it does not
throw any exceptions

Does this only fail from the Java application?

Martin

 Ely Edison Matos wrote:

> Hello Martin,
> thanks for help.

> I'm attaching a zip file with the Java program, the OWL file, the
> rules and the output of program execution (reproduced below).
> I forgot to say that I have tested with Protege 3.4_beta and 3.4.1 (it
> works only at IDE). I don't know about support for SWRL at Protege 4.0
> yet.

> Thanks,
> Ely

> set JARS="C:/Program Files/Protege_3.4.1/*";"C:/Program
> Files/Protege_3.4.1/plugins/edu.stanford.smi.protegex.owl/*";"C:/Program
> Files/Protege_3.4.1/plugins/edu.stanford.smi.protegex.owl.inference.pellet/*";

> Protege 3.4.1 Build 537, JVM 1.6.0_10-ea-b07, memory=532M, Windows
> 2003, encodin
> g=UTF-8, language=pt, country=BR
> Loaded plugin edu.stanford.smi.protegex.owl - OWL Plugin
> Loaded plugin ca.uvic.cs.chisel.jambalaya - Jambalaya
> Loaded plugin dfki.protege.ontoviz
> Loaded plugin edu.stanford.smi.protegex.rdf_backend - RDF Backend
> Loaded plugin edu.stanford.smi.protegex.changes - Changes tab
> Loaded plugin edu.stanford.smi.protegex.standard_extensions - Graph
> Widget, Tabl
> e Widget
> Loaded plugin edu.stanford.smi.protegex.chatPlugin - Chat
> Loaded plugin edu.stanford.smi.protege.collab - Collaborative Protege
> Loaded plugin edu.stanford.smi.protege.script - Script Plugin
> Loaded plugin edu.stanford.smi.protege.stringsearch - String Search Tab
> Loaded plugin edu.stanford.smi.protegex.datamaster - DataMaster Tab
> Loaded plugin edu.stanford.smi.protegex.pal_tabs - PAL Tabs
> Loaded plugin edu.stanford.smi.protegex.ezpal - EZPal Tab
> Loaded plugin edu.stanford.smi.protegex.facets_tab
> Loaded plugin edu.stanford.smi.protegex.instance_tree
> Loaded plugin edu.stanford.smi.protegex.prompt - PROMPT Tab
> Loaded plugin edu.stanford.smi.protegex.metaanalysis - MetaAnalysis Tab
> Loaded plugin edu.stanford.smi.protegex.owl.inference.pellet - Protege
> Pellet Re
> asoner
> Loaded plugin edu.stanford.smi.protegex.umls_tab - UMLS Tab
> Loaded plugin edu.stanford.smi.protegex.wordnet - WordNet Tab
> Loaded plugin edu.stanford.smi.protegex.xml_tab - XML Tab
> Loaded plugin org.algernon - Algernon
> Loaded plugin se.liu.ida.JessTab - JessTab Plugin
> Loaded plugin uk.ac.iam.soton.akt.tgviztab - TGVizTab
> Loaded plugin uk.ac.man.cs.mig.coode.debugger
> Loaded plugin uk.ac.man.cs.mig.coode.manchesterowlsyntaxeditor
> Loaded plugin uk.ac.man.cs.mig.coode.owldoc
> Loaded plugin uk.ac.man.cs.mig.coode.owlindividualstab
> Loaded plugin uk.ac.man.cs.mig.coode.owlviz
> Loaded plugin uk.ac.man.cs.mig.coode.protege.wizard - Basic Wizards
> Loaded plugin uk.ac.man.cs.mig.coode.protege.wizard.owl - OWL Wizards
> Loading triples from: file:/e:/Auckland/cellml2owl/hh_1952/membrane_1.owl
>     Completed triple loading after 250 ms
> Importing http://celo.mmc.ufjf.br/ontologies/celo.owl from location:
> http://celo
> .mmc.ufjf.br/ontologies/celo.owl
> Loading triples from: http://celo.mmc.ufjf.br/ontologies/celo.owl
>     Completed triple loading after 109 ms
> Importing http://swrl.stanford.edu/ontologies/built-ins/3.3/abox.owl
> from locati
> on: C:\Program
> Files\Protege_3.4_beta\plugins\edu.stanford.smi.protegex.owl\abox
> .owl
> Loading triples from:
> http://swrl.stanford.edu/ontologies/built-ins/3.3/abox.owl

>     Completed triple loading after 0 ms
> Importing http://sqwrl.stanford.edu/ontologies/built-ins/3.4/sqwrl.owl
> from loca
> tion: C:\Program
> Files\Protege_3.4_beta\plugins\edu.stanford.smi.protegex.owl\sq
> wrl.owl
> Loading triples from:
> http://sqwrl.stanford.edu/ontologies/built-ins/3.4/sqwrl.o
> wl
>     Completed triple loading after 0 ms
> Importing http://swrl.stanford.edu/ontologies/3.3/swrla.owl from
> location: C:\Pr
> ogram
> Files\Protege_3.4_beta\plugins\edu.stanford.smi.protegex.owl\swrla.owl
> Loading triples from: http://swrl.stanford.edu/ontologies/3.3/swrla.owl
>     Completed triple loading after 0 ms
> Importing http://swrl.stanford.edu/ontologies/built-ins/3.4/swrlm.owl
> from locat
> ion: C:\Program
> Files\Protege_3.4_beta\plugins\edu.stanford.smi.protegex.owl\swr
> lm.owl
> Loading triples from:
> http://swrl.stanford.edu/ontologies/built-ins/3.4/swrlm.ow
> l
>     Completed triple loading after 0 ms
> Importing
> http://swrl.stanford.edu/ontologies/built-ins/3.4/swrlxml.owl from loc
> ation: C:\Program
> Files\Protege_3.4_beta\plugins\edu.stanford.smi.protegex.owl\S
> WRLXML.owl
> Loading triples from:
> http://swrl.stanford.edu/ontologies/built-ins/3.4/swrlxml.
> owl
>     Completed triple loading after 16 ms
> Importing
> http://swrl.stanford.edu/ontologies/built-ins/3.3/temporal.owl from lo
> cation: C:\Program
> Files\Protege_3.4_beta\plugins\edu.stanford.smi.protegex.owl\
> temporal.owl
> Loading triples from:
> http://swrl.stanford.edu/ontologies/built-ins/3.3/temporal
> .owl
>     Completed triple loading after 15 ms
> Importing http://swrl.stanford.edu/ontologies/built-ins/3.3/swrlx.owl
> from locat
> ion: C:\Program
> Files\Protege_3.4_beta\plugins\edu.stanford.smi.protegex.owl\swr
> lx.owl
> Loading triples from:
> http://swrl.stanford.edu/ontologies/built-ins/3.3/swrlx.ow
> l
>     Completed triple loading after 0 ms
> Importing http://swrl.stanford.edu/ontologies/built-ins/3.3/tbox.owl

> from locati
> on: C:\Program
> Files\Protege_3.4_beta\plugins\edu.stanford.smi.protegex.owl\tbox
> .owl
> Loading triples from:
> http://swrl.stanford.edu/ontologies/built-ins/3.3/tbox.owl

>     Completed triple loading after 16 ms
> Postprocess: Process entities with incorrect Java type (12 entities)
> ... 0 ms
> Postprocess: Process metaclasses (3 metaclasses) ... 0 ms
> Postprocess: Process subclasses of rdf:List (1 classes) ... 0 ms
> Postprocess: Instances with multiple types (72 instances) ... 0 ms
> Postprocess: Add inferred superclasses ... 47 ms
> Postprocess: Process orphan classes (95 classes) ... 15 ms
> Postprocess: Generalized Concept Inclusion (0 axioms) ... 0 ms
> Postprocess: Abstract classes... 0 ms
> Postprocess: Domain and range of properties... 16 ms
> Postprocess: Possibly typed entities (1 resources) ... 0 ms
> Updating underlying frames model in 0 ms
> Loading triples from: file:/E:/Auckland/ontologies/celo_rules.owl
>     Completed triple loading after 46 ms
> Importing http://celo.mmc.ufjf.br/ontologies/celo.owl from location:
> http://celo
> .mmc.ufjf.br/ontologies/celo.owl
> Loading triples from: http://celo.mmc.ufjf.br/ontologies/celo.owl
>     Completed triple loading after 1125 ms
> Importing http://swrl.stanford.edu/ontologies/built-ins/3.3/abox.owl
> from locati
> on: C:\Program
> Files\Protege_3.4.1\plugins\edu.stanford.smi.protegex.owl\abox.ow
> l
> Loading triples from:
> http://swrl.stanford.edu/ontologies/built-ins/3.3/abox.owl

>     Completed triple loading after 0 ms
> Importing http://sqwrl.stanford.edu/ontologies/built-ins/3.4/sqwrl.owl
> from loca
> tion: C:\Program
> Files\Protege_3.4.1\plugins\edu.stanford.smi.protegex.owl\sqwrl
> .owl
> Loading triples from:
> http://sqwrl.stanford.edu/ontologies/built-ins/3.4/sqwrl.o
> wl
>     Completed triple loading after 0 ms
> Importing http://swrl.stanford.edu/ontologies/built-ins/3.4/swrlm.owl
> from locat
> ion: C:\Program
> Files\Protege_3.4.1\plugins\edu.stanford.smi.protegex.owl\swrlm.
> owl
> Loading triples from:
> http://swrl.stanford.edu/ontologies/built-ins/3.4/swrlm.ow
> l
>     Completed triple loading after 0 ms
> Importing
> http://swrl.stanford.edu/ontologies/built-ins/3.4/swrlxml.owl from loc
> ation: C:\Program
> Files\Protege_3.4.1\plugins\edu.stanford.smi.protegex.owl\SWRL
> XML.owl
> Loading triples from:
> http://swrl.stanford.edu/ontologies/built-ins/3.4/swrlxml.
> owl
>     Completed triple loading after 15 ms
> Importing http://swrl.stanford.edu/ontologies/3.3/swrla.owl from
> location: C:\Pr
> ogram Files\Protege_3.4.1\plugins\edu.stanford.smi.protegex.owl\swrla.owl
> Loading triples from: http://swrl.stanford.edu/ontologies/3.3/swrla.owl
>     Completed triple loading after 0 ms
> Importing
> http://swrl.stanford.edu/ontologies/built-ins/3.3/temporal.owl from lo
> cation: C:\Program
> Files\Protege_3.4.1\plugins\edu.stanford.smi.protegex.owl\tem
> poral.owl
> Loading triples from:
> http://swrl.stanford.edu/ontologies/built-ins/3.3/temporal
> .owl
>     Completed triple loading after 0 ms
> Importing http://swrl.stanford.edu/ontologies/built-ins/3.3/swrlx.owl
> from locat
> ion: C:\Program
> Files\Protege_3.4.1\plugins\edu.stanford.smi.protegex.owl\swrlx.
> owl
> Loading triples from:
> http://swrl.stanford.edu/ontologies/built-ins/3.3/swrlx.ow
> l
>     Completed triple loading after 0 ms
> Importing http://swrl.stanford.edu/ontologies/built-ins/3.3/tbox.owl
> from locati
> on: C:\Program
> Files\Protege_3.4.1\plugins\edu.stanford.smi.protegex.owl\tbox.ow
> l
> Loading triples from:
> http://swrl.stanford.edu/ontologies/built-ins/3.3/tbox.owl

>     Completed triple loading after 16 ms
> Postprocess: Process entities with incorrect Java type (4 entities)
> ... 0 ms
> Postprocess: Process metaclasses (3 metaclasses) ... 0 ms
> Postprocess: Process subclasses of rdf:List (1 classes) ... 0 ms
> Postprocess: Instances with multiple types (91 instances) ... 16 ms
> Postprocess: Add inferred superclasses ... 0 ms
> Postprocess: Process orphan classes (121 classes) ... 0 ms
> Postprocess: Generalized Concept Inclusion (0 axioms) ... 0 ms
> Postprocess: Abstract classes... 0 ms
> Postprocess: Domain and range of properties... 0 ms
> Postprocess: Possibly typed entities (1 resources) ... 0 ms
> Updating underlying frames model in 0 ms
> Rule engine 'SWRLJessBridge' registered with the SWRLTab bridge.
> edu.stanford.smi.protegex.owl.swrl.bridge.jess.exceptions.SWRLJessBridgeExceptio
> n: Jess reported an error in routine invokeSWRLBuiltIn
>         while executing (invokeSWRLBuiltIn "Def-hasBiologicalVariable"
> "http://w
> ww.w3.org/2003/11/swrlb#stringEqualIgnoreCase" 0 false ?x2 ?x4)
>         while executing rule LHS (Node2)
>         while executing rule LHS (Node2)
>         while executing rule LHS (Node2)
>         while executing rule LHS (Node2)
>         while executing rule LHS (MTELN)
>         while executing rule LHS (TECT)
>         while executing (assert
> (MAIN::http://celo.mmc.ufjf.br/ontologies/celo.o
> wl#hasDetail http://celo.mmc.ufjf.br/owl/hh_1952/membrane#membrane_i_K
> "-")).
>   Message: Error during execution.
>   Program text: ( assert (
> http://celo.mmc.ufjf.br/ontologies/celo.owl#hasDetail

http://celo.mmc.ufjf.br/owl/hh_1952/membrane#membrane_i_K "-" ) )  at
> line 1.
>         at
> edu.stanford.smi.protegex.owl.swrl.bridge.jess.SWRLJessBridge.execute
> Commands(Unknown Source)
>         at
> edu.stanford.smi.protegex.owl.swrl.bridge.jess.SWRLJessBridge.defineA
> xiom(Unknown Source)
>         at
> edu.stanford.smi.protegex.owl.swrl.bridge.impl.AbstractSWRLRuleEngine
> Bridge.exportAxioms(Unknown Source)
>         at
> edu.stanford.smi.protegex.owl.swrl.bridge.impl.AbstractSWRLRuleEngine
> Bridge.exportSWRLRulesAndOWLKnowledge(Unknown Source)
>         at
> edu.stanford.smi.protegex.owl.swrl.bridge.impl.AbstractSWRLRuleEngine
> Bridge.importSWRLRulesAndOWLKnowledge(Unknown Source)
>         at
> edu.stanford.smi.protegex.owl.swrl.bridge.impl.AbstractSWRLRuleEngine
> Bridge.infer(Unknown Source)
>         at
> edu.stanford.smi.protegex.owl.swrl.bridge.impl.AbstractSWRLRuleEngine
> Bridge.infer(Unknown Source)
>         at br.ufjf.mmc.celo.editor.OWLRules.execute(OWLRules.java:101)
>         at br.ufjf.mmc.celo.editor.OWLRules.main(OWLRules.java:43)


>
>     ----- Original Message -----
>     *From:* Martin O'Connor <[hidden email]>
>     *To:* Ely Edison Matos <[hidden email]> ; User
>     support for the Protege-OWL editor
>     <[hidden email]>
>     *Sent:* Thursday, November 12, 2009 2:12 AM
>     *Subject:* Re: [protege-owl] Error at Java Program using SWRL + Jess
>
>     The exception is truncated. Can you post the full stack trace.
>
>     Martin
>
>     ----- Original Message -----
>     From: "Ely Edison Matos" <[hidden email]
>     <[hidden email]>>
>     To: [hidden email]
>     <[hidden email]>
>     Sent: Wednesday, November 11, 2009 6:51:00 PM GMT -08:00 Tijuana /
>     Baja California
>     Subject: [protege-owl] Error at Java Program using SWRL + Jess
>
>
>
>     Hello,
>     I'm getting a error when applying rules to a ontology via a Java
>     program, using SWRL and Jess. Partial output is:
>
>     ...
>     Rule engine 'SWRLJessBridge' registered with the SWRLTab bridge.
>     edu.stanford.smi.protegex.owl.swrl.bridge.jess.exceptions.SWRLJessBridgeExceptio
>
>     n: Jess reported an error in routine invokeSWRLBuiltIn
>     while executing (invokeSWRLBuiltIn "Def-hasBiologicalVariable" "
>     http://w
>     ww.w3.org/2003/11/swrlb#stringEqualIgnoreCase" 0 false ?x2 ?x4)
>     while executing rule LHS (Node2)
>     while executing rule LHS (Node2)
>     while executing rule LHS (Node2)
>     while executing rule LHS (Node2)
>     while executing rule LHS (MTELN)
>     while executing rule LHS (TECT)
>     while executing (assert (MAIN::http://celo.mmc.br/ontologies/celo.o
>     wl#hasName http://celo.mmc.br/ontologies/celo.owl#Myoplasm
>     "myoplasm")).
>     Message: Error during execution.
>     Program text: ( assert (
>     http://celo.mmc.br/ontologies/celo.owl#hasName h

>     ttp://celo.mmc.br/ontologies/celo.owl#Myoplasm "myoplasm" ) ) at
>     line 1.
>     at
>     edu.stanford.smi.protegex.owl.swrl.bridge.jess.SWRLJessBridge.execute
>     Commands(Unknown Source)
>     at
>     edu.stanford.smi.protegex.owl.swrl.bridge.jess.SWRLJessBridge.defineA
>     xiom(Unknown Source)
>     at
>     edu.stanford.smi.protegex.owl.swrl.bridge.impl.AbstractSWRLRuleEngine
>     Bridge.exportAxioms(Unknown Source)
>     at
>     edu.stanford.smi.protegex.owl.swrl.bridge.impl.AbstractSWRLRuleEngine
>     Bridge.exportSWRLRulesAndOWLKnowledge(Unknown Source)
>     at
>     edu.stanford.smi.protegex.owl.swrl.bridge.impl.AbstractSWRLRuleEngine
>     Bridge.importSWRLRulesAndOWLKnowledge(Unknown Source)
>     at
>     edu.stanford.smi.protegex.owl.swrl.bridge.impl.AbstractSWRLRuleEngine
>     Bridge.infer(Unknown Source)
>     at
>     edu.stanford.smi.protegex.owl.swrl.bridge.impl.AbstractSWRLRuleEngine
>     Bridge.infer(Unknown Source)
>     ...
>
>     This rule is defined as (copied from Protege SWRL Rules Tab):
>     celo:Variable(?x1) ∧ celo:hasDetail(?x1, ?x2) ∧
>     celo:BiologicalEntity(?x3) ∧ celo:hasName(?x3, ?x4) ∧
>     swrlb:stringEqualIgnoreCase(?x2, ?x4) → celo:hasDomainEntity(?x1,
>     ?x3)
>
>     the imports related with SWRL are:
>     import
>     edu.stanford.smi.protegex.owl.swrl.bridge.exceptions.SWRLRuleEngineBridgeException;
>
>     import edu.stanford.smi.protegex.owl.swrl.bridge.jess.*;
>     import edu.stanford.smi.protegex.owl.swrl.model.SWRLBuiltin;
>     import edu.stanford.smi.protegex.owl.swrl.model.SWRLFactory;
>     import edu.stanford.smi.protegex.owl.swrl.model.SWRLImp;
>     import edu.stanford.smi.protegex.owl.swrl.model.SWRLIndividual;
>
>     I think of a error related to Builtins, but I cannot figure what.
>     I hope someone can help...:-)))
>
>     Thanks,
>     Ely
>
>
>     _______________________________________________
>     protege-owl mailing list
>     [hidden email] <[hidden email]>
>     https://mailman.stanford.edu/mailman/listinfo/protege-owl
>
>     Instructions for unsubscribing:
>     http://protege.stanford.edu/doc/faq.html#01a.03
>
>------------------------------------------------------------------------
>
>_______________________________________________
>protege-owl mailing list
>[hidden email]
>https://mailman.stanford.edu/mailman/listinfo/protege-owl
>
>Instructions for unsubscribing: http://protege.stanford.edu/doc/faq.html#01a.03

>


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

Instructions for unsubscribing: http://protege.stanford.edu/doc/faq.html#01a.03