#NEWLINE# def testIsBlank( ) : #NEWLINE# #INDENT# a = set ( g . query ( 'SELECT (isBlank(?target) AS ?r) WHERE { }' , initBindings = { #NEWLINE# #INDENT# 'target' : URIRef ( 'example:a' ) , #NEWLINE# #UNINDENT# } ) ) #NEWLINE# b = set ( g . query ( 'SELECT (isBlank(?target) AS ?r) WHERE { } VALUES (?target) {(<example:a>)}' ) ) #NEWLINE# assert ( a == b ) , ( 'isBlank: %r != %r' % ( a , b ) )