W3C home > Mailing lists > Public > public-semweb-lifesci@w3.org > March 2014

Re: [Update] [LLD] Dataset Description

From: David Booth <david@dbooth.org>
Date: Mon, 03 Mar 2014 11:32:47 -0500
Message-ID: <5314AEAF.7010909@dbooth.org>
To: "w3.hcls@gmail.com" <w3.hcls@gmail.com>, "public-semweb-lifesci@w3.org" <public-semweb-lifesci@w3.org>, Andy Seaborne <andy@apache.org>
On 02/09/2014 05:45 PM, w3.hcls@gmail.com wrote:
> Relevant docs:
> - Working draft of W3C Note:
> https://docs.google.com/document/d/1zGQJ9bO_dSc8taINTNHdnjYEzUyYkbjglrcuUPuoITw/edit#heading=h.wyc73yp7c8jz

I notice that section 6.6.1 Core statistics shows this SPARQL query for 
counting the number of triples:

   SELECT (COUNT(*) AS ?no) { ?s ?p ?o  }

However, I believe the SPARQL 1.1 standard allows duplicate triples and 
duplicate query solutions by default.  If so, to get an accurate count 
of the number of triples, the DISTINCT keyword must be used:

   SELECT (COUNT(DISTINCT *) AS ?no) { ?s ?p ?o  }

I'm copying Andy Seaborne to see if this is correct, since I could not 
easily find this information in the SPARQL 1.1 spec when I did a quick 
scan.   Andy, am I correct about this?

Received on Monday, 3 March 2014 16:33:15 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:21:38 UTC