Skip to content

h2020-sbd4nano/sbd-data-elixir-fairsharing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sbd-data-elixir-fairsharing

FAIRsharing Logo          ELIXIR Toxicology Community Logo

This repository converts FAIRsharing content to SbD4Nano landscape data. The followin instructions use the FAIRSharing API. The ELIXIR Toxicology Community, in collaboration with FAIRsharing, maintains the FAIRSharing Toxicology collection.

Update protocol

Step 1: login

Copy the login.json to login_private.json and add your account info. Then run:

curl --location --request POST 'https://api.fairsharing.org/users/sign_in' \
  --header 'Accept: application/json' \
  --header 'Content-Type: application/json' \
  --data '@login_private.json'

Step 2: Search for toxicology-related records

This returns a JSON file with embeded a string for your jwt. This you use to replace $JWT in the next command:

curl --location --request POST 'https://api.fairsharing.org/search/fairsharing_records?q=toxicology' \
  --header 'Accept: application/json' \
  --header 'Content-Type: application/json' \
  --header 'Authorization: Bearer $JWT' \
  | jq . > toxicology.json

This creates a toxicology.json file under the CC-BY-SA license and can be converted into landscape content.

Step 3: Convert the results to landscape content

groovy convert.groovy > toxicology.ttl

References

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages