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 20:58:18 +0100
Cc: RDF Working Group WG <public-rdf-wg@w3.org>
Message-Id: <49E636C7-E0B9-4C9C-AF39-6D5D30214213@cyganiak.de>
To: Pat Hayes <phayes@ihmc.us>
On 18 May 2011, at 20:18, Pat Hayes wrote:
>> Q1. Does this RDF graph (written in Turtle) have one triple?
>> <a> <b> 1 .
>> <a> <b> "1"^^xsd:integer .
> Not legal RDF syntax, so answer is moot.

It is currently legal Turtle; the former is syntactic sugar for the latter.

>> Q12. Is this true in SPARQL?
>> datatype("foo"@en) == xsd:string
> NO. Formal objection.


> It would follow that _:x owl:sameAs "foo"@en . _:x owl:sameAs "foo"@fr .  was consistent. 

Can you spell out the steps that lead to this conclusion?

I agree that this should not be consistent, but if we wanted the answer to be xsd:string here, then we surely could modify the machinery to make that happen?

>> Q16. Does the literal in this RDF/XML fragment have a language tag?
>> <rdf:Description rdf:about="a" xml:lang="en">
>>  <rdf:b>foo</rdf:b>
>> </rdf:Description>
> No.

I note the current answer is Yes -- the resulting triple is

   <a> rdf:b "foo"@en .

All plain literals in RDF/XML pick up the XML language tag that's in scope.

(I wanted this to say <a> <b> "foo"@en, but of course I asked for trouble writing RDF/XML by hand.)

Received on Wednesday, 18 May 2011 19:58:47 UTC

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