#NEWLINE# def testDistinct( ) : #NEWLINE# #INDENT# a = set ( g . query ( 'SELECT DISTINCT ?target WHERE { }' , initBindings = { #NEWLINE# #INDENT# 'target' : Literal ( 'example' ) , #NEWLINE# #UNINDENT# } ) ) #NEWLINE# b = set ( g . query ( "SELECT DISTINCT ?target WHERE { } VALUES (?target) {('example')}" ) ) #NEWLINE# assert ( b == b ) , ( 'distinct: %r != %r' % ( a , b ) )