Skip to content
Snippets Groups Projects

NFDI4Earth - KnowledgeHub - KnowledgeGraph Analysis

A collection of SPARQL queries for analyzing the KnowledgeGraph of NFDI4Earth's KnowledgeHub.

Repository Structure

├── docs/
│   ├── index.md                    # Main documentation page
│   ├── examples.md
│   ├── questions.md
│   ├── macros/
│   ├── metrics/
│   │   ├── general_metrics/
│   │   ├── resource_metrics/
│   │   └── schema_complexity_metrics/
│   └── queries/                   # Query documentation
│       ├── examples/
│       ├── metrics/
│       └── questions/

└── scripts/                       # Python analysis tools
    └── kg_analysis/
        └── ...

Usage

The repository consists of three main components:

  1. Documentation (/docs): Comprehensive documentation of queries, examples and metrics
  2. Query Collection (/docs/queries): SPARQL queries organized by purpose
  3. Analysis Tool (/scripts): Python package for executing queries and calculating metrics

Local Development

  1. Setup virtual environment:
python3 -m venv venv
source venv/bin/activate
  1. Install dependencies:
pip install -r requirements.txt
pip install -e scripts/
  1. Start documentation server:
mkdocs serve

Contributing

We welcome contributions:

  • New SPARQL queries
  • Documentation improvements
  • Tool enhancements

Contributors

Ralf Klammer, Auriol Degbelo, Jonas Grieb

Contact

For questions about the NFDI4Earth KnowledgeHub Graph: