Open fred-atherden opened 4 years ago
The offending line is in encodeTable
:
It should not create a label automatically.
However, currently there is no Table.label
(or CreativeWork.label
property analogous to JATS <label>
) and so in decodeTableWrap
, this information is not captured. I lean towards using Thing.name
for this (an alternative would be to use Entity.meta
but that feels temporary).
Noting that the label
has been added as a property of Table and the above line changed, but that it still defaults to generating a label if the table does not have one.
Tables without labels are given one when encoded in jats.
Steps to reproduce
Visit here and note the table without a label.
This command
produces a jsonld file containing the table without a label:
However this command
produces an xml file where the label has been given the label 'Table 1':