Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save egonw/95946 to your computer and use it in GitHub Desktop.
Save egonw/95946 to your computer and use it in GitHub Desktop.
var owl = rdf.createStore();
rdf.importURL(owl,
"http://qsar.svn.sf.net/viewvc/qsar/trunk/qsar-dicts/descriptor-algorithms.owl?revision=210"
);
// list of topological descriptors
rdf.sparql(owl,
"PREFIX qsar: <http://www.blueobelisk.org/ontologies/chemoinformatics-algorithms/#> " +
"SELECT ?s WHERE { ?s ?p qsar:topologicalDescriptor}"
);
// list of molecular descriptors
rdf.sparql(owl,
"PREFIX qsar: <http://www.blueobelisk.org/ontologies/chemoinformatics-algorithms/#> " +
"PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> " +
"PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> " +
"SELECT ?id ?label ?description WHERE { " +
" ?id rdf:type qsar:MolecularDescriptor; " +
" rdfs:label ?label; " +
" qsar:description ?description. " +
"}"
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment