Repository navigation
DKPro JWPL 2.3.1
Changes since 2.3.0. This release adds PostgreSQL support to the API, fixes two template lookups in the Util module, and continues the work on speed: fewer database round trips in the API and the RevisionMachine, and faster dump parsing.
Highlights
- The API reads from PostgreSQL.
Wikipedia,Page,Categoryand the iterators work on a PostgreSQL database (#674). Loading the output of the DataMachine or the TimeMachine into PostgreSQL is not supported yet; seedkpro-jwpl-api/README.md. - Template lookups match multi-word and mixed-case names.
WikipediaTemplateInfo.checkTemplateId(String)and therevisionContainsTemplateName*methods normalize the template name the way the template index stores it (#749, #760). - Faster API. The CategoryGraph is built from bulk-loaded category data instead of several queries per category (#545).
Page.getCategories()membership checks read only the category ids (#741).PageQuerylink count constraints are evaluated in the database, andgetNumberOfPages(PageQuery)counts there (#574). - Faster RevisionMachine and dump processing. Revision metadata reads only the target row (#568), the lazy
RevisionIteratorno longer selects the revision blob (#610), and the DiffTool reads the dump in bulk (#550). The TimeMachine skips the text of revisions no snapshot uses (#557), SQL dumps are tokenized through an unsynchronized buffer (#552), and revision text is unescaped once (#582).
⚠️ Notable changes for upgraders
| Change | What to do |
|---|---|
checkTemplateId(String) lower-cases the name, and revisionContainsTemplateName(s) / revisionContainsTemplateFragment(..) replace blanks with underscores (#749, #760) |
Lookups that returned -1 or false for mixed-case or multi-word template names now find them. |
getNumberOfPages(PageQuery) counts in the database when the query has no redirect, category or token constraints (#574) |
The result is unchanged; it is computed without loading the pages. |
API
- PostgreSQL support for the API read path (#674)
- CategoryGraph construction from bulk-loaded category data (#545)
- Category ids of pages read without loading the categories (#741)
PageQuerylink count constraints evaluated in the database (#574)
RevisionMachine
- Revision metadata reads only the target row (#568)
- The lazy
RevisionIteratorno longer selects the unusedRevisionblob (#610) - The DiffTool reads the dump in bulk and matches tags with an array-indexed keyword tree (#550)
- Revision text is unescaped once, and the encoder buffers are trimmed (#582)
TimeMachine and WikiMachine
- The text pass skips revisions that no snapshot uses (#557)
- The SQL dump tokenizer reads through an unsynchronized buffer (#552)
Util
- Template names are read by parsing only the templates (#551)
checkTemplateId(String)lower-cases the template name (#749)revisionContainsTemplateName(s)andrevisionContainsTemplateFragment(..)normalize the template name (#760)
Dependencies
- Hibernate ORM 6.6.59.Final (#777)
- PostgreSQL JDBC 42.7.15, commons-lang3 3.22.0, commons-codec 1.23.0, nv-i18n 1.36.0, SLF4J 2.0.20
- Build plugins: versions-maven-plugin 2.25.3, build-helper-maven-plugin 3.8.0, maven-failsafe-plugin 3.6.1
Full changelog: dkpro-jwpl-2.3.0...dkpro-jwpl-2.3.1