Files
Steven Tischer 9fa01ad366
LocationBasedServices/smartguide/pipeline/head Build started...
move readme
2026-09-06 17:27:21 +02:00

35 lines
2.4 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Datenqualitäts-Analysen (openalex-authors)
## Verwendung
```bash
cd analysis/data
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
python authors.py --help
```
Beispiele:
```bash
# alle Analysen
python authors.py
# nur eine Analyse
python authors.py --analysis 8
# auf eine Institution eingegrenzt (hier: UDE) und Ergebnis speichern (txt)
python authors.py --analysis 8 --filter-uni I62318514 --save
```
## Parameter
| Parameter | Wert | Bedeutung |
| ----------------- | ------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `--analysis N` | `1`–`8` | Führt nur diese eine Analyse aus. Ohne Angabe laufen **alle acht** nacheinander. |
| `--filter-uni ID` | OpenAlex-Institutions-ID, z. B. `I62318514` | Schränkt jede Suche auf Autor:innen dieser Institution ein. Filtert über `affiliations.institution.lineage`, **inklusive Unter-Einheiten** (Institute, Fakultäten). Das Präfix `https://openalex.org/` wird bei Bedarf ergänzt, `I62318514` und die volle URL funktionieren beide. Ohne Angabe wird der gesamte Index durchsucht. |
| `--save` | Flag | Schreibt die Ausgabe zusätzlich nach `analysen/run_<timestamp>.txt` (also in diesen Ordner). Der Pfad hängt am Skript-Verzeichnis, nicht am aktuellen Arbeitsverzeichnis — der Aufruf funktioniert also aus jedem `cwd`. Ohne das Flag geht die Ausgabe nur nach stdout. |