Skip to content

Refactor binaries handling #1264

Description

@srosset81

NextGraph support file uploads, so instead of storing the files on the filesystem, we will be able to have them encrypted. We're going to take advantage of this refactoring to improve our compatibility with Solid, by changing our metadata description (we currently use a SemApps-specific ontology).

NextGraph use a special API for file uploading and retrieval. See: https://git.nextgraph.org/NextGraph/nextgraph-rs/src/branch/master/ng-sdk-js/app-node/index.js#L44

Implementation:

  • Create a new FsBinaryService, with three main actions: create, get, delete.
  • Create a new NgBinaryService with the same actions, but which save files on NextGraph.
  • Refactor the LdpService to use this service (instead of ldp.resource.upload)
  • Use Solid way for metadata: Use Solid recommended metadata for uploads #1192
  • Add a command to migrate files from the filesystem to NextGraph

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions