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

Yale - Import data from external source to arches via UI #10798

Closed
azaroth42 opened this issue Apr 18, 2024 · 4 comments · Fixed by #10885
Closed

Yale - Import data from external source to arches via UI #10798

azaroth42 opened this issue Apr 18, 2024 · 4 comments · Fixed by #10885
Assignees
Labels
javascript Pull requests that update Javascript code Subject: Import/Export Subject: JSON-LD

Comments

@azaroth42
Copy link
Collaborator

azaroth42 commented Apr 18, 2024

A tracker issue to help Rob / Yale better import data from one system into Arches via a UI.

In particular:

  • A page should allow an authenticated user to enter a URL and LUX would then retrieve that record as JSON-LD and import it, with the existing UUID if possible
  • The import process should also import the records that the initial one referenced by retrieving them individually
  • It should allow the user to request a zip file of records from LUX to avoid the above repeated calls
  • It should report errors to the user as to which records did not import, hopefully with an instructive error message as to why they didn't import
  • The multi-import steps could be a workflow if that would be easier/better?

Bad example code:
example_code.zip

@whatisgalen
Copy link
Member

whatisgalen commented Apr 19, 2024

@azaroth42 are you spec'ing this out as an etl import module?

@apeters
Copy link
Member

apeters commented Apr 24, 2024

  • It should allow the user to request a zip file of records from LUX to avoid the above repeated calls

@azaroth42 At the moment we'll be focusing on just allowing users to upload a zip file of resources formatted with the same directory structure as the current json-ld loader uses from the command line.

Directory path pattern

outer dir
  - slug for graph
     - first 2 digits of uuid of resource instance
        - json ld files named with {uuid.json}

ie: files/person/04/04020230-0200-0000-020323-0023232923484.json

@jacobtylerwalls jacobtylerwalls self-assigned this Apr 29, 2024
@apeters
Copy link
Member

apeters commented Apr 29, 2024

@azaroth42 Also, we'll assume that this operation either overwrites, or adds a new resource, like the current json-ld loader command does.

@azaroth42
Copy link
Collaborator Author

Yes, agreed re overwrite/add. Building the zip file we can work on. Doesn't seem too hard for the small number of records per interaction to build it only in memory.

@jacobtylerwalls jacobtylerwalls moved this to 🏗 In Progress in pipeline Apr 30, 2024
jacobtylerwalls added a commit to jacobtylerwalls/arches that referenced this issue May 1, 2024
jacobtylerwalls added a commit to jacobtylerwalls/arches that referenced this issue May 2, 2024
jacobtylerwalls added a commit to jacobtylerwalls/arches that referenced this issue May 2, 2024
jacobtylerwalls added a commit that referenced this issue May 2, 2024
jacobtylerwalls added a commit that referenced this issue May 2, 2024
jacobtylerwalls added a commit to jacobtylerwalls/arches that referenced this issue May 3, 2024
jacobtylerwalls added a commit to jacobtylerwalls/arches that referenced this issue May 3, 2024
jacobtylerwalls added a commit that referenced this issue May 3, 2024
jacobtylerwalls added a commit that referenced this issue May 3, 2024
jacobtylerwalls added a commit that referenced this issue May 3, 2024
jacobtylerwalls added a commit that referenced this issue May 3, 2024
jacobtylerwalls added a commit that referenced this issue May 6, 2024
jacobtylerwalls added a commit that referenced this issue May 6, 2024
jacobtylerwalls added a commit that referenced this issue May 6, 2024
jacobtylerwalls added a commit that referenced this issue May 6, 2024
jacobtylerwalls added a commit that referenced this issue May 7, 2024
@jacobtylerwalls jacobtylerwalls linked a pull request May 7, 2024 that will close this issue
6 tasks
jacobtylerwalls added a commit to jacobtylerwalls/arches that referenced this issue May 8, 2024
@jacobtylerwalls jacobtylerwalls moved this from 🏗 In Progress to 👀 In Review in pipeline May 13, 2024
jacobtylerwalls added a commit to jacobtylerwalls/arches that referenced this issue May 29, 2024
apeters added a commit that referenced this issue Jun 13, 2024
@github-project-automation github-project-automation bot moved this from 👀 In Review to ✅ Done in pipeline Jun 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
javascript Pull requests that update Javascript code Subject: Import/Export Subject: JSON-LD
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

5 participants