Edirom / MerMEId

Metadata Editor and Repository for MEI Data
https://mermeid.edirom.de/
Apache License 2.0
12 stars 5 forks source link

update database variable #189

Closed peterstadler closed 8 months ago

peterstadler commented 9 months ago

and update output options to fix #186

peterprovaznik commented 8 months ago

With the caveat that I don't really feel qualified to assess the quality and correctness of the output, it mostly looks good using the issue-186 image. I have tried all the queries listed on the help page and they do result in output that looks plausible. However ...

peterstadler commented 8 months ago

Many thanks @peterprovaznik again for the thorough review! I addressed and fixed the issues in my latest commits – would you mind to have another look?

While most fixes are straight forward the latest (167618c) introduces some more changes since I realized that the failing query could be rewritten to simplify things thanks to XQuery-3.0 "group by". Yet, I'm not 100% sure what the desired result is and whether I was able to reproduce it…

peterprovaznik commented 8 months ago

Looks good. As for the location_index.xq, which contains the group-by, I get the following output:

Screenshot from 2024-01-15 17-27-51

I would understand these numbers to be all the entries in the Demo collection (<work>/<identifier label="Demo">) which have this location, so it would probably be better to have each identifier only once. (I think this could be achieved with something like return $numbers => distinct-values() => string-join(', ') in line 102.) What do you think?

peterstadler commented 8 months ago

many thanks for the improvement @peterprovaznik ! I just pushed it and now it looks much cleaner:

Bildschirmfoto 2024-01-15 um 22 12 45