ISSUE-70: Behaviour of fully qualified column names in rr:sqlQuery

SELECT EMP.JOB

Behaviour of fully qualified column names in rr:sqlQuery

State:
CLOSED
Product:
R2RML
Raised by:
Richard Cyganiak
Opened on:
2011-11-07
Description:
This was raised by David as part of his LC feedback:
http://lists.w3.org/Archives/Public/public-rdb2rdf-comments/2011Oct/0022.html

Section 6 of R2RML states:

[[
The referenced columns of all term maps of a triples map (subject map, predicate maps, object maps, graph maps) MUST be column names that exist in the term map's logical table.
]]

Per the previous definition of "column name" this implies that the values cannot be qualified. And the intent is indeed that in rr:column, rr:template etc, "JOB" would be used and "EMP.JOB" would be illegal.

But does this mean that writing "SELECT EMP.JOB FROM JOB" in rr:sqlQuery should be considered illegal? Or does it make sense to write such a query and then access the result set column with just an unqualified "JOB"?
Related Actions Items:
Related emails:
  1. Status update on LC comments and post-LC changes to R2RML (from richard@cyganiak.de on 2011-11-07)
  2. ISSUE-70 (SELECT EMP.JOB): Behaviour of fully qualified column names in rr:sqlQuery (from sysbot+tracker@w3.org on 2011-11-07)

Related notes:

(There was no WG discussion or WG resolution on the issue.)

Editor addressed this by allowing fully qualified column names in SQL queries as long as there's no clash in the column name. So, SELECT EMP.ID is ok, but SELECT EMP.ID, DEPT.ID is not.

Spec was Updated accordingly, and examples added.

Richard Cyganiak, 20 Dec 2011, 17:46:35

The change was announced on the comments list (not WG list) here:
http://lists.w3.org/Archives/Public/public-rdb2rdf-comments/2011Nov/0022.html

Richard Cyganiak, 20 Dec 2011, 17:51:33

Display change log ATOM feed


Ashok Malhotra <ashok.malhotra@oracle.com>, Michael Hausenblas <michael.hausenblas@deri.org>, Chairs, Eric Prud'hommeaux <eric@w3.org>, Ivan Herman <ivan@w3.org>, Staff Contacts
Tracker: documentation, (configuration for this group), originally developed by Dean Jackson, is developed and maintained by the Systems Team <w3t-sys@w3.org>.
$Id: 70.html,v 1.1 2012/10/16 16:28:41 vivien Exp $