W3C home > Mailing lists > Public > www-rdf-interest@w3.org > March 2003

Referencing Datatypes in Class Instances

From: Matt Munz <mmunz@apelon.com>
Date: Fri, 21 Mar 2003 15:18:55 -0500
Message-ID: <53CEA969372A3C4C9B0BE1C0EE578B8C0F8C94@mail.apelon.com>
To: <www-rdf-interest@w3.org>

Hi all,
 
  I'm working on "hello world" in RDF-S, and I'm getting a bit confused on the datatypes.
 
  Here's my RDF-S:
 
<rdfs:Class rdf:ID="Circle"/>
<rdf:Property rdf:ID="radius">
  <rdfs:domain rdf:resource="#Circle"/>
  <rdfs:range rdf:resource="http://www.w3.org/2001/XMLSchema#integer"/>
</rdf:Property>
<rdfs:Datatype rdf:about="http://www.w3.org/2001/XMLSchema#integer"/>
 
  Here's my RDF:
 
<!-- geometricShapes is assigned to the URI of the RDF-S above -->
<geometricShapes:Circle rdf:ID="sampleCircle">
  <geometricShapes:radius><xmls:integer>23</xmls:integer></geometricShapes:radius>
</geometricShapes:Circle> 
  
  Is this correct?  Is there a reccommended tool/library that I can use to validate RDF against a given RDF-S (Java preferred)?
 
  - Matt   
Received on Friday, 21 March 2003 15:20:28 GMT

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