Bug: string data with commas

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Bug: string data with commas

nade
When applying the Pellet reasoner to an ontology containing the triple <Instance - DataProperty - owlready2.str>, where the string contains at least one comma, results in the DataProperty to be added a 2nd time.
Now the DataProperty only contains the section of the string before the comma and adds the part after as a language tag. In case of any additional commas, the string after the 2nd comma isn't parsed.

I did not manage to reproduce this error with HermiT.
Reply | Threaded
Open this post in threaded view
|

Re: Bug: string data with commas

nade
I have to verify this in the code, but my suspicion is that when the entire string is passed along to the Java API as a single command/entity. Java then splits it along the commas and parses it.
Reply | Threaded
Open this post in threaded view
|

Re: Bug: string data with commas

Jiba
Administrator
Hi,

The problem was caused by a bug in the parsing of Pellet output. I fixed it in the development version of Owlready, on Bitbucket.

Jiba