Permalink
Browse files

Merge branch 'master' of github.com:RDFLib/rdfextras

  • Loading branch information...
2 parents 1ecf6c2 + 9455dfb commit 00bef6d5fe29a39a98c8bc0758ad7c70bcdd89d2 @gromgull gromgull committed Jul 13, 2012
@@ -230,18 +230,17 @@ def ReduceToAlgebra(left,right):
else:
return Join(left,right)
-# # Unreferenced anywhere else
-# def RenderSPARQLAlgebra(parsedSPARQL,nsMappings=None):
-# nsMappings = nsMappings and nsMappings or {}
-# global prolog
-# prolog = parsedSPARQL.prolog
-# if prolog is not None:
-# prolog.DEBUG = False
-# else:
-# prolog = Prolog(None, [])
-# prolog.DEBUG=False
-# return reduce(ReduceToAlgebra,
-# parsedSPARQL.query.whereClause.parsedGraphPattern.graphPatterns,None)
+def RenderSPARQLAlgebra(parsedSPARQL,nsMappings=None):
+ nsMappings = nsMappings and nsMappings or {}
+ global prolog
+ prolog = parsedSPARQL.prolog
+ if prolog is not None:
+ prolog.DEBUG = False
+ else:
+ prolog = Prolog(None, [])
+ prolog.DEBUG=False
+ return reduce(ReduceToAlgebra,
+ parsedSPARQL.query.whereClause.parsedGraphPattern.graphPatterns,None)
def LoadGraph(dtSet,dataSetBase,graph):
# An RDF URI dereference, following TAG best practices
Oops, something went wrong.

0 comments on commit 00bef6d

Please sign in to comment.