Commit
64b587ba6d3cda2b71cea48ffc2e077b8eeae9f2
by Miriam Baglioni[TransformativeAgreement] fix typo on provenance text
|
 | dhp-workflows/dhp-aggregation/src/main/java/eu/dnetlib/dhp/actionmanager/transformativeagreement/CreateActionSetSparkJob.java |
Commit
9fa3569a1f437bf1ac52052d6015b08de7b6a817
by Giambattista BloisiMap the PubMed articles whose publication types the vocabulary does not know
An article without "Journal Article" took its first publication type as its instance type even when dnet:publication_resource did not know it: getVocabularyTerm returns the raw value for an unknown term. createResult then found no result type and the article was dropped without a trace. News, Comment and Case Reports are such types, so every article typed only with them was lost, as were "Case Reports; Letter" and "Comment; Editorial" articles, whose second type is known.
The instance type is now the first publication type the vocabulary knows, "Journal Article" first, and Other literature type (0038) when it knows none, the PubMed type kept as the original type. SparkCreatePubmedDump counts and logs the articles still not mapped.
PMParser and PMParser2.parse2 are deprecated: they match scala.xml.pull events against a javax.xml.stream reader and so never parse an article. The dump uses PMParser2.parse.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
 | dhp-workflows/dhp-aggregation/src/test/scala/eu/dnetlib/dhp/sx/bio/BioScholixTest.scala |
 | dhp-workflows/dhp-aggregation/src/main/scala/eu/dnetlib/dhp/sx/bio/pubmed/PMParser2.scala |
 | dhp-workflows/dhp-aggregation/src/main/scala/eu/dnetlib/dhp/sx/bio/pubmed/PMParser.scala |
 | dhp-workflows/dhp-aggregation/src/main/scala/eu/dnetlib/dhp/sx/bio/pubmed/PubMedToOaf.scala |
 | dhp-workflows/dhp-aggregation/src/main/scala/eu/dnetlib/dhp/sx/bio/ebi/SparkCreatePubmedDump.scala |
Commit
1285c76d9ca287b0f1bdb10bcfbfab2f490c156d
by Giambattista BloisiRead the APC of a record once, not once per ROR affiliation
addAffiliations looked up the APC amount, the official cost and their currencies - four XPath queries over the whole document - for every ROR affiliation of a record. The values are the same for all of them. A big collaboration paper repeats its institutions for thousands of authors, so its mapping was quadratic: thread dumps of the generateentities run of 2026-11-28 found 183 of 216 running task threads in addAffiliations, 180 of them in addAmountCurrencyProperties.
The APC is now read once per record, and each ROR id gives its pair of relations once (the repeats were removed afterwards anyway, by the set in createOafs). On a record with 3,000 authors and 400 institutions the mapping takes about 0.26 s; the repeated lookups alone took about 20 s.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
 | dhp-workflows/dhp-graph-mapper/src/main/java/eu/dnetlib/dhp/oa/graph/raw/AbstractMdRecordToOafMapper.java |
 | dhp-workflows/dhp-graph-mapper/src/test/java/eu/dnetlib/dhp/oa/graph/raw/MappersTest.java |