Open fred-atherden opened 4 years ago
For decoding this has been addressed by 062a4afa6c6ee66470d782bcd5a0d45510048e00 (not yet merged into master). The JSON-LD produced:
"identifiers": [
{
"name": "publisher-id",
"propertyID": "https://registry.identifiers.org/registry/publisher-id",
"value": "42512",
"type": "PropertyValue"
},
{
"name": "doi",
"propertyID": "https://registry.identifiers.org/registry/doi",
"value": "10.7554/eLife.42512",
"type": "PropertyValue"
},
{
"name": "elocation-id",
"propertyID": "https://registry.identifiers.org/registry/elocation-id",
"value": "e42512",
"type": "PropertyValue"
}
],
which follows the recommendation here on how to encode identifiers in JSON-LD.
Accordingly, changing title so that it only refers to encoding these identifiers to JATS.
Apologies, when I went to change the title I noticed that this is related to id's in references, which has not yet been addressed.
The decoding part of this has now been done in 2fc33f6dade9a245e249cbd8458cfa1899d01902 e.g
"references": [
{
"type": "Article",
"id": "bib1",
"authors": [
{
"type": "Person",
"familyNames": [
"Altman"
],
"givenNames": [
"DG"
]
},
{
"type": "Person",
"familyNames": [
"Royston"
],
"givenNames": [
"P"
]
}
],
"datePublished": {
"type": "Date",
"value": "2006"
},
"identifiers": [
{
"type": "PropertyValue",
"name": "doi",
"propertyID": "https://registry.identifiers.org/registry/doi",
"value": "10.1136/bmj.332.7549.1080"
},
{
"type": "PropertyValue",
"name": "pmid",
"propertyID": "https://registry.identifiers.org/registry/pmid",
"value": 16675816
}
],
"isPartOf": {
"type": "PublicationVolume",
"isPartOf": {
"type": "Periodical",
"name": "BMJ"
},
"volumeNumber": 332
},
"title": "The cost of dichotomising continuous variables"
},
In jats, ids such as dois and pubmed ids are defined using the
pub-id
element.See here. This is captured in the jats as:
After running
it is output as:
and
respectively.