- From: Kaile Smith <kailesmith@yahoo.com>
- Date: Thu, 8 Jan 2004 16:06:44 -0800 (PST)
- To: www-rdf-interest@w3.org
Hi folks, To be honest, I am not sure this is the right group for questions like this. If not, please let me know what would be the right forum. I have been playing around with RDF and OWL and am trying to define a class with 1. List of properties which have to occur in a certain sequence 2. List of alternate properties (i.e, the class can only have one of the list) Is the following a good representation of (1) (as (2) would be quite similar): <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:owl="http://www.w3.org/2002/07/owl#" xmlns="http://www.foobar.com#"> <owl:Class rdf:about="http://www.foobar.com#Foo"> <layer> <rdf:Seq> <rdfs:subClassOf> <owl:restriction> <owl:onProperty rdf:resource="http://www.foobar.com#bar"/> <owl:cardinality rdf:datatype="http://www.w3.org/2001/XMLSchema#nonNegativeInteger" > 1 </owl:cardinality> </owl:restriction> </rdfs:subClassOf> <rdfs:subClassOf> <owl:restriction> <owl:onProperty rdf:resource="http://www.foobar.com#bar1"/> <owl:cardinality rdf:datatype="http://www.w3.org/2001/XMLSchema#nonNegativeInteger" > 1 </owl:cardinality> </owl:restriction> </rdfs:subClassOf> </rdf:Seq> </layer> </owl:Class> </rdf:RDF> regards Kaile __________________________________ Do you Yahoo!? Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes http://hotjobs.sweepstakes.yahoo.com/signingbonus
Received on Thursday, 8 January 2004 19:13:45 UTC