You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jena.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2016/01/01 23:44:39 UTC

[jira] [Commented] (JENA-632) Generate JSON from SPARQL directly.

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

ASF GitHub Bot commented on JENA-632:
-------------------------------------

Github user kinow commented on a diff in the pull request:

    https://github.com/apache/jena/pull/114#discussion_r48680907
  
    --- Diff: jena-arq/Grammar/master.jj ---
    @@ -100,6 +100,38 @@ import org.apache.jena.sparql.core.Quad ;
     public class CLASS extends PARSERBASE
     {
         boolean allowAggregatesInExpressions = false ;
    +
    +    public static void main(String args[]) {
    +        while (true) {
    --- End diff --
    
    Not sure where else it could go. I copied (shamelessly) from an example I found online while re-reading about JavaCC. With this main method, you can run the grammar in Eclipse, and in the Eclipse Console it will be waiting for a String+LFLF (two break lines IIRC).
    
    Then it will use the grammar to parse the string and will output the QueryUnit. I found it useful for reviewing the changes without running some extra class with a main method, or Fuseki.
    
    What do you think? I'm OK with removing it, or moving it somewhere else. Just don't know where else it could go :-)


> 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
>            Assignee: Bruno P. Kinoshita
>            Priority: Minor
>              Labels: java, javacc
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> 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)