Convert sparql results to corresponding rdflib terms
I just wrote a small bit of code which converts a result such as you get it with a select query from SPARQLWrapper (JSON) into a result set with the corresponding rdflib terms, such as URIref, Literal and BNode.
As rdflib provides a nice way to deal with each of these terms, I thought maybe others might want this as well.
See https://gist.github.com/664534 for the snippet.
Jörn
Anonymous