<?xml version='1.0'?>

<!-- Incorrect Range Indication - Datatype - literal doesn't match datatype.
     When given an untyped literal, the validator allows any value that
     can be interpreted as being a member of the lexical space of the datatype.
     For example '30' can be a string, integer, nonNegativeInteger, decimal, etc. -->

<rdf:RDF
  xmlns:rdf ="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
  xmlns:xsd ="http://www.w3.org/2000/10/XMLSchema#"
  xmlns:daml="http://www.daml.org/2001/03/daml+oil#"
  xmlns:ont1="http://www.daml.org/validator/examples/ont1.daml#"
  xmlns     ="http://www.daml.org/validator/examples/st9.daml#"
>

<!-- OK -->
<ont1:Man rdf:ID="dave">
  <ont1:name>Dave</ont1:name>
  <ont1:age>30</ont1:age>
</ont1:Man>

<!-- '8 months' is not in the value space of nonNegativeInteger -->
<ont1:Man rdf:ID="justin">
  <ont1:name>Justin</ont1:name>
  <ont1:age>8 months</ont1:age>
</ont1:Man>

<!-- '-30' is not in the value space of nonNegativeInteger -->
<ont1:Woman rdf:ID="fern">
  <ont1:name>Fern</ont1:name>
  <ont1:age>-30</ont1:age>
</ont1:Woman>

</rdf:RDF>
