GithubHelp home page GithubHelp logo

Comments (6)

D063520 avatar D063520 commented on September 9, 2024

this seams to work in the current version
Screenshot 2022-02-16 at 19 19 46
@mielvds can you check on your side?

from hdt-java.

D063520 avatar D063520 commented on September 9, 2024

In fact inside the java version everything is working .... but it is not compatible with the C++ version. Empty file created with the c++ version
Screenshot 2022-02-16 at 19 26 26
empty file created with the java version:
Screenshot 2022-02-16 at 19 27 59

from hdt-java.

D063520 avatar D063520 commented on September 9, 2024

So for the direction

  1. compressing an empty HDT file with c++
  2. opening the hdt file with java version
    my guess is that the c++ version is wrong. Here:

the seqY has length zero but bitmapY has length 1. I'm 90% sure this is encoded in the HDT file wrongly.

Why then it opens in c++ and not in java? The c++ version is not making the same check as java

https://github.com/rdfhdt/hdt-cpp/blob/332a9cc2d5273e76b9daad366f7d2f80adb6b3fc/libhdt/src/sequence/AdjacencyList.cpp#L38

if (array.getNumberOfElements() != bitmap.getNumBits()) {

that is why in c++ we can search over it and not in java.

Moreover if we remove the check in java we can open the file and it contains no triples.

@mielvds : should I open an issue in the c++ version?

from hdt-java.

D063520 avatar D063520 commented on September 9, 2024

For the direction:

  1. compressing an empty HDT file with java
  2. opening the hdt file with c++ version

I think the best is to debug it in the c++ version.
@mielvds I would move this also to the c++ version therefore .....

from hdt-java.

mielvds avatar mielvds commented on September 9, 2024

Nice findings @D063520 ! Yes, let's bounce this over to the C++ version. and close this issue

from hdt-java.

D063520 avatar D063520 commented on September 9, 2024

Ok, I'm moving the first issue ....

from hdt-java.

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.