Menu

#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
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.