W3C home > Mailing lists > Public > www-rdf-interest@w3.org > September 2000

Re: Typing of literals

From: Ross Judson <ross@ManagedObjects.com>
Date: Thu, 14 Sep 2000 11:37:18 -0400
Message-ID: <009f01c01e61$ab047170$221a37ce@mosol.com>
To: "Jonathan Borden" <jborden@mediaone.net>, <www-rdf-interest@w3.org>
This will put a type on a property, but what about literals in an RDF
stream?  I think I need something like this:

<f:Relation rdf:about="&f;testing">
    <s:subClassOf rdf:resource="&f;Enumeration"/>
    <f:ordinal xsi:type="&xsi;int">22</f:ordinal>

Whenver a literal is going to be constructed my reader can see if it has an
xsi:type attribute, and make sure the literal is constructed in the right

Does that make sense?

> The derived type is the value of a Property. You can subclass the type
> Literal to your desired type (perhaps specified only by a URI of your
> choosing)
> <rdfs:Class rdf:ID="yourClass">
>          <rdfs:subClassOf
> rdf:resource="http://www.w3.org/2000/01/rdf-schema#Literal"/>
> </rdfs:Class>
> <rdf:Property rdf:ID="your-name">
>     <rdfs:range rdf:resource="#yourClass"/>
> </rdf:Property>
Received on Thursday, 14 September 2000 11:38:39 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:44:25 UTC