Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

repeat rules (within a single column) #14

Open
DavidUnderdown opened this issue Feb 13, 2017 · 2 comments
Open

repeat rules (within a single column) #14

DavidUnderdown opened this issue Feb 13, 2017 · 2 comments
Milestone

Comments

@DavidUnderdown
Copy link
Contributor

We specify in the Scanning and Transcription Framework that some fields could potentially be a list of uuids (of "related" images, either where an image of a double page spread is split into two single pages, or where a very large master has to be imaged as a set of "tiles" of the original). At present this can only be done using regex, it would be simpler if there was a uuidList test in CSV Schema Language 1.2, which would test for a comma-separated list of uuids ie uuid1,uuid2,...uuidn

@DavidUnderdown DavidUnderdown added this to the 1.2 milestone Feb 13, 2017
@adamretter
Copy link
Contributor

@DavidUnderdown I think it would be better to generalise this, so that you can have other repeating rules also. For example how about something like:

repeat(1, *, uuid)

The first argument would be the minimum (0 to n), the second argument would be the maximum (0+n to *), and the third argument would be an expression. Multiple expressions could be used as the third argument by placing them in brackets.

For an exact number of repeats, you could just set the minimum and maximum to the same values.

@DavidUnderdown
Copy link
Contributor Author

Good thinking batman - renamed issue to reflect this

@DavidUnderdown DavidUnderdown changed the title uuidList repeat rules Feb 13, 2017
@DavidUnderdown DavidUnderdown changed the title repeat rules repeat rules (within a single column) May 25, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants