Re: Proposal for ISSUE-12, string literals


On 13 May 2011, at 17:57, Antoine Zimmermann wrote:
>>>> 2) of the built-in datatypes, only xsd:string can have non-empty language tags;
>> What is silly about that?
> Well, I don't see what you improve by saying that all tags are empty except for language-tagged strings, as opposed to no literals have language tags except strings. In both cases, you have to bother with an exception, while the goal was to simplify things by having a more uniform description of literals.

The current situation is that we have (ignoring rdf:PlainLiteral) two kinds of literals:

  "plain" with optional @lt

Afterwards, we'd have one:

  "typed"^^ex:type with optional @lt

with the exception that the language tag can be non-empty only for xsd:string.

That is a simplification compared to the current situation.

The alternative proposal from Alex was to have this:

  "plain" with compulsory @lt

That's also a simplification, but it's weird that there's this major difference in model, syntax and behaviour between a string on the one hand, and a string with a language tag on the other hand.

> So, maybe it's not silly but it's unnecessary. Moreover, one can always decide to implement literals like this, even with the current spec.

No, one cannot, because that leaves no way of distinguishing between "foo" and "foo"^^xsd:string, which are supposed to produce two different triples.


Received on Friday, 13 May 2011 17:22:32 UTC