RE: Style question

Hi Ben,

This might be a more natural way of representing what (I think) you're
saying:

i.e. becca is a person with green eyes. The value of eyeColor for any person
must be one of the defined EyeColors (green or brown).

Or did I misunderstand your intent?

<?xml version="1.0"?>
<rdf:RDF xmlns:ex="http://likn.org/#"
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
   xmlns:owl="http://www.w3.org/2002/07/owl#">
	<owl:Ontology rdf:about="http://likn.org/#">
	</owl:Ontology>
	<rdfs:Class rdf:about="http://likn.org/#EyeColor">
		<owl:oneOf>
			<rdf:Description>
				<rdf:first
rdf:resource="http://likn.org/#brown"/>
				<rdf:rest>
					<rdf:Description>
						<rdf:first
rdf:resource="http://likn.org/#green"/>
						<rdf:rest
rdf:resource="http://www.w3.org/1999/02/22-rdf-syntax-ns#nil"/>
					</rdf:Description>
				</rdf:rest>
			</rdf:Description>
		</owl:oneOf>
	</rdfs:Class>
	<ex:person rdf:about="http://likn.org/#becca">
		<ex:eyeColor rdf:resource="http://likn.org/#green"/>
	</ex:person>
	<rdf:Description rdf:about="http://likn.org/#eyeColor">
		<rdfs:domain rdf:resource="http://likn.org/#person"/>
		<rdfs:range rdf:resource="http://likn.org/#EyeColor"/>
	</rdf:Description>
	<rdfs:Class rdf:about="http://likn.org/#person">
	</rdfs:Class>
</rdf:RDF>

> -----Original Message-----
> From: semantic-web-request@w3.org [mailto:semantic-web-request@w3.org] On
> Behalf Of ben syverson
> Sent: Saturday, March 05, 2005 9:47 PM
> To: semantic-web@w3.org
> Subject: Style question
> 
> 
> Hello,
> 
> I'm starting to sketch out the RDF for likn, and I'm looking for a
> sanity check. My inclination is to use resources as much as possible
> and custom namespaces as little as possible....
> 
> <?xml version="1.0"?>
> <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
> 		xmlns:dc="http://purl.org/dc/elements/1.1"
> 		xmlns:likn="http://likn.org/elements/1.0/">
> 	<rdf:Description rdf:about="http://likn.org/#becca">
> 		<dc:title>Becca</dc:title>
> 		<likn:hasProperty rdf:resource="http://likn.org/#eyeColor"
/>
> 		<likn:instanceOf rdf:resource="http://likn.org/#person" />
> 	</rdf:Description>
> 	<rdf:Description rdf:about="http://likn.org/#eyeColor">
> 		<rdf:value>
> 			<rdf:Bag>
> 				<rdf:li
rdf:resource="http://likn.org/#green" />
> 				<rdf:li
rdf:resource="http://likn.org/#brown" />
> 			</rdf:Bag>
> 		</rdf:value>
> 	</rdf:Description>
> </rdf:RDF>
> 
> How does that look? Is there a more natural way to express this?
> 
> - ben

Received on Sunday, 6 March 2005 13:42:10 UTC