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

    https://github.com/apache/jena/pull/114#discussion_r48532508
  
    --- Diff: jena-arq/Grammar/master.jj ---
    @@ -327,6 +359,35 @@ void AskQuery() : {}
       SolutionModifier()
     }
     
    +void JsonQuery() : {}
    +{
    +  JsonClause()
    +  ( DatasetClause() )*
    +  WhereClause()
    +  SolutionModifier()
    +}
    +
    +void JsonClause() : { Object o ; String s ; }
    +{
    +  <JSON> { getQuery().setQueryJsonType() ; }
    +  <LBRACE>
    +  s = String() < PNAME_NS >
    +  (
    --- End diff --
    
    Shouldn't PNAME_NS be COLON?  PNAME_NS matches  `foo:` so  "s = String() < 
PNAME_NS >" matches `"abcd" xyz:`
    
    It may be hard to parse JSON using the SPARQL tokens,in which case using 
some javacc ability to switch details may be needed.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to