On 23/04/2013 20:10, Joshua TAYLOR wrote:
On Tue, Apr 23, 2013 at 2:45 PM, David Jordan <[email protected]> wrote:
When I call listDeclaredProperties with a direct parameter value of false, I 
get a list of properties associated with a class. But when I pass a value of 
true, I don’t get any values, yet there are properties directly associated with 
the class. I do run this with a reasoner, using OWL_MEM_MICRO_RULE_INF. I am 
using the latest TDB release. Any idea why they are not being returned?

Until now, I hadn't looked closely enough at the doc to know what
listDeclaredProperties was supposed to return.It returns an
iterator over "properties associated with a frame-like view of this
class", but I wasn't sure what "associated with" meant there.
What it means is documented here:

http://jena.apache.org/documentation/notes/rdf-frames.html

Looking
at the implementation in OntClassImpl, a property is associated with a
class if class is one of the property's domains.  Is that the same
meaning of "associated with a class" that you're operating under?  (I
ask this not because your question suggested any misunderstanding, but
because I, not having used listDeclaredProperties, assumed it might
return properties in restrictions on classes and the like, and that
doesn't appear to the be the case.)

Ian


Reply via email to