Try this:

select ?g { graph ?g {} }

or even this:

select (count(?g) as ?count) { graph ?g {} }

John

On 20/04/17 16:46, Ghislain Atemezing-Pro wrote:
Hi all,
I am trying to make some basic statistics using SPARQL queries on my endpoint 
backed by MarkLogic.
Today, I just wanted to retrieve the number of named graphs with the following 
query:
select distinct ?g where {
graph ?g {
?s ?p ?o
}
}

I realize that the operation works  fine when I limit to 2 (why?) and then for 
the rest, I have a time exceed limit.

Did someone also experience this issue before?

Thanks in advance.
Best,
Ghislain
--
--------------------------------------------
Ghislain A. Atemezing, Ph.D
R&D Engineer SemWeb
@ Mondeca, Paris, France
Labs: http://labs.mondeca.com
Tel: +33 (0)1 4111 3034
Web: www.mondeca.com<http://www.mondeca.com>
Twitter: @gatemezing
About Me: http://atemezing.org




_______________________________________________
General mailing list
[email protected]<mailto:[email protected]>
Manage your subscription at:
http://developer.marklogic.com/mailman/listinfo/general




--
John Snelson, Principal Engineer              http://twitter.com/jpcs
MarkLogic Corporation                         http://www.marklogic.com
_______________________________________________
General mailing list
[email protected]
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to