i tried this String name = "etre"; System.out.println("name "+knowledgeBase.existEntity(name)); ObjectEntityInstance inste =entity.getInstanceByName(name); mebn.getObjectEntityContainer().getObjectEntityByName("Patient").removeInstance(inste); String name1 = "bob"; System.out.println("name "+knowledgeBase.existEntity(name1)); ObjectEntityInstance instee =entity.getInstanceByName(name1); mebn.getObjectEntityContainer().getObjectEntityByName("Patient").removeInstance(inste); this is the execution name...
sorry for bothering you again, now a loaded the KnowlageBase successfully (with PowerLoomKB ) and i even add a new instance successfully as well ... but when i tried to delete a instance, it did'nt work ! i tried " removeEntityInstance"... "removeInstance(instance)" ... clear... etc so im wondering if there is another way or fonction ? thank you an advance. Regards.
Thank so much
thank you, now, i'm trying to load the KnowledgeBase. knowing that i'm using PROWL2 PROWL2TextModeRunner textModeRunner = new PROWL2TextModeRunner(); KnowledgeBase knowledgeBase = new PROWL2KnowledgeBaseBuilder().buildKB(mebn, null); knowledgeBase = textModeRunner.createKnowledgeBase(knowledgeBase, mebn); knowledgeBase.loadModule(ubf_File, true); knowledgeBase = textModeRunner.fillFindings(mebn,knowledgeBase); i have this error in my execution Exception in thread "main" java.lang.IllegalArgumentException:...
this is what i have now ! public class liver2 { public liver2 () throws URISyntaxException{ System.out.println(new java.io.File(this.getClass().getResource("/").toURI()).getAbsolutePath()); } public static void main(String[] args) throws IOMebnException, IOException, URISyntaxException{ liver2 p =new liver2(); unbbayes.util.Debug.setDebug(true); File mebnFile = new File("C:/Users/Toshiba" + "/Desktop/unbbayes-4.21.18-dist/unbbayes-4.21.18" + "/plugins/unbbayes.gui.mebn.ontology.protege-1.2.5/" +...
got SAX parser factory - org.apache.xerces.jaxp.SAXParserFactoryImpl@4d3167f4 configured, stopOnError=false, isValidating=true Opening .owl file: D:\onto 5/Cancer_V12.owl [DEBUG] class unbbayes.prs.mebn.ontology.protege.ProtegeBundleLauncher: Could not load protege plugin directory from resource. Retry on root folder... [DEBUG] null: [DEBUG] unbbayes.prs.mebn.ontology.protege.ProtegeBundleLauncher.getProtegePluginDir(ProtegeBundleLauncher.java:635); [DEBUG] unbbayes.prs.mebn.ontology.protege.ProtegeBundleLauncher.initializeSystemProperties(ProtegeBundleLauncher.java:299);...
yes, i have the "ROOT_OF_MY_PROGRAM/protege/bundles/org.protege.common.jar " what do you think i should do to fix this problem ? i need to finish this program by the end of this month. Regards.
yes, i have the "ROOT_OF_MY_PROGRAM/protege/bundles/org.protege.common.jar " what you think i should do to fix this problem ? i need to finish this program by the end of this month. Regards.