Algorithm creating check digit for URN of name space "nbn:de" refers to complete string:
The one-digit check digit, called "P", is positioned directly after the last sign of a URN string.
The character set of check digit consists of numbers zero to nine.
In the following concordance, alphanumerical signs are assigned numerical values including "Zero" e.g. in 10, 20 etc. being avoided. Frequently occurring letters e.g. U, R, N etc. are assigned low number values.
|Alpha signs||Numerical value||Alpha signs||Numerical value|
|_ (Underscore)||43||- (Minus)||39|
First, every alpha sign of a URN string must be replaced with numbers. Corresponding number values have to be derived from the concordance table.
Each number of the digit sequence, ascending from left to right, is individually multiplied beginning with one. Afterwards, the sum of each product is formed. Then, the product sum is divided by the last number of the URN digit sequence. The last number before the comma of the quotient is the check digit.
String is converted into following digit sequence:
Product sum (PS) is derived as follows:
PS = 1*1 + 2*1 + 3*1 + 4*2 + 5*1 + 6*3 ... n*m
PS = 4027
Quotient (Q) is derived from division of product sum (PS) by last number of URN digit sequence:
Q = PS / 5
Q = 4027 / 5
Last number of quotient (Q) before comma is check digit (PZ):
Q = 805,4
PZ = 5
URN including the check digit has the following syntax: