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

RE: DATATYPE RDF/XML and schema examples

From: Jeremy Carroll <jjc@hplb.hpl.hp.com>
Date: Wed, 7 Nov 2001 14:19:27 -0000
To: "Jeremy Carroll" <jjc@hplb.hpl.hp.com>, <w3c-rdfcore-wg@w3.org>
Message-ID: <JAEBJCLMIFLKLOJGMELDOEGPCCAA.jjc@hplb.hpl.hp.com>

I wrote:
>
> things.xml                      http://www.example.org/things
>
[...snip...]
> Issues that strike me:
>
> In the rdfs:range statements just how do you refer to the types:
> I've used a
> qname maybe an rdf:resource="full-uri-ref-with-fragment" would have been
> better.
>

I attach things.xml in this latter style ...

Jeremy

======

<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
     xmlns:eg="http://www.example.org/things#"
     xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
>
 <!-- We assume this document is available at
http://www.example.org/things -->

  <rdfs:Property ID="showSize">

     <rdfs:range rdf:resource="http://www.w3.org/2001/XMLSchema#int"/>
  </rdfs:Property>
    <!-- issue: I've just stuck a qname in an attribute, ... -->
  <rdfs:Property ID="favouriteColour" >
     <rdfs:range rdf:resource="http://www.example.org/colour#Colour"/>
  </rdfs:Property>
  <rdfs:Property ID="squareRoot">
     <rdfs:range
rdf:resource="http://www.example.org/complexNumber#complexNumber"/>
  </rdfs:Property>
</rdf:RDF>


Received on Wednesday, 7 November 2001 09:19:57 EST

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