Revision: 13699
http://gate.svn.sourceforge.net/gate/?rev=13699&view=rev
Author: nirajaswani
Date: 2011-04-19 11:28:11 +0000 (Tue, 19 Apr 2011)
Log Message:
-----------
correct fix for ontology API - now both ontology API and Ontolody_BDM plugin
work
Modified Paths:
--------------
gate/trunk/plugins/Ontology_OWLIM2/src/gate/creole/ontology/owlim/OWLIMServiceImpl.java
Modified:
gate/trunk/plugins/Ontology_OWLIM2/src/gate/creole/ontology/owlim/OWLIMServiceImpl.java
===================================================================
---
gate/trunk/plugins/Ontology_OWLIM2/src/gate/creole/ontology/owlim/OWLIMServiceImpl.java
2011-04-19 09:18:32 UTC (rev 13698)
+++
gate/trunk/plugins/Ontology_OWLIM2/src/gate/creole/ontology/owlim/OWLIMServiceImpl.java
2011-04-19 11:28:11 UTC (rev 13699)
@@ -10,7 +10,6 @@
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
-import java.io.InputStreamReader;
import java.io.OutputStream;
import java.io.Writer;
import java.net.MalformedURLException;
@@ -4925,13 +4924,10 @@
// lets try to find out the file on local system
int m = 0;
boolean allFound = true;
- if(!fileName.startsWith("http")) {
- System.out.println(fileName + "=>" + ontoFileUrl);
- for(; m < fileName.length() && m < ontoFileUrl.length(); m++) {
- if(fileName.charAt(m) != ontoFileUrl.charAt(m)) {
- allFound = false;
- break;
- }
+ for(; m < fileName.length() && m < ontoFileUrl.length(); m++) {
+ if(fileName.charAt(m) != ontoFileUrl.charAt(m)) {
+ allFound = false;
+ break;
}
}
@@ -4963,9 +4959,11 @@
if(continueProcessing) {
fileName =
tempString + fileName.substring(m - 1, fileName.length());
-
- fileName =
- Files.fileFromURL(new URL(fileName)).getAbsolutePath();
+
+ if(!fileName.startsWith("http")) {
+ fileName =
+ Files.fileFromURL(new URL(fileName)).getAbsolutePath();
+ }
// lets normalize the name by replacing .. in the path
// file://abc/xyz/../../pqr
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Benefiting from Server Virtualization: Beyond Initial Workload
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve
application availability and disaster protection. Learn more about boosting
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs