Permalink
Browse files

Refinements in method that searches for protein family activities.

  • Loading branch information...
1 parent dc20582 commit c7be33f74680cb3de94cd3947473282bb4c5d4c5 @annzi annzi committed with May 18, 2010
@@ -17,11 +17,9 @@
import java.util.HashMap;
import java.util.List;
import java.util.Map;
-
import org.eclipse.core.resources.IFile;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.NullProgressMonitor;
-
import net.bioclipse.core.business.BioclipseException;
import net.bioclipse.managers.business.IBioclipseManager;
import net.bioclipse.rdf.Activator;
@@ -658,14 +656,14 @@ public IStringMatrix MossProtFamilyCompounds(String fam, String actType)
String sparql =
"PREFIX chembl: <http://rdf.farmbio.uu.se/chembl/onto/#> " +
"PREFIX bo: <http://www.blueobelisk.org/chemistryblogs/>"+
- "SELECT ?actType where{ " +
+ "SELECT DISTINCT ?actType where{ " +
" ?activity chembl:type ?actType; " +
" chembl:onAssay ?assay ." +
" ?assay chembl:hasTarget ?target ." +
" ?target a chembl:Target;" +
" chembl:classL5 ?fam. " +
- " FILTER regex(?fam, " + "\"" + fam + "\"" + ", \"i\")."+
- "}LIMIT 100";
+ " FILTER regex(?fam, " + "\"^" + fam + "$\"" + ", \"i\")."+
+ "}";
// "PREFIX chembl: <http://rdf.farmbio.uu.se/chembl/onto/#> " +
// "PREFIX bo: <http://www.blueobelisk.org/chemistryblogs/>"+

0 comments on commit c7be33f

Please sign in to comment.