-
Notifications
You must be signed in to change notification settings - Fork 17
Athena DeepLynx Demo Setup
Jaren Brownlee edited this page Sep 30, 2024
·
17 revisions
To set up a dockerized DeepLynx instance:
- Install the latest version of Docker
- Clone the DeepLynx repository
- Navigate to the DeepLynx repository in your terminal/command line/Powershell
- Type
docker compose pull
and wait for the process to finish - Type
docker compose up --attach deep-lynx
and hit enter - To terminate hit Cntrl-C or Cntrl-D
To set up the Athena DeepLynx container:
- Download the files found here. The files are as follows:
-
AthenaDT.owl
: ontology file -
Athena DT_Container_Export.json
: data source/type mapping file -
bt_equipment 1.csv
: graph data file -
AMUSE_scenario_0.xlsx
,AMUSE_scenario_1.xlsx
, andAMUSE_scenario_2.xlsx
: amuse output files -
tag_athena.py
: a python file to properly tag the nodes and files for the demo
- Create a new DL container with the
AthenaDT.owl
ontology - Under "Container Administration"/"Import Container", check the "Data Sources" and "Type Mapping and Transformations" box and import the
Athena DT_Container_Export.json
file - Enable the Data Source ("Data Management"/"Data Sources") and all the mapping checkboxes ("Data Management"/"Type Mappings")
- Under the "Data Management"/"Import Data" page, upload
bt_equipment 1.csv
- Navigate to "Data"/"Data Viewer". You should see a graph like this:
- Under "Data"/"File Viewer", upload each of the
AMUSE_scenarion_#
files. - In order for the Python script to operate correctly, you will need two pieces of information- an API auth token and a container ID.
- To get the API auth token, view this wiki article.
- Use method 1 to generate your key/secret
- Use steps 1-3 of this section to generate your auth token.
- Container ID is visible in the bottom left corner of the UI. For example, the container from the screenshot above is container 2.
- Once you have your auth token and container ID, put them into the TODO lines from the Python code:
- Run the Python code. You should see an output like this (there may be some SSL warnings before this output; you can safely ignore those):
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