- From: Xie Guotong <guotongxie@hotmail.com>
- Date: Wed, 23 Jul 2003 01:53:33 +0000
- To: www-rdf-interest@w3.org
Hi,everyone Now I am in face of a task to translate a XML Schema into a RDF Schema.I read the RDF Vocabulary Description Language 1.0: RDF Schema in W3C carefully and found that there are rarely samples to demonstrate how to use each semantic tag in a RDF Schema.I searched everywhere for a more complex sample of RDF Schema but found nothing valuable. To express my question more clearly,I will use a simple problem.Suppose I have defined a Class named Person,How can I define a Class named Team with a semantic rule as follows: A Team is composed of a collection of Person. <?xml version="1.0" encoding="UTF-8"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified"> <xs:element name="Team"> <xs:complexType> <xs:sequence> <xs:element name="members" type="Person" maxOccurs="unbounded"/> </xs:sequence> </xs:complexType> </xs:element> <xs:complexType name="Person"> <xs:sequence> <xs:element name="name" type="xs:string"/> <xs:element name="age" type="xs:int"/> <xs:element name="single" type="xs:boolean"/> </xs:sequence> </xs:complexType> </xs:schema> The XML fragment above is only a sketch map and the actual XML Schema is more complicated.I wonder if you anyone have a more complex RDF Schema sample or can tell me where to find them.Thank you very much. Best, Guo Tong Xie _________________________________________________________________ 与联机的朋友进行交流,请使用 MSN Messenger: http://messenger.msn.com/cn
Received on Tuesday, 22 July 2003 21:54:57 UTC