Understanding the output¶
Each file gets one record. This page goes through its parts in the order they appear.
What the file is¶
verification.kind says what the file is. There are four kinds:
|
The file is |
What the record holds |
|---|---|---|
|
a German safety data sheet |
|
|
laid out like a safety data sheet, without calling itself one |
the verdict only |
|
a safety data sheet in another language |
the verdict and the finding |
|
anything else, or a file no text could be read from |
the verdict; |
Only the first kind is read further, and only its record has sheet,
statements, parser and sheet_count. Every record has the lists warnings, errors and
findings; a list with nothing to say is empty, not missing. verification.errors says why a
file is no German safety data sheet, and
verification.warnings what was noticed on the way.
A safety information (Sicherheitsinformation) is what suppliers issue for products that need no safety data sheet. It has the sixteen sections but not the title. A leaflet on handling an article that titles itself “Sicherheitsdatenblatt zum sicheren Umgang mit …” and does not name Regulation (EC) No 1907/2006, such as a battery maker’s, is one too: what it prints as classification belongs to its ingredients, not to the product’s label.
How the text was read¶
extraction says how the text was won from the PDF:
Field |
Meaning |
|---|---|
|
the reading stage the text comes from: its version and that of the PDF library; two runs of different stages may differ because the text differs, see Comparing two runs |
|
|
|
how many pages were read |
|
how many characters the text has |
|
the version of the text recognition program that read the text; only where it read pages |
|
what was noticed, as messages |
Text read by text recognition is less reliable than text the PDF carries. Check such a sheet more carefully.
The sheet¶
sheet holds what a German safety data sheet says:
Field |
Meaning |
|---|---|
|
the trade name from section 1.1 |
|
date of revision and date of issue, as year-month-day; the newest where the sheet names several |
|
the sheet’s own version number |
|
the countries the sheet is issued for, of |
|
what section 2 says about the classification, see below |
|
whether the sheet calls itself voluntary or not prescribed, and whether it calls the product an article there, see below |
|
whether the product needs a safety data sheet by law, see below |
|
the label of section 2.2, see below |
|
the supplier of section 1.3 with name, address, phone, e-mail and website, and the emergency phone of section 1.4, as printed with what the sheet says about it (“(24 h)”, the poison centre’s name); |
|
the text of each section that was found |
|
a fingerprint of the text; two files with the same one have the same content |
The classification¶
stated_classification is what section 2 says:
Value |
Section 2 says |
|---|---|
|
the product is classified as hazardous under the CLP Regulation |
|
it is classified under the directives before CLP (R phrases, hazard symbols) |
|
it is not classified |
|
neither |
Whether the product needs a sheet¶
sheet_required is true where section 2 classifies the product, or where
the label carries a hazard statement (H or EUH), a signal word or a
pictogram. Every other sheet was issued voluntarily. Precautionary statements
(P) alone do not count: a supplier may print them on any product.
stated_voluntary is true where the sheet says of itself that it was
issued voluntarily or that no safety data sheet is prescribed for the
product (“Für dieses Produkt ist gemäß Artikel 31 der REACH-Verordnung kein
Sicherheitsdatenblatt erforderlich.”, “Dieses Sicherheitsdatenblatt wurde
freiwillig erstellt”, “… für Erzeugnisse nicht vorgeschrieben”).
stated_article is true where it calls the product an article
(“Erzeugnis”) beside that sentence, or where it says the product is an
article and therefore not subject to labelling (“Dieses Produkt ist ein
Erzeugnis, deshalb ist es … nicht kennzeichnungspflichtig”); such a sheet
need not call itself voluntary. What follows for sheet_required:
The sheet … |
|
|---|---|
calls the product an article |
|
calls itself voluntary, and the product is not classified (section 2 does not classify it, no H statement) |
|
calls itself voluntary, but the mixture is classified and no article is named |
|
prints EUH210 or the sentence “auf Anfrage erhältlich” at the label |
|
The label always stands in the reading as the sheet prints it.
The label¶
hazard_statements is the label (Kennzeichnung) of section 2.2:
Field |
Meaning |
|---|---|
|
the codes of the hazard statements (H); H360 and H361 with the letters of their effect, as Annex VI of the CLP Regulation sets them ( |
|
the codes of the precautionary statements (P) |
|
the codes of the supplemental statements (EUH) |
|
|
|
the codes of the pictograms, |
|
the statements as the sheet prints them; a code the sheet does not print stands in front of its sentence |
|
the codes the label does not print: the sheet prints only the sentence, and the parser assigned the code; each also stands in its list above |
The signal word is the printed one. Where the label states none, it follows
from the hazard statements as the CLP Regulation assigns it, and so do
pictograms the text does not name. parser.warnings says when something was
derived or not found.
The statements¶
statements lists every statement of the label with two wordings:
Field |
Meaning |
|---|---|
|
the statement’s code, such as |
|
the wording the supplier printed |
|
the wording of the CLP Regulation; empty where the regulation has no single one, for a statement with a gap to fill or a list to choose from |
|
|
To show the statements as the sheet prints them, leave out the code of a
statement whose code_source is from_wording.
The findings¶
findings lists what is wrong with the sheet as a document. Each is a
message.
|
Meaning |
|---|---|
|
revised before 2021, so it cannot follow today’s rules for the content of a sheet |
|
revised since 2021 but still laid out as before |
|
the revision date (or, without one, the issue date) lies after the day |
|
no date of revision or issue that can be read |
|
classified under the directives before CLP, without a CLP label |
|
the label says the classification is not determined |
|
section 2 neither names a hazard class nor says the product is not classified, and the label is empty |
|
section 2 says not classified, yet the label carries a hazard statement, a signal word or a pictogram |
|
a supplemental statement printed only outside the label |
|
the file holds sheets of different products; |
|
the file holds the same product’s sheets for different countries, and they differ in the |
|
a statement worded differently from the regulation |
|
the sheet is in another language |
A finding is an observation about the document. What follows from it, such as asking the supplier for a newer sheet, is your decision.
Messages¶
Whatever the program notes about a file is a message: what it noticed while reading the text, judging the file and reading the sheet, the reason a file could not be read, and the findings. Every message has three parts:
{
"code": "wording-deviates",
"params": {
"statement": "P102",
"sheet": "Darf nicht in Kinderhände gelangen.",
"regulation": "Darf nicht in die Hände von Kindern gelangen."
},
"message": "P102: Das Blatt druckt „Darf nicht in Kinderhände gelangen.“, die Verordnung sagt „Darf nicht in die Hände von Kindern gelangen.“."
}
Part |
Meaning |
|---|---|
|
what is noted; fixed, and the same in every language |
|
the values the code names |
|
the sentence for a person, in the language you chose |
All messages lists every code with its sentence.
Choosing the language¶
The sentences are German unless you ask for English:
sdb-reader read --lang en sheet.pdf
SDB_READER_LANG=en sdb-reader read sheet.pdf
SDB_READER_LANG is an environment variable: a setting the command line
keeps, so that you need not repeat the option. The language is only ever the
one you name. The language of your machine plays no part, so the same file
gives the same result everywhere.
Not translated are the keys, fixed values such as safety-data-sheet, and
the statements of the label, which are the sheet’s own words.
Sentences of your own¶
The sentences come from a catalog, a text file that gives each code its
sentence. To word messages differently, or in another language, write a file
like this and pass it with --messages:
[messages]
"predates-annex-ii" = "Zu alt: überarbeitet am {revised}."
"undated" = "Das Blatt trägt kein Datum."
sdb-reader read --messages my-messages.toml sheet.pdf
{revised} stands for a value of the message; All messages
names the values of each code. Your file may hold only the codes you want to
word; the others are said in English. A code or a value the program does not
know is refused before any file is read.
Several sheets in one file¶
Some files hold several complete sheets one after another: the two parts of
a two-component adhesive, the products of a combination pack, or the
editions of one sheet for several countries. sheet_count says how many the file
holds; for most files it is 1.
For such a file the record gives two readings side by side:
sheet,statements,parserandfindingsare the file’s, with its sheets united: every code and pictogram any sheet prints, the stronger signal word, the newest date. The messageseveral-sheetsunderparser.warningssays so.partslists each sheet read on its own, in the file’s order, as if it were a file by itself.
{
"sheet_count": 2,
"sheet": {"revision_date": "2022-07-20", "hazard_statements": {"hazard_codes": ["H315", "H318"], "signal_word": "Gefahr"}},
"parts": [
{
"sheet": {"product_identifier": "Harz", "revision_date": "2022-07-20", "hazard_statements": {"hazard_codes": ["H315"], "signal_word": "Achtung"}},
"statements": [{"code": "H315", "sheet": "Verursacht Hautreizungen.", "regulation": "Verursacht Hautreizungen."}],
"warnings": []
},
{
"sheet": {"product_identifier": "Härter", "revision_date": "2021-05-03", "hazard_statements": {"hazard_codes": ["H318"], "signal_word": "Gefahr"}},
"statements": [{"code": "H318", "sheet": "Verursacht schwere Augenschäden.", "regulation": "Verursacht schwere Augenschäden."}],
"warnings": []
}
]
}
(Shortened: each sheet under parts has every field of The sheet.)
Which reading is the right one depends on the file, and the program cannot tell:
Where the sheets are the parts of one product, the product carries all their labels, and the united reading is the product’s.
Where they are different products or editions, the united reading can name hazards that no single sheet names, and its date and version belong to no single sheet. Take the sheet you need from
parts.
Each entry holds sheet (with the fingerprint content_hash of that
sheet’s text), statements and warnings, what was noticed while reading
that sheet, and names its countries (countries, empty where none is
recognised) and its product (product_identifier). There are no findings
per sheet. A later sheet begins at the title “Sicherheitsdatenblatt” above
its section 1, so that the date and version in the header of its first page
count for it. A list of changes that names the sections, and the same sheet
once more in another language, are no further sheets.
Comparing two runs compares the file’s reading, not
parts.
What the sheets say about each other¶
The program compares the sheets of a file and reports what it sees. It chooses none of them and never changes the united reading: which sheet counts for your product, only you know.
different-productsamong thefindings: the product names of the sheets are not one product’s. The parts of one product (”… Komponente A” and “… Komponente B”, “… (Harz)” and “… (Härter)”, colours that differ in a number at the end) are one product and not reported. Such a file is a combination pack or a set, sold as one unit, or a file that belongs to something else than the product it is filed under. Where a product name could not be read, nothing is reported, because it cannot be told.country-editions-differ: two sheets carry the same product name and are for different countries, and they differ in the fields named (statement codes, signal word, pictograms, classification).
A cover page¶
Some files begin with a cover page: a page titled “Deckblatt” or
“Sicherheitsdatenblätter für …”, a kit’s information sheet, a list “Set aus
Sicherheitsdatenblättern bestehend aus:”, or a country’s additions to the
sheet that follows. A cover page is no
sheet. Nothing is read from it: no date, version, supplier or statement of
the record comes from it, and it is not among parts.
Key |
Meaning |
|---|---|
|
|
|
the word on the cover page that names a display, as printed (such as “Mix-Display”); |
A display is a unit a supplier ships to be set up in a shop, holding several products. A file with a display’s cover page belongs to the display, not to one of its products.
Other parts¶
Part |
Holds |
|---|---|
|
path, name and size of the file |
|
what was noticed while reading the sheet, such as a pictogram that was derived; empty where nothing was |
|
for a file that is no German sheet or could not be read: that nothing was read further; otherwise empty |
|
for a file no text could be read from: the reason; otherwise empty |
|
for a PDF that carries an embedded file: see The embedded file |
|
with |
The full description of a record, with every key and its type, is a JSON Schema that ships with the program; programmers find it under The JSON schema.