[Pellet-users] Duplicated results using Pellet with the Jena API

Bruno Antunes bema at student.dei.uc.pt
Mon Oct 29 21:29:49 UTC 2007


Hi,

I'm using Pellet with the Jena API and I'm getting a strange, or not,
behavior when I use the "listStatements(Resource s, Property p, RDFNode o)"
method of the "Model" interface.

When I call this method to find the resources to which applies a specific
property with a specific object, I'm getting duplicated results.

For instance, if I use something like this:

myModel.listStatements(null, myProperty, myInstance);

I get the results just like this:

Resource1
Resource1
Resource2
Resource2
...

Hope someone could help me with this. I'm using Jena v2.5.2 and Pellet
v1.5.0 with persistent storage in a MySQL database.

Thanks in advance, best regards,
Bruno Antunes



More information about the Pellet-users mailing list