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

RE: prop_domain() vs. getDomainClasses()

From: Jeremy Carroll <jjc@hplb.hpl.hp.com>
Date: Tue, 24 Sep 2002 17:50:48 +0200
To: "Tim Chartrand" <tim@cs.byu.edu>, <www-rdf-interest@w3.org>
Message-ID: <BHEGLCKMOHGLGNOKPGHDKEELCAAA.jjc@hpl.hp.com>


Hi Tim,

1: You should really raise Jena questions on the jena list which is:
  jena-dev@yahoogroups.com ; I think you need to register at yahoogroups.com
  first.


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

In brief, it's a known bug, that is difficult to fix, and is part of the
motivation for Jena2 which we are still working on (sorry everyone that it's
been taking a while).

See for example the thread around the message:

http://groups.yahoo.com/group/jena-dev/message/1557

In fact, one of my tasks for the next few days, is to try and fix this bug
in a pre-alpha experimental version of Jena2. [It was probably a few days a
few weeks ago which are still slipping :( ]

Jeremy
Received on Tuesday, 24 September 2002 11:50:58 GMT

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