From: <joh...@us...> - 2012-04-24 16:10:24
|
Revision: 15706 http://gate.svn.sourceforge.net/gate/?rev=15706&view=rev Author: johann_p Date: 2012-04-24 16:10:15 +0000 (Tue, 24 Apr 2012) Log Message: ----------- Inform when an unsupported format name is used. Modified Paths: -------------- gate/trunk/plugins/Ontology/src/gate/creole/ontology/impl/sesame/SesameManager.java Modified: gate/trunk/plugins/Ontology/src/gate/creole/ontology/impl/sesame/SesameManager.java =================================================================== --- gate/trunk/plugins/Ontology/src/gate/creole/ontology/impl/sesame/SesameManager.java 2012-04-24 16:09:47 UTC (rev 15705) +++ gate/trunk/plugins/Ontology/src/gate/creole/ontology/impl/sesame/SesameManager.java 2012-04-24 16:10:15 UTC (rev 15706) @@ -625,6 +625,10 @@ public void importIntoRepository(File from, String baseURI, String format) { if(mRepositoryConnection != null) { RDFFormat sesameFormat = RDFFormat.valueOf(format); + if(sesameFormat==null) { + throw new SesameManagerException( + "Could not import - format not supported: "+format); + } try { mRepositoryConnection.add(from,baseURI,sesameFormat); } catch(Exception e) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |