Hi all,
I have a problem with a SPARQL query using the DISTINCT feature.
I installed the commercial Virtuoso 6.2 distribution for Windows.
In order to run some experiments, I loaded the 1M BSBM data [1].
When I run the following query in conductor I get the correct results:
SELECT DISTINCT ?o FROM <http://mytest.com> WHERE {?s a ?o}
However, when running the same query from a hosted PHP script, the
results are not distinct anymore and I also get only a small subset:
<?php
$c=odbc_connect("Local Virtuoso",'dba','dba');
$r=odbc_exec($c,'sparql SELECT DISTINCT ?o FROM <http://mytest.com>
WHERE {?s a ?o}');
while($row=odbc_fetch_array($r))
print_r($row);
?>
What's the problem? How can it be that I get different results from
conductor and when submitting a query via ODBC? Or am I doing something
wrong?
Best,
Sören
[1]
http://www4.wiwiss.fu-berlin.de/bizer/BerlinSPARQLBenchmark/datasets/qualification.ttl.gz