Created
April 15, 2009 18:34
-
-
Save egonw/95946 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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