Giter VIP home page Giter VIP logo

Comments (5)

fer-rum avatar fer-rum commented on August 15, 2024

We already encountered this one yesterday.

Someone changed the HTML page format. The maximal revision id is no longer shown there at all. All you can do for now is to download the file manually (in the appropriate directory) and copy some random maxrevid.txt in there from one of your other dumps.

We will try to fix this asap.

from wikidata-toolkit.

mkroetzsch avatar mkroetzsch commented on August 15, 2024

A temporary workaround is to download the file manually and to put it into the directory following the same patterns as for the other dumps. A maxrevid.txt file should be present there as well, but it can contain any number. We will probably have to remove maxrevid support from WDTK, since there is no good way of finding the maxrevid of a dump now that the HTML changed.

from wikidata-toolkit.

mkroetzsch avatar mkroetzsch commented on August 15, 2024

I just added a pull request that will fix this. OTOH, it turns out that the HTML format of the dump pages changed back to how it was before, so that it now works again with the old code too. Anyway, we will remove maxrevid support now rather than relying on such a fragile system.

from wikidata-toolkit.

fer-rum avatar fer-rum commented on August 15, 2024

But we still have to keep the order when processing incremental dump
files. How is this managed now? Btw. I was brought to the idea that
one could tag objects with an revision during the parsing process and
trade the linear dependency for some xml parsing that might be overruled
later on. This would of course give us a boost when doing things in
parallel, but the question is if it is worth the speculative parsing of
things that might show to be out-of-date later on. Just thinking.

from wikidata-toolkit.

mkroetzsch avatar mkroetzsch commented on August 15, 2024

The ordering is based on the revision ids that are within the dump file. The change I made just removed revision id support for dumpfiles as a whole. This did not look inside of any dumpfiles, but it just took this data from the Web.

Well, the issue is that revisions in XML in a single page block are usually in ascending order, so what you suggest would almost certainly parallelize work that we would not usually do at all ;-)

from wikidata-toolkit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.