- From: Zhu, Bin <zhubin@uclab.org>
- Date: Fri, 11 Jun 2004 08:14:21 +0800
- To: <www-rdf-interest@w3.org>
- Message-ID: <000f01c44f49$0bb58970$930e69a2@pkugknc56w1lwx>
Rdf schema: <knows, rdf;range, PersonList> <PersonList, rdf:subClassOf, rdf:List> <PersonList, rdf:first, Person> <PersonList, rdf:rest, PersonList> The last two you can use ¡°allValuesFrom¡± constraint in OWL. So the snipped OWL is like: <owl:Class rdf:ID="PersonList"> <rdfs:subClassOf rdf:resource="http://www.w3.org/1999/02/22-rdf-syntax-ns#List" /> <rdfs:subClassOf> <owl:Restriction> <owl:onProperty rdf:resource="http://www.w3.org/1999/02/22-rdf-syntax-ns#first" /> <owl:allValuesFrom rdf:resource="#Person" /> </owl:Restriction> </rdfs:subClassOf> <rdfs:subClassOf> <owl:Restriction> <owl:onProperty rdf:resource="http://www.w3.org/1999/02/22-rdf-syntax-ns#rest" /> <owl:allValuesFrom rdf:resource="#PersonList" /> </owl:Restriction> </rdfs:subClassOf> </owl:Class> Then you can use the way you wrote. Best regards, Zhu, Bin http://www.uclab.org/zhubin/ -- Ubiquitous Computing Lab (http://www.uclab.org) -----Original Message----- From: www-rdf-interest-request@w3.org [mailto:www-rdf-interest-request@w3.org] On Behalf Of Shengping Liu Sent: 2004Äê6ÔÂ11ÈÕ 1:20 To: www-rdf-interest@w3.org Subject: question about list and range of property Hi, If in my RDF Schema, the range of property knows is Person, i.e., <knows, rdfs:range Person> then if some one knows many persons, can I write this in RDF? <Person rdf:ID=¡±P1¡±> <knows parseType=¡±collection¡±> <Person rdf:resource=¡±#P2¡±> <Person rdf:resource=¡±#P3¡±> </knows> </Person> is this RDF file validated against the RDF Schema? 1) If true: by the semantics of rdfs:range , an instance of rdf:List would be a Person, seems error; 2) If false: then I must define the range of property ¡°knows¡± is rdf:List, but I can¡¯t constrict the list that only contains instances of Person, and this definition would be contrary to the intuition and make RDF data aggregation difficult. What is your idea? Thanks! = = = = = = = = = = = = = = = = = = = = = = = = = = = = Shengping Liu Department of Information Science, Peking University, China. Phone: 86-10-62757175 Mail: lsp@is.pku.edu.cn
Received on Thursday, 10 June 2004 20:09:30 UTC