#NEWLINE# def test_simple_recursion( self ) : #NEWLINE# #INDENT# graph = ConjunctiveGraph ( ) #NEWLINE# graph . load ( StringIO ( BASIC_KNOWS_DATA ) , format = 'n3' ) #NEWLINE# results = graph . query ( KNOWS_QUERY , processor = 'sparql' , DEBUG = False ) #NEWLINE# results = set ( results ) #NEWLINE# person1 = URIRef ( 'ex:person.1' ) #NEWLINE# person2 = URIRef ( 'ex:person.2' ) #NEWLINE# nose . tools . assert_equal ( results , set ( [ ( person1 , None ) , ( person1 , Literal ( 'person 3' ) ) , ( self , Literal ( 'person 3' ) ) ] ) )