- From: Balon, Corey <cbalon@grci.com>
- Date: Wed, 14 Mar 2001 16:41:58 -0500
- To: "'puninj@cs.rpi.edu'" <puninj@cs.rpi.edu>, www-rdf-interest@w3.org
- Cc: rss-dev@egroups.com
Hey, I don't believe they can. Class and Property are both Resources. A URI is unique for a Resource, so two resources should have different URI's. I'm not sure if there is some rule against it, but I don't believe it is something you would ever want to do. When in doubt I always look at the triples. The rdf you gave should turn into triples that look something like this: (http://purl.org/rss/1.0/image, type, Class) (http://purl.org/rss/1.0/image, type, Property) (http://purl.org/rss/1.0/image, label, "Image") (http://purl.org/rss/1.0/image, label, "image") (http://purl.org/rss/1.0/image, comment, "An RSS image.") (http://purl.org/rss/1.0/image, comment, "Points to an image that is a member of the subject channel.") ... You see here that everything gets mashed together. The origin of each statement is not clear. Something processing these triples would not see a Class and a Property, but some weird hybrid thing. -Corey -----Original Message----- From: puninj@cs.rpi.edu [mailto:puninj@cs.rpi.edu] Sent: Wednesday, March 14, 2001 4:09 PM To: www-rdf-interest@w3.org Cc: rss-dev@egroups.com Subject: Question: Can a RDF Class and a RDF Property have the same name? Hi I was reading about RSS 1.0 and I tried to updated the RSS-1.0-RDF-Schema. I found that "image" is a RDF property of "channel" RDF Class and also a RDF Class. Can a RDF class have the same name (URI) of a RDF Property?. I'm sure that this issue has been discussed before but I didn't find anything in this e-mail list. If the answer of this question is yes. That means that I can write the RSS Schema as: <rdfs:Class rdf:about="http://purl.org/rss/1.0/image" rdfs:label="Image" rdfs:comment="An RSS image."> <rdfs:isDefinedBy rdf:resource="http://purl.org/rss/1.0/"/> </rdfs:Class> <rdfs:Property rdf:about="http://purl.org/rss/1.0/image" rdfs:label="image" rdfs:comment="Points to an image that is a member of the subject channel."> <rdfs:isDefinedBy rdf:resource="http://purl.org/rss/1.0/"/> <rdfs:domain rdf:resource="http://purl.org/rss/1.0/channel"/> <rdfs:range rdf:resource="http://www.w3.org/2000/01/rdf-schema#Resource"> </rdfs:Property> Thanks for your help in this matter. John Punin
Received on Wednesday, 14 March 2001 16:42:52 UTC