Scripture API?

Discussions about the Notes and Journal tool on LDS.org. This includes the Study Toolbar as well as the scriptures and other content on LDS.org that is integrated with Notes and Journal.
User avatar
thedqs
Community Moderators
Posts: 1042
Joined: Wed Jan 24, 2007 8:53 am
Location: Redmond, WA
Contact:

Postby thedqs » Mon Feb 19, 2007 11:26 am

We moved your original post over to [thread=229]this thread[/thread] about the samsung blackjack. The answers should be posted there.
- David

User avatar
mkmurray
Senior Member
Posts: 3241
Joined: Tue Jan 23, 2007 9:56 pm
Location: Utah
Contact:

Postby mkmurray » Mon Apr 09, 2007 8:38 am

Tom W.,

Since an open source scripture study program isn't going to be built directly on top of the current scripture display, will there be an API where the html (italics, links, etc.) for a particular verse or its footnotes can be obtained?

Thanks.

User avatar
WelchTC
Senior Member
Posts: 2088
Joined: Wed Sep 06, 2006 7:51 am
Location: Kaysville, UT, USA
Contact:

Postby WelchTC » Mon Apr 09, 2007 9:27 am

mkmurray wrote:Tom W.,

Since an open source scripture study program isn't going to be built directly on top of the current scripture display, will there be an API where the html (italics, links, etc.) for a particular verse or its footnotes can be obtained?

Thanks.

Currently there are no plans to provide that. However there is discussion about providing an API to the online scriptures where you could extract what ever information you needed. However, that has not been approved as of yet and could take some time to get approved, if it ever does at all.

Tom

User avatar
mkmurray
Senior Member
Posts: 3241
Joined: Tue Jan 23, 2007 9:56 pm
Location: Utah
Contact:

Postby mkmurray » Mon Apr 09, 2007 9:41 am

tomw wrote:Currently there are no plans to provide that. However there is discussion about providing an API to the online scriptures where you could extract what ever information you needed. However, that has not been approved as of yet and could take some time to get approved, if it ever does at all.

Tom

How would you suggest obtaining scriptural text and footnotes until then? Is there a legit way of obtaining that without breaking any copyrights or privacy policies of the Church?

User avatar
WelchTC
Senior Member
Posts: 2088
Joined: Wed Sep 06, 2006 7:51 am
Location: Kaysville, UT, USA
Contact:

Postby WelchTC » Mon Apr 09, 2007 10:26 am

mkmurray wrote:How would you suggest obtaining scriptural text and footnotes until then? Is there a legit way of obtaining that without breaking any copyrights or privacy policies of the Church?

I don't have an answer for you right now. I'll keep everyone updated as the discussions progress around an API.

Tom

User avatar
mkmurray
Senior Member
Posts: 3241
Joined: Tue Jan 23, 2007 9:56 pm
Location: Utah
Contact:

Postby mkmurray » Tue Apr 10, 2007 10:48 am

tomw wrote:I don't have an answer for you right now. I'll keep everyone updated as the discussions progress around an API.

Tom

So I heard from a friend about a group at BYU that are trying to build a Mac desktop app to study the scriptures. It appears that they have done a little research and the scripture content can't be redistributed, so the solution is to have the app download the scripture content locally for every user. The terms and policies of the scriptures allow each user to download, copy, and print scripture content for personal use.

I wrote a little C# application that downloads all of the content pages off of scriptures.lds.org. It's about 100 MB for the whole site. However, the links on each page still point online. When I was at BYU, I wrote a Web Cloner in C++ that would download all content of a site and change the links to all be local. I'm not sure if I'll be able to find that code, but I would prefer to use a program like that to get the scripture content so as to keep the linking structures in place between pages.

Thoughts, everyone? Anyone else also write the Web Cloner (in case I can't find mine)?

User avatar
mkmurray
Senior Member
Posts: 3241
Joined: Tue Jan 23, 2007 9:56 pm
Location: Utah
Contact:

Postby mkmurray » Tue Apr 10, 2007 10:53 am

It appears I found a colleague that still had their Web Cloner; I'm gonna give that a try in addition to the little app I wrote.

russellhltn
Community Administrator
Posts: 28513
Joined: Sat Jan 20, 2007 2:53 pm
Location: U.S.

Postby russellhltn » Tue Apr 10, 2007 10:56 am

mkmurray wrote:so the solution is to have the app download the scripture content locally for every user. The terms and policies of the scriptures allow each user to download, copy, and print scripture content for personal use.


That's the way some of the PDA version of the scriptures are handled - the user downloads and converts them using the supplied application. What's slick is they've done it so that you can do it for any of the things on the church website - so you're not limited to the scriptures.

rmrichesjr
Community Moderators
Posts: 2412
Joined: Thu Jan 25, 2007 11:32 am
Location: Dundee, Oregon, USA

Postby rmrichesjr » Tue Apr 10, 2007 11:28 am

mkmurray wrote:I wrote a little C# application that downloads all of the content pages off of scriptures.lds.org. It's about 100 MB for the whole site. However, the links on each page still point online. When I was at BYU, I wrote a Web Cloner in C++ that would download all content of a site and change the links to all be local. I'm not sure if I'll be able to find that code, but I would prefer to use a program like that to get the scripture content so as to keep the linking structures in place between pages.

Thoughts, everyone? Anyone else also write the Web Cloner (in case I can't find mine)?


Have you tried the 'wget' program commonly available on Linux and other Unix-like systems? The man page is pretty long, but I think I saw some stuff in there about retargeting links for just such an application.

Oh, the actual scriptural content in plain text form is only about 7.5MB, excluding footnotes and other stuff. I got my copy from the floppy-based product the Church used to distribute, after a little expansion of the weak compression scheme on the floppies. Piped chains of 'grep' commands to find verses with combinations of words are nearly instantaneous.

User avatar
thedqs
Community Moderators
Posts: 1042
Joined: Wed Jan 24, 2007 8:53 am
Location: Redmond, WA
Contact:

Postby thedqs » Sat Apr 14, 2007 3:05 pm

rmrichesjr wrote:Have you tried the 'wget' program commonly available on Linux and other Unix-like systems? The man page is pretty long, but I think I saw some stuff in there about retargeting links for just such an application.

Oh, the actual scriptural content in plain text form is only about 7.5MB, excluding footnotes and other stuff. I got my copy from the floppy-based product the Church used to distribute, after a little expansion of the weak compression scheme on the floppies. Piped chains of 'grep' commands to find verses with combinations of words are nearly instantaneous.


Though I am sure most of us are comfortable with the Linux command line, the common church membership and those that would benefit from this program most likely don't know the difference between bash or DOS. Also I noticed that mkmurray wrote the program in C# which makes it petty much a Windows program for the general populace.
- David


Return to “Notes and Journal, and Online Scriptures”

Who is online

Users browsing this forum: No registered users and 0 guests