- markup (77)
- xml (12)
- xslt (23)
- pipelines (8)
- atom (9)
- overlapping markup (6)
- schema (11)
- creole (5)
- dtll (1)
- xforms (1)
- xpath (1)
- xquery (2)
- 4store (1)
- alphagovuk (1)
- betagovuk (1)
- coding (2)
- datagovuk (5)
- gds (1)
- genealogy (4)
- gridworks (2)
- hardware (1)
- http (1)
- linked data (24)
- microdata (8)
- modelling (1)
- named graphs (1)
- opendata (5)
- provenance (2)
- psi (7)
- python (1)
- rdf.rb (1)
- rdfalchemy (1)
- rdflib (1)
- ruby (1)
- schema.org (3)
- sesame (1)
- skos (1)
- sparql (7)
- tag (3)
- Talis (7)
- tpac2010 (1)
- unicode (1)
- uri (5)
- uris (3)
- versioning (1)
- visualisation (6)
- web (99)
- google (5)
- html5 (8)
- jQuery (2)
- rdf (59)
- ontologies (2)
- rdfa (14)
- rdfQuery (5)
- rest (8)
- wikis (1)
- work (5)
- legislation (4)
- xmlsummerschool09 (2)
- life (28)
- children (5)
- equality (6)
- gtd (1)
- environment (4)
- gadgets (5)
- software (3)
- xlinq (2)
- conferences (11)
- ukgc09 (1)
- xtech (9)
- xtech2008 (3)
- blog (8)
- drupal (3)
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.