- From: Jeremy Wong <50263336@student.cityu.edu.hk>
- Date: Wed, 30 Mar 2005 23:32:57 +0800
- To: l <linst@yourw.com.cn>, semantic-web <semantic-web@w3.org>
l, There are 2 ways to say that there are 3 students in the course. A) Count the number of elements in the collection. Note that a collection is closed, i.e. no more elements can be added. B) Add a property like "studentCount" to describe that there are 3 students. Jeremy ----- Original Message ----- From: "l" <linst@yourw.com.cn> To: "semantic-web" <semantic-web@w3.org> Sent: Wednesday, March 30, 2005 11:12 PM Subject: how to describe the range of this kind of property > Hi all, > > It really confuse me. > In http://www.w3.org/TR/2004/REC-rdf-primer-20040210, there is a example: > <rdf:Description rdf:about="http://example.org/courses/6.001"> > <s:students rdf:parseType="Collection"> > <rdf:Description rdf:about="http://example.org/students/Amy"/> > <rdf:Description > rdf:about="http://example.org/students/Mohamed"/> > <rdf:Description > rdf:about="http://example.org/students/Johann"/> > </s:students> > </rdf:Description> > > > My question is how to describe the range of property s:students. Below is > a wrong description: <rdfs:range rdf:resource="#person"/>. This > description is not compatible with above example. With this range > description, I could only use s:students like this: > <rdf:Description rdf:about="http://example.org/courses/6.001"> > <s:students rdf:about="http://example.org/students/Amy"/> > <rdf:Description rdf:about="http://example.org/courses/6.001"> > <s:students rdf:about="http://example.org/students/Mohamed"/> > <rdf:Description rdf:about="http://example.org/courses/6.001"> > <s:students rdf:about="http://example.org/students/Johann"/> > > > But actually, I want to say that this course has and only has 3 students, > no more, no less. > How could I do. > Please help. > > Thanks and regards > > > > > > > > >
Received on Wednesday, 30 March 2005 15:45:05 UTC