Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export Images from Neo4j to git #3

Open
1 of 5 tasks
dysbulic opened this issue Jul 6, 2020 · 0 comments
Open
1 of 5 tasks

Export Images from Neo4j to git #3

dysbulic opened this issue Jul 6, 2020 · 0 comments
Assignees

Comments

@dysbulic
Copy link
Member

dysbulic commented Jul 6, 2020

Images are imported into Neo4j using the isfdb:covers rake task. The structure is (Book)-[PUB]->(Version)-[CVR]->(Cover) where Cover.cid is a thing. The goal is to traverse the graph and produce an IPFS filesystem of the form: covers-#{isotime}/#{author}/#{title}/covers/#{isbn}.#{ext} where /#{title}/ is a git repository with a single commit of the cover images.

This could be the place to attempt a programmatic commit – generate a new commit for the addition of the images solely in IPFS and create it dynamically when requested by git.

Potentially, git allows the creation of new commits when retrieving from a remote. This would mean it isn't necessary to serialize the commit correctly to get a SHA1 object id for it.

Tasks include:

  • Create a CBOR-DAG representing an empty repository.
  • Check whether it is possible to retrieve commits whose oid is not known. Possibly by returning all 0s for the oid when asked to list what is available to fetch.
  • Write the incoming directory structure to a root commit.
  • Add that commit cid to the titles tree at the appropriate point.
  • Abandon git.
@dysbulic dysbulic self-assigned this Jul 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant