Open knoan opened 9 years ago
Puzzling one…
The linked query @yasgui returns duplicated matches as seen in the attached screenshot; the same query on the query editor @DBpedia seems to work correctly. I already noticed this odd behaviour other times: in what execution paths from Virtuoso query editor and third-party tools could possible differ?
The issue is confirmed by running the query manually over HTTP using curl as:
curl --data-urlencode "query=prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>
select
?link ?label ?count
where {
{ select ?link (count(?term) as ?count) {
<http://dbpedia.org/resource/Fiat_500> ?link ?term
} group by ?link having (count(?term) > 0 ) }
?link rdfs:label ?label filter ( lang(?label) ='en' )
}" http://dbpedia.org/sparql
@knoan: I see what u mean as the curl command returns the duplicates as well , but if you add a "distinct" in the select then the duplicates are removed ...
Is yasgui using curl to perform its queries against remote endpoints ?
As far as I can reckon from network activity, it performs query directly from the browser using XHR objects.
@knoan: Ok, we are going to check this behaviour ...
Many tuples returned by the following query on the http://dbpedia.org/sparql endpoint (Virtuoso 7.20) seem to be duplicated.