ISSUE-60 (simpler-logical-tables): Syntactic sugar for the simple case of logical tables [R2RML]

ISSUE-60 (simpler-logical-tables): Syntactic sugar for the simple case of logical tables [R2RML]

http://www.w3.org/2001/sw/rdb2rdf/track/issues/60

Raised by: Richard Cyganiak
On product: R2RML

Currently, a triples map and its logical table are two separate resources, linked by the rr:logicalTable property. This is good because it allows re-use of logical tables in multiple triples maps.

However, such re-use is not always needed, and in the interest of “making simple things simple and hard things possible” there should be some syntactic sugar for this case. I proposed this in [1] and Juan seconded in [2].

The idea would be: If a triples map does not have the required rr:logicalTable property, then *itself* MUST be a resource that fulfils the requirements for a logical table. So the current R2RML mapping:

<#TriplesMap1>
    rr:logicalTable [
        tableName "EMP";
    ];
    rr:subjectMap [ ... ];
    rr:predicateObjectMap [ ... ], [ ... ], [ ... ].

could then be written as:

<#TriplesMap1>
    rr:tableName "EMP";
    rr:subjectMap [ ... ];
    rr:predicateObjectMap [ ... ], [ ... ], [ ... ].

This would be a simple change in the spec.

[1]: http://lists.w3.org/Archives/Public/public-rdb2rdf-wg/2011Jul/0169.html
[2]: http://lists.w3.org/Archives/Public/public-rdb2rdf-wg/2011Jul/0170.html

Received on Friday, 29 July 2011 18:23:58 UTC