W3C home > Mailing lists > Public > www-rdf-interest@w3.org > September 2002

prop_domain() vs. getDomainClasses()

From: Tim Chartrand <tim@cs.byu.edu>
Date: Tue, 24 Sep 2002 09:11:11 -0600
To: <www-rdf-interest@w3.org>
Message-ID: <EKEMKKLEAOCGNMFAFKPFIELKCAAA.tim@cs.byu.edu>

This has probably been addressed before, but I couldn't find the answer
searching through the mailing list archive.  Here's my question:

Aside from the type of return value, is there a difference between the
prop_domain() and getDomainClasses() methods of a DAMLProperty?  I assume
there is a similar relationship for the range and other accessors.

Also, I'm using my_property.prop_domain().get() to (obviously) find the
domain of a property.  For some properties, I'm getting a ResourceImpl back
instead of a DAMLClassImpl even though the particular resource really is a
class (or should be).  Is this expected behavior?  Can anyone shed any light
on this for me?

Thanks,
Tim Chartrand
Received on Tuesday, 24 September 2002 11:11:02 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 7 December 2009 10:51:56 GMT