W3C home > Mailing lists > Public > public-rdf-ruby@w3.org > October 2010

Re: sparql/client

From: Ross Singer <rossfsinger@gmail.com>
Date: Tue, 26 Oct 2010 14:23:32 -0400
Message-ID: <AANLkTi=D9f+TWU-RoaFbu74bdMtjm96wa_BjkS6RBJ0Q@mail.gmail.com>
To: Dominic Sisneros <dsisnero@gmail.com>
Cc: public-rdf-ruby@w3.org
I'm not entirely sure of the error here, but wouldn't
fb:film.film.performances need to be "fb:film.film.performances" (that
is, a string)?

-Ross.

On Sun, Oct 24, 2010 at 8:41 AM, Dominic Sisneros <dsisnero@gmail.com> wrote:
> query = SPARQL::Client::Query
>
> if I have this
> query = query.select.prefix("fb <http://rdf.freebase.com/ns/>").prefix("dc:
> <http://purl.org/dc/elements/1.1/")
>
> how do I use the prefixes in a where clause?
>
> query = query.select(:costar, :fn)
> query = query.where([:s,:p,:o]) works
>
> but
> query = query.where([:s, fb:film.film.performances, :pl]) doesn't
>
> gives a expecting tASSOC error
>
> thanks in advance
>
Received on Tuesday, 26 October 2010 18:24:04 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 26 October 2010 18:24:05 GMT