[ 
https://issues.apache.org/jira/browse/JENA-632?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14255033#comment-14255033
 ] 

Bruno P. Kinoshita commented on JENA-632:
-----------------------------------------

Hi, 

I've been trying to write a patch for this, but before having a definitive 
patch to submit I'll need to write a bunch of things :)

At the moment what I managed to do was to understand how the SPARQL and ARQ 
grammars are generated (with JavaCC) and I've updated them (in master.jj, which 
creates sparql_11.jj, arq.jj and other files via grammar executable).

You can check my work-in-progress grammar here 
https://gist.github.com/kinow/875851f7379abfcb4f13

I haven't messed up with compiler generators and grammars in a while, last time 
was in 2010 but I used Antlr. So there are probably parts that can be enhanced 
(like [this 
part|https://gist.github.com/kinow/875851f7379abfcb4f13#file-gistfile1-java-L350]
 where I couldn't make JavaCC recognize a <COMMA> token).

Even though the grammar seems to be working, and I'm collecting the "variable": 
?variable in a java.util.Map in the Query object, I still have to update SPARQL 
and Fuseki to return JSON. 

> Generate JSON from SPARQL directly.
> -----------------------------------
>
>                 Key: JENA-632
>                 URL: https://issues.apache.org/jira/browse/JENA-632
>             Project: Apache Jena
>          Issue Type: Improvement
>          Components: ARQ, Fuseki
>            Reporter: Andy Seaborne
>            Priority: Minor
>              Labels: gsoc, java, javacc
>
> The capability to generate JSON directly from a SPARQL (or extended SPARQL) 
> query would enable the creation of JSON data API over published linked data.
> This project would cover:
> # Design and publication of a design.
> # Refinement of design based on community feed
> # Implementation, including testing.
> # Refinement of implementation based on community feed
> Skills required: Java, some parser work, design and discussion with the user 
> community, basic understanding of HTTP and content negotiation.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to