CTS - Functions

CTS URNs............CTS Functions

CTS requests include a URL parameter named request. The value of this parameter must be the name of one the seven requests: GetCapabilities, GetValidReff, GetFirstUrn, GetPrevNextUrn, GetLabel, GetPassage or GetPassagePlus. All requests other than GetCapabilities further require a parameter named urn. The value of this parameter must be a valid CTS URN value, as defined in the CTS URN specification.

Example Requests (Parallel Bible Corpus)

GetCapabilities

The text inventory with every CTS URN on document level and the corresponding meta information.

GetPassage

The text passage that is referenced by a given CTS URN.

GetLabel

An informal description for the text passage that is referenced by a given CTS URN. For example useful for tooltips.

GetValidReff

All the CTS URNs that "belong to" a given CTS URN on a given citation level. For example, every sentence CTS URN that "belongs to" a given chapter CTS URN.

GetPrevNextUrn

The previous and next static CTS URNs for a given CTS URN in document order.

GetFirstUrn

The first CTS URN that "belongs to" a given CTS URN. For example, the first sentence CTS URN that "belongs to" a given chapter CTS URN.

GetPassagePlus

The combined information for a given CTS URN.