W3C home > Mailing lists > Public > public-rdf-wg@w3.org > May 2011

Re: The RDF 1.1 Literal Quiz

From: Richard Cyganiak <richard@cyganiak.de>
Date: Wed, 18 May 2011 21:01:55 +0100
Cc: <phayes@ihmc.us>, <public-rdf-wg@w3.org>
Message-Id: <DD88787B-C6E2-4A34-88A8-C0A68DE34C31@cyganiak.de>
To: Peter Frederick Patel-Schneider <pfps@research.bell-labs.com>
On 18 May 2011, at 20:24, Peter Frederick Patel-Schneider wrote:
>>> Q3. Is this be a valid Turtle file?
>>> <a> <b> "foo"^^rdf:PlainLiteral .
>> No.  "foo@"^^rdf:PlainLIteral is barely legal but strongly deprecated in favor of the plain literal syntax.
> Huh?  Isn't this legal?
> However, "foo" is not in the lexical space of rdf:PlainLiteral, so the
> interpretation is not what one might expect.

My apologies, I meant to say "foo@"^^rdf:PlainLiteral; and when I said “valid” I definitely meant to exclude ill-formed literals :-)

But see here:
>>> [T]he form of rdf:PlainLiteral literals in syntaxes for RDF graphs and for SPARQL is the already existing syntax for the corresponding plain literal, not the syntax for a typed literal. Therefore, typed literals with rdf:PlainLiteral as the datatype are considered by this specification to be not valid in syntaxes for RDF graphs or SPARQL.

Received on Wednesday, 18 May 2011 20:02:23 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:04:06 UTC