[osis-users] Non-contiguous osisRefs

Weston Ruter westonruter at gmail.com
Sat Feb 27 10:40:37 MST 2010


(Cross-post on Open Scriptures and OSIS Users)

A common use case for looking up passages is to not only use a range (Exodus
2:1-3) but also to include non-consecutive verses (Exodus 2:1,3; 4:3-5).

I am thinking that for addressing verses in a REST API, the use of
osisIDs/osisRefs are the best bet. How about extending the osisRef to allow
for non-contiguous verses? For example, separating ranges with semicolons:

/api/rest/osis/Bible.hbo.WLC.2009:Exod.2.1;Exod.2.3;Exod.4.3-Exod.4.5

The work_prefix would apply to all subsequent osisIDs listed until another
one is introduced.

/api/rest/osis/Bible.hbo.WLC.2009:Exod.2.1;Exod.2.3;Bible.grc.LXX:Exod.4.3-Exod.4.5

Thoughts?
Weston
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.crosswire.org/pipermail/osis-users/attachments/20100227/057611ea/attachment.html>


More information about the osis-users mailing list