W3C home > Mailing lists > Public > w3c-rdfcore-wg@w3.org > July 2001

Re: rdfms-xmllang: Strawman Proposal

From: Graham Klyne <Graham.Klyne@Baltimore.com>
Date: Thu, 12 Jul 2001 10:22:55 +0100
Message-Id: <5.0.2.1.2.20010712095946.039f06f0@joy.songbird.com>
To: Aaron Swartz <me@aaronsw.com>
Cc: RDF Core <w3c-rdfcore-wg@w3.org>, Tim Berners-Lee <timbl@w3.org>
At 12:04 PM 7/11/01 -0500, Aaron Swartz wrote:
>Just to get the creative juices flowing, here's a strawman proposal for 
>xml:lang:
>
>A literal with xml:lang is turned into an anonymous node with xml:lang and 
>rdf:value properties.

Aaron,

See also TimBL's thoughts on this topic:

   http://www.w3.org/DesignIssues/InterpretationProperties.html

in which he argues that language should be represented as a property whose 
value is the literal concerned; e.g.

<?xml version="1.0"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
          xmlns:play="http://example.org/play#"
          xmlns:lang="http://example.org/lang#">
   <rdf:description>
     <rdf:type>http://www.people.org/types#person</rdf:type>
     <play:name>
        <lang:fi>Ora Yrjö Uolevi Lassila</lang:fi>
     </play:name>
     <play:mailbox>ora.lassila@research.nokia.com</play:mailbox>
     <play:homePage>http://www.w3.org/People/Lassila/</play:homePage>
   </rdf:description>
</rdf:RDF>

This is Tim's section 3 example, tweaked to pass parsing by the online 
SirPAC validator (http://www.w3.org/RDF/Implementations/SiRPAC/).  Having 
done this, it becomes clearer that the language tag is being represented 
here as a data type (rdf:type), NOT as a property relating the name and the 
literal string which is what the associated text says.

Tim... the above seems more akin to your subsequent comments about 
datatypes as interpretation properties, but still doesn't seem to capture 
the idea of "interpretation property" as described.  Did you really mean this:

<?xml version="1.0"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
          xmlns:play="http://example.org/play#"
          xmlns:lang="http://example.org/lang#">
   <rdf:description>
     <rdf:type>http://www.people.org/types#person</rdf:type>
     <play:name>
        <rdf:description>
          <lang:fi>Ora Yrjö Uolevi Lassila</lang:fi>
        </rdf:description>
     </play:name>
     <play:mailbox>ora.lassila@research.nokia.com</play:mailbox>
     <play:homePage>http://www.w3.org/People/Lassila/</play:homePage>
   </rdf:description>
</rdf:RDF>

?

#g
--

At 12:04 PM 7/11/01 -0500, Aaron Swartz wrote:
>Just to get the creative juices flowing, here's a strawman proposal for 
>xml:lang:
>
>A literal with xml:lang is turned into an anonymous node with xml:lang and 
>rdf:value properties.
>
><rdf:Description>
>    <rdf:value xml:lang="en">foo</rdf:value>
></rdf:Description>
>
>becomes:
>
>[ rdf:value [ xml:lang "en" ; rdf:value "foo" ] ] .
>
>or in psuedo-N-Triples:
>
>_:desc    rdf:value  _:literal .
>_:literal xml:lang   "en"      .
>_:literal rdf:value  "foo"     .
>
>Thoughts? Problems?
>
>--
>[ "Aaron Swartz" ; <mailto:me@aaronsw.com> ; <http://www.aaronsw.com/> ]

------------------------------------------------------------
Graham Klyne                    Baltimore Technologies
Strategic Research              Content Security Group
<Graham.Klyne@Baltimore.com>    <http://www.mimesweeper.com>
                                 <http://www.baltimore.com>
------------------------------------------------------------
Received on Thursday, 12 July 2001 05:24:35 EDT

This archive was generated by hypermail pre-2.1.9 : Wednesday, 3 September 2003 09:38:09 EDT