We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d7b59bc commit d173c00Copy full SHA for d173c00
test/test_sparql/test_agg_distinct.py
@@ -1,4 +1,5 @@
1
from rdflib import Graph, URIRef
2
+from rdflib.term import Literal
3
4
query_tpl = """
5
SELECT ?x (MIN(?y_) as ?y) (%s(DISTINCT ?z_) as ?z) {
@@ -147,4 +148,8 @@ def test_count_optional_values():
147
148
} GROUP BY ?x
149
"""
150
results = dict(g.query(query))
- assert results[URIRef("http://example.com/3")].toPython() == 0
151
+ assert results == {
152
+ URIRef("http://example.com/1"): Literal(1),
153
+ URIRef("http://example.com/2"): Literal(2),
154
+ URIRef("http://example.com/3"): Literal(0),
155
+ }
0 commit comments