Merge dev into fix-analyses-dashboard
LocationBasedServices/smartguide/pipeline/head This commit looks good
@@ -0,0 +1,59 @@
|
||||
# Career-Stage-Analyse
|
||||
|
||||
Diese Analyse untersucht, wie sich der Karrierestatus von Forschenden (Professor vs.
|
||||
Researcher) aus deren Publikationshistorie in OpenAlex ableiten lässt. Das Ergebnis ist die
|
||||
Grundlage für die Career-Stage-Klassifikation im SmartGuide-Backend.
|
||||
|
||||
## Vorgehen
|
||||
|
||||
- **Stichprobe:** 60 Forschende der UDE mit manuell recherchiertem, bekanntem Status
|
||||
(31 Professor, 29 Researcher inkl. Doctoral Researcher) aus fünf Disziplingruppen:
|
||||
Biology, Computer Science, Engineering, Medicine, Sociology
|
||||
([career_stage_sample.csv](career_stage_sample.csv)).
|
||||
- **Datenerhebung:** Für jede Person wurden alle Werke über die OpenAlex-API geladen
|
||||
([openalex_client.py](openalex_client.py)) und daraus pro Person Metriken berechnet
|
||||
([career_stage_analysis.py](career_stage_analysis.py) →
|
||||
[career_stage_results.csv](career_stage_results.csv)):
|
||||
- `career_span`: Jahre vom ersten bis zum letzten Publikationsjahr (inklusiv)
|
||||
- `active_years`: Anzahl **unterschiedlicher** Jahre mit mindestens einer Publikation
|
||||
- `publication_count`, `publications_per_active_year`, `publications_per_career_year`,
|
||||
`years_since_last_publication`
|
||||
- **Auswertung:** Vergleich der Metriken zwischen den bekannten Status-Gruppen, auch je
|
||||
Disziplingruppe ([career_stage_visualization.py](career_stage_visualization.py) →
|
||||
[plots/](plots/), [summaries/](summaries/)).
|
||||
|
||||
## Ergebnisse
|
||||
|
||||
Die Gruppen trennen sich deutlich (Median Professor vs. Researcher):
|
||||
|
||||
| Metrik | Professor | Researcher |
|
||||
| ----------------------------- | --------- | ---------- |
|
||||
| Aktive Publikationsjahre | 28 | 5 |
|
||||
| Career Span (Jahre) | 31 | 7 |
|
||||
| Publikationen | 224 | 11 |
|
||||
| Publikationen je aktivem Jahr | 7,6 | 1,8 |
|
||||
|
||||
Wichtigste Erkenntnis: **`career_span` ist unzuverlässig.** Fehlerhafte Autorenzuordnungen in
|
||||
OpenAlex führen zu unplausibel frühen Erstpublikationen (z. B. 1893/1906 bei aktiven
|
||||
Professor:innen) und blähen die Spannweite massiv auf (Mittelwert 45 Jahre bei Median 31).
|
||||
**`active_years` ist dagegen robust:** Ein einzelnes falsch zugeordnetes altes Werk erhöht die
|
||||
Spannweite um Jahrzehnte, die aktiven Jahre aber nur um 1. Die Trennung zwischen den Gruppen
|
||||
ist bei `active_years` zudem über alle Disziplingruppen hinweg konsistent.
|
||||
|
||||
## Fazit: finale Entscheidungskriterien im Projekt
|
||||
|
||||
Die Career Stage wird im Backend ausschließlich über die **aktiven Publikationsjahre**
|
||||
(`active_years`) bestimmt (siehe `_classify_career_stage` in
|
||||
`service/src/main/inse/persons/logic.py`):
|
||||
|
||||
| Aktive Jahre | Career Stage |
|
||||
| ------------ | ------------ |
|
||||
| 0 | unknown |
|
||||
| 1–4 | Early |
|
||||
| 5–9 | Emerging |
|
||||
| 10–14 | Established |
|
||||
| ≥ 15 | Senior |
|
||||
|
||||
Zusätzlich wird `has_suspicious_publication_years` gesetzt (Erstpublikation vor 1970 oder
|
||||
Career Span > 60 Jahre), um Personen mit vermutlich fehlerhafter OpenAlex-Zuordnung zu
|
||||
kennzeichnen.
|
||||
@@ -0,0 +1,195 @@
|
||||
import csv
|
||||
from datetime import datetime
|
||||
from pathlib import Path
|
||||
from typing import Any
|
||||
|
||||
from openalex_client import get_all_author_works
|
||||
|
||||
|
||||
BASE_DIR = Path(__file__).resolve().parent
|
||||
INPUT_FILE = BASE_DIR / "career_stage_sample.csv"
|
||||
OUTPUT_FILE = BASE_DIR / "career_stage_results.csv"
|
||||
|
||||
|
||||
def extract_publication_years(works: list[dict[str, Any]]) -> list[int]:
|
||||
"""
|
||||
Extracts all valid publication years from the OpenAlex works response.
|
||||
|
||||
One entry in the returned list represents one publication.
|
||||
Therefore, duplicate years are intentionally kept.
|
||||
Example:
|
||||
[2020, 2020, 2021] means 3 publications in 2 active years.
|
||||
"""
|
||||
years: list[int] = []
|
||||
|
||||
for work in works:
|
||||
year = work.get("publication_year")
|
||||
|
||||
if isinstance(year, int):
|
||||
years.append(year)
|
||||
elif isinstance(year, str) and year.isdigit():
|
||||
years.append(int(year))
|
||||
|
||||
return years
|
||||
|
||||
|
||||
def normalize_known_status(known_status: str) -> str:
|
||||
"""
|
||||
Normalizes manually assigned status labels.
|
||||
|
||||
The analysis compares Professor vs Researcher. Doctoral Researcher is therefore
|
||||
mapped to Researcher to keep the groups consistent.
|
||||
"""
|
||||
cleaned_status = known_status.strip()
|
||||
|
||||
if cleaned_status == "Doctoral Researcher":
|
||||
return "Researcher"
|
||||
|
||||
return cleaned_status
|
||||
|
||||
|
||||
def compute_metrics(publication_years: list[int]) -> dict[str, int | float | None]:
|
||||
"""
|
||||
Computes publication-history-based career metrics.
|
||||
|
||||
Important distinction:
|
||||
- publication_count counts all publications
|
||||
- active_years counts distinct years with at least one publication
|
||||
- career_span counts the full inclusive span from first to last publication year
|
||||
"""
|
||||
current_year = datetime.now().year
|
||||
|
||||
if not publication_years:
|
||||
return {
|
||||
"first_publication_year": None,
|
||||
"last_publication_year": None,
|
||||
"career_age": None,
|
||||
"career_span": None,
|
||||
"active_years": 0,
|
||||
"publication_count": 0,
|
||||
"publications_per_active_year": None,
|
||||
"publications_per_career_year": None,
|
||||
"years_since_last_publication": None,
|
||||
}
|
||||
|
||||
sorted_years = sorted(publication_years)
|
||||
unique_years = sorted(set(publication_years))
|
||||
|
||||
first_year = sorted_years[0]
|
||||
last_year = sorted_years[-1]
|
||||
|
||||
publication_count = len(sorted_years)
|
||||
active_years = len(unique_years)
|
||||
|
||||
career_age = last_year - first_year
|
||||
career_span = last_year - first_year + 1
|
||||
|
||||
publications_per_active_year = (
|
||||
publication_count / active_years if active_years > 0 else None
|
||||
)
|
||||
|
||||
publications_per_career_year = (
|
||||
publication_count / career_span if career_span > 0 else None
|
||||
)
|
||||
|
||||
years_since_last_publication = current_year - last_year
|
||||
|
||||
return {
|
||||
"first_publication_year": first_year,
|
||||
"last_publication_year": last_year,
|
||||
"career_age": career_age,
|
||||
"career_span": career_span,
|
||||
"active_years": active_years,
|
||||
"publication_count": publication_count,
|
||||
"publications_per_active_year": publications_per_active_year,
|
||||
"publications_per_career_year": publications_per_career_year,
|
||||
"years_since_last_publication": years_since_last_publication,
|
||||
}
|
||||
|
||||
|
||||
def create_empty_metrics() -> dict[str, int | float | None]:
|
||||
return {
|
||||
"first_publication_year": None,
|
||||
"last_publication_year": None,
|
||||
"career_age": None,
|
||||
"career_span": None,
|
||||
"active_years": 0,
|
||||
"publication_count": 0,
|
||||
"publications_per_active_year": None,
|
||||
"publications_per_career_year": None,
|
||||
"years_since_last_publication": None,
|
||||
}
|
||||
|
||||
|
||||
def analyze_sample() -> None:
|
||||
if not INPUT_FILE.exists():
|
||||
raise FileNotFoundError(f"Input file not found: {INPUT_FILE}")
|
||||
|
||||
results: list[dict[str, Any]] = []
|
||||
|
||||
with INPUT_FILE.open(mode="r", encoding="utf-8", newline="") as input_file:
|
||||
reader = csv.DictReader(input_file)
|
||||
|
||||
for row in reader:
|
||||
name = row.get("name", "").strip()
|
||||
discipline = row.get("discipline", "").strip()
|
||||
discipline_group = row.get("discipline_group", "").strip()
|
||||
known_status = normalize_known_status(row.get("known_status", ""))
|
||||
openalex_author_id = row.get("openalex_author_id", "").strip()
|
||||
|
||||
if not discipline_group:
|
||||
discipline_group = discipline
|
||||
|
||||
if not openalex_author_id:
|
||||
print(f"Skipping {name}: missing OpenAlex author ID")
|
||||
continue
|
||||
|
||||
print(f"Fetching works for {name} ({openalex_author_id})...")
|
||||
|
||||
try:
|
||||
works = get_all_author_works(openalex_author_id)
|
||||
publication_years = extract_publication_years(works)
|
||||
metrics = compute_metrics(publication_years)
|
||||
|
||||
except Exception as error:
|
||||
print(f"Error while processing {name}: {error}")
|
||||
metrics = create_empty_metrics()
|
||||
|
||||
results.append(
|
||||
{
|
||||
"name": name,
|
||||
"discipline": discipline,
|
||||
"discipline_group": discipline_group,
|
||||
"known_status": known_status,
|
||||
"openalex_author_id": openalex_author_id,
|
||||
**metrics,
|
||||
}
|
||||
)
|
||||
|
||||
fieldnames = [
|
||||
"name",
|
||||
"discipline",
|
||||
"discipline_group",
|
||||
"known_status",
|
||||
"openalex_author_id",
|
||||
"first_publication_year",
|
||||
"last_publication_year",
|
||||
"career_age",
|
||||
"career_span",
|
||||
"active_years",
|
||||
"publication_count",
|
||||
"publications_per_active_year",
|
||||
"publications_per_career_year",
|
||||
"years_since_last_publication",
|
||||
]
|
||||
|
||||
with OUTPUT_FILE.open(mode="w", encoding="utf-8", newline="") as output_file:
|
||||
writer = csv.DictWriter(output_file, fieldnames=fieldnames)
|
||||
writer.writeheader()
|
||||
writer.writerows(results)
|
||||
|
||||
print(f"Analysis finished. Results written to {OUTPUT_FILE}")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
analyze_sample()
|
||||
@@ -0,0 +1,61 @@
|
||||
name,discipline,discipline_group,known_status,openalex_author_id,first_publication_year,last_publication_year,career_age,career_span,active_years,publication_count,publications_per_active_year,publications_per_career_year,years_since_last_publication
|
||||
Barbara Saccà,Biology,Biology,Professor,A5075803366,1997,2024,27,28,26,91,3.5,3.25,2
|
||||
Bernd Sures,Biology,Biology,Professor,A5088631999,1994,2026,32,33,32,410,12.8125,12.424242424242424,0
|
||||
Daniel Hering,Biology,Biology,Professor,A5031147249,1893,2026,133,134,37,326,8.81081081081081,2.4328358208955225,0
|
||||
Daniel Hoffmann,Biology,Biology,Professor,A5074555350,1966,2026,60,61,35,332,9.485714285714286,5.442622950819672,0
|
||||
Peter Bayer,Biology,Biology,Professor,A5060566345,1969,2026,57,58,37,358,9.675675675675675,6.172413793103448,0
|
||||
Bianca Kamba,Biology,Biology,Researcher,A5036363877,2017,2025,8,9,4,9,2.25,1.0,1
|
||||
Daniel Grabner,Biology,Biology,Researcher,A5063959731,1980,2026,46,47,19,95,5.0,2.021276595744681,0
|
||||
Farnusch Kaschani,Biology,Biology,Researcher,A5078099512,2005,2026,21,22,21,182,8.666666666666666,8.272727272727273,0
|
||||
Kathrin Januschke,Biology,Biology,Researcher,A5064225981,2011,2026,15,16,15,36,2.4,2.25,0
|
||||
Richard Kosinski,Biology,Biology,Researcher,A5014403509,1986,2022,36,37,4,6,1.5,0.16216216216216217,4
|
||||
Jens Krüger,Computer Graphics and Visualization,Computer Science,Professor,A5087449583,1964,2025,61,62,20,67,3.35,1.0806451612903225,1
|
||||
Torben Weis,Distributed Systems,Computer Science,Professor,A5016729057,1980,2026,46,47,43,197,4.5813953488372094,4.191489361702128,0
|
||||
Stefan Schneegaß,Human Computer Interaction,Computer Science,Professor,A5024328962,2008,2026,18,19,17,224,13.176470588235293,11.789473684210526,0
|
||||
Gregor Schiele,Intelligent Embedded Systems,Computer Science,Professor,A5028943371,1999,2026,27,28,22,155,7.045454545454546,5.535714285714286,0
|
||||
Pedro José Marrón,Networked Embedded Systems,Computer Science,Professor,A5047117780,1996,2026,30,31,28,285,10.178571428571429,9.193548387096774,0
|
||||
Lucas Davi,Secure Software Systems,Computer Science,Professor,A5089242868,2009,2026,17,18,18,137,7.611111111111111,7.611111111111111,0
|
||||
Volker Gruhn,Software Engineering,Computer Science,Professor,A5049739067,1989,2025,36,37,36,410,11.38888888888889,11.08108108108108,1
|
||||
Andreas Metzger,Software Systems Engineering,Computer Science,Professor,A5082025709,1992,2026,34,35,28,202,7.214285714285714,5.771428571428571,0
|
||||
Andreas Vogelsang,Software Systems Engineering,Computer Science,Professor,A5022998651,2005,2026,21,22,20,225,11.25,10.227272727272727,0
|
||||
Barbara König,Theoretical Computer Science,Computer Science,Professor,A5103103785,1906,2026,120,121,36,230,6.388888888888889,1.9008264462809918,0
|
||||
Alexandra Dmitrienko,Vertrauenswürdige Systeme,Computer Science,Professor,A5042835341,2010,2026,16,17,17,110,6.470588235294118,6.470588235294118,0
|
||||
Carina Liebers,Human Computer Interaction,Computer Science,Researcher,A5004350173,2022,2026,4,5,5,11,2.2,2.2,0
|
||||
Jonas Keppel,Human Computer Interaction,Computer Science,Researcher,A5015767175,2022,2026,4,5,5,11,2.2,2.2,0
|
||||
Carlos Medina Sánchez,Networked Embedded Systems,Computer Science,Researcher,A5093479876,2023,2025,2,3,2,2,1.0,0.6666666666666666,1
|
||||
Marcus Handte,Networked Embedded Systems,Computer Science,Researcher,A5007170803,2004,2026,22,23,23,107,4.6521739130434785,4.6521739130434785,0
|
||||
Simon Janzon,Networked Embedded Systems,Computer Science,Researcher,A5044472300,2020,2025,5,6,5,6,1.2,1.0,1
|
||||
Christian Niesler,Secure Software Systems,Computer Science,Researcher,A5069184110,2021,2026,5,6,5,9,1.8,1.5,0
|
||||
Christian Scholz,Secure Software Systems,Computer Science,Researcher,A5120610207,2025,2026,1,2,2,2,1.0,1.0,0
|
||||
Pascal Winkler,Secure Software Systems,Computer Science,Researcher,A5081189339,2009,2026,17,18,6,22,3.6666666666666665,1.2222222222222223,0
|
||||
Stefan Hanenberg,Software Engineering,Computer Science,Researcher,A5027034338,2000,2025,25,26,25,105,4.2,4.038461538461538,1
|
||||
Wilhelm Koop,Software Engineering,Computer Science,Researcher,A5019228221,2016,2022,6,7,6,14,2.3333333333333335,2.0,4
|
||||
Venkata Marella,Vertrauenswürdige Systeme,Computer Science,Researcher,A5082156768,2017,2026,9,10,8,11,1.375,1.1,0
|
||||
Burak Atakan,Engineering,Engineering,Professor,A5041521847,1989,2026,37,38,35,202,5.771428571428571,5.315789473684211,0
|
||||
Corina Andronescu,Engineering,Engineering,Professor,A5082583063,2008,2026,18,19,19,137,7.2105263157894735,7.2105263157894735,0
|
||||
Gerd Bacher,Engineering,Engineering,Professor,A5056038758,1985,2026,41,42,38,385,10.131578947368421,9.166666666666666,0
|
||||
Miriam Böhm,Engineering,Engineering,Researcher,A5037448457,2011,2021,10,11,8,12,1.5,1.0909090909090908,5
|
||||
Soheil Salighe,Steuerung Regelung und Systemdynamik,Engineering,Researcher,A5041884757,2017,2024,7,8,5,7,1.4,0.875,2
|
||||
Tobias Mikolas,Engineering,Engineering,Researcher,A5002909977,2021,2023,2,3,2,2,1.0,0.6666666666666666,3
|
||||
Boris Hadaschik,Medicine,Medicine,Professor,A5077243123,2001,2026,25,26,24,791,32.958333333333336,30.423076923076923,0
|
||||
Hartmut Schmidt,Medicine,Medicine,Professor,A5015932441,1910,2026,116,117,63,1024,16.253968253968253,8.752136752136753,0
|
||||
Matthias Gunzer,Medicine,Medicine,Professor,A5020520632,1997,2026,29,30,29,343,11.827586206896552,11.433333333333334,0
|
||||
Oliver Witzke,Medicine,Medicine,Professor,A5087456839,1954,2026,72,73,34,615,18.08823529411765,8.424657534246576,0
|
||||
Stephan Lang,Medicine,Medicine,Professor,A5030649192,1929,2026,97,98,44,859,19.522727272727273,8.76530612244898,0
|
||||
Tienush Rassaf,Medicine,Medicine,Professor,A5048609556,2002,2025,23,24,19,62,3.263157894736842,2.5833333333333335,1
|
||||
Ulrike Bingel,Medicine,Medicine,Professor,A5002281474,1998,2026,28,29,27,315,11.666666666666666,10.862068965517242,0
|
||||
Birte Möhlendick,Medicine,Medicine,Researcher,A5030635588,2010,2025,15,16,14,48,3.4285714285714284,3.0,1
|
||||
Julia Schwichtenberg,Medicine,Medicine,Researcher,A5119372151,2025,2026,1,2,2,3,1.5,1.5,0
|
||||
Katrin Schuldt,Medicine,Medicine,Researcher,A5002003996,2000,2026,26,27,7,12,1.7142857142857142,0.4444444444444444,0
|
||||
Sabrina Guckenbiehl,Medicine,Medicine,Researcher,A5008120333,2021,2026,5,6,6,31,5.166666666666667,5.166666666666667,0
|
||||
Zülal Cibir,Medicine,Medicine,Researcher,A5035081158,2019,2025,6,7,7,21,3.0,3.0,1
|
||||
Frank Kleemann,Sociology,Sociology,Professor,A5041694590,1999,2025,26,27,22,106,4.818181818181818,3.925925925925926,1
|
||||
Gregor Bongaerts,Sociology,Sociology,Professor,A5012265262,2000,2025,25,26,18,55,3.0555555555555554,2.1153846153846154,1
|
||||
Helen Baykara-Krumme,Sociology,Sociology,Professor,A5010111732,2007,2026,19,20,19,71,3.736842105263158,3.55,0
|
||||
Marcel Erlinghagen,Sociology,Sociology,Professor,A5021715937,1970,2026,56,57,29,131,4.517241379310345,2.2982456140350878,0
|
||||
Ute Klammer,Sociology,Sociology,Professor,A5055077517,1997,2026,29,30,25,146,5.84,4.866666666666666,0
|
||||
Andreas Jansen,Sociology,Sociology,Researcher,A5030957194,1991,2026,35,36,12,15,1.25,0.4166666666666667,0
|
||||
Antonia Görtz,Sociology,Sociology,Researcher,A5066776558,2022,2025,3,4,2,2,1.0,0.5,1
|
||||
Friedrich Scheller,Sociology,Sociology,Researcher,A5072565080,2014,2020,6,7,2,2,1.0,0.2857142857142857,6
|
||||
Lara Altenstädter,Sociology,Sociology,Researcher,A5070117981,2019,2023,4,5,5,15,3.0,3.0,3
|
||||
Lisa Mansfeld,Sociology,Sociology,Researcher,A5018318930,2021,2026,5,6,5,9,1.8,1.5,0
|
||||
|
@@ -0,0 +1,61 @@
|
||||
name,discipline,discipline_group,known_status,openalex_author_id
|
||||
Barbara Saccà,Biology,Biology,Professor,A5075803366
|
||||
Bernd Sures,Biology,Biology,Professor,A5088631999
|
||||
Daniel Hering,Biology,Biology,Professor,A5031147249
|
||||
Daniel Hoffmann,Biology,Biology,Professor,A5074555350
|
||||
Peter Bayer,Biology,Biology,Professor,A5060566345
|
||||
Bianca Kamba,Biology,Biology,Researcher,A5036363877
|
||||
Daniel Grabner,Biology,Biology,Researcher,A5063959731
|
||||
Farnusch Kaschani,Biology,Biology,Researcher,A5078099512
|
||||
Kathrin Januschke,Biology,Biology,Researcher,A5064225981
|
||||
Richard Kosinski,Biology,Biology,Researcher,A5014403509
|
||||
Jens Krüger,Computer Graphics and Visualization,Computer Science,Professor,A5087449583
|
||||
Torben Weis,Distributed Systems,Computer Science,Professor,A5016729057
|
||||
Stefan Schneegaß,Human Computer Interaction,Computer Science,Professor,A5024328962
|
||||
Gregor Schiele,Intelligent Embedded Systems,Computer Science,Professor,A5028943371
|
||||
Pedro José Marrón,Networked Embedded Systems,Computer Science,Professor,A5047117780
|
||||
Lucas Davi,Secure Software Systems,Computer Science,Professor,A5089242868
|
||||
Volker Gruhn,Software Engineering,Computer Science,Professor,A5049739067
|
||||
Andreas Metzger,Software Systems Engineering,Computer Science,Professor,A5082025709
|
||||
Andreas Vogelsang,Software Systems Engineering,Computer Science,Professor,A5022998651
|
||||
Barbara König,Theoretical Computer Science,Computer Science,Professor,A5103103785
|
||||
Alexandra Dmitrienko,Vertrauenswürdige Systeme,Computer Science,Professor,A5042835341
|
||||
Carina Liebers,Human Computer Interaction,Computer Science,Researcher,A5004350173
|
||||
Jonas Keppel,Human Computer Interaction,Computer Science,Researcher,A5015767175
|
||||
Carlos Medina Sánchez,Networked Embedded Systems,Computer Science,Researcher,A5093479876
|
||||
Marcus Handte,Networked Embedded Systems,Computer Science,Researcher,A5007170803
|
||||
Simon Janzon,Networked Embedded Systems,Computer Science,Researcher,A5044472300
|
||||
Christian Niesler,Secure Software Systems,Computer Science,Researcher,A5069184110
|
||||
Christian Scholz,Secure Software Systems,Computer Science,Researcher,A5120610207
|
||||
Pascal Winkler,Secure Software Systems,Computer Science,Researcher,A5081189339
|
||||
Stefan Hanenberg,Software Engineering,Computer Science,Researcher,A5027034338
|
||||
Wilhelm Koop,Software Engineering,Computer Science,Researcher,A5019228221
|
||||
Venkata Marella,Vertrauenswürdige Systeme,Computer Science,Researcher,A5082156768
|
||||
Burak Atakan,Engineering,Engineering,Professor,A5041521847
|
||||
Corina Andronescu,Engineering,Engineering,Professor,A5082583063
|
||||
Gerd Bacher,Engineering,Engineering,Professor,A5056038758
|
||||
Miriam Böhm,Engineering,Engineering,Researcher,A5037448457
|
||||
Soheil Salighe,Steuerung Regelung und Systemdynamik,Engineering,Researcher,A5041884757
|
||||
Tobias Mikolas,Engineering,Engineering,Researcher,A5002909977
|
||||
Boris Hadaschik,Medicine,Medicine,Professor,A5077243123
|
||||
Hartmut Schmidt,Medicine,Medicine,Professor,A5015932441
|
||||
Matthias Gunzer,Medicine,Medicine,Professor,A5020520632
|
||||
Oliver Witzke,Medicine,Medicine,Professor,A5087456839
|
||||
Stephan Lang,Medicine,Medicine,Professor,A5030649192
|
||||
Tienush Rassaf,Medicine,Medicine,Professor,A5048609556
|
||||
Ulrike Bingel,Medicine,Medicine,Professor,A5002281474
|
||||
Birte Möhlendick,Medicine,Medicine,Researcher,A5030635588
|
||||
Julia Schwichtenberg,Medicine,Medicine,Researcher,A5119372151
|
||||
Katrin Schuldt,Medicine,Medicine,Researcher,A5002003996
|
||||
Sabrina Guckenbiehl,Medicine,Medicine,Researcher,A5008120333
|
||||
Zülal Cibir,Medicine,Medicine,Researcher,A5035081158
|
||||
Frank Kleemann,Sociology,Sociology,Professor,A5041694590
|
||||
Gregor Bongaerts,Sociology,Sociology,Professor,A5012265262
|
||||
Helen Baykara-Krumme,Sociology,Sociology,Professor,A5010111732
|
||||
Marcel Erlinghagen,Sociology,Sociology,Professor,A5021715937
|
||||
Ute Klammer,Sociology,Sociology,Professor,A5055077517
|
||||
Andreas Jansen,Sociology,Sociology,Researcher,A5030957194
|
||||
Antonia Görtz,Sociology,Sociology,Researcher,A5066776558
|
||||
Friedrich Scheller,Sociology,Sociology,Researcher,A5072565080
|
||||
Lara Altenstädter,Sociology,Sociology,Researcher,A5070117981
|
||||
Lisa Mansfeld,Sociology,Sociology,Researcher,A5018318930
|
||||
|
@@ -0,0 +1,633 @@
|
||||
from pathlib import Path
|
||||
from typing import Callable, Literal
|
||||
|
||||
import matplotlib.pyplot as plt
|
||||
import pandas as pd
|
||||
|
||||
|
||||
BASE_DIR = Path(__file__).resolve().parent
|
||||
INPUT_FILE = BASE_DIR / "career_stage_results.csv"
|
||||
PLOTS_DIR = BASE_DIR / "plots"
|
||||
SUMMARY_DIR = BASE_DIR / "summaries"
|
||||
|
||||
STATUS_ORDER = ["Professor", "Researcher"]
|
||||
METRICS = [
|
||||
"career_span",
|
||||
"active_years",
|
||||
"publication_count",
|
||||
"publications_per_active_year",
|
||||
"publications_per_career_year",
|
||||
"years_since_last_publication",
|
||||
]
|
||||
|
||||
NUMERIC_COLUMNS = [
|
||||
"first_publication_year",
|
||||
"last_publication_year",
|
||||
"career_age",
|
||||
*METRICS,
|
||||
]
|
||||
|
||||
METRIC_LABELS = {
|
||||
"career_span": "Career Span in Years",
|
||||
"active_years": "Active Publication Years",
|
||||
"publication_count": "Number of Publications",
|
||||
"publications_per_active_year": "Publications per Active Year",
|
||||
"publications_per_career_year": "Publications per Career Year",
|
||||
"years_since_last_publication": "Years Since Last Publication",
|
||||
}
|
||||
|
||||
METRIC_TITLES = {
|
||||
"career_span": "Career Span",
|
||||
"active_years": "Active Publication Years",
|
||||
"publication_count": "Publication Count",
|
||||
"publications_per_active_year": "Publications per Active Year",
|
||||
"publications_per_career_year": "Publications per Career Year",
|
||||
"years_since_last_publication": "Years Since Last Publication",
|
||||
}
|
||||
|
||||
|
||||
StatisticFunction = Callable[[pd.Series], float]
|
||||
ScatterLabelMode = Literal["none", "outliers", "all"]
|
||||
|
||||
|
||||
def prepare_data() -> pd.DataFrame:
|
||||
if not INPUT_FILE.exists():
|
||||
raise FileNotFoundError(
|
||||
f"Input file not found: {INPUT_FILE}. "
|
||||
"Run career_stage_analysis.py first."
|
||||
)
|
||||
|
||||
df = pd.read_csv(INPUT_FILE)
|
||||
|
||||
if "discipline_group" not in df.columns:
|
||||
df["discipline_group"] = df.get("discipline", "Unknown")
|
||||
|
||||
df["discipline_group"] = df["discipline_group"].fillna("Unknown")
|
||||
df["known_status"] = df["known_status"].fillna("Unknown")
|
||||
|
||||
for column in NUMERIC_COLUMNS:
|
||||
if column in df.columns:
|
||||
df[column] = pd.to_numeric(df[column], errors="coerce")
|
||||
|
||||
return df
|
||||
|
||||
|
||||
def ordered_statuses(df: pd.DataFrame) -> list[str]:
|
||||
statuses = [status for status in STATUS_ORDER if status in df["known_status"].unique()]
|
||||
additional_statuses = sorted(
|
||||
status
|
||||
for status in df["known_status"].dropna().unique()
|
||||
if status not in STATUS_ORDER
|
||||
)
|
||||
return statuses + additional_statuses
|
||||
|
||||
|
||||
def ordered_discipline_groups(df: pd.DataFrame) -> list[str]:
|
||||
return sorted(df["discipline_group"].dropna().unique())
|
||||
|
||||
|
||||
def mean_value(series: pd.Series) -> float:
|
||||
return series.mean()
|
||||
|
||||
|
||||
def median_value(series: pd.Series) -> float:
|
||||
return series.median()
|
||||
|
||||
|
||||
def build_summary(df: pd.DataFrame, group_columns: list[str]) -> pd.DataFrame:
|
||||
rows: list[dict[str, object]] = []
|
||||
|
||||
for group_values, group in df.groupby(group_columns, dropna=False):
|
||||
if not isinstance(group_values, tuple):
|
||||
group_values = (group_values,)
|
||||
|
||||
row: dict[str, object] = {
|
||||
column: value for column, value in zip(group_columns, group_values)
|
||||
}
|
||||
row["sample_size"] = len(group)
|
||||
|
||||
for metric in METRICS:
|
||||
if metric not in group.columns:
|
||||
continue
|
||||
|
||||
values = group[metric].dropna()
|
||||
row[f"mean_{metric}"] = values.mean() if not values.empty else None
|
||||
row[f"median_{metric}"] = values.median() if not values.empty else None
|
||||
|
||||
rows.append(row)
|
||||
|
||||
return pd.DataFrame(rows)
|
||||
|
||||
|
||||
def save_summary_tables(df: pd.DataFrame) -> None:
|
||||
SUMMARY_DIR.mkdir(exist_ok=True)
|
||||
|
||||
summary_by_status = build_summary(df, ["known_status"])
|
||||
summary_by_status.to_csv(
|
||||
SUMMARY_DIR / "summary_by_status.csv",
|
||||
index=False,
|
||||
encoding="utf-8",
|
||||
)
|
||||
|
||||
summary_by_discipline_group = build_summary(df, ["discipline_group"])
|
||||
summary_by_discipline_group.to_csv(
|
||||
SUMMARY_DIR / "summary_by_discipline_group.csv",
|
||||
index=False,
|
||||
encoding="utf-8",
|
||||
)
|
||||
|
||||
summary_by_discipline_group_and_status = build_summary(
|
||||
df,
|
||||
["discipline_group", "known_status"],
|
||||
)
|
||||
summary_by_discipline_group_and_status.to_csv(
|
||||
SUMMARY_DIR / "summary_by_discipline_group_and_status.csv",
|
||||
index=False,
|
||||
encoding="utf-8",
|
||||
)
|
||||
|
||||
|
||||
def save_bar_plot_by_status(
|
||||
df: pd.DataFrame,
|
||||
metric: str,
|
||||
statistic_name: str,
|
||||
statistic_function: StatisticFunction,
|
||||
title: str,
|
||||
ylabel: str,
|
||||
filename: str,
|
||||
) -> None:
|
||||
grouped = df.groupby("known_status")[metric].apply(statistic_function)
|
||||
grouped = grouped.reindex(ordered_statuses(df)).dropna()
|
||||
|
||||
plt.figure(figsize=(10, 6))
|
||||
grouped.plot(kind="bar")
|
||||
plt.title(title)
|
||||
plt.xlabel("Known Status")
|
||||
plt.ylabel(ylabel)
|
||||
plt.xticks(rotation=30, ha="right")
|
||||
plt.tight_layout()
|
||||
plt.savefig(PLOTS_DIR / filename)
|
||||
plt.close()
|
||||
|
||||
print(f"Saved {statistic_name} plot: {filename}")
|
||||
|
||||
|
||||
def save_grouped_bar_plot_by_discipline_group(
|
||||
df: pd.DataFrame,
|
||||
metric: str,
|
||||
statistic_name: str,
|
||||
statistic_function: StatisticFunction,
|
||||
title: str,
|
||||
ylabel: str,
|
||||
filename: str,
|
||||
) -> None:
|
||||
grouped = (
|
||||
df.groupby(["discipline_group", "known_status"])[metric]
|
||||
.apply(statistic_function)
|
||||
.unstack("known_status")
|
||||
)
|
||||
|
||||
grouped = grouped.reindex(ordered_discipline_groups(df))
|
||||
grouped = grouped.reindex(columns=ordered_statuses(df))
|
||||
|
||||
plt.figure(figsize=(12, 6))
|
||||
grouped.plot(kind="bar")
|
||||
plt.title(title)
|
||||
plt.xlabel("Discipline Group")
|
||||
plt.ylabel(ylabel)
|
||||
plt.xticks(rotation=30, ha="right")
|
||||
plt.legend(title="Known Status")
|
||||
plt.tight_layout()
|
||||
plt.savefig(PLOTS_DIR / filename)
|
||||
plt.close()
|
||||
|
||||
print(f"Saved {statistic_name} discipline group plot: {filename}")
|
||||
|
||||
|
||||
def save_box_plot_by_status(
|
||||
df: pd.DataFrame,
|
||||
metric: str,
|
||||
title: str,
|
||||
ylabel: str,
|
||||
filename: str,
|
||||
) -> None:
|
||||
statuses = ordered_statuses(df)
|
||||
data = [df.loc[df["known_status"] == status, metric].dropna() for status in statuses]
|
||||
|
||||
plt.figure(figsize=(10, 6))
|
||||
plt.boxplot(data, labels=statuses)
|
||||
plt.title(title)
|
||||
plt.xlabel("Known Status")
|
||||
plt.ylabel(ylabel)
|
||||
plt.xticks(rotation=30, ha="right")
|
||||
plt.tight_layout()
|
||||
plt.savefig(PLOTS_DIR / filename)
|
||||
plt.close()
|
||||
|
||||
|
||||
def save_box_plot_by_discipline_group_and_status(
|
||||
df: pd.DataFrame,
|
||||
metric: str,
|
||||
title: str,
|
||||
ylabel: str,
|
||||
filename: str,
|
||||
) -> None:
|
||||
labels: list[str] = []
|
||||
data: list[pd.Series] = []
|
||||
|
||||
for discipline_group in ordered_discipline_groups(df):
|
||||
discipline_group_data = df[df["discipline_group"] == discipline_group]
|
||||
|
||||
for status in ordered_statuses(discipline_group_data):
|
||||
values = discipline_group_data.loc[
|
||||
discipline_group_data["known_status"] == status,
|
||||
metric,
|
||||
].dropna()
|
||||
|
||||
if values.empty:
|
||||
continue
|
||||
|
||||
labels.append(f"{discipline_group}\n{status}")
|
||||
data.append(values)
|
||||
|
||||
if not data:
|
||||
return
|
||||
|
||||
plt.figure(figsize=(14, 6))
|
||||
plt.boxplot(data, labels=labels)
|
||||
plt.title(title)
|
||||
plt.xlabel("Discipline Group and Known Status")
|
||||
plt.ylabel(ylabel)
|
||||
plt.xticks(rotation=45, ha="right")
|
||||
plt.tight_layout()
|
||||
plt.savefig(PLOTS_DIR / filename)
|
||||
plt.close()
|
||||
|
||||
|
||||
def save_histogram(
|
||||
df: pd.DataFrame,
|
||||
metric: str,
|
||||
title: str,
|
||||
xlabel: str,
|
||||
filename: str,
|
||||
) -> None:
|
||||
plt.figure(figsize=(10, 6))
|
||||
df[metric].dropna().plot(kind="hist", bins=10)
|
||||
plt.title(title)
|
||||
plt.xlabel(xlabel)
|
||||
plt.ylabel("Number of Researchers")
|
||||
plt.tight_layout()
|
||||
plt.savefig(PLOTS_DIR / filename)
|
||||
plt.close()
|
||||
|
||||
|
||||
def is_outlier(row: pd.Series, df: pd.DataFrame, x_metric: str, y_metric: str) -> bool:
|
||||
x_values = df[x_metric].dropna()
|
||||
y_values = df[y_metric].dropna()
|
||||
|
||||
if x_values.empty or y_values.empty:
|
||||
return False
|
||||
|
||||
x_threshold = x_values.quantile(0.75) + 1.5 * (
|
||||
x_values.quantile(0.75) - x_values.quantile(0.25)
|
||||
)
|
||||
y_threshold = y_values.quantile(0.75) + 1.5 * (
|
||||
y_values.quantile(0.75) - y_values.quantile(0.25)
|
||||
)
|
||||
|
||||
x_value = row.get(x_metric)
|
||||
y_value = row.get(y_metric)
|
||||
|
||||
if pd.isna(x_value) or pd.isna(y_value):
|
||||
return False
|
||||
|
||||
is_statistical_outlier = x_value > x_threshold or y_value > y_threshold
|
||||
is_researcher_with_long_history = (
|
||||
row.get("known_status") == "Researcher"
|
||||
and (x_value > 20 or row.get("publication_count", 0) > 100)
|
||||
)
|
||||
is_suspiciously_old_first_publication = row.get("first_publication_year", 9999) < 1970
|
||||
|
||||
return bool(
|
||||
is_statistical_outlier
|
||||
or is_researcher_with_long_history
|
||||
or is_suspiciously_old_first_publication
|
||||
)
|
||||
|
||||
|
||||
def should_label_point(
|
||||
row: pd.Series,
|
||||
df: pd.DataFrame,
|
||||
x_metric: str,
|
||||
y_metric: str,
|
||||
label_mode: ScatterLabelMode,
|
||||
) -> bool:
|
||||
if label_mode == "none":
|
||||
return False
|
||||
|
||||
if label_mode == "all":
|
||||
return True
|
||||
|
||||
return is_outlier(row, df, x_metric, y_metric)
|
||||
|
||||
|
||||
def save_scatter_plot(
|
||||
df: pd.DataFrame,
|
||||
x_metric: str,
|
||||
y_metric: str,
|
||||
group_column: str,
|
||||
title: str,
|
||||
xlabel: str,
|
||||
ylabel: str,
|
||||
filename: str,
|
||||
label_mode: ScatterLabelMode = "none",
|
||||
) -> None:
|
||||
figure_width = 15 if label_mode == "all" else 11
|
||||
figure_height = 9 if label_mode == "all" else 7
|
||||
label_fontsize = 6 if label_mode == "all" else 8
|
||||
|
||||
plt.figure(figsize=(figure_width, figure_height))
|
||||
|
||||
for group_name, group in df.groupby(group_column):
|
||||
plt.scatter(group[x_metric], group[y_metric], label=group_name, alpha=0.8)
|
||||
|
||||
for _, row in group.iterrows():
|
||||
x_value = row.get(x_metric)
|
||||
y_value = row.get(y_metric)
|
||||
name = row.get("name")
|
||||
|
||||
if (
|
||||
pd.notna(name)
|
||||
and pd.notna(x_value)
|
||||
and pd.notna(y_value)
|
||||
and should_label_point(row, df, x_metric, y_metric, label_mode)
|
||||
):
|
||||
plt.annotate(
|
||||
str(name),
|
||||
(x_value, y_value),
|
||||
fontsize=label_fontsize,
|
||||
xytext=(5, 5),
|
||||
textcoords="offset points",
|
||||
)
|
||||
|
||||
plt.title(title)
|
||||
plt.xlabel(xlabel)
|
||||
plt.ylabel(ylabel)
|
||||
plt.legend(title=group_column)
|
||||
plt.tight_layout()
|
||||
plt.savefig(PLOTS_DIR / filename)
|
||||
plt.close()
|
||||
|
||||
|
||||
def create_status_plots(df: pd.DataFrame) -> None:
|
||||
for metric in ["career_span", "publication_count", "active_years"]:
|
||||
metric_title = METRIC_TITLES[metric]
|
||||
metric_label = METRIC_LABELS[metric]
|
||||
|
||||
save_bar_plot_by_status(
|
||||
df=df,
|
||||
metric=metric,
|
||||
statistic_name="average",
|
||||
statistic_function=mean_value,
|
||||
title=f"Average {metric_title} by Known Status",
|
||||
ylabel=f"Average {metric_label}",
|
||||
filename=f"average_{metric}_by_status.png",
|
||||
)
|
||||
|
||||
save_bar_plot_by_status(
|
||||
df=df,
|
||||
metric=metric,
|
||||
statistic_name="median",
|
||||
statistic_function=median_value,
|
||||
title=f"Median {metric_title} by Known Status",
|
||||
ylabel=f"Median {metric_label}",
|
||||
filename=f"median_{metric}_by_status.png",
|
||||
)
|
||||
|
||||
for metric in [
|
||||
"publications_per_active_year",
|
||||
"publications_per_career_year",
|
||||
"years_since_last_publication",
|
||||
]:
|
||||
metric_title = METRIC_TITLES[metric]
|
||||
metric_label = METRIC_LABELS[metric]
|
||||
|
||||
save_bar_plot_by_status(
|
||||
df=df,
|
||||
metric=metric,
|
||||
statistic_name="average",
|
||||
statistic_function=mean_value,
|
||||
title=f"Average {metric_title} by Known Status",
|
||||
ylabel=f"Average {metric_label}",
|
||||
filename=f"average_{metric}_by_status.png",
|
||||
)
|
||||
|
||||
save_box_plot_by_status(
|
||||
df=df,
|
||||
metric="career_span",
|
||||
title="Distribution of Career Span by Known Status",
|
||||
ylabel="Career Span in Years",
|
||||
filename="boxplot_career_span_by_status.png",
|
||||
)
|
||||
|
||||
save_box_plot_by_status(
|
||||
df=df,
|
||||
metric="publication_count",
|
||||
title="Distribution of Publication Count by Known Status",
|
||||
ylabel="Number of Publications",
|
||||
filename="boxplot_publication_count_by_status.png",
|
||||
)
|
||||
|
||||
save_box_plot_by_status(
|
||||
df=df,
|
||||
metric="active_years",
|
||||
title="Distribution of Active Publication Years by Known Status",
|
||||
ylabel="Active Publication Years",
|
||||
filename="boxplot_active_years_by_status.png",
|
||||
)
|
||||
|
||||
|
||||
def create_discipline_group_plots(df: pd.DataFrame) -> None:
|
||||
for metric in ["career_span", "publication_count", "active_years"]:
|
||||
metric_title = METRIC_TITLES[metric]
|
||||
metric_label = METRIC_LABELS[metric]
|
||||
|
||||
save_grouped_bar_plot_by_discipline_group(
|
||||
df=df,
|
||||
metric=metric,
|
||||
statistic_name="average",
|
||||
statistic_function=mean_value,
|
||||
title=f"Average {metric_title} by Discipline Group and Status",
|
||||
ylabel=f"Average {metric_label}",
|
||||
filename=f"average_{metric}_by_discipline_group_and_status.png",
|
||||
)
|
||||
|
||||
save_grouped_bar_plot_by_discipline_group(
|
||||
df=df,
|
||||
metric=metric,
|
||||
statistic_name="median",
|
||||
statistic_function=median_value,
|
||||
title=f"Median {metric_title} by Discipline Group and Status",
|
||||
ylabel=f"Median {metric_label}",
|
||||
filename=f"median_{metric}_by_discipline_group_and_status.png",
|
||||
)
|
||||
|
||||
save_box_plot_by_discipline_group_and_status(
|
||||
df=df,
|
||||
metric=metric,
|
||||
title=f"Distribution of {metric_title} by Discipline Group and Status",
|
||||
ylabel=metric_label,
|
||||
filename=f"boxplot_{metric}_by_discipline_group_and_status.png",
|
||||
)
|
||||
|
||||
|
||||
def create_distribution_plots(df: pd.DataFrame) -> None:
|
||||
save_histogram(
|
||||
df=df,
|
||||
metric="career_span",
|
||||
title="Career Span Distribution",
|
||||
xlabel="Career Span in Years",
|
||||
filename="histogram_career_span.png",
|
||||
)
|
||||
|
||||
save_histogram(
|
||||
df=df,
|
||||
metric="publication_count",
|
||||
title="Publication Count Distribution",
|
||||
xlabel="Number of Publications",
|
||||
filename="histogram_publication_count.png",
|
||||
)
|
||||
|
||||
|
||||
def create_scatter_plots(df: pd.DataFrame) -> None:
|
||||
save_scatter_plot(
|
||||
df=df,
|
||||
x_metric="career_span",
|
||||
y_metric="publication_count",
|
||||
group_column="known_status",
|
||||
title="Career Span vs Publication Count by Status",
|
||||
xlabel="Career Span in Years",
|
||||
ylabel="Number of Publications",
|
||||
filename="scatter_career_span_vs_publication_count_by_status.png",
|
||||
label_mode="none",
|
||||
)
|
||||
|
||||
save_scatter_plot(
|
||||
df=df,
|
||||
x_metric="career_span",
|
||||
y_metric="publication_count",
|
||||
group_column="known_status",
|
||||
title="Career Span vs Publication Count by Status with Outlier Labels",
|
||||
xlabel="Career Span in Years",
|
||||
ylabel="Number of Publications",
|
||||
filename="scatter_career_span_vs_publication_count_by_status_outliers.png",
|
||||
label_mode="outliers",
|
||||
)
|
||||
|
||||
save_scatter_plot(
|
||||
df=df,
|
||||
x_metric="career_span",
|
||||
y_metric="publication_count",
|
||||
group_column="known_status",
|
||||
title="Career Span vs Publication Count by Status with All Names",
|
||||
xlabel="Career Span in Years",
|
||||
ylabel="Number of Publications",
|
||||
filename="scatter_career_span_vs_publication_count_by_status_all_names.png",
|
||||
label_mode="all",
|
||||
)
|
||||
|
||||
save_scatter_plot(
|
||||
df=df,
|
||||
x_metric="career_span",
|
||||
y_metric="publication_count",
|
||||
group_column="discipline_group",
|
||||
title="Career Span vs Publication Count by Discipline Group",
|
||||
xlabel="Career Span in Years",
|
||||
ylabel="Number of Publications",
|
||||
filename="scatter_career_span_vs_publication_count_by_discipline_group.png",
|
||||
label_mode="none",
|
||||
)
|
||||
|
||||
save_scatter_plot(
|
||||
df=df,
|
||||
x_metric="career_span",
|
||||
y_metric="publication_count",
|
||||
group_column="discipline_group",
|
||||
title="Career Span vs Publication Count by Discipline Group with All Names",
|
||||
xlabel="Career Span in Years",
|
||||
ylabel="Number of Publications",
|
||||
filename="scatter_career_span_vs_publication_count_by_discipline_group_all_names.png",
|
||||
label_mode="all",
|
||||
)
|
||||
|
||||
save_scatter_plot(
|
||||
df=df,
|
||||
x_metric="active_years",
|
||||
y_metric="publication_count",
|
||||
group_column="known_status",
|
||||
title="Active Publication Years vs Publication Count by Status",
|
||||
xlabel="Active Publication Years",
|
||||
ylabel="Number of Publications",
|
||||
filename="scatter_active_years_vs_publication_count_by_status.png",
|
||||
label_mode="none",
|
||||
)
|
||||
|
||||
save_scatter_plot(
|
||||
df=df,
|
||||
x_metric="active_years",
|
||||
y_metric="publication_count",
|
||||
group_column="known_status",
|
||||
title="Active Publication Years vs Publication Count by Status with All Names",
|
||||
xlabel="Active Publication Years",
|
||||
ylabel="Number of Publications",
|
||||
filename="scatter_active_years_vs_publication_count_by_status_all_names.png",
|
||||
label_mode="all",
|
||||
)
|
||||
|
||||
save_scatter_plot(
|
||||
df=df,
|
||||
x_metric="career_span",
|
||||
y_metric="publications_per_active_year",
|
||||
group_column="known_status",
|
||||
title="Career Span vs Publications per Active Year by Status",
|
||||
xlabel="Career Span in Years",
|
||||
ylabel="Publications per Active Year",
|
||||
filename="scatter_career_span_vs_publications_per_active_year_by_status.png",
|
||||
label_mode="none",
|
||||
)
|
||||
|
||||
save_scatter_plot(
|
||||
df=df,
|
||||
x_metric="career_span",
|
||||
y_metric="publications_per_active_year",
|
||||
group_column="known_status",
|
||||
title="Career Span vs Publications per Active Year by Status with All Names",
|
||||
xlabel="Career Span in Years",
|
||||
ylabel="Publications per Active Year",
|
||||
filename="scatter_career_span_vs_publications_per_active_year_by_status_all_names.png",
|
||||
label_mode="all",
|
||||
)
|
||||
|
||||
|
||||
def create_visualizations() -> None:
|
||||
PLOTS_DIR.mkdir(exist_ok=True)
|
||||
SUMMARY_DIR.mkdir(exist_ok=True)
|
||||
|
||||
df = prepare_data()
|
||||
|
||||
if df.empty:
|
||||
print("No data available for visualization.")
|
||||
return
|
||||
|
||||
save_summary_tables(df)
|
||||
create_status_plots(df)
|
||||
create_discipline_group_plots(df)
|
||||
create_distribution_plots(df)
|
||||
create_scatter_plots(df)
|
||||
|
||||
print(f"Visualizations saved to {PLOTS_DIR}")
|
||||
print(f"Summary tables saved to {SUMMARY_DIR}")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
create_visualizations()
|
||||
@@ -0,0 +1,96 @@
|
||||
import json
|
||||
from typing import Any
|
||||
from urllib.error import HTTPError, URLError
|
||||
from urllib.parse import urlencode
|
||||
from urllib.request import Request, urlopen
|
||||
|
||||
|
||||
OPENALEX_WORKS_URL = "https://api.openalex.org/works"
|
||||
REQUEST_TIMEOUT_SECONDS = 30
|
||||
PER_PAGE = 200
|
||||
|
||||
|
||||
def normalize_author_id(author_id: str) -> str:
|
||||
"""
|
||||
Normalizes OpenAlex author IDs.
|
||||
|
||||
Supported inputs:
|
||||
- A123456789
|
||||
- https://openalex.org/A123456789
|
||||
- https://api.openalex.org/authors/A123456789
|
||||
"""
|
||||
cleaned_author_id = author_id.strip()
|
||||
|
||||
if cleaned_author_id.startswith("https://api.openalex.org/authors/"):
|
||||
return cleaned_author_id.replace(
|
||||
"https://api.openalex.org/authors/",
|
||||
"https://openalex.org/",
|
||||
)
|
||||
|
||||
if cleaned_author_id.startswith("https://openalex.org/"):
|
||||
return cleaned_author_id
|
||||
|
||||
if cleaned_author_id.startswith("A"):
|
||||
return f"https://openalex.org/{cleaned_author_id}"
|
||||
|
||||
return cleaned_author_id
|
||||
|
||||
|
||||
def fetch_openalex_page(author_id: str, cursor: str) -> dict[str, Any]:
|
||||
normalized_author_id = normalize_author_id(author_id)
|
||||
|
||||
query_params = urlencode(
|
||||
{
|
||||
"filter": f"authorships.author.id:{normalized_author_id}",
|
||||
"per-page": PER_PAGE,
|
||||
"cursor": cursor,
|
||||
"sort": "publication_year:asc",
|
||||
}
|
||||
)
|
||||
|
||||
url = f"{OPENALEX_WORKS_URL}?{query_params}"
|
||||
|
||||
request = Request(
|
||||
url,
|
||||
headers={
|
||||
"Accept": "application/json",
|
||||
"User-Agent": "AIIS career stage analysis",
|
||||
},
|
||||
)
|
||||
|
||||
try:
|
||||
with urlopen(request, timeout=REQUEST_TIMEOUT_SECONDS) as response:
|
||||
response_body = response.read().decode("utf-8")
|
||||
return json.loads(response_body)
|
||||
|
||||
except HTTPError as error:
|
||||
raise RuntimeError(
|
||||
f"OpenAlex request failed with HTTP status {error.code}: {url}"
|
||||
) from error
|
||||
|
||||
except URLError as error:
|
||||
raise RuntimeError(f"OpenAlex request failed: {error}") from error
|
||||
|
||||
|
||||
def get_all_author_works(author_id: str) -> list[dict[str, Any]]:
|
||||
"""
|
||||
Fetches all works for an OpenAlex author by using cursor pagination.
|
||||
"""
|
||||
works: list[dict[str, Any]] = []
|
||||
cursor = "*"
|
||||
|
||||
while cursor:
|
||||
data = fetch_openalex_page(author_id, cursor)
|
||||
|
||||
page_results = data.get("results", [])
|
||||
works.extend(page_results)
|
||||
|
||||
meta = data.get("meta", {})
|
||||
next_cursor = meta.get("next_cursor")
|
||||
|
||||
if not next_cursor or next_cursor == cursor:
|
||||
break
|
||||
|
||||
cursor = next_cursor
|
||||
|
||||
return works
|
||||
|
After Width: | Height: | Size: 32 KiB |
|
After Width: | Height: | Size: 24 KiB |
|
After Width: | Height: | Size: 31 KiB |
|
After Width: | Height: | Size: 22 KiB |
|
After Width: | Height: | Size: 32 KiB |
|
After Width: | Height: | Size: 24 KiB |
|
After Width: | Height: | Size: 23 KiB |
|
After Width: | Height: | Size: 24 KiB |
|
After Width: | Height: | Size: 25 KiB |
|
After Width: | Height: | Size: 44 KiB |
|
After Width: | Height: | Size: 25 KiB |
|
After Width: | Height: | Size: 42 KiB |
|
After Width: | Height: | Size: 24 KiB |
|
After Width: | Height: | Size: 42 KiB |
|
After Width: | Height: | Size: 24 KiB |
|
After Width: | Height: | Size: 19 KiB |
|
After Width: | Height: | Size: 18 KiB |
|
After Width: | Height: | Size: 32 KiB |
|
After Width: | Height: | Size: 22 KiB |
|
After Width: | Height: | Size: 30 KiB |
|
After Width: | Height: | Size: 22 KiB |
|
After Width: | Height: | Size: 31 KiB |
|
After Width: | Height: | Size: 22 KiB |
|
After Width: | Height: | Size: 35 KiB |
|
After Width: | Height: | Size: 76 KiB |
|
After Width: | Height: | Size: 43 KiB |
|
After Width: | Height: | Size: 83 KiB |
|
After Width: | Height: | Size: 34 KiB |
|
After Width: | Height: | Size: 75 KiB |
|
After Width: | Height: | Size: 51 KiB |
|
After Width: | Height: | Size: 36 KiB |
|
After Width: | Height: | Size: 81 KiB |
@@ -0,0 +1,6 @@
|
||||
discipline_group,sample_size,mean_career_span,median_career_span,mean_active_years,median_active_years,mean_publication_count,median_publication_count,mean_publications_per_active_year,median_publications_per_active_year,mean_publications_per_career_year,median_publications_per_career_year,mean_years_since_last_publication,median_years_since_last_publication
|
||||
Biology,10,44.5,35.0,23.0,23.5,184.5,138.5,6.410136743886744,6.833333333333333,4.342828101969518,2.8414179104477615,0.7,0.0
|
||||
Computer Science,22,24.90909090909091,18.5,17.136363636363637,17.5,115.54545454545455,106.0,5.194674030118668,4.390697674418605,4.383304699676206,3.1192307692307693,0.4090909090909091,0.0
|
||||
Engineering,6,20.166666666666668,15.0,17.833333333333332,13.5,124.16666666666667,74.5,4.5022556390977435,3.6357142857142857,4.054259702286018,3.2033492822966507,1.6666666666666667,1.0
|
||||
Medicine,12,37.916666666666664,26.5,23.0,21.5,343.6666666666667,188.5,10.699183227664198,8.416666666666666,7.862918672933688,6.795662100456621,0.25,0.0
|
||||
Sociology,10,21.8,23.0,13.9,15.0,55.2,35.0,3.0017820858310875,3.0277777777777777,2.245860377439325,2.206815114709852,1.2,0.5
|
||||
|
@@ -0,0 +1,11 @@
|
||||
discipline_group,known_status,sample_size,mean_career_span,median_career_span,mean_active_years,median_active_years,mean_publication_count,median_publication_count,mean_publications_per_active_year,median_publications_per_active_year,mean_publications_per_career_year,median_publications_per_career_year,mean_years_since_last_publication,median_years_since_last_publication
|
||||
Biology,Professor,5,62.8,58.0,33.4,35.0,303.4,332.0,8.856940154440155,9.485714285714286,5.944422997812213,5.442622950819672,0.4,0.0
|
||||
Biology,Researcher,5,26.2,22.0,12.6,15.0,65.6,36.0,3.9633333333333334,2.4,2.741233206126823,2.021276595744681,1.0,0.0
|
||||
Computer Science,Professor,11,39.72727272727273,31.0,25.90909090909091,22.0,203.8181818181818,202.0,8.05960497723338,7.214285714285714,6.804834459316603,6.470588235294118,0.18181818181818182,0.0
|
||||
Computer Science,Researcher,11,10.090909090909092,6.0,8.363636363636363,5.0,27.272727272727273,11.0,2.3297430830039527,2.2,1.96177494003581,1.5,0.6363636363636364,0.0
|
||||
Engineering,Professor,3,33.0,38.0,30.666666666666668,35.0,241.33333333333334,202.0,7.704511278195487,7.2105263157894735,7.230994152046783,7.2105263157894735,0.0,0.0
|
||||
Engineering,Researcher,3,7.333333333333333,8.0,5.0,5.0,7.0,7.0,1.3,1.4,0.8775252525252525,0.875,3.3333333333333335,3.0
|
||||
Medicine,Professor,7,56.714285714285715,30.0,34.285714285714285,29.0,572.7142857142857,615.0,16.225810703206655,16.253968253968253,11.606273280584732,8.76530612244898,0.14285714285714285,0.0
|
||||
Medicine,Researcher,5,11.6,7.0,7.2,7.0,23.0,21.0,2.961904761904762,3.0,2.6222222222222222,3.0,0.4,0.0
|
||||
Sociology,Professor,5,32.0,27.0,22.6,22.0,101.8,106.0,4.393564171662176,4.517241379310345,3.3512445644024593,3.55,0.4,0.0
|
||||
Sociology,Researcher,5,11.6,6.0,5.2,5.0,8.6,9.0,1.61,1.25,1.1404761904761904,0.5,2.0,1.0
|
||||
|
@@ -0,0 +1,3 @@
|
||||
known_status,sample_size,mean_career_span,median_career_span,mean_active_years,median_active_years,mean_publication_count,median_publication_count,mean_publications_per_active_year,median_publications_per_active_year,mean_publications_per_career_year,median_publications_per_career_year,mean_years_since_last_publication,median_years_since_last_publication
|
||||
Professor,31,45.38709677419355,31.0,28.93548387096774,28.0,290.35483870967744,224.0,9.40652855281006,7.611111111111111,7.234464912380307,6.172413793103448,0.22580645161290322,0.0
|
||||
Researcher,29,13.10344827586207,7.0,8.0,5.0,27.82758620689655,11.0,2.4897711858356537,1.8,1.9562675238653737,1.5,1.1724137931034482,0.0
|
||||
|
@@ -0,0 +1,134 @@
|
||||
# Evaluation Results
|
||||
|
||||
## Executive summary
|
||||
|
||||
Gemma4-e4b was evaluated in two complementary ways:
|
||||
|
||||
1. **Semantic benchmark:** comparison with a consensus of four stronger LLMs on 50 research works.
|
||||
2. **Index validation audit:** structural validation of all 1,000 documents currently stored in `work-classifications`.
|
||||
|
||||
| Key result | Score |
|
||||
| --------------------------------------------- | -------------------: |
|
||||
| Consensus-compatible category | **43/50 (86.0%)** |
|
||||
| Agreement on unanimous reference items | **25/28 (89.3%)** |
|
||||
| Pasteur-quadrant compatibility | **41/43 (95.3%)** |
|
||||
| Valid documents in the 1,000-work index audit | **978/1000 (97.8%)** |
|
||||
|
||||
---
|
||||
|
||||
## 1. Semantic benchmark: 50 works
|
||||
|
||||
### Reference construction
|
||||
|
||||
The reference is based on four independent model outputs:
|
||||
|
||||
- GLM-5.1
|
||||
- Gemini 3.1 Pro
|
||||
- GPT-5.6-sol
|
||||
- Sonnet 5
|
||||
|
||||
| Reference agreement | Works |
|
||||
| --------------------- | ----: |
|
||||
| Unanimous `4:0` | 28 |
|
||||
| Majority `3:1` | 13 |
|
||||
| Split `2:2` | 7 |
|
||||
| Low consensus `2:1:1` | 2 |
|
||||
|
||||
This reference measures **compatibility with a multi-model consensus**, not objective ground truth or expert adjudication.
|
||||
|
||||
### Category performance
|
||||
|
||||
| Metric | Result |
|
||||
| ------------------------------------------------- | -----------------: |
|
||||
| Coverage | **50/50 (100.0%)** |
|
||||
| Overall consensus compatibility | **43/50 (86.0%)** |
|
||||
| Strict accuracy on resolved `4:0` and `3:1` items | **35/41 (85.4%)** |
|
||||
| Unanimous `4:0` accuracy | **25/28 (89.3%)** |
|
||||
| Majority `3:1` accuracy | **10/13 (76.9%)** |
|
||||
| Acceptance on split `2:2` items | **7/7 (100.0%)** |
|
||||
| Agreement-weighted compatibility | **86.4%** |
|
||||
|
||||
### Score performance
|
||||
|
||||
The score is evaluated against the score interval produced by reference models that selected the same accepted category.
|
||||
|
||||
| Metric | Result |
|
||||
| ------------------------------------------ | ----------------: |
|
||||
| Inside the exact reference interval | **20/36 (55.6%)** |
|
||||
| Inside or within 5 points of the interval | **28/36 (77.8%)** |
|
||||
| Inside or within 10 points of the interval | **34/36 (94.4%)** |
|
||||
| Mean distance to the accepted interval | **2.86 points** |
|
||||
| Median distance to the accepted interval | **0.00 points** |
|
||||
| Correct `null` score for `non_research` | **7/7 (100.0%)** |
|
||||
|
||||
### Technical and confidence checks
|
||||
|
||||
| Metric | Result |
|
||||
| -------------------------------------------- | ---------------: |
|
||||
| JSON/schema validity | **100.0%** |
|
||||
| Category-score-quadrant consistency | **94.0%** |
|
||||
| Confidence-cap compliance | **92.0%** |
|
||||
| `signals_used` validity | **100.0%** |
|
||||
| High-confidence incompatible classifications | **5/40 (12.5%)** |
|
||||
|
||||
### Main semantic disagreements
|
||||
|
||||
There are **7 category mismatches**:
|
||||
|
||||
| Work ID | Reference agreement | Accepted category | Gemma category |
|
||||
| ------------- | ------------------- | -------------------------- | -------------------------- |
|
||||
| `W4394954564` | `low_consensus` | `basic_research` | `experimental_development` |
|
||||
| `W3194249507` | `majority_3_1` | `applied_research` | `experimental_development` |
|
||||
| `W4411148338` | `unanimous_4_0` | `basic_research` | `applied_research` |
|
||||
| `W4399679289` | `unanimous_4_0` | `applied_research` | `basic_research` |
|
||||
| `W4410930081` | `unanimous_4_0` | `applied_research` | `basic_research` |
|
||||
| `W4400540671` | `majority_3_1` | `experimental_development` | `applied_research` |
|
||||
| `W2889224812` | `majority_3_1` | `applied_research` | `basic_research` |
|
||||
|
||||
---
|
||||
|
||||
## 2. Validation audit: 1,000 indexed works
|
||||
|
||||
The index contained exactly 1,000 documents, so the audit covered the full index rather than a partial sample.
|
||||
|
||||
| Status | Count | Rate |
|
||||
| ------------------ | ------: | --------: |
|
||||
| Valid | **978** | **97.8%** |
|
||||
| Invalid | **22** | **2.2%** |
|
||||
| Missing validation | **0** | **0.0%** |
|
||||
|
||||
### Validation errors
|
||||
|
||||
| Error | Count | Share of invalid works | Share of all works |
|
||||
| ----------------------------------------------- | ----: | ---------------------: | -----------------: |
|
||||
| `applied_research_score_outside_expected_range` | 15 | 68.2% | 1.5% |
|
||||
| `basic_research_quadrant_score_mismatch` | 6 | 27.3% | 0.6% |
|
||||
| `basic_research_score_outside_expected_range` | 1 | 4.5% | 0.1% |
|
||||
|
||||
### Validity by predicted category
|
||||
|
||||
| Category | Documents | Invalid | Valid rate |
|
||||
| -------------------------- | --------: | ------: | ---------: |
|
||||
| `basic_research` | 457 | 7 | 98.5% |
|
||||
| `applied_research` | 369 | 15 | 95.9% |
|
||||
| `experimental_development` | 141 | 0 | 100.0% |
|
||||
| `non_research` | 33 | 0 | 100.0% |
|
||||
|
||||
The dominant technical issue is an `applied_research` classification with a score above the allowed maximum of 70. This accounts for **15/22 invalid documents**.
|
||||
|
||||
---
|
||||
|
||||
## Reproducibility
|
||||
|
||||
- Semantic evaluator: `evaluate_candidate_against_consensus.py`
|
||||
- Index validation audit: `audit_index_validation_1000.py`
|
||||
- Semantic result: `evaluation/gemma_consensus_evaluation/gemma4-e4b_evaluation.json`
|
||||
- Index audit result: `evaluation/index_validation_audit_1000.json`
|
||||
- Blind benchmark input: `evaluation/golden_set_50_inputs_blind_v1.json`
|
||||
|
||||
Run:
|
||||
|
||||
```bash
|
||||
python evaluate_candidate_against_consensus.py
|
||||
python audit_index_validation_1000.py
|
||||
```
|
||||
@@ -0,0 +1,606 @@
|
||||
{
|
||||
"batch_id": "golden_set_50_blind_v1",
|
||||
"n_items": 50,
|
||||
"items": [
|
||||
{
|
||||
"work_id": "W2951658790",
|
||||
"classification": {
|
||||
"primary_category": "experimental_development",
|
||||
"applied_orientation_score": 85,
|
||||
"pasteur_quadrant": "pure_applied",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "abstract", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "The paper describes the design, full prototype implementation on Raspberry Pi, and evaluation of a new security service for embedded systems, indicating experimental development of a practical tool."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W2792069854",
|
||||
"classification": {
|
||||
"primary_category": "applied_research",
|
||||
"applied_orientation_score": 60,
|
||||
"pasteur_quadrant": "pure_applied",
|
||||
"confidence": "medium",
|
||||
"signals_used": ["title", "venue", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "Without an abstract, the title and venue (European Journal of Operational Research) suggest the development of applied mathematical models specifically targeted at urban evacuation planning."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W3157145095",
|
||||
"classification": {
|
||||
"primary_category": "basic_research",
|
||||
"applied_orientation_score": 10,
|
||||
"pasteur_quadrant": "pure_basic",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "abstract", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "The work investigates the mathematical structure of the 3x + 1 problem (Collatz conjecture), aiming purely at fundamental knowledge without any specific practical application."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W4211082810",
|
||||
"classification": {
|
||||
"primary_category": "non_research",
|
||||
"applied_orientation_score": null,
|
||||
"pasteur_quadrant": "not_applicable",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "work_type"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "The item is titled 'References' and classified as a book chapter, indicating it is supporting material rather than original research."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W1970644787",
|
||||
"classification": {
|
||||
"primary_category": "applied_research",
|
||||
"applied_orientation_score": 65,
|
||||
"pasteur_quadrant": "pure_applied",
|
||||
"confidence": "medium",
|
||||
"signals_used": ["title", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "Although the abstract is missing, the title clearly states the development of nanocomposites specifically designed for a practical aim as an advanced MRI contrast agent."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W4389566044",
|
||||
"classification": {
|
||||
"primary_category": "applied_research",
|
||||
"applied_orientation_score": 60,
|
||||
"pasteur_quadrant": "pure_applied",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "abstract", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "The study formulates a mathematical program aimed specifically at finding optimal policies for controlling a pandemic outbreak and minimizing economic and humanitarian damage."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W4387698137",
|
||||
"classification": {
|
||||
"primary_category": "applied_research",
|
||||
"applied_orientation_score": 65,
|
||||
"pasteur_quadrant": "pure_applied",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "abstract", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "The work presents TOMOSCO, a topic modelling framework designed with the specific practical aim of identifying scientific collaborations and evaluating it on bibliometric data."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W4393082582",
|
||||
"classification": {
|
||||
"primary_category": "basic_research",
|
||||
"applied_orientation_score": 40,
|
||||
"pasteur_quadrant": "use_inspired_basic",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "abstract", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "The study conducts an original investigation into the microstructural development and fundamental properties of Al-doped ZnO during sintering, motivated by materials science applications."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W4415655215",
|
||||
"classification": {
|
||||
"primary_category": "applied_research",
|
||||
"applied_orientation_score": 55,
|
||||
"pasteur_quadrant": "pure_applied",
|
||||
"confidence": "medium",
|
||||
"signals_used": ["title", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "The title suggests the development of a specific algorithmic approach for mining data from websites to fulfill the practical task of identifying organizational structures."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W2330632819",
|
||||
"classification": {
|
||||
"primary_category": "experimental_development",
|
||||
"applied_orientation_score": 80,
|
||||
"pasteur_quadrant": "pure_applied",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "abstract", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "The research synthesizes a stable ink and uses it to successfully print structures on glass substrates via ink-jet printing, demonstrating prototyping for printable electronics."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W4415031709",
|
||||
"classification": {
|
||||
"primary_category": "experimental_development",
|
||||
"applied_orientation_score": 75,
|
||||
"pasteur_quadrant": "pure_applied",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "abstract", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "The authors implement a targeted fuzzing approach by extending the Rust compiler toolchain and evaluating its performance in generating vulnerability-triggering inputs."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W3022958510",
|
||||
"classification": {
|
||||
"primary_category": "applied_research",
|
||||
"applied_orientation_score": 60,
|
||||
"pasteur_quadrant": "pure_applied",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "abstract", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "The paper develops an optimization model and an exact solution method aimed at the specific practical challenge of disaster road clearance and relief distribution."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W7138882770",
|
||||
"classification": {
|
||||
"primary_category": "basic_research",
|
||||
"applied_orientation_score": 35,
|
||||
"pasteur_quadrant": "use_inspired_basic",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "abstract", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "This is a bibliometric review mapping the field of AI for wildfire management, gaining fundamental knowledge about the structure of an applied research domain."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W7138856433",
|
||||
"classification": {
|
||||
"primary_category": "basic_research",
|
||||
"applied_orientation_score": 35,
|
||||
"pasteur_quadrant": "use_inspired_basic",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "abstract", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "The study aims at a fundamental understanding of the underlying transformation mechanisms of nanoparticles during chemical vapor synthesis, motivated by materials optimization."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W2405896199",
|
||||
"classification": {
|
||||
"primary_category": "non_research",
|
||||
"applied_orientation_score": null,
|
||||
"pasteur_quadrant": "not_applicable",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "work_type"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "The item is explicitly labeled as an editorial and introduction to a special issue, serving as supporting front-matter rather than original research."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W4400944359",
|
||||
"classification": {
|
||||
"primary_category": "basic_research",
|
||||
"applied_orientation_score": 30,
|
||||
"pasteur_quadrant": "use_inspired_basic",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "abstract", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "The paper performs a bibliometric analysis to understand the fundamental structure of data ecosystem research, establishing a research agenda for the field."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W2931917074",
|
||||
"classification": {
|
||||
"primary_category": "experimental_development",
|
||||
"applied_orientation_score": 75,
|
||||
"pasteur_quadrant": "pure_applied",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "abstract", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "The study follows design science research to develop and evaluate an Augmented Reality head-mounted display prototype for decision-making in Enterprise Architecture."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W4403369135",
|
||||
"classification": {
|
||||
"primary_category": "applied_research",
|
||||
"applied_orientation_score": 60,
|
||||
"pasteur_quadrant": "pure_applied",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "abstract", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "The authors apply machine learning to integrate data and classify potential startup founders among academics, aiming directly at improving the practical university scouting process."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W4411506896",
|
||||
"classification": {
|
||||
"primary_category": "applied_research",
|
||||
"applied_orientation_score": 65,
|
||||
"pasteur_quadrant": "pure_applied",
|
||||
"confidence": "medium",
|
||||
"signals_used": ["title", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "Despite the lack of an abstract, the title signifies the creation of a specialized compiler designed to harden smart contracts against vulnerabilities, a practical software engineering aim."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W3153370821",
|
||||
"classification": {
|
||||
"primary_category": "experimental_development",
|
||||
"applied_orientation_score": 85,
|
||||
"pasteur_quadrant": "pure_applied",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "abstract", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "The paper introduces EVMPatch, features a proof-of-concept implementation that automatically rewrites/hardens smart contracts, and demonstrates its practicality via extensive real-world evaluation."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W3038557399",
|
||||
"classification": {
|
||||
"primary_category": "non_research",
|
||||
"applied_orientation_score": null,
|
||||
"pasteur_quadrant": "not_applicable",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "work_type"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "The work is explicitly labeled as an erratum correcting a previously published paper, lacking independent research content."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W4394954564",
|
||||
"classification": {
|
||||
"primary_category": "basic_research",
|
||||
"applied_orientation_score": 40,
|
||||
"pasteur_quadrant": "use_inspired_basic",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "abstract", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "The study elucidates the fundamental mechanism of unidirectional hole transfer in specific heterostructures, which is motivated by improving photodetector applications."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W4409545335",
|
||||
"classification": {
|
||||
"primary_category": "basic_research",
|
||||
"applied_orientation_score": 35,
|
||||
"pasteur_quadrant": "use_inspired_basic",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "abstract", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "This is a bibliometric synthesis outlining the status, structure, and future research gaps regarding artificial intelligence in smart city environments."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W7133313486",
|
||||
"classification": {
|
||||
"primary_category": "experimental_development",
|
||||
"applied_orientation_score": 75,
|
||||
"pasteur_quadrant": "pure_applied",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "abstract", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "The paper demonstrates the feasibility of using a calibrated high-speed camera setup for practical operando temperature measurements during the laser sintering process."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W4394855570",
|
||||
"classification": {
|
||||
"primary_category": "non_research",
|
||||
"applied_orientation_score": null,
|
||||
"pasteur_quadrant": "not_applicable",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "work_type"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "The item is a correction to a previously published article and therefore qualifies as non-research support material."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W7140663985",
|
||||
"classification": {
|
||||
"primary_category": "applied_research",
|
||||
"applied_orientation_score": 65,
|
||||
"pasteur_quadrant": "pure_applied",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "abstract", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "The work presents a framework (Walma) leveraging machine learning to detect memory corruption in WebAssembly and evaluates its detection accuracy and performance overhead."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W4226316500",
|
||||
"classification": {
|
||||
"primary_category": "experimental_development",
|
||||
"applied_orientation_score": 80,
|
||||
"pasteur_quadrant": "pure_applied",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "abstract", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "The authors introduce a practical smart contract compiler that automatically inserts security checks and validate its capability by preventing attack transactions in a large-scale real-world evaluation."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W4289778746",
|
||||
"classification": {
|
||||
"primary_category": "applied_research",
|
||||
"applied_orientation_score": 55,
|
||||
"pasteur_quadrant": "pure_applied",
|
||||
"confidence": "medium",
|
||||
"signals_used": ["title", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "Without an abstract, the title points to the development of a model formulation directly targeting an industry-relevant optimization and packing problem."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W3194249507",
|
||||
"classification": {
|
||||
"primary_category": "applied_research",
|
||||
"applied_orientation_score": 60,
|
||||
"pasteur_quadrant": "pure_applied",
|
||||
"confidence": "medium",
|
||||
"signals_used": ["title", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "The paper aims to develop a framework for evaluating and comparing software fuzzers, which is an applied research endeavor targeting software testing practices."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W4411446448",
|
||||
"classification": {
|
||||
"primary_category": "basic_research",
|
||||
"applied_orientation_score": 35,
|
||||
"pasteur_quadrant": "use_inspired_basic",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "abstract", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "This bibliometric analysis maps the academic landscape of virtual coaches to establish a comprehensive overview and propose a future research agenda."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W7140643534",
|
||||
"classification": {
|
||||
"primary_category": "experimental_development",
|
||||
"applied_orientation_score": 75,
|
||||
"pasteur_quadrant": "pure_applied",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "abstract", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "The study designs HammerWatch and implements it on commodity hardware to detect microarchitectural Rowhammer attacks, demonstrating an implemented, detection-oriented technical artifact."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W4411449729",
|
||||
"classification": {
|
||||
"primary_category": "applied_research",
|
||||
"applied_orientation_score": 60,
|
||||
"pasteur_quadrant": "pure_applied",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "abstract", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "The paper formulates a mixed integer linear model specifically aimed at optimizing practical logistical problems like premarshalling, block relocation, and stack loading."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W3207748302",
|
||||
"classification": {
|
||||
"primary_category": "basic_research",
|
||||
"applied_orientation_score": 35,
|
||||
"pasteur_quadrant": "use_inspired_basic",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "abstract", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "The paper is a comprehensive bibliometric review of the data governance field intended to explore its evolution and point out future research strands."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W4411148338",
|
||||
"classification": {
|
||||
"primary_category": "basic_research",
|
||||
"applied_orientation_score": 40,
|
||||
"pasteur_quadrant": "use_inspired_basic",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "abstract", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "The authors perform an original experimental investigation into the structural evolution and deagglomeration dynamics of nanoparticles, driven by materials engineering motivations."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W4399679289",
|
||||
"classification": {
|
||||
"primary_category": "applied_research",
|
||||
"applied_orientation_score": 50,
|
||||
"pasteur_quadrant": "pure_applied",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "abstract", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "The work explores system-level effects (bitflips) of Non-Volatile Memories (NVMs) built on memristors, targeting practical concerns in computer hardware design."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W4206963266",
|
||||
"classification": {
|
||||
"primary_category": "basic_research",
|
||||
"applied_orientation_score": 20,
|
||||
"pasteur_quadrant": "pure_basic",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "abstract", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "The paper proposes a theoretical process model and quality criteria to advance the philosophy and cumulative nature of Design Science Research itself."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W4243361268",
|
||||
"classification": {
|
||||
"primary_category": "non_research",
|
||||
"applied_orientation_score": null,
|
||||
"pasteur_quadrant": "not_applicable",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "work_type"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "Appendices are explicitly listed as supporting materials and do not represent a standalone research contribution."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W4384502134",
|
||||
"classification": {
|
||||
"primary_category": "applied_research",
|
||||
"applied_orientation_score": 55,
|
||||
"pasteur_quadrant": "pure_applied",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "abstract", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "This review summarizes recent methodological advances in the chemical vapor synthesis process with an explicit focus on materials development and practical process design."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W4235102872",
|
||||
"classification": {
|
||||
"primary_category": "non_research",
|
||||
"applied_orientation_score": null,
|
||||
"pasteur_quadrant": "not_applicable",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "work_type"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "The item is simply titled 'Discussion and Conclusion' and categorized as a book chapter, acting as structural supporting text rather than an independent research piece."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W4410919853",
|
||||
"classification": {
|
||||
"primary_category": "applied_research",
|
||||
"applied_orientation_score": 60,
|
||||
"pasteur_quadrant": "pure_applied",
|
||||
"confidence": "medium",
|
||||
"signals_used": ["title", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "The title indicates the design of a practical diagnosis and intervention platform tailored for the mental health of knowledge workers."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W4410623858",
|
||||
"classification": {
|
||||
"primary_category": "applied_research",
|
||||
"applied_orientation_score": 65,
|
||||
"pasteur_quadrant": "pure_applied",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "abstract", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "The paper solves a specific practical problem (truck-drone delivery routing) by developing and validating a mixed-integer linear programming model for geometric trajectory planning."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W4386126998",
|
||||
"classification": {
|
||||
"primary_category": "basic_research",
|
||||
"applied_orientation_score": 30,
|
||||
"pasteur_quadrant": "pure_basic",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "abstract", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "The research is fundamentally focused on acquiring new knowledge regarding the local, crystal, and micro-structure of ultra-small SnO2 nanoparticles."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W4411523072",
|
||||
"classification": {
|
||||
"primary_category": "applied_research",
|
||||
"applied_orientation_score": 65,
|
||||
"pasteur_quadrant": "pure_applied",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "abstract", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "The paper presents Wemby, an approach to analyze WebAssembly-powered websites for memory corruption errors using fine-grained binary instrumentation and fuzzing."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W2903880611",
|
||||
"classification": {
|
||||
"primary_category": "experimental_development",
|
||||
"applied_orientation_score": 75,
|
||||
"pasteur_quadrant": "pure_applied",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "abstract", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "The authors introduce Scadman, implement it on a real-world water treatment testbed, and evaluate its efficacy in detecting cyber-physical attacks."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W4410930081",
|
||||
"classification": {
|
||||
"primary_category": "applied_research",
|
||||
"applied_orientation_score": 55,
|
||||
"pasteur_quadrant": "pure_applied",
|
||||
"confidence": "medium",
|
||||
"signals_used": ["title", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "The title points to the development of design principles for stakeholder management in ports, indicating research focused on a specific practical and organizational aim."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W4301212620",
|
||||
"classification": {
|
||||
"primary_category": "non_research",
|
||||
"applied_orientation_score": null,
|
||||
"pasteur_quadrant": "not_applicable",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "work_type"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "The item is simply titled 'Introduction' within a book structure, which is considered non-research supporting material."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W4365601033",
|
||||
"classification": {
|
||||
"primary_category": "applied_research",
|
||||
"applied_orientation_score": 68,
|
||||
"pasteur_quadrant": "pure_applied",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "abstract", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "The paper introduces EF/CF, a transpilation-based high-performance fuzzer for smart contracts, applying advanced software engineering methods to improve vulnerability detection."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W4400540671",
|
||||
"classification": {
|
||||
"primary_category": "experimental_development",
|
||||
"applied_orientation_score": 75,
|
||||
"pasteur_quadrant": "pure_applied",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "abstract", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "Researchers developed a smartphone application for device attestation and evaluated it in a qualitative study with A/B testing to understand its practical impact on user trust."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W2889224812",
|
||||
"classification": {
|
||||
"primary_category": "applied_research",
|
||||
"applied_orientation_score": 65,
|
||||
"pasteur_quadrant": "pure_applied",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "abstract", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "The work presents novel exploitation techniques against Intel SGX to demonstrate cybersecurity vulnerabilities, which corresponds to practical applied software security research."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W3184661191",
|
||||
"classification": {
|
||||
"primary_category": "basic_research",
|
||||
"applied_orientation_score": 35,
|
||||
"pasteur_quadrant": "use_inspired_basic",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "abstract", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "This paper overviews a priority program's philosophy and scientific objectives involving the fundamental interplay between hardware security and emerging nano-electronics."
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,235 @@
|
||||
{
|
||||
"evaluation": {
|
||||
"candidate_model": "gemma4-e4b",
|
||||
"source_index": "work-classifications",
|
||||
"reference_models": ["glm-5.1", "gemini-3.1-pro", "gpt-5.6-sol", "sonnet5"],
|
||||
"works": 50,
|
||||
"interpretation": "Compatibility with a four-model consensus reference, not objective ground truth."
|
||||
},
|
||||
"reference_agreement": {
|
||||
"majority_3_1": 13,
|
||||
"unanimous_4_0": 28,
|
||||
"split_2_2": 7,
|
||||
"low_consensus": 2
|
||||
},
|
||||
"results": {
|
||||
"coverage": {
|
||||
"matched": 50,
|
||||
"total": 50,
|
||||
"rate": 1.0
|
||||
},
|
||||
"category": {
|
||||
"overall_consensus_compatible": {
|
||||
"matched": 43,
|
||||
"total": 50,
|
||||
"rate": 0.86
|
||||
},
|
||||
"strict_resolved_items": {
|
||||
"matched": 35,
|
||||
"total": 41,
|
||||
"rate": 0.8536585365853658
|
||||
},
|
||||
"unanimous_items": {
|
||||
"matched": 25,
|
||||
"total": 28,
|
||||
"rate": 0.8928571428571429
|
||||
},
|
||||
"majority_3_1_items": {
|
||||
"matched": 10,
|
||||
"total": 13,
|
||||
"rate": 0.7692307692307693
|
||||
},
|
||||
"split_2_2_items": {
|
||||
"matched": 7,
|
||||
"total": 7,
|
||||
"rate": 1.0
|
||||
},
|
||||
"low_consensus_items": {
|
||||
"matched": 1,
|
||||
"total": 2,
|
||||
"rate": 0.5
|
||||
},
|
||||
"agreement_weighted_rate": 0.863905325443787
|
||||
},
|
||||
"score": {
|
||||
"numeric_items": 36,
|
||||
"inside_reference_range": 20,
|
||||
"outside_reference_range": 16,
|
||||
"inside_reference_range_rate": 0.5555555555555556,
|
||||
"mean_distance_to_range": 2.861111111111111,
|
||||
"median_distance_to_range": 0.0,
|
||||
"mean_absolute_error_to_reference_median": 6.583333333333333,
|
||||
"non_research_score_null": {
|
||||
"matched": 7,
|
||||
"total": 7,
|
||||
"rate": 1.0
|
||||
}
|
||||
},
|
||||
"quadrant": {
|
||||
"matched": 41,
|
||||
"total": 43,
|
||||
"rate": 0.9534883720930233
|
||||
},
|
||||
"technical": {
|
||||
"index_validation": {
|
||||
"valid": 47,
|
||||
"invalid": 3,
|
||||
"valid_rate": 0.94
|
||||
},
|
||||
"full_evaluator_validation": {
|
||||
"valid": 43,
|
||||
"invalid": 7,
|
||||
"valid_rate": 0.86
|
||||
},
|
||||
"confidence_cap_compliance_rate": 0.92
|
||||
},
|
||||
"confidence": {
|
||||
"compatibility_by_confidence": {
|
||||
"high": {
|
||||
"count": 40,
|
||||
"compatible": 35,
|
||||
"compatibility_rate": 0.875
|
||||
},
|
||||
"medium": {
|
||||
"count": 8,
|
||||
"compatible": 6,
|
||||
"compatibility_rate": 0.75
|
||||
},
|
||||
"low": {
|
||||
"count": 2,
|
||||
"compatible": 2,
|
||||
"compatibility_rate": 1.0
|
||||
}
|
||||
},
|
||||
"high_confidence_incompatibility_rate": 0.125
|
||||
}
|
||||
},
|
||||
"issues": {
|
||||
"category_mismatches": [
|
||||
{
|
||||
"work_id": "W4394954564",
|
||||
"title": "Photogating through Unidirectional Charge Carrier Funneling in Two-Dimensional Transition Metal Dichalcogenide/Perovskite Heterostructure Photodetectors",
|
||||
"agreement_level": "low_consensus",
|
||||
"accepted_categories": ["basic_research"],
|
||||
"candidate_category": "experimental_development",
|
||||
"candidate_score": 92,
|
||||
"candidate_confidence": "high"
|
||||
},
|
||||
{
|
||||
"work_id": "W3194249507",
|
||||
"title": "My Fuzzer Beats Them All! Developing a Framework for Fair Evaluation and Comparison of Fuzzers",
|
||||
"agreement_level": "majority_3_1",
|
||||
"accepted_categories": ["applied_research"],
|
||||
"candidate_category": "experimental_development",
|
||||
"candidate_score": 85,
|
||||
"candidate_confidence": "medium"
|
||||
},
|
||||
{
|
||||
"work_id": "W4411148338",
|
||||
"title": "In situ probing of structure and deagglomeration of SnO2 colloids via small-angle X-ray scattering",
|
||||
"agreement_level": "unanimous_4_0",
|
||||
"accepted_categories": ["basic_research"],
|
||||
"candidate_category": "applied_research",
|
||||
"candidate_score": 65,
|
||||
"candidate_confidence": "high"
|
||||
},
|
||||
{
|
||||
"work_id": "W4399679289",
|
||||
"title": "NVM-Flip: Non-Volatile-Memory BitFlips on the System Level",
|
||||
"agreement_level": "unanimous_4_0",
|
||||
"accepted_categories": ["applied_research"],
|
||||
"candidate_category": "basic_research",
|
||||
"candidate_score": 30,
|
||||
"candidate_confidence": "high"
|
||||
},
|
||||
{
|
||||
"work_id": "W4410930081",
|
||||
"title": "Anchoring Collaboration: Design Principles for Stakeholder Management in Ports",
|
||||
"agreement_level": "unanimous_4_0",
|
||||
"accepted_categories": ["applied_research"],
|
||||
"candidate_category": "basic_research",
|
||||
"candidate_score": 35,
|
||||
"candidate_confidence": "medium"
|
||||
},
|
||||
{
|
||||
"work_id": "W4400540671",
|
||||
"title": "Building trust in remote attestation through transparency – a qualitative user study on observable attestation",
|
||||
"agreement_level": "majority_3_1",
|
||||
"accepted_categories": ["experimental_development"],
|
||||
"candidate_category": "applied_research",
|
||||
"candidate_score": 70,
|
||||
"candidate_confidence": "high"
|
||||
},
|
||||
{
|
||||
"work_id": "W2889224812",
|
||||
"title": "The guard's dilemma: efficient code-reuse attacks against intel SGX",
|
||||
"agreement_level": "majority_3_1",
|
||||
"accepted_categories": ["applied_research"],
|
||||
"candidate_category": "basic_research",
|
||||
"candidate_score": 35,
|
||||
"candidate_confidence": "high"
|
||||
}
|
||||
],
|
||||
"technical_issues": [
|
||||
{
|
||||
"work_id": "W4211082810",
|
||||
"title": "References",
|
||||
"errors": ["confidence_exceeds_context_cap"],
|
||||
"indexed_validation_valid": true,
|
||||
"indexed_validation_errors": []
|
||||
},
|
||||
{
|
||||
"work_id": "W1970644787",
|
||||
"title": "Blocked-micropores, surface functionalized, bio-compatible and silica-coated iron oxide nanocomposites as advanced MRI contrast agent",
|
||||
"errors": ["applied_research_score_outside_expected_range"],
|
||||
"indexed_validation_valid": false,
|
||||
"indexed_validation_errors": [
|
||||
"applied_research_score_outside_expected_range"
|
||||
]
|
||||
},
|
||||
{
|
||||
"work_id": "W4387698137",
|
||||
"title": "Exploiting Topic Modelling for the Identification of Untapped Scientific Collaborations",
|
||||
"errors": ["applied_research_score_outside_expected_range"],
|
||||
"indexed_validation_valid": false,
|
||||
"indexed_validation_errors": [
|
||||
"applied_research_score_outside_expected_range"
|
||||
]
|
||||
},
|
||||
{
|
||||
"work_id": "W2405896199",
|
||||
"title": "Editorial: Introduction to the Special Issue on Information Modeling and Ontologies.",
|
||||
"errors": ["confidence_exceeds_context_cap"],
|
||||
"indexed_validation_valid": true,
|
||||
"indexed_validation_errors": []
|
||||
},
|
||||
{
|
||||
"work_id": "W4403369135",
|
||||
"title": "Discovering potential founders within academic institutions",
|
||||
"errors": ["applied_research_score_outside_expected_range"],
|
||||
"indexed_validation_valid": false,
|
||||
"indexed_validation_errors": [
|
||||
"applied_research_score_outside_expected_range"
|
||||
]
|
||||
},
|
||||
{
|
||||
"work_id": "W4394855570",
|
||||
"title": "Correction to: Making Sense of Projects—Developing Project Portfolio Management Capabilities",
|
||||
"errors": ["confidence_exceeds_context_cap"],
|
||||
"indexed_validation_valid": true,
|
||||
"indexed_validation_errors": []
|
||||
},
|
||||
{
|
||||
"work_id": "W4243361268",
|
||||
"title": "Appendices",
|
||||
"errors": ["confidence_exceeds_context_cap"],
|
||||
"indexed_validation_valid": true,
|
||||
"indexed_validation_errors": []
|
||||
}
|
||||
]
|
||||
},
|
||||
"assessment": {
|
||||
"overall": "good",
|
||||
"summary": "Gemma is strongly aligned with the four-model reference. Weaknesses are concentrated in boundary cases, applied versus experimental distinctions, and confidence caps."
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,613 @@
|
||||
{
|
||||
"batch_id": "golden_set_50_blind_v1",
|
||||
"n_items": 50,
|
||||
"items": [
|
||||
{
|
||||
"work_id": "W2951658790",
|
||||
"classification": {
|
||||
"primary_category": "applied_research",
|
||||
"applied_orientation_score": 65,
|
||||
"pasteur_quadrant": "pure_applied",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "abstract", "work_type", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "Presents a design and prototype implementation of a control-flow attestation system directed at a specific practical aim in IoT security."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W2792069854",
|
||||
"classification": {
|
||||
"primary_category": "applied_research",
|
||||
"applied_orientation_score": 60,
|
||||
"pasteur_quadrant": "pure_applied",
|
||||
"confidence": "medium",
|
||||
"signals_used": ["title", "venue", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "Optimization model for urban evacuation planning targets a specific practical aim; no abstract limits confidence."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W3157145095",
|
||||
"classification": {
|
||||
"primary_category": "basic_research",
|
||||
"applied_orientation_score": 5,
|
||||
"pasteur_quadrant": "pure_basic",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "abstract", "venue", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "Investigates the mathematical structure of the Collatz conjecture to acquire fundamental knowledge without any application in view."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W4211082810",
|
||||
"classification": {
|
||||
"primary_category": "non_research",
|
||||
"applied_orientation_score": null,
|
||||
"pasteur_quadrant": "not_applicable",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "work_type"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "This item is a references section of a book chapter, which is non-research supporting material."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W1970644787",
|
||||
"classification": {
|
||||
"primary_category": "applied_research",
|
||||
"applied_orientation_score": 65,
|
||||
"pasteur_quadrant": "pure_applied",
|
||||
"confidence": "medium",
|
||||
"signals_used": ["title", "venue", "topics", "funders"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "Developing nanocomposites as an advanced MRI contrast agent indicates a specific practical aim; no abstract limits confidence."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W4389566044",
|
||||
"classification": {
|
||||
"primary_category": "applied_research",
|
||||
"applied_orientation_score": 65,
|
||||
"pasteur_quadrant": "pure_applied",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "abstract", "venue", "topics", "funders"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "Mathematical programming model targeting the specific practical aim of minimizing economic and humanitarian damage during a pandemic."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W4387698137",
|
||||
"classification": {
|
||||
"primary_category": "applied_research",
|
||||
"applied_orientation_score": 65,
|
||||
"pasteur_quadrant": "pure_applied",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "abstract", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "Develops and evaluates a topic modelling framework directed towards the specific practical aim of identifying scientific collaborators."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W4393082582",
|
||||
"classification": {
|
||||
"primary_category": "basic_research",
|
||||
"applied_orientation_score": 35,
|
||||
"pasteur_quadrant": "use_inspired_basic",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "abstract", "venue", "topics", "funders"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "Investigates fundamental microstructural development mechanisms in sintered ZnO, motivated by eventual material design applications."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W4415655215",
|
||||
"classification": {
|
||||
"primary_category": "applied_research",
|
||||
"applied_orientation_score": 60,
|
||||
"pasteur_quadrant": "pure_applied",
|
||||
"confidence": "medium",
|
||||
"signals_used": ["title", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "Hybrid data mining approach targeting the specific practical aim of extracting organizational structure; no abstract limits confidence."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W2330632819",
|
||||
"classification": {
|
||||
"primary_category": "experimental_development",
|
||||
"applied_orientation_score": 75,
|
||||
"pasteur_quadrant": "pure_applied",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "abstract", "venue", "topics", "funders"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "Synthesis and successful ink-jet printing of silicon nanoparticles for printable electronics constitutes prototyping and process development."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W4415031709",
|
||||
"classification": {
|
||||
"primary_category": "applied_research",
|
||||
"applied_orientation_score": 65,
|
||||
"pasteur_quadrant": "pure_applied",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "abstract", "work_type", "topics", "funders"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "Develops and implements a targeted fuzzing approach for the specific practical aim of detecting vulnerabilities in unsafe Rust code."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W3022958510",
|
||||
"classification": {
|
||||
"primary_category": "applied_research",
|
||||
"applied_orientation_score": 65,
|
||||
"pasteur_quadrant": "pure_applied",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "abstract", "venue", "topics", "funders"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "Develops an exact solution method and mathematical model for the practical aim of disaster road clearance and relief distribution."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W7138882770",
|
||||
"classification": {
|
||||
"primary_category": "applied_research",
|
||||
"applied_orientation_score": 55,
|
||||
"pasteur_quadrant": "pure_applied",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "abstract", "venue", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "Bibliometric review of an application-oriented research field (AI for wildfire management); classifies based on reviewed body of work."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W7138856433",
|
||||
"classification": {
|
||||
"primary_category": "basic_research",
|
||||
"applied_orientation_score": 35,
|
||||
"pasteur_quadrant": "use_inspired_basic",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "abstract", "venue", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "Investigates fundamental (trans-)formation mechanisms of nanocrystals, motivated by the practical aim of optimizing particle characteristics."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W2405896199",
|
||||
"classification": {
|
||||
"primary_category": "non_research",
|
||||
"applied_orientation_score": null,
|
||||
"pasteur_quadrant": "not_applicable",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "work_type"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "Editorial introducing a special issue, classified as non-research supporting material."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W4400944359",
|
||||
"classification": {
|
||||
"primary_category": "applied_research",
|
||||
"applied_orientation_score": 55,
|
||||
"pasteur_quadrant": "pure_applied",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "abstract", "venue", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "Bibliometric study reviewing data ecosystem research, an applied field; classification follows the reviewed body of work."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W2931917074",
|
||||
"classification": {
|
||||
"primary_category": "experimental_development",
|
||||
"applied_orientation_score": 75,
|
||||
"pasteur_quadrant": "pure_applied",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "abstract", "venue", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "Designs, develops, and evaluates an AR head-mounted display prototype for enterprise architecture decision-making."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W4403369135",
|
||||
"classification": {
|
||||
"primary_category": "applied_research",
|
||||
"applied_orientation_score": 65,
|
||||
"pasteur_quadrant": "pure_applied",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "abstract", "venue", "topics", "funders"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "Develops a machine learning approach for the specific practical aim of identifying potential startup founders in academia."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W4411506896",
|
||||
"classification": {
|
||||
"primary_category": "applied_research",
|
||||
"applied_orientation_score": 65,
|
||||
"pasteur_quadrant": "pure_applied",
|
||||
"confidence": "medium",
|
||||
"signals_used": ["title", "venue", "work_type", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "A compiler for smart contract hardening targets a specific practical aim; lack of abstract limits confidence."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W3153370821",
|
||||
"classification": {
|
||||
"primary_category": "experimental_development",
|
||||
"applied_orientation_score": 80,
|
||||
"pasteur_quadrant": "pure_applied",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "abstract", "venue", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "Implements and evaluates a framework for automatically patching faulty smart contracts, demonstrating practical feasibility and deployment readiness."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W3038557399",
|
||||
"classification": {
|
||||
"primary_category": "non_research",
|
||||
"applied_orientation_score": null,
|
||||
"pasteur_quadrant": "not_applicable",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "work_type"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "Erratum correcting a previous publication, classified as non-research."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W4394954564",
|
||||
"classification": {
|
||||
"primary_category": "basic_research",
|
||||
"applied_orientation_score": 40,
|
||||
"pasteur_quadrant": "use_inspired_basic",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "abstract", "venue", "topics", "funders"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "Investigates fundamental charge carrier transfer mechanisms in photodetectors, motivated by improving device performance."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W4409545335",
|
||||
"classification": {
|
||||
"primary_category": "applied_research",
|
||||
"applied_orientation_score": 55,
|
||||
"pasteur_quadrant": "pure_applied",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "abstract", "venue", "topics", "funders"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "Bibliometric analysis of AI in smart cities; classifies based on the applied orientation of the reviewed body of work."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W7133313486",
|
||||
"classification": {
|
||||
"primary_category": "applied_research",
|
||||
"applied_orientation_score": 65,
|
||||
"pasteur_quadrant": "pure_applied",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "abstract", "venue", "topics", "funders"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "Develops and demonstrates a measurement technique for laser sintering, directed towards the practical aim of operando temperature monitoring."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W4394855570",
|
||||
"classification": {
|
||||
"primary_category": "non_research",
|
||||
"applied_orientation_score": null,
|
||||
"pasteur_quadrant": "not_applicable",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "work_type"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "Correction notice to a previously published article, classified as non-research."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W7140663985",
|
||||
"classification": {
|
||||
"primary_category": "applied_research",
|
||||
"applied_orientation_score": 65,
|
||||
"pasteur_quadrant": "pure_applied",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "abstract", "venue", "work_type", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "Develops and evaluates a machine learning framework for the practical aim of detecting memory corruption in WebAssembly."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W4226316500",
|
||||
"classification": {
|
||||
"primary_category": "applied_research",
|
||||
"applied_orientation_score": 65,
|
||||
"pasteur_quadrant": "pure_applied",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "abstract", "venue", "work_type", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "Proposes and evaluates a practical compiler that automatically hardens smart contracts against vulnerabilities, fulfilling a specific practical aim."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W4289778746",
|
||||
"classification": {
|
||||
"primary_category": "applied_research",
|
||||
"applied_orientation_score": 65,
|
||||
"pasteur_quadrant": "pure_applied",
|
||||
"confidence": "medium",
|
||||
"signals_used": ["title", "venue", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "Extended model for strip packing targeting industry-relevant aspects; classified as applied research. No abstract limits confidence."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W3194249507",
|
||||
"classification": {
|
||||
"primary_category": "applied_research",
|
||||
"applied_orientation_score": 60,
|
||||
"pasteur_quadrant": "pure_applied",
|
||||
"confidence": "medium",
|
||||
"signals_used": ["title", "venue", "work_type", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "Develops a framework for fuzzer evaluation, serving a specific practical aim in software testing. No abstract limits confidence."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W4411446448",
|
||||
"classification": {
|
||||
"primary_category": "applied_research",
|
||||
"applied_orientation_score": 55,
|
||||
"pasteur_quadrant": "pure_applied",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "abstract", "venue", "topics", "funders"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "Bibliometric review of virtual coach research, an applied field; classifies based on the orientation of the reviewed literature."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W7140643534",
|
||||
"classification": {
|
||||
"primary_category": "applied_research",
|
||||
"applied_orientation_score": 65,
|
||||
"pasteur_quadrant": "pure_applied",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "abstract", "venue", "work_type", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "Proposes and implements a remote attestation protocol for detecting microarchitectural attacks, directed at a specific practical security aim."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W4411449729",
|
||||
"classification": {
|
||||
"primary_category": "applied_research",
|
||||
"applied_orientation_score": 65,
|
||||
"pasteur_quadrant": "pure_applied",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "abstract", "venue", "topics", "funders"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "Proposes a mixed integer linear model for specific practical optimization problems in storage and container terminals."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W3207748302",
|
||||
"classification": {
|
||||
"primary_category": "applied_research",
|
||||
"applied_orientation_score": 55,
|
||||
"pasteur_quadrant": "pure_applied",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "abstract", "venue", "topics", "funders"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "Bibliometric review of data governance research, an applied field; classifies based on the orientation of the reviewed literature."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W4411148338",
|
||||
"classification": {
|
||||
"primary_category": "basic_research",
|
||||
"applied_orientation_score": 40,
|
||||
"pasteur_quadrant": "use_inspired_basic",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "abstract", "venue", "topics", "funders"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "Investigates fundamental deagglomeration dynamics and structural mechanisms, motivated by the practical aim of improving microstructural quality."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W4399679289",
|
||||
"classification": {
|
||||
"primary_category": "applied_research",
|
||||
"applied_orientation_score": 60,
|
||||
"pasteur_quadrant": "pure_applied",
|
||||
"confidence": "medium",
|
||||
"signals_used": ["title", "abstract", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "Focuses on non-volatile memory bitflips at the system level, a practical security topic; abstract lacks specific aim, limiting confidence."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W4206963266",
|
||||
"classification": {
|
||||
"primary_category": "basic_research",
|
||||
"applied_orientation_score": 35,
|
||||
"pasteur_quadrant": "use_inspired_basic",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "abstract", "venue", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "Proposes a theoretical process model for scientific progress in DSR, aiming to establish foundational knowledge motivated by practical impact."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W4243361268",
|
||||
"classification": {
|
||||
"primary_category": "non_research",
|
||||
"applied_orientation_score": null,
|
||||
"pasteur_quadrant": "not_applicable",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "work_type"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "Item is an appendix of a book chapter, which is non-research supporting material."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W4384502134",
|
||||
"classification": {
|
||||
"primary_category": "applied_research",
|
||||
"applied_orientation_score": 55,
|
||||
"pasteur_quadrant": "pure_applied",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "abstract", "venue", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "Review of methodological advances for chemical vapor synthesis directed towards the practical aim of materials and process development."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W4235102872",
|
||||
"classification": {
|
||||
"primary_category": "non_research",
|
||||
"applied_orientation_score": null,
|
||||
"pasteur_quadrant": "not_applicable",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "work_type"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "Item is a discussion and conclusion section of a book, classified as non-research supporting material."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W4410919853",
|
||||
"classification": {
|
||||
"primary_category": "applied_research",
|
||||
"applied_orientation_score": 65,
|
||||
"pasteur_quadrant": "pure_applied",
|
||||
"confidence": "medium",
|
||||
"signals_used": ["title", "venue", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "Designing a diagnosis and intervention platform targets a specific practical aim; no abstract limits confidence."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W4410623858",
|
||||
"classification": {
|
||||
"primary_category": "applied_research",
|
||||
"applied_orientation_score": 65,
|
||||
"pasteur_quadrant": "pure_applied",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "abstract", "venue", "topics", "funders"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "Develops a mixed-integer linear program for drone trajectory planning directed at the practical aim of last-mile delivery."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W4386126998",
|
||||
"classification": {
|
||||
"primary_category": "basic_research",
|
||||
"applied_orientation_score": 35,
|
||||
"pasteur_quadrant": "use_inspired_basic",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "abstract", "venue", "topics", "funders"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "Investigates fundamental local, crystal, and micro-structure of SnO2 nanoparticles, motivated by their relevance to applied properties like catalysis."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W4411523072",
|
||||
"classification": {
|
||||
"primary_category": "applied_research",
|
||||
"applied_orientation_score": 65,
|
||||
"pasteur_quadrant": "pure_applied",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "abstract", "venue", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "Develops and evaluates a fuzzer for the specific practical aim of detecting memory corruption vulnerabilities in WebAssembly."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W2903880611",
|
||||
"classification": {
|
||||
"primary_category": "experimental_development",
|
||||
"applied_orientation_score": 75,
|
||||
"pasteur_quadrant": "pure_applied",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "abstract", "venue", "work_type", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "Implements and evaluates an anomaly detection system prototype on a real-world testbed, constituting experimental development."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W4410930081",
|
||||
"classification": {
|
||||
"primary_category": "applied_research",
|
||||
"applied_orientation_score": 60,
|
||||
"pasteur_quadrant": "pure_applied",
|
||||
"confidence": "medium",
|
||||
"signals_used": ["title", "venue", "work_type", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "Designing stakeholder management principles for ports targets a specific practical aim; lack of abstract limits confidence."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W4301212620",
|
||||
"classification": {
|
||||
"primary_category": "non_research",
|
||||
"applied_orientation_score": null,
|
||||
"pasteur_quadrant": "not_applicable",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "work_type"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "Item is an introduction section of a book, classified as non-research supporting material."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W4365601033",
|
||||
"classification": {
|
||||
"primary_category": "applied_research",
|
||||
"applied_orientation_score": 65,
|
||||
"pasteur_quadrant": "pure_applied",
|
||||
"confidence": "high",
|
||||
"signals_used": [
|
||||
"title",
|
||||
"abstract",
|
||||
"venue",
|
||||
"work_type",
|
||||
"topics",
|
||||
"funders"
|
||||
],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "Introduces a high-performance fuzzer for smart contracts directed towards the practical aim of vulnerability and exploit detection."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W4400540671",
|
||||
"classification": {
|
||||
"primary_category": "applied_research",
|
||||
"applied_orientation_score": 65,
|
||||
"pasteur_quadrant": "pure_applied",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "abstract", "venue", "topics", "funders"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "Conducts a user study to improve trust in IoT remote attestation, directed towards the practical aim of usable security."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W2889224812",
|
||||
"classification": {
|
||||
"primary_category": "applied_research",
|
||||
"applied_orientation_score": 60,
|
||||
"pasteur_quadrant": "pure_applied",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "abstract", "venue", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "Develops novel exploitation techniques against Intel SGX to demonstrate practical security vulnerabilities under weak adversarial assumptions."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W3184661191",
|
||||
"classification": {
|
||||
"primary_category": "applied_research",
|
||||
"applied_orientation_score": 55,
|
||||
"pasteur_quadrant": "pure_applied",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "abstract", "venue", "topics", "funders"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "Overview of a research program directed at the practical aim of establishing system security based on nano-electronics."
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,606 @@
|
||||
{
|
||||
"batch_id": "golden_set_50_blind_v1",
|
||||
"n_items": 50,
|
||||
"items": [
|
||||
{
|
||||
"work_id": "W2951658790",
|
||||
"classification": {
|
||||
"primary_category": "experimental_development",
|
||||
"applied_orientation_score": 90,
|
||||
"pasteur_quadrant": "pure_applied",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "abstract", "work_type", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "Designs, implements, and evaluates a Raspberry Pi prototype for runtime control-flow attestation against concrete attacks."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W2792069854",
|
||||
"classification": {
|
||||
"primary_category": "applied_research",
|
||||
"applied_orientation_score": 62,
|
||||
"pasteur_quadrant": "pure_applied",
|
||||
"confidence": "medium",
|
||||
"signals_used": ["title", "venue", "work_type", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "Targets the practical problem of safe, resilient urban evacuation through bi-objective planning, but no prototype or deployment evidence is provided."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W3157145095",
|
||||
"classification": {
|
||||
"primary_category": "basic_research",
|
||||
"applied_orientation_score": 5,
|
||||
"pasteur_quadrant": "pure_basic",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "abstract", "venue", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "Investigates the mathematical structure of the Collatz problem to advance foundational knowledge, with no practical use in view."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W4211082810",
|
||||
"classification": {
|
||||
"primary_category": "non_research",
|
||||
"applied_orientation_score": null,
|
||||
"pasteur_quadrant": "not_applicable",
|
||||
"confidence": "medium",
|
||||
"signals_used": ["title", "work_type", "venue"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "A references section is supporting material rather than an independent research contribution."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W1970644787",
|
||||
"classification": {
|
||||
"primary_category": "applied_research",
|
||||
"applied_orientation_score": 66,
|
||||
"pasteur_quadrant": "pure_applied",
|
||||
"confidence": "medium",
|
||||
"signals_used": ["title", "venue", "work_type", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "Develops biocompatible iron oxide nanocomposites for the specific practical objective of improved MRI contrast, without clear trial or deployment evidence."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W4389566044",
|
||||
"classification": {
|
||||
"primary_category": "applied_research",
|
||||
"applied_orientation_score": 67,
|
||||
"pasteur_quadrant": "pure_applied",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "abstract", "venue", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "Builds an optimization model to select pandemic-control measures while limiting economic and mortality harms, addressing a specific policy-planning objective."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W4387698137",
|
||||
"classification": {
|
||||
"primary_category": "applied_research",
|
||||
"applied_orientation_score": 68,
|
||||
"pasteur_quadrant": "pure_applied",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "abstract", "work_type", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "Develops and experimentally evaluates a topic-modeling framework for recommending scientific collaborators, serving a defined organizational decision-support need."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W4393082582",
|
||||
"classification": {
|
||||
"primary_category": "basic_research",
|
||||
"applied_orientation_score": 40,
|
||||
"pasteur_quadrant": "use_inspired_basic",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "abstract", "venue", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "Primarily investigates mechanisms by which electric current alters ZnO microstructure and composition, motivated by improved sintering control rather than an immediate product."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W4415655215",
|
||||
"classification": {
|
||||
"primary_category": "applied_research",
|
||||
"applied_orientation_score": 60,
|
||||
"pasteur_quadrant": "pure_applied",
|
||||
"confidence": "medium",
|
||||
"signals_used": ["title", "work_type", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "Proposes a hybrid data-mining approach for extracting university organizational structures from websites, a specific information-management task; implementation evidence is unavailable."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W2330632819",
|
||||
"classification": {
|
||||
"primary_category": "experimental_development",
|
||||
"applied_orientation_score": 86,
|
||||
"pasteur_quadrant": "pure_applied",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "abstract", "venue", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "Produces stable silicon nanoparticle ink and demonstrates ink-jet printed structures and films, constituting process and product prototyping for printable electronics."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W4415031709",
|
||||
"classification": {
|
||||
"primary_category": "experimental_development",
|
||||
"applied_orientation_score": 89,
|
||||
"pasteur_quadrant": "pure_applied",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "abstract", "work_type", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "Implements selective instrumentation by extending the Rust compiler toolchain and validates improved vulnerability-fuzzing performance, yielding a working security-testing capability."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W3022958510",
|
||||
"classification": {
|
||||
"primary_category": "applied_research",
|
||||
"applied_orientation_score": 68,
|
||||
"pasteur_quadrant": "pure_applied",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "abstract", "venue", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "Develops and computationally tests an optimization model and exact algorithm for disaster road clearance and relief distribution, addressing a concrete emergency-logistics problem."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W7138882770",
|
||||
"classification": {
|
||||
"primary_category": "applied_research",
|
||||
"applied_orientation_score": 56,
|
||||
"pasteur_quadrant": "pure_applied",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "abstract", "venue", "work_type", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "Reviews an application-oriented body of AI research focused on wildfire detection, prediction, monitoring, and management, and proposes a practical research agenda."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W7138856433",
|
||||
"classification": {
|
||||
"primary_category": "basic_research",
|
||||
"applied_orientation_score": 42,
|
||||
"pasteur_quadrant": "use_inspired_basic",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "abstract", "venue", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "Seeks mechanistic understanding of tin oxide nanoparticle formation through operando diffraction and simulation, motivated by eventual control of application-relevant material properties."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W2405896199",
|
||||
"classification": {
|
||||
"primary_category": "non_research",
|
||||
"applied_orientation_score": null,
|
||||
"pasteur_quadrant": "not_applicable",
|
||||
"confidence": "medium",
|
||||
"signals_used": ["title", "work_type", "venue"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "An editorial introducing a special issue is supporting scholarly material, not an independent research investigation."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W4400944359",
|
||||
"classification": {
|
||||
"primary_category": "basic_research",
|
||||
"applied_orientation_score": 35,
|
||||
"pasteur_quadrant": "use_inspired_basic",
|
||||
"confidence": "medium",
|
||||
"signals_used": ["title", "abstract", "venue", "work_type", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "Bibliometrically maps data-ecosystem scholarship and develops a research agenda; the reviewed field's practical orientation is mixed and no specific intervention is central."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W2931917074",
|
||||
"classification": {
|
||||
"primary_category": "experimental_development",
|
||||
"applied_orientation_score": 84,
|
||||
"pasteur_quadrant": "pure_applied",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "abstract", "venue", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "Develops and evaluates a HoloLens augmented-reality prototype to support enterprise-architecture decisions, directly testing a working artifact for practical use."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W4403369135",
|
||||
"classification": {
|
||||
"primary_category": "applied_research",
|
||||
"applied_orientation_score": 67,
|
||||
"pasteur_quadrant": "pure_applied",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "abstract", "venue", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "Creates and evaluates machine-learning models to support university scouting of potential founders, pursuing a specific technology-transfer decision objective without deployment."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W4411506896",
|
||||
"classification": {
|
||||
"primary_category": "experimental_development",
|
||||
"applied_orientation_score": 78,
|
||||
"pasteur_quadrant": "pure_applied",
|
||||
"confidence": "medium",
|
||||
"signals_used": ["title", "venue", "work_type", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "The work centers on a language-independent compiler for hardening smart contracts, indicating a working security artifact, though implementation details are unavailable."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W3153370821",
|
||||
"classification": {
|
||||
"primary_category": "experimental_development",
|
||||
"applied_orientation_score": 94,
|
||||
"pasteur_quadrant": "pure_applied",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "abstract", "venue", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "Implements and extensively evaluates an automated Ethereum contract-patching framework on 14,000 real contracts, demonstrating a practical working system."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W3038557399",
|
||||
"classification": {
|
||||
"primary_category": "non_research",
|
||||
"applied_orientation_score": null,
|
||||
"pasteur_quadrant": "not_applicable",
|
||||
"confidence": "medium",
|
||||
"signals_used": ["title", "abstract", "work_type"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "An erratum corrects a prior publication and is not an independent research contribution."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W4394954564",
|
||||
"classification": {
|
||||
"primary_category": "applied_research",
|
||||
"applied_orientation_score": 64,
|
||||
"pasteur_quadrant": "pure_applied",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "abstract", "venue", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "Investigates charge-transfer mechanisms while fabricating photodetectors with improved responsivity, dark current, and detectivity, serving the practical objective of better photosensing devices."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W4409545335",
|
||||
"classification": {
|
||||
"primary_category": "applied_research",
|
||||
"applied_orientation_score": 54,
|
||||
"pasteur_quadrant": "pure_applied",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "abstract", "venue", "work_type", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "Reviews an application-oriented literature on AI solutions for urban mobility, waste, energy, and security, with practical implications for smart-city development."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W7133313486",
|
||||
"classification": {
|
||||
"primary_category": "experimental_development",
|
||||
"applied_orientation_score": 82,
|
||||
"pasteur_quadrant": "pure_applied",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "abstract", "venue", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "Develops and demonstrates a high-speed near-infrared imaging setup for operando temperature measurement during laser sintering, establishing a working measurement capability."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W4394855570",
|
||||
"classification": {
|
||||
"primary_category": "non_research",
|
||||
"applied_orientation_score": null,
|
||||
"pasteur_quadrant": "not_applicable",
|
||||
"confidence": "low",
|
||||
"signals_used": ["title"],
|
||||
"insufficient_context": true,
|
||||
"classification_reason": "The title explicitly identifies a correction, which is supporting material; no abstract or other confirming content is available."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W7140663985",
|
||||
"classification": {
|
||||
"primary_category": "experimental_development",
|
||||
"applied_orientation_score": 87,
|
||||
"pasteur_quadrant": "pure_applied",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "abstract", "work_type", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "Presents and evaluates a deployable framework for WebAssembly memory attestation across real vulnerable applications and multiple execution backends."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W4226316500",
|
||||
"classification": {
|
||||
"primary_category": "experimental_development",
|
||||
"applied_orientation_score": 91,
|
||||
"pasteur_quadrant": "pure_applied",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "abstract", "work_type", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "Builds a smart-contract compiler that automatically inserts hardening checks and validates it on 10,000 real contracts and verified attacks."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W4289778746",
|
||||
"classification": {
|
||||
"primary_category": "applied_research",
|
||||
"applied_orientation_score": 64,
|
||||
"pasteur_quadrant": "pure_applied",
|
||||
"confidence": "medium",
|
||||
"signals_used": ["title", "venue", "work_type", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "Formulates an optimization model for an industry-relevant irregular strip-packing problem, a concrete manufacturing objective, without evidence of implementation or deployment."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W3194249507",
|
||||
"classification": {
|
||||
"primary_category": "applied_research",
|
||||
"applied_orientation_score": 62,
|
||||
"pasteur_quadrant": "pure_applied",
|
||||
"confidence": "medium",
|
||||
"signals_used": ["title", "venue", "work_type", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "Develops an evaluation framework for fair comparison of fuzzers, addressing a specific software-testing need; the available fields do not establish a working implementation."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W4411446448",
|
||||
"classification": {
|
||||
"primary_category": "applied_research",
|
||||
"applied_orientation_score": 54,
|
||||
"pasteur_quadrant": "pure_applied",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "abstract", "venue", "work_type", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "Maps an application-oriented literature on virtual coaching for health, education, fitness, and professional development, emphasizing future development and implementation."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W7140643534",
|
||||
"classification": {
|
||||
"primary_category": "experimental_development",
|
||||
"applied_orientation_score": 89,
|
||||
"pasteur_quadrant": "pure_applied",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "abstract", "work_type", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "Implements and evaluates HammerWatch, a hardware-backed remote-attestation protocol for detecting Rowhammer behavior on commodity systems."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W4411449729",
|
||||
"classification": {
|
||||
"primary_category": "applied_research",
|
||||
"applied_orientation_score": 64,
|
||||
"pasteur_quadrant": "pure_applied",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "abstract", "venue", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "Develops and computationally evaluates a compact optimization model for practical stacking, relocation, loading, and terminal-logistics problems."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W3207748302",
|
||||
"classification": {
|
||||
"primary_category": "applied_research",
|
||||
"applied_orientation_score": 52,
|
||||
"pasteur_quadrant": "pure_applied",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "abstract", "venue", "work_type", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "Reviews a practically oriented research field concerned with governing organizational data and identifies future work for companies and public institutions."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W4411148338",
|
||||
"classification": {
|
||||
"primary_category": "basic_research",
|
||||
"applied_orientation_score": 43,
|
||||
"pasteur_quadrant": "use_inspired_basic",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "abstract", "venue", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "Primarily investigates nanoscale deagglomeration dynamics and structure, motivated by eventual control of colloidal processing and functional-material quality."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W4399679289",
|
||||
"classification": {
|
||||
"primary_category": "applied_research",
|
||||
"applied_orientation_score": 55,
|
||||
"pasteur_quadrant": "pure_applied",
|
||||
"confidence": "medium",
|
||||
"signals_used": ["title", "abstract", "work_type", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "Examines system-level bit-flip behavior and security implications of non-volatile memory for a concrete computing problem, but the abstract lacks method and implementation details."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W4206963266",
|
||||
"classification": {
|
||||
"primary_category": "basic_research",
|
||||
"applied_orientation_score": 35,
|
||||
"pasteur_quadrant": "use_inspired_basic",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "abstract", "venue", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "Develops a conceptual model and quality criteria for cumulative design-science knowledge, primarily advancing research methodology while seeking eventual practical impact."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W4243361268",
|
||||
"classification": {
|
||||
"primary_category": "non_research",
|
||||
"applied_orientation_score": null,
|
||||
"pasteur_quadrant": "not_applicable",
|
||||
"confidence": "low",
|
||||
"signals_used": ["title"],
|
||||
"insufficient_context": true,
|
||||
"classification_reason": "An appendices section is supporting material rather than independent research; no substantive context is provided."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W4384502134",
|
||||
"classification": {
|
||||
"primary_category": "applied_research",
|
||||
"applied_orientation_score": 60,
|
||||
"pasteur_quadrant": "pure_applied",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "abstract", "venue", "work_type", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "Reviews methods for controlling, characterizing, and designing chemical-vapor nanoparticle synthesis processes and materials, an application-oriented body of work."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W4235102872",
|
||||
"classification": {
|
||||
"primary_category": "non_research",
|
||||
"applied_orientation_score": null,
|
||||
"pasteur_quadrant": "not_applicable",
|
||||
"confidence": "low",
|
||||
"signals_used": ["title", "work_type"],
|
||||
"insufficient_context": true,
|
||||
"classification_reason": "A standalone discussion-and-conclusion chapter is supporting material, and no abstract clarifies any independent research contribution."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W4410919853",
|
||||
"classification": {
|
||||
"primary_category": "applied_research",
|
||||
"applied_orientation_score": 66,
|
||||
"pasteur_quadrant": "pure_applied",
|
||||
"confidence": "medium",
|
||||
"signals_used": ["title", "venue", "work_type", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "Targets the practical design of a diagnosis and intervention platform for knowledge-worker stress, but available evidence does not confirm a prototype or implementation."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W4410623858",
|
||||
"classification": {
|
||||
"primary_category": "applied_research",
|
||||
"applied_orientation_score": 68,
|
||||
"pasteur_quadrant": "pure_applied",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "abstract", "venue", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "Develops and computationally tests a trajectory-optimization model for collision-free, energy-aware drone delivery with moving launch and recovery vehicles."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W4386126998",
|
||||
"classification": {
|
||||
"primary_category": "basic_research",
|
||||
"applied_orientation_score": 34,
|
||||
"pasteur_quadrant": "use_inspired_basic",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "abstract", "venue", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "Investigates fundamental size, surface, interface, and defect structures in ultrasmall tin dioxide nanocrystals, with applications mentioned mainly as motivation."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W4411523072",
|
||||
"classification": {
|
||||
"primary_category": "experimental_development",
|
||||
"applied_orientation_score": 93,
|
||||
"pasteur_quadrant": "pure_applied",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "abstract", "venue", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "Implements and deploys a WebAssembly fuzzing and instrumentation system on real websites, finding memory-corruption bugs and substantially improving speed and coverage."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W2903880611",
|
||||
"classification": {
|
||||
"primary_category": "experimental_development",
|
||||
"applied_orientation_score": 91,
|
||||
"pasteur_quadrant": "pure_applied",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "abstract", "work_type", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "Implements and evaluates Scadman on a real-world water-treatment testbed as a working anomaly-detection system for cyber-physical controllers."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W4410930081",
|
||||
"classification": {
|
||||
"primary_category": "applied_research",
|
||||
"applied_orientation_score": 56,
|
||||
"pasteur_quadrant": "pure_applied",
|
||||
"confidence": "medium",
|
||||
"signals_used": ["title", "venue", "work_type", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "Derives design principles for the specific practical problem of stakeholder management in ports; no abstract establishes implementation or field deployment."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W4301212620",
|
||||
"classification": {
|
||||
"primary_category": "non_research",
|
||||
"applied_orientation_score": null,
|
||||
"pasteur_quadrant": "not_applicable",
|
||||
"confidence": "low",
|
||||
"signals_used": ["title", "work_type", "venue"],
|
||||
"insufficient_context": true,
|
||||
"classification_reason": "An introduction chapter is supporting material, and the available metadata provides no evidence of an independent research investigation."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W4365601033",
|
||||
"classification": {
|
||||
"primary_category": "experimental_development",
|
||||
"applied_orientation_score": 94,
|
||||
"pasteur_quadrant": "pure_applied",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "abstract", "work_type", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "Builds and comprehensively evaluates a high-performance smart-contract fuzzer that generates working exploits and outperforms existing tools."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W4400540671",
|
||||
"classification": {
|
||||
"primary_category": "experimental_development",
|
||||
"applied_orientation_score": 78,
|
||||
"pasteur_quadrant": "pure_applied",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "abstract", "venue", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "Develops a user-facing remote-attestation application and evaluates explanatory interface variants with participants, constituting a tested intervention prototype."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W2889224812",
|
||||
"classification": {
|
||||
"primary_category": "applied_research",
|
||||
"applied_orientation_score": 64,
|
||||
"pasteur_quadrant": "pure_applied",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "abstract", "venue", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "Develops practical exploitation techniques for Intel SGX under realistic adversarial assumptions, addressing a concrete security problem without evidence of a deployable product."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W3184661191",
|
||||
"classification": {
|
||||
"primary_category": "non_research",
|
||||
"applied_orientation_score": null,
|
||||
"pasteur_quadrant": "not_applicable",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "abstract", "venue", "work_type"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "Provides an overview of a research priority program and its planned projects rather than reporting an original investigation or development activity."
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,189 @@
|
||||
{
|
||||
"summary": {
|
||||
"created_at": "2026-07-17T16:18:55.068127Z",
|
||||
"index": "work-classifications",
|
||||
"read_only": true,
|
||||
"expected_count": null,
|
||||
"documents": 45335,
|
||||
"initial_count": 45335,
|
||||
"final_count": 45335,
|
||||
"count_consistent": true,
|
||||
"expected_count_matches": true,
|
||||
"index_integrity_valid": true
|
||||
},
|
||||
"mapping": {
|
||||
"valid": true,
|
||||
"error_count": 0,
|
||||
"errors": []
|
||||
},
|
||||
"documents": {
|
||||
"schema_valid": 45335,
|
||||
"schema_invalid": 0,
|
||||
"field_order_valid": 45335,
|
||||
"field_order_invalid": 0,
|
||||
"unique_work_ids": 45335,
|
||||
"duplicate_work_id_count": 0,
|
||||
"duplicate_work_ids": {},
|
||||
"schema_error_counts": {},
|
||||
"field_order_error_counts": {}
|
||||
},
|
||||
"classification": {
|
||||
"categories": {
|
||||
"basic_research": {
|
||||
"count": 21568,
|
||||
"percentage": 47.57
|
||||
},
|
||||
"applied_research": {
|
||||
"count": 17243,
|
||||
"percentage": 38.03
|
||||
},
|
||||
"non_research": {
|
||||
"count": 3349,
|
||||
"percentage": 7.39
|
||||
},
|
||||
"experimental_development": {
|
||||
"count": 3175,
|
||||
"percentage": 7.0
|
||||
}
|
||||
},
|
||||
"quadrants": {
|
||||
"pure_applied": {
|
||||
"count": 20366,
|
||||
"percentage": 44.92
|
||||
},
|
||||
"use_inspired_basic": {
|
||||
"count": 14137,
|
||||
"percentage": 31.18
|
||||
},
|
||||
"pure_basic": {
|
||||
"count": 7446,
|
||||
"percentage": 16.42
|
||||
},
|
||||
"not_applicable": {
|
||||
"count": 3386,
|
||||
"percentage": 7.47
|
||||
}
|
||||
},
|
||||
"confidence": {
|
||||
"high": {
|
||||
"count": 29475,
|
||||
"percentage": 65.02
|
||||
},
|
||||
"medium": {
|
||||
"count": 15721,
|
||||
"percentage": 34.68
|
||||
},
|
||||
"low": {
|
||||
"count": 139,
|
||||
"percentage": 0.31
|
||||
}
|
||||
},
|
||||
"insufficient_context": {
|
||||
"false": {
|
||||
"count": 42171,
|
||||
"percentage": 93.02
|
||||
},
|
||||
"true": {
|
||||
"count": 3164,
|
||||
"percentage": 6.98
|
||||
}
|
||||
},
|
||||
"signals_used": {
|
||||
"title": 44781,
|
||||
"topics": 44742,
|
||||
"work_type": 42570,
|
||||
"venue": 35578,
|
||||
"abstract": 28450,
|
||||
"funders": 10144,
|
||||
"language": 2043,
|
||||
"year": 61
|
||||
},
|
||||
"applied_orientation_score": {
|
||||
"overall": {
|
||||
"count": 41986,
|
||||
"min": 0.0,
|
||||
"max": 92.0,
|
||||
"mean": 47.49,
|
||||
"median": 38.0
|
||||
},
|
||||
"by_category": {
|
||||
"applied_research": {
|
||||
"count": 17243,
|
||||
"min": 35.0,
|
||||
"max": 90.0,
|
||||
"mean": 67.07,
|
||||
"median": 70.0
|
||||
},
|
||||
"basic_research": {
|
||||
"count": 21568,
|
||||
"min": 0.0,
|
||||
"max": 55.0,
|
||||
"mean": 26.78,
|
||||
"median": 30.0
|
||||
},
|
||||
"experimental_development": {
|
||||
"count": 3175,
|
||||
"min": 60.0,
|
||||
"max": 92.0,
|
||||
"mean": 81.84,
|
||||
"median": 80.0
|
||||
},
|
||||
"non_research": {
|
||||
"count": 0,
|
||||
"min": null,
|
||||
"max": null,
|
||||
"mean": null,
|
||||
"median": null
|
||||
}
|
||||
}
|
||||
},
|
||||
"current_rule_consistency": {
|
||||
"consistent": 45335,
|
||||
"inconsistent": 0,
|
||||
"consistent_percentage": 100.0,
|
||||
"error_counts": {}
|
||||
},
|
||||
"stored_validation": {
|
||||
"states": {
|
||||
"valid": 42138,
|
||||
"invalid": 3197
|
||||
},
|
||||
"valid_state_consistent_with_error_list": 45335,
|
||||
"valid_state_inconsistent_with_error_list": 0,
|
||||
"error_occurrences": 3201,
|
||||
"error_counts": {
|
||||
"applied_research_score_outside_expected_range": 2842,
|
||||
"basic_research_quadrant_score_mismatch": 297,
|
||||
"applied_research_quadrant_mismatch": 32,
|
||||
"experimental_development_quadrant_mismatch": 20,
|
||||
"basic_research_quadrant_mismatch": 9,
|
||||
"experimental_development_score_outside_expected_range": 1
|
||||
}
|
||||
}
|
||||
},
|
||||
"metadata": {
|
||||
"missing_title": 24,
|
||||
"missing_doi": 4579,
|
||||
"missing_publication_year": 0,
|
||||
"empty_authors": 0,
|
||||
"empty_institutions": 10679,
|
||||
"empty_topics": 274,
|
||||
"publication_year": {
|
||||
"min": 1950,
|
||||
"max": 2026
|
||||
},
|
||||
"classified_at": {
|
||||
"min": "2026-07-10T18:42:03Z",
|
||||
"max": "2026-07-17T16:13:02Z"
|
||||
}
|
||||
},
|
||||
"provenance": {
|
||||
"models": {
|
||||
"gemma4-e4b": 45335
|
||||
},
|
||||
"prompt_versions": {
|
||||
"frascati_v1": 45215,
|
||||
"frascati_hard_ranges_v2": 120
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,181 @@
|
||||
{
|
||||
"summary": {
|
||||
"created_at": "2026-07-17T17:08:56.145037Z",
|
||||
"index": "work-classifications",
|
||||
"read_only": true,
|
||||
"expected_count": null,
|
||||
"documents": 45335,
|
||||
"initial_count": 45335,
|
||||
"final_count": 45335,
|
||||
"count_consistent": true,
|
||||
"expected_count_matches": true,
|
||||
"index_integrity_valid": true
|
||||
},
|
||||
"mapping": {
|
||||
"valid": true,
|
||||
"error_count": 0,
|
||||
"errors": []
|
||||
},
|
||||
"documents": {
|
||||
"schema_valid": 45335,
|
||||
"schema_invalid": 0,
|
||||
"field_order_valid": 45335,
|
||||
"field_order_invalid": 0,
|
||||
"unique_work_ids": 45335,
|
||||
"duplicate_work_id_count": 0,
|
||||
"duplicate_work_ids": {},
|
||||
"schema_error_counts": {},
|
||||
"field_order_error_counts": {}
|
||||
},
|
||||
"classification": {
|
||||
"categories": {
|
||||
"basic_research": {
|
||||
"count": 21583,
|
||||
"percentage": 47.61
|
||||
},
|
||||
"applied_research": {
|
||||
"count": 16789,
|
||||
"percentage": 37.03
|
||||
},
|
||||
"experimental_development": {
|
||||
"count": 3591,
|
||||
"percentage": 7.92
|
||||
},
|
||||
"non_research": {
|
||||
"count": 3372,
|
||||
"percentage": 7.44
|
||||
}
|
||||
},
|
||||
"quadrants": {
|
||||
"pure_applied": {
|
||||
"count": 20380,
|
||||
"percentage": 44.95
|
||||
},
|
||||
"use_inspired_basic": {
|
||||
"count": 14037,
|
||||
"percentage": 30.96
|
||||
},
|
||||
"pure_basic": {
|
||||
"count": 7546,
|
||||
"percentage": 16.64
|
||||
},
|
||||
"not_applicable": {
|
||||
"count": 3372,
|
||||
"percentage": 7.44
|
||||
}
|
||||
},
|
||||
"confidence": {
|
||||
"high": {
|
||||
"count": 29445,
|
||||
"percentage": 64.95
|
||||
},
|
||||
"medium": {
|
||||
"count": 15749,
|
||||
"percentage": 34.74
|
||||
},
|
||||
"low": {
|
||||
"count": 141,
|
||||
"percentage": 0.31
|
||||
}
|
||||
},
|
||||
"insufficient_context": {
|
||||
"false": {
|
||||
"count": 42248,
|
||||
"percentage": 93.19
|
||||
},
|
||||
"true": {
|
||||
"count": 3087,
|
||||
"percentage": 6.81
|
||||
}
|
||||
},
|
||||
"signals_used": {
|
||||
"title": 44781,
|
||||
"topics": 44739,
|
||||
"work_type": 42631,
|
||||
"venue": 35597,
|
||||
"abstract": 28479,
|
||||
"funders": 10203,
|
||||
"language": 2028,
|
||||
"year": 61
|
||||
},
|
||||
"applied_orientation_score": {
|
||||
"overall": {
|
||||
"count": 41963,
|
||||
"min": 0.0,
|
||||
"max": 92.0,
|
||||
"mean": 46.85,
|
||||
"median": 40.0
|
||||
},
|
||||
"by_category": {
|
||||
"applied_research": {
|
||||
"count": 16789,
|
||||
"min": 40.0,
|
||||
"max": 70.0,
|
||||
"mean": 64.99,
|
||||
"median": 65.0
|
||||
},
|
||||
"basic_research": {
|
||||
"count": 21583,
|
||||
"min": 0.0,
|
||||
"max": 45.0,
|
||||
"mean": 26.9,
|
||||
"median": 30.0
|
||||
},
|
||||
"experimental_development": {
|
||||
"count": 3591,
|
||||
"min": 75.0,
|
||||
"max": 92.0,
|
||||
"mean": 81.97,
|
||||
"median": 80.0
|
||||
},
|
||||
"non_research": {
|
||||
"count": 0,
|
||||
"min": null,
|
||||
"max": null,
|
||||
"mean": null,
|
||||
"median": null
|
||||
}
|
||||
}
|
||||
},
|
||||
"current_rule_consistency": {
|
||||
"consistent": 45335,
|
||||
"inconsistent": 0,
|
||||
"consistent_percentage": 100.0,
|
||||
"error_counts": {}
|
||||
},
|
||||
"stored_validation": {
|
||||
"states": {
|
||||
"valid": 45335
|
||||
},
|
||||
"valid_state_consistent_with_error_list": 45335,
|
||||
"valid_state_inconsistent_with_error_list": 0,
|
||||
"error_occurrences": 0,
|
||||
"error_counts": {}
|
||||
}
|
||||
},
|
||||
"metadata": {
|
||||
"missing_title": 24,
|
||||
"missing_doi": 4579,
|
||||
"missing_publication_year": 0,
|
||||
"empty_authors": 0,
|
||||
"empty_institutions": 10679,
|
||||
"empty_topics": 274,
|
||||
"publication_year": {
|
||||
"min": 1950,
|
||||
"max": 2026
|
||||
},
|
||||
"classified_at": {
|
||||
"min": "2026-07-10T18:42:03Z",
|
||||
"max": "2026-07-17T17:05:32Z"
|
||||
}
|
||||
},
|
||||
"provenance": {
|
||||
"models": {
|
||||
"gemma4-e4b": 45335
|
||||
},
|
||||
"prompt_versions": {
|
||||
"frascati_v1": 42018,
|
||||
"frascati_hard_ranges_v2": 3317
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,606 @@
|
||||
{
|
||||
"batch_id": "golden_set_50_blind_v1",
|
||||
"n_items": 50,
|
||||
"items": [
|
||||
{
|
||||
"work_id": "W2951658790",
|
||||
"classification": {
|
||||
"primary_category": "experimental_development",
|
||||
"applied_orientation_score": 85,
|
||||
"pasteur_quadrant": "pure_applied",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "abstract", "venue", "work_type", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "Full prototype (C-FLAT) implemented on real ARM TrustZone hardware, evaluated against real control-flow attacks; an engineered security artifact, not fundamental inquiry."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W2792069854",
|
||||
"classification": {
|
||||
"primary_category": "applied_research",
|
||||
"applied_orientation_score": 55,
|
||||
"pasteur_quadrant": "pure_applied",
|
||||
"confidence": "medium",
|
||||
"signals_used": ["title", "venue", "work_type", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "Optimization model for urban evacuation planning in an OR journal; targets a specific practical aim without a described prototype, pilot, or deployment."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W3157145095",
|
||||
"classification": {
|
||||
"primary_category": "basic_research",
|
||||
"applied_orientation_score": 5,
|
||||
"pasteur_quadrant": "pure_basic",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "abstract", "venue", "work_type", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "Purely theoretical investigation of structural properties of the Collatz conjecture; no application or use is mentioned or implied."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W4211082810",
|
||||
"classification": {
|
||||
"primary_category": "non_research",
|
||||
"applied_orientation_score": null,
|
||||
"pasteur_quadrant": "not_applicable",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "work_type"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "Bibliographic reference list of a book chapter; supporting material, not original research."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W1970644787",
|
||||
"classification": {
|
||||
"primary_category": "applied_research",
|
||||
"applied_orientation_score": 58,
|
||||
"pasteur_quadrant": "pure_applied",
|
||||
"confidence": "medium",
|
||||
"signals_used": ["title", "venue", "work_type", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "Synthesis and surface functionalization of nanocomposites explicitly designed as an MRI contrast agent; specific practical biomedical aim, no abstract available."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W4389566044",
|
||||
"classification": {
|
||||
"primary_category": "applied_research",
|
||||
"applied_orientation_score": 55,
|
||||
"pasteur_quadrant": "pure_applied",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "abstract", "venue", "work_type", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "Mathematical program to select pandemic-control measures minimizing economic and health damage, illustrated with case study; practical policy aim, no deployed system."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W4387698137",
|
||||
"classification": {
|
||||
"primary_category": "experimental_development",
|
||||
"applied_orientation_score": 75,
|
||||
"pasteur_quadrant": "pure_applied",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "abstract", "work_type", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "TOMOSCO framework implemented and experimentally evaluated (over 90% accuracy) for identifying research collaborations; a working tool tested on real data."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W4393082582",
|
||||
"classification": {
|
||||
"primary_category": "basic_research",
|
||||
"applied_orientation_score": 35,
|
||||
"pasteur_quadrant": "use_inspired_basic",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "abstract", "venue", "work_type", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "Investigates mechanisms (electromigration, Joule heating) underlying microstructure formation during flash sintering; fundamental understanding motivated by materials processing."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W4415655215",
|
||||
"classification": {
|
||||
"primary_category": "applied_research",
|
||||
"applied_orientation_score": 55,
|
||||
"pasteur_quadrant": "pure_applied",
|
||||
"confidence": "medium",
|
||||
"signals_used": ["title", "topics", "work_type"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "Method for mining organizational structure from university websites; practical data-extraction aim inferred from title and topics, no abstract or venue given."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W2330632819",
|
||||
"classification": {
|
||||
"primary_category": "experimental_development",
|
||||
"applied_orientation_score": 80,
|
||||
"pasteur_quadrant": "pure_applied",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "abstract", "venue", "work_type", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "Synthesizes silicon nanoparticle ink and demonstrates ink-jet printed structures on glass substrates for printable electronics; a produced and tested artifact."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W4415031709",
|
||||
"classification": {
|
||||
"primary_category": "experimental_development",
|
||||
"applied_orientation_score": 78,
|
||||
"pasteur_quadrant": "pure_applied",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "abstract", "venue", "work_type", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "Implements a modified Rust compiler toolchain for targeted fuzzing of unsafe code and evaluates vulnerability detection; a built and tested tool."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W3022958510",
|
||||
"classification": {
|
||||
"primary_category": "applied_research",
|
||||
"applied_orientation_score": 55,
|
||||
"pasteur_quadrant": "pure_applied",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "abstract", "venue", "work_type", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "Formal MIP model and branch-and-bound method for disaster road clearance and relief delivery; practical optimization aim, computational study only, no deployment."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W7138882770",
|
||||
"classification": {
|
||||
"primary_category": "applied_research",
|
||||
"applied_orientation_score": 55,
|
||||
"pasteur_quadrant": "pure_applied",
|
||||
"confidence": "medium",
|
||||
"signals_used": ["title", "abstract", "venue", "work_type", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "Bibliometric review characterizing an application-oriented field (AI for wildfire detection/management); reviewed body is technology- and deployment-focused."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W7138856433",
|
||||
"classification": {
|
||||
"primary_category": "basic_research",
|
||||
"applied_orientation_score": 35,
|
||||
"pasteur_quadrant": "use_inspired_basic",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "abstract", "venue", "work_type", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "In situ/operando XRD combined with simulation to uncover nanoparticle formation mechanisms; fundamental mechanistic aim motivated by optimizing future particle properties."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W2405896199",
|
||||
"classification": {
|
||||
"primary_category": "non_research",
|
||||
"applied_orientation_score": null,
|
||||
"pasteur_quadrant": "not_applicable",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "work_type"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "Editorial introducing a special issue; not original research."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W4400944359",
|
||||
"classification": {
|
||||
"primary_category": "basic_research",
|
||||
"applied_orientation_score": 30,
|
||||
"pasteur_quadrant": "use_inspired_basic",
|
||||
"confidence": "medium",
|
||||
"signals_used": ["title", "abstract", "venue", "work_type", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "Bibliometric study mapping the data-ecosystem research field and proposing a future research agenda for scholars; knowledge-mapping aim, not itself a practical tool."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W2931917074",
|
||||
"classification": {
|
||||
"primary_category": "experimental_development",
|
||||
"applied_orientation_score": 75,
|
||||
"pasteur_quadrant": "pure_applied",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "abstract", "venue", "work_type", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "Design-science approach used to build and evaluate an AR head-mounted-display prototype for enterprise-architecture decision making; a developed and tested artifact."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W4403369135",
|
||||
"classification": {
|
||||
"primary_category": "applied_research",
|
||||
"applied_orientation_score": 55,
|
||||
"pasteur_quadrant": "pure_applied",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "abstract", "venue", "work_type", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "Data-driven machine-learning approach (random forest) to identify potential startup founders among academic staff, supporting a real technology-transfer scouting process."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W4411506896",
|
||||
"classification": {
|
||||
"primary_category": "experimental_development",
|
||||
"applied_orientation_score": 75,
|
||||
"pasteur_quadrant": "pure_applied",
|
||||
"confidence": "medium",
|
||||
"signals_used": ["title", "venue", "work_type", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "Title describes a hardening 'compiler' for smart contracts, indicating a built tool; no abstract available, so evidence rests on title, venue and topics."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W3153370821",
|
||||
"classification": {
|
||||
"primary_category": "experimental_development",
|
||||
"applied_orientation_score": 85,
|
||||
"pasteur_quadrant": "pure_applied",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "abstract", "venue", "work_type", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "EVMPatch framework with proof-of-concept implementation, evaluated on 14,000 real-world smart contracts and a developer study; a deployed, tested patching tool."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W3038557399",
|
||||
"classification": {
|
||||
"primary_category": "non_research",
|
||||
"applied_orientation_score": null,
|
||||
"pasteur_quadrant": "not_applicable",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "work_type"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "Erratum correcting a prior publication; supporting material, not original research."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W4394954564",
|
||||
"classification": {
|
||||
"primary_category": "experimental_development",
|
||||
"applied_orientation_score": 71,
|
||||
"pasteur_quadrant": "pure_applied",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "abstract", "venue", "work_type", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "Fabricates MoS2/perovskite heterostructure photodetectors and reports measured device performance (responsivity, detectivity); device engineering alongside mechanistic discussion."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W4409545335",
|
||||
"classification": {
|
||||
"primary_category": "basic_research",
|
||||
"applied_orientation_score": 30,
|
||||
"pasteur_quadrant": "use_inspired_basic",
|
||||
"confidence": "medium",
|
||||
"signals_used": ["title", "abstract", "venue", "work_type", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "Bibliometric analysis mapping AI-in-smart-cities research and proposing a future research agenda; field-mapping aim motivated by urban application challenges."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W7133313486",
|
||||
"classification": {
|
||||
"primary_category": "experimental_development",
|
||||
"applied_orientation_score": 72,
|
||||
"pasteur_quadrant": "pure_applied",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "abstract", "venue", "work_type", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "Develops and demonstrates a new operando high-speed NIR imaging technique for temperature measurement during laser sintering; new measurement process/instrumentation."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W4394855570",
|
||||
"classification": {
|
||||
"primary_category": "non_research",
|
||||
"applied_orientation_score": null,
|
||||
"pasteur_quadrant": "not_applicable",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "work_type"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "Correction notice to a previously published article; supporting material, not original research."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W7140663985",
|
||||
"classification": {
|
||||
"primary_category": "experimental_development",
|
||||
"applied_orientation_score": 80,
|
||||
"pasteur_quadrant": "pure_applied",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "abstract", "venue", "work_type", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "Walma framework implemented and evaluated on real CVE-affected WebAssembly applications across multiple backends; a built and benchmarked detection tool."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W4226316500",
|
||||
"classification": {
|
||||
"primary_category": "experimental_development",
|
||||
"applied_orientation_score": 82,
|
||||
"pasteur_quadrant": "pure_applied",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "abstract", "venue", "work_type", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "HCC compiler implemented and evaluated at scale on 10k real-world smart contracts, outperforming prior hardening tools; a deployed, tested artifact."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W4289778746",
|
||||
"classification": {
|
||||
"primary_category": "applied_research",
|
||||
"applied_orientation_score": 55,
|
||||
"pasteur_quadrant": "pure_applied",
|
||||
"confidence": "medium",
|
||||
"signals_used": ["title", "venue", "work_type", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "Extended optimization model formulation for an industry-relevant strip-packing problem in an OR journal; practical aim, no described prototype or deployment."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W3194249507",
|
||||
"classification": {
|
||||
"primary_category": "experimental_development",
|
||||
"applied_orientation_score": 73,
|
||||
"pasteur_quadrant": "pure_applied",
|
||||
"confidence": "medium",
|
||||
"signals_used": ["title", "venue", "work_type", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "Title indicates development of an evaluation framework/tool for fuzzers; software-engineering venue and topics support a built-artifact orientation, no abstract available."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W4411446448",
|
||||
"classification": {
|
||||
"primary_category": "basic_research",
|
||||
"applied_orientation_score": 30,
|
||||
"pasteur_quadrant": "use_inspired_basic",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "abstract", "venue", "work_type", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "Bibliometric analysis of 540 articles mapping the virtual-coaching research field and proposing a future research agenda; field-mapping, not itself an intervention."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W7140643534",
|
||||
"classification": {
|
||||
"primary_category": "experimental_development",
|
||||
"applied_orientation_score": 78,
|
||||
"pasteur_quadrant": "pure_applied",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "abstract", "venue", "work_type", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "HammerWatch protocol implemented on commodity hardware and evaluated on 20,000 simulated access patterns for Rowhammer detection; a built and tested system."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W4411449729",
|
||||
"classification": {
|
||||
"primary_category": "applied_research",
|
||||
"applied_orientation_score": 55,
|
||||
"pasteur_quadrant": "pure_applied",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "abstract", "venue", "work_type", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "Novel MILP model formulation applicable to stacking/relocation logistics problems, examined via computational study; practical optimization aim, no deployment described."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W3207748302",
|
||||
"classification": {
|
||||
"primary_category": "basic_research",
|
||||
"applied_orientation_score": 30,
|
||||
"pasteur_quadrant": "use_inspired_basic",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "abstract", "venue", "work_type", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "Bibliometric review tracing 16 years of data-governance research to provide a field blueprint and future research paths; field-mapping aim."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W4411148338",
|
||||
"classification": {
|
||||
"primary_category": "basic_research",
|
||||
"applied_orientation_score": 35,
|
||||
"pasteur_quadrant": "use_inspired_basic",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "abstract", "venue", "work_type", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "In situ SAXS study of deagglomeration dynamics and mechanisms in SnO2 colloids; fundamental structural understanding motivated by improving functional-material applications."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W4399679289",
|
||||
"classification": {
|
||||
"primary_category": "applied_research",
|
||||
"applied_orientation_score": 55,
|
||||
"pasteur_quadrant": "pure_applied",
|
||||
"confidence": "medium",
|
||||
"signals_used": ["title", "abstract", "topics", "work_type"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "Discusses non-volatile memory (memristor) bit-flip behavior at the system level; available abstract is largely introductory background, limiting certainty of orientation."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W4206963266",
|
||||
"classification": {
|
||||
"primary_category": "basic_research",
|
||||
"applied_orientation_score": 35,
|
||||
"pasteur_quadrant": "use_inspired_basic",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "abstract", "venue", "work_type", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "Proposes a theoretical process model and quality criteria for cumulative progress in design science research; meta-scientific aim motivated by improving field practice."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W4243361268",
|
||||
"classification": {
|
||||
"primary_category": "non_research",
|
||||
"applied_orientation_score": null,
|
||||
"pasteur_quadrant": "not_applicable",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "work_type"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "Appendices of a book chapter; supporting material, not original research."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W4384502134",
|
||||
"classification": {
|
||||
"primary_category": "experimental_development",
|
||||
"applied_orientation_score": 71,
|
||||
"pasteur_quadrant": "pure_applied",
|
||||
"confidence": "medium",
|
||||
"signals_used": ["title", "abstract", "venue", "work_type", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "Review of methodological advances for controlling and characterizing the chemical-vapor-synthesis process and materials development; reviewed body is process/technique-development oriented."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W4235102872",
|
||||
"classification": {
|
||||
"primary_category": "non_research",
|
||||
"applied_orientation_score": null,
|
||||
"pasteur_quadrant": "not_applicable",
|
||||
"confidence": "medium",
|
||||
"signals_used": ["title", "venue", "work_type"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "Discussion and Conclusion chapter of a larger work; a structural, supporting section rather than a standalone original research contribution."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W4410919853",
|
||||
"classification": {
|
||||
"primary_category": "experimental_development",
|
||||
"applied_orientation_score": 73,
|
||||
"pasteur_quadrant": "pure_applied",
|
||||
"confidence": "medium",
|
||||
"signals_used": ["title", "venue", "work_type", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "Title indicates designing a diagnosis-and-intervention platform for knowledge-worker stress; a system-building aim inferred from topics and venue, no abstract available."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W4410623858",
|
||||
"classification": {
|
||||
"primary_category": "applied_research",
|
||||
"applied_orientation_score": 55,
|
||||
"pasteur_quadrant": "pure_applied",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "abstract", "venue", "work_type", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "Mixed-integer linear program for collision-free drone trajectory planning with moving vehicles, validated via computational study; practical aim, no field deployment."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W4386126998",
|
||||
"classification": {
|
||||
"primary_category": "basic_research",
|
||||
"applied_orientation_score": 35,
|
||||
"pasteur_quadrant": "use_inspired_basic",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "abstract", "venue", "work_type", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "Detailed structural characterization of very small SnO2 nanocrystals using multiple techniques; fundamental understanding of defects, motivated by relevance to electronics/catalysis applications."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W4411523072",
|
||||
"classification": {
|
||||
"primary_category": "experimental_development",
|
||||
"applied_orientation_score": 85,
|
||||
"pasteur_quadrant": "pure_applied",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "abstract", "venue", "work_type", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "Wemby tool built and applied across 37,797 real domains, uncovering actual memory-corruption bugs (e.g., on Zoom); a deployed, benchmarked security tool."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W2903880611",
|
||||
"classification": {
|
||||
"primary_category": "experimental_development",
|
||||
"applied_orientation_score": 80,
|
||||
"pasteur_quadrant": "pure_applied",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "abstract", "venue", "work_type", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "Scadman anomaly detection system implemented and evaluated on a real-world water-treatment testbed for industrial control systems; a built and tested artifact."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W4410930081",
|
||||
"classification": {
|
||||
"primary_category": "applied_research",
|
||||
"applied_orientation_score": 50,
|
||||
"pasteur_quadrant": "pure_applied",
|
||||
"confidence": "medium",
|
||||
"signals_used": ["title", "venue", "work_type", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "Title indicates design principles for stakeholder management in ports; a practical organizational aim inferred from topics, no abstract or working artifact described."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W4301212620",
|
||||
"classification": {
|
||||
"primary_category": "non_research",
|
||||
"applied_orientation_score": null,
|
||||
"pasteur_quadrant": "not_applicable",
|
||||
"confidence": "medium",
|
||||
"signals_used": ["title", "venue", "work_type"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "Introductory chapter of a book in a security/privacy lecture series; supporting material rather than an original research contribution."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W4365601033",
|
||||
"classification": {
|
||||
"primary_category": "experimental_development",
|
||||
"applied_orientation_score": 85,
|
||||
"pasteur_quadrant": "pure_applied",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "abstract", "venue", "work_type", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "EF/CF fuzzer implemented (bytecode-to-C++ transpilation) and evaluated at scale, automatically generating exploit transaction sequences; a built and benchmarked tool."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W4400540671",
|
||||
"classification": {
|
||||
"primary_category": "experimental_development",
|
||||
"applied_orientation_score": 71,
|
||||
"pasteur_quadrant": "pure_applied",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "abstract", "venue", "work_type", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "Application built to let users observe IoT remote attestation, evaluated via qualitative study and A/B testing with 35 participants; prototype plus piloting."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W2889224812",
|
||||
"classification": {
|
||||
"primary_category": "experimental_development",
|
||||
"applied_orientation_score": 75,
|
||||
"pasteur_quadrant": "pure_applied",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "abstract", "venue", "work_type", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "Novel exploitation techniques against Intel SGX developed and demonstrated under weak adversarial assumptions on standard SDK enclaves; a working attack technique."
|
||||
}
|
||||
},
|
||||
{
|
||||
"work_id": "W3184661191",
|
||||
"classification": {
|
||||
"primary_category": "basic_research",
|
||||
"applied_orientation_score": 35,
|
||||
"pasteur_quadrant": "use_inspired_basic",
|
||||
"confidence": "medium",
|
||||
"signals_used": ["title", "abstract", "venue", "work_type", "topics"],
|
||||
"insufficient_context": false,
|
||||
"classification_reason": "Overview of a research program spanning fundamental nano-electronics phenomena and their security implications/applications; describes both threats and use-motivated approaches."
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,291 @@
|
||||
You are a research-policy analyst classifying the **orientation** of a single
|
||||
scholarly work. Use *only* the definitions and rules below. Do not invent your
|
||||
own notion of "applied" — apply the Frascati Manual definitions exactly.
|
||||
|
||||
### Frascati Manual (OECD, 2015) definitions — authoritative
|
||||
|
||||
**Basic research / Grundlagenforschung**
|
||||
Experimental or theoretical work undertaken primarily to acquire new knowledge
|
||||
of the underlying foundations of phenomena and observable facts, **without any
|
||||
particular application or use in view.**
|
||||
|
||||
**Applied research / Angewandte Forschung**
|
||||
Original investigation undertaken to acquire new knowledge, **directed primarily
|
||||
towards a specific, practical aim or objective.**
|
||||
|
||||
**Experimental development / Experimentelle Entwicklung**
|
||||
Systematic work, drawing on knowledge gained from research and practical
|
||||
experience and producing additional knowledge, **directed to producing new
|
||||
products or processes, or to improving existing ones** (includes prototyping,
|
||||
piloting, scale-up, demonstrators).
|
||||
|
||||
The three form a spectrum of increasing practical/product orientation:
|
||||
`basic_research → applied_research → experimental_development`.
|
||||
|
||||
### The Pasteur's-quadrant caveat (read carefully)
|
||||
|
||||
A work can *seek fundamental understanding* **and** *be motivated by an
|
||||
eventual use*. Frascati keeps such work in **basic research** when the immediate
|
||||
aim is fundamental knowledge, even if a use is mentioned. Do **not** upgrade a
|
||||
mechanistic/theoretical study to "applied" merely because it names a possible
|
||||
future application ("...to enable next-generation batteries", "...with potential
|
||||
clinical relevance"). Record this via the `pasteur_quadrant` field:
|
||||
|
||||
- `pure_basic` — fundamental understanding, no use mentioned.
|
||||
- `use_inspired_basic` — fundamental understanding, motivated by a use →
|
||||
still classified `basic_research`.
|
||||
- `pure_applied` — driven by a specific practical aim.
|
||||
- `not_applicable` — non-research item.
|
||||
|
||||
### Classification procedure
|
||||
|
||||
1. Determine whether the item is research at all. Editorials, corrections,
|
||||
prefaces, tables of contents, book reviews, pure datasets/software with no
|
||||
research narrative → `non_research`.
|
||||
2. Read every provided signal (see INPUT). Weight the abstract most; then
|
||||
venue, topics, funders, work type; the title last on its own.
|
||||
3. Decide the `primary_category` from the three Frascati definitions, applying
|
||||
the Pasteur caveat.
|
||||
4. Assign an `applied_orientation_score` from **0 (pure basic) to 100 (pure
|
||||
experimental development)**. Rough anchors: 0–30 basic, 31–70 applied,
|
||||
71–100 experimental development. `use_inspired_basic` typically 25–45.
|
||||
5. Set `confidence` — **capped by the signals available** (see next section).
|
||||
|
||||
### Confidence caps (hard rules — do not exceed)
|
||||
|
||||
- Abstract present (+ any other signal) → up to **high**.
|
||||
- No abstract, but venue **and/or** topics present → at most **medium**.
|
||||
- Title only, nothing else usable → at most **low**, and set
|
||||
`insufficient_context: true`.
|
||||
Lower the confidence further whenever the signals are genuinely ambiguous
|
||||
(opaque/"cute" titles, interdisciplinary venues, one-word topics).
|
||||
|
||||
### Field-specific guidance
|
||||
|
||||
- **Humanities / social sciences:** default expectation is basic research;
|
||||
"applied" requires a clear practical aim (policy design, intervention,
|
||||
clinical/legal practice, engineering of a tool). Do not treat empirical or
|
||||
data-driven work as "applied" by itself — empiricism ≠ practical aim.
|
||||
- **Engineering / medicine / CS:** watch for the opposite bias; a systems,
|
||||
device, protocol, pilot, or benchmark aimed at a working artifact is usually
|
||||
applied or experimental development, not basic.
|
||||
- **Reviews / surveys:** classify by the orientation of the body of work
|
||||
reviewed; if unclear, `basic_research`, `low`/`medium` confidence.
|
||||
- **German titles:** classify identically; the definitions apply regardless of
|
||||
language. Do not penalize confidence merely because the text is German.
|
||||
|
||||
### Edge cases
|
||||
|
||||
- Named future application but fundamental method → `use_inspired_basic` /
|
||||
`basic_research`.
|
||||
- Methodological/theoretical paper *about* a technique with no target problem →
|
||||
`basic_research`.
|
||||
- Clinical trial, field trial, prototype, scale-up, deployment →
|
||||
`experimental_development`.
|
||||
- Cannot decide research vs. non-research from a bare title → `non_research`
|
||||
only if strongly indicated; otherwise best research guess + `low` confidence.
|
||||
|
||||
---
|
||||
|
||||
## INPUT
|
||||
|
||||
Provide any subset of the following. Absent fields are omitted (do not fabricate).
|
||||
|
||||
```
|
||||
title: {{title}}
|
||||
abstract: {{abstract}} # may be empty
|
||||
venue: {{venue_name}} # journal / book / conference / repository
|
||||
work_type: {{work_type}} # article, book-chapter, preprint, dataset, ...
|
||||
topics: {{topics}} # OpenAlex topics/concepts, comma-separated
|
||||
funders: {{funders}} # if available
|
||||
year: {{publication_year}}
|
||||
language: {{language}}
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## OUTPUT
|
||||
|
||||
Return **only** a single JSON object, no prose, no markdown fences:
|
||||
|
||||
```json
|
||||
{
|
||||
"primary_category": "basic_research | applied_research | experimental_development | non_research",
|
||||
"applied_orientation_score": 0,
|
||||
"pasteur_quadrant": "pure_basic | use_inspired_basic | pure_applied | not_applicable",
|
||||
"confidence": "high | medium | low",
|
||||
"signals_used": ["title", "abstract", "venue", "topics", "funders", "work_type"],
|
||||
"insufficient_context": false,
|
||||
"rationale": "<= 40 words, cite the decisive signal"
|
||||
}
|
||||
```
|
||||
|
||||
Rules: `applied_orientation_score` must be consistent with `primary_category`.
|
||||
`non_research` → score `null`, `pasteur_quadrant: not_applicable`.
|
||||
`confidence` must respect the caps above. `signals_used` lists only fields that
|
||||
actually informed the decision.
|
||||
|
||||
---
|
||||
|
||||
## Few-shot examples
|
||||
|
||||
Example 1 — Basic research
|
||||
|
||||
INPUT:
|
||||
title: "Mechanisms of protein folding under molecular crowding"
|
||||
abstract: "We investigate the physical principles governing protein folding dynamics under different molecular crowding conditions using theoretical modeling and spectroscopy. The study aims to improve understanding of the underlying mechanisms of biomolecular structure formation."
|
||||
venue: "Journal of Molecular Biology"
|
||||
work_type: "article"
|
||||
topics: ["Protein folding", "Molecular biology", "Biophysics"]
|
||||
funders: []
|
||||
year: 2023
|
||||
language: "en"
|
||||
|
||||
OUTPUT:
|
||||
{
|
||||
"primary_category": "basic_research",
|
||||
"applied_orientation_score": 15,
|
||||
"pasteur_quadrant": "pure_basic",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "abstract", "topics", "work_type"],
|
||||
"insufficient_context": false,
|
||||
"rationale": "The abstract seeks underlying mechanisms of biomolecular structure formation without a specific practical objective."
|
||||
}
|
||||
|
||||
Example 2 — Use-inspired basic research
|
||||
|
||||
INPUT:
|
||||
title: "Understanding degradation mechanisms in perovskite solar-cell materials"
|
||||
abstract: "We study atomic-scale degradation pathways in perovskite materials under humidity and heat. The work aims to explain the fundamental mechanisms that limit stability, providing knowledge relevant to future solar-cell materials."
|
||||
venue: "Advanced Energy Materials"
|
||||
work_type: "article"
|
||||
topics: ["Materials science", "Perovskites", "Solar cells"]
|
||||
funders: []
|
||||
year: 2024
|
||||
language: "en"
|
||||
|
||||
OUTPUT:
|
||||
{
|
||||
"primary_category": "basic_research",
|
||||
"applied_orientation_score": 35,
|
||||
"pasteur_quadrant": "use_inspired_basic",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "abstract", "venue", "topics", "work_type"],
|
||||
"insufficient_context": false,
|
||||
"rationale": "The immediate aim is mechanistic understanding, although the knowledge is motivated by future solar-cell applications."
|
||||
}
|
||||
|
||||
Example 3 — Applied research
|
||||
|
||||
INPUT:
|
||||
title: "A prediction model for hospital readmission risk in heart-failure patients"
|
||||
abstract: "We develop and evaluate a statistical model to predict 30-day readmission risk in heart-failure patients using electronic health records. The objective is to support clinical decision-making and identify high-risk patients."
|
||||
venue: "BMC Medical Informatics and Decision Making"
|
||||
work_type: "article"
|
||||
topics: ["Clinical prediction", "Health informatics", "Heart failure"]
|
||||
funders: []
|
||||
year: 2022
|
||||
language: "en"
|
||||
|
||||
OUTPUT:
|
||||
{
|
||||
"primary_category": "applied_research",
|
||||
"applied_orientation_score": 65,
|
||||
"pasteur_quadrant": "pure_applied",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "abstract", "venue", "topics", "work_type"],
|
||||
"insufficient_context": false,
|
||||
"rationale": "The abstract states a specific practical objective: predicting readmission risk to support clinical decision-making."
|
||||
}
|
||||
|
||||
Example 4 — Applied research, not experimental development
|
||||
|
||||
INPUT:
|
||||
title: "A mathematical model for optimizing emergency vehicle routing"
|
||||
abstract: "We formulate and test an optimization model for emergency vehicle routing under time-dependent traffic conditions. The work addresses a practical planning problem, but does not report deployment, prototyping, or creation of a new operational system."
|
||||
venue: "European Journal of Operational Research"
|
||||
work_type: "article"
|
||||
topics: ["Optimization", "Vehicle routing", "Operations research"]
|
||||
funders: []
|
||||
year: 2021
|
||||
language: "en"
|
||||
|
||||
OUTPUT:
|
||||
{
|
||||
"primary_category": "applied_research",
|
||||
"applied_orientation_score": 70,
|
||||
"pasteur_quadrant": "pure_applied",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "abstract", "venue", "topics", "work_type"],
|
||||
"insufficient_context": false,
|
||||
"rationale": "The work targets a specific routing problem, but lacks prototype, deployment, or system-building signals."
|
||||
}
|
||||
|
||||
Example 5 — Experimental development
|
||||
|
||||
INPUT:
|
||||
title: "A deployed sensor platform for real-time flood monitoring"
|
||||
abstract: "We design, implement, and field-test a sensor platform for real-time flood monitoring. The system integrates wireless sensors, a data-processing pipeline, and a dashboard, and is evaluated during a pilot deployment with emergency services."
|
||||
venue: "Sensors"
|
||||
work_type: "article"
|
||||
topics: ["Sensor networks", "Flood monitoring", "Emergency management"]
|
||||
funders: []
|
||||
year: 2024
|
||||
language: "en"
|
||||
|
||||
OUTPUT:
|
||||
{
|
||||
"primary_category": "experimental_development",
|
||||
"applied_orientation_score": 85,
|
||||
"pasteur_quadrant": "pure_applied",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "abstract", "venue", "topics", "work_type"],
|
||||
"insufficient_context": false,
|
||||
"rationale": "The abstract describes design, implementation, and pilot deployment of a working monitoring platform."
|
||||
}
|
||||
|
||||
Example 6 — Title-only / insufficient context
|
||||
|
||||
INPUT:
|
||||
title: "Blockchain-based access control for digital services"
|
||||
abstract: null
|
||||
venue: "Lecture Notes in Computer Science"
|
||||
work_type: "book-chapter"
|
||||
topics: ["Blockchain", "Access control", "Computer security"]
|
||||
funders: []
|
||||
year: 2023
|
||||
language: "en"
|
||||
|
||||
OUTPUT:
|
||||
{
|
||||
"primary_category": "applied_research",
|
||||
"applied_orientation_score": 60,
|
||||
"pasteur_quadrant": "pure_applied",
|
||||
"confidence": "medium",
|
||||
"signals_used": ["title", "venue", "topics", "work_type"],
|
||||
"insufficient_context": true,
|
||||
"rationale": "The title and topics suggest a practical security aim, but no abstract is available."
|
||||
}
|
||||
|
||||
Example 7 — Non-research
|
||||
|
||||
INPUT:
|
||||
title: "Correction to: A prediction model for hospital readmission risk"
|
||||
abstract: null
|
||||
venue: "BMC Medical Informatics and Decision Making"
|
||||
work_type: "article"
|
||||
topics: []
|
||||
funders: []
|
||||
year: 2023
|
||||
language: "en"
|
||||
|
||||
OUTPUT:
|
||||
{
|
||||
"primary_category": "non_research",
|
||||
"applied_orientation_score": null,
|
||||
"pasteur_quadrant": "not_applicable",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title"],
|
||||
"insufficient_context": false,
|
||||
"rationale": "The title explicitly identifies the item as a correction, not an original research contribution."
|
||||
}
|
||||
@@ -0,0 +1,331 @@
|
||||
You are a research-policy analyst classifying the **orientation** of a single
|
||||
scholarly work. Use *only* the definitions and rules below. Do not invent your
|
||||
own notion of "applied" — apply the Frascati Manual definitions exactly.
|
||||
|
||||
### Frascati Manual (OECD, 2015) definitions — authoritative
|
||||
|
||||
**Basic research / Grundlagenforschung**
|
||||
Experimental or theoretical work undertaken primarily to acquire new knowledge
|
||||
of the underlying foundations of phenomena and observable facts, **without any
|
||||
particular application or use in view.**
|
||||
|
||||
**Applied research / Angewandte Forschung**
|
||||
Original investigation undertaken to acquire new knowledge, **directed primarily
|
||||
towards a specific, practical aim or objective.**
|
||||
|
||||
**Experimental development / Experimentelle Entwicklung**
|
||||
Systematic work, drawing on knowledge gained from research and practical
|
||||
experience and producing additional knowledge, **directed to producing new
|
||||
products or processes, or to improving existing ones** (includes prototyping,
|
||||
piloting, scale-up, demonstrators).
|
||||
|
||||
The three form a spectrum of increasing practical/product orientation:
|
||||
`basic_research → applied_research → experimental_development`.
|
||||
|
||||
### The Pasteur's-quadrant caveat (read carefully)
|
||||
|
||||
A work can *seek fundamental understanding* **and** *be motivated by an
|
||||
eventual use*. Frascati keeps such work in **basic research** when the immediate
|
||||
aim is fundamental knowledge, even if a use is mentioned. Do **not** upgrade a
|
||||
mechanistic/theoretical study to "applied" merely because it names a possible
|
||||
future application ("...to enable next-generation batteries", "...with potential
|
||||
clinical relevance"). Record this via the `pasteur_quadrant` field:
|
||||
|
||||
- `pure_basic` — fundamental understanding, no use mentioned.
|
||||
- `use_inspired_basic` — fundamental understanding, motivated by a use →
|
||||
still classified `basic_research`.
|
||||
- `pure_applied` — driven by a specific practical aim.
|
||||
- `not_applicable` — non-research item.
|
||||
|
||||
### Classification procedure
|
||||
|
||||
1. Determine whether the item is research at all. Editorials, corrections,
|
||||
prefaces, tables of contents, book reviews, pure datasets/software with no
|
||||
research narrative → `non_research`.
|
||||
2. Read every provided signal (see INPUT). Weight the abstract most; then
|
||||
venue, topics, funders, work type; the title last on its own.
|
||||
3. Decide the `primary_category` from the three Frascati definitions, applying
|
||||
the Pasteur caveat.
|
||||
4. Set `pasteur_quadrant` from the immediate orientation of the work.
|
||||
5. Assign `applied_orientation_score` only after the category and quadrant are
|
||||
fixed. The score is a dependent summary field, not independent evidence.
|
||||
Use only the hard category-score ranges below.
|
||||
6. Set `confidence` — **capped by the signals available** (see next section).
|
||||
|
||||
### Hard category-score consistency rules
|
||||
|
||||
Choose `primary_category` from the Frascati definitions first. Never change a
|
||||
semantically chosen category merely to fit a preferred score. Then choose the
|
||||
score only from the permitted range for that category and quadrant:
|
||||
|
||||
- `basic_research` + `pure_basic` → integer score **0–30**.
|
||||
- `basic_research` + `use_inspired_basic` → integer score **25–45**.
|
||||
- `applied_research` + `pure_applied` → integer score **31–70**.
|
||||
- `experimental_development` + `pure_applied` → integer score **71–100**.
|
||||
- `non_research` + `not_applicable` → score **null**.
|
||||
|
||||
These are hard output constraints, not rough anchors.
|
||||
|
||||
A highly practical work that has a specific practical objective but does not
|
||||
produce or improve a product/process, prototype, pilot, demonstrator, deployed
|
||||
system, or tested intervention remains `applied_research` and must receive a
|
||||
score of at most 70.
|
||||
|
||||
Use `experimental_development` only when the work itself reports systematic
|
||||
product/process development or improvement, prototyping, piloting, scale-up,
|
||||
demonstration, deployment, or an interventional clinical/field trial. A review,
|
||||
case report, observational analysis, diagnostic association study, or evaluation
|
||||
of an already established treatment is not experimental development merely
|
||||
because it is clinically important or strongly practical.
|
||||
|
||||
### Confidence caps (hard rules — do not exceed)
|
||||
|
||||
- Abstract present (+ any other signal) → up to **high**.
|
||||
- No abstract, but venue **and/or** topics present → at most **medium**.
|
||||
- Title only, nothing else usable → at most **low**, and set
|
||||
`insufficient_context: true`.
|
||||
Lower the confidence further whenever the signals are genuinely ambiguous
|
||||
(opaque/"cute" titles, interdisciplinary venues, one-word topics).
|
||||
|
||||
### Field-specific guidance
|
||||
|
||||
- **Humanities / social sciences:** default expectation is basic research;
|
||||
"applied" requires a clear practical aim (policy design, intervention,
|
||||
clinical/legal practice, engineering of a tool). Do not treat empirical or
|
||||
data-driven work as "applied" by itself — empiricism ≠ practical aim.
|
||||
- **Engineering / medicine / CS:** watch for the opposite bias; a system,
|
||||
device, protocol, pilot, or benchmark aimed at a working artifact is usually
|
||||
applied or experimental development, not basic. Distinguish a practical
|
||||
investigation from actual product/process development: practical importance
|
||||
alone does not make a work experimental development.
|
||||
- **Reviews / surveys:** classify by the orientation of the body of work
|
||||
reviewed; if unclear, `basic_research`, `low`/`medium` confidence.
|
||||
- **German titles:** classify identically; the definitions apply regardless of
|
||||
language. Do not penalize confidence merely because the text is German.
|
||||
|
||||
### Edge cases
|
||||
|
||||
- Named future application but fundamental method → `use_inspired_basic` /
|
||||
`basic_research`.
|
||||
- Methodological/theoretical paper *about* a technique with no target problem →
|
||||
`basic_research`.
|
||||
- Interventional clinical trial, field trial, prototype, pilot, scale-up,
|
||||
demonstrator, or deployment → `experimental_development`.
|
||||
- Review, case report, observational cohort/registry analysis, or evaluation of
|
||||
an established treatment without development of a new product/process →
|
||||
normally `applied_research` when it has a specific practical aim.
|
||||
- Cannot decide research vs. non-research from a bare title → `non_research`
|
||||
only if strongly indicated; otherwise best research guess + `low` confidence.
|
||||
|
||||
---
|
||||
|
||||
## INPUT
|
||||
|
||||
Provide any subset of the following. Absent fields are omitted (do not fabricate).
|
||||
|
||||
```
|
||||
title: {{title}}
|
||||
abstract: {{abstract}} # may be empty
|
||||
venue: {{venue_name}} # journal / book / conference / repository
|
||||
work_type: {{work_type}} # article, book-chapter, preprint, dataset, ...
|
||||
topics: {{topics}} # OpenAlex topics/concepts, comma-separated
|
||||
funders: {{funders}} # if available
|
||||
year: {{publication_year}}
|
||||
language: {{language}}
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## OUTPUT
|
||||
|
||||
Return **only** a single JSON object, no prose, no markdown fences:
|
||||
|
||||
```json
|
||||
{
|
||||
"primary_category": "basic_research | applied_research | experimental_development | non_research",
|
||||
"applied_orientation_score": 0,
|
||||
"pasteur_quadrant": "pure_basic | use_inspired_basic | pure_applied | not_applicable",
|
||||
"confidence": "high | medium | low",
|
||||
"signals_used": ["title", "abstract", "venue", "topics", "funders", "work_type"],
|
||||
"insufficient_context": false,
|
||||
"rationale": "<= 40 words, cite the decisive signal"
|
||||
}
|
||||
```
|
||||
|
||||
Rules: `applied_orientation_score` must be consistent with `primary_category`
|
||||
and `pasteur_quadrant` according to the hard ranges above.
|
||||
`non_research` → score `null`, `pasteur_quadrant: not_applicable`.
|
||||
`confidence` must respect the caps above. `signals_used` lists only fields that
|
||||
actually informed the decision.
|
||||
|
||||
Before returning JSON, perform this final self-check:
|
||||
1. Is `primary_category` supported by the immediate aim of the work?
|
||||
2. Is `pasteur_quadrant` compatible with that category?
|
||||
3. Is the score inside the hard permitted range?
|
||||
If step 3 fails, keep the semantically chosen category and choose a valid score
|
||||
inside its range. Do not change the category merely to preserve an invalid score.
|
||||
|
||||
---
|
||||
|
||||
## Few-shot examples
|
||||
|
||||
Example 1 — Basic research
|
||||
|
||||
INPUT:
|
||||
title: "Mechanisms of protein folding under molecular crowding"
|
||||
abstract: "We investigate the physical principles governing protein folding dynamics under different molecular crowding conditions using theoretical modeling and spectroscopy. The study aims to improve understanding of the underlying mechanisms of biomolecular structure formation."
|
||||
venue: "Journal of Molecular Biology"
|
||||
work_type: "article"
|
||||
topics: ["Protein folding", "Molecular biology", "Biophysics"]
|
||||
funders: []
|
||||
year: 2023
|
||||
language: "en"
|
||||
|
||||
OUTPUT:
|
||||
{
|
||||
"primary_category": "basic_research",
|
||||
"applied_orientation_score": 15,
|
||||
"pasteur_quadrant": "pure_basic",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "abstract", "topics", "work_type"],
|
||||
"insufficient_context": false,
|
||||
"rationale": "The abstract seeks underlying mechanisms of biomolecular structure formation without a specific practical objective."
|
||||
}
|
||||
|
||||
Example 2 — Use-inspired basic research
|
||||
|
||||
INPUT:
|
||||
title: "Understanding degradation mechanisms in perovskite solar-cell materials"
|
||||
abstract: "We study atomic-scale degradation pathways in perovskite materials under humidity and heat. The work aims to explain the fundamental mechanisms that limit stability, providing knowledge relevant to future solar-cell materials."
|
||||
venue: "Advanced Energy Materials"
|
||||
work_type: "article"
|
||||
topics: ["Materials science", "Perovskites", "Solar cells"]
|
||||
funders: []
|
||||
year: 2024
|
||||
language: "en"
|
||||
|
||||
OUTPUT:
|
||||
{
|
||||
"primary_category": "basic_research",
|
||||
"applied_orientation_score": 35,
|
||||
"pasteur_quadrant": "use_inspired_basic",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "abstract", "venue", "topics", "work_type"],
|
||||
"insufficient_context": false,
|
||||
"rationale": "The immediate aim is mechanistic understanding, although the knowledge is motivated by future solar-cell applications."
|
||||
}
|
||||
|
||||
Example 3 — Applied research
|
||||
|
||||
INPUT:
|
||||
title: "A prediction model for hospital readmission risk in heart-failure patients"
|
||||
abstract: "We develop and evaluate a statistical model to predict 30-day readmission risk in heart-failure patients using electronic health records. The objective is to support clinical decision-making and identify high-risk patients."
|
||||
venue: "BMC Medical Informatics and Decision Making"
|
||||
work_type: "article"
|
||||
topics: ["Clinical prediction", "Health informatics", "Heart failure"]
|
||||
funders: []
|
||||
year: 2022
|
||||
language: "en"
|
||||
|
||||
OUTPUT:
|
||||
{
|
||||
"primary_category": "applied_research",
|
||||
"applied_orientation_score": 65,
|
||||
"pasteur_quadrant": "pure_applied",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "abstract", "venue", "topics", "work_type"],
|
||||
"insufficient_context": false,
|
||||
"rationale": "The abstract states a specific practical objective: predicting readmission risk to support clinical decision-making."
|
||||
}
|
||||
|
||||
Example 4 — Applied research, not experimental development
|
||||
|
||||
INPUT:
|
||||
title: "A mathematical model for optimizing emergency vehicle routing"
|
||||
abstract: "We formulate and test an optimization model for emergency vehicle routing under time-dependent traffic conditions. The work addresses a practical planning problem, but does not report deployment, prototyping, or creation of a new operational system."
|
||||
venue: "European Journal of Operational Research"
|
||||
work_type: "article"
|
||||
topics: ["Optimization", "Vehicle routing", "Operations research"]
|
||||
funders: []
|
||||
year: 2021
|
||||
language: "en"
|
||||
|
||||
OUTPUT:
|
||||
{
|
||||
"primary_category": "applied_research",
|
||||
"applied_orientation_score": 70,
|
||||
"pasteur_quadrant": "pure_applied",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "abstract", "venue", "topics", "work_type"],
|
||||
"insufficient_context": false,
|
||||
"rationale": "The work targets a specific routing problem, but lacks prototype, deployment, or system-building signals."
|
||||
}
|
||||
|
||||
Example 5 — Experimental development
|
||||
|
||||
INPUT:
|
||||
title: "A deployed sensor platform for real-time flood monitoring"
|
||||
abstract: "We design, implement, and field-test a sensor platform for real-time flood monitoring. The system integrates wireless sensors, a data-processing pipeline, and a dashboard, and is evaluated during a pilot deployment with emergency services."
|
||||
venue: "Sensors"
|
||||
work_type: "article"
|
||||
topics: ["Sensor networks", "Flood monitoring", "Emergency management"]
|
||||
funders: []
|
||||
year: 2024
|
||||
language: "en"
|
||||
|
||||
OUTPUT:
|
||||
{
|
||||
"primary_category": "experimental_development",
|
||||
"applied_orientation_score": 85,
|
||||
"pasteur_quadrant": "pure_applied",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title", "abstract", "venue", "topics", "work_type"],
|
||||
"insufficient_context": false,
|
||||
"rationale": "The abstract describes design, implementation, and pilot deployment of a working monitoring platform."
|
||||
}
|
||||
|
||||
Example 6 — Title-only / insufficient context
|
||||
|
||||
INPUT:
|
||||
title: "Blockchain-based access control for digital services"
|
||||
abstract: null
|
||||
venue: "Lecture Notes in Computer Science"
|
||||
work_type: "book-chapter"
|
||||
topics: ["Blockchain", "Access control", "Computer security"]
|
||||
funders: []
|
||||
year: 2023
|
||||
language: "en"
|
||||
|
||||
OUTPUT:
|
||||
{
|
||||
"primary_category": "applied_research",
|
||||
"applied_orientation_score": 60,
|
||||
"pasteur_quadrant": "pure_applied",
|
||||
"confidence": "medium",
|
||||
"signals_used": ["title", "venue", "topics", "work_type"],
|
||||
"insufficient_context": true,
|
||||
"rationale": "The title and topics suggest a practical security aim, but no abstract is available."
|
||||
}
|
||||
|
||||
Example 7 — Non-research
|
||||
|
||||
INPUT:
|
||||
title: "Correction to: A prediction model for hospital readmission risk"
|
||||
abstract: null
|
||||
venue: "BMC Medical Informatics and Decision Making"
|
||||
work_type: "article"
|
||||
topics: []
|
||||
funders: []
|
||||
year: 2023
|
||||
language: "en"
|
||||
|
||||
OUTPUT:
|
||||
{
|
||||
"primary_category": "non_research",
|
||||
"applied_orientation_score": null,
|
||||
"pasteur_quadrant": "not_applicable",
|
||||
"confidence": "high",
|
||||
"signals_used": ["title"],
|
||||
"insufficient_context": false,
|
||||
"rationale": "The title explicitly identifies the item as a correction, not an original research contribution."
|
||||
}
|
||||
@@ -0,0 +1,926 @@
|
||||
from __future__ import annotations
|
||||
|
||||
import argparse
|
||||
import json
|
||||
from collections import Counter
|
||||
from datetime import datetime, timezone
|
||||
from pathlib import Path
|
||||
from typing import Any, Callable, Iterable
|
||||
|
||||
import requests
|
||||
|
||||
|
||||
ROOT = Path(__file__).resolve().parent
|
||||
|
||||
ES_BASE_URL = "https://project.nes.uni-due.de/elastic"
|
||||
ES_API_KEY = "am1wWXBaMEJEVWJoZkE5MnBaUlk6TWlvbW1LRlMzNjdDUHgzYmVkUmI5UQ=="
|
||||
|
||||
TARGET_INDEX = "work-classifications"
|
||||
WORKS_INDEX = "openalex-works*"
|
||||
WORK_YEAR_GTE = 1950
|
||||
|
||||
DEFAULT_AUTHORS_FILE = ROOT / "ude_authors_set.jsonl"
|
||||
DEFAULT_OUTPUT_DIR = ROOT / "evaluation"
|
||||
|
||||
REQUEST_TIMEOUT = 120.0
|
||||
SEARCH_PAGE_SIZE = 1000
|
||||
SCROLL_KEEP_ALIVE = "5m"
|
||||
SAMPLE_SIZE = 100
|
||||
|
||||
|
||||
def utc_now() -> str:
|
||||
return (
|
||||
datetime.now(timezone.utc)
|
||||
.isoformat()
|
||||
.replace(
|
||||
"+00:00",
|
||||
"Z",
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
def timestamp() -> str:
|
||||
return datetime.now(timezone.utc).strftime("%Y%m%dT%H%M%SZ")
|
||||
|
||||
|
||||
def auth_header() -> str:
|
||||
value = ES_API_KEY.strip()
|
||||
|
||||
if not value:
|
||||
raise RuntimeError("ES_API_KEY is empty.")
|
||||
|
||||
if value.startswith("ApiKey "):
|
||||
return value
|
||||
|
||||
return f"ApiKey {value}"
|
||||
|
||||
|
||||
def normalize_openalex_id(
|
||||
value: Any,
|
||||
prefix: str,
|
||||
) -> str | None:
|
||||
if not isinstance(value, str):
|
||||
return None
|
||||
|
||||
candidate = value.strip().rstrip("/")
|
||||
if not candidate:
|
||||
return None
|
||||
|
||||
short_id = candidate.rsplit("/", 1)[-1].upper()
|
||||
|
||||
if not short_id.startswith(prefix):
|
||||
return None
|
||||
|
||||
suffix = short_id[len(prefix) :]
|
||||
if not suffix.isdigit():
|
||||
return None
|
||||
|
||||
return f"https://openalex.org/{short_id}"
|
||||
|
||||
|
||||
def normalize_author_id(
|
||||
value: Any,
|
||||
) -> str | None:
|
||||
return normalize_openalex_id(
|
||||
value,
|
||||
"A",
|
||||
)
|
||||
|
||||
|
||||
def normalize_work_id(
|
||||
value: Any,
|
||||
) -> str | None:
|
||||
return normalize_openalex_id(
|
||||
value,
|
||||
"W",
|
||||
)
|
||||
|
||||
|
||||
def unwrap(
|
||||
record: dict[str, Any],
|
||||
) -> dict[str, Any]:
|
||||
for key in (
|
||||
"_source",
|
||||
"source",
|
||||
):
|
||||
nested = record.get(key)
|
||||
if isinstance(nested, dict):
|
||||
return nested
|
||||
|
||||
return record
|
||||
|
||||
|
||||
def iter_jsonl(
|
||||
path: Path,
|
||||
) -> Iterable[tuple[int, dict[str, Any]]]:
|
||||
if not path.exists():
|
||||
raise FileNotFoundError(f"File not found: {path}")
|
||||
|
||||
with path.open(
|
||||
"r",
|
||||
encoding="utf-8-sig",
|
||||
) as handle:
|
||||
for line_number, raw_line in enumerate(
|
||||
handle,
|
||||
start=1,
|
||||
):
|
||||
line = raw_line.strip()
|
||||
if not line:
|
||||
continue
|
||||
|
||||
try:
|
||||
value = json.loads(line)
|
||||
except json.JSONDecodeError as exc:
|
||||
raise ValueError(
|
||||
f"Invalid JSON at {path}:{line_number}: {exc}"
|
||||
) from exc
|
||||
|
||||
if not isinstance(value, dict):
|
||||
raise ValueError(f"Expected a JSON object at {path}:{line_number}.")
|
||||
|
||||
yield line_number, value
|
||||
|
||||
|
||||
def extract_author(
|
||||
record: dict[str, Any],
|
||||
) -> dict[str, Any]:
|
||||
source = unwrap(record)
|
||||
|
||||
ids = source.get("ids") if isinstance(source.get("ids"), dict) else {}
|
||||
|
||||
author_id = (
|
||||
normalize_author_id(source.get("id"))
|
||||
or normalize_author_id(ids.get("openalex"))
|
||||
or normalize_author_id(record.get("_id"))
|
||||
)
|
||||
|
||||
if author_id is None:
|
||||
raise ValueError("Author record has no valid OpenAlex ID.")
|
||||
|
||||
display_name = source.get("display_name")
|
||||
if not isinstance(display_name, str):
|
||||
display_name = None
|
||||
|
||||
return {
|
||||
"author_id": author_id,
|
||||
"display_name": display_name,
|
||||
}
|
||||
|
||||
|
||||
def load_authors(
|
||||
path: Path,
|
||||
) -> tuple[dict[str, dict[str, Any]], int]:
|
||||
authors: dict[str, dict[str, Any]] = {}
|
||||
duplicate_records = 0
|
||||
|
||||
for line_number, record in iter_jsonl(path):
|
||||
try:
|
||||
author = extract_author(record)
|
||||
except ValueError as exc:
|
||||
raise ValueError(f"{path}:{line_number}: {exc}") from exc
|
||||
|
||||
author_id = author["author_id"]
|
||||
|
||||
if author_id in authors:
|
||||
duplicate_records += 1
|
||||
|
||||
if (
|
||||
authors[author_id].get("display_name") is None
|
||||
and author.get("display_name") is not None
|
||||
):
|
||||
authors[author_id]["display_name"] = author["display_name"]
|
||||
continue
|
||||
|
||||
authors[author_id] = author
|
||||
|
||||
if not authors:
|
||||
raise RuntimeError(f"No authors were loaded from {path}.")
|
||||
|
||||
return authors, duplicate_records
|
||||
|
||||
|
||||
def extract_authorship_author_ids(
|
||||
source: dict[str, Any],
|
||||
) -> set[str]:
|
||||
result: set[str] = set()
|
||||
authorships = source.get("authorships")
|
||||
|
||||
if not isinstance(authorships, list):
|
||||
return result
|
||||
|
||||
for authorship in authorships:
|
||||
if not isinstance(authorship, dict):
|
||||
continue
|
||||
|
||||
author = authorship.get("author")
|
||||
if not isinstance(author, dict):
|
||||
continue
|
||||
|
||||
author_id = normalize_author_id(author.get("id"))
|
||||
if author_id is not None:
|
||||
result.add(author_id)
|
||||
|
||||
return result
|
||||
|
||||
|
||||
class ElasticsearchClient:
|
||||
def __init__(self) -> None:
|
||||
self.session = requests.Session()
|
||||
self.session.headers.update(
|
||||
{
|
||||
"Authorization": auth_header(),
|
||||
"Content-Type": "application/json",
|
||||
"Accept": "application/json",
|
||||
}
|
||||
)
|
||||
|
||||
def request(
|
||||
self,
|
||||
method: str,
|
||||
path: str,
|
||||
body: dict[str, Any] | None = None,
|
||||
) -> dict[str, Any]:
|
||||
response = self.session.request(
|
||||
method,
|
||||
(f"{ES_BASE_URL.rstrip('/')}/{path.lstrip('/')}"),
|
||||
json=body,
|
||||
timeout=REQUEST_TIMEOUT,
|
||||
)
|
||||
|
||||
if response.status_code >= 400:
|
||||
raise RuntimeError(
|
||||
f"Elasticsearch {response.status_code} "
|
||||
f"{method} {path}\n"
|
||||
f"{response.text[:4000]}"
|
||||
)
|
||||
|
||||
payload = response.json()
|
||||
if not isinstance(payload, dict):
|
||||
raise RuntimeError("Elasticsearch returned invalid JSON.")
|
||||
|
||||
return payload
|
||||
|
||||
|
||||
def index_count(
|
||||
client: ElasticsearchClient,
|
||||
index: str,
|
||||
) -> int:
|
||||
payload = client.request(
|
||||
"GET",
|
||||
f"{index}/_count",
|
||||
)
|
||||
count = payload.get("count")
|
||||
|
||||
if not isinstance(count, int):
|
||||
raise RuntimeError(f"Could not read count for index {index}.")
|
||||
|
||||
return count
|
||||
|
||||
|
||||
def total_hits_value(
|
||||
value: Any,
|
||||
) -> int:
|
||||
if isinstance(value, int):
|
||||
return value
|
||||
|
||||
if isinstance(value, dict):
|
||||
nested = value.get("value")
|
||||
if isinstance(nested, int):
|
||||
return nested
|
||||
|
||||
raise RuntimeError("Could not read Elasticsearch total hits.")
|
||||
|
||||
|
||||
def scan_scroll(
|
||||
client: ElasticsearchClient,
|
||||
index: str,
|
||||
body: dict[str, Any],
|
||||
label: str,
|
||||
handle_hit: Callable[[dict[str, Any]], None],
|
||||
) -> dict[str, int]:
|
||||
scroll_id: str | None = None
|
||||
fetched = 0
|
||||
reported_total: int | None = None
|
||||
|
||||
request_body = dict(body)
|
||||
request_body["size"] = SEARCH_PAGE_SIZE
|
||||
request_body["track_total_hits"] = True
|
||||
request_body["sort"] = ["_doc"]
|
||||
|
||||
try:
|
||||
response = client.request(
|
||||
"POST",
|
||||
(f"{index}/_search?scroll={SCROLL_KEEP_ALIVE}"),
|
||||
request_body,
|
||||
)
|
||||
|
||||
while True:
|
||||
current_scroll_id = response.get("_scroll_id")
|
||||
if isinstance(current_scroll_id, str) and current_scroll_id:
|
||||
scroll_id = current_scroll_id
|
||||
|
||||
hits_block = response.get("hits")
|
||||
if not isinstance(hits_block, dict):
|
||||
raise RuntimeError("Search response has no hits object.")
|
||||
|
||||
if reported_total is None:
|
||||
reported_total = total_hits_value(hits_block.get("total"))
|
||||
|
||||
hits = hits_block.get("hits")
|
||||
if not isinstance(hits, list):
|
||||
raise RuntimeError("Search response has no hits list.")
|
||||
|
||||
if not hits:
|
||||
break
|
||||
|
||||
for hit in hits:
|
||||
if not isinstance(hit, dict):
|
||||
raise RuntimeError("Search returned an invalid hit.")
|
||||
|
||||
handle_hit(hit)
|
||||
|
||||
fetched += len(hits)
|
||||
|
||||
print(f"{label}: {fetched}/{reported_total}")
|
||||
|
||||
if scroll_id is None:
|
||||
raise RuntimeError("Elasticsearch did not return a scroll ID.")
|
||||
|
||||
response = client.request(
|
||||
"POST",
|
||||
"_search/scroll",
|
||||
{
|
||||
"scroll": SCROLL_KEEP_ALIVE,
|
||||
"scroll_id": scroll_id,
|
||||
},
|
||||
)
|
||||
|
||||
finally:
|
||||
if scroll_id is not None:
|
||||
try:
|
||||
client.request(
|
||||
"DELETE",
|
||||
"_search/scroll",
|
||||
{"scroll_id": [scroll_id]},
|
||||
)
|
||||
except Exception as exc:
|
||||
print(f"Warning: could not clear Elasticsearch scroll context: {exc}")
|
||||
|
||||
if reported_total is None:
|
||||
raise RuntimeError(f"{label}: no total hit count was returned.")
|
||||
|
||||
if fetched != reported_total:
|
||||
raise RuntimeError(
|
||||
f"{label}: fetched {fetched} hits, "
|
||||
f"but Elasticsearch reported "
|
||||
f"{reported_total}."
|
||||
)
|
||||
|
||||
return {
|
||||
"reported_total": reported_total,
|
||||
"fetched": fetched,
|
||||
}
|
||||
|
||||
|
||||
def fetch_classified_work_ids(
|
||||
client: ElasticsearchClient,
|
||||
) -> tuple[
|
||||
int,
|
||||
int,
|
||||
set[str],
|
||||
int,
|
||||
]:
|
||||
initial_count = index_count(
|
||||
client,
|
||||
TARGET_INDEX,
|
||||
)
|
||||
|
||||
classified_work_ids: set[str] = set()
|
||||
|
||||
def handle_hit(
|
||||
hit: dict[str, Any],
|
||||
) -> None:
|
||||
source = hit.get("_source")
|
||||
es_id = hit.get("_id")
|
||||
|
||||
work_id = (
|
||||
normalize_work_id(source.get("work_id"))
|
||||
if isinstance(source, dict)
|
||||
else None
|
||||
) or normalize_work_id(es_id)
|
||||
|
||||
if work_id is None:
|
||||
raise RuntimeError(f"Invalid work ID in target index: {es_id}")
|
||||
|
||||
classified_work_ids.add(work_id)
|
||||
|
||||
stats = scan_scroll(
|
||||
client=client,
|
||||
index=TARGET_INDEX,
|
||||
body={
|
||||
"_source": ["work_id"],
|
||||
"query": {"match_all": {}},
|
||||
},
|
||||
label="Target index",
|
||||
handle_hit=handle_hit,
|
||||
)
|
||||
|
||||
final_count = index_count(
|
||||
client,
|
||||
TARGET_INDEX,
|
||||
)
|
||||
|
||||
if stats["reported_total"] != initial_count:
|
||||
raise RuntimeError(
|
||||
f"The target index changed before the scroll "
|
||||
f"snapshot was opened: count={initial_count}, "
|
||||
f"snapshot={stats['reported_total']}."
|
||||
)
|
||||
|
||||
if len(classified_work_ids) != stats["fetched"]:
|
||||
raise RuntimeError(
|
||||
f"The target index contains "
|
||||
f"{stats['fetched']} documents but only "
|
||||
f"{len(classified_work_ids)} unique work IDs."
|
||||
)
|
||||
|
||||
return (
|
||||
initial_count,
|
||||
final_count,
|
||||
classified_work_ids,
|
||||
stats["fetched"],
|
||||
)
|
||||
|
||||
|
||||
def source_work_query(
|
||||
author_ids: list[str],
|
||||
work_year_gte: int,
|
||||
) -> dict[str, Any]:
|
||||
return {
|
||||
"_source": [
|
||||
"id",
|
||||
"updated_date",
|
||||
"authorships.author.id",
|
||||
],
|
||||
"query": {
|
||||
"bool": {
|
||||
"filter": [
|
||||
{"range": {"publication_year": {"gte": work_year_gte}}},
|
||||
{
|
||||
"nested": {
|
||||
"path": "authorships",
|
||||
"query": {"terms": {"authorships.author.id": (author_ids)}},
|
||||
}
|
||||
},
|
||||
]
|
||||
}
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
def candidate_is_better(
|
||||
current: dict[str, Any],
|
||||
candidate: dict[str, Any],
|
||||
) -> bool:
|
||||
current_index = current.get("index")
|
||||
candidate_index = candidate.get("index")
|
||||
|
||||
if candidate_index == "openalex-works" and current_index != "openalex-works":
|
||||
return True
|
||||
|
||||
if current_index == "openalex-works" and candidate_index != "openalex-works":
|
||||
return False
|
||||
|
||||
current_updated = current.get("updated_date")
|
||||
candidate_updated = candidate.get("updated_date")
|
||||
|
||||
return isinstance(candidate_updated, str) and (
|
||||
not isinstance(current_updated, str) or candidate_updated > current_updated
|
||||
)
|
||||
|
||||
|
||||
def fetch_source_works(
|
||||
client: ElasticsearchClient,
|
||||
author_ids: set[str],
|
||||
work_year_gte: int,
|
||||
) -> tuple[
|
||||
dict[str, dict[str, Any]],
|
||||
dict[str, Any],
|
||||
]:
|
||||
selected_works: dict[str, dict[str, Any]] = {}
|
||||
|
||||
invalid_work_id_count = 0
|
||||
invalid_work_id_samples: list[str] = []
|
||||
no_listed_author_count = 0
|
||||
no_listed_author_samples: list[str] = []
|
||||
|
||||
def handle_hit(
|
||||
hit: dict[str, Any],
|
||||
) -> None:
|
||||
nonlocal invalid_work_id_count
|
||||
nonlocal no_listed_author_count
|
||||
|
||||
source = hit.get("_source")
|
||||
if not isinstance(source, dict):
|
||||
raise RuntimeError("A source work hit has no valid _source.")
|
||||
|
||||
work_id = normalize_work_id(source.get("id")) or normalize_work_id(
|
||||
hit.get("_id")
|
||||
)
|
||||
|
||||
if work_id is None:
|
||||
invalid_work_id_count += 1
|
||||
if len(invalid_work_id_samples) < SAMPLE_SIZE:
|
||||
invalid_work_id_samples.append(str(hit.get("_id")))
|
||||
return
|
||||
|
||||
work_author_ids = extract_authorship_author_ids(source)
|
||||
relevant_author_ids = work_author_ids & author_ids
|
||||
|
||||
if not relevant_author_ids:
|
||||
no_listed_author_count += 1
|
||||
if len(no_listed_author_samples) < SAMPLE_SIZE:
|
||||
no_listed_author_samples.append(work_id)
|
||||
return
|
||||
|
||||
candidate = {
|
||||
"index": hit.get("_index"),
|
||||
"updated_date": source.get("updated_date"),
|
||||
"author_ids": relevant_author_ids,
|
||||
}
|
||||
|
||||
current = selected_works.get(work_id)
|
||||
|
||||
if current is None or candidate_is_better(
|
||||
current,
|
||||
candidate,
|
||||
):
|
||||
selected_works[work_id] = candidate
|
||||
|
||||
stats = scan_scroll(
|
||||
client=client,
|
||||
index=WORKS_INDEX,
|
||||
body=source_work_query(
|
||||
sorted(author_ids),
|
||||
work_year_gte,
|
||||
),
|
||||
label="OpenAlex works",
|
||||
handle_hit=handle_hit,
|
||||
)
|
||||
|
||||
data_quality = {
|
||||
"source_raw_hits": stats["fetched"],
|
||||
"source_unique_works": len(selected_works),
|
||||
"source_duplicate_documents": (
|
||||
stats["fetched"]
|
||||
- len(selected_works)
|
||||
- invalid_work_id_count
|
||||
- no_listed_author_count
|
||||
),
|
||||
"source_invalid_work_ids": (invalid_work_id_count),
|
||||
"source_invalid_work_id_samples": (invalid_work_id_samples),
|
||||
"source_hits_without_listed_ude_author": (no_listed_author_count),
|
||||
"source_hits_without_listed_ude_author_samples": (no_listed_author_samples),
|
||||
}
|
||||
|
||||
return selected_works, data_quality
|
||||
|
||||
|
||||
def coverage_status(
|
||||
total: int,
|
||||
classified: int,
|
||||
) -> str:
|
||||
if total == 0:
|
||||
return "no_works"
|
||||
|
||||
if classified == 0:
|
||||
return "not_started"
|
||||
|
||||
if classified == total:
|
||||
return "complete"
|
||||
|
||||
return "partial"
|
||||
|
||||
|
||||
def author_sort_key(
|
||||
item: dict[str, Any],
|
||||
) -> tuple[Any, ...]:
|
||||
total = item["total_works"]
|
||||
classified = item["classified_works"]
|
||||
|
||||
coverage = classified / total if total > 0 else None
|
||||
|
||||
return (
|
||||
coverage is None,
|
||||
-coverage if coverage is not None else 0.0,
|
||||
-total,
|
||||
-classified,
|
||||
(
|
||||
item["display_name"].casefold()
|
||||
if isinstance(
|
||||
item["display_name"],
|
||||
str,
|
||||
)
|
||||
else ""
|
||||
),
|
||||
item["author_id"],
|
||||
)
|
||||
|
||||
|
||||
def build_report(
|
||||
*,
|
||||
authors_path: Path,
|
||||
authors: dict[str, dict[str, Any]],
|
||||
duplicate_author_records: int,
|
||||
initial_target_count: int,
|
||||
final_target_count: int,
|
||||
classified_work_ids: set[str],
|
||||
target_documents_scanned: int,
|
||||
selected_works: dict[str, dict[str, Any]],
|
||||
source_quality: dict[str, Any],
|
||||
work_year_gte: int,
|
||||
) -> dict[str, Any]:
|
||||
total_counts: Counter[str] = Counter()
|
||||
classified_counts: Counter[str] = Counter()
|
||||
|
||||
classified_source_work_ids: set[str] = set()
|
||||
|
||||
for work_id, work in selected_works.items():
|
||||
work_author_ids = work["author_ids"]
|
||||
is_classified = work_id in classified_work_ids
|
||||
|
||||
for author_id in work_author_ids:
|
||||
total_counts[author_id] += 1
|
||||
|
||||
if is_classified:
|
||||
classified_counts[author_id] += 1
|
||||
|
||||
if is_classified:
|
||||
classified_source_work_ids.add(work_id)
|
||||
|
||||
rows: list[dict[str, Any]] = []
|
||||
status_counts: Counter[str] = Counter()
|
||||
|
||||
author_work_assignments_total = 0
|
||||
author_work_assignments_classified = 0
|
||||
|
||||
for author_id, author in authors.items():
|
||||
total = total_counts.get(
|
||||
author_id,
|
||||
0,
|
||||
)
|
||||
classified = classified_counts.get(
|
||||
author_id,
|
||||
0,
|
||||
)
|
||||
unclassified = total - classified
|
||||
|
||||
coverage = classified / total if total > 0 else None
|
||||
|
||||
status = coverage_status(
|
||||
total,
|
||||
classified,
|
||||
)
|
||||
status_counts[status] += 1
|
||||
|
||||
author_work_assignments_total += total
|
||||
author_work_assignments_classified += classified
|
||||
|
||||
rows.append(
|
||||
{
|
||||
"author_id": author_id,
|
||||
"display_name": author["display_name"],
|
||||
"total_works": total,
|
||||
"classified_works": classified,
|
||||
"unclassified_works": (unclassified),
|
||||
"coverage_percent": (
|
||||
round(
|
||||
coverage * 100.0,
|
||||
2,
|
||||
)
|
||||
if coverage is not None
|
||||
else None
|
||||
),
|
||||
"coverage_status": status,
|
||||
}
|
||||
)
|
||||
|
||||
rows.sort(key=author_sort_key)
|
||||
|
||||
unique_work_coverage = (
|
||||
len(classified_source_work_ids) / len(selected_works)
|
||||
if selected_works
|
||||
else None
|
||||
)
|
||||
|
||||
assignment_coverage = (
|
||||
author_work_assignments_classified / author_work_assignments_total
|
||||
if author_work_assignments_total
|
||||
else None
|
||||
)
|
||||
|
||||
target_outside_source = classified_work_ids - set(selected_works)
|
||||
|
||||
return {
|
||||
"summary": {
|
||||
"created_at": utc_now(),
|
||||
"target_index": TARGET_INDEX,
|
||||
"works_index": WORKS_INDEX,
|
||||
"work_year_gte": work_year_gte,
|
||||
"authors_file": str(authors_path.resolve()),
|
||||
"authors_total": len(authors),
|
||||
"source_unique_works": len(selected_works),
|
||||
"target_index_documents": len(classified_work_ids),
|
||||
"target_index_initial_count": (initial_target_count),
|
||||
"target_index_final_count": (final_target_count),
|
||||
"target_index_count_consistent": (
|
||||
initial_target_count
|
||||
== final_target_count
|
||||
== target_documents_scanned
|
||||
== len(classified_work_ids)
|
||||
),
|
||||
"classified_source_works": len(classified_source_work_ids),
|
||||
"unclassified_source_works": (
|
||||
len(selected_works) - len(classified_source_work_ids)
|
||||
),
|
||||
"unique_work_coverage_percent": (
|
||||
round(
|
||||
unique_work_coverage * 100.0,
|
||||
2,
|
||||
)
|
||||
if unique_work_coverage is not None
|
||||
else None
|
||||
),
|
||||
"author_work_assignments_total": (author_work_assignments_total),
|
||||
"author_work_assignments_classified": (author_work_assignments_classified),
|
||||
"author_work_assignment_coverage_percent": (
|
||||
round(
|
||||
assignment_coverage * 100.0,
|
||||
2,
|
||||
)
|
||||
if assignment_coverage is not None
|
||||
else None
|
||||
),
|
||||
"authors_by_status": {
|
||||
"complete": status_counts["complete"],
|
||||
"partial": status_counts["partial"],
|
||||
"not_started": status_counts["not_started"],
|
||||
"no_works": status_counts["no_works"],
|
||||
},
|
||||
},
|
||||
"data_quality": {
|
||||
"duplicate_author_records": (duplicate_author_records),
|
||||
**source_quality,
|
||||
"target_documents_outside_source_work_set": (len(target_outside_source)),
|
||||
"target_documents_outside_source_work_set_samples": (
|
||||
sorted(target_outside_source)[:SAMPLE_SIZE]
|
||||
),
|
||||
},
|
||||
"sorting": {
|
||||
"primary": ("coverage percentage descending"),
|
||||
"secondary": ("total_works descending"),
|
||||
"tertiary": (
|
||||
"classified_works descending, "
|
||||
"display_name ascending, "
|
||||
"author_id ascending"
|
||||
),
|
||||
"authors_with_no_works": "last",
|
||||
},
|
||||
"notes": [
|
||||
(
|
||||
"total_works is calculated directly from "
|
||||
"openalex-works* for the listed UDE authors."
|
||||
),
|
||||
(
|
||||
f"Only works with publication_year >= "
|
||||
f"{work_year_gte} are included, matching the "
|
||||
"classification pipeline."
|
||||
),
|
||||
(
|
||||
"Duplicate work documents across matching "
|
||||
"OpenAlex indices are reduced to one work ID. "
|
||||
"The openalex-works document is preferred; "
|
||||
"otherwise the newest updated_date is used."
|
||||
),
|
||||
(
|
||||
"A coauthored work is counted once for every "
|
||||
"listed UDE author on that work."
|
||||
),
|
||||
(
|
||||
"The script is read-only and does not modify "
|
||||
"Elasticsearch or the author JSONL file."
|
||||
),
|
||||
],
|
||||
"authors": rows,
|
||||
}
|
||||
|
||||
|
||||
def parse_args() -> argparse.Namespace:
|
||||
parser = argparse.ArgumentParser(
|
||||
description=(
|
||||
"Report classification coverage for every author "
|
||||
"in a UDE author JSONL list using OpenAlex works "
|
||||
"stored in Elasticsearch."
|
||||
)
|
||||
)
|
||||
parser.add_argument(
|
||||
"--authors",
|
||||
type=Path,
|
||||
default=DEFAULT_AUTHORS_FILE,
|
||||
help=("Path to ude_authors_set.jsonl."),
|
||||
)
|
||||
parser.add_argument(
|
||||
"--work-year-gte",
|
||||
type=int,
|
||||
default=WORK_YEAR_GTE,
|
||||
help=("Minimum publication year included in total_works."),
|
||||
)
|
||||
parser.add_argument(
|
||||
"--output",
|
||||
type=Path,
|
||||
default=None,
|
||||
help=("Optional output JSON path."),
|
||||
)
|
||||
return parser.parse_args()
|
||||
|
||||
|
||||
def main() -> None:
|
||||
args = parse_args()
|
||||
|
||||
authors_path = args.authors.resolve()
|
||||
output_path = (
|
||||
args.output.resolve()
|
||||
if args.output is not None
|
||||
else (
|
||||
DEFAULT_OUTPUT_DIR
|
||||
/ (f"ude_author_classification_coverage_{timestamp()}.json")
|
||||
).resolve()
|
||||
)
|
||||
|
||||
authors, duplicate_author_records = load_authors(authors_path)
|
||||
author_ids = set(authors)
|
||||
|
||||
print(f"UDE authors loaded: {len(authors)}")
|
||||
|
||||
client = ElasticsearchClient()
|
||||
|
||||
(
|
||||
initial_target_count,
|
||||
final_target_count,
|
||||
classified_work_ids,
|
||||
target_documents_scanned,
|
||||
) = fetch_classified_work_ids(client)
|
||||
|
||||
print(f"Unique classified work IDs: {len(classified_work_ids)}")
|
||||
|
||||
selected_works, source_quality = fetch_source_works(
|
||||
client=client,
|
||||
author_ids=author_ids,
|
||||
work_year_gte=args.work_year_gte,
|
||||
)
|
||||
|
||||
print(f"Unique source works: {len(selected_works)}")
|
||||
|
||||
report = build_report(
|
||||
authors_path=authors_path,
|
||||
authors=authors,
|
||||
duplicate_author_records=(duplicate_author_records),
|
||||
initial_target_count=(initial_target_count),
|
||||
final_target_count=(final_target_count),
|
||||
classified_work_ids=(classified_work_ids),
|
||||
target_documents_scanned=(target_documents_scanned),
|
||||
selected_works=selected_works,
|
||||
source_quality=source_quality,
|
||||
work_year_gte=args.work_year_gte,
|
||||
)
|
||||
|
||||
output_path.parent.mkdir(
|
||||
parents=True,
|
||||
exist_ok=True,
|
||||
)
|
||||
output_path.write_text(
|
||||
json.dumps(
|
||||
report,
|
||||
ensure_ascii=False,
|
||||
indent=2,
|
||||
),
|
||||
encoding="utf-8",
|
||||
)
|
||||
|
||||
summary = report["summary"]
|
||||
statuses = summary["authors_by_status"]
|
||||
|
||||
print(f"Classified source works: {summary['classified_source_works']}")
|
||||
print(f"Unique work coverage: {summary['unique_work_coverage_percent']}%")
|
||||
print(
|
||||
"Authors complete/partial/not started/no works: "
|
||||
f"{statuses['complete']}/"
|
||||
f"{statuses['partial']}/"
|
||||
f"{statuses['not_started']}/"
|
||||
f"{statuses['no_works']}"
|
||||
)
|
||||
print(f"Output: {output_path}")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
@@ -0,0 +1,2 @@
|
||||
openai>=1.0.0
|
||||
requests>=2.31.0
|
||||
@@ -0,0 +1,45 @@
|
||||
{
|
||||
"run_id": "20260713_212701_723948",
|
||||
"started_at": "2026-07-13T21:27:01Z",
|
||||
"finished_at": "2026-07-13T21:30:12Z",
|
||||
"duration_seconds": 191.047,
|
||||
"status": "completed",
|
||||
"error": null,
|
||||
"parameters": {
|
||||
"limit": 186,
|
||||
"workers": 20,
|
||||
"model": "gemma4-e4b",
|
||||
"prompt_version": "frascati_v1"
|
||||
},
|
||||
"classification": {
|
||||
"llm_completed": 186,
|
||||
"valid": 176,
|
||||
"invalid": 10,
|
||||
"categories": {
|
||||
"basic_research": 105,
|
||||
"applied_research": 69,
|
||||
"experimental_development": 8,
|
||||
"non_research": 4
|
||||
},
|
||||
"validation_errors": {
|
||||
"applied_research_score_outside_expected_range": 8,
|
||||
"basic_research_quadrant_score_mismatch": 2
|
||||
}
|
||||
},
|
||||
"indexing": {
|
||||
"newly_indexed": 186,
|
||||
"recovered_from_ready": 0
|
||||
},
|
||||
"token_usage": {
|
||||
"prompt_tokens": 603490,
|
||||
"cached_prompt_tokens": 541728,
|
||||
"uncached_prompt_tokens": 61762,
|
||||
"completion_tokens": 158741,
|
||||
"real_total_usage": 220503
|
||||
},
|
||||
"throughput_indexed_per_hour": 3504.9,
|
||||
"sqlite_counts_after_run": {
|
||||
"indexed": 388,
|
||||
"pending": 6
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
{
|
||||
"run_id": "20260717_005426_057540",
|
||||
"started_at": "2026-07-17T00:54:26Z",
|
||||
"finished_at": "2026-07-17T00:54:57Z",
|
||||
"duration_seconds": 31.063,
|
||||
"status": "completed",
|
||||
"error": null,
|
||||
"parameters": {
|
||||
"limit": 2,
|
||||
"workers": 1,
|
||||
"model": "gemma4-e4b",
|
||||
"prompt_version": "frascati_v1",
|
||||
"sqlite_file": "C:\\Users\\Roman\\Desktop\\smartguide\\llm_evaluations\\basic_applied_experimental\\classification_pipeline_v2.sqlite3",
|
||||
"target_index": "work-classifications",
|
||||
"preflight_only": false
|
||||
},
|
||||
"classification": {
|
||||
"llm_completed": 2,
|
||||
"valid": 2,
|
||||
"invalid": 0,
|
||||
"categories": {
|
||||
"basic_research": 2
|
||||
},
|
||||
"validation_errors": {}
|
||||
},
|
||||
"indexing": {
|
||||
"newly_indexed": 2,
|
||||
"recovered_from_ready": 0
|
||||
},
|
||||
"token_usage": {
|
||||
"prompt_tokens": 6351,
|
||||
"cached_prompt_tokens": 5824,
|
||||
"uncached_prompt_tokens": 527,
|
||||
"completion_tokens": 1707,
|
||||
"real_total_usage": 2234
|
||||
},
|
||||
"throughput_indexed_per_hour": 231.79,
|
||||
"sqlite_counts_after_run": {
|
||||
"indexed": 391,
|
||||
"pending": 3
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,49 @@
|
||||
{
|
||||
"run_id": "20260717_005603_805495",
|
||||
"started_at": "2026-07-17T00:56:03Z",
|
||||
"finished_at": "2026-07-17T01:12:01Z",
|
||||
"duration_seconds": 958.094,
|
||||
"status": "completed",
|
||||
"error": null,
|
||||
"parameters": {
|
||||
"limit": 1000,
|
||||
"workers": 20,
|
||||
"model": "gemma4-e4b",
|
||||
"prompt_version": "frascati_v1",
|
||||
"sqlite_file": "C:\\Users\\Roman\\Desktop\\smartguide\\llm_evaluations\\basic_applied_experimental\\classification_pipeline_v2.sqlite3",
|
||||
"target_index": "work-classifications",
|
||||
"preflight_only": false
|
||||
},
|
||||
"classification": {
|
||||
"llm_completed": 1000,
|
||||
"valid": 927,
|
||||
"invalid": 73,
|
||||
"categories": {
|
||||
"basic_research": 562,
|
||||
"applied_research": 340,
|
||||
"experimental_development": 67,
|
||||
"non_research": 31
|
||||
},
|
||||
"validation_errors": {
|
||||
"applied_research_score_outside_expected_range": 60,
|
||||
"basic_research_quadrant_score_mismatch": 12,
|
||||
"applied_research_quadrant_mismatch": 1
|
||||
}
|
||||
},
|
||||
"indexing": {
|
||||
"newly_indexed": 1000,
|
||||
"recovered_from_ready": 0
|
||||
},
|
||||
"token_usage": {
|
||||
"prompt_tokens": 3240183,
|
||||
"cached_prompt_tokens": 2912992,
|
||||
"uncached_prompt_tokens": 327191,
|
||||
"completion_tokens": 839984,
|
||||
"real_total_usage": 1167175
|
||||
},
|
||||
"throughput_indexed_per_hour": 3757.46,
|
||||
"sqlite_counts_after_run": {
|
||||
"indexed": 1392,
|
||||
"pending": 191
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
{
|
||||
"run_id": "20260717_011548_698699",
|
||||
"started_at": "2026-07-17T01:15:48Z",
|
||||
"finished_at": "2026-07-17T01:28:58Z",
|
||||
"duration_seconds": 790.125,
|
||||
"status": "completed",
|
||||
"error": null,
|
||||
"parameters": {
|
||||
"limit": 1000,
|
||||
"workers": 25,
|
||||
"model": "gemma4-e4b",
|
||||
"prompt_version": "frascati_v1",
|
||||
"sqlite_file": "C:\\Users\\Roman\\Desktop\\smartguide\\llm_evaluations\\basic_applied_experimental\\classification_pipeline_v2.sqlite3",
|
||||
"target_index": "work-classifications",
|
||||
"preflight_only": false
|
||||
},
|
||||
"classification": {
|
||||
"llm_completed": 1000,
|
||||
"valid": 940,
|
||||
"invalid": 60,
|
||||
"categories": {
|
||||
"basic_research": 575,
|
||||
"non_research": 16,
|
||||
"applied_research": 338,
|
||||
"experimental_development": 71
|
||||
},
|
||||
"validation_errors": {
|
||||
"applied_research_score_outside_expected_range": 54,
|
||||
"basic_research_quadrant_score_mismatch": 6
|
||||
}
|
||||
},
|
||||
"indexing": {
|
||||
"newly_indexed": 1000,
|
||||
"recovered_from_ready": 0
|
||||
},
|
||||
"token_usage": {
|
||||
"prompt_tokens": 3231350,
|
||||
"cached_prompt_tokens": 2913504,
|
||||
"uncached_prompt_tokens": 317846,
|
||||
"completion_tokens": 835555,
|
||||
"real_total_usage": 1153401
|
||||
},
|
||||
"throughput_indexed_per_hour": 4556.24,
|
||||
"sqlite_counts_after_run": {
|
||||
"indexed": 2392,
|
||||
"pending": 169
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
{
|
||||
"run_id": "20260717_013708_966462",
|
||||
"started_at": "2026-07-17T01:37:08Z",
|
||||
"finished_at": "2026-07-17T01:49:01Z",
|
||||
"duration_seconds": 712.64,
|
||||
"status": "completed",
|
||||
"error": null,
|
||||
"parameters": {
|
||||
"limit": 1000,
|
||||
"workers": 30,
|
||||
"model": "gemma4-e4b",
|
||||
"prompt_version": "frascati_v1",
|
||||
"sqlite_file": "C:\\Users\\Roman\\Desktop\\smartguide\\llm_evaluations\\basic_applied_experimental\\classification_pipeline_v2.sqlite3",
|
||||
"target_index": "work-classifications",
|
||||
"preflight_only": false
|
||||
},
|
||||
"classification": {
|
||||
"llm_completed": 1000,
|
||||
"valid": 948,
|
||||
"invalid": 52,
|
||||
"categories": {
|
||||
"applied_research": 360,
|
||||
"basic_research": 557,
|
||||
"experimental_development": 68,
|
||||
"non_research": 15
|
||||
},
|
||||
"validation_errors": {
|
||||
"applied_research_score_outside_expected_range": 49,
|
||||
"basic_research_quadrant_score_mismatch": 3
|
||||
}
|
||||
},
|
||||
"indexing": {
|
||||
"newly_indexed": 1000,
|
||||
"recovered_from_ready": 0
|
||||
},
|
||||
"token_usage": {
|
||||
"prompt_tokens": 3224853,
|
||||
"cached_prompt_tokens": 2927360,
|
||||
"uncached_prompt_tokens": 297493,
|
||||
"completion_tokens": 827150,
|
||||
"real_total_usage": 1124643
|
||||
},
|
||||
"throughput_indexed_per_hour": 5051.64,
|
||||
"sqlite_counts_after_run": {
|
||||
"indexed": 3393,
|
||||
"pending": 150
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
{
|
||||
"run_id": "20260717_020319_001747",
|
||||
"started_at": "2026-07-17T02:03:19Z",
|
||||
"finished_at": "2026-07-17T02:14:00Z",
|
||||
"duration_seconds": 641.141,
|
||||
"status": "completed",
|
||||
"error": null,
|
||||
"parameters": {
|
||||
"limit": 1000,
|
||||
"workers": 35,
|
||||
"model": "gemma4-e4b",
|
||||
"prompt_version": "frascati_v1",
|
||||
"sqlite_file": "C:\\Users\\Roman\\Desktop\\smartguide\\llm_evaluations\\basic_applied_experimental\\classification_pipeline_v2.sqlite3",
|
||||
"target_index": "work-classifications",
|
||||
"preflight_only": false
|
||||
},
|
||||
"classification": {
|
||||
"llm_completed": 1000,
|
||||
"valid": 935,
|
||||
"invalid": 65,
|
||||
"categories": {
|
||||
"basic_research": 559,
|
||||
"non_research": 22,
|
||||
"applied_research": 342,
|
||||
"experimental_development": 77
|
||||
},
|
||||
"validation_errors": {
|
||||
"applied_research_score_outside_expected_range": 58,
|
||||
"basic_research_quadrant_score_mismatch": 7
|
||||
}
|
||||
},
|
||||
"indexing": {
|
||||
"newly_indexed": 1000,
|
||||
"recovered_from_ready": 0
|
||||
},
|
||||
"token_usage": {
|
||||
"prompt_tokens": 3234874,
|
||||
"cached_prompt_tokens": 2913440,
|
||||
"uncached_prompt_tokens": 321434,
|
||||
"completion_tokens": 831117,
|
||||
"real_total_usage": 1152551
|
||||
},
|
||||
"throughput_indexed_per_hour": 5614.99,
|
||||
"sqlite_counts_after_run": {
|
||||
"indexed": 4393,
|
||||
"pending": 134
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,50 @@
|
||||
{
|
||||
"run_id": "20260717_022730_111266",
|
||||
"started_at": "2026-07-17T02:27:30Z",
|
||||
"finished_at": "2026-07-17T02:37:39Z",
|
||||
"duration_seconds": 609.859,
|
||||
"status": "completed",
|
||||
"error": null,
|
||||
"parameters": {
|
||||
"limit": 1000,
|
||||
"workers": 40,
|
||||
"model": "gemma4-e4b",
|
||||
"prompt_version": "frascati_v1",
|
||||
"sqlite_file": "C:\\Users\\Roman\\Desktop\\smartguide\\llm_evaluations\\basic_applied_experimental\\classification_pipeline_v2.sqlite3",
|
||||
"target_index": "work-classifications",
|
||||
"preflight_only": false
|
||||
},
|
||||
"classification": {
|
||||
"llm_completed": 1000,
|
||||
"valid": 915,
|
||||
"invalid": 85,
|
||||
"categories": {
|
||||
"applied_research": 382,
|
||||
"non_research": 29,
|
||||
"basic_research": 526,
|
||||
"experimental_development": 63
|
||||
},
|
||||
"validation_errors": {
|
||||
"applied_research_score_outside_expected_range": 74,
|
||||
"basic_research_quadrant_score_mismatch": 9,
|
||||
"basic_research_quadrant_mismatch": 1,
|
||||
"applied_research_quadrant_mismatch": 1
|
||||
}
|
||||
},
|
||||
"indexing": {
|
||||
"newly_indexed": 1000,
|
||||
"recovered_from_ready": 0
|
||||
},
|
||||
"token_usage": {
|
||||
"prompt_tokens": 3247991,
|
||||
"cached_prompt_tokens": 2913120,
|
||||
"uncached_prompt_tokens": 334871,
|
||||
"completion_tokens": 835172,
|
||||
"real_total_usage": 1170043
|
||||
},
|
||||
"throughput_indexed_per_hour": 5903.0,
|
||||
"sqlite_counts_after_run": {
|
||||
"indexed": 5393,
|
||||
"pending": 122
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,51 @@
|
||||
{
|
||||
"run_id": "20260717_030100_386210",
|
||||
"started_at": "2026-07-17T03:01:00Z",
|
||||
"finished_at": "2026-07-17T06:38:43Z",
|
||||
"duration_seconds": 13062.969,
|
||||
"status": "completed",
|
||||
"error": null,
|
||||
"parameters": {
|
||||
"limit": 10000,
|
||||
"workers": 30,
|
||||
"model": "gemma4-e4b",
|
||||
"prompt_version": "frascati_v1",
|
||||
"sqlite_file": "C:\\Users\\Roman\\Desktop\\smartguide\\llm_evaluations\\basic_applied_experimental\\classification_pipeline_v2.sqlite3",
|
||||
"target_index": "work-classifications",
|
||||
"preflight_only": false
|
||||
},
|
||||
"classification": {
|
||||
"llm_completed": 10000,
|
||||
"valid": 9089,
|
||||
"invalid": 911,
|
||||
"categories": {
|
||||
"non_research": 708,
|
||||
"basic_research": 4382,
|
||||
"applied_research": 4275,
|
||||
"experimental_development": 635
|
||||
},
|
||||
"validation_errors": {
|
||||
"basic_research_quadrant_score_mismatch": 55,
|
||||
"applied_research_score_outside_expected_range": 844,
|
||||
"applied_research_quadrant_mismatch": 10,
|
||||
"experimental_development_quadrant_mismatch": 2,
|
||||
"experimental_development_score_outside_expected_range": 1
|
||||
}
|
||||
},
|
||||
"indexing": {
|
||||
"newly_indexed": 10000,
|
||||
"recovered_from_ready": 0
|
||||
},
|
||||
"token_usage": {
|
||||
"prompt_tokens": 32719632,
|
||||
"cached_prompt_tokens": 29184896,
|
||||
"uncached_prompt_tokens": 3534736,
|
||||
"completion_tokens": 8554523,
|
||||
"real_total_usage": 12089259
|
||||
},
|
||||
"throughput_indexed_per_hour": 2755.88,
|
||||
"sqlite_counts_after_run": {
|
||||
"indexed": 15402,
|
||||
"pending": 185
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
{
|
||||
"run_id": "20260717_175129_424220",
|
||||
"started_at": "2026-07-17T17:51:29Z",
|
||||
"finished_at": "2026-07-17T18:05:54Z",
|
||||
"duration_seconds": 865.141,
|
||||
"status": "completed",
|
||||
"error": null,
|
||||
"parameters": {
|
||||
"limit": 1000,
|
||||
"workers": 25,
|
||||
"model": "gemma4-e4b",
|
||||
"prompt_version": "frascati_hard_ranges_v2",
|
||||
"target_index": "work-classifications",
|
||||
"bulk_batch_size": 200,
|
||||
"state_storage": "memory_only",
|
||||
"preflight_only": false
|
||||
},
|
||||
"classification": {
|
||||
"llm_completed": 1000,
|
||||
"valid": 1000,
|
||||
"invalid": 0,
|
||||
"categories": {
|
||||
"basic_research": 531,
|
||||
"applied_research": 386,
|
||||
"non_research": 26,
|
||||
"experimental_development": 57
|
||||
},
|
||||
"validation_errors": {}
|
||||
},
|
||||
"indexing": {
|
||||
"newly_indexed": 1000,
|
||||
"bulk_requests": 8,
|
||||
"bulk_documents_submitted": 1200,
|
||||
"bulk_failures": 0
|
||||
},
|
||||
"token_usage": {
|
||||
"prompt_tokens": 3711992,
|
||||
"cached_prompt_tokens": 3424000,
|
||||
"uncached_prompt_tokens": 287992,
|
||||
"completion_tokens": 920369,
|
||||
"real_total_usage": 1208361
|
||||
},
|
||||
"throughput_indexed_per_hour": 4161.17
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
{
|
||||
"run_id": "20260717_182758_995379",
|
||||
"started_at": "2026-07-17T18:27:58Z",
|
||||
"finished_at": "2026-07-17T18:41:42Z",
|
||||
"duration_seconds": 823.015,
|
||||
"status": "completed",
|
||||
"error": null,
|
||||
"parameters": {
|
||||
"limit": 1000,
|
||||
"workers": 25,
|
||||
"model": "gemma4-e4b",
|
||||
"prompt_version": "frascati_hard_ranges_v2",
|
||||
"target_index": "work-classifications",
|
||||
"bulk_batch_size": 200,
|
||||
"state_storage": "memory_only",
|
||||
"preflight_only": false
|
||||
},
|
||||
"classification": {
|
||||
"llm_completed": 1000,
|
||||
"valid": 1000,
|
||||
"invalid": 0,
|
||||
"categories": {
|
||||
"basic_research": 518,
|
||||
"applied_research": 401,
|
||||
"experimental_development": 60,
|
||||
"non_research": 21
|
||||
},
|
||||
"validation_errors": {}
|
||||
},
|
||||
"indexing": {
|
||||
"newly_indexed": 1000,
|
||||
"bulk_requests": 6,
|
||||
"bulk_documents_submitted": 1000,
|
||||
"bulk_failures": 0
|
||||
},
|
||||
"token_usage": {
|
||||
"prompt_tokens": 3708032,
|
||||
"cached_prompt_tokens": 3424000,
|
||||
"uncached_prompt_tokens": 284032,
|
||||
"completion_tokens": 913796,
|
||||
"real_total_usage": 1197828
|
||||
},
|
||||
"throughput_indexed_per_hour": 4374.16
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
[
|
||||
{
|
||||
"id": "https://openalex.org/A5089242868",
|
||||
"display_name": "Lucas Davi"
|
||||
},
|
||||
{
|
||||
"id": "https://openalex.org/A5093075883",
|
||||
"display_name": "Arman Arzani"
|
||||
},
|
||||
{
|
||||
"id": "https://openalex.org/A5075352419",
|
||||
"display_name": "Markus Winterer"
|
||||
},
|
||||
{
|
||||
"id": "https://openalex.org/A5048213587",
|
||||
"display_name": "Frederik Ahlemann"
|
||||
},
|
||||
{
|
||||
"id": "https://openalex.org/A5088184531",
|
||||
"display_name": "Alf Kimms"
|
||||
},
|
||||
{
|
||||
"id": "https://openalex.org/A5075663980",
|
||||
"display_name": "Ursula Neumann"
|
||||
},
|
||||
{
|
||||
"id": "https://openalex.org/A5035144962",
|
||||
"display_name": "Christine Arentz"
|
||||
},
|
||||
{
|
||||
"id": "https://openalex.org/A5058038339",
|
||||
"display_name": "Pascal Dreher"
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,341 @@
|
||||
from typing import Any, Iterator
|
||||
from elasticsearch import Elasticsearch
|
||||
from collections import defaultdict
|
||||
import json
|
||||
from pathlib import Path
|
||||
from elasticsearch import NotFoundError
|
||||
# elasticseach library required. Here used elasticsearch==8.0.0
|
||||
# estimated execution time: 3-5 Minutes
|
||||
|
||||
def remove_year(patent_number: str) -> str:
|
||||
"""Remove a leading 4-digit year from the front of a patent number, if present.
|
||||
|
||||
Only strips the first 4 characters when they are all digits (i.e. actually
|
||||
look like a year). Otherwise the ID is returned unchanged.
|
||||
"""
|
||||
prefix = patent_number[:4]
|
||||
if len(patent_number) > 4 and prefix.isdigit():
|
||||
return patent_number[4:]
|
||||
return patent_number
|
||||
|
||||
|
||||
class PatentCounter:
|
||||
def __init__(
|
||||
self,
|
||||
source_es: Elasticsearch,
|
||||
target_es: Elasticsearch,
|
||||
source_index: str,
|
||||
results_file: str = "patent_matches.json",
|
||||
):
|
||||
self.source_es = source_es
|
||||
self.target_es = target_es
|
||||
self.source_index = source_index
|
||||
self.results_file = Path(results_file)
|
||||
|
||||
self.match_stats = defaultdict(int)
|
||||
|
||||
def _build_variations_uspto(self, patent_id: str) -> dict[str, str]:
|
||||
raw_id = patent_id.upper().removeprefix("US")
|
||||
no_year = remove_year(raw_id)
|
||||
|
||||
return {
|
||||
"publication_number": raw_id,
|
||||
"publication_number_no_year": no_year,
|
||||
"application_number": raw_id,
|
||||
"application_number_no_year": no_year,
|
||||
}
|
||||
|
||||
def _build_variations_epo(self, patent_id: str) -> dict[str, str]:
|
||||
raw_id = patent_id.upper().removeprefix("EP")
|
||||
no_year = remove_year(raw_id)
|
||||
|
||||
return {
|
||||
"doc_number": raw_id,
|
||||
"doc_number_no_year": no_year,
|
||||
"application_number": raw_id,
|
||||
"application_number_no_year": no_year,
|
||||
}
|
||||
|
||||
def _uspto_query_by_id(
|
||||
self,
|
||||
patent_id: str,
|
||||
size: int = 100,
|
||||
) -> dict[str, Any]:
|
||||
variations = self._build_variations_uspto(patent_id)
|
||||
body = {
|
||||
"size": size,
|
||||
"track_total_hits": True,
|
||||
"_source": [
|
||||
"publication_number",
|
||||
"application_number",
|
||||
"title",
|
||||
],
|
||||
"query": {
|
||||
"bool": {
|
||||
"should": [
|
||||
{"term": {"publication_number": variations["publication_number"]}},
|
||||
{"term": {"publication_number": variations["publication_number_no_year"]}},
|
||||
{"term": {"application_number": variations["application_number"]}},
|
||||
{"term": {"application_number": variations["application_number_no_year"]}},
|
||||
],
|
||||
"minimum_should_match": 1,
|
||||
}
|
||||
},
|
||||
}
|
||||
#print(f"USPTO query for {patent_id}: {json.dumps(body)}") # Debugging line
|
||||
return body
|
||||
|
||||
def _epo_query_by_id(
|
||||
self,
|
||||
patent_id: str,
|
||||
size: int = 100,
|
||||
) -> dict[str, Any]:
|
||||
variations = self._build_variations_epo(patent_id)
|
||||
body = {
|
||||
"size": size,
|
||||
"track_total_hits": True,
|
||||
"_source": [
|
||||
"doc_number",
|
||||
"application_number",
|
||||
"title_en",
|
||||
"title_fr",
|
||||
"title_de",
|
||||
],
|
||||
"query": {
|
||||
"bool": {
|
||||
"should": [
|
||||
{"term": {"doc_number": variations["doc_number"]}},
|
||||
{"term": {"application_number": variations["application_number"]}},
|
||||
{"term": {"doc_number": variations["doc_number_no_year"]}},
|
||||
{"term": {"application_number": variations["application_number_no_year"]}},
|
||||
{"wildcard": {
|
||||
"application_number": {
|
||||
"value": f"{variations['application_number']}*"
|
||||
}
|
||||
}
|
||||
},
|
||||
],
|
||||
"minimum_should_match": 1,
|
||||
}
|
||||
},
|
||||
}
|
||||
#print(f"EP query for {patent_id}: {json.dumps(body)}") # Debugging line
|
||||
return body
|
||||
|
||||
def _scroll_all(self, query: dict) -> Iterator[dict]:
|
||||
"""Run a scroll query to completion, yielding each hit's _source,
|
||||
and always clearing the scroll context when done."""
|
||||
resp = self.source_es.search(
|
||||
index=self.source_index,
|
||||
body=query,
|
||||
scroll="5m",
|
||||
size=10000,
|
||||
)
|
||||
scroll_id = resp.get("_scroll_id")
|
||||
|
||||
try:
|
||||
while True:
|
||||
hits = resp["hits"]["hits"]
|
||||
if not hits:
|
||||
break
|
||||
|
||||
for hit in hits:
|
||||
yield hit["_source"]
|
||||
|
||||
try:
|
||||
resp = self.source_es.scroll(scroll_id=scroll_id, scroll="5m")
|
||||
scroll_id = resp.get("_scroll_id")
|
||||
except NotFoundError:
|
||||
break
|
||||
finally:
|
||||
if scroll_id:
|
||||
try:
|
||||
self.source_es.clear_scroll(scroll_id=scroll_id)
|
||||
except Exception:
|
||||
pass # best-effort cleanup, don't fail the run over this
|
||||
|
||||
def get_source_docs(self) -> Iterator[dict]:
|
||||
"""
|
||||
Yield source docs (with applicationIdentifier, applicationPrefix, title) in order:
|
||||
1. All EP patents (applicationPrefix: "EP")
|
||||
2. Then all USPTO patents (applicationPrefix: "US")
|
||||
"""
|
||||
query_ep = {
|
||||
"_source": ["applicationIdentifier", "applicationPrefix", "title"],
|
||||
"query": {"term": {"applicationPrefix": "EP"}},
|
||||
}
|
||||
query_us = {
|
||||
"_source": ["applicationIdentifier", "applicationPrefix", "title"],
|
||||
"query": {"term": {"applicationPrefix": "US"}},
|
||||
}
|
||||
|
||||
for source in self._scroll_all(query_ep):
|
||||
if source.get("applicationIdentifier"):
|
||||
yield source
|
||||
|
||||
for source in self._scroll_all(query_us):
|
||||
if source.get("applicationIdentifier"):
|
||||
yield source
|
||||
|
||||
def find_matches(self, patent_id: str, source_prefix: str, source_title: str) -> dict:
|
||||
"""Match a single source patent against the target indexes.
|
||||
|
||||
source_prefix/source_title are passed in from get_source_docs() rather
|
||||
than being re-fetched here, avoiding a redundant query per record and
|
||||
the IndexError that occurred when a fetch found no hits.
|
||||
"""
|
||||
variations_uspto = self._build_variations_uspto(patent_id)
|
||||
variations_epo = self._build_variations_epo(patent_id)
|
||||
raw_id_epo = patent_id.upper().removeprefix("EP")
|
||||
|
||||
matches = []
|
||||
matched_indexes = set()
|
||||
|
||||
# EP PATENTS -> Only match in EPO index
|
||||
if source_prefix == "EP":
|
||||
epo_resp = self.target_es.search(
|
||||
index="epo_index_1.0",
|
||||
body=self._epo_query_by_id(patent_id),
|
||||
)
|
||||
epo_hits = epo_resp["hits"]["hits"]
|
||||
|
||||
for hit in epo_hits:
|
||||
source = hit["_source"]
|
||||
|
||||
matched_field = None
|
||||
if source.get("doc_number") == raw_id_epo:
|
||||
matched_field = "doc_number"
|
||||
elif source.get("doc_number") == variations_epo["doc_number_no_year"]:
|
||||
matched_field = "doc_number_no_year"
|
||||
|
||||
matched_field_app = None
|
||||
if source.get("application_number") == raw_id_epo:
|
||||
matched_field_app = "application_number"
|
||||
elif source.get("application_number") == variations_epo["application_number_no_year"]:
|
||||
matched_field_app = "application_number_no_year"
|
||||
elif source.get("application_number", "").startswith(variations_epo["application_number"]):
|
||||
matched_field_app = "application_number_wildcard"
|
||||
matched_fields = [f for f in (matched_field, matched_field_app) if f]
|
||||
|
||||
for field in matched_fields:
|
||||
self.match_stats[f"epo:{field}"] += 1
|
||||
|
||||
all_ids = {
|
||||
"doc_number": source.get("doc_number"),
|
||||
"application_number": source.get("application_number"),
|
||||
}
|
||||
|
||||
matches.append({
|
||||
"index": "epo_index_1.0",
|
||||
"field": field,
|
||||
"doc_id": hit["_id"],
|
||||
"title_en": source.get("title_en"),
|
||||
"title_fr": source.get("title_fr"),
|
||||
"title_de": source.get("title_de"),
|
||||
"all_ids": all_ids,
|
||||
})
|
||||
|
||||
if epo_hits:
|
||||
matched_indexes.add("epo_index_1.0")
|
||||
|
||||
# US PATENTS -> Only match in USPTO index
|
||||
elif source_prefix == "US":
|
||||
uspto_resp = self.target_es.search(
|
||||
index="uspto_patents_3.0",
|
||||
body=self._uspto_query_by_id(patent_id),
|
||||
)
|
||||
uspto_hits = uspto_resp["hits"]["hits"]
|
||||
|
||||
for hit in uspto_hits:
|
||||
source = hit["_source"]
|
||||
pub = source.get("publication_number")
|
||||
app = source.get("application_number")
|
||||
|
||||
matched_field_pub = None
|
||||
if pub == variations_uspto["publication_number"]:
|
||||
matched_field_pub = "publication_number"
|
||||
elif pub == variations_uspto["publication_number_no_year"]:
|
||||
matched_field_pub = "publication_number_no_year"
|
||||
|
||||
matched_field_app = None
|
||||
if app == variations_uspto["application_number"]:
|
||||
matched_field_app = "application_number"
|
||||
elif app == variations_uspto["application_number_no_year"]:
|
||||
matched_field_app = "application_number_no_year"
|
||||
|
||||
matched_fields = [f for f in (matched_field_pub, matched_field_app) if f]
|
||||
|
||||
for field in matched_fields:
|
||||
self.match_stats[f"uspto:{field}"] += 1
|
||||
|
||||
matches.append({
|
||||
"index": "uspto_patents_3.0",
|
||||
"field": field,
|
||||
"doc_id": hit["_id"],
|
||||
"title": source.get("title"),
|
||||
})
|
||||
|
||||
if uspto_hits:
|
||||
matched_indexes.add("uspto_patents_3.0")
|
||||
|
||||
return {
|
||||
"source_id": patent_id,
|
||||
"source_prefix": source_prefix,
|
||||
"source_title": source_title,
|
||||
"found": len(matches) > 0,
|
||||
"matches": matches,
|
||||
"not_found_in": [
|
||||
idx for idx in ("epo_index_1.0", "uspto_patents_3.0")
|
||||
if idx not in matched_indexes
|
||||
],
|
||||
}
|
||||
|
||||
def count_matches(self):
|
||||
total = 0
|
||||
matched = 0
|
||||
all_results = []
|
||||
|
||||
for source_doc in self.get_source_docs():
|
||||
patent_id = source_doc["applicationIdentifier"]
|
||||
source_prefix = source_doc.get("applicationPrefix", "")
|
||||
source_title = source_doc.get("title", "")
|
||||
|
||||
total += 1
|
||||
result = self.find_matches(patent_id, source_prefix, source_title)
|
||||
|
||||
if result["found"]:
|
||||
matched += 1
|
||||
|
||||
all_results.append(result)
|
||||
|
||||
if total % 1000 == 0:
|
||||
print(f"Processed={total:,}, Matched={matched:,}")
|
||||
with open(self.results_file, "w") as f:
|
||||
json.dump(all_results, f, indent=2)
|
||||
|
||||
# Final save
|
||||
with open(self.results_file, "w") as f:
|
||||
json.dump(all_results, f, indent=2)
|
||||
|
||||
return total, matched
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
source_es = Elasticsearch('https://inse.nes.uni-due.de:443/elastic', basic_auth=('elastic', 'RLldUaJgbGeoqd3KCX3p'), request_timeout=60, max_retries=5, retry_on_timeout=True)
|
||||
|
||||
counter = PatentCounter(
|
||||
source_es=source_es,
|
||||
target_es=source_es,
|
||||
source_index="cordis_eu_fp7_project_iprs",
|
||||
results_file="patent_matches.json",
|
||||
)
|
||||
|
||||
total, matched = counter.count_matches()
|
||||
|
||||
print(f"Total IDs: {total:,}")
|
||||
print(f"Matched source IDs: {matched:,}")
|
||||
print(f"Not found: {total - matched:,}")
|
||||
|
||||
print("\nMatch statistics:")
|
||||
for key, count in sorted(counter.match_stats.items()):
|
||||
print(f"{key}: {count:,}")
|
||||
@@ -0,0 +1,77 @@
|
||||
Here’s a shorter, more concise version:
|
||||
|
||||
# Patent Matching Pipeline — CORDIS FP7 IPR Records ↔ EPO / USPTO
|
||||
|
||||
## Purpose
|
||||
|
||||
This pipeline validates FP7 patent records from CORDIS against external patent databases:
|
||||
|
||||
- **EPO index (`epo_index_1.0`)** for `EP` patents
|
||||
- **USPTO index (`uspto_patents_3.0`)** for `US` patents
|
||||
|
||||
The objective is to measure match coverage and determine which ID-matching strategies are reliable for downstream patent linking.
|
||||
|
||||
## Dataset
|
||||
|
||||
Source: `cordis_eu_fp7_project_iprs`
|
||||
Patents tested: 5196(total) - 2270(others) -> 2926 (EP and US patents)
|
||||
| Prefix | Count |
|
||||
| --------- | --------: |
|
||||
| EP | 1,952 |
|
||||
| US | 974 |
|
||||
| **Total** | **2,926** |
|
||||
|
||||
## Matching Strategies
|
||||
|
||||
### EPO
|
||||
|
||||
- `doc_number`: exact, no-year
|
||||
- `application_number`: exact, no-year, wildcard (`{id}*`)
|
||||
|
||||
### USPTO
|
||||
|
||||
- `application_number`: exact, no-year
|
||||
- `publication_number`: exact, no-year
|
||||
|
||||
Matching priority: **exact → no-year → wildcard** (first match wins).
|
||||
|
||||
## Results
|
||||
|
||||
| Metric | Count |
|
||||
| ----------- | ----: |
|
||||
| Total IDs | 2,926 |
|
||||
| Matched IDs | 1,713 |
|
||||
| Not Found | 1,213 |
|
||||
|
||||
### Match Counts by Field
|
||||
|
||||
| Field | Hits |
|
||||
| ---------------------------------- | ----: |
|
||||
| `epo:application_number_wildcard` | 1,864 |
|
||||
| `epo:doc_number` | 7 |
|
||||
| `uspto:application_number_no_year` | 564 |
|
||||
| `uspto:application_number` | 6 |
|
||||
|
||||
No matches were found for:
|
||||
|
||||
- `epo:application_number` (exact/no-year)
|
||||
- `epo:doc_number_no_year`
|
||||
- `uspto:publication_number` (exact/no-year)
|
||||
|
||||
## Findings
|
||||
|
||||
### EPO
|
||||
|
||||
| Strategy | Assessment |
|
||||
| ---------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- |
|
||||
| `doc_number` | ❌ Unreliable; often matches unrelated patents |
|
||||
| `application_number` exact/no-year | ⚠️ No matches |
|
||||
| `application_number` wildcard (APPROVED) | ⚠️ Best coverage (1,864 hits) but over-matches related filings; requires secondary validation (e.g., title similarity) |
|
||||
|
||||
### USPTO
|
||||
|
||||
| Strategy | Assessment |
|
||||
| --------------------------------------- | --------------------------------------- |
|
||||
| `application_number` exact | ❌ Unreliable; numbering formats differ |
|
||||
| `application_number_no_year` (APPROVED) | ✅ Reliable (564 matches) |
|
||||
| `publication_number` | No useful matches |
|
||||
@@ -23,18 +23,18 @@ Run tests: `./gradlew :service:test`
|
||||
Builds the `org_patents` Elasticsearch index for a given institution: fetches its
|
||||
OpenAlex authors, searches EPO/USPTO for patents matched via institution assignee
|
||||
and/or inventor name, and reindexes. Each patent is tagged with a `match_type`
|
||||
(`institution`, `name`, or `both`, the latter being highest confidence). For common
|
||||
inventor names, a name match is only kept if the assignee is the institution itself or
|
||||
the person, to avoid pulling in unrelated patents via a shared name.
|
||||
(`institution`, `name`, or `both`, the latter being highest confidence). An
|
||||
inventor-name match counts only if the assignee is the institution itself or the
|
||||
person themselves — this avoids pulling in unrelated patents via a shared name.
|
||||
|
||||
```bash
|
||||
python scripts/index_org_patents.py --institution-id <OpenAlex-ID>
|
||||
python scripts/patents/index_org_patents.py --institution-id <OpenAlex-ID>
|
||||
```
|
||||
|
||||
**Example — University of Duisburg-Essen:**
|
||||
|
||||
```bash
|
||||
python scripts/index_org_patents.py --institution-id I62318514
|
||||
python scripts/patents/index_org_patents.py --institution-id I62318514
|
||||
```
|
||||
|
||||
The OpenAlex institution ID appears in the app URL, e.g. `/institution/I62318514/overview`.
|
||||
|
||||
@@ -0,0 +1,286 @@
|
||||
{
|
||||
"institution": "I62318514",
|
||||
"cohort": [
|
||||
"I62318514",
|
||||
"I4210119759",
|
||||
"I4210161917",
|
||||
"I127668822",
|
||||
"I4210090139",
|
||||
"I4210092428",
|
||||
"I4210110714",
|
||||
"I4210146441",
|
||||
"I4210154243"
|
||||
],
|
||||
"config_hash": "fd4877f30747",
|
||||
"counts": {
|
||||
"focal_authors_scored": 9474,
|
||||
"nodes": 864646,
|
||||
"edges": 5822006,
|
||||
"works_used": 228103,
|
||||
"works_capped": 9238,
|
||||
"tags": {
|
||||
"mentor": 161,
|
||||
"bridger": 133,
|
||||
"amplifier": 10
|
||||
},
|
||||
"suspicious_profiles": 400,
|
||||
"es_docs_written": 9474,
|
||||
"es_network_docs_written": 9474
|
||||
},
|
||||
"timings": {
|
||||
"extract_s": 0.6,
|
||||
"load_cache_s": 18.8,
|
||||
"build_graph_s": 45.0,
|
||||
"metrics_s": 319.0,
|
||||
"signals_s": 389.7,
|
||||
"scoring_s": 0.1,
|
||||
"index_s": 11.4,
|
||||
"network_s": 92.7
|
||||
},
|
||||
"top_bridgers": [
|
||||
{
|
||||
"author_id": "A5113304257",
|
||||
"name": "Jan Egger",
|
||||
"score": 0.9533,
|
||||
"bucket": "Early",
|
||||
"active_years": 4,
|
||||
"suspicious": false
|
||||
},
|
||||
{
|
||||
"author_id": "A5051904885",
|
||||
"name": "Feyza Cansiz",
|
||||
"score": 0.9436,
|
||||
"bucket": "Early",
|
||||
"active_years": 4,
|
||||
"suspicious": false
|
||||
},
|
||||
{
|
||||
"author_id": "A5015256836",
|
||||
"name": "Giebel Bernd",
|
||||
"score": 0.9403,
|
||||
"bucket": "Early",
|
||||
"active_years": 3,
|
||||
"suspicious": false
|
||||
},
|
||||
{
|
||||
"author_id": "A5029568311",
|
||||
"name": "S. Ugurel-Becker",
|
||||
"score": 0.9395,
|
||||
"bucket": "Early",
|
||||
"active_years": 4,
|
||||
"suspicious": false
|
||||
},
|
||||
{
|
||||
"author_id": "A5039473892",
|
||||
"name": "D. Schadendorf",
|
||||
"score": 0.9329,
|
||||
"bucket": "Early",
|
||||
"active_years": 3,
|
||||
"suspicious": false
|
||||
},
|
||||
{
|
||||
"author_id": "A5098748894",
|
||||
"name": "Bahadır Eryılmaz",
|
||||
"score": 0.927,
|
||||
"bucket": "Early",
|
||||
"active_years": 3,
|
||||
"suspicious": false
|
||||
},
|
||||
{
|
||||
"author_id": "A5120610796",
|
||||
"name": "Ulrich Sure",
|
||||
"score": 0.9263,
|
||||
"bucket": "Early",
|
||||
"active_years": 2,
|
||||
"suspicious": false
|
||||
},
|
||||
{
|
||||
"author_id": "A5007940140",
|
||||
"name": "Amin Dada",
|
||||
"score": 0.9262,
|
||||
"bucket": "Early",
|
||||
"active_years": 4,
|
||||
"suspicious": false
|
||||
},
|
||||
{
|
||||
"author_id": "A5101839832",
|
||||
"name": "Mohammed-Ali Sheikh",
|
||||
"score": 0.9243,
|
||||
"bucket": "Early",
|
||||
"active_years": 4,
|
||||
"suspicious": false
|
||||
},
|
||||
{
|
||||
"author_id": "A5074268016",
|
||||
"name": "Anika Grüneboom",
|
||||
"score": 0.922,
|
||||
"bucket": "Emerging",
|
||||
"active_years": 9,
|
||||
"suspicious": false
|
||||
}
|
||||
],
|
||||
"top_mentors": [
|
||||
{
|
||||
"author_id": "A5043495754",
|
||||
"name": "Cornelius Deuschl",
|
||||
"score": 0.9613,
|
||||
"bucket": "Established",
|
||||
"active_years": 14,
|
||||
"suspicious": false
|
||||
},
|
||||
{
|
||||
"author_id": "A5030635588",
|
||||
"name": "Birte Möhlendick",
|
||||
"score": 0.9582,
|
||||
"bucket": "Established",
|
||||
"active_years": 14,
|
||||
"suspicious": false
|
||||
},
|
||||
{
|
||||
"author_id": "A5029722705",
|
||||
"name": "Freya Droege",
|
||||
"score": 0.95,
|
||||
"bucket": "Established",
|
||||
"active_years": 14,
|
||||
"suspicious": true
|
||||
},
|
||||
{
|
||||
"author_id": "A5062907808",
|
||||
"name": "Wolfgang P. Fendler",
|
||||
"score": 0.9437,
|
||||
"bucket": "Established",
|
||||
"active_years": 14,
|
||||
"suspicious": false
|
||||
},
|
||||
{
|
||||
"author_id": "A5048453026",
|
||||
"name": "Alpaslan Tasdogan",
|
||||
"score": 0.9436,
|
||||
"bucket": "Established",
|
||||
"active_years": 14,
|
||||
"suspicious": false
|
||||
},
|
||||
{
|
||||
"author_id": "A5063064952",
|
||||
"name": "Nora Bruns",
|
||||
"score": 0.9408,
|
||||
"bucket": "Established",
|
||||
"active_years": 14,
|
||||
"suspicious": false
|
||||
},
|
||||
{
|
||||
"author_id": "A5036496827",
|
||||
"name": "Ramazan Jabbarli",
|
||||
"score": 0.9336,
|
||||
"bucket": "Established",
|
||||
"active_years": 13,
|
||||
"suspicious": false
|
||||
},
|
||||
{
|
||||
"author_id": "A5041276010",
|
||||
"name": "Heiko Wende",
|
||||
"score": 0.9291,
|
||||
"bucket": "Senior",
|
||||
"active_years": 31,
|
||||
"suspicious": false
|
||||
},
|
||||
{
|
||||
"author_id": "A5110823011",
|
||||
"name": "Dagmar Führer",
|
||||
"score": 0.9285,
|
||||
"bucket": "Senior",
|
||||
"active_years": 32,
|
||||
"suspicious": false
|
||||
},
|
||||
{
|
||||
"author_id": "A5047137012",
|
||||
"name": "David Kersting",
|
||||
"score": 0.9284,
|
||||
"bucket": "Established",
|
||||
"active_years": 12,
|
||||
"suspicious": false
|
||||
}
|
||||
],
|
||||
"top_amplifiers": [
|
||||
{
|
||||
"author_id": "A5007801159",
|
||||
"name": "Jens Wiltfang",
|
||||
"score": 0.9282,
|
||||
"bucket": "Senior",
|
||||
"active_years": 35,
|
||||
"suspicious": false
|
||||
},
|
||||
{
|
||||
"author_id": "A5049577078",
|
||||
"name": "Stefan Kleine",
|
||||
"score": 0.9121,
|
||||
"bucket": "Emerging",
|
||||
"active_years": 6,
|
||||
"suspicious": false
|
||||
},
|
||||
{
|
||||
"author_id": "A5055188384",
|
||||
"name": "Benjamin Zingsem",
|
||||
"score": 0.8991,
|
||||
"bucket": "Established",
|
||||
"active_years": 10,
|
||||
"suspicious": false
|
||||
},
|
||||
{
|
||||
"author_id": "A5036507802",
|
||||
"name": "Martin Schüler",
|
||||
"score": 0.8934,
|
||||
"bucket": "Senior",
|
||||
"active_years": 47,
|
||||
"suspicious": true
|
||||
},
|
||||
{
|
||||
"author_id": "A5123934012",
|
||||
"name": "Karl Sebastian Lang",
|
||||
"score": 0.8883,
|
||||
"bucket": "Early",
|
||||
"active_years": 1,
|
||||
"suspicious": false
|
||||
},
|
||||
{
|
||||
"author_id": "A5016532166",
|
||||
"name": "Adalbert Krawczyk",
|
||||
"score": 0.8779,
|
||||
"bucket": "Senior",
|
||||
"active_years": 16,
|
||||
"suspicious": false
|
||||
},
|
||||
{
|
||||
"author_id": "A5052587248",
|
||||
"name": "Gabi Schierning",
|
||||
"score": 0.8751,
|
||||
"bucket": "Senior",
|
||||
"active_years": 23,
|
||||
"suspicious": false
|
||||
},
|
||||
{
|
||||
"author_id": "A5024191146",
|
||||
"name": "Markus Kaiser",
|
||||
"score": 0.868,
|
||||
"bucket": "Senior",
|
||||
"active_years": 30,
|
||||
"suspicious": false
|
||||
},
|
||||
{
|
||||
"author_id": "A5044921528",
|
||||
"name": "Annette Paschen",
|
||||
"score": 0.862,
|
||||
"bucket": "Senior",
|
||||
"active_years": 29,
|
||||
"suspicious": false
|
||||
},
|
||||
{
|
||||
"author_id": "A5107541231",
|
||||
"name": "Raimund Erbel",
|
||||
"score": 0.8519,
|
||||
"bucket": "Senior",
|
||||
"active_years": 52,
|
||||
"suspicious": false
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,269 @@
|
||||
{
|
||||
"institution": "I62318514",
|
||||
"config_hash": "a49ddd388990",
|
||||
"counts": {
|
||||
"focal_authors_scored": 4921,
|
||||
"nodes": 639544,
|
||||
"edges": 4143499,
|
||||
"works_used": 160396,
|
||||
"works_capped": 4823,
|
||||
"tags": {
|
||||
"amplifier": 609,
|
||||
"mentor": 91,
|
||||
"bridger": 66
|
||||
},
|
||||
"suspicious_profiles": 225
|
||||
},
|
||||
"timings": {
|
||||
"load_cache_s": 15.2,
|
||||
"build_graph_s": 31.3,
|
||||
"metrics_s": 112.2,
|
||||
"scoring_s": 0.0
|
||||
},
|
||||
"top_bridgers": [
|
||||
{
|
||||
"author_id": "A5113304257",
|
||||
"name": "Jan Egger",
|
||||
"score": 0.9488,
|
||||
"bucket": "Early",
|
||||
"active_years": 4,
|
||||
"suspicious": false
|
||||
},
|
||||
{
|
||||
"author_id": "A5015256836",
|
||||
"name": "Giebel Bernd",
|
||||
"score": 0.9379,
|
||||
"bucket": "Early",
|
||||
"active_years": 3,
|
||||
"suspicious": false
|
||||
},
|
||||
{
|
||||
"author_id": "A5074268016",
|
||||
"name": "Anika Grüneboom",
|
||||
"score": 0.9277,
|
||||
"bucket": "Emerging",
|
||||
"active_years": 9,
|
||||
"suspicious": false
|
||||
},
|
||||
{
|
||||
"author_id": "A5101839832",
|
||||
"name": "Mohammed-Ali Sheikh",
|
||||
"score": 0.9227,
|
||||
"bucket": "Early",
|
||||
"active_years": 4,
|
||||
"suspicious": false
|
||||
},
|
||||
{
|
||||
"author_id": "A5093725590",
|
||||
"name": "Ahammed Suhail Odungat",
|
||||
"score": 0.9178,
|
||||
"bucket": "Early",
|
||||
"active_years": 3,
|
||||
"suspicious": false
|
||||
},
|
||||
{
|
||||
"author_id": "A5123321088",
|
||||
"name": "Heiko Wende",
|
||||
"score": 0.9166,
|
||||
"bucket": "Early",
|
||||
"active_years": 2,
|
||||
"suspicious": false
|
||||
},
|
||||
{
|
||||
"author_id": "A5093128319",
|
||||
"name": "Pascal Raszke",
|
||||
"score": 0.9115,
|
||||
"bucket": "Early",
|
||||
"active_years": 4,
|
||||
"suspicious": false
|
||||
},
|
||||
{
|
||||
"author_id": "A5009410023",
|
||||
"name": "Yossarian Liebsch",
|
||||
"score": 0.9098,
|
||||
"bucket": "Early",
|
||||
"active_years": 4,
|
||||
"suspicious": false
|
||||
},
|
||||
{
|
||||
"author_id": "A5038988072",
|
||||
"name": "Ulrike Schara‐Schmidt",
|
||||
"score": 0.9095,
|
||||
"bucket": "Emerging",
|
||||
"active_years": 6,
|
||||
"suspicious": false
|
||||
},
|
||||
{
|
||||
"author_id": "A5092634227",
|
||||
"name": "Abdelrahman Elwy",
|
||||
"score": 0.9089,
|
||||
"bucket": "Early",
|
||||
"active_years": 4,
|
||||
"suspicious": false
|
||||
}
|
||||
],
|
||||
"top_mentors": [
|
||||
{
|
||||
"author_id": "A5043495754",
|
||||
"name": "Cornelius Deuschl",
|
||||
"score": 0.9533,
|
||||
"bucket": "Established",
|
||||
"active_years": 14,
|
||||
"suspicious": false
|
||||
},
|
||||
{
|
||||
"author_id": "A5063064952",
|
||||
"name": "Nora Bruns",
|
||||
"score": 0.9508,
|
||||
"bucket": "Established",
|
||||
"active_years": 14,
|
||||
"suspicious": false
|
||||
},
|
||||
{
|
||||
"author_id": "A5062907808",
|
||||
"name": "Wolfgang P. Fendler",
|
||||
"score": 0.9477,
|
||||
"bucket": "Established",
|
||||
"active_years": 14,
|
||||
"suspicious": false
|
||||
},
|
||||
{
|
||||
"author_id": "A5016126468",
|
||||
"name": "Jassin Rashidi‐Alavijeh",
|
||||
"score": 0.9338,
|
||||
"bucket": "Established",
|
||||
"active_years": 13,
|
||||
"suspicious": false
|
||||
},
|
||||
{
|
||||
"author_id": "A5041276010",
|
||||
"name": "Heiko Wende",
|
||||
"score": 0.9314,
|
||||
"bucket": "Senior",
|
||||
"active_years": 31,
|
||||
"suspicious": false
|
||||
},
|
||||
{
|
||||
"author_id": "A5036496827",
|
||||
"name": "Ramazan Jabbarli",
|
||||
"score": 0.9271,
|
||||
"bucket": "Established",
|
||||
"active_years": 13,
|
||||
"suspicious": false
|
||||
},
|
||||
{
|
||||
"author_id": "A5090806187",
|
||||
"name": "Ivana Kraiselburd",
|
||||
"score": 0.9262,
|
||||
"bucket": "Established",
|
||||
"active_years": 12,
|
||||
"suspicious": false
|
||||
},
|
||||
{
|
||||
"author_id": "A5030635588",
|
||||
"name": "Birte Möhlendick",
|
||||
"score": 0.9244,
|
||||
"bucket": "Established",
|
||||
"active_years": 14,
|
||||
"suspicious": false
|
||||
},
|
||||
{
|
||||
"author_id": "A5052523213",
|
||||
"name": "Ulrich Sure",
|
||||
"score": 0.9229,
|
||||
"bucket": "Senior",
|
||||
"active_years": 32,
|
||||
"suspicious": false
|
||||
},
|
||||
{
|
||||
"author_id": "A5016243200",
|
||||
"name": "Ulf Dittmer",
|
||||
"score": 0.9209,
|
||||
"bucket": "Senior",
|
||||
"active_years": 34,
|
||||
"suspicious": false
|
||||
}
|
||||
],
|
||||
"top_amplifiers": [
|
||||
{
|
||||
"author_id": "A5001941348",
|
||||
"name": "Matthias Rinke",
|
||||
"score": 1.0,
|
||||
"bucket": "Senior",
|
||||
"active_years": 25,
|
||||
"suspicious": false
|
||||
},
|
||||
{
|
||||
"author_id": "A5026928109",
|
||||
"name": "Nicole Stracke",
|
||||
"score": 1.0,
|
||||
"bucket": "Emerging",
|
||||
"active_years": 6,
|
||||
"suspicious": false
|
||||
},
|
||||
{
|
||||
"author_id": "A5072469617",
|
||||
"name": "Stefan Esser",
|
||||
"score": 1.0,
|
||||
"bucket": "Established",
|
||||
"active_years": 10,
|
||||
"suspicious": false
|
||||
},
|
||||
{
|
||||
"author_id": "A5045156629",
|
||||
"name": "Mirrasoul J. Mousavi",
|
||||
"score": 0.9991,
|
||||
"bucket": "Senior",
|
||||
"active_years": 20,
|
||||
"suspicious": false
|
||||
},
|
||||
{
|
||||
"author_id": "A5102956234",
|
||||
"name": "Tanja Trarbach",
|
||||
"score": 0.9988,
|
||||
"bucket": "Emerging",
|
||||
"active_years": 6,
|
||||
"suspicious": false
|
||||
},
|
||||
{
|
||||
"author_id": "A5108819622",
|
||||
"name": "Andreas Roos",
|
||||
"score": 0.9982,
|
||||
"bucket": "Senior",
|
||||
"active_years": 15,
|
||||
"suspicious": true
|
||||
},
|
||||
{
|
||||
"author_id": "A5060245622",
|
||||
"name": "Heidi Wiehler",
|
||||
"score": 0.9978,
|
||||
"bucket": "Established",
|
||||
"active_years": 12,
|
||||
"suspicious": true
|
||||
},
|
||||
{
|
||||
"author_id": "A5005113935",
|
||||
"name": "C. L. Munch",
|
||||
"score": 0.9977,
|
||||
"bucket": "Emerging",
|
||||
"active_years": 7,
|
||||
"suspicious": true
|
||||
},
|
||||
{
|
||||
"author_id": "A5014449031",
|
||||
"name": "Boris S. Kerner",
|
||||
"score": 0.9973,
|
||||
"bucket": "Senior",
|
||||
"active_years": 51,
|
||||
"suspicious": false
|
||||
},
|
||||
{
|
||||
"author_id": "A5034381567",
|
||||
"name": "Yannick Beckmann",
|
||||
"score": 0.9965,
|
||||
"bucket": "Emerging",
|
||||
"active_years": 9,
|
||||
"suspicious": false
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
Cohort (9 institutions, affiliation years >= 2023):
|
||||
I62318514 University of Duisburg-Essen
|
||||
I4210119759 Essen University Hospital
|
||||
I4210161917 West German Heart and Vascular Center Essen
|
||||
I127668822 Erwin L. Hahn Institute for Magnetic Resonance Imaging
|
||||
I4210090139 Rhein-Ruhr Institut für Sozialforschung und Politikberatung
|
||||
I4210092428 Deutsches Textilforschungszentrum Nord-West
|
||||
I4210110714 Institute for Advanced Study in the Humanities Essen
|
||||
I4210146441 The Hydrogen and Fuel Cell Center
|
||||
I4210154243 Institut für Energie- und Umwelttechnik
|
||||
Reusing cached extract (use --force-extract to refresh).
|
||||
Loaded 267467 works, 9475 focal authors (19.0s)
|
||||
Graph: 864646 nodes, 5822006 edges, 228103 works used, 9238 capped, ref_year=2026 (46.6s)
|
||||
Metrics for 9474 focal authors (326.0s)
|
||||
Signals: patents scored for 55 authors (name-only evidence: 17), news mentions for 1369 (ambiguous names skipped: 839), CORDIS projects for 1342
|
||||
Signal joins done (522.1s)
|
||||
Scores -> /Users/armgdon/University/projects/smart-guide/smart-guide-code/service/scripts/multiplicators/cache/scores_I62318514.jsonl.gz (0.1s)
|
||||
Deleted 9474 existing docs for I62318514
|
||||
Indexed 9474 docs into multiplicators_v1 (count for I62318514: 9474) (46.8s)
|
||||
{
|
||||
"focal_authors_scored": 9474,
|
||||
"nodes": 864646,
|
||||
"edges": 5822006,
|
||||
"works_used": 228103,
|
||||
"works_capped": 9238,
|
||||
"tags": {
|
||||
"mentor": 161,
|
||||
"bridger": 133,
|
||||
"amplifier": 10
|
||||
},
|
||||
"suspicious_profiles": 400,
|
||||
"es_docs_written": 9474
|
||||
}
|
||||
Summary -> /Users/armgdon/University/projects/smart-guide/smart-guide-code/service/scripts/multiplicators/cache/build_summary_I62318514.json
|
||||
@@ -0,0 +1,37 @@
|
||||
Cohort (9 institutions, affiliation years >= 2023):
|
||||
I62318514 University of Duisburg-Essen
|
||||
I4210119759 Essen University Hospital
|
||||
I4210161917 West German Heart and Vascular Center Essen
|
||||
I127668822 Erwin L. Hahn Institute for Magnetic Resonance Imaging
|
||||
I4210090139 Rhein-Ruhr Institut für Sozialforschung und Politikberatung
|
||||
I4210092428 Deutsches Textilforschungszentrum Nord-West
|
||||
I4210110714 Institute for Advanced Study in the Humanities Essen
|
||||
I4210146441 The Hydrogen and Fuel Cell Center
|
||||
I4210154243 Institut für Energie- und Umwelttechnik
|
||||
Reusing cached extract (use --force-extract to refresh).
|
||||
Loaded 267467 works, 9475 focal authors (18.8s)
|
||||
Graph: 864646 nodes, 5822006 edges, 228103 works used, 9238 capped, ref_year=2026 (45.0s)
|
||||
Metrics for 9474 focal authors (319.0s)
|
||||
Signals: patents scored for 55 authors (name-only evidence: 17), news mentions for 1369 (ambiguous names skipped: 839), CORDIS projects for 1342
|
||||
Signal joins done (389.7s)
|
||||
Scores -> /Users/armgdon/University/projects/smart-guide/smart-guide-code/service/scripts/multiplicators/cache/scores_I62318514.jsonl.gz (0.1s)
|
||||
Deleted 9474 existing docs for I62318514
|
||||
Indexed 9474 docs into multiplicators_v1 (count for I62318514: 9474) (11.4s)
|
||||
Deleted 0 existing docs for I62318514
|
||||
Indexed 9474 network docs into multiplicator_networks_v1 (92.7s)
|
||||
{
|
||||
"focal_authors_scored": 9474,
|
||||
"nodes": 864646,
|
||||
"edges": 5822006,
|
||||
"works_used": 228103,
|
||||
"works_capped": 9238,
|
||||
"tags": {
|
||||
"mentor": 161,
|
||||
"bridger": 133,
|
||||
"amplifier": 10
|
||||
},
|
||||
"suspicious_profiles": 400,
|
||||
"es_docs_written": 9474,
|
||||
"es_network_docs_written": 9474
|
||||
}
|
||||
Summary -> /Users/armgdon/University/projects/smart-guide/smart-guide-code/service/scripts/multiplicators/cache/build_summary_I62318514.json
|
||||
@@ -0,0 +1,99 @@
|
||||
{
|
||||
"institution": {
|
||||
"id": "https://openalex.org/I62318514",
|
||||
"short_id": "I62318514",
|
||||
"ror": "https://ror.org/04mz5ra38",
|
||||
"display_name": "University of Duisburg-Essen"
|
||||
},
|
||||
"cohort": [
|
||||
{
|
||||
"id": "I62318514",
|
||||
"display_name": "University of Duisburg-Essen"
|
||||
},
|
||||
{
|
||||
"id": "I4210119759",
|
||||
"display_name": "Essen University Hospital"
|
||||
},
|
||||
{
|
||||
"id": "I4210161917",
|
||||
"display_name": "West German Heart and Vascular Center Essen"
|
||||
},
|
||||
{
|
||||
"id": "I127668822",
|
||||
"display_name": "Erwin L. Hahn Institute for Magnetic Resonance Imaging"
|
||||
},
|
||||
{
|
||||
"id": "I4210090139",
|
||||
"display_name": "Rhein-Ruhr Institut für Sozialforschung und Politikberatung"
|
||||
},
|
||||
{
|
||||
"id": "I4210092428",
|
||||
"display_name": "Deutsches Textilforschungszentrum Nord-West"
|
||||
},
|
||||
{
|
||||
"id": "I4210110714",
|
||||
"display_name": "Institute for Advanced Study in the Humanities Essen"
|
||||
},
|
||||
{
|
||||
"id": "I4210146441",
|
||||
"display_name": "The Hydrogen and Fuel Cell Center"
|
||||
},
|
||||
{
|
||||
"id": "I4210154243",
|
||||
"display_name": "Institut für Energie- und Umwelttechnik"
|
||||
}
|
||||
],
|
||||
"reproduction": {
|
||||
"author_count": 6583,
|
||||
"work_count": 221603,
|
||||
"group_breakdown": {
|
||||
"backend_compatible": 6360,
|
||||
"empty_last_known_recent": 223
|
||||
}
|
||||
},
|
||||
"field_coverage": {
|
||||
"authorships_total": 4365638,
|
||||
"author_position_pct": 100.0,
|
||||
"is_corresponding_pct": 100.0,
|
||||
"institutions_total": 3934359,
|
||||
"institution_type_pct": 99.9,
|
||||
"company_institutions": 82976
|
||||
},
|
||||
"scale": {
|
||||
"works": 221603,
|
||||
"authors_per_work": {
|
||||
"p50": 5,
|
||||
"p90": 18,
|
||||
"p99": 174,
|
||||
"max": 4839
|
||||
},
|
||||
"hyperauthorship_works_gt_100": 3179,
|
||||
"pair_instances_at_cap": {
|
||||
"20": 4921446,
|
||||
"50": 10209552,
|
||||
"100": 17642513
|
||||
}
|
||||
},
|
||||
"career_quality": {
|
||||
"authors_with_works": 6583,
|
||||
"suspicious_profile_count": 302,
|
||||
"suspicious_profile_pct": 4.59,
|
||||
"active_years": {
|
||||
"p50": 4,
|
||||
"p90": 24,
|
||||
"max": 63,
|
||||
"mean": 8.61
|
||||
}
|
||||
},
|
||||
"signals": {
|
||||
"org_patents_for_institution": 462,
|
||||
"match_type_breakdown": {
|
||||
"name": 339,
|
||||
"both": 65,
|
||||
"institution": 58
|
||||
}
|
||||
},
|
||||
"permissions": {
|
||||
"skipped": "pass --probe-writes to test index create/bulk/delete"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
{
|
||||
"institution": {
|
||||
"id": "https://openalex.org/I62318514",
|
||||
"short_id": "I62318514",
|
||||
"ror": "https://ror.org/04mz5ra38",
|
||||
"display_name": "University of Duisburg-Essen"
|
||||
},
|
||||
"reproduction": {
|
||||
"author_count": 4921,
|
||||
"work_count": 183661,
|
||||
"group_breakdown": {
|
||||
"backend_compatible": 4740,
|
||||
"empty_last_known_recent": 181
|
||||
}
|
||||
},
|
||||
"field_coverage": {
|
||||
"authorships_total": 3805507,
|
||||
"author_position_pct": 100.0,
|
||||
"is_corresponding_pct": 100.0,
|
||||
"institutions_total": 3482939,
|
||||
"institution_type_pct": 99.91,
|
||||
"company_institutions": 67131
|
||||
},
|
||||
"scale": {
|
||||
"works": 183661,
|
||||
"authors_per_work": {
|
||||
"p50": 5,
|
||||
"p90": 17,
|
||||
"p99": 144,
|
||||
"max": 4839
|
||||
},
|
||||
"hyperauthorship_works_gt_100": 2459,
|
||||
"pair_instances_at_cap": {
|
||||
"20": 3912695,
|
||||
"50": 7962611,
|
||||
"100": 13897380
|
||||
}
|
||||
},
|
||||
"career_quality": {
|
||||
"authors_with_works": 4921,
|
||||
"suspicious_profile_count": 225,
|
||||
"suspicious_profile_pct": 4.57,
|
||||
"active_years": {
|
||||
"p50": 4,
|
||||
"p90": 25,
|
||||
"max": 60,
|
||||
"mean": 8.94
|
||||
}
|
||||
},
|
||||
"signals": {
|
||||
"org_patents_for_institution": 436,
|
||||
"match_type_breakdown": {
|
||||
"name": 313,
|
||||
"both": 65,
|
||||
"institution": 58
|
||||
}
|
||||
},
|
||||
"permissions": {
|
||||
"create_index": 403
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,79 @@
|
||||
Sample: 60 people, matched in scores: 51, missing: 9
|
||||
MISSING: Peter Bayer (A5060566345)
|
||||
MISSING: Richard Kosinski (A5014403509)
|
||||
MISSING: Alexandra Dmitrienko (A5042835341)
|
||||
MISSING: Wilhelm Koop (A5019228221)
|
||||
MISSING: Venkata Marella (A5082156768)
|
||||
MISSING: Miriam Böhm (A5037448457)
|
||||
MISSING: Katrin Schuldt (A5002003996)
|
||||
MISSING: Friedrich Scheller (A5072565080)
|
||||
MISSING: Lara Altenstädter (A5070117981)
|
||||
|
||||
=== mentor sub-score by known status ===
|
||||
Professor n=29 median=0.740 mean=0.691 range=[0.153, 0.921]
|
||||
Researcher n=22 median=0.494 mean=0.514 range=[0.242, 0.958]
|
||||
|
||||
=== bridger sub-score by known status ===
|
||||
Professor n=29 median=0.629 mean=0.618 range=[0.291, 0.856]
|
||||
Researcher n=22 median=0.469 mean=0.509 range=[0.224, 0.796]
|
||||
|
||||
=== amplifier sub-score by known status ===
|
||||
Professor n=29 median=0.612 mean=0.584 range=[0.357, 0.840]
|
||||
Researcher n=22 median=0.450 mean=0.529 range=[0.363, 0.772]
|
||||
|
||||
M1 exit check — professors' median mentor score (0.74) > researchers' (0.494): PASS
|
||||
|
||||
=== per-person (sorted by mentor score) ===
|
||||
0.958 Researcher Established juniors= 30 laj= 6 Birte Möhlendick (Medicine)
|
||||
0.921 Professor Senior juniors=110 laj= 11 Oliver Witzke (Medicine)
|
||||
0.908 Professor Senior juniors= 56 laj= 12 Daniel Hoffmann (Biology)
|
||||
0.903 Professor Senior juniors= 92 laj= 7 Matthias Gunzer (Medicine)
|
||||
0.898 Professor Senior juniors= 41 laj= 16 Gerd Bacher (Engineering)
|
||||
0.891 Professor Senior juniors= 48 laj= 23 Ulrike Bingel (Medicine)
|
||||
0.888 Professor Senior juniors= 70 laj= 27 Bernd Sures (Biology)
|
||||
0.879 Professor Senior juniors=116 laj= 6 Boris Hadaschik (Medicine)
|
||||
0.862 Professor Senior juniors=128 laj= 2 Stephan Lang (Medicine)
|
||||
0.848 Professor Senior juniors= 40 laj= 25 Daniel Hering (Biology)
|
||||
0.833 Professor Senior juniors= 28 laj= 31 Stefan Schneegaß (Computer Science)
|
||||
0.786 Professor Senior juniors= 19 laj= 27 Torben Weis (Computer Science)
|
||||
0.781 Professor Senior juniors= 18 laj= 23 Pedro José Marrón (Computer Science)
|
||||
0.777 Professor Senior juniors= 29 laj= 4 Corina Andronescu (Engineering)
|
||||
0.762 Professor Senior juniors= 14 laj= 7 Barbara Saccà (Biology)
|
||||
0.740 Professor Senior juniors= 8 laj= 15 Lucas Davi (Computer Science)
|
||||
0.735 Professor Senior juniors= 13 laj= 24 Burak Atakan (Engineering)
|
||||
0.723 Researcher Senior juniors= 67 laj= 0 Farnusch Kaschani (Biology)
|
||||
0.722 Professor Senior juniors= 12 laj= 11 Barbara König (Computer Science)
|
||||
0.712 Professor Senior juniors= 12 laj= 21 Gregor Schiele (Computer Science)
|
||||
0.707 Professor Senior juniors= 10 laj= 11 Volker Gruhn (Computer Science)
|
||||
0.679 Researcher Senior juniors= 16 laj= 1 Marcus Handte (Computer Science)
|
||||
0.659 Professor Senior juniors= 45 laj= 0 Hartmut Schmidt (Medicine)
|
||||
0.654 Researcher Senior juniors= 22 laj= 0 Daniel Grabner (Biology)
|
||||
0.612 Professor Senior juniors= 13 laj= 0 Tienush Rassaf (Medicine)
|
||||
0.605 Professor Senior juniors= 6 laj= 8 Jens Krüger (Computer Science)
|
||||
0.601 Professor Senior juniors= 9 laj= 3 Andreas Metzger (Computer Science)
|
||||
0.513 Professor Senior juniors= 4 laj= 5 Andreas Vogelsang (Computer Science)
|
||||
0.500 Professor Senior juniors= 3 laj= 2 Frank Kleemann (Sociology)
|
||||
0.494 Researcher Early juniors= 0 laj= 0 Bianca Kamba (Biology)
|
||||
0.494 Researcher Early juniors= 0 laj= 0 Carina Liebers (Computer Science)
|
||||
0.494 Researcher Early juniors= 0 laj= 0 Jonas Keppel (Computer Science)
|
||||
0.494 Researcher Early juniors= 0 laj= 0 Carlos Medina Sánchez (Computer Science)
|
||||
0.494 Researcher Early juniors= 0 laj= 0 Christian Scholz (Computer Science)
|
||||
0.494 Researcher Early juniors= 0 laj= 0 Tobias Mikolas (Engineering)
|
||||
0.494 Researcher Early juniors= 0 laj= 0 Julia Schwichtenberg (Medicine)
|
||||
0.494 Researcher Early juniors= 0 laj= 0 Antonia Görtz (Sociology)
|
||||
0.494 Researcher Early juniors= 0 laj= 0 Lisa Mansfeld (Sociology)
|
||||
0.488 Researcher Emerging juniors= 0 laj= 0 Simon Janzon (Computer Science)
|
||||
0.488 Researcher Emerging juniors= 0 laj= 0 Christian Niesler (Computer Science)
|
||||
0.488 Researcher Emerging juniors= 0 laj= 0 Pascal Winkler (Computer Science)
|
||||
0.488 Researcher Emerging juniors= 0 laj= 0 Soheil Salighe (Engineering)
|
||||
0.488 Researcher Emerging juniors= 0 laj= 0 Sabrina Guckenbiehl (Medicine)
|
||||
0.488 Researcher Emerging juniors= 0 laj= 0 Zülal Cibir (Medicine)
|
||||
0.418 Researcher Senior juniors= 6 laj= 0 Stefan Hanenberg (Computer Science)
|
||||
0.377 Professor Senior juniors= 2 laj= 0 Ute Klammer (Sociology)
|
||||
0.251 Researcher Senior juniors= 1 laj= 0 Kathrin Januschke (Biology)
|
||||
0.242 Researcher Established juniors= 0 laj= 0 Andreas Jansen (Sociology)
|
||||
0.240 Professor Senior juniors= 1 laj= 0 Helen Baykara-Krumme (Sociology)
|
||||
0.227 Professor Senior juniors= 1 laj= 0 Marcel Erlinghagen (Sociology)
|
||||
0.153 Professor Senior juniors= 0 laj= 0 Gregor Bongaerts (Sociology)
|
||||
|
||||
Report -> /Users/armgdon/University/projects/smart-guide/smart-guide-code/service/scripts/multiplicators/cache/validation_I62318514.json
|
||||
@@ -0,0 +1,62 @@
|
||||
{
|
||||
"missing": [
|
||||
"Peter Bayer (A5060566345)",
|
||||
"Richard Kosinski (A5014403509)",
|
||||
"Alexandra Dmitrienko (A5042835341)",
|
||||
"Wilhelm Koop (A5019228221)",
|
||||
"Venkata Marella (A5082156768)",
|
||||
"Miriam Böhm (A5037448457)",
|
||||
"Katrin Schuldt (A5002003996)",
|
||||
"Friedrich Scheller (A5072565080)",
|
||||
"Lara Altenstädter (A5070117981)"
|
||||
],
|
||||
"by_status": {
|
||||
"Professor": {
|
||||
"mentor": {
|
||||
"n": 29,
|
||||
"median": 0.74,
|
||||
"mean": 0.691,
|
||||
"min": 0.153,
|
||||
"max": 0.921
|
||||
},
|
||||
"bridger": {
|
||||
"n": 29,
|
||||
"median": 0.629,
|
||||
"mean": 0.618,
|
||||
"min": 0.291,
|
||||
"max": 0.856
|
||||
},
|
||||
"amplifier": {
|
||||
"n": 29,
|
||||
"median": 0.612,
|
||||
"mean": 0.584,
|
||||
"min": 0.357,
|
||||
"max": 0.84
|
||||
}
|
||||
},
|
||||
"Researcher": {
|
||||
"mentor": {
|
||||
"n": 22,
|
||||
"median": 0.494,
|
||||
"mean": 0.514,
|
||||
"min": 0.242,
|
||||
"max": 0.958
|
||||
},
|
||||
"bridger": {
|
||||
"n": 22,
|
||||
"median": 0.469,
|
||||
"mean": 0.509,
|
||||
"min": 0.224,
|
||||
"max": 0.796
|
||||
},
|
||||
"amplifier": {
|
||||
"n": 22,
|
||||
"median": 0.45,
|
||||
"mean": 0.529,
|
||||
"min": 0.363,
|
||||
"max": 0.772
|
||||
}
|
||||
}
|
||||
},
|
||||
"m1_exit_mentor_check": "PASS"
|
||||
}
|
||||
@@ -0,0 +1,70 @@
|
||||
{
|
||||
"missing": [
|
||||
"Barbara Saccà (A5075803366)",
|
||||
"Peter Bayer (A5060566345)",
|
||||
"Richard Kosinski (A5014403509)",
|
||||
"Alexandra Dmitrienko (A5042835341)",
|
||||
"Christian Niesler (A5069184110)",
|
||||
"Pascal Winkler (A5081189339)",
|
||||
"Wilhelm Koop (A5019228221)",
|
||||
"Venkata Marella (A5082156768)",
|
||||
"Miriam Böhm (A5037448457)",
|
||||
"Soheil Salighe (A5041884757)",
|
||||
"Tobias Mikolas (A5002909977)",
|
||||
"Oliver Witzke (A5087456839)",
|
||||
"Ulrike Bingel (A5002281474)",
|
||||
"Katrin Schuldt (A5002003996)",
|
||||
"Helen Baykara-Krumme (A5010111732)",
|
||||
"Friedrich Scheller (A5072565080)",
|
||||
"Lara Altenstädter (A5070117981)"
|
||||
],
|
||||
"by_status": {
|
||||
"Professor": {
|
||||
"mentor": {
|
||||
"n": 25,
|
||||
"median": 0.715,
|
||||
"mean": 0.663,
|
||||
"min": 0.153,
|
||||
"max": 0.921
|
||||
},
|
||||
"bridger": {
|
||||
"n": 25,
|
||||
"median": 0.603,
|
||||
"mean": 0.598,
|
||||
"min": 0.229,
|
||||
"max": 0.849
|
||||
},
|
||||
"amplifier": {
|
||||
"n": 25,
|
||||
"median": 0.655,
|
||||
"mean": 0.604,
|
||||
"min": 0.173,
|
||||
"max": 0.957
|
||||
}
|
||||
},
|
||||
"Researcher": {
|
||||
"mentor": {
|
||||
"n": 18,
|
||||
"median": 0.493,
|
||||
"mean": 0.503,
|
||||
"min": 0.153,
|
||||
"max": 0.924
|
||||
},
|
||||
"bridger": {
|
||||
"n": 18,
|
||||
"median": 0.508,
|
||||
"mean": 0.521,
|
||||
"min": 0.181,
|
||||
"max": 0.804
|
||||
},
|
||||
"amplifier": {
|
||||
"n": 18,
|
||||
"median": 0.413,
|
||||
"mean": 0.543,
|
||||
"min": 0.161,
|
||||
"max": 0.971
|
||||
}
|
||||
}
|
||||
},
|
||||
"m1_exit_mentor_check": "PASS"
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
# Define here the models for your scraped items
|
||||
#
|
||||
# See documentation in:
|
||||
# https://docs.scrapy.org/en/latest/topics/items.html
|
||||
|
||||
import scrapy
|
||||
|
||||
|
||||
class AktuellItem(scrapy.Item):
|
||||
# define the fields for your item here like:
|
||||
# name = scrapy.Field()
|
||||
pass
|
||||
@@ -0,0 +1,103 @@
|
||||
# Define here the models for your spider middleware
|
||||
#
|
||||
# See documentation in:
|
||||
# https://docs.scrapy.org/en/latest/topics/spider-middleware.html
|
||||
|
||||
from scrapy import signals
|
||||
|
||||
# useful for handling different item types with a single interface
|
||||
from itemadapter import is_item, ItemAdapter
|
||||
|
||||
|
||||
class AktuellSpiderMiddleware:
|
||||
# Not all methods need to be defined. If a method is not defined,
|
||||
# scrapy acts as if the spider middleware does not modify the
|
||||
# passed objects.
|
||||
|
||||
@classmethod
|
||||
def from_crawler(cls, crawler):
|
||||
# This method is used by Scrapy to create your spiders.
|
||||
s = cls()
|
||||
crawler.signals.connect(s.spider_opened, signal=signals.spider_opened)
|
||||
return s
|
||||
|
||||
def process_spider_input(self, response, spider):
|
||||
# Called for each response that goes through the spider
|
||||
# middleware and into the spider.
|
||||
|
||||
# Should return None or raise an exception.
|
||||
return None
|
||||
|
||||
def process_spider_output(self, response, result, spider):
|
||||
# Called with the results returned from the Spider, after
|
||||
# it has processed the response.
|
||||
|
||||
# Must return an iterable of Request, or item objects.
|
||||
for i in result:
|
||||
yield i
|
||||
|
||||
def process_spider_exception(self, response, exception, spider):
|
||||
# Called when a spider or process_spider_input() method
|
||||
# (from other spider middleware) raises an exception.
|
||||
|
||||
# Should return either None or an iterable of Request or item objects.
|
||||
pass
|
||||
|
||||
def process_start_requests(self, start_requests, spider):
|
||||
# Called with the start requests of the spider, and works
|
||||
# similarly to the process_spider_output() method, except
|
||||
# that it doesn’t have a response associated.
|
||||
|
||||
# Must return only requests (not items).
|
||||
for r in start_requests:
|
||||
yield r
|
||||
|
||||
def spider_opened(self, spider):
|
||||
spider.logger.info("Spider opened: %s" % spider.name)
|
||||
|
||||
|
||||
class AktuellDownloaderMiddleware:
|
||||
# Not all methods need to be defined. If a method is not defined,
|
||||
# scrapy acts as if the downloader middleware does not modify the
|
||||
# passed objects.
|
||||
|
||||
@classmethod
|
||||
def from_crawler(cls, crawler):
|
||||
# This method is used by Scrapy to create your spiders.
|
||||
s = cls()
|
||||
crawler.signals.connect(s.spider_opened, signal=signals.spider_opened)
|
||||
return s
|
||||
|
||||
def process_request(self, request, spider):
|
||||
# Called for each request that goes through the downloader
|
||||
# middleware.
|
||||
|
||||
# Must either:
|
||||
# - return None: continue processing this request
|
||||
# - or return a Response object
|
||||
# - or return a Request object
|
||||
# - or raise IgnoreRequest: process_exception() methods of
|
||||
# installed downloader middleware will be called
|
||||
return None
|
||||
|
||||
def process_response(self, request, response, spider):
|
||||
# Called with the response returned from the downloader.
|
||||
|
||||
# Must either;
|
||||
# - return a Response object
|
||||
# - return a Request object
|
||||
# - or raise IgnoreRequest
|
||||
return response
|
||||
|
||||
def process_exception(self, request, exception, spider):
|
||||
# Called when a download handler or a process_request()
|
||||
# (from other downloader middleware) raises an exception.
|
||||
|
||||
# Must either:
|
||||
# - return None: continue processing this exception
|
||||
# - return a Response object: stops process_exception() chain
|
||||
# - return a Request object: stops process_exception() chain
|
||||
pass
|
||||
|
||||
def spider_opened(self, spider):
|
||||
spider.logger.info("Spider opened: %s" % spider.name)
|
||||
@@ -0,0 +1,13 @@
|
||||
# Define your item pipelines here
|
||||
#
|
||||
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
|
||||
# See: https://docs.scrapy.org/en/latest/topics/item-pipeline.html
|
||||
|
||||
|
||||
# useful for handling different item types with a single interface
|
||||
from itemadapter import ItemAdapter
|
||||
|
||||
|
||||
class AktuellPipeline:
|
||||
def process_item(self, item, spider):
|
||||
return item
|
||||
@@ -0,0 +1,93 @@
|
||||
# Scrapy settings for aktuell project
|
||||
#
|
||||
# For simplicity, this file contains only settings considered important or
|
||||
# commonly used. You can find more settings consulting the documentation:
|
||||
#
|
||||
# https://docs.scrapy.org/en/latest/topics/settings.html
|
||||
# https://docs.scrapy.org/en/latest/topics/downloader-middleware.html
|
||||
# https://docs.scrapy.org/en/latest/topics/spider-middleware.html
|
||||
|
||||
BOT_NAME = "aktuell"
|
||||
|
||||
SPIDER_MODULES = ["aktuell.spiders"]
|
||||
NEWSPIDER_MODULE = "aktuell.spiders"
|
||||
|
||||
|
||||
# Crawl responsibly by identifying yourself (and your website) on the user-agent
|
||||
#USER_AGENT = "aktuell (+http://www.yourdomain.com)"
|
||||
|
||||
# Obey robots.txt rules
|
||||
ROBOTSTXT_OBEY = True
|
||||
|
||||
# Configure maximum concurrent requests performed by Scrapy (default: 16)
|
||||
#CONCURRENT_REQUESTS = 32
|
||||
|
||||
# Configure a delay for requests for the same website (default: 0)
|
||||
# See https://docs.scrapy.org/en/latest/topics/settings.html#download-delay
|
||||
# See also autothrottle settings and docs
|
||||
DOWNLOAD_DELAY = 5
|
||||
# The download delay setting will honor only one of:
|
||||
#CONCURRENT_REQUESTS_PER_DOMAIN = 16
|
||||
#CONCURRENT_REQUESTS_PER_IP = 16
|
||||
|
||||
# Disable cookies (enabled by default)
|
||||
#COOKIES_ENABLED = False
|
||||
|
||||
# Disable Telnet Console (enabled by default)
|
||||
#TELNETCONSOLE_ENABLED = False
|
||||
|
||||
# Override the default request headers:
|
||||
#DEFAULT_REQUEST_HEADERS = {
|
||||
# "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
|
||||
# "Accept-Language": "en",
|
||||
#}
|
||||
|
||||
# Enable or disable spider middlewares
|
||||
# See https://docs.scrapy.org/en/latest/topics/spider-middleware.html
|
||||
#SPIDER_MIDDLEWARES = {
|
||||
# "aktuell.middlewares.AktuellSpiderMiddleware": 543,
|
||||
#}
|
||||
|
||||
# Enable or disable downloader middlewares
|
||||
# See https://docs.scrapy.org/en/latest/topics/downloader-middleware.html
|
||||
#DOWNLOADER_MIDDLEWARES = {
|
||||
# "aktuell.middlewares.AktuellDownloaderMiddleware": 543,
|
||||
#}
|
||||
|
||||
# Enable or disable extensions
|
||||
# See https://docs.scrapy.org/en/latest/topics/extensions.html
|
||||
#EXTENSIONS = {
|
||||
# "scrapy.extensions.telnet.TelnetConsole": None,
|
||||
#}
|
||||
|
||||
# Configure item pipelines
|
||||
# See https://docs.scrapy.org/en/latest/topics/item-pipeline.html
|
||||
#ITEM_PIPELINES = {
|
||||
# "aktuell.pipelines.AktuellPipeline": 300,
|
||||
#}
|
||||
|
||||
# Enable and configure the AutoThrottle extension (disabled by default)
|
||||
# See https://docs.scrapy.org/en/latest/topics/autothrottle.html
|
||||
#AUTOTHROTTLE_ENABLED = True
|
||||
# The initial download delay
|
||||
#AUTOTHROTTLE_START_DELAY = 5
|
||||
# The maximum download delay to be set in case of high latencies
|
||||
#AUTOTHROTTLE_MAX_DELAY = 60
|
||||
# The average number of requests Scrapy should be sending in parallel to
|
||||
# each remote server
|
||||
#AUTOTHROTTLE_TARGET_CONCURRENCY = 1.0
|
||||
# Enable showing throttling stats for every response received:
|
||||
#AUTOTHROTTLE_DEBUG = False
|
||||
|
||||
# Enable and configure HTTP caching (disabled by default)
|
||||
# See https://docs.scrapy.org/en/latest/topics/downloader-middleware.html#httpcache-middleware-settings
|
||||
#HTTPCACHE_ENABLED = True
|
||||
#HTTPCACHE_EXPIRATION_SECS = 0
|
||||
#HTTPCACHE_DIR = "httpcache"
|
||||
#HTTPCACHE_IGNORE_HTTP_CODES = []
|
||||
#HTTPCACHE_STORAGE = "scrapy.extensions.httpcache.FilesystemCacheStorage"
|
||||
|
||||
# Set settings whose default value is deprecated to a future-proof value
|
||||
REQUEST_FINGERPRINTER_IMPLEMENTATION = "2.7"
|
||||
TWISTED_REACTOR = "twisted.internet.asyncioreactor.AsyncioSelectorReactor"
|
||||
FEED_EXPORT_ENCODING = "utf-8"
|
||||
@@ -0,0 +1,4 @@
|
||||
# This package will contain the spiders of your Scrapy project
|
||||
#
|
||||
# Please refer to the documentation for information on how to create and manage
|
||||
# your spiders.
|
||||
@@ -0,0 +1,45 @@
|
||||
import scrapy
|
||||
|
||||
class LinksCrawler(scrapy.Spider):
|
||||
name = "aktuell-links"
|
||||
|
||||
current = 1
|
||||
first = True
|
||||
max_num = 100
|
||||
|
||||
def start_requests(self):
|
||||
url = 'https://www.uni-due.de/aktuell/?page=1&list_max=250'
|
||||
yield scrapy.Request(url=url, callback=self.parse)
|
||||
|
||||
def parse(self, response):
|
||||
if self.first:
|
||||
self.first = False
|
||||
max_num_text = response.selector.xpath('//div[contains(@id,"content__old__main")]/form/div/div/div[1]/div[1]/text()[2]').get()
|
||||
self.max_num = int(max_num_text[4:])
|
||||
|
||||
rows = response.selector.xpath('//div[contains(@id,"content__old__main")]/div[contains(@class,"row")]').getall()
|
||||
|
||||
for i in range(len(rows)):
|
||||
cols = response.selector.xpath('//div[contains(@id,"content__old__main")]/div[contains(@class,"row")][' + str(i + 1) + ']/div/div/div/div').getall()
|
||||
|
||||
for o in range(len(cols)):
|
||||
link = response.selector.xpath('//div[contains(@id,"content__old__main")]/div[contains(@class,"row")][' + str(i + 1) + ']/div/div/div/div[' + str(o + 1) + ']/div/a/@href').get()
|
||||
tags_num = response.selector.xpath('//div[contains(@id,"content__old__main")]/div[contains(@class,"row")][' + str(i + 1) + ']/div/div/div/div[' + str(o + 1) + ']/div/ul/li').getall()
|
||||
tags = []
|
||||
|
||||
for p in range(len(tags_num)):
|
||||
tag = response.selector.xpath('//div[contains(@id,"content__old__main")]/div[contains(@class,"row")][' + str(i + 1) + ']/div/div/div/div[' + str(o + 1) + ']/div/ul/li[' + str(p + 1) + ']/a/text()').get()
|
||||
|
||||
if tag != None:
|
||||
tags.append(tag)
|
||||
|
||||
yield {
|
||||
"link": "https://www.uni-due.de" + link,
|
||||
"tags": tags
|
||||
}
|
||||
|
||||
self.current = self.current + 1
|
||||
if self.current <= self.max_num:
|
||||
next_page = "https://www.uni-due.de/aktuell/?page=" + str(self.current) + "&list_max=250"
|
||||
|
||||
yield response.follow(next_page, callback=self.parse)
|
||||
@@ -0,0 +1,153 @@
|
||||
import scrapy
|
||||
import json
|
||||
from scrapy.linkextractors import LinkExtractor
|
||||
import os
|
||||
|
||||
class MetaDataCrawler(scrapy.Spider):
|
||||
name = "aktuell-metadata"
|
||||
|
||||
link_extractor = LinkExtractor()
|
||||
log = {}
|
||||
|
||||
def start_requests(self):
|
||||
with open("out/links.json", "r") as file:
|
||||
urls = json.load(file)
|
||||
print("file loaded")
|
||||
|
||||
print("start logging")
|
||||
# start log
|
||||
if os.path.exists("out/aktuell_crawler_log.json"):
|
||||
# if json exists -> read in file
|
||||
with open('out/aktuell_crawler_log.json', 'r') as jsonfile:
|
||||
self.log = json.load(jsonfile)
|
||||
else:
|
||||
# if json doesn't exist -> #1 create json -> #2 write in initial structure -> #3 read it in
|
||||
# 1
|
||||
open("out/aktuell_crawler_log.json", "x")
|
||||
# 2
|
||||
initial_dict = {"done": []}
|
||||
with open("out/aktuell_crawler_log.json", "w") as jsonfile:
|
||||
jsonfile.write(json.dumps(initial_dict))
|
||||
# 3
|
||||
with open('out/aktuell_crawler_log.json', 'r') as jsonfile:
|
||||
self.log = json.load(jsonfile)
|
||||
|
||||
for url in urls:
|
||||
if url["link"] not in self.log["done"]:
|
||||
yield scrapy.Request(url=url["link"], callback=self.parse)
|
||||
self.log["done"].append(url["link"])
|
||||
with open("out/aktuell_crawler_log.json", "w") as jsonfile:
|
||||
jsonfile.write(json.dumps(self.log))
|
||||
else:
|
||||
continue
|
||||
|
||||
def parse(self, response):
|
||||
subtitle = response.selector.xpath('//div[contains(@id,"content__old__main")]/div[1]/div/h2[contains(@class, "card-subtitle")]/text()').get()
|
||||
maintitle = response.selector.xpath('//div[contains(@id,"content__old__main")]/div[1]/div/h2[contains(@class, "card-title")]/text()').get()
|
||||
|
||||
tags_num = response.selector.xpath('//div[contains(@id,"content__old__main")]/div[1]/div/ul/li').getall()
|
||||
tags = []
|
||||
|
||||
for p in range(len(tags_num)):
|
||||
tag = response.selector.xpath('//div[contains(@id,"content__old__main")]/div[1]/div/ul/li[' + str(p + 1) + ']/a/text()').get()
|
||||
|
||||
if tag != None:
|
||||
tags.append(tag)
|
||||
|
||||
author = ""
|
||||
date = ""
|
||||
if response.selector.xpath('//div[contains(@id,"content__old__main")]/div[1]/div/div[contains(@class, "card-text")]/ul/li[1]/text()').get() == "von ":
|
||||
author = response.selector.xpath('//div[contains(@id,"content__old__main")]/div[1]/div/div[contains(@class, "card-text")]/ul/li[1]/b/text()').get()
|
||||
date = response.selector.xpath('//div[contains(@id,"content__old__main")]/div[1]/div/div[contains(@class, "card-text")]/ul/li[2]/text()').get()
|
||||
else:
|
||||
date = response.selector.xpath('//div[contains(@id,"content__old__main")]/div[1]/div/div[contains(@class, "card-text")]/ul/li[1]/text()').get()
|
||||
|
||||
content_num = response.selector.xpath('//div[contains(@id,"content__old__main")]/div[1]/div/div[contains(@class, "card-text")]/p').getall()
|
||||
main_content = ""
|
||||
intro_content = ""
|
||||
further_content = ""
|
||||
is_further = False
|
||||
redaktion = ""
|
||||
|
||||
for p in range(len(content_num)):
|
||||
if p == 0:
|
||||
current_content = response.selector.xpath('//div[contains(@id,"content__old__main")]/div[1]/div/div[contains(@class, "card-text")]/p[' + str(p + 1) + ']/strong').get()
|
||||
check_h2 = response.selector.xpath('//div[contains(@id,"content__old__main")]/div[1]/div/div[contains(@class, "card-text")]/h2').get()
|
||||
|
||||
if current_content is not None and check_h2 is None:
|
||||
current_contents = response.selector.xpath('//div[contains(@id,"content__old__main")]/div[1]/div/div[contains(@class, "card-text")]/p[' + str(p + 1) + ']//text()').getall()
|
||||
current_content = "".join(current_contents)
|
||||
intro_content = current_content + " "
|
||||
else:
|
||||
current_contents = response.selector.xpath('//div[contains(@id,"content__old__main")]/div[1]/div/div[contains(@class, "card-text")]/p[' + str(p + 1) + ']//text()').getall()
|
||||
current_content = "".join(current_contents)
|
||||
main_content = main_content + current_content + " "
|
||||
elif is_further:
|
||||
current_contents = response.selector.xpath('//div[contains(@id,"content__old__main")]/div[1]/div/div[contains(@class, "card-text")]/p[' + str(p + 1) + ']//text()').getall()
|
||||
current_content = "".join(current_contents)
|
||||
|
||||
if current_content.startswith("Redaktion: "):
|
||||
redaktion = current_content + " "
|
||||
else:
|
||||
further_content = further_content + current_content + " "
|
||||
else:
|
||||
current_content = response.selector.xpath('//div[contains(@id,"content__old__main")]/div[1]/div/div[contains(@class, "card-text")]/p[' + str(p + 1) + ']/strong/text()').get()
|
||||
|
||||
if current_content is not None and current_content.startswith("Weitere Informationen"):
|
||||
is_further = True
|
||||
current_contents = response.selector.xpath('//div[contains(@id,"content__old__main")]/div[1]/div/div[contains(@class, "card-text")]/p[' + str(p + 1) + ']//text()').getall()
|
||||
current_content = "".join(current_contents)
|
||||
|
||||
if current_content.startswith("Redaktion: "):
|
||||
redaktion = current_content + " "
|
||||
else:
|
||||
further_content = further_content + current_content + " "
|
||||
else:
|
||||
current_contents = response.selector.xpath('//div[contains(@id,"content__old__main")]/div[1]/div/div[contains(@class, "card-text")]/p[' + str(p + 1) + ']//text()').getall()
|
||||
current_content = "".join(current_contents)
|
||||
|
||||
if current_content.startswith("Redaktion: "):
|
||||
current_contents = response.selector.xpath('//div[contains(@id,"content__old__main")]/div[1]/div/div[contains(@class, "card-text")]/p[' + str(p + 1) + ']//text()').getall()
|
||||
current_content = "".join(current_contents)
|
||||
redaktion = current_content + " "
|
||||
else:
|
||||
main_content = main_content + current_content + " "
|
||||
|
||||
full_content = intro_content + " " + main_content
|
||||
main_content = main_content.replace("\n", " ").replace("\r", " ").replace("\t", " ").replace("\b", " ")
|
||||
intro_content = intro_content.replace("\n", " ").replace("\r", " ").replace("\t", " ").replace("\b", " ")
|
||||
further_content = further_content.replace("\n", " ").replace("\r", " ").replace("\t", " ").replace("\b", " ")
|
||||
|
||||
links = self.link_extractor.extract_links(response)
|
||||
filtered_links = []
|
||||
for link in links:
|
||||
l = {"url": link.url, "text": link.text.replace("\n", " ").replace("\r", " ").replace("\t", " ").replace("\b", " ")}
|
||||
filtered_links.append(l)
|
||||
|
||||
date_year = ""
|
||||
if not date == "":
|
||||
date_year = date[-4:]
|
||||
|
||||
date_full = ""
|
||||
if not date == "":
|
||||
d1 = date[:2]
|
||||
d2 = date[3:5]
|
||||
d3 = date[6:]
|
||||
date_full = d3 + d2 + d1
|
||||
|
||||
yield {
|
||||
"subtitle": subtitle,
|
||||
"maintitle": maintitle,
|
||||
"tags": tags,
|
||||
"author": author,
|
||||
"date": date,
|
||||
"date_year": date_year,
|
||||
"date_full": date_full,
|
||||
"intro_content": intro_content,
|
||||
"main_content": main_content,
|
||||
"further_content": further_content,
|
||||
"redaktion": redaktion,
|
||||
"full_content": full_content,
|
||||
"links": filtered_links,
|
||||
"url": response.request.url
|
||||
}
|
||||