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

Re: Querying Named Graph using SPARQL

From: Axel Polleres <axel@polleres.net>
Date: Tue, 13 Aug 2013 17:48:27 +0200
Cc: semantic-web@w3.org, public-rdf-wg@w3.org, public-sparql-dev@w3.org
Message-Id: <802C6D0A-9EC4-4974-AFBD-A9E3DEE5DB1A@polleres.net>
To: Quentin Reul <Quentin.H.Reul@gmail.com>
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 15:48:57 UTC

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