stumbled upon ACTION-200 CONSTRUCT WHERE shortcut...

Hi all,

I found this old action lying around, haven't found any notes on it, so I thought I just draft something:

If we want that still, my suggestion would be to 

1) change

[9]  ConstructQuery  ::=  'CONSTRUCT' ConstructTemplate DatasetClause* WhereClause SolutionModifier

to

[9]  ConstructQuery  ::=  ( 'CONSTRUCT' ConstructTemplate DatasetClause* WhereClause SolutionModifier ) |
                          ( 'CONSTRUCT' DatasetClause* 'WHERE' ConstructTemplate  SolutionModifier )

would that work with the grammar?


2) add a subsection 


<div3 id="CONSTRUCTWHERE">
<head>CONSTRUCT WHERE</head>
<p>In case the construct template is identical to the WHERE clause, i.e. the triples matched by the WHERE clause 
form the result graph, the CONSTRUCT Query form can be used in an abbreviated version, omitting the template.</p>

<p>For example, for the same data graph as before, the following query copies all foaf:name triples to the result graph.</p>

<pre class=query
  PREFIX foaf: <http://xmlns.com/foaf/0.1/>
  PREFIX site: <http://example.org/stats#>

  CONSTRUCT WHERE { ?person foaf:name ?name }
</pre>
</div3>






Axel

 

Received on Monday, 13 December 2010 20:31:25 UTC