[sword-devel] Finding out copyright programatically

DM Smith dmsmith at crosswire.org
Sun Jan 6 15:59:04 MST 2013

Yes. o.c.j.book.BookMetaData is the proper place for this. There are many of ways you can do it. There are several patterns in the class already. I'll leave the choice up to you.

As Peter mentioned there are (at least) two questions that need to be answered:
Redistributable? Are there modules that cannot be distributed at all.
Commercial? Are there modules that preclude the use in a commercial context. (E.g. Ad driven).

Note, when STEP is a desktop application or a web application, these might have different meanings.

Here are details of how to dig it out today:

defines the list of acceptable values.

You can access this via o.c.j.book.BookMetadata.getProperty as in:


You can then compare it to expected values as in "Copyrighted; Permission to distribute granted to CrossWire"

Hope this helps.

In Him,

On Jan 6, 2013, at 12:05 PM, Chris Burrell <chris at burrell.me.uk> wrote:

> Hi
> Can I suggest adding something in the module configuration and/or sword/jsword backends that could indicate what kind of copyright we're dealing with: PUBLIC_DOMAIN, COPYRIGHT, OTHER, etc.
> I personally would find that useful if I want to make available public domain resources in some fashion to others, and thereby not include some of the copyrighted material.
> For example, if I'm going to allow people to include hooks into STEP to obtain and display the Scriptures on their websites, I'd want to make sure I can sift through the texts that I make available and the ones that I don't (see my separate thread about CMSses)
> I guess this could be as trivial as looking for "Public domain" or "Copyright" in the field in the configuration, but in the numerous emails from the last few days, someone said something along the lines that we were trying to be consistent but aren't always.
> If, we think, this is consistent enough, I'd be happy to implement a simple getter on the BookMetadata object in JSword.
> If we don't think this is valuable and the .conf files aren't consistent, I'll simply maintain an "opt-in" list for those resources that are public domain + those I've obtained permissions from
> Chris
> _______________________________________________
> sword-devel mailing list: sword-devel at crosswire.org
> http://www.crosswire.org/mailman/listinfo/sword-devel
> Instructions to unsubscribe/change your settings at above page

More information about the sword-devel mailing list