W3C home > Mailing lists > Public > public-rdb2rdf-wg@w3.org > August 2011

Re: Please review: syntactic sugar and polishing (ISSUE-54, ISSUE-56, ISSUE-59, ISSUE-60)

From: David McNeil <dmcneil@revelytix.com>
Date: Tue, 30 Aug 2011 10:37:28 -0500
Message-ID: <CA+8Vvdz-4Z4Jse4nMLNpjpNQh+VO9Djr0_Ck79m1zv3evZ3u_Q@mail.gmail.com>
To: Richard Cyganiak <richard@cyganiak.de>
Cc: W3C RDB2RDF <public-rdb2rdf-wg@w3.org>
There are trade-offs to offering syntactic sugar, I would like the group to
consciously consider the trade-offs and take a position. I think the core
tradeoff is a simple spec, with a single way to perform a task, vs a
"sugared" spec with more wrinkles but more concise for common cases. There
are implementation and education costs to these wrinkles. Personally, I
think it makes sense to avoid the sugar in 1.0 of the spec, but if the
consensus is towards sugar in 1.0 then I could go along with that.

> ISSUE-54: Simpler constant-valued term maps
> http://www.w3.org/2001/sw/rdb2rdf/track/issues/54
> Instead of this:
>    [] rr:predicateMap [ rr:predicate ex:foo ].
> you now have to write one of these two forms:
>    [] rr:predicateMap [ rr:constant ex:foo ].
>    [] rr:predicate ex:foo.

I think this is a good change (assuming we want a sugared spec) because
constant predicates seem to be the norm for the use cases I have seen.

ISSUE-56: Default termType for template-valued term maps should be IRI
> http://www.w3.org/2001/sw/rdb2rdf/track/issues/56

This makes sense to me.

The default term type is now always rr:IRI, except for rr:column in an
> object map.

I need to think this through more. Seems this is a bit different than

> ISSUE-59: Syntactic sugar for triples maps that only have a single
> predicate-object map
> http://www.w3.org/2001/sw/rdb2rdf/track/issues/59

I am curious what use-case you have in mind for this. Seems to me that this
is primarily useful for simple examples or getting started because I expect
most mappings to involve multiple columns from a table. From that
perspective this does not look like a useful change to me.

> ISSUE-60: Syntactic sugar for the simple case of logical tables
> http://www.w3.org/2001/sw/rdb2rdf/track/issues/60
> Instead of this:
>    <#TriplesMap1> rr:logicalTable [ rr:tableName "EMP" ].
> you can now also write this equivalent form:
>    <#TriplesMap1> rr:tableName "EMP".

I think this is a good change (assuming we want a sugared spec).

Received on Tuesday, 30 August 2011 15:38:05 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:00:26 UTC