changeset 2427 | 3e0ef847a546 |
parent 2422 | 96da7dc42eb5 |
child 2430 | 7d9ed6c740ec |
--- a/spa2rql.py Wed Jul 22 19:42:10 2009 +0200 +++ b/spa2rql.py Wed Jul 22 19:42:35 2009 +0200 @@ -45,6 +45,8 @@ unions = zip(*make_domains([unions, thisunions])) baserql = 'Any %s WHERE %s' % (', '.join(self.selection), ', '.join(self.restrictions)) + if self.sparqlst.distinct: + baserql = 'DISTINCT ' + baserql if not unions: return baserql rqls = ['(%s, %s)' % (baserql, ', '.join(unionrestrs))