W3C home > Mailing lists > Public > www-rdf-interest@w3.org > March 2001

RE: Question: Can a RDF Class and a RDF Property have the same na me?

From: Balon, Corey <cbalon@grci.com>
Date: Wed, 14 Mar 2001 16:41:58 -0500
Message-ID: <BB6C143FF82AD411947600105A02DBE301697863@bambi.va.grci.com>
To: "'puninj@cs.rpi.edu'" <puninj@cs.rpi.edu>, www-rdf-interest@w3.org
Cc: rss-dev@egroups.com

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
is not clear. Something processing these triples would not see a Class and a
but some weird hybrid thing.


-----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


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

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

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:comment="An RSS image.">
   <rdfs:isDefinedBy rdf:resource="http://purl.org/rss/1.0/"/> 

<rdfs:Property rdf:about="http://purl.org/rss/1.0/image"
   rdfs:comment="Points to an image that is a member of the subject
   <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">

Thanks for your help in this matter.

John Punin
Received on Wednesday, 14 March 2001 16:42:52 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:44:29 UTC