<?xml version='1.0'?>

<!-- Incorrect Range Indication - Expect Class, get a predicate -->

<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/st7.daml#"
>

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

<!-- You can not refer to an instance by one of its fields.  
     For the RDF-API based validator the object of hasParent is an
     anonymous class whose type is ont1:name, which is another domain
     error on rdfs:type -->

<ont1:Man rdf:ID="justin">
  <ont1:name>Justin</ont1:name>
  <ont1:hasParent><ont1:name>Dave</ont1:name></ont1:hasParent>
</ont1:Man>

</rdf:RDF>


