Skip to content

Instantly share code, notes, and snippets.

> var t ={
"path":null, "mode":0, "seed":"", "threshold":0.5, "minimalSupport":90,
"maximalSupport":0.02, "exNode":"H", "exSeed":"", "minRing":0, "maxRing":0,
"maxEmbMemory":0, "mbond":0, "mrgbd":0, "matom":0, "mrgat":0, "split":false,
"maxEmbed":0,"minEmbed":1,
"closed":true,"pathId":null,"namefile":null,"namefileId":null
};
> moss.createMoSSProperties(t)
@annzi
annzi / FILTER
Created February 23, 2010 12:09
Can't get the FILTER function to work. Without FILTER it workes, and when I add FILTER I get exceptions, see below.
> var allsmiles = " \
PREFIX onto: <http://rdf.farmbio.uu.se/chembl/onto/#> \
PREFIX blueobelisk: <http://www.blueobelisk.org/chemistryblogs/> \
\
SELECT DISTINCT ?smiles \
WHERE { \
?target a onto:Target . \
?target onto:classL5 \"Tk\" . \
> var sparql2 = "\
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>\
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>\
PREFIX foaf: <http://xmlns.com/foaf/0.1/>\
PREFIX owl: <http://www.w3.org/2002/07/owl#>\
PREFIX chembl: <http://pele.farmbio.uu.se/chembl/?>\
PREFIX dc: <http://purl.org/dc/elements/1.1/> \
PREFIX chem: <http://www.blueobelisk.org/chemistryblogs/> \
\
SELECT DISTINCT ?mol ?smil WHERE { \