Re: Getting Started with RDF and SPARQL Using Sesame and Python

Hi, thanks for that.

One of the stipulations in Richard’s original post was that applications should be installable through a package management system, which is why I’ve tried to do that where possible rather than through the download-and-install method that I usually use and you suggest above.

Thank you for the comparison code for doing the querying through rdflib. From what I could tell from the documentation, the support for SPARQL querying over the in-memory graph was only available in a separate module, which didn’t seem to be installable through MacPorts. I might well have that wrong; I’m not sure I tried. (I also quite like RDFAlchemy’s method of mapping RDF resources to Python objects; I thought that would make it more approachable to people who weren’t used to writing RDF.)

I think the issue I was having with the string output from mbox resource was to do with RDFAlchemy: it was coming back as something like rdfalchemy.rdfSubject(mailto:andrew.stott@cabinet-office.gsi.gov.uk) if I remember rightly. It may well be fine direct from rdflib.

Reply

Please solve the math problem above and type in the result. e.g. for 1+1, type 2.
The content of this field is kept private and will not be shown publicly.