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

Re: datatypes and MT

From: Dan Connolly <connolly@w3.org>
Date: Mon, 05 Nov 2001 03:06:02 -0600
Message-ID: <3BE65679.95DCA073@w3.org>
To: Brian McBride <bwm@hplb.hpl.hp.com>
CC: Pat Hayes <phayes@ai.uwf.edu>, w3c-rdfcore-wg@w3.org, pfps@research.bell-labs.com
Brian McBride wrote:
> 
> Dan Connolly wrote:
> [...]
> 
> >
> >       <rdf:Description rdf:about="#me">
> >         <shoeSize>
> >             <integer decimalRep="10"/>
> >         </shoeSize>
> >         </rdf:Description>
> >
> > To fill in the details... let dt:
> > be the namespace of XML Schema primitive datatypes,
> > and let rdfs:str be a new property
> > that relates XML Schema datatype to strings;
> > it's unambiguous over each of the primitive datatypes;
> > in the case of dt:string, it's the identity relation.
> >
> >       <rdf:Description rdf:about="#me">
> >         <shoeSize>
> >             <dt:decimal rdfs:str="10"/>
> >         </shoeSize>
> >         </rdf:Description>
> 
> This isn't the same as above is it?

Er... clearly not... several of the characters are different.
I don't think I know what question you mean to ask.
I hope it doesn't really matter...


>  In your first example I could have extended
> it to read:
> 
>         <rdf:Description rdf:about="#me">
>           <shoeSize>
>               <integer decimalRep="10" hexadecimalrep="A"/>
>           </shoeSize>
>           </rdf:Description>
> 
> I don't seem to be able to do that with your second example.

Indeed... the first example is sort of design in the abstract,
and the second one is an attempt to
"build upon XML Schema datatypes to the fullest
extent that is practical and appropriate."

>  Are there
> advantages to that which you have written over:
> 
>         <rdf:Description rdf:about="#me">
>           <shoeSize dt:decimal="10"/>
>          </rdf:Description>

er... is that RDF/xml syntax? can propElts take propAttrs?
indeed... from the RDF validator, I see it works like...

  _:x <http://www.w3.org/2001/XMLSchema#decimal> "10". 
  <#me> <http://example/vocab#shoeSize> _:x.

nifty.

Yes, that's quite nice: regard dt:decimal as a relationship
between its value space and its lexical space. I like it.


> or if you want the type property explicit,

no, no need.

-- 
Dan Connolly, W3C http://www.w3.org/People/Connolly/
Received on Monday, 5 November 2001 04:06:57 EST

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