RE: prop_domain() vs. getDomainClasses()

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 UTC