Re: Version 1.0 of Bio2RDF and Chembl webapps released

On 30 June 2011 21:07, Peter Ansell <ansell.peter@gmail.com> wrote:
> On 30 June 2011 18:43, Matthias Samwald
> <matthias.samwald@meduniwien.ac.at> wrote:
>> Do you have an example of how this could be done with SPARQL 1.1?
>
> According to the SPARQL 1.1 specifications, the following should
> hypothetically work, but it doesn't seem to work right now with the
> Sesame 2.4.0 library.
>
> CONSTRUCT {
> ?myUri <http://bio2rdf.org/bio2rdf_resource:genesymbol> ?symbolUri .
> } WHERE {
> ?myUri <http://purl.org/science/owl/sciencecommons/ggp_has_primary_symbol>
> ?primarysymbol .
> bind(iri(concat("http://bio2rdf.org/symbol:",encode_for_uri(lcase(str(?primarySymbol)))))
> AS ?symbolUri)}
>
> BIND : http://www.w3.org/TR/sparql11-query/#bind
> IRI : http://www.w3.org/TR/sparql11-query/#func-iri
> CONCAT : http://www.w3.org/TR/sparql11-query/#func-concat
> ENCODE-FOR-URI : http://www.w3.org/TR/sparql11-query/#func-encode
> LCASE : http://www.w3.org/TR/sparql11-query/#func-lcase

It turns out that Sesame 2.4.0 (released in May 2011) is based on the
draft from October 2010 that doesn't contain some of those functions,
as opposed to Jena which has implemented the functionality in the May
2011 draft in their recent versions.

It works using both ARQ 2.8.7 and 2.8.8 but not ARQ 2.8.6 and I
presume earlier than that would be out also.

Cheers,

Peter

Received on Friday, 1 July 2011 11:09:48 UTC