Exception when executing custom built-in with Jess

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

Exception when executing custom built-in with Jess

maha

Hello


I am using SWRL tab to execute my SWRL rule in Protégé (version 3.4.8).

The reasoner Jess which is used for the inference generates an exception.

The exception is generated when executing custom built-in which imports wordnet dictionary (repository),

although the function which imports wordnet dictionary outside the custom built-in functions normally.


Exception running rule engine: error running Jess rule engine: Jess reported an error in routine invokeSWRLBuiltIn
while executing (invokeSWRLBuiltIn ?ruleName ?builtInName ?index false $?pathVariables $?variableNames $?arguments)
while executing defrule MAIN::InvokeSWRLBuiltInRule.
  Message: unknown exception thrown by built-in mybuiltin:mymethod in rule Rule-1: java.lang.NoClassDefFoundError: edu/cmu/lti/lexical_db/ILexicalDatabase.


I put the jar file that contains the class "ILexicalDatabase" in the C:\Program Files\Protege_3.4.8\plugins\edu.stanford.smi.protegex.owl repository, then the exception has changed to: 


Exception running rule engine: error running Jess rule engine: Jess reported an error in routine invokeSWRLBuiltIn
while executing (invokeSWRLBuiltIn ?ruleName ?builtInName ?index false $?pathVariables $?variableNames $?arguments)
while executing defrule MAIN::InvokeSWRLBuiltInRule.
Message: exception thrown by built-in mybuiltin:mymethod in rule Rule-1: edu.stanford.smi.protegex.owl.swrl.bridge.exceptions.BuiltInException: unknown exception thrown by built-in mybuiltin:mymethod in rule Rule-1:

java.lang.reflect.InvocationTargetException.


When I read the output in Netbeans for exporting the custom built-in project, I find that the repository is not exported.


Not copying library C:\Users\samsung\Documents\NetBeansProjects\SWRLOntologie\lib\WordNet , it's a directory.
Copy libraries to C:\Users\samsung\Documents\NetBeansProjects\SWRLOntologie\dist\lib.
Building jar: C:\Users\samsung\Documents\NetBeansProjects\SWRLOntologie\dist\SWRLOntologie.jar

How can I fix it?

Thank you for your help in advance.


Best regards.




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

Re: Exception when executing custom built-in with Jess

Martin O'Connor-2

It appears that your built-in is actually getting invoked - and then throwing an exception.

I would add logging to the built-in method to verify that is being invoked correctly. If it is, you can then add further logging to see why an exception is being thrown.

Martin

On Feb 25, 2018, at 11:28 PM, MAHA maha <[hidden email]> wrote:

Hello

I am using SWRL tab to execute my SWRL rule in Protégé (version 3.4.8).
The reasoner Jess which is used for the inference generates an exception.
The exception is generated when executing custom built-in which imports wordnet dictionary (repository),
although the function which imports wordnet dictionary outside the custom built-in functions normally.

Exception running rule engine: error running Jess rule engine: Jess reported an error in routine invokeSWRLBuiltIn
while executing (invokeSWRLBuiltIn ?ruleName ?builtInName ?index false $?pathVariables $?variableNames $?arguments)
while executing defrule MAIN::InvokeSWRLBuiltInRule.
  Message: unknown exception thrown by built-in mybuiltin:mymethod in rule Rule-1: java.lang.NoClassDefFoundError: edu/cmu/lti/lexical_db/ILexicalDatabase.


I put the jar file that contains the class "ILexicalDatabase" in the C:\Program Files\Protege_3.4.8\plugins\edu.stanford.smi.protegex.owl repository, then the exception has changed to: 

Exception running rule engine: error running Jess rule engine: Jess reported an error in routine invokeSWRLBuiltIn
while executing (invokeSWRLBuiltIn ?ruleName ?builtInName ?index false $?pathVariables $?variableNames $?arguments)
while executing defrule MAIN::InvokeSWRLBuiltInRule.
Message: exception thrown by built-in mybuiltin:mymethod in rule Rule-1: edu.stanford.smi.protegex.owl.swrl.bridge.exceptions.BuiltInException: unknown exception thrown by built-in mybuiltin:mymethod in rule Rule-1:

java.lang.reflect.InvocationTargetException.

When I read the output in Netbeans for exporting the custom built-in project, I find that the repository is not exported.

Not copying library C:\Users\samsung\Documents\NetBeansProjects\SWRLOntologie\lib\WordNet , it's a directory.
Copy libraries to C:\Users\samsung\Documents\NetBeansProjects\SWRLOntologie\dist\lib.
Building jar: C:\Users\samsung\Documents\NetBeansProjects\SWRLOntologie\dist\SWRLOntologie.jar

How can I fix it?
Thank you for your help in advance.

Best regards.


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


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

Re: Exception when executing custom built-in with Jess

maha
Hello sir,
I appreciate your reply. In fact, I tried to create the logging, but  I
couldn't. Would you please help me to do so. I am really lost and nothing
seems to work so far. I'd be very grateful. Thanks in advance.
Regards,




--
Sent from: http://protege-project.136.n4.nabble.com/Protege-Developer-f4659816.html
_______________________________________________
protege-dev mailing list
[hidden email]
https://mailman.stanford.edu/mailman/listinfo/protege-dev
Reply | Threaded
Open this post in threaded view
|

Re: Exception when executing custom built-in with Jess

maha
In reply to this post by maha

Hello sir, 
I appreciate your reply. In fact, I tried to create the logging, but  I couldn't. Would you please help me to do so. I am really lost and nothing seems to work so far. I'd be very grateful. Thanks in advance. 
Regards, 


----------------------------------------------------------------------



Date: Mon, 26 Feb 2018 22:23:42 +0000
From: Martin O'Connor <[hidden email]>
To: Developer support for WebProtege and Protege Desktop
        <[hidden email]>
Subject: Re: [protege-dev] Exception when executing custom built-in
        with Jess
Message-ID: <[hidden email]>
Content-Type: text/plain; charset="iso-8859-1"


It appears that your built-in is actually getting invoked - and then throwing an exception.

I would add logging to the built-in method to verify that is being invoked correctly. If it is, you can then add further logging to see why an exception is being thrown.

Martin

On Feb 25, 2018, at 11:28 PM, MAHA maha <[hidden email]<mailto:[hidden email]>> wrote:


Hello

I am using SWRL tab to execute my SWRL rule in Prot?g? (version 3.4.8).
The reasoner Jess which is used for the inference generates an exception.
The exception is generated when executing custom built-in which imports wordnet dictionary (repository),
although the function which imports wordnet dictionary outside the custom built-in functions normally.


Exception running rule engine: error running Jess rule engine: Jess reported an error in routine invokeSWRLBuiltIn
while executing (invokeSWRLBuiltIn ?ruleName ?builtInName ?index false $?pathVariables $?variableNames $?arguments)
while executing defrule MAIN::InvokeSWRLBuiltInRule.
  Message: unknown exception thrown by built-in mybuiltin:mymethod in rule Rule-1: java.lang.NoClassDefFoundError: edu/cmu/lti/lexical_db/ILexicalDatabase.


I put the jar file that contains the class "ILexicalDatabase" in the C:\Program Files\Protege_3.4.8\plugins\edu.stanford.smi.protegex.owl repository, then the exception has changed to:


Exception running rule engine: error running Jess rule engine: Jess reported an error in routine invokeSWRLBuiltIn
while executing (invokeSWRLBuiltIn ?ruleName ?builtInName ?index false $?pathVariables $?variableNames $?arguments)
while executing defrule MAIN::InvokeSWRLBuiltInRule.
Message: exception thrown by built-in mybuiltin:mymethod in rule Rule-1: edu.stanford.smi.protegex.owl.swrl.bridge.exceptions.BuiltInException: unknown exception thrown by built-in mybuiltin:mymethod in rule Rule-1:

java.lang.reflect.InvocationTargetException.

When I read the output in Netbeans for exporting the custom built-in project, I find that the repository is not exported.


Not copying library C:\Users\samsung\Documents\NetBeansProjects\SWRLOntologie\lib\WordNet , it's a directory.
Copy libraries to C:\Users\samsung\Documents\NetBeansProjects\SWRLOntologie\dist\lib.
Building jar: C:\Users\samsung\Documents\NetBeansProjects\SWRLOntologie\dist\SWRLOntologie.jar


How can I fix it?
Thank you for your help in advance.

Best regards.



_______________________________________________
protege-dev mailing list
[hidden email]<mailto:[hidden email]>
https://mailman.stanford.edu/mailman/listinfo/protege-dev



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

Re: Exception when executing custom built-in with Jess

Martin O'Connor-2
In reply to this post by maha

A basic System.out.println should work. The output will appear on the Protege console log.

Martin

> On Feb 28, 2018, at 2:39 AM, maha <[hidden email]> wrote:
>
> Hello sir,
> I appreciate your reply. In fact, I tried to create the logging, but  I
> couldn't. Would you please help me to do so. I am really lost and nothing
> seems to work so far. I'd be very grateful. Thanks in advance.
> Regards,
>
>
>
>
> --
> Sent from: http://protege-project.136.n4.nabble.com/Protege-Developer-f4659816.html
> _______________________________________________
> protege-dev mailing list
> [hidden email]
> https://mailman.stanford.edu/mailman/listinfo/protege-dev


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

Re: Exception when executing custom built-in with Jess

maha
Dear sir,
Thank you for your reply but it did not work for me. Is there another way to
do the logging?
Regards.



--
Sent from: http://protege-project.136.n4.nabble.com/Protege-Developer-f4659816.html
_______________________________________________
protege-dev mailing list
[hidden email]
https://mailman.stanford.edu/mailman/listinfo/protege-dev
Reply | Threaded
Open this post in threaded view
|

Re: Exception when executing custom built-in with Jess

Martin O'Connor-2

What do you mean by ‘did not work’? The log messages generated by the System.out.println methods in the built-ins did not appear? Did you see logging from other SWRLAPI components in the console? Can you post the console log?

Martin


> On Mar 2, 2018, at 11:40 AM, maha <[hidden email]> wrote:
>
> Dear sir,
> Thank you for your reply but it did not work for me. Is there another way to
> do the logging?
> Regards.
>
>
>
> --
> Sent from: http://protege-project.136.n4.nabble.com/Protege-Developer-f4659816.html
> _______________________________________________
> protege-dev mailing list
> [hidden email]
> https://mailman.stanford.edu/mailman/listinfo/protege-dev

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

Re: Exception when executing custom built-in with Jess

maha
Dear Sir,

I did the System.out.println in the catch clause  in mybuiltin method like
this:

public boolean mymethod(List<BuiltInArgument> arguments) throws
BuiltInException {

  int argument1Number = 0, argument2Number = 1, numberOfArguments = 2;
       
        checkNumberOfArgumentsEqualTo(numberOfArguments, arguments.size());
        String s1 = getArgumentAsAString(argument1Number, arguments);
        String s2 = getArgumentAsAString(argument2Number, arguments);

try{

//the instruction that I think it does the exception in the runtime
.
.
.

}
catch(Exception e){
System.out.println("Exception due to : "+ e.getCause());
 e.printStackTrace();
}
  if (isUnboundArgument(argument1Number, arguments)) {
               
arguments.get(argument1Number).setBuiltInResult(createDataValueArgument(var));  
          }
        return true;
   }
}

This is the log file of protege:

2018.03.05 09:39:36.515 CET INFO: *** SYSTEM START *** --
SystemUtilities.logSystemInfo()
2018.03.05 09:39:36.520 CET CONFIG: Protege 3.4.8 Build 629, JVM
1.5.0_11-b03, memory=520M, Windows Vista, encoding=UTF-8, language=fr,
country=FR -- SystemUtilities.logSystemInfo()
2018.03.05 09:39:36.990 CET CONFIG: Loaded plugin
edu.stanford.smi.protegex.owl - OWL Plugin --
PluginUtilities.logClassLoaderInformation()
2018.03.05 09:39:37.387 CET CONFIG: Loaded plugin
ca.uvic.cs.chisel.jambalaya - Jambalaya --
PluginUtilities.logClassLoaderInformation()
2018.03.05 09:39:37.419 CET CONFIG: Loaded plugin dfki.protege.ontoviz --
PluginUtilities.logClassLoaderInformation()
2018.03.05 09:39:37.460 CET CONFIG: Loaded plugin
edu.stanford.smi.protegex.standard_extensions - Graph Widget, Table Widget
-- PluginUtilities.logClassLoaderInformation()
2018.03.05 09:39:37.631 CET CONFIG: Loaded plugin
edu.stanford.bmir.protegex.bp.ref - BioPortal Reference Plugin, BioPortal
Import Plugin -- PluginUtilities.logClassLoaderInformation()
2018.03.05 09:39:37.687 CET CONFIG: Loaded plugin
edu.stanford.smi.protegex.rdf_backend - RDF Backend --
PluginUtilities.logClassLoaderInformation()
2018.03.05 09:39:37.727 CET CONFIG: Loaded plugin
edu.stanford.smi.protegex.changes - Changes tab --
PluginUtilities.logClassLoaderInformation()
2018.03.05 09:39:37.767 CET CONFIG: Loaded plugin
edu.stanford.smi.protegex.chatPlugin - Chat --
PluginUtilities.logClassLoaderInformation()
2018.03.05 09:39:37.780 CET CONFIG: Loaded plugin
edu.stanford.smi.protege.collab - Collaborative Protege --
PluginUtilities.logClassLoaderInformation()
2018.03.05 09:39:37.814 CET CONFIG: Loaded plugin
edu.stanford.smi.protege.script - Script Plugin --
PluginUtilities.logClassLoaderInformation()
2018.03.05 09:39:37.853 CET CONFIG: Loaded plugin
edu.stanford.smi.protege.stringsearch - String Search Tab --
PluginUtilities.logClassLoaderInformation()
2018.03.05 09:39:37.889 CET CONFIG: Loaded plugin
edu.stanford.smi.protegex.changeanalysis - Change Analysis Tab --
PluginUtilities.logClassLoaderInformation()
2018.03.05 09:39:38.025 CET CONFIG: Loaded plugin
edu.stanford.smi.protegex.datamaster - DataMaster Tab --
PluginUtilities.logClassLoaderInformation()
2018.03.05 09:39:38.046 CET CONFIG: Loaded plugin
edu.stanford.smi.protegex.pal_tabs - PAL Tabs --
PluginUtilities.logClassLoaderInformation()
2018.03.05 09:39:38.076 CET CONFIG: Loaded plugin
edu.stanford.smi.protegex.ezpal - EZPal Tab --
PluginUtilities.logClassLoaderInformation()
2018.03.05 09:39:38.084 CET CONFIG: Loaded plugin
edu.stanford.smi.protegex.facets_tab --
PluginUtilities.logClassLoaderInformation()
2018.03.05 09:39:38.094 CET CONFIG: Loaded plugin
edu.stanford.smi.protegex.instance_tree --
PluginUtilities.logClassLoaderInformation()
2018.03.05 09:39:38.114 CET CONFIG: Loaded plugin
edu.stanford.smi.protegex.prompt - PROMPT Tab --
PluginUtilities.logClassLoaderInformation()
2018.03.05 09:39:38.522 CET CONFIG: Loaded plugin
edu.stanford.smi.protegex.metaanalysis - MetaAnalysis Tab --
PluginUtilities.logClassLoaderInformation()
2018.03.05 09:39:38.558 CET CONFIG: Loaded plugin
edu.stanford.smi.protegex.owl.inference.pellet - Protege Pellet Reasoner --
PluginUtilities.logClassLoaderInformation()
2018.03.05 09:39:38.616 CET CONFIG: Loaded plugin
edu.stanford.smi.protegex.query.lucene - LuceneQueryTab --
PluginUtilities.logClassLoaderInformation()
2018.03.05 09:39:38.670 CET CONFIG: Loaded plugin
edu.stanford.smi.protegex.umls_tab - UMLS Tab --
PluginUtilities.logClassLoaderInformation()
2018.03.05 09:39:38.705 CET CONFIG: Loaded plugin
edu.stanford.smi.protegex.wordnet - WordNet Tab --
PluginUtilities.logClassLoaderInformation()
2018.03.05 09:39:38.731 CET CONFIG: Loaded plugin
edu.stanford.smi.protegex.xml_tab - XML Tab --
PluginUtilities.logClassLoaderInformation()
2018.03.05 09:39:38.751 CET CONFIG: Loaded plugin org.algernon - Algernon --
PluginUtilities.logClassLoaderInformation()
2018.03.05 09:39:38.780 CET CONFIG: Loaded plugin org.protege.owl.axiome -
Axiome Plugin -- PluginUtilities.logClassLoaderInformation()
2018.03.05 09:39:38.826 CET CONFIG: Loaded plugin
org.protege.owl.mappingmaster - MappingMaster Plugin --
PluginUtilities.logClassLoaderInformation()
2018.03.05 09:39:38.854 CET CONFIG: Loaded plugin se.liu.ida.JessTab -
JessTab Plugin -- PluginUtilities.logClassLoaderInformation()
2018.03.05 09:39:38.876 CET CONFIG: Loaded plugin
uk.ac.iam.soton.akt.tgviztab - TGVizTab --
PluginUtilities.logClassLoaderInformation()
2018.03.05 09:39:38.893 CET CONFIG: Loaded plugin
uk.ac.man.cs.mig.coode.debugger --
PluginUtilities.logClassLoaderInformation()
2018.03.05 09:39:38.906 CET CONFIG: Loaded plugin
uk.ac.man.cs.mig.coode.manchesterowlsyntaxeditor --
PluginUtilities.logClassLoaderInformation()
2018.03.05 09:39:38.921 CET CONFIG: Loaded plugin
uk.ac.man.cs.mig.coode.owldoc -- PluginUtilities.logClassLoaderInformation()
2018.03.05 09:39:38.936 CET CONFIG: Loaded plugin
uk.ac.man.cs.mig.coode.owlindividualstab --
PluginUtilities.logClassLoaderInformation()
2018.03.05 09:39:38.956 CET CONFIG: Loaded plugin
uk.ac.man.cs.mig.coode.owlviz -- PluginUtilities.logClassLoaderInformation()
2018.03.05 09:39:38.996 CET CONFIG: Loaded plugin
uk.ac.man.cs.mig.coode.protege.wizard - Basic Wizards --
PluginUtilities.logClassLoaderInformation()
2018.03.05 09:39:39.008 CET CONFIG: Loaded plugin
uk.ac.man.cs.mig.coode.protege.wizard.owl - OWL Wizards --
PluginUtilities.logClassLoaderInformation()
2018.03.05 09:39:44.230 CET INFO: Loading triples for: file:/C:/test.owl --
ProtegeOWLParser.loadTriples()
2018.03.05 09:39:44.808 CET INFO:     Completed triple loading after 573 ms
-- ProtegeOWLParser.loadTriples()
2018.03.05 09:39:44.809 CET INFO: Importing
http://sqwrl.stanford.edu/ontologies/built-ins/3.4/sqwrl.owl from location:
C:\Program
Files\Protege_3.4.8\plugins\edu.stanford.smi.protegex.owl\sqwrl.owl --
AbstractOWLModel.loadImportedAssertions()
2018.03.05 09:39:44.819 CET INFO: Loading triples for:
http://sqwrl.stanford.edu/ontologies/built-ins/3.4/sqwrl.owl --
ProtegeOWLParser.loadTriples()
2018.03.05 09:39:44.839 CET INFO:     Completed triple loading after 17 ms
-- ProtegeOWLParser.loadTriples()
2018.03.05 09:39:44.840 CET INFO:
http://sqwrl.stanford.edu/ontologies/built-ins/3.4/sqwrl.owl already
imported as triple store
http://sqwrl.stanford.edu/ontologies/built-ins/3.4/sqwrl.owl --
AbstractOWLModel.loadImportedAssertions()
2018.03.05 09:39:44.844 CET INFO: Importing
http://swrl.stanford.edu/ontologies/3.3/swrla.owl from location: C:\Program
Files\Protege_3.4.8\plugins\edu.stanford.smi.protegex.owl\swrla.owl --
AbstractOWLModel.loadImportedAssertions()
2018.03.05 09:39:44.848 CET INFO: Loading triples for:
http://swrl.stanford.edu/ontologies/3.3/swrla.owl --
ProtegeOWLParser.loadTriples()
2018.03.05 09:39:44.875 CET INFO:     Completed triple loading after 24 ms
-- ProtegeOWLParser.loadTriples()
2018.03.05 09:39:44.876 CET INFO:
http://swrl.stanford.edu/ontologies/3.3/swrla.owl already imported as triple
store http://swrl.stanford.edu/ontologies/3.3/swrla.owl --
AbstractOWLModel.loadImportedAssertions()
2018.03.05 09:39:44.877 CET INFO: Importing
http://www.owl-ontologies.com/Ontology1481027354.owl from location:
C:\Program
Files\Protege_3.4.8\plugins\edu.stanford.smi.protegex.owl\SWRLOntologie.owl
-- AbstractOWLModel.loadImportedAssertions()
2018.03.05 09:39:44.881 CET INFO: Loading triples for:
http://www.owl-ontologies.com/Ontology1481027354.owl --
ProtegeOWLParser.loadTriples()
2018.03.05 09:39:44.887 CET INFO:     Completed triple loading after 5 ms --
ProtegeOWLParser.loadTriples()
2018.03.05 09:39:44.888 CET INFO:
http://www.owl-ontologies.com/Ontology1481027354.owl already imported as
triple store http://www.owl-ontologies.com/Ontology1481027354.owl --
AbstractOWLModel.loadImportedAssertions()
2018.03.05 09:39:44.890 CET INFO: Postprocess: Process entities with
incorrect Java type (0 entities) ...  --
TriplePostProcessor.processFramesWithWrongJavaType()
2018.03.05 09:39:44.890 CET INFO: 0 ms
 -- TriplePostProcessor.processFramesWithWrongJavaType()
2018.03.05 09:39:44.891 CET INFO: Postprocess: Process metaclasses (3
metaclasses) ...  -- TriplePostProcessor.processMetaclasses()
2018.03.05 09:39:44.892 CET INFO: 0 ms
 -- TriplePostProcessor.processMetaclasses()
2018.03.05 09:39:44.893 CET INFO: Postprocess: Process subclasses of
rdf:List (1 classes) ...  --
TriplePostProcessor.processSubclassesOfRdfList()
2018.03.05 09:39:44.894 CET INFO: 0 ms
 -- TriplePostProcessor.processSubclassesOfRdfList()
2018.03.05 09:39:44.894 CET INFO: Postprocess: Instances with multiple types
(7 instances) ...  --
TriplePostProcessor.processInstancesWithMultipleTypes()
2018.03.05 09:39:44.897 CET INFO: 2 ms
 -- TriplePostProcessor.processInstancesWithMultipleTypes()
2018.03.05 09:39:44.897 CET INFO: Postprocess: Add inferred superclasses ...
-- TriplePostProcessor.processInferredSuperclasses()
2018.03.05 09:39:44.898 CET INFO: 0 ms
 -- TriplePostProcessor.processInferredSuperclasses()
2018.03.05 09:39:44.903 CET INFO: Postprocess: Process orphan classes (13
classes) ...  -- TriplePostProcessor.processOrphanClses()
2018.03.05 09:39:44.906 CET INFO: 3 ms
 -- TriplePostProcessor.processOrphanClses()
2018.03.05 09:39:44.907 CET INFO: Postprocess: Generalized Concept Inclusion
(0 axioms) ...  -- TriplePostProcessor.processGeneralizedConceptInclusions()
2018.03.05 09:39:44.908 CET INFO: 1 ms
 -- TriplePostProcessor.processGeneralizedConceptInclusions()
2018.03.05 09:39:44.908 CET INFO: Postprocess: Abstract classes...  --
TriplePostProcessor.processAbstractClasses()
2018.03.05 09:39:44.909 CET INFO: 0 ms
 -- TriplePostProcessor.processAbstractClasses()
2018.03.05 09:39:44.909 CET INFO: Postprocess: Domain and range of
properties...  -- TriplePostProcessor.processDomainAndRange()
2018.03.05 09:39:44.916 CET INFO: 6 ms
 -- TriplePostProcessor.processDomainAndRange()
2018.03.05 09:39:44.916 CET INFO: Postprocess: Possibly typed entities (0
resources) ...  -- TriplePostProcessor.processPossiblyTypedResources()
2018.03.05 09:39:44.917 CET INFO: 0 ms
 -- TriplePostProcessor.processPossiblyTypedResources()
2018.03.05 09:39:44.919 CET INFO: Updating underlying frames model in 0 ms
-- ProtegeOWLParser.doFinalPostProcessing()
2018.03.05 09:39:54.372 CET INFO: Rule engine 'SWRLJessBridge' registered
with the SWRLTab. -- SWRLRuleEngineFactory.registerRuleEngine()
2018.03.05 09:39:54.385 CET INFO: Plugin 'SWRLJessBridge' registered with
the SWRLTab plugin manager. -- BridgePluginManager.registerPlugin()
2018.03.05 09:39:54.392 CET INFO: Plugin 'SQWRLQueryTab' registered with the
SWRLTab plugin manager. -- BridgePluginManager.registerPlugin()

and this is the display of Jess tab when executing the rule:

SWRL rule and relevant OWL knowledge successfully converted to rule engine
knowledge.
Number of SWRL rules exported to rule engine: 1
Number of OWL class declarations exported to rule engine: 6
Number of OWL individual declarations exported to rule engine: 35
Number of other OWL axioms exported to rule engine: 46
The transfer took 423 millisecond(s).
Press the "Run Jess" button to run the rule engine.
Exception running rule engine: error running Jess rule engine: Jess reported
an error in routine invokeSWRLBuiltIn
        while executing (invokeSWRLBuiltIn "Rule-1"
"http://www.owl-ontologies.com/Ontology1481027354.owl#mymethod" 0 true ?xx
?yy)
        while executing defrule MAIN::Rule-1.
  Message: exception thrown by built-in mybuiltin:mymethod in rule Rule-1:
edu.stanford.smi.protegex.owl.swrl.bridge.exceptions.BuiltInException:
unknown exception thrown by built-in mybuiltin:mymethod in rule Rule-1:
java.lang.reflect.InvocationTargetException.

How to fix it?

Thank you in advance.

Best Regards.



--
Sent from: http://protege-project.136.n4.nabble.com/Protege-Developer-f4659816.html
_______________________________________________
protege-dev mailing list
[hidden email]
https://mailman.stanford.edu/mailman/listinfo/protege-dev
Reply | Threaded
Open this post in threaded view
|

Re: Exception when executing custom built-in with Jess

Martin O'Connor-2

Can you put a System.out.println in the opening line of the built-in to determine if it is actually being invoked.

Martin

> On Mar 5, 2018, at 1:10 AM, maha <[hidden email]> wrote:
>
> Dear Sir,
>
> I did the System.out.println in the catch clause  in mybuiltin method like
> this:
>
> public boolean mymethod(List<BuiltInArgument> arguments) throws
> BuiltInException {
>
>  int argument1Number = 0, argument2Number = 1, numberOfArguments = 2;
>
> checkNumberOfArgumentsEqualTo(numberOfArguments, arguments.size());
>        String s1 = getArgumentAsAString(argument1Number, arguments);
>        String s2 = getArgumentAsAString(argument2Number, arguments);
>
> try{
>
> //the instruction that I think it does the exception in the runtime
> .
> .
> .
>
> }
> catch(Exception e){
> System.out.println("Exception due to : "+ e.getCause());
> e.printStackTrace();
> }
>  if (isUnboundArgument(argument1Number, arguments)) {
>
> arguments.get(argument1Number).setBuiltInResult(createDataValueArgument(var));  
>  }
>        return true;
>   }
> }
>
> This is the log file of protege:
>
> 2018.03.05 09:39:36.515 CET INFO: *** SYSTEM START *** --
> SystemUtilities.logSystemInfo()
> 2018.03.05 09:39:36.520 CET CONFIG: Protege 3.4.8 Build 629, JVM
> 1.5.0_11-b03, memory=520M, Windows Vista, encoding=UTF-8, language=fr,
> country=FR -- SystemUtilities.logSystemInfo()
> 2018.03.05 09:39:36.990 CET CONFIG: Loaded plugin
> edu.stanford.smi.protegex.owl - OWL Plugin --
> PluginUtilities.logClassLoaderInformation()
> 2018.03.05 09:39:37.387 CET CONFIG: Loaded plugin
> ca.uvic.cs.chisel.jambalaya - Jambalaya --
> PluginUtilities.logClassLoaderInformation()
> 2018.03.05 09:39:37.419 CET CONFIG: Loaded plugin dfki.protege.ontoviz --
> PluginUtilities.logClassLoaderInformation()
> 2018.03.05 09:39:37.460 CET CONFIG: Loaded plugin
> edu.stanford.smi.protegex.standard_extensions - Graph Widget, Table Widget
> -- PluginUtilities.logClassLoaderInformation()
> 2018.03.05 09:39:37.631 CET CONFIG: Loaded plugin
> edu.stanford.bmir.protegex.bp.ref - BioPortal Reference Plugin, BioPortal
> Import Plugin -- PluginUtilities.logClassLoaderInformation()
> 2018.03.05 09:39:37.687 CET CONFIG: Loaded plugin
> edu.stanford.smi.protegex.rdf_backend - RDF Backend --
> PluginUtilities.logClassLoaderInformation()
> 2018.03.05 09:39:37.727 CET CONFIG: Loaded plugin
> edu.stanford.smi.protegex.changes - Changes tab --
> PluginUtilities.logClassLoaderInformation()
> 2018.03.05 09:39:37.767 CET CONFIG: Loaded plugin
> edu.stanford.smi.protegex.chatPlugin - Chat --
> PluginUtilities.logClassLoaderInformation()
> 2018.03.05 09:39:37.780 CET CONFIG: Loaded plugin
> edu.stanford.smi.protege.collab - Collaborative Protege --
> PluginUtilities.logClassLoaderInformation()
> 2018.03.05 09:39:37.814 CET CONFIG: Loaded plugin
> edu.stanford.smi.protege.script - Script Plugin --
> PluginUtilities.logClassLoaderInformation()
> 2018.03.05 09:39:37.853 CET CONFIG: Loaded plugin
> edu.stanford.smi.protege.stringsearch - String Search Tab --
> PluginUtilities.logClassLoaderInformation()
> 2018.03.05 09:39:37.889 CET CONFIG: Loaded plugin
> edu.stanford.smi.protegex.changeanalysis - Change Analysis Tab --
> PluginUtilities.logClassLoaderInformation()
> 2018.03.05 09:39:38.025 CET CONFIG: Loaded plugin
> edu.stanford.smi.protegex.datamaster - DataMaster Tab --
> PluginUtilities.logClassLoaderInformation()
> 2018.03.05 09:39:38.046 CET CONFIG: Loaded plugin
> edu.stanford.smi.protegex.pal_tabs - PAL Tabs --
> PluginUtilities.logClassLoaderInformation()
> 2018.03.05 09:39:38.076 CET CONFIG: Loaded plugin
> edu.stanford.smi.protegex.ezpal - EZPal Tab --
> PluginUtilities.logClassLoaderInformation()
> 2018.03.05 09:39:38.084 CET CONFIG: Loaded plugin
> edu.stanford.smi.protegex.facets_tab --
> PluginUtilities.logClassLoaderInformation()
> 2018.03.05 09:39:38.094 CET CONFIG: Loaded plugin
> edu.stanford.smi.protegex.instance_tree --
> PluginUtilities.logClassLoaderInformation()
> 2018.03.05 09:39:38.114 CET CONFIG: Loaded plugin
> edu.stanford.smi.protegex.prompt - PROMPT Tab --
> PluginUtilities.logClassLoaderInformation()
> 2018.03.05 09:39:38.522 CET CONFIG: Loaded plugin
> edu.stanford.smi.protegex.metaanalysis - MetaAnalysis Tab --
> PluginUtilities.logClassLoaderInformation()
> 2018.03.05 09:39:38.558 CET CONFIG: Loaded plugin
> edu.stanford.smi.protegex.owl.inference.pellet - Protege Pellet Reasoner --
> PluginUtilities.logClassLoaderInformation()
> 2018.03.05 09:39:38.616 CET CONFIG: Loaded plugin
> edu.stanford.smi.protegex.query.lucene - LuceneQueryTab --
> PluginUtilities.logClassLoaderInformation()
> 2018.03.05 09:39:38.670 CET CONFIG: Loaded plugin
> edu.stanford.smi.protegex.umls_tab - UMLS Tab --
> PluginUtilities.logClassLoaderInformation()
> 2018.03.05 09:39:38.705 CET CONFIG: Loaded plugin
> edu.stanford.smi.protegex.wordnet - WordNet Tab --
> PluginUtilities.logClassLoaderInformation()
> 2018.03.05 09:39:38.731 CET CONFIG: Loaded plugin
> edu.stanford.smi.protegex.xml_tab - XML Tab --
> PluginUtilities.logClassLoaderInformation()
> 2018.03.05 09:39:38.751 CET CONFIG: Loaded plugin org.algernon - Algernon --
> PluginUtilities.logClassLoaderInformation()
> 2018.03.05 09:39:38.780 CET CONFIG: Loaded plugin org.protege.owl.axiome -
> Axiome Plugin -- PluginUtilities.logClassLoaderInformation()
> 2018.03.05 09:39:38.826 CET CONFIG: Loaded plugin
> org.protege.owl.mappingmaster - MappingMaster Plugin --
> PluginUtilities.logClassLoaderInformation()
> 2018.03.05 09:39:38.854 CET CONFIG: Loaded plugin se.liu.ida.JessTab -
> JessTab Plugin -- PluginUtilities.logClassLoaderInformation()
> 2018.03.05 09:39:38.876 CET CONFIG: Loaded plugin
> uk.ac.iam.soton.akt.tgviztab - TGVizTab --
> PluginUtilities.logClassLoaderInformation()
> 2018.03.05 09:39:38.893 CET CONFIG: Loaded plugin
> uk.ac.man.cs.mig.coode.debugger --
> PluginUtilities.logClassLoaderInformation()
> 2018.03.05 09:39:38.906 CET CONFIG: Loaded plugin
> uk.ac.man.cs.mig.coode.manchesterowlsyntaxeditor --
> PluginUtilities.logClassLoaderInformation()
> 2018.03.05 09:39:38.921 CET CONFIG: Loaded plugin
> uk.ac.man.cs.mig.coode.owldoc -- PluginUtilities.logClassLoaderInformation()
> 2018.03.05 09:39:38.936 CET CONFIG: Loaded plugin
> uk.ac.man.cs.mig.coode.owlindividualstab --
> PluginUtilities.logClassLoaderInformation()
> 2018.03.05 09:39:38.956 CET CONFIG: Loaded plugin
> uk.ac.man.cs.mig.coode.owlviz -- PluginUtilities.logClassLoaderInformation()
> 2018.03.05 09:39:38.996 CET CONFIG: Loaded plugin
> uk.ac.man.cs.mig.coode.protege.wizard - Basic Wizards --
> PluginUtilities.logClassLoaderInformation()
> 2018.03.05 09:39:39.008 CET CONFIG: Loaded plugin
> uk.ac.man.cs.mig.coode.protege.wizard.owl - OWL Wizards --
> PluginUtilities.logClassLoaderInformation()
> 2018.03.05 09:39:44.230 CET INFO: Loading triples for: file:/C:/test.owl --
> ProtegeOWLParser.loadTriples()
> 2018.03.05 09:39:44.808 CET INFO:     Completed triple loading after 573 ms
> -- ProtegeOWLParser.loadTriples()
> 2018.03.05 09:39:44.809 CET INFO: Importing
> http://sqwrl.stanford.edu/ontologies/built-ins/3.4/sqwrl.owl from location:
> C:\Program
> Files\Protege_3.4.8\plugins\edu.stanford.smi.protegex.owl\sqwrl.owl --
> AbstractOWLModel.loadImportedAssertions()
> 2018.03.05 09:39:44.819 CET INFO: Loading triples for:
> http://sqwrl.stanford.edu/ontologies/built-ins/3.4/sqwrl.owl --
> ProtegeOWLParser.loadTriples()
> 2018.03.05 09:39:44.839 CET INFO:     Completed triple loading after 17 ms
> -- ProtegeOWLParser.loadTriples()
> 2018.03.05 09:39:44.840 CET INFO:
> http://sqwrl.stanford.edu/ontologies/built-ins/3.4/sqwrl.owl already
> imported as triple store
> http://sqwrl.stanford.edu/ontologies/built-ins/3.4/sqwrl.owl --
> AbstractOWLModel.loadImportedAssertions()
> 2018.03.05 09:39:44.844 CET INFO: Importing
> http://swrl.stanford.edu/ontologies/3.3/swrla.owl from location: C:\Program
> Files\Protege_3.4.8\plugins\edu.stanford.smi.protegex.owl\swrla.owl --
> AbstractOWLModel.loadImportedAssertions()
> 2018.03.05 09:39:44.848 CET INFO: Loading triples for:
> http://swrl.stanford.edu/ontologies/3.3/swrla.owl --
> ProtegeOWLParser.loadTriples()
> 2018.03.05 09:39:44.875 CET INFO:     Completed triple loading after 24 ms
> -- ProtegeOWLParser.loadTriples()
> 2018.03.05 09:39:44.876 CET INFO:
> http://swrl.stanford.edu/ontologies/3.3/swrla.owl already imported as triple
> store http://swrl.stanford.edu/ontologies/3.3/swrla.owl --
> AbstractOWLModel.loadImportedAssertions()
> 2018.03.05 09:39:44.877 CET INFO: Importing
> http://www.owl-ontologies.com/Ontology1481027354.owl from location:
> C:\Program
> Files\Protege_3.4.8\plugins\edu.stanford.smi.protegex.owl\SWRLOntologie.owl
> -- AbstractOWLModel.loadImportedAssertions()
> 2018.03.05 09:39:44.881 CET INFO: Loading triples for:
> http://www.owl-ontologies.com/Ontology1481027354.owl --
> ProtegeOWLParser.loadTriples()
> 2018.03.05 09:39:44.887 CET INFO:     Completed triple loading after 5 ms --
> ProtegeOWLParser.loadTriples()
> 2018.03.05 09:39:44.888 CET INFO:
> http://www.owl-ontologies.com/Ontology1481027354.owl already imported as
> triple store http://www.owl-ontologies.com/Ontology1481027354.owl --
> AbstractOWLModel.loadImportedAssertions()
> 2018.03.05 09:39:44.890 CET INFO: Postprocess: Process entities with
> incorrect Java type (0 entities) ...  --
> TriplePostProcessor.processFramesWithWrongJavaType()
> 2018.03.05 09:39:44.890 CET INFO: 0 ms
> -- TriplePostProcessor.processFramesWithWrongJavaType()
> 2018.03.05 09:39:44.891 CET INFO: Postprocess: Process metaclasses (3
> metaclasses) ...  -- TriplePostProcessor.processMetaclasses()
> 2018.03.05 09:39:44.892 CET INFO: 0 ms
> -- TriplePostProcessor.processMetaclasses()
> 2018.03.05 09:39:44.893 CET INFO: Postprocess: Process subclasses of
> rdf:List (1 classes) ...  --
> TriplePostProcessor.processSubclassesOfRdfList()
> 2018.03.05 09:39:44.894 CET INFO: 0 ms
> -- TriplePostProcessor.processSubclassesOfRdfList()
> 2018.03.05 09:39:44.894 CET INFO: Postprocess: Instances with multiple types
> (7 instances) ...  --
> TriplePostProcessor.processInstancesWithMultipleTypes()
> 2018.03.05 09:39:44.897 CET INFO: 2 ms
> -- TriplePostProcessor.processInstancesWithMultipleTypes()
> 2018.03.05 09:39:44.897 CET INFO: Postprocess: Add inferred superclasses ...
> -- TriplePostProcessor.processInferredSuperclasses()
> 2018.03.05 09:39:44.898 CET INFO: 0 ms
> -- TriplePostProcessor.processInferredSuperclasses()
> 2018.03.05 09:39:44.903 CET INFO: Postprocess: Process orphan classes (13
> classes) ...  -- TriplePostProcessor.processOrphanClses()
> 2018.03.05 09:39:44.906 CET INFO: 3 ms
> -- TriplePostProcessor.processOrphanClses()
> 2018.03.05 09:39:44.907 CET INFO: Postprocess: Generalized Concept Inclusion
> (0 axioms) ...  -- TriplePostProcessor.processGeneralizedConceptInclusions()
> 2018.03.05 09:39:44.908 CET INFO: 1 ms
> -- TriplePostProcessor.processGeneralizedConceptInclusions()
> 2018.03.05 09:39:44.908 CET INFO: Postprocess: Abstract classes...  --
> TriplePostProcessor.processAbstractClasses()
> 2018.03.05 09:39:44.909 CET INFO: 0 ms
> -- TriplePostProcessor.processAbstractClasses()
> 2018.03.05 09:39:44.909 CET INFO: Postprocess: Domain and range of
> properties...  -- TriplePostProcessor.processDomainAndRange()
> 2018.03.05 09:39:44.916 CET INFO: 6 ms
> -- TriplePostProcessor.processDomainAndRange()
> 2018.03.05 09:39:44.916 CET INFO: Postprocess: Possibly typed entities (0
> resources) ...  -- TriplePostProcessor.processPossiblyTypedResources()
> 2018.03.05 09:39:44.917 CET INFO: 0 ms
> -- TriplePostProcessor.processPossiblyTypedResources()
> 2018.03.05 09:39:44.919 CET INFO: Updating underlying frames model in 0 ms
> -- ProtegeOWLParser.doFinalPostProcessing()
> 2018.03.05 09:39:54.372 CET INFO: Rule engine 'SWRLJessBridge' registered
> with the SWRLTab. -- SWRLRuleEngineFactory.registerRuleEngine()
> 2018.03.05 09:39:54.385 CET INFO: Plugin 'SWRLJessBridge' registered with
> the SWRLTab plugin manager. -- BridgePluginManager.registerPlugin()
> 2018.03.05 09:39:54.392 CET INFO: Plugin 'SQWRLQueryTab' registered with the
> SWRLTab plugin manager. -- BridgePluginManager.registerPlugin()
>
> and this is the display of Jess tab when executing the rule:
>
> SWRL rule and relevant OWL knowledge successfully converted to rule engine
> knowledge.
> Number of SWRL rules exported to rule engine: 1
> Number of OWL class declarations exported to rule engine: 6
> Number of OWL individual declarations exported to rule engine: 35
> Number of other OWL axioms exported to rule engine: 46
> The transfer took 423 millisecond(s).
> Press the "Run Jess" button to run the rule engine.
> Exception running rule engine: error running Jess rule engine: Jess reported
> an error in routine invokeSWRLBuiltIn
> while executing (invokeSWRLBuiltIn "Rule-1"
> "http://www.owl-ontologies.com/Ontology1481027354.owl#mymethod" 0 true ?xx
> ?yy)
> while executing defrule MAIN::Rule-1.
>  Message: exception thrown by built-in mybuiltin:mymethod in rule Rule-1:
> edu.stanford.smi.protegex.owl.swrl.bridge.exceptions.BuiltInException:
> unknown exception thrown by built-in mybuiltin:mymethod in rule Rule-1:
> java.lang.reflect.InvocationTargetException.
>
> How to fix it?
>
> Thank you in advance.
>
> Best Regards.
>
>
>
> --
> Sent from: http://protege-project.136.n4.nabble.com/Protege-Developer-f4659816.html
> _______________________________________________
> protege-dev mailing list
> [hidden email]
> https://mailman.stanford.edu/mailman/listinfo/protege-dev


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

Re: Exception when executing custom built-in with Jess

maha
Hello
I put the instruction System.out.println at the beginning of my method
.
.
checkNumberOfArgumentsEqualTo(numberOfArguments, arguments.size());
        String s1 = getArgumentAsAString(argument1Number, arguments);
        String s2 = getArgumentAsAString(argument2Number, arguments);
        System.out.println("opening line of the function");

but it does not display in the log file of protege,

.
.
.
2018.03.06 07:43:54.525 CET INFO: Rule engine 'SWRLJessBridge' registered
with the SWRLTab. -- SWRLRuleEngineFactory.registerRuleEngine()
2018.03.06 07:43:54.537 CET INFO: Plugin 'SWRLJessBridge' registered with
the SWRLTab plugin manager. -- BridgePluginManager.registerPlugin()
2018.03.06 07:43:54.546 CET INFO: Plugin 'SQWRLQueryTab' registered with the
SWRLTab plugin manager. -- BridgePluginManager.registerPlugin()

neither in the console after running the rule in JessTab.

Exception running rule engine: error running Jess rule engine: Jess reported
an error in routine invokeSWRLBuiltIn
        while executing (invokeSWRLBuiltIn "Rule-1"
"http://www.owl-ontologies.com/Ontology1481027354.owl#mymethod" 0 true ?xx
?yy)
        while executing defrule MAIN::Rule-1.
  Message: exception thrown by built-in mybuiltin:mymethod in rule Rule-1:
edu.stanford.smi.protegex.owl.swrl.bridge.exceptions.BuiltInException:
unknown exception thrown by built-in mybuiltin:mymethod in rule Rule-1:
java.lang.reflect.InvocationTargetException.



--
Sent from: http://protege-project.136.n4.nabble.com/Protege-Developer-f4659816.html
_______________________________________________
protege-dev mailing list
[hidden email]
https://mailman.stanford.edu/mailman/listinfo/protege-dev
Reply | Threaded
Open this post in threaded view
|

Re: Exception when executing custom built-in with Jess

Martin O'Connor-2

That is not at the beginning of the method. There are several commands before it that could throw exceptions.

Can you just replace the entire method body with a log command and see if there is still an exception? 

e.g.,

public boolean mymethod(List<SWRLBuiltInArgument> arguments) throws SWRLBuiltInException
 {
   System.out.println("my method");
 }

Martin

On Mar 5, 2018, at 10:59 PM, maha <[hidden email]> wrote:

Hello
I put the instruction System.out.println at the beginning of my method
.
.
checkNumberOfArgumentsEqualTo(numberOfArguments, arguments.size());
       String s1 = getArgumentAsAString(argument1Number, arguments);
       String s2 = getArgumentAsAString(argument2Number, arguments);
       System.out.println("opening line of the function");

but it does not display in the log file of protege,

.
.
.
2018.03.06 07:43:54.525 CET INFO: Rule engine 'SWRLJessBridge' registered
with the SWRLTab. -- SWRLRuleEngineFactory.registerRuleEngine()
2018.03.06 07:43:54.537 CET INFO: Plugin 'SWRLJessBridge' registered with
the SWRLTab plugin manager. -- BridgePluginManager.registerPlugin()
2018.03.06 07:43:54.546 CET INFO: Plugin 'SQWRLQueryTab' registered with the
SWRLTab plugin manager. -- BridgePluginManager.registerPlugin()

neither in the console after running the rule in JessTab.

Exception running rule engine: error running Jess rule engine: Jess reported
an error in routine invokeSWRLBuiltIn
       while executing (invokeSWRLBuiltIn "Rule-1"
"http://www.owl-ontologies.com/Ontology1481027354.owl#mymethod" 0 true ?xx
?yy)
       while executing defrule MAIN::Rule-1.
 Message: exception thrown by built-in mybuiltin:mymethod in rule Rule-1:
edu.stanford.smi.protegex.owl.swrl.bridge.exceptions.BuiltInException:
unknown exception thrown by built-in mybuiltin:mymethod in rule Rule-1:
java.lang.reflect.InvocationTargetException.



--
Sent from: http://protege-project.136.n4.nabble.com/Protege-Developer-f4659816.html
_______________________________________________
protege-dev mailing list
[hidden email]
https://mailman.stanford.edu/mailman/listinfo/protege-dev


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

Re: Exception when executing custom built-in with Jess

maha
Dear sir
After executing the rule with the method written as you mentioned, I don't
find the display of the String in System.out.println.

public boolean mymethod(List<BuiltInArgument> arguments) throws
BuiltInException
 {
   System.out.println("my method");
   return true;
 }

In Protege, SWRLTab displays:

SWRL rule and relevant OWL knowledge successfully converted to rule engine
knowledge.
Number of SWRL rules exported to rule engine: 1
Number of OWL class declarations exported to rule engine: 6
Number of OWL individual declarations exported to rule engine: 35
Number of other OWL axioms exported to rule engine: 46
The transfer took 429 millisecond(s).
Press the "Run Jess" button to run the rule engine.

Successful execution of rule engine.
Number of inferred axioms: 0
The process took 4 millisecond(s).
Look at the "Inferred Axioms" tab to see the inferred axioms.
Press the "Jess->OWL" button to translate the asserted facts to OWL
knowledge.

Successfully transferred inferred facts to OWL model.
Number of axioms inferred: 0
The process took 1 millisecond(s).

and in the log file of the Protege, it displays:

2018.03.07 09:33:57.036 CET INFO: *** SYSTEM START *** --
SystemUtilities.logSystemInfo()
2018.03.07 09:33:57.073 CET CONFIG: Protege 3.4.8 Build 629, JVM
1.5.0_11-b03, memory=520M, Windows Vista, encoding=UTF-8, language=fr,
country=FR -- SystemUtilities.logSystemInfo()
2018.03.07 09:34:01.552 CET CONFIG: Loaded plugin
edu.stanford.smi.protegex.owl - OWL Plugin --
PluginUtilities.logClassLoaderInformation()
2018.03.07 09:34:03.005 CET CONFIG: Loaded plugin
ca.uvic.cs.chisel.jambalaya - Jambalaya --
PluginUtilities.logClassLoaderInformation()
2018.03.07 09:34:03.289 CET CONFIG: Loaded plugin dfki.protege.ontoviz --
PluginUtilities.logClassLoaderInformation()
2018.03.07 09:34:03.451 CET CONFIG: Loaded plugin
edu.stanford.smi.protegex.standard_extensions - Graph Widget, Table Widget
-- PluginUtilities.logClassLoaderInformation()
2018.03.07 09:34:03.852 CET CONFIG: Loaded plugin
edu.stanford.bmir.protegex.bp.ref - BioPortal Reference Plugin, BioPortal
Import Plugin -- PluginUtilities.logClassLoaderInformation()
2018.03.07 09:34:04.141 CET CONFIG: Loaded plugin
edu.stanford.smi.protegex.rdf_backend - RDF Backend --
PluginUtilities.logClassLoaderInformation()
2018.03.07 09:34:04.239 CET CONFIG: Loaded plugin
edu.stanford.smi.protegex.changes - Changes tab --
PluginUtilities.logClassLoaderInformation()
2018.03.07 09:34:04.395 CET CONFIG: Loaded plugin
edu.stanford.smi.protegex.chatPlugin - Chat --
PluginUtilities.logClassLoaderInformation()
2018.03.07 09:34:04.434 CET CONFIG: Loaded plugin
edu.stanford.smi.protege.collab - Collaborative Protege --
PluginUtilities.logClassLoaderInformation()
2018.03.07 09:34:04.633 CET CONFIG: Loaded plugin
edu.stanford.smi.protege.script - Script Plugin --
PluginUtilities.logClassLoaderInformation()
2018.03.07 09:34:04.916 CET CONFIG: Loaded plugin
edu.stanford.smi.protege.stringsearch - String Search Tab --
PluginUtilities.logClassLoaderInformation()
2018.03.07 09:34:04.967 CET CONFIG: Loaded plugin
edu.stanford.smi.protegex.changeanalysis - Change Analysis Tab --
PluginUtilities.logClassLoaderInformation()
2018.03.07 09:34:05.412 CET CONFIG: Loaded plugin
edu.stanford.smi.protegex.datamaster - DataMaster Tab --
PluginUtilities.logClassLoaderInformation()
2018.03.07 09:34:05.551 CET CONFIG: Loaded plugin
edu.stanford.smi.protegex.pal_tabs - PAL Tabs --
PluginUtilities.logClassLoaderInformation()
2018.03.07 09:34:05.628 CET CONFIG: Loaded plugin
edu.stanford.smi.protegex.ezpal - EZPal Tab --
PluginUtilities.logClassLoaderInformation()
2018.03.07 09:34:05.673 CET CONFIG: Loaded plugin
edu.stanford.smi.protegex.facets_tab --
PluginUtilities.logClassLoaderInformation()
2018.03.07 09:34:05.748 CET CONFIG: Loaded plugin
edu.stanford.smi.protegex.instance_tree --
PluginUtilities.logClassLoaderInformation()
2018.03.07 09:34:05.856 CET CONFIG: Loaded plugin
edu.stanford.smi.protegex.prompt - PROMPT Tab --
PluginUtilities.logClassLoaderInformation()
2018.03.07 09:34:06.642 CET CONFIG: Loaded plugin
edu.stanford.smi.protegex.metaanalysis - MetaAnalysis Tab --
PluginUtilities.logClassLoaderInformation()
2018.03.07 09:34:06.725 CET CONFIG: Loaded plugin
edu.stanford.smi.protegex.owl.inference.pellet - Protege Pellet Reasoner --
PluginUtilities.logClassLoaderInformation()
2018.03.07 09:34:07.151 CET CONFIG: Loaded plugin
edu.stanford.smi.protegex.query.lucene - LuceneQueryTab --
PluginUtilities.logClassLoaderInformation()
2018.03.07 09:34:07.312 CET CONFIG: Loaded plugin
edu.stanford.smi.protegex.umls_tab - UMLS Tab --
PluginUtilities.logClassLoaderInformation()
2018.03.07 09:34:07.423 CET CONFIG: Loaded plugin
edu.stanford.smi.protegex.wordnet - WordNet Tab --
PluginUtilities.logClassLoaderInformation()
2018.03.07 09:34:07.468 CET CONFIG: Loaded plugin
edu.stanford.smi.protegex.xml_tab - XML Tab --
PluginUtilities.logClassLoaderInformation()
2018.03.07 09:34:07.513 CET CONFIG: Loaded plugin org.algernon - Algernon --
PluginUtilities.logClassLoaderInformation()
2018.03.07 09:34:07.582 CET CONFIG: Loaded plugin org.protege.owl.axiome -
Axiome Plugin -- PluginUtilities.logClassLoaderInformation()
2018.03.07 09:34:07.904 CET CONFIG: Loaded plugin
org.protege.owl.mappingmaster - MappingMaster Plugin --
PluginUtilities.logClassLoaderInformation()
2018.03.07 09:34:08.050 CET CONFIG: Loaded plugin se.liu.ida.JessTab -
JessTab Plugin -- PluginUtilities.logClassLoaderInformation()
2018.03.07 09:34:08.138 CET CONFIG: Loaded plugin
uk.ac.iam.soton.akt.tgviztab - TGVizTab --
PluginUtilities.logClassLoaderInformation()
2018.03.07 09:34:08.199 CET CONFIG: Loaded plugin
uk.ac.man.cs.mig.coode.debugger --
PluginUtilities.logClassLoaderInformation()
2018.03.07 09:34:08.239 CET CONFIG: Loaded plugin
uk.ac.man.cs.mig.coode.manchesterowlsyntaxeditor --
PluginUtilities.logClassLoaderInformation()
2018.03.07 09:34:08.372 CET CONFIG: Loaded plugin
uk.ac.man.cs.mig.coode.owldoc -- PluginUtilities.logClassLoaderInformation()
2018.03.07 09:34:08.458 CET CONFIG: Loaded plugin
uk.ac.man.cs.mig.coode.owlindividualstab --
PluginUtilities.logClassLoaderInformation()
2018.03.07 09:34:08.501 CET CONFIG: Loaded plugin
uk.ac.man.cs.mig.coode.owlviz -- PluginUtilities.logClassLoaderInformation()
2018.03.07 09:34:08.918 CET CONFIG: Loaded plugin
uk.ac.man.cs.mig.coode.protege.wizard - Basic Wizards --
PluginUtilities.logClassLoaderInformation()
2018.03.07 09:34:08.978 CET CONFIG: Loaded plugin
uk.ac.man.cs.mig.coode.protege.wizard.owl - OWL Wizards --
PluginUtilities.logClassLoaderInformation()
2018.03.07 09:34:16.239 CET INFO: Loading triples for: file:/C:/test.owl --
ProtegeOWLParser.loadTriples()
2018.03.07 09:34:16.841 CET INFO:     Completed triple loading after 596 ms
-- ProtegeOWLParser.loadTriples()
2018.03.07 09:34:16.843 CET INFO: Importing
http://sqwrl.stanford.edu/ontologies/built-ins/3.4/sqwrl.owl from location:
C:\Program
Files\Protege_3.4.8\plugins\edu.stanford.smi.protegex.owl\sqwrl.owl --
AbstractOWLModel.loadImportedAssertions()
2018.03.07 09:34:16.854 CET INFO: Loading triples for:
http://sqwrl.stanford.edu/ontologies/built-ins/3.4/sqwrl.owl --
ProtegeOWLParser.loadTriples()
2018.03.07 09:34:16.875 CET INFO:     Completed triple loading after 19 ms
-- ProtegeOWLParser.loadTriples()
2018.03.07 09:34:16.876 CET INFO:
http://sqwrl.stanford.edu/ontologies/built-ins/3.4/sqwrl.owl already
imported as triple store
http://sqwrl.stanford.edu/ontologies/built-ins/3.4/sqwrl.owl --
AbstractOWLModel.loadImportedAssertions()
2018.03.07 09:34:16.880 CET INFO: Importing
http://swrl.stanford.edu/ontologies/3.3/swrla.owl from location: C:\Program
Files\Protege_3.4.8\plugins\edu.stanford.smi.protegex.owl\swrla.owl --
AbstractOWLModel.loadImportedAssertions()
2018.03.07 09:34:16.885 CET INFO: Loading triples for:
http://swrl.stanford.edu/ontologies/3.3/swrla.owl --
ProtegeOWLParser.loadTriples()
2018.03.07 09:34:16.911 CET INFO:     Completed triple loading after 24 ms
-- ProtegeOWLParser.loadTriples()
2018.03.07 09:34:16.912 CET INFO:
http://swrl.stanford.edu/ontologies/3.3/swrla.owl already imported as triple
store http://swrl.stanford.edu/ontologies/3.3/swrla.owl --
AbstractOWLModel.loadImportedAssertions()
2018.03.07 09:34:16.913 CET INFO: Importing
http://www.owl-ontologies.com/Ontology1481027354.owl from location:
C:\Program
Files\Protege_3.4.8\plugins\edu.stanford.smi.protegex.owl\SWRLOntologie.owl
-- AbstractOWLModel.loadImportedAssertions()
2018.03.07 09:34:16.918 CET INFO: Loading triples for:
http://www.owl-ontologies.com/Ontology1481027354.owl --
ProtegeOWLParser.loadTriples()
2018.03.07 09:34:16.925 CET INFO:     Completed triple loading after 5 ms --
ProtegeOWLParser.loadTriples()
2018.03.07 09:34:16.926 CET INFO:
http://www.owl-ontologies.com/Ontology1481027354.owl already imported as
triple store http://www.owl-ontologies.com/Ontology1481027354.owl --
AbstractOWLModel.loadImportedAssertions()
2018.03.07 09:34:16.927 CET INFO: Postprocess: Process entities with
incorrect Java type (0 entities) ...  --
TriplePostProcessor.processFramesWithWrongJavaType()
2018.03.07 09:34:16.928 CET INFO: 0 ms
 -- TriplePostProcessor.processFramesWithWrongJavaType()
2018.03.07 09:34:16.928 CET INFO: Postprocess: Process metaclasses (3
metaclasses) ...  -- TriplePostProcessor.processMetaclasses()
2018.03.07 09:34:16.931 CET INFO: 1 ms
 -- TriplePostProcessor.processMetaclasses()
2018.03.07 09:34:16.932 CET INFO: Postprocess: Process subclasses of
rdf:List (1 classes) ...  --
TriplePostProcessor.processSubclassesOfRdfList()
2018.03.07 09:34:16.933 CET INFO: 0 ms
 -- TriplePostProcessor.processSubclassesOfRdfList()
2018.03.07 09:34:16.934 CET INFO: Postprocess: Instances with multiple types
(7 instances) ...  --
TriplePostProcessor.processInstancesWithMultipleTypes()
2018.03.07 09:34:16.937 CET INFO: 2 ms
 -- TriplePostProcessor.processInstancesWithMultipleTypes()
2018.03.07 09:34:16.938 CET INFO: Postprocess: Add inferred superclasses ...
-- TriplePostProcessor.processInferredSuperclasses()
2018.03.07 09:34:16.939 CET INFO: 0 ms
 -- TriplePostProcessor.processInferredSuperclasses()
2018.03.07 09:34:16.944 CET INFO: Postprocess: Process orphan classes (13
classes) ...  -- TriplePostProcessor.processOrphanClses()
2018.03.07 09:34:16.947 CET INFO: 2 ms
 -- TriplePostProcessor.processOrphanClses()
2018.03.07 09:34:16.948 CET INFO: Postprocess: Generalized Concept Inclusion
(0 axioms) ...  -- TriplePostProcessor.processGeneralizedConceptInclusions()
2018.03.07 09:34:16.950 CET INFO: 1 ms
 -- TriplePostProcessor.processGeneralizedConceptInclusions()
2018.03.07 09:34:16.951 CET INFO: Postprocess: Abstract classes...  --
TriplePostProcessor.processAbstractClasses()
2018.03.07 09:34:16.952 CET INFO: 0 ms
 -- TriplePostProcessor.processAbstractClasses()
2018.03.07 09:34:16.953 CET INFO: Postprocess: Domain and range of
properties...  -- TriplePostProcessor.processDomainAndRange()
2018.03.07 09:34:16.961 CET INFO: 7 ms
 -- TriplePostProcessor.processDomainAndRange()
2018.03.07 09:34:16.962 CET INFO: Postprocess: Possibly typed entities (0
resources) ...  -- TriplePostProcessor.processPossiblyTypedResources()
2018.03.07 09:34:16.963 CET INFO: 0 ms
 -- TriplePostProcessor.processPossiblyTypedResources()
2018.03.07 09:34:16.965 CET INFO: Updating underlying frames model in 1 ms
-- ProtegeOWLParser.doFinalPostProcessing()
2018.03.07 09:34:24.881 CET INFO: Rule engine 'SWRLJessBridge' registered
with the SWRLTab. -- SWRLRuleEngineFactory.registerRuleEngine()
2018.03.07 09:34:24.894 CET INFO: Plugin 'SWRLJessBridge' registered with
the SWRLTab plugin manager. -- BridgePluginManager.registerPlugin()
2018.03.07 09:34:24.901 CET INFO: Plugin 'SQWRLQueryTab' registered with the
SWRLTab plugin manager. -- BridgePluginManager.registerPlugin()

I don't know where it can be displayed.





--
Sent from: http://protege-project.136.n4.nabble.com/Protege-Developer-f4659816.html
_______________________________________________
protege-dev mailing list
[hidden email]
https://mailman.stanford.edu/mailman/listinfo/protege-dev