cite-architecture / ohco2

A cross-platform library for working with collections of texts in the OHCO2 model
https://cite-architecture.github.io/ohco2/
GNU General Public License v3.0
2 stars 1 forks source link

validReff should either throw an exception with work-level URNs, or perform correctly. #135

Open Eumaeus opened 5 years ago

Eumaeus commented 5 years ago

myCorpus.validReff() works, currently, with CTS URNs that (a) have no version, and (b) are at the leaf-node. It fails gracelessly with a work-level:range URN.

We should either say "you can't get validReff without a version; that's what ~~ is for" or make it work. Either is possible.