herminiogg / ShExML

A heterogeneous data mapping language based on Shape Expressions
http://shexml.herminiogarcia.com
MIT License
15 stars 2 forks source link

A UNION B JOIN C wrong output #179

Closed s-minoo closed 5 months ago

s-minoo commented 5 months ago

Issue

When using join expressions, ShExML engine produces inconsistent results based on the ordering of the expressions used in A UNION B JOIN C.

I interpreted it as follows:

If yes, there are currently two issues with it:

  1. Switching B and C will produce an error if "C" is not from the same "source + iterator" as A even though the execution syntax should not change.
  2. Results from A is ignored if B and C are never equal, and all the results from B is produced.

A simple test case using a variation of the input from mappingChallenges/JoinChallenge.scala can reproduce the aforementioned issues.

I have attached the input shexml files and screenshots of the respective problems:

1) file: errored_a_c_neq.txt screenshot: image

2) file: A_ignored.txt screenshot: image