RE: DATATYPE RDF/XML and schema examples

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 UTC