atlanmod / Mogwai

Automatic translation from OCL to Gremlin
10 stars 6 forks source link

MogwaiQueryResult: isReifiable() says "true" when returning a list of strings #8

Closed agarciadom closed 8 years ago

agarciadom commented 8 years ago

I've tried using a collect() query that produces a collection of strings: in this case, isReifiable() returns true and the program crashes when it tries to reify the strings.

Instead, a better option would be to check if the elements of the collection are all vertices and then set up the "isReifiable" flag. Also, isReifiable is always false when returning a single value, which feels odd. Some OCL queries could indeed return a single result...