Esempio n. 1
0
 def initBindings_test1(self):
     query = 'select * where {?s ?P ?oo.?ss ?p \n?oo}'
     initBindings = dict(oo=URIRef("OHO"), P=Decimal("4.40"))
     processed = SPARQLGraph._processInitBindings(query, initBindings)
     assert processed == \
         'select * where {?s "4.40"^^' + \
         '<http://www.w3.org/2001/XMLSchema#decimal> <OHO>.?ss ?p \n<OHO>}'