-
Notifications
You must be signed in to change notification settings - Fork 18
Uploading Files
Jaren Brownlee edited this page May 22, 2023
·
6 revisions
Users can now upload files into the DeepLynx data warehouse. At time of writing (August 2020) files will either be stored on the local filesystem, or using Azure's Blob Storage service.
Users must configure the FILE_STORAGE_METHOD
environment variable and set it to be either azure_blob
or filesystem
. Users must set additional environment variables with each of the methods, those are described inside the .env-sample
file at the project's root.
- User POSTS a multipart form to
/containers/:id/datasources/:id/files
. That multipart form can have numerous files and normal field/values attached. - DeepLynx separates the files from the field values.
- DeepLynx creates a record in the
files
table with the files location on the configured storage method and some metadata about the file along with the user provided metadata (the previous field values) - The endpoint returns an array of File objects, which contains the newly assigned DeepLynx ID.
- Users can query files directly from the
files
table using the GraphQL query layer.
DeepLynx has the capability to attach files it's received to metadata. In order for this to function correctly, and have your files attached to the resulting nodes/edges of your metadata successfully you must follow these instructions exactly.
- User POSTS a multipart form to
/containers/:id/datasources/:id/files
. That multipart form can have numerous files and normal field/values attached. - Users must include a field named "metadata". This field should contain a json file (file must be an array of json objects), a csv file, or xml file.
- DeepLynx processes the "metadata" field as normal data, and attaches any files included in that same multipart form to the parsed data.
- Once DeepLynx processes the new metadata into nodes or edges, the previously attached files to the original data are then attached to the resulting nodes/edges.
Sections marked with ! are in progress.
- HTTP Authentication Methods
- Generating and Exchanging API Keys for Tokens
- Creating a DeepLynx Enabled OAuth2 App
- Authentication with DeepLynx Enabled OAuth2 App
- Creating an Ontology
- Creating Relationships and Relationship Pairs
- Ontology Versioning
- Ontology Inheritance
- Querying Tabular (Timeseries) Data
- Timeseries Quick Start
- Timeseries Data Source
- Timeseries Data Source via API
- Exporting Data
- Querying Data
- Querying Timeseries Data
- Querying Jazz Data
- Querying Data - Legacy
- Querying Tabular Data