[osis-users] Non-contiguous osisRefs

Chris Little chrislit at crosswire.org
Mon Mar 1 20:05:46 MST 2010


On 2/27/2010 9:40 AM, Weston Ruter wrote:
> (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

 From the perspective of OSIS, at least, this is unnecessary. The 
osisRef attribute takes a list of elements of type osisRefRegex.

The other attributes that take osisID/osisRef-type values also take 
lists (e.g. annotateRef, osisID, lemma, morph, & POS).

--Chris



More information about the osis-users mailing list