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

Re: Typing of literals

From: Jonathan Borden <jborden@mediaone.net>
Date: Thu, 14 Sep 2000 10:15:23 -0400
Message-ID: <03a501c01e56$3a36bb20$0a2e249b@Synapse>
To: "Ross Judson" <ross@ManagedObjects.com>, <www-rdf-interest@w3.org>
Ross Judson wrote:

> Has there been any further conclusions on this topic?  I need to type some
> literals, and I'd rather not just "roll my own" right now.  The actual
URIs
> for types are not important; what's important is the mechanism for
attaching
> that type to a literal.
>
> Any pointers for this topic?

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>

Jonathan Borden
The Open Healthcare Group
http://www.openhealth.org
Received on Thursday, 14 September 2000 10:25:49 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 7 December 2009 10:51:44 GMT