Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/maastrichtu-ids/food-claims-kg
🧅 RDF knowledge graph for food health claims
https://github.com/maastrichtu-ids/food-claims-kg
api food-health-claim grlc knowledge-graph rdf sparql
Last synced: about 21 hours ago
JSON representation
🧅 RDF knowledge graph for food health claims
- Host: GitHub
- URL: https://github.com/maastrichtu-ids/food-claims-kg
- Owner: MaastrichtU-IDS
- License: mit
- Created: 2020-10-14T13:40:09.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2023-12-05T22:18:02.000Z (about 1 year ago)
- Last Synced: 2024-04-18T06:14:51.272Z (8 months ago)
- Topics: api, food-health-claim, grlc, knowledge-graph, rdf, sparql
- Language: Python
- Homepage: http://grlc.io/api-git/MaastrichtU-IDS/food-claims-kg
- Size: 903 KB
- Stars: 6
- Watchers: 7
- Forks: 2
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![Generate RDF from Google doc](https://github.com/MaastrichtU-IDS/food-claims-kg/workflows/Generate%20RDF%20from%20Google%20doc/badge.svg)](https://github.com/MaastrichtU-IDS/food-claims-kg/actions)
A RDF knowledge graph for food health claims.
![Semantic Data Model](SIO_for_food_health_claim.png)
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](https://github.com/MaastrichtU-IDS/food-claims-kg/actions) at every push to the `master` branch.
Clone the repository:
```bash
git clone https://github.com/MaastrichtU-IDS/food-claims-kg.git
cd food-claims-kg
```Install requirements:
```bash
pip3 install -r requirements.txt
```Download the data:
[Link to Google Sheet](https://docs.google.com/spreadsheets/d/1RWZ6AlGB8m7PO5kjsbbbeI4ETLwvKLOvkrzOpl8zAM8/edit?usp=sharing)
```bash
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:
```bash
export UMLS_APIKEY=00000000000000
```Run the conversion script:
```bash
python3 src/convert_to_rdf.py
```Create metadata (HCLS statistics)
```bash
d2s metadata analyze https://graphdb.dumontierlab.com/repositories/FoodHealthClaimsKG -o metadata.ttl
```## Examples of grlc API
> API powered by **[grlc.io 🧅](http://grlc.io)**
IRI variable with defaults value (not working for our repo):
* https://github.com/albertmeronyo/lodapi/blob/master/dbpedia_test.rq
* API: http://grlc.io/api-git/albertmeronyo/lodapi#/dbpedia/get_dbpedia_testString variable:
* https://github.com/CLARIAH/wp4-queries-hisco/blob/master/get-hisco-hiscam.rq
* API: http://grlc.io/api-git/CLARIAH/wp4-queries-hisco#/hisco/get_get_hisco_hiscamEnumerate:
* https://github.com/CLARIAH/grlc-queries/blob/master/enumerate.rq
* API: http://grlc.io/api-git/CLARIAH/grlc-queries/#/default/get_enumerate