You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jena.apache.org by "Andy Seaborne (JIRA)" <ji...@apache.org> on 2015/04/01 15:30:54 UTC
[jira] [Comment Edited] (JENA-491) Extend CONSTRUCT to build quads
[ https://issues.apache.org/jira/browse/JENA-491?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14379831#comment-14379831 ]
Andy Seaborne edited comment on JENA-491 at 4/1/15 1:30 PM:
------------------------------------------------------------
A CONSTRUST template is Trutle format with possible variables. The syntax for this extension can follow that style, using TriG+variables. The difference to the proposal is that several graphs, and the default graph, can be generated in one template and the GRAPH usage is include the outer{}.
The syntax should be like TriG (TriG allows the word GRAPH optionally)
{noformat}
CONSTRUCT {
# Named graph
GRAPH :g { ?s :p ?o }
# Default graph
{ ?s :p ?o }
# Named graph
:g { ?s :p ?o }
# Default graph
?s :p ?o
} WHERE { ... }
{noformat}
was (Author: andy.seaborne):
The synatx should be like TriG (TriG allows the word GRAPH optionally)
{noformat}
CONSTRUCT {
# Named graph
GRAPH :g { ?s :p ?o }
# Default graph
{ ?s :p ?o }
# Named graph
:g { ?s :p ?o }
# Default graph
?s :p ?o
} WHERE { ... }
{noformat}
> 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)