W3C home > Mailing lists > Public > public-rdf-ruby@w3.org > March 2013

SPARQL 1.0.3 and EBNF gems released

From: Gregg Kellogg <gregg@greggkellogg.net>
Date: Tue, 5 Mar 2013 17:10:04 -0800
Message-Id: <8F2170EA-2004-48AD-AEA1-19913D3C0128@greggkellogg.net>
Cc: public-rdf-dawg-comments-request@w3.org
To: "public-rdf-ruby@w3.org" <public-rdf-ruby@w3.org>
I've updated the SPARQL gem [1], which works with RDF.rb 1.0 and greater in pure Ruby (>= 1.8.7). This version has no new functionality, but is based on the SPARQL 1.1 grammar, rather than the SPARQL 1.0 grammar. In order to get the SPARQL 1.1 grammar to compile, I needed to re-create my LL(1) toolchain, which used some custom components along with some old SWAP rules. The new version uses a new EBNF gem [2], which parses W3C EBNF and generates LL(1) parser tables (first/follow and branch). It also includes a generic LL(1) parser core, which is used both by Turtle and TriG parser gems as well as SPARQL.

The EBNF gem will probably be of more interest to spec writers in the future, as it can validate EBNF grammars, turn them into BNF grammars and create generally usable parser tables. It will also be useful as a web service for generating grammar documentation, providing formatted HTML output of compliant grammars.

Having the SPARQL gem use the 1.1 grammar now enables the generation of more algebra operators to support more the more advanced features of SPARQL 1.1 query and update.

[1] https://rubygems.org/gems/sparql
[2] https://rubygems.org/gems/ebnf
Received on Wednesday, 6 March 2013 01:10:35 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 6 March 2013 01:10:36 GMT