Labels

CDK (114) Bioclipse (73) chemistry (64) chemoinformatics (46) RDF (43) cheminformatics (30) InChI (24) JChemPaint (23) Java (22) publishing (20) metabolomics (19) Blue Obelisk (18) Chemical blogspace (18) QSAR (18) SPARQL (18) blogging (18) Jmol (17) git (16) CML (15) bioinformatics (15) open data (15) pubchem (15) semantic web (15) NMR (13) google (13) Eclipse (12) ACS (11) Taverna (11) ODOSOS (10) SMILES (10) XMPP (10) science (10) ChemSpider (9) NMRShiftDB (9) RDFa (9) literature (9) Ubuntu (8) Wikipedia (8) cdkws2009 (8) chemometrics (8) conference (8) descriptors (8) opensource (8) unit testing (8) MetWare (7) database (7) firefox (7) io-data (7) microformats (7) nature (7) workshop (7) Chicago (6) FOAF (6) JUnit (6) R (6) RSS (6) SourceForge (6) XML (6) development (6) friendfeed (6) greasemonkey (6) CMLRSS (5) HTML (5) JOELib (5) JSF (5) KDE (5) Open Notebook Science (5) SENECA (5) Strigi (5) Virtuoso (5) atom types (5) creative commons (5) crystallography (5) editor (5) github (5) javascript (5) license (5) mass spectroscopy (5) molecular (5) molecules (5) onssolubility (5) ontologies (5) open source (5) statistics (5) CUBIC (4) Debian (4) JavaDoc (4) KEGG (4) KNIME (4) Linux (4) OWL (4) PhD (4) Postgenomic.com (4) RSC (4) SOAP (4) SWT (4) Slashdot (4) Uppsala (4) XML Schema (4) blogspace (4) connotea (4) copyright (4) dbpedia (4) groovy (4) myExperiment (4) peer review (4) reaction (4) sechemtic (4) text mining (4) web2.0 (4) webservices (4)

Thursday, October 15, 2009

SPARQL end points, Jena and bif:contains

I have been having fun with SPARQL in Bioclipse for a while now, and blogged at several occasions:

One thing I had not been able to work out, is that Virtuoso uses a (rather nice) bif:contains extension that support indexing. However, Jena would complain with:
com.hp.hpl.jena.query.QueryParseException: Line 1, column 31: Unresolved
prefixed name: bif:contains
Defining the prefix did not solve the problem either, but Ivan Mikhailov just replied to my post to the virtuoso-user mailing list providing the solution.

The solution is in the fact that bif: is in its own namespace, which makes it possible to replace bif:contains by its full reference <bif:contains>. I directly gave that a try in Bioclipse, and just succesfull ran this Bioclipse script snippet:
rdf.sparqlRemote(
  "http://bio2rdf.org/sparql",
  "SELECT * WHERE {?s ?p ?o . ?o <bif:contains> \"aspirin\" .};"
);

Thanx, Ivan!

0 peer reviews:

hCard

Egon Willighagen, Uppsala, Sweden, blog: chem-bla-ics.blogspot.com