Search Mailing List Archives


Limit search to: Subject & Body Subject Author
Sort by: Reverse Sort
Limit to: All This Week Last Week This Month Last Month
Select Date Range     through    

[protege-dev] Exception when executing custom built-in with Jess

maha maha_isims at hotmail.com
Wed Mar 7 00:52:35 PST 2018


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


More information about the protege-dev mailing list