<s> import unittest <EOL> from rdflib import RDF <EOL> from rdflib . graph import ConjunctiveGraph <EOL> testgraph = """<STR_LIT>""" % RDF . uri <EOL> testquery = """<STR_LIT>""" <EOL> class TestIssue11 ( unittest . TestCase ) : <EOL> debug = False <EOL> sparql = True <EOL> def setUp ( self ) : <EOL> NS = u"<STR_LIT>" <EOL> self . graph = ConjunctiveGraph ( ) <EOL> self . graph . parse ( data = testgraph , format = "<STR_LIT>" , publicID = NS ) <EOL> def testSPARQL_lessthan_filter_using_negative_integer ( self ) : <EOL> rt = self . graph . query ( testquery , initNs = { '<STR_LIT>' : RDF } , DEBUG = True ) <EOL> for row in rt : <EOL> assert str ( row [ <NUM_LIT:0> ] ) == "<STR_LIT>" <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> TestIssue11 . testSPARQL_lessthan_filter_using_negative_integer ( ) </s>
