nicekg_analysis
Science Score: 57.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
✓DOI references
Found 2 DOI reference(s) in README -
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (13.1%) to scientific vocabulary
Repository
Basic Info
- Host: GitHub
- Owner: rivm-syso
- License: eupl-1.2
- Language: Jupyter Notebook
- Default Branch: main
- Size: 637 KB
Statistics
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
- Releases: 0
Metadata Files
README.md
NICE-FoodKG analysis
This repository provides all code necessary for the analyses and visualizations discussed in (F. Bindt, M. Ocke et al. 2025).
Overview
The primary aim of this repository is to provide insights in how data is retrieved and figures are created using the NICE-FoodKG. The workflow leverages ontologies and semantic web technologies to enable rich querying and visualization of food-related data. For code how the data was processed, please go to nicekg_processing repository.
Contents
``` analysis/ ├── figures # contains recreated figures created using the information retrieved with the SPARQL queries ├── functions # contains helper functions used in the repositories ├── queries # contains the underlying SPARQL queries for the use-cases ├── classoverlap.ipynb # notebook used to create the VENN diagram in the publication ├── sizenicefood.ipynb # notebook used to assess the size of NICE-Food ├── usecasenicefood.ipynb # notebook connected to a localhost:3030 which can be used for SPARQL querying and vizualisations
```
Software and Setup
All analyses and queries are performed in Jupyter notebooks, connected with a local Jena Apache Fuseki triplestore. SPARQL queries are executed from the notebook using the SPARQLWrapper package.
Steps to start querying:
Clone This Repository & Set Up Environment
bash
mkdir nicefood_project
cd nicefood_project
git clone https://github.com/rivm-syso/nicekg_processing
git clone https://github.com/rivm-syso/nicekg_analysis
cd nicekg_analysis
conda env create -f environment.yml
conda activate nicekg_analysis
Obtain RDF subgraphs
- NICE-Subgraphs and relevant ontologies can be obtained from the nice nicekg_processing repository in the \data\graph folder, or ZENODO for the most up to date version NICE-Food RDF files. When downloading from Zenodo, SPARQL queries might break due to updates in the underlying data model.
Install Jena Apache Fuseki - Follow the official documentation for installation. Fuseki documentation - Start the fuseki-server - Through the Fuseki interface (usually at localhost:3030 in your browser), create a new dataset (recommended name: nice_food) - upload the downloaded .ttl files. - the interface can be closed now
Saving files locally - If you want to save the files in another directory other than this repository. Create a local_path.py file with the following content
path_figure_4a = "your local path here"
path_figure_4b = "your local path here"
path_figure_4c = "your local path here"
Project status
NICE-Food is part of the BigFood project funded by the Netherlands Institute of Public Health and the Environment strategic programme. In this project we aim to accelerate protein transition research through food data FAIRificaiton and artificial intelligence.
Licence
EUPL-1.2
Acknowledgements
The authors thank the BIGFOOD project team for their valuable input at various stages of the project.
Use of generative AI
In development of this work the author used OpenAI-4o in order to create and enhance the code. After using this tool/service, author(s) reviewed and edited the content as needed.
Owner
- Name: Rijksinstituut voor Volksgezondheid en Milieu
- Login: rivm-syso
- Kind: organization
- Email: info@rivm.nl
- Location: Bilthoven, The Netherlands
- Website: www.rivm.nl
- Repositories: 13
- Profile: https://github.com/rivm-syso
Citation (CITATION.cff)
# This CITATION.cff file was generated with cffinit.
# Visit https://bit.ly/cffinit to generate yours today!
cff-version: 1.2.0
title: NICE_Food analysis
message: >-
If you use this software, please cite it using the
metadata from this file.
type: software
authors:
- affiliation: "National Institute for Public Health and the Environment"
email: felix.bindt@rivm.nl
family-names: Bindt
given-names: Felix
- affiliation: "National Institute for Public Health and the Environment"
email: jens.ruhof@rivm.nl
family-names: Ruhof
given-names: Jens
repository-code: 'https://github.com/rivm-syso/nicekg_processing'
abstract: >
This work describes the code for recreating the figures
and results described in [F. Bindt, M. Ocke et al. 2025].
Please find the README for more information.
keywords:
- FAIR data
- Knowledge Graph
- Food composition
- Chemical Food Safety
- Food Life Cycle Analysis
license: EUPL-1.2
version: 1.0.0
doi: 10.21945/671b26b5-d707-4731-823b-faa1c2675516
date-released: 2025-07-22
GitHub Events
Total
- Push event: 2
- Public event: 1
Last Year
- Push event: 2
- Public event: 1
Dependencies
- PySide6 ==6.9.1
- matplotlib ==3.10.3
- munkres ==1.1.4
- shiboken6 ==6.9.1