Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UUIDs in JATS/TaxPub id attributes #31

Closed
teodorgeorgiev opened this issue Sep 19, 2018 · 5 comments
Closed

UUIDs in JATS/TaxPub id attributes #31

teodorgeorgiev opened this issue Sep 19, 2018 · 5 comments
Labels
question usage usage of TaxPub elements

Comments

@teodorgeorgiev
Copy link
Collaborator

https://github.com/pensoft/PJS/issues/896#issue-291624833

@teodorgeorgiev
Copy link
Collaborator Author

OpenBiodiv generates UUID's to various elements in the XML. The list is still growing but at the moment it encompasses the following XML elements:

title: /article/front/article-meta/title-group/article-title
abstract: /article/front/article-meta/abstract
front_matter: /article/front
figures: /article/floats-group//fig
plates: /article/floats-group/fig-group
tables: /article/floats-group/table-wrap
reference_list: /article/back/ref-list
reference: /article/back/ref-list/ref
back_matter: /article/back
acknowledgement: /article/back/ack
body: /article/body
treatment: /article/body/sec/tp:taxon-treatment
nomenclature_heading: /article/body//tp:taxon-treatment/tp:nomenclature
nomenclature_citation_list: /article/body//tp:taxon-treatment/tp:nomenclature/tp:nomenclature-citation-list
treatment_section: /article/body/tp:taxon-treatment/tp:treatment-sec
sec: .//sec
captions: .//caption
authors: /article/front/article-meta/contrib-group/contrib
paper_type: /article/front/article-meta/article-categories/subj-group[@subj-group-type='heading']
taxon_classification: /article/front/article-meta/article-categories/subj-group[@subj-group-type='Taxon classification']
subject_classification: /article/front/article-meta/article-categories/subj-group[@subj-group-type='Subject classification']
geographic_classification: /article/front/article-meta/article-categories/subj-group[@subj-group-type='Geographical classification']
zookeys_keywords: /article/front/article-meta/kwd-group
taxonomic_name_usage: .//tp:taxon-name
named-content[@content-type='dwc:institutional_code']

To avoid data duplication if the XML is to be regenerated, the PWT process needs to generate these IDs.
We need to have a connection between Instance ID and UUID. They must appear in PREVIEW and a "modified" NLM must be available where the ID's have the attribute "obkms_id". However, they need to be hidden before submission to NLM.

File-Based process: upon generation of the preview, check the elements (whether they have ID) and then generate ID.

@tcatapano
Copy link
Member

possible solution: append UUID to existing id value, with or without a delimiter (e.g., underscore). This will insure uniqueness of the id, is opaque and innocuous to outside users, but enables local semantics

@tcatapano
Copy link
Member

tcatapano commented Mar 20, 2019

Another, perhaps better, solution for the treatment itself is to put its UUID in a treatment-meta section.
For other elements, appending the PWT UUID to the element's id attribute is probably best

@tcatapano tcatapano added the usage usage of TaxPub elements label Mar 20, 2019
@teodorgeorgiev
Copy link
Collaborator Author

or probably can use

@tcatapano
Copy link
Member

See also <object-id> https://jats.nlm.nih.gov/publishing/tag-library/1.3/element/object-id.html when permitted

TaxPubJATS-blue automation moved this from To do to Done Feb 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question usage usage of TaxPub elements
Projects
Development

No branches or pull requests

2 participants