Hi again,

I also got this error report for D7 (
http://datalab.informatik.uni-leipzig.de/sparql)
In this case we get different results with distinct when we use count and
when we don't

Best,
Dimitris

---------- Forwarded message ----------
From: Roland Cornelissen <[email protected]>
Date: Fri, Apr 5, 2013 at 11:13 AM
Subject: count distinct
To: Dimitris Kontokostas <[email protected]>
Cc: "[email protected]" <[email protected]>


 Hi Dimitris,

I run into a weird issue trying to count distinct values.
When the distinct vaues of a literal are counted like this:
PREFIX bbz: 
<http://beeldbank.zeeuwsebibliotheek.nl/><http://beeldbank.zeeuwsebibliotheek.nl/>
PREFIX dct: <http://purl.org/dc/terms/> <http://purl.org/dc/terms/>
SELECT  count(distinct ?b)
WHERE {
?a dct:rights ?b.
}
It provides the result 4.

But when these literals are shown, like this:
PREFIX bbz: 
<http://beeldbank.zeeuwsebibliotheek.nl/><http://beeldbank.zeeuwsebibliotheek.nl/>
PREFIX dct: <http://purl.org/dc/terms/> <http://purl.org/dc/terms/>
SELECT  distinct ?b
WHERE {
?a dct:rights ?b.
}

It provides only 3 values (nee, ja, jajaja)

Could the difference come from blank values in the dataset? This field may
not have been tested for blanks...
Or is it a bug?

Thanks,
Roland

-- 
 metamatter* | *Drs. Roland Cornelissen* | *Weersterweg 12* | *9832TE* | *Den
Horn* | *T +31 (0)50 5515369* | *M +31 (0)6 14797518* | *www.metamatter.nl



-- 
Kontokostas Dimitris
------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
Virtuoso-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/virtuoso-users

Reply via email to