Giter Site home page Giter Site logo

http-oai-dataprovider's People

Contributors

mokko avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

http-oai-dataprovider's Issues

Chunking

Now chunks are written to disk on initial request and then served from disk cache during new requests. Of course this takes for ever! I should instead write a queryResult that can retrieve only the wanted chunk.

Then I need to save info which allows me to make a new request. I will call it the chunkCache and I can save it in memory. Maybe with a limit. Up to 100 or so before it deletes them.

chunkCache:

  1. resumptionToken
  2. sql
  3. chunkSize
  4. chunkNo

$chunkSize should be constant so we don't even need it.

$chunkCache={
$resumptionToken=>{
sql=>$sql
chunkNo=>$chunkNo
}

xml declaration

I currently run into trouble harvesting since my harvester repeats the <xml ...> declarations inside the document.

  1. Maybe I should make him, the harvester, just not do it.

  2. But this problem raises the question whether or not the declaration should be saved in the db in the first place (in the native_md). I mean it has utf-8 info, but I know that I use utf-8. So maybe not.

  3. Why does the data provider not show this when accessed thru browser, but the harvester has it? I think I will have to try some other http clients like lynx.

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.