Revision: 14940
http://gate.svn.sourceforge.net/gate/?rev=14940&view=rev
Author: markagreenwood
Date: 2012-01-09 10:43:38 +0000 (Mon, 09 Jan 2012)
Log Message:
-----------
don't load the ontology tools plugin and set the baseURI so imports work
properly
Modified Paths:
--------------
gate/trunk/plugins/Ontology_BDM_Computation/src/gate/bdmComp/BDMCompMain.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 10:23:44 UTC (rev 14939)
+++
gate/trunk/plugins/Ontology_BDM_Computation/src/gate/bdmComp/BDMCompMain.java
2012-01-09 10:43:38 UTC (rev 14940)
@@ -56,14 +56,6 @@
/** Initialise this resource, and return it. */
public gate.Resource init() throws ResourceInstantiationException {
- // step 2: load the Ontology_Tools plugin
- File ontoHome = new File(Gate.getPluginsHome(),"Ontology_Tools");
- try {
- Gate.getCreoleRegister().addDirectory(ontoHome.toURI().toURL());
- }
- catch(MalformedURLException e) {
- e.printStackTrace();
- }
bdmScores = new HashSet<BDMOne>();
return this;
} // init()
@@ -100,8 +92,12 @@
} else {
// step 3: set the parameters
FeatureMap fm = Factory.newFeatureMap();
- fm.put("rdfXmlURL", ontologyURL);
- fm.put("loadImports", Boolean.FALSE);
+ fm.put("rdfXmlURL", ontologyURL);
+
+ String baseURI=ontologyURL.toURI().toString();
+ baseURI = baseURI.substring(0,baseURI.lastIndexOf('/')+1);
+ fm.put("baseURI", baseURI);
+
// step 4: finally create an instance of ontology
try {
ontologyUsed =
(Ontology)Factory.createResource("gate.creole.ontology.impl.sesame.OWLIMOntology",
fm);
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