W3C home > Mailing lists > Public > public-sparql-dev@w3.org > July to September 2013

Re: Querying Named Graph using SPARQL

From: Quentin Reul <Quentin.H.Reul@gmail.com>
Date: Tue, 13 Aug 2013 12:26:12 -0500
Message-ID: <CANk+SXmeo10ixUQ1vU9yhwL1HouxsBdWDnL_ncbVi4xJ7fwMHg@mail.gmail.com>
To: Axel Polleres <axel@polleres.net>
Cc: semantic-web@w3.org, public-rdf-wg <public-rdf-wg@w3.org>, public-sparql-dev@w3.org
Hi all,

I got some help for the developers at Franz Inc. and the following query
retrieves information as expected:
        select distinct ?g { graph ?g { ?s ?p ?o } }

Thanks to those that have helped.

Quentin


On 13 August 2013 10:55, Quentin Reul <Quentin.H.Reul@gmail.com> wrote:

> Hi Alex,
>
> Thanks for your feedback. Unfortunately, it doesn't seem to return
> anything in AllegroGraph, but I don't know if it is an implementation
> issue. From looking at the specification, it seems that the goal it to
> retrieve similar triples from distinct graphs as opposed to retrieve the
> graphs per se.
>
> Cheers,
>
> Quentin
>
>
> On 13 August 2013 10:48, Axel Polleres <axel@polleres.net> wrote:
>
>> Hi Quentin,
>>
>> how about just
>>
>>  SELECT ?G WHERE { GRAPH ?G {} }
>>
>> (no need to dump all triples, if the only concern is which ?G exist)
>>
>> BTW, public-sparql-dev@w3.org may be the list you wanted to use.
>>
>> best,
>> Axel
>> --
>> Dr. Axel Polleres
>> url: http://www.polleres.net/  twitter: AxelPolleres
>>
>>
>>
>> On 13 Aug 2013, at 17:13, Quentin Reul <Quentin.H.Reul@gmail.com> wrote:
>>
>> > Hi all,
>> >
>> > I have been looking at the SPARQL 1.1 specification [1] and I can't
>> find a way to retrieve the list of graphs found into a repository. I have
>> managed to extract quads from the repository (?g ?s ?p ?o) using
>> >         SELECT ?g ?s ?p ?o
>> >         WHERE {
>> >  GRAPH ?g {?s ?o ?p}
>> >         }
>> >
>> > Is there a better way to extract the list of graphs? If not, I think
>> that SPARQL should offer a mechanism to extract a list of graphs in a
>> similar way that SQL allows people to.
>> >
>> > I look forward to hearing from you.
>> >
>> > Cheers,
>> >
>> > Quentin
>> >
>> > [1] http://www.w3.org/TR/sparql11-query/
>>
>>
>
Received on Tuesday, 13 August 2013 17:26:46 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:15:52 UTC