Revision: 14938
          http://gate.svn.sourceforge.net/gate/?rev=14938&view=rev
Author:   markagreenwood
Date:     2012-01-09 08:34:12 +0000 (Mon, 09 Jan 2012)
Log Message:
-----------
minor changes to use the new plugin and to compile/run although it still fails 
because it expects 495 and yet finds 443

Modified Paths:
--------------
    
gate/trunk/plugins/Ontology_BDM_Computation/src/gate/bdmComp/BDMCompMain.java
    
gate/trunk/plugins/Ontology_BDM_Computation/src/gate/bdmComp/TestBDMCompPlugin.java

Modified: 
gate/trunk/plugins/Ontology_BDM_Computation/src/gate/bdmComp/BDMCompMain.java
===================================================================
--- 
gate/trunk/plugins/Ontology_BDM_Computation/src/gate/bdmComp/BDMCompMain.java   
    2012-01-09 07:14:18 UTC (rev 14937)
+++ 
gate/trunk/plugins/Ontology_BDM_Computation/src/gate/bdmComp/BDMCompMain.java   
    2012-01-09 08:34:12 UTC (rev 14938)
@@ -101,9 +101,10 @@
              // step 3: set the parameters 
              FeatureMap fm = Factory.newFeatureMap(); 
              fm.put("rdfXmlURL", ontologyURL); 
+             fm.put("loadImports", Boolean.FALSE);
              // step 4: finally create an instance of ontology 
              try {
-          ontologyUsed = 
(Ontology)Factory.createResource("gate.creole.ontology.owlim.OWLIMOntologyLR", 
fm);
+          ontologyUsed = 
(Ontology)Factory.createResource("gate.creole.ontology.impl.sesame.OWLIMOntology",
 fm);
         }
         catch(ResourceInstantiationException e) {
           e.printStackTrace();

Modified: 
gate/trunk/plugins/Ontology_BDM_Computation/src/gate/bdmComp/TestBDMCompPlugin.java
===================================================================
--- 
gate/trunk/plugins/Ontology_BDM_Computation/src/gate/bdmComp/TestBDMCompPlugin.java
 2012-01-09 07:14:18 UTC (rev 14937)
+++ 
gate/trunk/plugins/Ontology_BDM_Computation/src/gate/bdmComp/TestBDMCompPlugin.java
 2012-01-09 08:34:12 UTC (rev 14938)
@@ -1,19 +1,14 @@
 package gate.bdmComp;
 
 import gate.Corpus;
-import gate.Document;
 import gate.Factory;
 import gate.FeatureMap;
 import gate.Gate;
 import gate.GateConstants;
-import gate.util.ExtensionFileFilter;
 import gate.util.GateException;
 
 import java.io.File;
 import java.net.MalformedURLException;
-import java.net.URL;
-import java.util.Arrays;
-import java.util.Comparator;
 
 import junit.framework.Test;
 import junit.framework.TestCase;
@@ -32,7 +27,7 @@
     if(!initialized) {
       Gate.init();
       File owlimPluginHome = new File(new File(Gate.getGateHome(), "plugins"),
-        "Ontology_OWLIM2");
+        "Ontology");
       Gate.getCreoleRegister().addDirectory(owlimPluginHome.toURI().toURL());
       bdmPluginHome = new File(new File(Gate.getGateHome(), "plugins"),
         "Ontology_BDM_Computation");
@@ -96,6 +91,7 @@
 
       FeatureMap parameters = Factory.newFeatureMap();
       
+      
       bdmM = (BDMCompMain)Factory.createResource(
         "gate.bdmComp.BDMCompMain", parameters);
       

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual 
desktops for less than the cost of PCs and save 60% on VDI infrastructure 
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs

Reply via email to