W3C home > Mailing lists > Public > w3c-rdfcore-wg@w3.org > February 2002

Re: Datatypes and xml:lang

From: Dave Beckett <dave.beckett@bristol.ac.uk>
Date: Tue, 05 Feb 2002 11:31:49 +0000
To: Sergey Melnik <melnik@db.stanford.edu>
cc: RDF core WG <w3c-rdfcore-wg@w3.org>
Message-ID: <31251.1012908709@tatooine.ilrt.bris.ac.uk>
>>>Sergey Melnik said:
> Dave Beckett wrote:
> > 
> > Can the TDL / S authors say something about where they see how the
> > xml:lang attribute will appear in the data type models.

Maybe I should have been more explicit

M&S says:
  The xml:lang attribute may be used as defined by [XML] to associate
  a language with the property value. There is no specific data model
  representation for xml:lang (i.e., it adds no triples to the data
  model); the language of a literal is considered by RDF to be a part
  of the literal. An application may ignore language tagging of a
  string. All RDF applications must specify whether or not language
  tagging in literals is significant; that is, whether or not
  language is considered when performing string matching or other

  -- http://lists.w3.org/Archives/Public/www-archive/2001Jun/att-0021/00-part#221

and includes an example similar to this (I've updated it, elided some bits)

<?xml version="1.0"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  <rdf:Description rdf:about="http://www.foo.com/cool.html"> 
       <rdf:li xml:lang="en">The Coolest Web Page</rdf:li>
       <rdf:li xml:lang="it">Il Pagio di Web Fuba</rdf:li>

The first question is: what triples are generated?
(Ignore rdf:Alt for now!)

If they are different from:

_:a <http://www.w3.org/1999/02/22-rdf-syntax-ns#_1> "The Coolest Web Page" .
_:a <http://www.w3.org/1999/02/22-rdf-syntax-ns#_2> "Il Pagio di Web Fuba" .
_:a <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/1999/02/22-rdf-syntax-ns#Alt> .
<http://www.foo.com/cool.html> <http://purl.org/dc/elements/1.1/title> _:a .

Then we owe an explanation.

The next question is: how do/can I get the xml:lang value?

Since the above quote says "no specific data model representation for
xml:lang" - the answer could be "you can't" but I'm not very happy
with this.

Received on Tuesday, 5 February 2002 06:40:18 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:53:55 UTC