Skip to content

Commit

Permalink
Merge pull request #565 from pchampin/portable_prepareQuery
Browse files Browse the repository at this point in the history
* pull/565:
  indicate that original_args are private
  prepared quey now carry the original (unparsed) parameters
  • Loading branch information
joernhees committed Jan 29, 2016
2 parents 3e9e603 + ff5ada5 commit 87342d4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion rdflib/plugins/sparql/processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ def prepareQuery(queryString, initNs={}, base=None):
"""
Parse and translate a SPARQL Query
"""
return translateQuery(parseQuery(queryString), base, initNs)
ret = translateQuery(parseQuery(queryString), base, initNs)
ret._original_args = (queryString, initNs, base)
return ret


def processUpdate(graph, updateString, initBindings={}, initNs={}, base=None):
Expand Down

0 comments on commit 87342d4

Please sign in to comment.