Skip to content

Instantly share code, notes, and snippets.

@annzi
Created February 5, 2010 11:29
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 annzi/295724 to your computer and use it in GitHub Desktop.
Save annzi/295724 to your computer and use it in GitHub Desktop.
> 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 { \
?mol a chembl:Compound .\
OPTIONAL {?mol chem:smiles ?smil} .\
} LIMIT 5 \
";
> rdf.sparqlRemote("http://pele.farmbio.uu.se/chembl/snorql", sparql2);
com.hp.hpl.jena.sparql.resultset.ResultSetException: skipToHead: Unexpected
tag: {http://www.w3.org/1999/xhtml}html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment