You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[COUNT] counts the number of times a given expression has a bound, and non-error value
But instead it returns the following tuples:
2 2 2
3 2 2
There is a similar problem with the SAMPLE operator.
I would expect that:
SELECT ?x (SAMPLE(?y) as ?ys) (SAMPLE(?z) as ?zs) WHERE {
VALUES (?x ?y ?z) {
(2 6 UNDEF)
(2 UNDEF 10)
(3 UNDEF 15)
(3 9 UNDEF)
}
}
GROUP BY ?x
return the following tuples:
2 6 10
3 9 15
but instead I get
2 6 _
3 _ 15
(where _ means NULL).
Here the specification is not as explicit as how to handle NULL values,
but both Virtuoso and Corese give me the expected result, so there seem to be a consensus on the fact that SAMPLE should not return NULL values.
(in fact, when one sampled column contains only NULL values, both Virtuoso and Corese populate it with an artificial 0 value).
The text was updated successfully, but these errors were encountered:
pchampin
added a commit
to pchampin/rdflib
that referenced
this issue
Dec 23, 2015
* master:
Revert "Made ClosedNamespace (and _RDFNamespace) inherit from Namespace"
Revert "re-introduces special handling for DCTERMS.title and test for it"
Read and discard server response for update queries, otherwise the socket will eventually block
Remove an unused import
sparql select nothing doesn't return a row anymore, fixes#554
test for #554
minor: isinstance instead of type-equals
adapted agg_Sample to return None instead of 0 if no binding is found
SAMPLE may return None if no binding is found
made test_issue563 py26 compatible
fixing issue #563
Consider the following query:
it should return the following tuples:
as, per the specification:
But instead it returns the following tuples:
There is a similar problem with the SAMPLE operator.
I would expect that:
return the following tuples:
but instead I get
(where
_
means NULL).Here the specification is not as explicit as how to handle NULL values,
but both Virtuoso and Corese give me the expected result, so there seem to be a consensus on the fact that SAMPLE should not return NULL values.
(in fact, when one sampled column contains only NULL values, both Virtuoso and Corese populate it with an artificial 0 value).
The text was updated successfully, but these errors were encountered: