- From: Andrei S. Lopatenko <andrei@derpi.tuwien.ac.at>
- Date: Fri, 27 Jul 2001 12:46:13 +0200
- To: <www-rdf-interest@w3.org>
It is unclear for me from RDF Schema specification how I should specify
that a property is a Container (Bag, Alt, Seq) of resources of one type
As example, I have Class
Person
it has a property <person-projects>,
which value should be a Bag of resources of class <person-project>
As example
<person>
<per_first_name>XXX</per_first_name>
<per_last_name>XXX</per_last_name>
<per_research_interests>XXX</per_research_interests>
<person_projects>
<rdf:Bag>
<rdf:li>
<person_project>
<per_proj_role>coordinator</per_proj_role>
<per_proj_project resource="utl/project1" />
</person_project>
</rdf:li>
<rdf:li>
<person_project>
<per_proj_role>participant</per_proj_role>
<per_proj_project resource="utl/project2" />
</person_project>
</rdf:li>
</rdf:Bag>
</person_projects>
<person>
So, in schema I write
<rdf:Property
rdf:about="http://derpi.tuwien.ac.at/~andrei/cerif.rdfs#person-projects">
<rdf:type resource="http://www.w3.org/1999/02/22-rdf-syntax-ns#Property"/>
<rdfs:label xml:lang="en">person-projects</rdfs:label>
<rdfs:comment>Unordered list of resources, describing participation of a
person in research and development projects</rdfs:comment>
<rdfs:domain
rdf:resource="http://derpi.tuwien.ac.at/~andrei/cerif.rdfs#person"/>
<rdfs:range
rdf:resource="http://www.w3.org/1999/02/22-rdf-syntax-ns#Bag"/>
</rdf:Property>
But how to say that it is a Bag of person-project?
Should I create new class which will be a subclass of Bag as well
person-project and say that the range of project-abstracts is that class?
Or what?
Thank you in advance
Best regards
MSc Andrei S. Lopatenko
Researcher
Vienna University of Technology
http://derpi.tuwien.ac.at
Received on Friday, 27 July 2001 06:41:12 UTC