<div dir="ltr">Excellent questions, Robert.<br><br>The OSIS XML Schema has the following regular expression for the osisWork type: <br><br>((\p{L}|\p{N}|_)+)((\.(\p{L}|\p{N}|_)+)*)?<br><br>Which I'm simplifying in Python to (with re.UNICODE):<br>
<br>\w+(\.\w+)*<br><br>Note that this is even more restrictive than the passage part of an osisID:<br><br>(\p{L}|\p{N}|_|(\\[^\s]))+)(\.(\p{L}|\p{N}|_|(\\[^\s]))*)*<br><br>Which again I'm simplifying in Python to:<br>
<br>(\w|\\\S)+(\.(\w|\\\S)+)*<br><br>Note that for both osisWork and osisPassage, not even a bare hyphen is technically allowed, so using "Bible.en.OET-LV" would be illegal. Furthermore, osisWorks also don't allow escapes (but osisPassages do), so this would also be illegal "Bible.en.OET\-LV". So backslash escapes are allowed in osisPassages but not osisWorks, and quoted segments are allowed in neither (Bible.en."Freely-Given.org".OET-LV.2011). I am not sure why the osisWork is a more limited subset of the pattern used in osisPassage. Not being able to include a domain name in an osisWork seems like a big drawback.<br>
<br>So far as encoding "OET-LV" in the osisWork, since hyphens aren't allowed, an alternative option is to use "OET_LV". But actually, it would probably be best to just break it up into two segments: "<a href="http://OET.LV">OET.LV</a>". Multi-segment work names aren't yet supported by osis.py (it allows a single segment for publisher and a single segment for the work name).<br>
<br>Troy mentioned that nothing was generally agreed upon beyond "Type.lang.ABBR" (e.g. Bible.en.KJV), but I have been thinking [1] about standard ways to indicate version, revision, and edition numbers or names, like perhaps:<br>
<br>v2_1<br>r2341<br>edName<br><br>[1] <a href="http://github.com/openscriptures/api/blob/92b6ee5420c269830baf85503270ccd4cdf4d6c5/osis.py#L451">http://github.com/openscriptures/api/blob/92b6ee5420c269830baf85503270ccd4cdf4d6c5/osis.py#L451</a><br>
<br>Troy and Chris: any more insights into the osisWork identifier?<br><br>Thanks!<br>Weston<br><br><br><div class="gmail_quote">On Fri, Jun 25, 2010 at 9:39 PM, Robert Hunt <span dir="ltr"><<a href="mailto:hunt.robertj@gmail.com">hunt.robertj@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div bgcolor="#ffffff" text="#000000"><div class="im">
On 21/06/10 19:28, Weston Ruter wrote:
<blockquote type="cite">
<div dir="ltr">All of the objects are now built out for osis.py, a
Python module for representing OSIS "things". These include:<br>
<ul>
<li>OsisWork (Bible.en.ChurchOfEngland.KJV.1611)<br>
</li>
<ul>
<li>type (Bible)<br>
</li>
<li>language (en)<br>
</li>
<li>publisher (ChurchOfEngland)<br>
</li>
<li>name (KJV)<br>
</li>
<li>pub_date (1611)<br>
</li>
<li>pub_date_granularity (1)<br>
</li>
</ul>
</ul>
</div>
</blockquote></div>
I'm planning to start studying, testing and using Weston's code in two
weeks time, but in just re-reading this email I have some questions. I
am working to start a new Bible translation. The details would be:<br>
<ul>
<li>type (Bible)<br>
</li>
<li>language (en)<br>
</li>
<li>publisher (Freely-Given.org)<br>
</li>
<li>name (OET-LV)<br>
</li>
<li>pub_date (2011)<br>
</li>
<li>pub_date_granularity (1) ??? What's this</li>
</ul>
My main question is: What if the publisher name has a dot in it like
the above? Can it be quoted (or have the dot escaped)?<br>
e.g., OsisWork (Bible.en."Freely-Given.org".OET-LV.2011) or
OsisWork (Bible.en.Freely-Given\.org.OET-LV.2011)<br>
<br>
Other questions include:<br>
What if there's a version number? e.g, 0.2 or 1.0.1<br>
What if there's an edition name? e.g., Men's Study Edition. (but
maybe that's irrelevant if the Biblical text remains constant and it's
only a "packaging" decision regarding additional notes and
side-boxes???).<br>
<br>
Just thinking out loud,<br><font color="#888888">
Robert.<br>
<br>
<br>
</font></div><div><div></div><div class="h5">
<p></p>
-- <br>
You received this message because you are subscribed to the Google Groups "Open Scriptures" group.<br>
To post to this group, send email to <a href="mailto:open-scriptures@googlegroups.com" target="_blank">open-scriptures@googlegroups.com</a>.<br>
To unsubscribe from this group, send email to <a href="mailto:open-scriptures%2Bunsubscribe@googlegroups.com" target="_blank">open-scriptures+unsubscribe@googlegroups.com</a>.<br>
For more options, visit this group at <a href="http://groups.google.com/group/open-scriptures?hl=en" target="_blank">http://groups.google.com/group/open-scriptures?hl=en</a>.<br>
</div></div></blockquote></div><br></div>