[ https://issues.apache.org/jira/browse/JENA-491?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14636640#comment-14636640 ]
ASF GitHub Bot commented on JENA-491: ------------------------------------- Github user afs commented on a diff in the pull request: https://github.com/apache/jena/pull/89#discussion_r35198277 --- Diff: jena-arq/Grammar/arq.jj --- @@ -500,6 +498,27 @@ void QuadsNotTriples(QuadAccSink acc) : {Node gn ; Node prev = acc.getGraph() ; <RBRACE> { setAccGraph(acc, prev) ; } } +void ConstructQuads(QuadAcc acc) : {} +{ + (TriplesTemplate(acc))? + ( + ConstructQuadsNotTriples(acc) + (<DOT>)? + (TriplesTemplate(acc))? + )* +} +void ConstructQuadsNotTriples(QuadAccSink acc) : {Node gn = org.apache.jena.sparql.core.Quad.defaultGraphNodeGenerated ; Node prev = acc.getGraph() ; } +{ --- End diff -- No need to write the package name - add an import then this code can be shorter. > Extend CONSTRUCT to build quads > ------------------------------- > > Key: JENA-491 > URL: https://issues.apache.org/jira/browse/JENA-491 > Project: Apache Jena > Issue Type: Improvement > Components: ARQ, Fuseki > Reporter: Andy Seaborne > Labels: gsoc, gsoc2015, java, linked_data, rdf, sparql > > This would be an extension to SPARQL. > 1/ Add use of GRAPH inside a CONSTRUCT template see SPARQL Update. > 2/ Add conneg for quads to Fuseki. > 3/ New QueryExecution operations execConstructQuads() and > execConstructDataset() > If asked for triples, and the CONSTRUCT generates quads, the named graph > items are dropped - that is, only the default graph is returned. This is for > commonality with RIOT. -- This message was sent by Atlassian JIRA (v6.3.4#6332)