SPARQL 1.1 implementation

63 views
Skip to first unread message

Gunnar Aastrand Grimnes

unread,
Oct 22, 2012, 9:55:24 AM10/22/12
to rdfli...@googlegroups.com
Hi everyone,

I've tried to implement SPARQL 1.1 for RDFLib:

https://github.com/gromgull/rdflib-sparql

At the moment, the query part is pretty much "done", according to the
DAWG compliance tests. This means, all SPARQL 1.1 features, like
aggregates, property-paths, sub-queries, etc. should work.

A handful of tests are skipped, either because I've not implemented
the feature (federated queries, entailment) or because the fixes are
depending on

https://github.com/RDFLib/rdflib/issues/196

I've not spent any time trying to optimise the thing, i.e. most things
are implemented as naively and straight-forward as possible.

Now I would love some help testing the thing on real world
data/queries! So if you have a minute, try it! I would appreciate any
sort of comments!

One thing that is not quite SPARQL, but very neat is that the
PropertyPaths are also usable outside the SPARQL Engine, see the
docstring/test here:

https://github.com/gromgull/rdflib-sparql/blob/master/rdflib_sparql/paths.py

and

https://github.com/gromgull/rdflib-sparql/blob/master/examples/foafpaths.py


(In the not-very-long run I would also like to merge this into core
rdflib of course!)

Cheers,

- Gunnar

--
http://gromgull.net

u...@andonyar.com

unread,
Dec 26, 2012, 12:30:40 PM12/26/12
to rdfli...@googlegroups.com
Gunnar Aastrand Grimnes wrote:
> I've tried to implement SPARQL 1.1 for RDFLib:

Good. I ran into a couple of bugs. I could fix them and now it works perfectly (with Python 3.2.3). Better than rdfextras. As for the bug fixes, is it okay to just send pull requests against rdflib-sparql?

Graham Higgins

unread,
Dec 28, 2012, 8:27:40 PM12/28/12
to rdfli...@googlegroups.com
Hi,

On Wed, 2012-12-26 at 09:30 -0800, u...@andonyar.com wrote:
> Gunnar Aastrand Grimnes wrote:
> > I've tried to implement SPARQL 1.1 for RDFLib:
>
> Good. I ran into a couple of bugs. I could fix
> them and now it works perfectly (with Python
> 3.2.3).

That's great news. You're well ahead of me by the sound of it.

> As for the bug
> fixes, is it okay to just send pull requests
> against rdflib-sparql?

That would be most useful, thank you.

--
Graham Higgins

http://bel-epa.com/gjh/
signature.asc
Reply all
Reply to author
Forward
0 new messages