GithubHelp home page GithubHelp logo

Metha-Cat: Support for Paging? about metha HOT 3 OPEN

miku avatar miku commented on May 23, 2024
Metha-Cat: Support for Paging?

from metha.

Comments (3)

miku avatar miku commented on May 23, 2024 1

I ran into similar issues (too big XML files) in the past and I remember that there are tools addressing this problem specifically; one I remember is xml_split.

On debian/ubuntu it seems to be available with the xml-twig-tools package.

$ metha-sync https://yareta.unige.ch/oai && metha-cat https://yareta.unige.ch/oai | xml_split -l 1 -s 50kb
$ ls -l
total 456K
drwxrwxr-x  2 tir tir 4.0K Jun  1 13:29 ./
drwxr-xr-x 39 tir tir  56K Jun  1 13:28 ../
-rw-rw-r--  1 tir tir  346 Jun  1 13:29 out-00.xml
-rw-rw-r--  1 tir tir  50K Jun  1 13:29 out-01.xml
-rw-rw-r--  1 tir tir  54K Jun  1 13:29 out-02.xml
-rw-rw-r--  1 tir tir  51K Jun  1 13:29 out-03.xml
-rw-rw-r--  1 tir tir  50K Jun  1 13:29 out-04.xml
-rw-rw-r--  1 tir tir  51K Jun  1 13:29 out-05.xml
-rw-rw-r--  1 tir tir  51K Jun  1 13:29 out-06.xml
-rw-rw-r--  1 tir tir  51K Jun  1 13:29 out-07.xml
-rw-rw-r--  1 tir tir  23K Jun  1 13:29 out-08.xml

The resulting XML is valid, but slightly modified:

$ xmllint --format out-01.xml 2> /dev/null | head -4
<?xml version="1.0"?>
<xml_split:root xmlns:xml_split="http://xmltwig.com/xml_split">
  <record xmlns="http://www.openarchives.org/OAI/2.0/">
    <header status="">

Does this help?

PS: Thanks for using metha! I'm just curious (and collecting uses of metha) - if possible, can you share the project name in which metha is used for data acquisition?

from metha.

tobiasschweizer avatar tobiasschweizer commented on May 23, 2024 1

@miku Thanks a lot for your answer. We'll try this out!

We are using metha for our linked open research data project Connectome.

from metha.

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.