Permalink
Browse files

Fixed compile errors for the patch not being updated to recent API ch…

…anges in the bioclipse.rdf framework
  • Loading branch information...
1 parent 4cd3cd3 commit 81f9b53d2c1ce4fa2d13487c1d60fe60b16bebcb @egonw egonw committed with Jun 3, 2010
Showing with 4 additions and 3 deletions.
  1. +4 −3 plugins/net.bioclipse.qsar/src/net/bioclipse/qsar/business/QsarManager.java
@@ -60,6 +60,7 @@
import net.bioclipse.qsar.util.QsarAdapterFactory;
import net.bioclipse.rdf.business.IRDFManager;
import net.bioclipse.rdf.business.IRDFStore;
+import net.bioclipse.rdf.model.IStringMatrix;
import org.apache.log4j.Logger;
import org.eclipse.core.resources.IFile;
@@ -2037,10 +2038,10 @@ public boolean isValidDescriptorDefinition(URL url, String format) {
try {
IRDFManager rdf =
net.bioclipse.rdf.Activator.getDefault().getJavaManager();
- IRDFStore owl = rdf.createStore();
+ IRDFStore owl = rdf.createInMemoryStore();
rdf.importFromStream(owl, url.openStream(), format);
- List<List<String>> cats = rdf.sparql(owl,
+ IStringMatrix cats = rdf.sparql(owl,
"PREFIX qsar: <http://www.blueobelisk.org/ontologies/chemoinformatics-algorithms/#> " +
"SELECT ?desc WHERE { " +
" { ?desc a qsar:Descriptor . } " +
@@ -2050,7 +2051,7 @@ public boolean isValidDescriptorDefinition(URL url, String format) {
);
// if there is no definition found ...
- if (cats.size() == 0) return false;
+ if (cats.getRowCount() == 0) return false;
} catch (Exception exception) {
// any exception means the file is not OK
logger.error("Invalid descriptor file: " + exception);

0 comments on commit 81f9b53

Please sign in to comment.