#NEWLINE# def test_secondary_recursion( self ) : #NEWLINE# #INDENT# graph = ConjunctiveGraph ( ) #NEWLINE# graph . load ( StringIO ( SUBCLASS_DATA ) , format = 'n3' ) #NEWLINE# results = graph . query ( SUBCLASS_QUERY , processor = 'sparql' , DEBUG = False ) #NEWLINE# results = set ( results ) #NEWLINE# ob = URIRef ( 'ex:ob' ) #NEWLINE# class1 = URIRef ( 'ex:class.1' ) #NEWLINE# class2 = URIRef ( 'ex:class.2' ) #NEWLINE# class3 = URIRef ( 'ex:class.3' ) #NEWLINE# nose . tools . assert_equal ( results , set ( [ ( class2 , class1 ) , ( ob , class2 ) , ( ob , class3 ) ] ) )