Coder Social home page Coder Social logo

maastrichtu-ids / food-claims-kg Goto Github PK

View Code? Open in Web Editor NEW
6.0 7.0 2.0 925 KB

๐Ÿง… RDF knowledge graph for food health claims

Home Page: http://grlc.io/api-git/MaastrichtU-IDS/food-claims-kg

License: MIT License

Python 100.00%
rdf knowledge-graph sparql grlc api food-health-claim

food-claims-kg's Introduction

Generate RDF from Google doc

A RDF knowledge graph for food health claims.

Semantic Data Model

The easiest way to explore the knowledge graph is to use the various API calls at http://grlc.io/api-git/MaastrichtU-IDS/food-claims-kg

The SPARQL endpoint is accessible at https://graphdb.dumontierlab.com/repositories/FoodHealthClaimsKG

Check the SPARQL queries

Queries from the grlc API can be checked and changed in the .rq files.

Variables starting with an underscore, e.g. _claimlabel, are asked to the user as parameter of the generated API call.

Run conversion scripts

Scripts run automatically with GitHub Actions at every push to the master branch.

Clone the repository:

git clone https://github.com/MaastrichtU-IDS/food-claims-kg.git
cd food-claims-kg

Install requirements:

pip3 install -r requirements.txt

Download the data:

Link to Google Sheet

mkdir -p data/output
wget -O data/food-claims-kg.xlsx "https://docs.google.com/spreadsheets/d/1RWZ6AlGB8m7PO5kjsbbbeI4ETLwvKLOvkrzOpl8zAM8/export?format=xlsx&id=1RWZ6AlGB8m7PO5kjsbbbeI4ETLwvKLOvkrzOpl8zAM8"

Define API key to query UMLS:

export UMLS_APIKEY=00000000000000

Run the conversion script:

python3 src/convert_to_rdf.py

Create metadata (HCLS statistics)

d2s metadata analyze https://graphdb.dumontierlab.com/repositories/FoodHealthClaimsKG -o metadata.ttl 

Examples of grlc API

API powered by grlc.io ๐Ÿง…

IRI variable with defaults value (not working for our repo):

String variable:

Enumerate:

food-claims-kg's People

Contributors

rcelebi avatar vemonet avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

food-claims-kg's Issues

Integrate ontologies from BioPortal

  • UMLS, MEDDRA, GO, HPO - phenotypes (priority)

We just want mappings from UMLS to GO, MEDDRA and HPO

  • ChemBL - food
  • FOODON - food items / categories
  • Mesh. - age
  • SNOMED-CT - population/social condition
  • MEDDRA - population/social condition

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.