Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#5 Convert sparql results to corresponding rdflib terms

Future
open
None
5
2012-09-05
2010-11-05
Jörn Hees
No

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

Discussion


Anonymous


Cancel   Add attachments