On 5/7/14 4:37 AM, Bart Vandewoestyne wrote:
Hello list,

I'm confused.  I have a SPARQL-query of the following form (slightly
obfuscated because of NDA-restrictions):

SELECT ?val (COUNT(?id) as ?vc)
WHERE
{
    ?id<http://foo.bar/description>  ?val.
?id<http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://foo.bar/SomeType>.
}
GROUP BY ?val
ORDER BY DESC(?vc)
LIMIT 15

When running this query multiple times, it returns different values for
the ?vc counts... so it seems not deterministic.  I don't see why.  Is
this query really not deterministic???

I'm running this on Virtuoso Version 7.1.1-dev.3208-pthreads as of Apr
17 2014.

If this is not the right mailinglist to pose this question, please let
me know the appropriate channel for this type of question.

Kind regards,
Bart

Please check the query timeout settings. This could be in the /sparql UI or in the INI (see the [SPARQL] section).

Basically, Virtuoso has an "Anytime Query" feature whereby query solutions are produced relative to query timeouts. Thus, you can increase the timeout to ensure the SPARQL solution isn't comprised of what would appear to be partial results.

Remember, unlike SQL, SPARQL is about propositions in an Open World etc..


--

Regards,

Kingsley Idehen 
Founder & CEO
OpenLink Software
Company Web: http://www.openlinksw.com
Personal Weblog: http://www.openlinksw.com/blog/~kidehen
Twitter Profile: https://twitter.com/kidehen
Google+ Profile: https://plus.google.com/+KingsleyIdehen/about
LinkedIn Profile: http://www.linkedin.com/in/kidehen





Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

------------------------------------------------------------------------------
Is your legacy SCM system holding you back? Join Perforce May 7 to find out:
&#149; 3 signs your SCM is hindering your productivity
&#149; Requirements for releasing software faster
&#149; Expert tips and advice for migrating your SCM now
http://p.sf.net/sfu/perforce
_______________________________________________
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users

Reply via email to