DAML newbie question

Hi all,

I am trying to write a daml file that says the
following:

Animal is a subclass of LivingThing.
Human is a subclass of Animal.
LivingThing has a property called numParents.
Human's numParents = 2.
John is a LivingThing with numParent=2.

Here is what I currently have. I was just wondering if
someone could help me out to complete this:


<?xml version='1.0' encoding='ISO-8859-1'?>
<!DOCTYPE rdf:RDF [
	 <!ENTITY rdf
'http://www.w3.org/1999/02/22-rdf-syntax-ns#'>
	 
         <!ENTITY testSuite1
'http://protege.stanford.edu/testSuite1#'>
	 
         <!ENTITY rdfs
'http://www.w3.org/TR/1999/PR-rdf-schema-19990303#'>
]>
<rdf:RDF xmlns:testSuite1="&testSuite1;"
	 xmlns:rdf="&rdf;"
	 xmlns:rdfs="&rdfs;">
<rdfs:Class rdf:about="&testSuite1;Animal"
	 rdfs:label="Animal">
	<rdfs:subClassOf
rdf:resource="&testSuite1;LivingThing"/>
</rdfs:Class>
<rdfs:Class rdf:about="&testSuite1;Human"
	 rdfs:label="Human">
	<rdfs:subClassOf rdf:resource="&testSuite1;Animal"/>
</rdfs:Class>
<rdfs:Class rdf:about="&testSuite1;LivingThing"
	 rdfs:label="LivingThing">
	<rdfs:subClassOf rdf:resource="&rdfs;Resource"/>
</rdfs:Class>
<rdf:Property rdf:about="&testSuite1;name"
	 rdfs:label="name">
	<rdfs:domain rdf:resource="&testSuite1;LivingThing"/>
	<rdfs:range rdf:resource="&rdfs;Literal"/>
</rdf:Property>
<rdf:Property rdf:about="&testSuite1;numParents"
	 rdfs:label="numParents">
	<rdfs:domain rdf:resource="&testSuite1;LivingThing"/>
	<rdfs:range rdf:resource="&rdfs;Literal"/>
</rdf:Property>
</rdf:RDF>


Regards,
Payam Fard.



__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

Received on Saturday, 28 June 2003 16:04:41 UTC