diff --git a/.dockerignore b/.dockerignore
new file mode 100644
index 00000000..888e85bd
--- /dev/null
+++ b/.dockerignore
@@ -0,0 +1,15 @@
+*
+!background-jobs
+!service
+service/*
+!service/scripts
+
+# Data-only folders that do not belong in the job image.
+service/scripts/multipliers
+
+**/__pycache__
+**/*.pyc
+**/.venv
+**/.env
+**/.env.*
+**/out
diff --git a/analysis/career_stage/career_stage_analysis.py b/analysis/career_stage/career_stage_analysis.py
index 2a7ca930..93bfecd8 100644
--- a/analysis/career_stage/career_stage_analysis.py
+++ b/analysis/career_stage/career_stage_analysis.py
@@ -5,7 +5,6 @@ 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"
diff --git a/analysis/career_stage/career_stage_visualization.py b/analysis/career_stage/career_stage_visualization.py
index ddd8a134..6ac73ab1 100644
--- a/analysis/career_stage/career_stage_visualization.py
+++ b/analysis/career_stage/career_stage_visualization.py
@@ -1,10 +1,10 @@
+from collections.abc import Callable
from pathlib import Path
-from typing import Callable, Literal
+from typing import 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"
diff --git a/analysis/career_stage/openalex_client.py b/analysis/career_stage/openalex_client.py
index a71d1250..bfecd72d 100644
--- a/analysis/career_stage/openalex_client.py
+++ b/analysis/career_stage/openalex_client.py
@@ -4,7 +4,6 @@ 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
diff --git a/background-jobs/.dockerignore b/background-jobs/.dockerignore
new file mode 100644
index 00000000..9b43b1ce
--- /dev/null
+++ b/background-jobs/.dockerignore
@@ -0,0 +1,5 @@
+.env
+.env.*
+__pycache__/
+*.pyc
+.venv/
diff --git a/background-jobs/.env.example b/background-jobs/.env.example
new file mode 100644
index 00000000..51667cb8
--- /dev/null
+++ b/background-jobs/.env.example
@@ -0,0 +1,7 @@
+# Copy this file to `.env` and fill in the real values.
+# `.env` is gitignored and is NOT baked into the image.
+INSE_ELASTIC_URL=https://inse.nes.uni-due.de/elastic
+INSE_ELASTIC_API_KEY=your-elastic-api-key-here
+INSE_LLM_BASE_URL=https://project.nes.uni-due.de/llm2/v1/
+INSE_LLM_API_KEY=your-llm-api-key-here
+INSE_LLM_MODEL=gemma4-e4b
diff --git a/background-jobs/.gitignore b/background-jobs/.gitignore
new file mode 100644
index 00000000..ccbef30f
--- /dev/null
+++ b/background-jobs/.gitignore
@@ -0,0 +1,5 @@
+# Local secrets – never commit
+.env
+
+__pycache__/
+*.pyc
diff --git a/background-jobs/README.md b/background-jobs/README.md
new file mode 100644
index 00000000..000e414c
--- /dev/null
+++ b/background-jobs/README.md
@@ -0,0 +1,95 @@
+# Background Jobs
+
+Background Jobs sind Docker-Container, die regelmäßig oder manuell Elasticsearch-Daten verarbeiten. Sie werden vom Backend über den Docker-Socket gestartet.
+
+**Wichtig:** Jobs sind in der **Datenbank**, nicht im Image. Das Image enthält nur die ausführbaren Skripte.
+
+## Jobs anlegen
+
+**Frontend** (`/jobs`):
+
+- "Neuer Job" → Name + Command + optionales Image + Zeitplan
+
+**API**:
+
+```bash
+curl -X POST -H "Authorization: Bearer $TOKEN" \
+ -d '{"name": "Sync", "command": "python sync.py --sync-delta", "schedule": "0 3 * * *"}' \
+ http://localhost:8000/api/background-jobs/tasks
+```
+
+Command-Beispiele:
+
+```
+python service/scripts/demo/demo.py 20
+python sync.py --sync-delta
+python service/scripts/news/ude/run_pipeline.py --skip-upload --max-items 5
+python -m service.scripts.news.topic_mapper.map_news_topics --output-index docker-job_test --max-docs 50
+python -m service.scripts.projects.topic_mapper.map_project_topics --dry-run
+sh -c "cd service/scripts/projects/bund && python gpc.data.py --skip-upload"
+```
+
+**Neue Jobs = kein Image-Rebuild.** Die Skripte sind bereits im Image; der Command wird direkt an Docker übergeben.
+
+## Image & Dockerfile
+
+Das [Dockerfile](../service/scripts/jobs-image/Dockerfile) kopiert den kompletten `service/scripts/`-Baum (Pfade im Container = Pfade im Repo) plus `background-jobs/app/` (sync.py) und hat keinen ENTRYPOINT. Neue Skripte unter `service/scripts` landen automatisch im nächsten Build — ohne Dockerfile-Änderung. Der Backend startet Container direkt:
+
+```python
+docker.run(image="...", command="python sync.py --sync-delta")
+```
+
+**Skripte hinzugefügt oder geändert?** → Image neu bauen + pushen:
+
+```bash
+docker build -f service/scripts/jobs-image/Dockerfile -t docker.nes.uni-due.de/inse/background-jobs:latest .
+docker push docker.nes.uni-due.de/inse/background-jobs:latest
+```
+
+Lokal testen ohne Pull:
+
+```bash
+export BACKGROUND_JOBS_PULL_BEFORE_RUN=false
+```
+
+## Scheduling
+
+Job mit `schedule: "0 3 * * *"` und `enabled: true` läuft automatisch täglich um 3:00 UTC. Manuell starten: "Jetzt ausführen" Button oder API.
+
+## Logs
+
+Während Laufzeit: Live vom Container. Nach Beendigung: Letzte 200 Zeilen in der DB. Frontend: "Logs anzeigen" Button.
+
+## Docker-Socket (Deployment)
+
+```yaml
+# docker-compose
+backend:
+ volumes:
+ - /var/run/docker.sock:/var/run/docker.sock
+```
+
+Ohne Socket-Mount funktioniert nichts.
+
+## Env-Variablen
+
+Standard-Image erhält automatisch:
+
+- `INSE_ELASTIC_URL`, `INSE_ELASTIC_API_KEY`
+- `INSE_LLM_*`, `ELASTICSEARCH_INSE_*`, `SENTENCE_TRANSFORMERS_MODEL_NAME`
+
+Plus `env` aus der Job-Definition.
+
+**Eigene Images** bekommen nur die `env`-Variablen (Sicherheit).
+
+## API
+
+- `GET /api/background-jobs/tasks` — Jobs auflisten
+- `POST /api/background-jobs/tasks` — Job anlegen
+- `DELETE /api/background-jobs/tasks/{id}` — Job löschen
+- `POST /api/background-jobs/tasks/{id}/run` — Run starten
+- `PATCH /api/background-jobs/tasks/{id}` — Schedule ändern
+- `GET /api/background-jobs/runs/{id}/logs` — Logs abrufen
+- `POST /api/background-jobs/runs/{id}/stop` — Run stoppen
+
+Alle Endpoints erfordern Superadmin-Auth.
diff --git a/background-jobs/app/elastic/client.py b/background-jobs/app/elastic/client.py
new file mode 100644
index 00000000..da07f59f
--- /dev/null
+++ b/background-jobs/app/elastic/client.py
@@ -0,0 +1,152 @@
+import os
+from urllib.parse import quote
+
+import requests
+from dotenv import load_dotenv
+from requests.adapters import HTTPAdapter
+
+load_dotenv()
+
+INSE_URL = os.getenv("INSE_ELASTIC_URL", "https://inse.nes.uni-due.de/elastic")
+INSE_API_KEY = os.getenv("INSE_ELASTIC_API_KEY")
+if not INSE_API_KEY:
+ raise RuntimeError(
+ "INSE_ELASTIC_API_KEY is not set. Copy .env.example to .env and fill it in, "
+ "or pass it as an environment variable."
+ )
+
+ES_HEADERS = {
+ "Authorization": f"ApiKey {INSE_API_KEY}",
+ "Content-Type": "application/json",
+}
+
+_session = requests.Session()
+_session.headers.update(ES_HEADERS)
+_adapter = HTTPAdapter(pool_connections=32, pool_maxsize=32)
+_session.mount("https://", _adapter)
+_session.mount("http://", _adapter)
+
+def _send_es_request(method: str, url: str, payload: dict = None) -> dict:
+
+ try:
+ response = _session.request(
+ method=method,
+ url=url,
+ json=payload,
+ )
+ response.raise_for_status()
+ return response.json()
+ except requests.RequestException as error:
+ print(f"Send Request failed: ({method} {url}): {error}")
+ raise
+
+def add_entry(index: str, entry: dict):
+
+ endpoint = f"{INSE_URL}/{index}/_doc"
+
+ document_body = {
+ "news_id": entry["news_id"],
+ "relevant": int(entry["relevant"]),
+ "authors": entry["authors"],
+ "keywords": entry.get("keywords", []),
+ }
+
+ response_data = _send_es_request("POST", endpoint, payload=document_body)
+
+ created_id = response_data["_id"]
+ entry["_id"] = created_id
+
+ return created_id
+
+def index_entry(index: str, document_id: str, entry: dict):
+
+ encoded_document_id = quote(document_id, safe="")
+ endpoint = f"{INSE_URL}/{index}/_doc/{encoded_document_id}"
+
+ document_body = {
+ "news_id": entry["news_id"],
+ "relevant": int(entry["relevant"]),
+ "authors": entry["authors"],
+ "keywords": entry.get("keywords", []),
+ }
+
+ return _send_es_request("PUT", endpoint, payload=document_body)
+
+def update_entry(index: str, document_id: str, partial_doc: dict):
+
+ encoded_document_id = quote(document_id, safe="")
+ endpoint = f"{INSE_URL}/{index}/_update/{encoded_document_id}"
+
+ return _send_es_request("POST", endpoint, payload={"doc": partial_doc})
+
+def get_entry(index: str, document_id: str) -> dict:
+
+ encoded_document_id = quote(document_id, safe="")
+ endpoint = f"{INSE_URL}/{index}/_doc/{encoded_document_id}"
+
+ return _send_es_request("GET", endpoint)
+
+def delete_entry(index: str, document_id: str):
+
+ encoded_document_id = quote(document_id, safe="")
+ endpoint = f"{INSE_URL}/{index}/_doc/{encoded_document_id}"
+
+ return _send_es_request("DELETE", endpoint)
+
+def get_all_entries(index: str, fields: list = None) -> list:
+
+ if not fields:
+ source_fields = True
+ else:
+ source_fields = fields
+
+ endpoint = f"{INSE_URL}/{index}/_search"
+
+ page_size = 1000
+ results = []
+ last_sort_value = None
+
+ while True:
+ payload = {
+ "query": {"match_all": {}},
+ "size": page_size,
+ "sort": [{"_doc": "asc"}],
+ "_source": source_fields,
+ }
+ if last_sort_value is not None:
+ payload["search_after"] = last_sort_value
+
+ response_data = _send_es_request("POST", endpoint, payload=payload)
+ results_list = response_data["hits"]["hits"]
+
+ if not results_list:
+ break
+
+ results.extend(results_list)
+ last_sort_value = results_list[-1]["sort"]
+
+ return results
+
+def delete_all_entries(index: str):
+
+ endpoint = f"{INSE_URL}/{index}/_delete_by_query"
+
+ payload = {
+ "query": {"match_all": {}}
+ }
+
+ return _send_es_request("POST", endpoint, payload=payload)
+
+def remove_field_all(index: str, field: str):
+
+ endpoint = f"{INSE_URL}/{index}/_update_by_query"
+
+ payload = {
+ "query": {"exists": {"field": field}},
+ "script": {
+ "source": f"ctx._source.remove('{field}')",
+ "lang": "painless",
+ },
+ }
+
+ return _send_es_request("POST", endpoint, payload=payload)
diff --git a/background-jobs/app/llm/client.py b/background-jobs/app/llm/client.py
new file mode 100644
index 00000000..1adcc7ce
--- /dev/null
+++ b/background-jobs/app/llm/client.py
@@ -0,0 +1,95 @@
+import os
+
+from dotenv import load_dotenv
+from openai import APIConnectionError, OpenAI
+
+load_dotenv()
+
+LLM_BASE_URL = os.getenv("INSE_LLM_BASE_URL", "https://project.nes.uni-due.de/llm2/v1/")
+LLM_API_KEY = os.getenv("INSE_LLM_API_KEY")
+if not LLM_API_KEY:
+ raise RuntimeError(
+ "INSE_LLM_API_KEY is not set. Copy .env.example to .env and fill it in, "
+ "or pass it as an environment variable."
+ )
+LLM_MODEL = os.getenv("INSE_LLM_MODEL", "gemma4-e4b")
+
+SYSTEM_PROMPT_RELEVANT = ("""
+ Du bewertest Nachrichtenartikel aus dem Campus-Aktuell-Bereich der Universität Duisburg-Essen.
+ Entscheide, ob der Artikel inhaltlich über eine konkrete Person berichtet, also über deren Werdegang, Forschung, Leistung, Auszeichnung oder Tätigkeit.
+ Falls du dir unsicher bist, ob eine Person im Mittelpunkt steht, dann entscheide dich bitte für die positivere Option (also 1), damit die Namensextraktion auf keinen Fall bei Artikeln mit Personenbezug versäumt wird.
+ Antworte mit 1, wenn eine konkrete Person im Mittelpunkt steht.
+ Antworte mit 0, wenn es sich um allgemeine Mitteilungen handelt, die keine einzelne Person in den Mittelpunkt stellen, zum Beispiel Veranstaltungs- und Terminhinweise, Spendenaufrufe, organisatorische Ankündigungen, allgemeine Universitätsinformationen oder Pressemitteilungen ohne Personenbezug.
+ Die bloße Nennung von Namen (etwa als Autor oder Ansprechpartner) reicht für eine 1 nicht aus; die Person muss inhaltlich Thema des Artikels sein.
+ Antworte ausschließlich mit einer einzigen Ziffer: 0 oder 1.
+""")
+
+SYSTEM_PROMPT_NAMES = ("""
+ Aus dem nachfolgenden Campus-Aktuell-Artikel der Universität Duisburg-Essen: Nenne die Namen aller konkreten Personen, um die es im Artikel inhaltlich geht.
+ Es können mehrere Personen sein. Bitte achte darauf dass du nur die Namen der Personen nennst, die tatsächlich im Mittelpunkt des Artikels stehen.
+ Insbesondere am Ende von Artikeln werden oft Personen genannt, die nur als Ansprechpartner oder Organisator und sollen deshalb nicht genannt werden.
+ Antworte ausschließlich mit gültigem JSON in exakt diesem Format: {\"person\": [\"Vorname Nachname\", \"Vorname Nachname\"]}
+ Gib keine Erklärungen und kein Markdown aus, nur das JSON.
+""")
+
+SYSTEM_PROMPT_KEYWORDS = ("""
+ Extrahiere aus dem nachfolgenden Campus-Aktuell-Artikel der Universität Duisburg-Essen die wichtigsten Schlagwörter (Keywords).
+ Wähle ausschließlich Begriffe oder Phrasen, die tatsächlich im Text vorkommen. Erfinde keine Begriffe, verallgemeinere nicht und nenne keine Oberbegriffe, die nicht im Text stehen.
+ Übersetze keine Begriffe – verwende ausschließlich Wörter und Phrasen in der Sprache des Artikels.
+ Gib jedes Schlagwort in seiner Grundform an: Bei deutschen Begriffen Substantive im Nominativ Singular; bei englischen Begriffen Substantive im Singular. Verwende den Plural nur, wenn der Begriff üblicherweise im Plural gebraucht wird.
+ Vermeide Redundanz: Wenn zwei mögliche Schlagwörter dieselbe Wortbasis teilen (z.B. „Forschung" und „Forschungsprojekt"), nenne nur den spezifischeren Begriff.
+ Nenne maximal sechs prägnante Begriffe oder kurze Phrasen. Konzentriere dich auf inhaltlich zentrale Begriffe, nicht auf Personennamen oder Datumsangaben.
+ Antworte ausschließlich mit gültigem JSON in exakt diesem Format: {\"keywords\": [\"Schlagwort\", \"Schlagwort\"]}
+ Gib keine Erklärungen und kein Markdown aus, nur das JSON.
+""")
+
+_client = OpenAI(
+ base_url=LLM_BASE_URL,
+ api_key=LLM_API_KEY,
+ timeout=30,
+)
+
+def call(system_prompt, user_prompt, model=LLM_MODEL, temperature=1.0, top_p=0.95):
+ try:
+ response = _client.chat.completions.create(
+ model=model,
+ messages=[
+ {"role": "system", "content": system_prompt},
+ {"role": "user", "content": user_prompt},
+ ],
+ temperature=temperature,
+ top_p=top_p,
+ extra_body={"top_k": 64},
+ )
+ except APIConnectionError:
+ return None
+
+ return response.choices[0].message.content or None
+
+def is_news_relevant(text: str) -> bool:
+ result = call(SYSTEM_PROMPT_RELEVANT, text)
+ if result is None:
+ return False
+ return result.strip() == "1"
+
+def extract_names(text: str) -> list[str]:
+ result = call(SYSTEM_PROMPT_NAMES, text)
+ if result is None:
+ return []
+ try:
+ import json
+ data = json.loads(result)
+ return data.get("person", [])
+ except json.JSONDecodeError:
+ return []
+
+def extract_keywords(text: str) -> list[str]:
+ result = call(SYSTEM_PROMPT_KEYWORDS, text)
+ if result is None:
+ return []
+ try:
+ import json
+ data = json.loads(result)
+ return data.get("keywords", [])
+ except json.JSONDecodeError:
+ return []
diff --git a/background-jobs/app/sync.py b/background-jobs/app/sync.py
new file mode 100644
index 00000000..24222646
--- /dev/null
+++ b/background-jobs/app/sync.py
@@ -0,0 +1,247 @@
+import argparse
+import json
+import logging
+import threading
+import time
+from concurrent.futures import ThreadPoolExecutor, as_completed
+
+import elastic.client as es_client
+import llm.client as llm_client
+
+logging.basicConfig(level=logging.INFO, format="%(asctime)s %(levelname)s %(message)s")
+logger = logging.getLogger(__name__)
+
+POSTPROC_INDEX = "aktuell_postproc"
+
+def print_pretty_json(data):
+ logger.info(json.dumps(data, indent=2))
+
+def sync_single_news(news_id, max_retries=3):
+ attempt = 0
+ while attempt < max_retries:
+ try:
+ news_text = es_client.get_entry("aktuell", news_id)["_source"]["full_content"]
+ is_news_relevant = llm_client.is_news_relevant(news_text)
+ authors = llm_client.extract_names(news_text)
+ keywords = llm_client.extract_keywords(news_text)
+ new_entry = {
+ "news_id": news_id,
+ "relevant": is_news_relevant,
+ "authors": authors,
+ "keywords": keywords,
+ }
+ es_client.add_entry("aktuell_postproc", new_entry)
+ return True
+ except Exception as error:
+ attempt += 1
+ logger.warning(f"Warning syncing news_id {news_id} (Attempt {attempt}/{max_retries})")
+ if attempt < max_retries:
+ time.sleep(1)
+ else:
+ logger.error(f"Error: {news_id} - {error}")
+ return False
+
+def update_keywords_single(postproc_entry, target_index=POSTPROC_INDEX, max_retries=3):
+ doc_id = postproc_entry["_id"]
+ source = postproc_entry["_source"]
+ news_id = source["news_id"]
+ attempt = 0
+ while attempt < max_retries:
+ try:
+ news_text = es_client.get_entry("aktuell", news_id)["_source"]["full_content"]
+ keywords = llm_client.extract_keywords(news_text)
+ if not keywords:
+ # Empty article or unparseable LLM answer: writing an empty list
+ # would look like a success and block a later retry.
+ logger.info(f"Skipped {news_id}: no keywords extracted.")
+ return False
+ if target_index == POSTPROC_INDEX:
+ es_client.update_entry(POSTPROC_INDEX, doc_id, {"keywords": keywords})
+ else:
+ # Key the target doc on news_id so re-runs update it in place
+ # instead of piling up a new document each time.
+ es_client.index_entry(
+ target_index,
+ news_id,
+ {
+ "news_id": news_id,
+ "relevant": source.get("relevant", 0),
+ "authors": source.get("authors", []),
+ "keywords": keywords,
+ },
+ )
+ return True
+ except Exception as error:
+ attempt += 1
+ logger.warning(f"Warning updating keywords for news_id {news_id} (Attempt {attempt}/{max_retries})")
+ if attempt < max_retries:
+ time.sleep(1)
+ else:
+ logger.error(f"Error: {news_id} - {error}")
+ return False
+
+def main():
+ parser = argparse.ArgumentParser(description="Synchronize news articles from 'aktuell' index to 'aktuell_postproc' index with relevance and author extraction using LLM.")
+
+ parser.add_argument(
+ "--delete-all",
+ action="store_true",
+ help="Delete all entries from index 'aktuell_postproc'.",
+ )
+
+ parser.add_argument(
+ "--sync-delta",
+ action="store_true",
+ help="Sync only missing entries from 'aktuell' to 'aktuell_postproc'.",
+ )
+
+ parser.add_argument(
+ "--update-keywords",
+ action="store_true",
+ help="Add 'keywords' to existing 'aktuell_postproc' entries that don't have them yet (keeps relevant/authors).",
+ )
+
+ parser.add_argument(
+ "--reset-keywords",
+ action="store_true",
+ help="Remove the 'keywords' field from all 'aktuell_postproc' entries (keeps relevant/authors). Run before re-extracting with a new prompt.",
+ )
+
+ parser.add_argument(
+ "--stats",
+ action="store_true",
+ help="Print statistics about the entries in 'aktuell_postproc' and 'aktuell'.",
+ )
+
+ parser.add_argument(
+ "--threads",
+ type=int,
+ default=4,
+ help="Number of threads for --sync-delta (Default: 4).",
+ )
+
+ parser.add_argument(
+ "--limit",
+ type=int,
+ default=None,
+ help="Process at most this many entries (used by --update-keywords, e.g. for a smoke test).",
+ )
+
+ parser.add_argument(
+ "--target-index",
+ default=POSTPROC_INDEX,
+ help=(
+ f"Index that --update-keywords writes to (default: {POSTPROC_INDEX}). Any other "
+ "index gets new documents instead of in-place updates, and every entry is "
+ "re-extracted rather than only those missing keywords."
+ ),
+ )
+
+ args = parser.parse_args()
+
+ if args.delete_all:
+ es_client.delete_all_entries("aktuell_postproc")
+
+ if args.reset_keywords:
+ result = es_client.remove_field_all("aktuell_postproc", "keywords")
+ logger.info(f"Removed 'keywords' from {result.get('updated', 0)} entries.")
+
+ if args.sync_delta:
+ start_time = time.time()
+ aktuell_ids_raw = es_client.get_all_entries("aktuell", fields=["_id"])
+ postproc_ids_raw = es_client.get_all_entries("aktuell_postproc", fields=["news_id"])
+
+ source_ids = set(entry["_id"] for entry in aktuell_ids_raw)
+ target_ids = set(entry["_source"]["news_id"] for entry in postproc_ids_raw)
+ missing_ids = source_ids - target_ids
+
+ logger.info(f"Number of missing IDs: {len(missing_ids)}")
+
+ missing_ids = list(missing_ids)
+ total = len(missing_ids)
+
+ processed = 0
+ succeeded = 0
+ progress_lock = threading.Lock()
+
+ with ThreadPoolExecutor(max_workers=args.threads) as executor:
+ futures = [executor.submit(sync_single_news, news_id) for news_id in missing_ids]
+ for future in as_completed(futures):
+ was_successful = future.result()
+ with progress_lock:
+ processed += 1
+ if was_successful:
+ succeeded += 1
+ logger.info(f"Sync: {processed} / {total}")
+
+ end_time = time.time()
+ logger.info(f"Sync DONE: {succeeded} entries synced.")
+ logger.info(f"Time taken: {end_time - start_time} seconds.")
+
+ if args.update_keywords:
+ start_time = time.time()
+ postproc_entries = es_client.get_all_entries(
+ POSTPROC_INDEX, fields=["news_id", "keywords", "relevant", "authors"]
+ )
+
+ if args.target_index == POSTPROC_INDEX:
+ pending = [entry for entry in postproc_entries if not entry["_source"].get("keywords")]
+ logger.info(f"Number of entries without keywords: {len(pending)}")
+ else:
+ # Writing elsewhere never marks the postproc entries, so the "missing
+ # keywords" filter would select the same entries on every run. Pick
+ # entries that already have keywords instead: those are known to come
+ # from articles with actual content, unlike the empty archive stubs.
+ pending = [entry for entry in postproc_entries if entry["_source"].get("keywords")]
+ logger.info(f"Re-extracting keywords into '{args.target_index}': {len(pending)} candidates.")
+
+ if args.limit is not None:
+ pending = pending[:args.limit]
+
+ total = len(pending)
+ logger.info(f"Processing {total} entries.")
+
+ processed = 0
+ succeeded = 0
+ progress_lock = threading.Lock()
+
+ with ThreadPoolExecutor(max_workers=args.threads) as executor:
+ futures = [
+ executor.submit(update_keywords_single, entry, args.target_index)
+ for entry in pending
+ ]
+ for future in as_completed(futures):
+ was_successful = future.result()
+ with progress_lock:
+ processed += 1
+ if was_successful:
+ succeeded += 1
+ logger.info(f"Update keywords: {processed} / {total}")
+
+ end_time = time.time()
+ logger.info(f"Update keywords DONE: {succeeded} entries updated.")
+ logger.info(f"Time taken: {end_time - start_time} seconds.")
+
+ if args.stats:
+ aktuell_entries = es_client.get_all_entries("aktuell", fields=["_id"])
+ logger.info(f"Total entries in 'aktuell': {len(aktuell_entries)}")
+
+ postproc_entries = es_client.get_all_entries("aktuell_postproc", fields=["_id", "news_id", "relevant", "authors", "keywords"])
+ total_entries = len(postproc_entries)
+ relevant_count = sum(1 for entry in postproc_entries if entry["_source"]["relevant"] == 1)
+ irrelevant_count = total_entries - relevant_count
+ news_with_extracted_names = sum(1 for entry in postproc_entries if entry["_source"]["authors"])
+ news_without_extracted_names = total_entries - news_with_extracted_names
+ news_with_keywords = sum(1 for entry in postproc_entries if entry["_source"].get("keywords"))
+ news_without_keywords = total_entries - news_with_keywords
+
+ logger.info(f"Total entries in 'aktuell_postproc': {total_entries}")
+ logger.info(f"Relevant entries: {relevant_count}")
+ logger.info(f"Irrelevant entries: {irrelevant_count}")
+ logger.info(f"Entries with extracted names: {news_with_extracted_names}")
+ logger.info(f"Entries without extracted names: {news_without_extracted_names}")
+ logger.info(f"Entries with keywords: {news_with_keywords}")
+ logger.info(f"Entries without keywords: {news_without_keywords}")
+
+if __name__ == "__main__":
+ main()
diff --git a/llm_evaluations/AD_CD_llm/154203/old_test_outputs/test2.py b/llm_evaluations/AD_CD_llm/154203/old_test_outputs/test2.py
index f485151a..1e871d97 100644
--- a/llm_evaluations/AD_CD_llm/154203/old_test_outputs/test2.py
+++ b/llm_evaluations/AD_CD_llm/154203/old_test_outputs/test2.py
@@ -3,7 +3,6 @@ from pathlib import Path
from llama_parse import LlamaParse
-
BASE_DIR = Path(__file__).resolve().parent
AD_PATH = BASE_DIR / "AD.pdf"
diff --git a/llm_evaluations/AD_CD_llm/188274/old_test_outputs/test2.py b/llm_evaluations/AD_CD_llm/188274/old_test_outputs/test2.py
index a5e6f4b9..a0f9bf37 100644
--- a/llm_evaluations/AD_CD_llm/188274/old_test_outputs/test2.py
+++ b/llm_evaluations/AD_CD_llm/188274/old_test_outputs/test2.py
@@ -1,7 +1,7 @@
import pymupdf4llm
-AD_PATH = "188274\AD.pdf"
-CD_PATH = "188274\СD.pdf"
+AD_PATH = r"188274\AD.pdf"
+CD_PATH = r"188274\СD.pdf"
ad_md = pymupdf4llm.to_markdown(AD_PATH)
cd_md = pymupdf4llm.to_markdown(CD_PATH)
diff --git a/llm_evaluations/AD_CD_llm/AD_to_llm.py b/llm_evaluations/AD_CD_llm/AD_to_llm.py
index af501da4..dfd898af 100644
--- a/llm_evaluations/AD_CD_llm/AD_to_llm.py
+++ b/llm_evaluations/AD_CD_llm/AD_to_llm.py
@@ -1,7 +1,7 @@
-from pathlib import Path
import getpass
import json
import os
+from pathlib import Path
import pymupdf
import requests
@@ -206,7 +206,7 @@ def make_debug_data(
) -> dict:
choice = {}
- if "choices" in data and data["choices"]:
+ if data.get("choices"):
choice = data["choices"][0]
message = choice.get("message", {})
diff --git a/llm_evaluations/AD_CD_llm/CD_to_llm.py b/llm_evaluations/AD_CD_llm/CD_to_llm.py
index 738dc954..d3faf679 100644
--- a/llm_evaluations/AD_CD_llm/CD_to_llm.py
+++ b/llm_evaluations/AD_CD_llm/CD_to_llm.py
@@ -1,7 +1,7 @@
-from pathlib import Path
import getpass
import json
import os
+from pathlib import Path
import requests
@@ -181,7 +181,7 @@ def make_debug_data(
):
choice = {}
- if "choices" in data and data["choices"]:
+ if data.get("choices"):
choice = data["choices"][0]
message = choice.get("message", {})
diff --git a/llm_evaluations/AD_CD_llm/evaluate_against_gold.py b/llm_evaluations/AD_CD_llm/evaluate_against_gold.py
index 2f69ccf0..7f23dd40 100644
--- a/llm_evaluations/AD_CD_llm/evaluate_against_gold.py
+++ b/llm_evaluations/AD_CD_llm/evaluate_against_gold.py
@@ -1,5 +1,5 @@
-from pathlib import Path
import json
+from pathlib import Path
SCRIPT_DIR = Path(__file__).resolve().parent
ROOT_DIR = SCRIPT_DIR
diff --git a/llm_evaluations/AD_CD_llm/extract_cd_relevant_tables.py b/llm_evaluations/AD_CD_llm/extract_cd_relevant_tables.py
index 6fab884d..d2ac3951 100644
--- a/llm_evaluations/AD_CD_llm/extract_cd_relevant_tables.py
+++ b/llm_evaluations/AD_CD_llm/extract_cd_relevant_tables.py
@@ -1,5 +1,5 @@
-from pathlib import Path
import re
+from pathlib import Path
import pymupdf
diff --git a/llm_evaluations/AD_CD_llm/test_output_formats.py b/llm_evaluations/AD_CD_llm/test_output_formats.py
index 36143def..35df02d9 100644
--- a/llm_evaluations/AD_CD_llm/test_output_formats.py
+++ b/llm_evaluations/AD_CD_llm/test_output_formats.py
@@ -1,4 +1,5 @@
from pathlib import Path
+
import pymupdf # PyMuPDF
try:
@@ -7,7 +8,7 @@ except ImportError:
MarkItDown = None
-AD_PATH = Path("154115\AD.pdf")
+AD_PATH = Path(r"154115\AD.pdf")
OUT_DIR = Path("ad_extraction_outputs3")
OUT_DIR.mkdir(exist_ok=True)
diff --git a/llm_evaluations/basic_applied_experimental/audit_work_classifications_summary.py b/llm_evaluations/basic_applied_experimental/audit_work_classifications_summary.py
index bd157572..02c4a9f8 100644
--- a/llm_evaluations/basic_applied_experimental/audit_work_classifications_summary.py
+++ b/llm_evaluations/basic_applied_experimental/audit_work_classifications_summary.py
@@ -3,9 +3,9 @@ from __future__ import annotations
import argparse
import json
from collections import Counter
-from statistics import mean, median
from datetime import datetime, timezone
from pathlib import Path
+from statistics import mean, median
from typing import Any
import requests
diff --git a/llm_evaluations/basic_applied_experimental/classify_ude_works_to_index.py b/llm_evaluations/basic_applied_experimental/classify_ude_works_to_index.py
index d006ed68..37a85b55 100644
--- a/llm_evaluations/basic_applied_experimental/classify_ude_works_to_index.py
+++ b/llm_evaluations/basic_applied_experimental/classify_ude_works_to_index.py
@@ -17,7 +17,7 @@ SERVICE_SOURCE_ROOT = ROOT.parents[1] / "service" / "src" / "main"
if str(SERVICE_SOURCE_ROOT) not in sys.path:
sys.path.insert(0, str(SERVICE_SOURCE_ROOT))
-from inse.authors.institution_membership_query import ( # noqa: E402
+from inse.authors.institution_membership_query import (
build_institution_membership_query,
current_affiliation_year_cutoff,
)
@@ -852,9 +852,7 @@ def validate(result: dict[str, Any]) -> list[str]:
if score is None:
errors.append("basic_research_score_missing")
elif score_is_usable:
- if quadrant == "pure_basic" and not 0 <= score <= 30:
- errors.append("basic_research_quadrant_score_mismatch")
- elif quadrant == "use_inspired_basic" and not 25 <= score <= 45:
+ if quadrant == "pure_basic" and not 0 <= score <= 30 or quadrant == "use_inspired_basic" and not 25 <= score <= 45:
errors.append("basic_research_quadrant_score_mismatch")
if quadrant not in {"pure_basic", "use_inspired_basic"}:
errors.append("basic_research_quadrant_mismatch")
diff --git a/llm_evaluations/basic_applied_experimental/compare_author_publication_counts.py b/llm_evaluations/basic_applied_experimental/compare_author_publication_counts.py
index 43ed54f7..d39239b0 100644
--- a/llm_evaluations/basic_applied_experimental/compare_author_publication_counts.py
+++ b/llm_evaluations/basic_applied_experimental/compare_author_publication_counts.py
@@ -26,12 +26,12 @@ import json
import os
import sys
from collections import defaultdict
+from collections.abc import Iterable
from pathlib import Path
-from typing import Any, Iterable
+from typing import Any
import requests
-
DEFAULT_AUTHOR_ID = "A5034365278"
DEFAULT_WORK_YEAR_GTE = 1950
SOURCE_INDEX = "openalex-works*"
diff --git a/llm_evaluations/basic_applied_experimental/evaluate_candidate_against_consensus.py b/llm_evaluations/basic_applied_experimental/evaluate_candidate_against_consensus.py
index 05ebb276..9beab892 100644
--- a/llm_evaluations/basic_applied_experimental/evaluate_candidate_against_consensus.py
+++ b/llm_evaluations/basic_applied_experimental/evaluate_candidate_against_consensus.py
@@ -373,8 +373,8 @@ def interval_distance(value: float, minimum: float, maximum: float) -> float:
def safe_rate(
- numerator: int | float,
- denominator: int | float,
+ numerator: float,
+ denominator: float,
) -> float | None:
if not denominator:
return None
diff --git a/llm_evaluations/basic_applied_experimental/evaluation/test_new_prompt_against_consensus50.py b/llm_evaluations/basic_applied_experimental/evaluation/test_new_prompt_against_consensus50.py
index 12ba8151..c0f65bd7 100644
--- a/llm_evaluations/basic_applied_experimental/evaluation/test_new_prompt_against_consensus50.py
+++ b/llm_evaluations/basic_applied_experimental/evaluation/test_new_prompt_against_consensus50.py
@@ -13,7 +13,6 @@ from typing import Any
from openai import OpenAI
-
ROOT = Path(__file__).resolve().parent
PROMPT_FILE = ROOT.parent / "prompt_frascati_hard_ranges_v2.txt"
CONSENSUS_FILE = ROOT / "consensus_reference.json"
@@ -282,7 +281,7 @@ def interval_distance(value: float, minimum: float, maximum: float) -> float:
return 0.0
-def safe_rate(numerator: int | float, denominator: int | float) -> float | None:
+def safe_rate(numerator: float, denominator: float) -> float | None:
if not denominator:
return None
return numerator / denominator
diff --git a/llm_evaluations/basic_applied_experimental/report_ude_author_classification_coverage.py b/llm_evaluations/basic_applied_experimental/report_ude_author_classification_coverage.py
index d8d16cd2..41f51697 100644
--- a/llm_evaluations/basic_applied_experimental/report_ude_author_classification_coverage.py
+++ b/llm_evaluations/basic_applied_experimental/report_ude_author_classification_coverage.py
@@ -3,13 +3,13 @@ from __future__ import annotations
import argparse
import json
from collections import Counter
+from collections.abc import Callable, Iterable
from datetime import datetime, timezone
from pathlib import Path
-from typing import Any, Callable, Iterable
+from typing import Any
import requests
-
ROOT = Path(__file__).resolve().parent
ES_BASE_URL = "https://project.nes.uni-due.de/elastic"
diff --git a/llm_evaluations/bio_generation/benchmarks/ollama_benchmark.py b/llm_evaluations/bio_generation/benchmarks/ollama_benchmark.py
index 4f2726cc..97932ff3 100644
--- a/llm_evaluations/bio_generation/benchmarks/ollama_benchmark.py
+++ b/llm_evaluations/bio_generation/benchmarks/ollama_benchmark.py
@@ -8,7 +8,6 @@ from concurrent.futures import ThreadPoolExecutor, as_completed
from ollama import Client
-
ENDPOINT = os.environ.get("OLLAMA_HOST", "https://project.nes.uni-due.de/llm2/")
MODEL = os.environ.get("OLLAMA_MODEL", "gemma4:e4b-it-bf16")
DATA_FOLDER = "data"
diff --git a/llm_evaluations/bio_generation/compare_parameter.py b/llm_evaluations/bio_generation/compare_parameter.py
index 8a54d181..14d99c4d 100644
--- a/llm_evaluations/bio_generation/compare_parameter.py
+++ b/llm_evaluations/bio_generation/compare_parameter.py
@@ -1,9 +1,9 @@
-import os
import json
+import os
from concurrent.futures import ThreadPoolExecutor
from time import time
-from openai import OpenAI, APIConnectionError
+from openai import APIConnectionError, OpenAI
DATA_FOLDER = "data2"
BATCH_SIZE = 6
diff --git a/llm_evaluations/bio_generation/get_data.py b/llm_evaluations/bio_generation/get_data.py
index 0633baba..b2eb3f5d 100644
--- a/llm_evaluations/bio_generation/get_data.py
+++ b/llm_evaluations/bio_generation/get_data.py
@@ -1,5 +1,7 @@
-import requests, json
+import json
+
import helpers
+import requests
AUTHOR_OPEN_ALEXID = helpers.get_all_author_ids_from_specific_university("University of Duisburg-Essen")
#AUTHOR_OPEN_ALEXID = ["A5047117780"]
diff --git a/llm_evaluations/bio_generation/get_data_2.py b/llm_evaluations/bio_generation/get_data_2.py
index 7da2e4ec..8523cc2d 100644
--- a/llm_evaluations/bio_generation/get_data_2.py
+++ b/llm_evaluations/bio_generation/get_data_2.py
@@ -1,5 +1,7 @@
-import requests, json
+import json
+
import helpers
+import requests
AUTHOR_OPEN_ALEXID = helpers.get_all_author_ids_from_specific_university("University of Duisburg-Essen")
#AUTHOR_OPEN_ALEXID = ["A5093075883", "A5047117780", "A5007170803"]
diff --git a/llm_evaluations/bio_generation/helpers.py b/llm_evaluations/bio_generation/helpers.py
index 97e15528..a97cc4e1 100644
--- a/llm_evaluations/bio_generation/helpers.py
+++ b/llm_evaluations/bio_generation/helpers.py
@@ -1,4 +1,5 @@
import os
+
import requests
ELASTICSEARCH_URL = os.environ.get("ELASTICSEARCH_URL", "https://project.nes.uni-due.de/elastic")
diff --git a/llm_evaluations/bio_generation/vllm.py b/llm_evaluations/bio_generation/vllm.py
index e81a7b0a..0e76def4 100644
--- a/llm_evaluations/bio_generation/vllm.py
+++ b/llm_evaluations/bio_generation/vllm.py
@@ -2,8 +2,8 @@ import os
from concurrent.futures import ThreadPoolExecutor
from time import time
-from openai import OpenAI, APIConnectionError
import helpers
+from openai import APIConnectionError, OpenAI
DATA_FOLDER = "data2"
BATCH_SIZE = 6
diff --git a/llm_evaluations/eu_to_epo_uspto_patents_matching/analyze_matches.py b/llm_evaluations/eu_to_epo_uspto_patents_matching/analyze_matches.py
index 7c2621a4..2b1e3872 100644
--- a/llm_evaluations/eu_to_epo_uspto_patents_matching/analyze_matches.py
+++ b/llm_evaluations/eu_to_epo_uspto_patents_matching/analyze_matches.py
@@ -1,9 +1,11 @@
-from typing import Any, Iterator
-from elasticsearch import Elasticsearch
-from collections import defaultdict
import json
+from collections import defaultdict
+from collections.abc import Iterator
from pathlib import Path
-from elasticsearch import NotFoundError
+from typing import Any
+
+from elasticsearch import Elasticsearch, NotFoundError
+
# elasticseach library required. Here used elasticsearch==8.0.0
# estimated execution time: 3-5 Minutes
diff --git a/llm_evaluations/eu_to_epo_uspto_patents_matching/eu_patents_to_EPO_USPTO.md b/llm_evaluations/eu_to_epo_uspto_patents_matching/eu_patents_to_EPO_USPTO.md
index 89d12381..4a4595f7 100644
--- a/llm_evaluations/eu_to_epo_uspto_patents_matching/eu_patents_to_EPO_USPTO.md
+++ b/llm_evaluations/eu_to_epo_uspto_patents_matching/eu_patents_to_EPO_USPTO.md
@@ -15,10 +15,11 @@ The objective is to measure match coverage and determine which ID-matching strat
Source: `cordis_eu_fp7_project_iprs`
Patents tested: 5196(total) - 2270(others) -> 2926 (EP and US patents)
-| Prefix | Count |
+
+| Prefix | Count |
| --------- | --------: |
-| EP | 1,952 |
-| US | 974 |
+| EP | 1,952 |
+| US | 974 |
| **Total** | **2,926** |
## Matching Strategies
diff --git a/llm_evaluations/news_ident_person/benchmark_prompts.py b/llm_evaluations/news_ident_person/benchmark_prompts.py
index cc7f91db..7a929e08 100644
--- a/llm_evaluations/news_ident_person/benchmark_prompts.py
+++ b/llm_evaluations/news_ident_person/benchmark_prompts.py
@@ -1,5 +1,5 @@
-import os
import json
+import os
from time import time
from llm_classify_news import call, parse_label, parse_persons
diff --git a/llm_evaluations/news_ident_person/build_viewer.py b/llm_evaluations/news_ident_person/build_viewer.py
index 538615b9..9351a55b 100644
--- a/llm_evaluations/news_ident_person/build_viewer.py
+++ b/llm_evaluations/news_ident_person/build_viewer.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
"""
Baut aus den JSON-Dateien in data2/ eine eigenstaendige viewer.html.
@@ -8,8 +7,8 @@ mit Vor/Zurueck durch die News blaettern. Oben stehen _id, llm_label und
llm_persons, darunter der full_content als reiner Text (kein Parsing).
"""
-import os
import json
+import os
DATA_FOLDER = "validation_data"
OUTPUT_FILE = "viewer.html"
diff --git a/llm_evaluations/news_ident_person/fetch_news.py b/llm_evaluations/news_ident_person/fetch_news.py
index bbd30ac8..01eefcab 100644
--- a/llm_evaluations/news_ident_person/fetch_news.py
+++ b/llm_evaluations/news_ident_person/fetch_news.py
@@ -1,5 +1,5 @@
-import os
import json
+import os
import random
import requests
diff --git a/llm_evaluations/news_ident_person/llm_classify_news.py b/llm_evaluations/news_ident_person/llm_classify_news.py
index 8b4cb4b9..d36ec527 100644
--- a/llm_evaluations/news_ident_person/llm_classify_news.py
+++ b/llm_evaluations/news_ident_person/llm_classify_news.py
@@ -1,10 +1,9 @@
-import os
import json
+import os
import random
import requests
-from openai import OpenAI, APIConnectionError
-
+from openai import APIConnectionError, OpenAI
INSE_URL = "https://inse.nes.uni-due.de/elastic"
INDEX_URL = f"{INSE_URL}/aktuell"
diff --git a/llm_evaluations/news_ident_person/read_news.py b/llm_evaluations/news_ident_person/read_news.py
index 8c5e9667..68c61d16 100644
--- a/llm_evaluations/news_ident_person/read_news.py
+++ b/llm_evaluations/news_ident_person/read_news.py
@@ -1,5 +1,5 @@
-import os
import json
+import os
DATA_FOLDER = "data2"
diff --git a/llm_evaluations/news_ident_person/results.py b/llm_evaluations/news_ident_person/results.py
index 73cea0cc..ca483b10 100644
--- a/llm_evaluations/news_ident_person/results.py
+++ b/llm_evaluations/news_ident_person/results.py
@@ -1,4 +1,5 @@
import json
+
from tabulate import tabulate
result_files = [
diff --git a/llm_evaluations/news_ident_person/sync/elastic/client.py b/llm_evaluations/news_ident_person/sync/elastic/client.py
index aaf72bf4..1a64f7be 100644
--- a/llm_evaluations/news_ident_person/sync/elastic/client.py
+++ b/llm_evaluations/news_ident_person/sync/elastic/client.py
@@ -1,6 +1,7 @@
+from urllib.parse import quote
+
import requests
from requests.adapters import HTTPAdapter
-from urllib.parse import quote
INSE_URL = "https://inse.nes.uni-due.de/elastic"
INSE_API_KEY = "bG1NSWc1NEJPZ3FnTGZCZXRSSEg6VnJXRFd5SnpSTTNWc1VPT01FMEhMZw=="
diff --git a/llm_evaluations/news_ident_person/sync/llm/client.py b/llm_evaluations/news_ident_person/sync/llm/client.py
index ea4a4453..b8852475 100644
--- a/llm_evaluations/news_ident_person/sync/llm/client.py
+++ b/llm_evaluations/news_ident_person/sync/llm/client.py
@@ -1,5 +1,4 @@
-import requests
-from openai import OpenAI, APIConnectionError
+from openai import APIConnectionError, OpenAI
LLM_BASE_URL = "https://project.nes.uni-due.de/llm2/v1/"
LLM_API_KEY = "c2d5e7ccf7a4760dd3d19bed2caed9d85ff7437400e0ea82a6d6f912ebc2f212"
diff --git a/llm_evaluations/news_ident_person/sync/sync.py b/llm_evaluations/news_ident_person/sync/sync.py
index 17a8ded5..0318a200 100644
--- a/llm_evaluations/news_ident_person/sync/sync.py
+++ b/llm_evaluations/news_ident_person/sync/sync.py
@@ -1,10 +1,12 @@
+import argparse
+import json
+import threading
+import time
+from concurrent.futures import ThreadPoolExecutor, as_completed
+
import elastic.client as es_client
import llm.client as llm_client
-import json
-import argparse
-import time
-import threading
-from concurrent.futures import ThreadPoolExecutor, as_completed
+
def print_pretty_json(data):
print(json.dumps(data, indent=2))
diff --git a/llm_evaluations/sentence_transformer/README.md b/llm_evaluations/sentence_transformer/README.md
new file mode 100644
index 00000000..77630fed
--- /dev/null
+++ b/llm_evaluations/sentence_transformer/README.md
@@ -0,0 +1 @@
+Perhaps not the final version. I did not find the files inside my local git branch. I most likely did not save them, however i made backups sometimes, so i hope these versions are the final ones.
diff --git a/llm_evaluations/sentence_transformer/eval latency of hybrid, key, semantic.py b/llm_evaluations/sentence_transformer/eval latency of hybrid, key, semantic.py
new file mode 100644
index 00000000..eb64187e
--- /dev/null
+++ b/llm_evaluations/sentence_transformer/eval latency of hybrid, key, semantic.py
@@ -0,0 +1,429 @@
+#!/usr/bin/env python3
+import asyncio
+import json
+import sys
+import time
+from pathlib import Path
+
+import httpx
+import numpy as np
+
+# Load service environment config
+current_dir = Path(__file__).parent.resolve()
+project_root = current_dir.parent.parent.resolve()
+env_path = project_root / "service" / "src" / "main" / "inse" / ".env"
+
+from dotenv import load_dotenv
+
+load_dotenv(dotenv_path=env_path)
+
+sys.path.append(str(project_root / "service" / "src" / "main"))
+
+from inse.config import settings
+from inse.util import get_model
+
+ELASTIC_URL = settings.elasticsearch_url
+if ELASTIC_URL and not ELASTIC_URL.endswith("/"):
+ ELASTIC_URL += "/"
+API_KEY = settings.elasticsearch_api_key
+
+headers = {
+ "Authorization": f"ApiKey {API_KEY}",
+ "Content-Type": "application/json"
+}
+
+FIELDS = [
+ "Social Sciences", "Medicine", "Engineering", "Computer Science",
+ "Arts and Humanities", "Biochemistry, Genetics and Molecular Biology",
+ "Agricultural and Biological Sciences", "Environmental Science",
+ "Business, Management and Accounting", "Psychology", "Materials Science",
+ "Economics, Econometrics and Finance", "Health Professions",
+ "Physics and Astronomy", "Chemistry", "Mathematics", "Neuroscience",
+ "Decision Sciences", "Earth and Planetary Sciences", "Immunology and Microbiology",
+ "Energy", "Pharmacology, Toxicology and Pharmaceutics", "Nursing",
+ "Chemical Engineering", "Dentistry", "Veterinary"
+]
+
+QUERIES_FILE = current_dir / "evaluation_queries.json"
+
+def load_queries():
+ if QUERIES_FILE.exists():
+ print(f"Loading cached queries from {QUERIES_FILE}...")
+ with open(QUERIES_FILE, "r", encoding="utf-8") as f:
+ return json.load(f)
+ else:
+ raise FileNotFoundError(f"Evaluation queries file not found at {QUERIES_FILE}")
+
+def make_es_payload(query_vector, query_str, config_type, limit=10):
+ if config_type == "display_name":
+ clause = {
+ "knn": {
+ "field": "display_name_vector",
+ "query_vector": query_vector,
+ "k": limit,
+ "num_candidates": 100,
+ "similarity": 0.62
+ }
+ }
+ query_body = {"query": clause}
+ elif config_type == "description":
+ clause = {
+ "knn": {
+ "field": "description_vector",
+ "query_vector": query_vector,
+ "k": limit,
+ "num_candidates": 100,
+ "similarity": 0.62
+ }
+ }
+ query_body = {"query": clause}
+ elif config_type == "keywords":
+ clause = {
+ "nested": {
+ "path": "keyword_vectors",
+ "query": {
+ "knn": {
+ "field": "keyword_vectors.vector",
+ "query_vector": query_vector,
+ "k": limit,
+ "num_candidates": 100,
+ "similarity": 0.62
+ }
+ },
+ "score_mode": "max"
+ }
+ }
+ query_body = {"query": clause}
+ elif config_type == "display_name_and_keywords":
+ query_body = {
+ "query": {
+ "bool": {
+ "should": [
+ {
+ "knn": {
+ "field": "display_name_vector",
+ "query_vector": query_vector,
+ "k": limit,
+ "num_candidates": 100,
+ "similarity": 0.62
+ }
+ },
+ {
+ "nested": {
+ "path": "keyword_vectors",
+ "query": {
+ "knn": {
+ "field": "keyword_vectors.vector",
+ "query_vector": query_vector,
+ "k": limit,
+ "num_candidates": 100,
+ "similarity": 0.62
+ }
+ },
+ "score_mode": "max"
+ }
+ }
+ ]
+ }
+ }
+ }
+ elif config_type == "display_name_and_description":
+ query_body = {
+ "query": {
+ "bool": {
+ "should": [
+ {
+ "knn": {
+ "field": "display_name_vector",
+ "query_vector": query_vector,
+ "k": limit,
+ "num_candidates": 100,
+ "similarity": 0.62
+ }
+ },
+ {
+ "knn": {
+ "field": "description_vector",
+ "query_vector": query_vector,
+ "k": limit,
+ "num_candidates": 100,
+ "similarity": 0.62
+ }
+ }
+ ]
+ }
+ }
+ }
+ elif config_type == "combined":
+ query_body = {
+ "query": {
+ "bool": {
+ "should": [
+ {
+ "knn": {
+ "field": "display_name_vector",
+ "query_vector": query_vector,
+ "k": limit,
+ "num_candidates": 100,
+ "similarity": 0.62
+ }
+ },
+ {
+ "knn": {
+ "field": "description_vector",
+ "query_vector": query_vector,
+ "k": limit,
+ "num_candidates": 100,
+ "similarity": 0.62
+ }
+ },
+ {
+ "nested": {
+ "path": "keyword_vectors",
+ "query": {
+ "knn": {
+ "field": "keyword_vectors.vector",
+ "query_vector": query_vector,
+ "k": limit,
+ "num_candidates": 100,
+ "similarity": 0.62
+ }
+ },
+ "score_mode": "max"
+ }
+ }
+ ]
+ }
+ }
+ }
+ elif config_type == "lexical_only":
+ query_body = {
+ "query": {
+ "multi_match": {
+ "query": query_str,
+ "fields": ["display_name^3", "keywords^2", "description^1"]
+ }
+ }
+ }
+ elif config_type == "hybrid":
+ query_body = {
+ "query": {
+ "bool": {
+ "should": [
+ {
+ "multi_match": {
+ "query": query_str,
+ "fields": ["display_name^3", "keywords^2", "description^1"]
+ }
+ },
+ {
+ "knn": {
+ "field": "display_name_vector",
+ "query_vector": query_vector,
+ "k": limit,
+ "num_candidates": 100,
+ "similarity": 0.62
+ }
+ },
+ {
+ "knn": {
+ "field": "description_vector",
+ "query_vector": query_vector,
+ "k": limit,
+ "num_candidates": 100,
+ "similarity": 0.62
+ }
+ },
+ {
+ "nested": {
+ "path": "keyword_vectors",
+ "query": {
+ "knn": {
+ "field": "keyword_vectors.vector",
+ "query_vector": query_vector,
+ "k": limit,
+ "num_candidates": 100,
+ "similarity": 0.62
+ }
+ },
+ "score_mode": "max"
+ }
+ }
+ ]
+ }
+ }
+ }
+ else:
+ raise ValueError(f"Unknown config_type: {config_type}")
+
+ query_body["_source"] = {
+ "excludes": ["display_name_vector", "description_vector", "keyword_vectors", "description"]
+ }
+ query_body["size"] = limit
+ return query_body
+
+async def evaluate():
+ queries_by_field = load_queries()
+
+ # 1. Warm up model and connection
+ print("\nWarming up model and Elasticsearch connection...")
+ model = get_model()
+ model.encode("warmup search term")
+
+ # Run a dummy check on ES
+ dummy_vector = [0.1] * 768
+ dummy_payload = make_es_payload(dummy_vector, "warmup search term", "display_name")
+ try:
+ with httpx.Client(timeout=10.0) as client:
+ client.post(f"{ELASTIC_URL}topicvectors/_search", json=dummy_payload, headers=headers)
+ print("Warmup complete.")
+ except Exception as exc:
+ print(f"Warmup query failed: {exc}")
+
+ results = []
+ print("\nRunning comprehensive latency evaluation on 520 queries...")
+ query_count = 0
+
+ config_list = [
+ "display_name", "description", "keywords",
+ "display_name_and_keywords", "display_name_and_description",
+ "combined", "lexical_only", "hybrid"
+ ]
+
+ with httpx.Client(timeout=30.0) as client:
+ for field, queries in queries_by_field.items():
+ for q in queries:
+ query_count += 1
+ if query_count % 50 == 0:
+ print(f"Processed {query_count} / 520 queries...")
+
+ # Measure encoding latency
+ t0 = time.perf_counter()
+ query_vector = model.encode(q).tolist()
+ t1 = time.perf_counter()
+ encode_time = (t1 - t0) * 1000.0 # ms
+
+ latencies = {}
+
+ # Benchmark each configuration
+ for config in config_list:
+ payload = make_es_payload(query_vector, q, config)
+ t0 = time.perf_counter()
+ try:
+ resp = client.post(f"{ELASTIC_URL}topicvectors/_search", json=payload, headers=headers)
+ resp.raise_for_status()
+ except Exception:
+ # Log error but don't crash
+ pass
+ t1 = time.perf_counter()
+ latencies[config] = (t1 - t0) * 1000.0 # ms
+
+ results.append({
+ "query": q,
+ "field": field,
+ "encode_latency_ms": encode_time,
+ "display_name_latency_ms": latencies.get("display_name", 0.0),
+ "description_latency_ms": latencies.get("description", 0.0),
+ "keywords_latency_ms": latencies.get("keywords", 0.0),
+ "display_name_and_keywords_latency_ms": latencies.get("display_name_and_keywords", 0.0),
+ "display_name_and_description_latency_ms": latencies.get("display_name_and_description", 0.0),
+ "combined_latency_ms": latencies.get("combined", 0.0),
+ "lexical_only_latency_ms": latencies.get("lexical_only", 0.0),
+ "hybrid_latency_ms": latencies.get("hybrid", 0.0)
+ })
+
+ # Calculate global stats
+ encode_l = [r["encode_latency_ms"] for r in results]
+ display_name_l = [r["display_name_latency_ms"] for r in results]
+ description_l = [r["description_latency_ms"] for r in results]
+ keywords_l = [r["keywords_latency_ms"] for r in results]
+ display_name_and_keywords_l = [r["display_name_and_keywords_latency_ms"] for r in results]
+ display_name_and_description_l = [r["display_name_and_description_latency_ms"] for r in results]
+ combined_l = [r["combined_latency_ms"] for r in results]
+ lexical_only_l = [r["lexical_only_latency_ms"] for r in results]
+ hybrid_l = [r["hybrid_latency_ms"] for r in results]
+
+ summary = {
+ "total_queries": len(results),
+ "encode": {
+ "mean": np.mean(encode_l), "median": np.median(encode_l),
+ "p90": np.percentile(encode_l, 90), "p95": np.percentile(encode_l, 95)
+ },
+ "display_name": {
+ "mean": np.mean(display_name_l), "median": np.median(display_name_l),
+ "p90": np.percentile(display_name_l, 90), "p95": np.percentile(display_name_l, 95)
+ },
+ "description": {
+ "mean": np.mean(description_l), "median": np.median(description_l),
+ "p90": np.percentile(description_l, 90), "p95": np.percentile(description_l, 95)
+ },
+ "keywords": {
+ "mean": np.mean(keywords_l), "median": np.median(keywords_l),
+ "p90": np.percentile(keywords_l, 90), "p95": np.percentile(keywords_l, 95)
+ },
+ "display_name_and_keywords": {
+ "mean": np.mean(display_name_and_keywords_l), "median": np.median(display_name_and_keywords_l),
+ "p90": np.percentile(display_name_and_keywords_l, 90), "p95": np.percentile(display_name_and_keywords_l, 95)
+ },
+ "display_name_and_description": {
+ "mean": np.mean(display_name_and_description_l), "median": np.median(display_name_and_description_l),
+ "p90": np.percentile(display_name_and_description_l, 90), "p95": np.percentile(display_name_and_description_l, 95)
+ },
+ "combined": {
+ "mean": np.mean(combined_l), "median": np.median(combined_l),
+ "p90": np.percentile(combined_l, 90), "p95": np.percentile(combined_l, 95)
+ },
+ "lexical_only": {
+ "mean": np.mean(lexical_only_l), "median": np.median(lexical_only_l),
+ "p90": np.percentile(lexical_only_l, 90), "p95": np.percentile(lexical_only_l, 95)
+ },
+ "hybrid": {
+ "mean": np.mean(hybrid_l), "median": np.median(hybrid_l),
+ "p90": np.percentile(hybrid_l, 90), "p95": np.percentile(hybrid_l, 95)
+ }
+ }
+
+ # Save full report to json
+ report_json_path = current_dir / "evaluation_report.json"
+ with open(report_json_path, "w", encoding="utf-8") as f:
+ json.dump({"summary": summary, "results": results}, f, indent=2, ensure_ascii=False)
+ print(f"\nSaved detailed JSON report to {report_json_path}")
+
+ # Generate and save markdown report
+ md_report_path = current_dir / "evaluation_report.md"
+ md_content = f"""# Vector Search Configuration Latency Report
+Generated on: {time.strftime('%Y-%m-%d %H:%M:%S')}
+
+This report documents the latency breakdown for different Elasticsearch query configurations across 520 queries, measuring flat vector searches, nested searches, multi-field combinations, pure lexical searches, and full hybrid queries.
+
+## Latency Summary Table (ms)
+
+| Query Configuration | Mean | Median | p90 | p95 |
+| :--- | :---: | :---: | :---: | :---: |
+| **Embedding Encode** | {summary["encode"]["mean"]:.2f} | {summary["encode"]["median"]:.2f} | {summary["encode"]["p90"]:.2f} | {summary["encode"]["p95"]:.2f} |
+| **Pure Lexical Search (`multi_match`)** | {summary["lexical_only"]["mean"]:.2f} | {summary["lexical_only"]["median"]:.2f} | {summary["lexical_only"]["p90"]:.2f} | {summary["lexical_only"]["p95"]:.2f} |
+| **Description Only (`description_vector`)** | {summary["description"]["mean"]:.2f} | {summary["description"]["median"]:.2f} | {summary["description"]["p90"]:.2f} | {summary["description"]["p95"]:.2f} |
+| **Display Name Only (`display_name_vector`)** | {summary["display_name"]["mean"]:.2f} | {summary["display_name"]["median"]:.2f} | {summary["display_name"]["p90"]:.2f} | {summary["display_name"]["p95"]:.2f} |
+| **Keywords Only (`keyword_vectors` - Nested)** | {summary["keywords"]["mean"]:.2f} | {summary["keywords"]["median"]:.2f} | {summary["keywords"]["p90"]:.2f} | {summary["keywords"]["p95"]:.2f} |
+| **Display Name & Description** | {summary["display_name_and_description"]["mean"]:.2f} | {summary["display_name_and_description"]["median"]:.2f} | {summary["display_name_and_description"]["p90"]:.2f} | {summary["display_name_and_description"]["p95"]:.2f} |
+| **Display Name & Keywords (Nested)** | {summary["display_name_and_keywords"]["mean"]:.2f} | {summary["display_name_and_keywords"]["median"]:.2f} | {summary["display_name_and_keywords"]["p90"]:.2f} | {summary["display_name_and_keywords"]["p95"]:.2f} |
+| **Combined (All 3 vector fields)** | {summary["combined"]["mean"]:.2f} | {summary["combined"]["median"]:.2f} | {summary["combined"]["p90"]:.2f} | {summary["combined"]["p95"]:.2f} |
+| **Hybrid Search (Lexical + All 3 vector fields)** | {summary["hybrid"]["mean"]:.2f} | {summary["hybrid"]["median"]:.2f} | {summary["hybrid"]["p90"]:.2f} | {summary["hybrid"]["p95"]:.2f} |
+
+---
+
+## 💡 Latency Bottleneck & Configuration Analysis
+
+1. **Lexical Baseline**: **Pure Lexical Search** has extremely low latency (mean: **{summary["lexical_only"]["mean"]:.2f} ms**), representing standard BM25 keyword matching speed.
+2. **Impact of Nested Fields**:
+ - Compares **Keywords Only (Nested)** (mean: **{summary["keywords"]["mean"]:.2f} ms**) with **Description Only (Flat)** (mean: **{summary["description"]["mean"]:.2f} ms**).
+ - Combining Display Name with the flat Description (**Display Name & Description**: **{summary["display_name_and_description"]["mean"]:.2f} ms**) is faster than combining Display Name with nested Keywords (**Display Name & Keywords**: **{summary["display_name_and_keywords"]["mean"]:.2f} ms**), demonstrating that nested vector joins add a steady latency premium.
+3. **Compound Parallel Execution**:
+ - Adding lexical queries to the 3 combined vector queries (**Hybrid Search**: **{summary["hybrid"]["mean"]:.2f} ms**) introduces virtually no latency overhead compared to **Combined** vector-only search (mean: **{summary["combined"]["mean"]:.2f} ms**), proving that standard lexical match is executed concurrently with HNSW vector retrieval.
+"""
+ with open(md_report_path, "w", encoding="utf-8") as f:
+ f.write(md_content)
+ print(f"Saved Markdown report summary to {md_report_path}")
+
+if __name__ == "__main__":
+ asyncio.run(evaluate())
diff --git a/llm_evaluations/sentence_transformer/eval_models.py b/llm_evaluations/sentence_transformer/eval_models.py
new file mode 100644
index 00000000..6fb4c03a
--- /dev/null
+++ b/llm_evaluations/sentence_transformer/eval_models.py
@@ -0,0 +1,391 @@
+#!/usr/bin/env python3
+"""
+Professional evaluation pipeline to benchmark different Sentence Transformer models
+on the OpenAlex topics dataset. Measures Information Retrieval (IR) metrics,
+Taxonomy Clustering metrics, and operational performance metrics.
+"""
+import argparse
+import json
+import random
+import sys
+import time
+from pathlib import Path
+
+import httpx
+from dotenv import load_dotenv
+
+# Add service/src/main to python path to load settings
+current_dir = Path(__file__).parent.resolve()
+project_root = current_dir.parent.parent.resolve()
+env_path = project_root / "service" / "src" / "main" / "inse" / ".env"
+load_dotenv(dotenv_path=env_path)
+
+sys.path.append(str(project_root / "service" / "src" / "main"))
+from inse.config import settings
+
+ELASTIC_URL = settings.elasticsearch_url
+API_KEY = settings.elasticsearch_api_key
+
+# Import evaluation libraries
+from sentence_transformers import SentenceTransformer
+from sentence_transformers.evaluation import InformationRetrievalEvaluator
+from sklearn import metrics
+from sklearn.cluster import KMeans
+
+DEFAULT_MODELS = [
+ "paraphrase-multilingual-mpnet-base-v2",
+ "BAAI/bge-m3",
+ "google/embeddinggemma-300m",
+ "intfloat/multilingual-e5-small",
+ "intfloat/multilingual-e5-base",
+ "intfloat/multilingual-e5-large",
+ "sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2",
+ #english
+ "sentence-transformers/all-MiniLM-L6-v2",
+ "intfloat/e5-large-v2",
+ "BAAI/bge-large-en-v1.5"
+]
+
+def fetch_all_topics():
+ topics = []
+ size = 1000
+ offset = 0
+ headers = {
+ "Authorization": f"ApiKey {API_KEY}",
+ "Content-Type": "application/json"
+ }
+
+ with httpx.Client(timeout=60.0) as client:
+ while True:
+ payload = {
+ "query": {"match_all": {}},
+ "from": offset,
+ "size": size
+ }
+ resp = client.post(
+ f"{ELASTIC_URL.rstrip('/')}/openalex-topics/_search",
+ json=payload,
+ headers=headers
+ )
+ resp.raise_for_status()
+ data = resp.json()
+ hits = data.get("hits", {}).get("hits", [])
+ if not hits:
+ break
+ topics.extend(hits)
+ offset += len(hits)
+ print(f"Fetched {len(topics)} topics...")
+ if len(hits) < size:
+ break
+
+ print(f"Total topics loaded: {len(topics)}")
+ return topics
+
+def prepare_data(topics, sample_size=None):
+ """
+ Formulate the IR dataset and clustering taxonomy ground truth labels.
+ """
+ corpus = {}
+ queries = {}
+ relevant_docs = {}
+
+ # Clustering labels
+ topic_ids = []
+ names_for_clustering = []
+ descriptions_for_clustering = []
+ labels_subfield = []
+ labels_field = []
+ labels_domain = []
+
+ # Build complete corpus dictionary of documents
+ for t in topics:
+ source = t["_source"]
+ doc_id = source["id"]
+ display_name = source.get("display_name") or ""
+ description = source.get("description") or ""
+ doc_text = f"{display_name} {description}".strip()
+
+ corpus[doc_id] = doc_text
+
+ # Taxonomy labels
+ topic_ids.append(doc_id)
+ names_for_clustering.append(display_name.strip())
+ descriptions_for_clustering.append(description.strip())
+ labels_subfield.append(source.get("subfield", {}).get("id") or "unknown_subfield")
+ labels_field.append(source.get("field", {}).get("id") or "unknown_field")
+ labels_domain.append(source.get("domain", {}).get("id") or "unknown_domain")
+
+ sampled_topics = topics
+ if sample_size and sample_size < len(topics):
+ print(f"Sampling {sample_size} topics for query/keyword generation...")
+ sampled_topics = random.sample(topics, sample_size)
+
+ query_count = 0
+ for t in sampled_topics:
+ source = t["_source"]
+ doc_id = source["id"]
+ keywords = source.get("keywords") or []
+
+ for keyword in keywords:
+ if not keyword.strip():
+ continue
+ query_id = f"q_{query_count}"
+ queries[query_id] = keyword
+
+ # Ground truth relevant documents: topic name
+ rel_docs = {doc_id}
+ relevant_docs[query_id] = rel_docs
+ query_count += 1
+
+ print(f"Dataset Formulated: {len(corpus)} corpus documents, {len(queries)} queries.")
+
+ return {
+ "corpus": corpus,
+ "queries": queries,
+ "relevant_docs": relevant_docs,
+ "clustering": {
+ "ids": topic_ids,
+ "names": names_for_clustering,
+ "descriptions": descriptions_for_clustering,
+ "subfield": labels_subfield,
+ "field": labels_field,
+ "domain": labels_domain
+ }
+ }
+
+def evaluate_model(model_name, data, output_dir):
+ """
+ Load a model, measure operational speed, and calculate IR + clustering quality.
+ """
+ model_safe_name = model_name.replace("/", "_").replace("-", "_")
+ report_file = output_dir / f"model_report_{model_safe_name}.json"
+
+ print("\n==================================================")
+ print(f"Evaluating Model: '{model_name}'")
+ print("==================================================")
+
+ start_load = time.time()
+ try:
+ model = SentenceTransformer(model_name)
+ except Exception as exc:
+ print(f"ERROR: Failed to load model '{model_name}': {exc}")
+ return None
+
+ load_time = time.time() - start_load
+ print(f"Model loaded in {load_time:.2f} seconds.")
+
+ num_params = sum(p.numel() for p in model.parameters())
+ param_count_m = num_params / 1_000_000
+ vector_dim = model.get_sentence_embedding_dimension()
+ print(f"Parameters: {param_count_m:.1f}M, Vector Dimension: {vector_dim}")
+
+ # --- FIXED: Perform a warm-up to initialize computation graphs ---
+ print("Warming up model...")
+ _ = model.encode(["warmup sentence"])
+
+ # 2. Measure Query Latency
+ sample_queries = list(data["queries"].values())[:100]
+ if not sample_queries:
+ sample_queries = ["artificial intelligence", "machine learning"]
+
+ start_lat = time.time()
+ for q in sample_queries:
+ _ = model.encode(q)
+ latency_ms = ((time.time() - start_lat) / len(sample_queries)) * 1000
+ print(f"Average Query Latency: {latency_ms:.2f} ms")
+
+ # 3. Measure Ingestion Throughput
+ sample_docs = list(data["corpus"].values())[:200]
+ start_batch = time.time()
+ _ = model.encode(sample_docs, batch_size=32)
+ batch_time = time.time() - start_batch
+ throughput_docs_sec = len(sample_docs) / batch_time
+ print(f"Ingestion Throughput: {throughput_docs_sec:.2f} docs/sec")
+
+ # 4. Information Retrieval Evaluation
+ print("Running Information Retrieval evaluation (NDCG, MRR, Recall)...")
+
+ # --- FIXED: Use precision_recall_at_k for true recall metrics ---
+ evaluator = InformationRetrievalEvaluator(
+ data["queries"],
+ data["corpus"],
+ data["relevant_docs"], # The evaluator natively accepts sets, no need to cast to lists
+ name=model_safe_name,
+ mrr_at_k=[10],
+ ndcg_at_k=[10],
+ precision_recall_at_k=[10] # This ensures true Recall is calculated across multiple sibling matches
+ )
+
+ ir_results = evaluator(model)
+
+ # Extract keys safely
+ ndcg_key = f"{model_safe_name}_cosine_ndcg@10"
+ mrr_key = f"{model_safe_name}_cosine_mrr@10"
+ recall_key = f"{model_safe_name}_cosine_recall@10" # Changed from accuracy to recall
+
+ ndcg_score = ir_results.get(ndcg_key, 0.0)
+ mrr_score = ir_results.get(mrr_key, 0.0)
+ recall_score = ir_results.get(recall_key, 0.0)
+
+ print(f"NDCG@10: {ndcg_score:.4f}, MRR@10: {mrr_score:.4f}, Recall@10: {recall_score:.4f}")
+
+ # 5. Clustering evaluation against ground-truth taxonomy
+ print("Running Taxonomy Clustering evaluation (NMI)...")
+
+ unique_subfields = list(set(data["clustering"]["subfield"]))
+ n_clusters = len(unique_subfields)
+
+ # Topic Names Clustering
+ print("Clustering Topic Names...")
+ clustering_names = data["clustering"]["names"]
+ name_embeddings = model.encode(clustering_names, show_progress_bar=False, batch_size=64)
+
+ nmi_name = 0.0
+ ari_name = 0.0
+ if n_clusters > 1 and len(name_embeddings) > n_clusters:
+ kmeans_name = KMeans(n_clusters=n_clusters, random_state=42, n_init='auto')
+ assignments_name = kmeans_name.fit_predict(name_embeddings)
+ nmi_name = metrics.normalized_mutual_info_score(data["clustering"]["subfield"], assignments_name)
+ ari_name = metrics.adjusted_rand_score(data["clustering"]["subfield"], assignments_name)
+ print(f"Names - Subfield Clustering NMI: {nmi_name:.4f}, ARI: {ari_name:.4f}")
+
+ # Topic Descriptions Clustering
+ print("Clustering Topic Descriptions...")
+ clustering_descs = data["clustering"]["descriptions"]
+ desc_embeddings = model.encode(clustering_descs, show_progress_bar=False, batch_size=64)
+
+ nmi_desc = 0.0
+ ari_desc = 0.0
+ if n_clusters > 1 and len(desc_embeddings) > n_clusters:
+ kmeans_desc = KMeans(n_clusters=n_clusters, random_state=42, n_init='auto')
+ assignments_desc = kmeans_desc.fit_predict(desc_embeddings)
+ nmi_desc = metrics.normalized_mutual_info_score(data["clustering"]["subfield"], assignments_desc)
+ ari_desc = metrics.adjusted_rand_score(data["clustering"]["subfield"], assignments_desc)
+ print(f"Descriptions - Subfield Clustering NMI: {nmi_desc:.4f}, ARI: {ari_desc:.4f}")
+
+ report = {
+ "model_name": model_name,
+ "parameters_m": param_count_m,
+ "vector_dim": vector_dim,
+ "latency_ms": latency_ms,
+ "throughput_docs_sec": throughput_docs_sec,
+ "ndcg_at_10": ndcg_score,
+ "mrr_at_10": mrr_score,
+ "recall_at_10": recall_score,
+ "name_nmi": nmi_name,
+ "name_ari": ari_name,
+ "desc_nmi": nmi_desc,
+ "desc_ari": ari_desc
+ }
+
+ with open(report_file, "w", encoding="utf-8") as f:
+ json.dump(report, f, indent=2, ensure_ascii=False)
+ print(f"Saved model report to {report_file}")
+
+ return report
+
+def generate_consolidated_report(output_dir, reports):
+ if not reports:
+ print("No reports to consolidate.")
+ return
+
+ report_file = output_dir / "model_evaluation_report.md"
+ print(f"\nCompiling consolidated report into {report_file}...")
+
+ sorted_reports = sorted(reports, key=lambda x: x["ndcg_at_10"], reverse=True)
+
+ lines = [
+ "# Sentence Transformer Model Evaluation Report",
+ "",
+ "This report aggregates performance metrics and accuracy benchmarks for different Sentence Transformer models evaluated against the OpenAlex topic keywords dataset.",
+ "",
+ "## Overall Leaderboard",
+ "",
+ "| Rank | Model Name | Vector Dim | Params (M) | Query Latency (ms) | Throughput (docs/s) | NDCG@10 | MRR@10 | Recall@10 | Name NMI | Desc NMI |",
+ "| :--- | :--- | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: |"
+ ]
+
+ for idx, r in enumerate(sorted_reports):
+ name_nmi = r.get("name_nmi", 0.0)
+ desc_nmi = r.get("desc_nmi", 0.0)
+ lines.append(
+ f"| {idx+1} | `{r['model_name']}` | {r['vector_dim']} | {r['parameters_m']:.1f}M | {r['latency_ms']:.2f}ms | {r['throughput_docs_sec']:.1f} | **{r['ndcg_at_10']:.4f}** | {r['mrr_at_10']:.4f} | {r['recall_at_10']:.4f} | {name_nmi:.4f} | {desc_nmi:.4f} |"
+ )
+
+ lines.extend([
+ "",
+ "### Metric Definitions:",
+ "* **NDCG@10**: Normalized Discounted Cumulative Gain. Measures how well the query maps to the target topic at the top 10 positions.",
+ "* **MRR@10**: Mean Reciprocal Rank. Looks at the average of `1 / rank` for the first correctly matched topic.",
+ "* **Recall@10**: Percentage of times the target document (excluding sibling topics) was successfully retrieved in the top 10.",
+ "* **Name NMI**: Normalized Mutual Information of K-Means clusters of topic display names against ground truth OpenAlex subfields.",
+ "* **Desc NMI**: Normalized Mutual Information of K-Means clusters of topic descriptions against ground truth OpenAlex subfields.",
+ "* **Query Latency**: Time to encode a single search keyword.",
+ "* **Throughput**: Ingestion batch encoding speed."
+ ])
+
+ with open(report_file, "w", encoding="utf-8") as f:
+ f.write("\n".join(lines))
+ print(f"Report compiled successfully at {report_file}")
+
+def main():
+ parser = argparse.ArgumentParser(description="Evaluate Sentence Transformer models on OpenAlex topics.")
+ parser.add_argument("--model", type=str, help="Specific model to evaluate (skips others).")
+ parser.add_argument("--sample-size", type=int, help="Sample size of topics to evaluate keywords for (faster run).")
+ parser.add_argument("--all", action="store_true", help="Evaluate all topics/keywords (default if sample-size omitted).")
+ parser.add_argument("--output-dir", type=str, help="Custom directory to save reports.")
+ parser.add_argument("--force-refresh", action="store_true", help="Force reload topics from Elasticsearch instead of cache.")
+
+ args = parser.parse_args()
+
+ if Path("/data").is_dir():
+ data_dir = Path("/data")
+ else:
+ project_root = Path(__file__).parent.parent.parent.parent.parent.resolve()
+ data_dir = project_root / "service" / "src" / "data"
+ data_dir.mkdir(parents=True, exist_ok=True)
+
+ output_dir = Path(args.output_dir) if args.output_dir else data_dir
+ output_dir.mkdir(parents=True, exist_ok=True)
+
+ cache_file = data_dir / "raw_topics_cache.json"
+ if cache_file.exists() and not args.force_refresh:
+ print(f"Loading topics from local cache: {cache_file}")
+ with open(cache_file, "r", encoding="utf-8") as f:
+ topics = json.load(f)
+ else:
+ topics = fetch_all_topics()
+ with open(cache_file, "w", encoding="utf-8") as f:
+ json.dump(topics, f, indent=2, ensure_ascii=False)
+ print(f"Cached {len(topics)} topics to {cache_file}")
+
+ if not topics:
+ print("Error: No topics dataset available. Make sure Elasticsearch is running or cache exists.")
+ sys.exit(1)
+
+ data = prepare_data(topics, sample_size=args.sample_size)
+
+ models_to_evaluate = DEFAULT_MODELS
+ if args.model:
+ models_to_evaluate = [args.model]
+
+ print(f"Models scheduled for evaluation: {models_to_evaluate}")
+
+ reports = []
+ for m in models_to_evaluate:
+ model_safe_name = m.replace("/", "_").replace("-", "_")
+ report_file = output_dir / f"model_report_{model_safe_name}.json"
+
+ if report_file.exists() and not args.model:
+ print(f"Loading cached evaluation report for '{m}' from {report_file}")
+ with open(report_file, "r", encoding="utf-8") as f:
+ reports.append(json.load(f))
+ else:
+ rep = evaluate_model(m, data, output_dir)
+ if rep:
+ reports.append(rep)
+
+ generate_consolidated_report(output_dir, reports)
+
+if __name__ == "__main__":
+ main()
\ No newline at end of file
diff --git a/llm_evaluations/sentence_transformer/hybrid_vs_semantic_eval.md b/llm_evaluations/sentence_transformer/hybrid_vs_semantic_eval.md
new file mode 100644
index 00000000..294c0314
--- /dev/null
+++ b/llm_evaluations/sentence_transformer/hybrid_vs_semantic_eval.md
@@ -0,0 +1,159 @@
+# Performance Summary
+
+520 Keywords as query against hybrid & semantic search
+
+- Search fields:
+ - display name (Keyword & single vector)
+ - description (Keyword & single vector)
+ - keywords (Keyword & nested vectors)
+
+- 26 Fields: 20 examples each
+ | # | OpenAlex Field Name | Complete Test Queries |
+ |---|---------------------|-----------------------------------------|
+ | 01 | **Social Sciences** | `sociology, gender inequality in workplace, urbanization trends, political polarization, human rights law, social mobility, qualitative research methods, demographic shifts, cultural anthropology, criminal justice reform, public policy analysis, indigenous languages, voter behavior, globalization effects, community development, media studies, social movements, migration patterns, welfare systems, family dynamics` |
+ | 02 | **Medicine** | `cardiology, diabetes management, oncology treatment options, clinical trials, pediatric care, chronic pain relief, cardiovascular disease prevention, surgical procedures, infectious disease outbreak, medical imaging techniques, hypertension guidelines, patient outcomes, immunotherapy for cancer, epidemiology study, stroke rehabilitation, genetic disorders, telemedicine adoption, internal medicine, diagnostic accuracy, palliative care` |
+ | 03 | **Engineering** | `civil engineering, structural integrity, aerospace propulsion, mechanical design, robotics automation, geotechnical analysis, bridge construction, renewable energy grid, fluid mechanics, electrical circuits, thermodynamics applications, manufacturing optimization, control systems engineering, materials fatigue, hvac design, biomedical devices, transportation infrastructure, signal processing, solid mechanics, industrial engineering` |
+ | 04 | **Computer Science** | `machine learning, natural language processing, cybersecurity protocols, cloud computing architecture, neural networks, database optimization, software engineering practices, computer vision algorithms, blockchain technology, artificial intelligence ethics, human computer interaction, operating systems, distributed ledgers, compiler design, data mining techniques, cryptographic keys, quantum computing algorithms, web development frameworks, reinforcement learning, graph databases` |
+ | 05 | **Arts and Humanities** | `art history, literary criticism, philosophy of mind, renaissance architecture, linguistics morphology, creative writing, musical composition, theater history, postmodern literature, ethics and morality, historical archives, film analysis, religious studies, classical archaeology, metaphysics, cultural heritage preservation, comparative literature, linguistic semantics, medieval art, epistemology` |
+ | 06 | **Biochemistry, Genetics and Molecular Biology** | `dna replication, crispr gene editing, protein folding, rna sequencing, enzyme kinetics, cellular signaling pathways, metabolic pathways, genomic sequencing, molecular cloning, apoptosis mechanism, mitochondrial DNA, epigenetic modifications, proteomics analysis, gene expression regulation, chromatin remodeling, amino acid synthesis, nucleic acids, cellular differentiation, lipid metabolism, transcription factors` |
+ | 07 | **Agricultural and Biological Sciences** | `crop yield optimization, plant physiology, marine biology, soil microbiology, entomology study, botany research, sustainable agriculture, animal behavior, ecology systems, pest management, forestry conservation, photosynthesis mechanism, biodiversity preservation, aquaculture techniques, agronomy practices, seed germination, horticulture science, wildlife ecology, plant pathology, livestock breeding` |
+ | 08 | **Environmental Science** | `climate change mitigation, renewable resource management, air pollution monitoring, microplastics in oceans, deforestation rates, waste management systems, carbon footprint reduction, biodiversity loss, global warming impacts, ecosystem restoration, water quality analysis, urban sustainability, environmental impact assessment, glacier melting, conservation biology, greenhouse gas emissions, soil erosion control, renewable energy transition, climate adaptation strategies, acid rain causes` |
+ | 09 | **Business, Management and Accounting** | `corporate strategy, supply chain logistics, financial auditing, marketing analytics, human resource management, organizational behavior, consumer behavior trends, risk assessment framework, entrepreneurship ecosystems, project management methodologies, accounting principles, brand equity, leadership styles, business ethics, digital transformation strategy, operations management, corporate governance, market segmentation, strategic planning, financial reporting standards` |
+ | 10 | **Psychology** | `cognitive behavioral therapy, developmental psychology, social anxiety disorder, memory retention techniques, neuropsychology assessment, human behavior analysis, mental health counseling, personality traits theory, child development stages, addiction recovery mechanisms, emotional intelligence, perception and sensation, group dynamics psychology, depression treatment outcomes, stress management interventions, motivation theories, cognitive dissonance, behavioral psychology, mindfulness practices, sleep disorders psychology` |
+ | 11 | **Materials Science** | `nanomaterials synthesis, graphene applications, polymers characterization, metallurgy engineering, semiconductor fabrication, composite materials design, biomaterials tissue engineering, thin film deposition, corrosion resistance, superconductors properties, ceramic engineering, alloy development, material degradation, photovoltaic materials, mechanical testing of alloys, smart materials technology, crystal structure analysis, carbon nanotubes research, thermal conductivity materials, magnetic materials applications` |
+ | 12 | **Economics, Econometrics and Finance** | `macroeconomic policy, econometric modeling, financial market analysis, monetary theory, microeconomics principles, game theory applications, inflation rates forecast, labor economics, behavioral finance, portfolio optimization, international trade agreements, fiscal policy impact, time series analysis, asset pricing models, poverty reduction strategies, economic growth models, corporate finance theory, cryptocurrency economics, market equilibrium, public finance management` |
+ | 13 | **Health Professions** | `physical therapy techniques, occupational therapy interventions, speech language pathology, radiologic technology, emergency medical services, healthcare administration, audiology assessments, rehabilitation sciences, clinical nutrition, paramedic protocols, respiratory therapy management, health informatics systems, dietetics practice, patient care quality, medical laboratory technology, orthotics and prosthetics, interprofessional healthcare collaboration, community health education, sports medicine rehabilitation, physician assistant training` |
+ | 14 | **Physics and Astronomy** | `quantum mechanics, astrophysics research, dark matter detection, particle physics collision, general relativity theory, cosmology evolution, exoplanet discovery, nuclear fusion energy, condensed matter physics, string theory concepts, optics and photonics, black hole thermodynamics, gravitational waves detection, statistical mechanics, plasma physics applications, stellar evolution models, high energy physics, quantum entanglement experiments, spectroscopy techniques, thermodynamics principles` |
+ | 15 | **Chemistry** | `organic synthesis, analytical chemistry methods, inorganic compounds coordination, physical chemistry thermodynamics, spectroscopy chemical analysis, catalysis mechanism design, polymer chemistry polymerization, electrochemistry batteries, medicinal chemistry design, chromatography separation techniques, chemical kinetics reactions, mass spectrometry profiling, computational chemistry modeling, environmental chemistry monitoring, photochemistry solar conversion, biophysical chemistry structure, green chemistry principles, molecular orbital theory, supramolecular architecture, crystallography structure determination` |
+ | 16 | **Mathematics** | `linear algebra, differential equations solution, algebraic topology, number theory cryptography, calculus fundamentals, probability and statistics, discrete mathematics structures, numerical analysis algorithms, complex analysis functions, geometry axiom theories, combinatorics counting techniques, mathematical modeling simulation, set theory foundations, graph theory applications, real analysis limits, partial differential equations, abstract algebra groups, optimization theory algorithms, stochastic processes modeling, chaos theory dynamics` |
+ | 17 | **Neuroscience** | `synaptic plasticity, neurodegenerative diseases mechanisms, brain mapping fmri, cognitive neuroscience memory, neurotransmitter receptors pathways, neural network architecture, behavioral neuroscience addiction, neurogenesis adult brain, axon guidance development, spinal cord injury, sensory processing systems, motor control pathways, alzheimer disease pathology, parkinson motor deficits, neuroimmunology inflammation, sleep neural circuits, epilepsy seizure mechanisms, computational neuroscience models, neuropharmacology drugs action, brain computer interface` |
+ | 18 | **Decision Sciences** | `operations research optimization, decision analysis models, multi criteria decision making, game theory strategies, risk analysis management, linear programming applications, forecasting methods business, supply chain optimization, stochastic modeling systems, queuing theory performance, decision tree classification, predictive analytics framework, statistical decision theory, heuristic search optimization, inventory control models, simulation optimization methods, behavioral decision making, utility theory choices, data driven decision support, dynamic programming problems` |
+ | 19 | **Earth and Planetary Sciences** | `plate tectonics geology, seismology earthquake prediction, volcanology eruption monitoring, paleoclimatology proxy data, planetary geology mars, mineralogy crystal structures, sedimentology deposition environments, stratigraphy rock layers, geomorphology landscape evolution, hydrology water cycle, meteorology weather forecasting, oceanography ocean currents, geochemistry isotopic analysis, remote sensing earth, petrology rock formation, impact cratering planetary, paleontology fossil records, glaciology ice sheets, geophysics magnetic fields, environmental geology hazards` |
+ | 20 | **Immunology and Microbiology** | `t cell activation, antibody response mechanics, bacterial resistance antibiotics, viral replication cycle, autoimmune disease pathogenesis, innate immunity defense, vaccine development strategies, microbiome gut health, macrophage polarization function, pathogen virulence factors, cytokine storm response, mycology fungal infections, parasitology host interaction, adaptive immune system, antigen presentation pathway, bacteriophage therapy applications, immunotherapy cancer treatment, microbial biofilms formation, virology host defense, inflammation signaling pathways` |
+ | 21 | **Energy** | `solar cell efficiency, wind turbine aerodynamics, battery energy storage, hydrogen fuel cells, nuclear power generation, biofuel production technologies, geothermal energy extraction, energy grid optimization, fossil fuel alternative, hydroelectric power systems, energy efficiency buildings, carbon capture storage, renewable energy policy, smart grid infrastructure, tidal energy conversion, thermal energy storage, power electronics converters, microgrid energy systems, biomass combustion processes, energy consumption forecasting` |
+ | 22 | **Pharmacology, Toxicology and Pharmaceutics** | `drug delivery systems, pharmacokinetics modeling analysis, pharmacodynamics receptor binding, toxicology safety assessment, pharmaceutical formulation design, bioavailability drug absorption, cytotoxicity assays testing, clinical pharmacology trials, neuropharmacology drug effects, cardiotoxicity drug evaluation, nanoparticle drug carriers, pharmacogenomics personalized medicine, drug metabolism enzymes, adverse drug reactions, controlled release tablets, heavy metal toxicology, target identification drug, natural product pharmacology, dosage form optimization, endocrine disruptors toxicology` |
+ | 23 | **Nursing** | `patient care management, nursing education curriculum, clinical nursing practice, geriatric nursing care, pediatric nursing interventions, critical care nursing, palliative nursing care, nursing leadership styles, community health nursing, evidence based nursing, mental health nursing, maternal newborn nursing, wound care management, nurse practitioner roles, patient safety protocols, nursing burnout prevention, oncology nursing practices, chronic disease management, telehealth nursing care, infection control nursing` |
+ | 24 | **Chemical Engineering** | `process systems engineering, chemical reactor design, transport phenomena fluid, separation processes distillation, catalytic reaction engineering, bioprocess engineering fermentation, thermodynamics chemical mixtures, heat exchanger network, polymer processing extrusion, mass transfer operations, process safety management, fluidized bed reactor, chemical plant optimization, multi phase flow, computational fluid dynamics, industrial scale synthesis, green chemical engineering, adsorption separation kinetics, process control loops, materials processing chemical` |
+ | 25 | **Dentistry** | `endodontic treatment procedures, periodontal disease therapy, orthodontic alignment techniques, dental implant surgery, prosthodontics crown design, pediatric dentistry prevention, oral maxillofacial surgery, dental caries prevention, restorative dentistry materials, oral pathology diagnosis, laser dentistry applications, dental biomaterials wear, cone beam ct, salivary diagnostics biomarkers, aesthetic dentistry veneers, root canal morphology, gingival recession treatment, fluoride treatment efficacy, dental pulp stem cells, temporomandibular joint disorders` |
+ | 26 | **Veterinary** | `veterinary medicine diagnosis, canine parvovirus treatment, feline leukemia virus, equine sports medicine, bovine mastitis control, veterinary surgery techniques, animal nutrition guidelines, zoonotic disease transmission, veterinary oncology treatment, avian medicine care, small animal internal, livestock herd health, veterinary pharmacology drugs, animal welfare assessment, veterinary radiology imaging, feline behavior issues, canine hip dysplasia, veterinary epidemiology outbreaks, companion animal care, exotic pet medicine` |
+
+## Latency results
+
+| Query Configuration | Mean | Median | p95 |
+| :-------------------------------------- | :---: | :----: | :---: |
+| **Embedding Encode** | 35.81 | 35.11 | 42.98 |
+| **Pure Lexical Search (`multi_match`)** | 44.03 | 43.21 | 52.12 |
+
+|
+| **Description Only (`description_vector`)** | 27.11 | 24.83 | 40.23 |
+| **Display Name Only (`display_name_vector`)** | 42.71 | 45.33 | 55.51 |
+| **Keywords Only (`keyword_vectors` - Nested)** | 47.65 | 47.06 | 56.88 |
+| **Display Name & Description** | 46.62 | 49.22 | 59.43 |
+| **Display Name & Keywords (Nested)** | 52.11 | 51.36 | 61.22 |
+| **Combined (All 3 vector fields)** | 57.06 | 55.65 | 67.32 |
+|
+| **Hybrid Search (Lexical + All 3 vector fields)** | 58.65 | 57.09 | 69.10 |
+
+- should query runs hybrid and semantic concurrently => nested Keyword vector search bottleneck
+- Hybrid returns more results overall due to partailly matching words in display name & Keywords
+ - Query: "Cell Adhesion Molecules Research"
+ - Low rank return: "Q Methodology Applications"
+ - because: ["**Research** Methods", "Qualitative **Research**"] Keywords
+
+- Changed k & num_candidates to 500 (fixed bug, where not all keywords were considered):
+ | Query Configuration | Mean | Median | p95 |
+ | :--- | :---: | :---: | :---: |
+ | **Embedding Encode** | 38.25 | 37.41 | 45.48 |
+ | **Pure Lexical Search (`multi_match`)** | 44.98 | 43.69 | 55.21 |
+ | **Description Only (`description_vector`)** | 29.69 | 27.76 | 45.46 |
+ | **Display Name Only (`display_name_vector`)** | 45.20 | 46.68 | 59.47 |
+ | **Keywords Only (`keyword_vectors` - Nested)** | 50.00 | 48.89 | 60.61 |
+ | **Display Name & Description** | 49.84 | 51.16 | 66.37 |
+ | **Display Name & Keywords (Nested)** | 55.50 | 54.16 | 66.12 |
+ | **Combined (All 3 vector fields)** | 61.81 | 59.74 | 75.30 |
+ | **Hybrid Search (Lexical + All 3 vector fields)** | 63.25 | 61.05 | 76.39 |
+
+# Search Score Breakdown & Weight Analysis Report
+
+---
+
+## Global Score Contribution
+
+| Weight Component | Boost | Avg. Score Contribution | Percentage of Total Score |
+| :-------------------------------------------- | :---: | :---------------------: | :-----------------------: |
+| **Lexical Match (`multi_match`)** | 1.0 | 36.2275 | 54.31% |
+| **Title Vector (`display_name_vector`)** | 30.0 | 17.9748 | 26.95% |
+| **Description Vector (`description_vector`)** | 15.0 | 2.5502 | 3.82% |
+| **Nested Keywords (`keyword_vectors`)** | 25.0 | 9.9531 | 14.92% |
+
+| After fix:
+| **Lexical Match (`multi_match`)** | 1.0 | 38.2910 | 44.79% |
+| **Title Vector (`display_name_vector`)** | 30.0 | 22.5727 | 26.40% |
+| **Description Vector (`description_vector`)** | 15.0 | 3.3518 | 3.92% |
+| **Nested Keywords (`keyword_vectors`)** | 25.0 | 21.2808 | 24.89% |
+
+---
+
+## Contribution Breakdown by Field
+
+| Field | Avg. Score | Lexical % | Title Vector % | Description Vector % | Keywords Vector % |
+| :------------------------------------------- | :--------: | :-------: | :------------: | :------------------: | :---------------: |
+| Social Sciences | 76.10 | 42.6% | 27.0% | 6.2% | 24.2% |
+| Medicine | 71.58 | 43.9% | 26.5% | 4.1% | 25.5% |
+| Engineering | 67.73 | 43.8% | 27.6% | 3.5% | 25.2% |
+| Computer Science | 69.63 | 47.3% | 23.4% | 4.0% | 25.3% |
+| Arts and Humanities | 75.38 | 40.2% | 28.7% | 5.9% | 25.1% |
+| Biochemistry, Genetics and Molecular Biology | 64.32 | 43.5% | 26.7% | 1.6% | 28.1% |
+| Agricultural and Biological Sciences | 70.48 | 38.0% | 30.7% | 4.2% | 27.1% |
+| Environmental Science | 72.92 | 44.3% | 26.3% | 5.0% | 24.3% |
+| Business, Management and Accounting | 75.14 | 47.1% | 25.8% | 2.7% | 24.5% |
+| Psychology | 67.50 | 40.8% | 28.5% | 4.9% | 25.8% |
+| Materials Science | 75.99 | 40.4% | 28.5% | 6.4% | 24.7% |
+| Economics, Econometrics and Finance | 67.58 | 43.0% | 25.3% | 5.7% | 25.9% |
+| Health Professions | 62.96 | 41.9% | 28.4% | 3.2% | 26.5% |
+| Physics and Astronomy | 70.10 | 47.5% | 24.4% | 3.6% | 24.5% |
+| Chemistry | 73.17 | 44.6% | 26.8% | 4.2% | 24.4% |
+| Mathematics | 74.83 | 48.1% | 24.7% | 4.4% | 22.9% |
+| Neuroscience | 68.20 | 45.2% | 24.6% | 5.2% | 25.0% |
+| Decision Sciences | 67.13 | 49.5% | 23.3% | 2.4% | 24.8% |
+| Earth and Planetary Sciences | 64.59 | 41.3% | 28.9% | 2.4% | 27.3% |
+| Immunology and Microbiology | 68.62 | 44.9% | 25.7% | 3.6% | 25.9% |
+| Energy | 80.04 | 50.3% | 22.8% | 5.4% | 21.6% |
+| Pharmacology, Toxicology and Pharmaceutics | 64.61 | 45.2% | 26.1% | 2.4% | 26.2% |
+| Nursing | 75.86 | 47.8% | 26.5% | 2.8% | 22.8% |
+| Chemical Engineering | 59.12 | 48.5% | 26.0% | 1.1% | 24.4% |
+| Dentistry | 62.51 | 44.1% | 28.1% | 3.1% | 24.7% |
+| Veterinary | 53.56 | 49.2% | 26.9% | 1.9% | 22.0% |
+
+---
+
+## Score Breakdown Examples (Top Match per Field Sample)
+
+| Field & Query | Fixed Variant Performance | Bug Variant Performance |
+| :------------------------------------------------------------ | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
+| **Social Sciences**
`"sociology"` | **Topic**: Emile Durkheim and Sociology
**Total Score**: 80.7964
• Lexical: 33.6289
• Title KNN: 25.3876
• Desc KNN: 12.1561
• Key KNN: 24.9897
**Keywords**:
• 'sociology' (0.9996)
• 'social conditions' (0.8254) | **Topic**: Emile Durkheim and Sociology
**Total Score**: 55.4088
• Lexical: 33.6289
• Title KNN: 0.0000
• Desc KNN: 12.1561
• Key KNN: 24.9897
**Keywords**:
• 'sociology' (0.9996)
• 'social conditions' (0.8254) |
+| **Medicine**
`"cardiology"` | **Topic**: Cardiomyopathy and Myosin Studies
**Total Score**: 62.3436
• Lexical: 0.0000
• Title KNN: 26.0134
• Desc KNN: 12.4090
• Key KNN: 23.9212
**Keywords**:
• 'Cardiomyopathies' (0.9568)
• 'Cardiac Imaging' (0.9192) | **Topic**: Cardiac Imaging and Diagnostics
**Total Score**: 27.6677
• Lexical: 0.0000
• Title KNN: 27.6677
• Desc KNN: 0.0000
• Key KNN: 0.0000
**Keywords**:
• 'Cardiac Imaging' (0.9192)
• 'Myocardial Infarction' (0.8564) |
+| **Engineering**
`"civil engineering"` | **Topic**: Civil and Structural Engineering Research
**Total Score**: 97.2652
• Lexical: 60.8415
• Title KNN: 28.1018
• Desc KNN: 12.3099
• Key KNN: 24.8941
**Keywords**:
• 'Civil Engineering' (0.9958)
• 'Construction' (0.8388) | **Topic**: Civil and Structural Engineering Research
**Total Score**: 97.2652
• Lexical: 60.8415
• Title KNN: 28.1018
• Desc KNN: 12.3099
• Key KNN: 24.8941
**Keywords**:
• 'Civil Engineering' (0.9958)
• 'Construction' (0.8388) |
+| **Computer Science**
`"machine learning"` | **Topic**: Machine Learning and Algorithms
**Total Score**: 99.2549
• Lexical: 55.5562
• Title KNN: 29.2590
• Desc KNN: 12.5187
• Key KNN: 24.9693
**Keywords**:
• 'Machine Learning' (0.9988)
• 'Deep Learning' (0.9119) | **Topic**: Machine Learning and Algorithms
**Total Score**: 74.2856
• Lexical: 55.5562
• Title KNN: 29.2590
• Desc KNN: 12.5187
• Key KNN: 0.0000
**Keywords**:
• 'Machine Learning' (0.9988)
• 'Deep Learning' (0.9119) |
+| **Arts and Humanities**
`"art history"` | **Topic**: Art, Politics, and Modernism
**Total Score**: 79.6751
• Lexical: 41.4462
• Title KNN: 26.8390
• Desc KNN: 12.2412
• Key KNN: 23.1472
**Keywords**:
• 'Contemporary Art' (0.9259)
• 'Art Theory' (0.8902) | **Topic**: Art History and Market Analysis
**Total Score**: 54.6477
• Lexical: 44.3255
• Title KNN: 27.6256
• Desc KNN: 0.0000
• Key KNN: 0.0000
**Keywords**:
• 'Art Market' (0.8499) |
+| **Biochemistry, Genetics...**
`"dna replication"` | **Topic**: DNA Repair Mechanisms
**Total Score**: 69.5873
• Lexical: 37.9645
• Title KNN: 25.5676
• Desc KNN: 0.0000
• Key KNN: 21.2950
**Keywords**:
• 'Homologous Recombination' (0.8518) | **Topic**: DNA Repair Mechanisms
**Total Score**: 48.2923
• Lexical: 37.9645
• Title KNN: 25.5676
• Desc KNN: 0.0000
• Key KNN: 0.0000
**Keywords**:
• 'Homologous Recombination' (0.8518) |
+| **Agricultural Sciences**
`"crop yield optimization"` | **Topic**: Crop Yield and Soil Fertility
**Total Score**: 86.9026
• Lexical: 72.9192
• Title KNN: 25.6184
• Desc KNN: 0.0000
• Key KNN: 21.9673
**Keywords**:
• 'Crop Management' (0.8787)
• 'Maize Yield' (0.8515) | **Topic**: Soil Management and Crop Yield
**Total Score**: 65.6488
• Lexical: 58.5754
• Title KNN: 26.3319
• Desc KNN: 0.0000
• Key KNN: 0.0000
**Keywords**:
• 'No-till Crop Production' (0.8136) |
+| **Environmental Science**
`"climate change mitigation"` | **Topic**: Climate Change, Adaptation, Migration
**Total Score**: 95.6090
• Lexical: 55.1717
• Title KNN: 24.9003
• Desc KNN: 12.3419
• Key KNN: 23.2867
**Keywords**:
• 'Climate Change' (0.9315) | **Topic**: Climate Change and Sustainable Development
**Total Score**: 72.0562
• Lexical: 52.0331
• Title KNN: 27.6359
• Desc KNN: 12.3920
• Key KNN: 0.0000
**Keywords**:
• 'Climate Change' (0.9314)
• 'Environmental Policy' (0.8447) |
+| **Business & Accounting**
`"corporate strategy"` | **Topic**: Political Influence and Corporate Strategies
**Total Score**: 70.1485
• Lexical: 43.3796
• Title KNN: 25.4050
• Desc KNN: 0.0000
• Key KNN: 23.5512
**Keywords**:
• 'Business Strategy' (0.9420)
• 'Corporate Governance' (0.8537) | **Topic**: Corporate Management and Leadership
**Total Score**: 44.0634
• Lexical: 18.0385
• Title KNN: 26.0249
• Desc KNN: 0.0000
• Key KNN: 0.0000
**Keywords**:
• _None matched_ |
+| **Psychology**
`"cognitive behavioral therapy"` | **Topic**: Psychological Treatments and Assessments
**Total Score**: 74.0625
• Lexical: 33.9552
• Title KNN: 26.3648
• Desc KNN: 0.0000
• Key KNN: 24.8575
**Keywords**:
• 'Cognitive Behavioral Therapy' (0.9943)
• 'Rational Emotive Behavior Therapy' (0.8906) | **Topic**: Psychological Treatments and Assessments
**Total Score**: 74.0625
• Lexical: 33.9552
• Title KNN: 26.3648
• Desc KNN: 0.0000
• Key KNN: 24.8575
**Keywords**:
• 'Cognitive Behavioral Therapy' (0.9943)
• 'Rational Emotive Behavior Therapy' (0.8906) |
+| **Materials Science**
`"nanomaterials synthesis"` | **Topic**: Copper-based nanomaterials and applications
**Total Score**: 79.3170
• Lexical: 31.3198
• Title KNN: 25.5626
• Desc KNN: 12.8334
• Key KNN: 23.2389
**Keywords**:
• 'Nanostructures' (0.9296)
• 'Nanocrystals' (0.8989) | **Topic**: Nanoparticles: synthesis and applications
**Total Score**: 51.4193
• Lexical: 41.6580
• Title KNN: 28.1196
• Desc KNN: 0.0000
• Key KNN: 0.0000
**Keywords**:
• 'Nanomaterials' (0.9593)
• 'Nanoparticles' (0.9017) |
+| **Economics & Finance**
`"macroeconomic policy"` | **Topic**: Monetary Policy and Economic Impact
**Total Score**: 77.2466
• Lexical: 33.6052
• Title KNN: 27.9601
• Desc KNN: 12.7554
• Key KNN: 23.1466
**Keywords**:
• 'Monetary Policy' (0.9259)
• 'Fiscal Policy' (0.8719) | **Topic**: Monetary Policy and Economic Impact
**Total Score**: 54.1000
• Lexical: 33.6052
• Title KNN: 27.9601
• Desc KNN: 12.7554
• Key KNN: 0.0000
**Keywords**:
• 'Monetary Policy' (0.9259)
• 'Fiscal Policy' (0.8719) |
+| **Health Professions**
`"physical therapy techniques"` | **Topic**: Physical Activity and Health
**Total Score**: 63.6719
• Lexical: 35.4732
• Title KNN: 24.8417
• Desc KNN: 0.0000
• Key KNN: 21.5571
**Keywords**:
• 'Physical Fitness' (0.8623)
• 'Exercise' (0.8567) | **Topic**: Physical Education and Training Studies
**Total Score**: 41.6865
• Lexical: 34.0993
• Title KNN: 25.9162
• Desc KNN: 0.0000
• Key KNN: 0.0000
**Keywords**:
• 'Physical Education' (0.8518)
• 'Athletic Training' (0.8386) |
+| **Physics and Astronomy**
`"quantum mechanics"` | **Topic**: Quantum Mechanics and Applications
**Total Score**: 100.0179
• Lexical: 62.6773
• Title KNN: 29.4806
• Desc KNN: 12.8902
• Key KNN: 23.1009
**Keywords**:
• 'Quantum Interpretations' (0.9240)
• 'Quantum Measurement' (0.9195) | **Topic**: Quantum Mechanics and Non-Hermitian Physics
**Total Score**: 82.1469
• Lexical: 59.7515
• Title KNN: 28.2917
• Desc KNN: 0.0000
• Key KNN: 24.8390
**Keywords**:
• 'Quantum Mechanics' (0.9936)
• 'Non-Hermitian Physics' (0.8265) |
+| **Chemistry**
`"organic synthesis"` | **Topic**: Organic Chemistry Synthesis Methods
**Total Score**: 93.3478
• Lexical: 51.1392
• Title KNN: 28.8346
• Desc KNN: 12.8016
• Key KNN: 21.2545
**Keywords**:
• 'Total Synthesis' (0.8502) | **Topic**: Organic Chemistry Synthesis Methods
**Total Score**: 72.0932
• Lexical: 51.1392
• Title KNN: 28.8346
• Desc KNN: 12.8016
• Key KNN: 0.0000
**Keywords**:
• 'Total Synthesis' (0.8502) |
+| **Mathematics**
`"linear algebra"` | **Topic**: Advanced Algebra and Logic
**Total Score**: 69.1804
• Lexical: 21.0841
• Title KNN: 26.3365
• Desc KNN: 0.0000
• Key KNN: 21.7598
**Keywords**:
• 'MV-algebras' (0.8704)
• 'Algebraic Semantics' (0.8542) | **Topic**: Matrix Theory and Algorithms
**Total Score**: 51.1267
• Lexical: 42.7259
• Title KNN: 0.0000
• Desc KNN: 0.0000
• Key KNN: 24.3482
**Keywords**:
• 'Numerical Linear Algebra' (0.9739) |
+| **Neuroscience**
`"synaptic plasticity"` | **Topic**: Neuroscience and Neuropharmacology Research
**Total Score**: 59.8949
• Lexical: 34.7332
• Title KNN: 0.0000
• Desc KNN: 13.1294
• Key KNN: 24.0698
**Keywords**:
• 'Synaptic Plasticity' (0.9628)
• 'Neuronal Circuits' (0.8298) | **Topic**: Neuroscience and Neuropharmacology Research
**Total Score**: 59.8949
• Lexical: 34.7332
• Title KNN: 0.0000
• Desc KNN: 13.1294
• Key KNN: 24.0698
**Keywords**:
• 'Synaptic Plasticity' (0.9628)
• 'Neuronal Circuits' (0.8298) |
+| **Decision Sciences**
`"operations research optimization"` | **Topic**: Operations Management Techniques
**Total Score**: 72.2617
• Lexical: 45.7187
• Title KNN: 25.8359
• Desc KNN: 0.0000
• Key KNN: 20.3829
**Keywords**:
• 'Operations Management' (0.8153) | **Topic**: Management and Optimization Techniques
**Total Score**: 67.5272
• Lexical: 38.2684
• Title KNN: 27.0016
• Desc KNN: 0.0000
• Key KNN: 22.7133
**Keywords**:
• 'Operations Research' (0.9085) |
+| **Earth Sciences**
`"plate tectonics geology"` | **Topic**: Geological and Geochemical Analysis
**Total Score**: 81.4082
• Lexical: 47.1954
• Title KNN: 24.9384
• Desc KNN: 0.0000
• Key KNN: 24.0854
**Keywords**:
• 'Plate Tectonics' (0.9634)
• 'Tectonics' (0.9412) | **Topic**: Geological and Geophysical Studies
**Total Score**: 76.8806
• Lexical: 33.5170
• Title KNN: 25.9864
• Desc KNN: 0.0000
• Key KNN: 24.0846
**Keywords**:
• 'Plate Tectonics' (0.9634)
• 'Tectonic Model' (0.8970) |
+| **Immunology & Micro.**
`"t cell activation"` | **Topic**: T-cell and B-cell Immunology
**Total Score**: 101.7294
• Lexical: 58.5911
• Title KNN: 26.2074
• Desc KNN: 12.7561
• Key KNN: 22.2172
**Keywords**:
• 'Memory T Cells' (0.8887)
• 'TGF-ß' (0.8379) | **Topic**: T-cell and B-cell Immunology
**Total Score**: 79.5122
• Lexical: 58.5911
• Title KNN: 26.2074
• Desc KNN: 12.7561
• Key KNN: 0.0000
**Keywords**:
• 'Memory T Cells' (0.8887)
• 'TGF-ß' (0.8379) |
+| **Energy**
`"solar cell efficiency"` | **Topic**: solar cell performance optimization
**Total Score**: 100.7331
• Lexical: 69.7479
• Title KNN: 28.9188
• Desc KNN: 12.4518
• Key KNN: 21.6075
**Keywords**:
• 'Energy Conversion Efficiency' (0.8643)
• 'Multijunction Solar Cells' (0.8636) | **Topic**: solar cell performance optimization
**Total Score**: 79.1256
• Lexical: 69.7479
• Title KNN: 28.9188
• Desc KNN: 12.4518
• Key KNN: 0.0000
**Keywords**:
• 'Energy Conversion Efficiency' (0.8643)
• 'Multijunction Solar Cells' (0.8636) |
+| **Pharmacology & Tox.**
`"drug delivery systems"` | **Topic**: Advanced Drug Delivery Systems
**Total Score**: 101.0864
• Lexical: 82.7073
• Title KNN: 29.0884
• Desc KNN: 0.0000
• Key KNN: 23.9235
**Keywords**:
• 'Drug Delivery' (0.9569) | **Topic**: Advanced Drug Delivery Systems
**Total Score**: 77.1629
• Lexical: 82.7073
• Title KNN: 29.0884
• Desc KNN: 0.0000
• Key KNN: 0.0000
**Keywords**:
• 'Drug Delivery' (0.9569) |
+| **Nursing**
`"patient care management"` | **Topic**: Family and Patient Care in ICU
**Total Score**: 81.2835
• Lexical: 62.5713
• Title KNN: 25.2221
• Desc KNN: 0.0000
• Key KNN: 23.3629
**Keywords**:
• 'Patient-Centered Care' (0.9345)
• 'Critical Care' (0.8654) | **Topic**: Health Services Management and Policy
**Total Score**: 49.0703
• Lexical: 44.9180
• Title KNN: 0.0000
• Desc KNN: 0.0000
• Key KNN: 24.1204
**Keywords**:
• 'patient care' (0.9648)
• 'hospital management' (0.9044) |
+| **Chemical Engineering**
`"process systems engineering"` | **Topic**: Systems Engineering Methodologies
**Total Score**: 69.4196
• Lexical: 46.7857
• Title KNN: 27.1586
• Desc KNN: 0.0000
• Key KNN: 21.4144
**Keywords**:
• 'Interdisciplinary System Eng.' (0.8566)
• 'Model-Based Systems Eng.' (0.8462) | **Topic**: Control Systems in Engineering
**Total Score**: 48.0307
• Lexical: 30.2824
• Title KNN: 25.1976
• Desc KNN: 0.0000
• Key KNN: 0.0000
**Keywords**:
• _None matched_ |
+| **Dentistry**
`"endodontic treatment procedures"` | **Topic**: Endodontics and Root Canal Treatments
**Total Score**: 85.0595
• Lexical: 33.2248
• Title KNN: 27.3373
• Desc KNN: 12.9073
• Key KNN: 24.7433
**Keywords**:
• 'Endodontic Treatment' (0.9897)
• 'Regenerative Endodontics' (0.9185) | **Topic**: Endodontics and Root Canal Treatments
**Total Score**: 85.0595
• Lexical: 33.2248
• Title KNN: 27.3373
• Desc KNN: 12.9073
• Key KNN: 24.7433
**Keywords**:
• 'Endodontic Treatment' (0.9897)
• 'Regenerative Endodontics' (0.9185) |
+| **Veterinary**
`"veterinary medicine diagnosis"` | **Topic**: Animal health and immunology
**Total Score**: 70.5398
• Lexical: 36.6445
• Title KNN: 24.4738
• Desc KNN: 0.0000
• Key KNN: 24.6649
**Keywords**:
• 'Veterinary Diagnosis' (0.9866) | **Topic**: Veterinary Medicine and Surgery
**Total Score**: 63.5579
• Lexical: 36.3745
• Title KNN: 27.1833
• Desc KNN: 0.0000
• Key KNN: 0.0000
**Keywords**:
• _None matched_ |
diff --git a/llm_evaluations/sentence_transformer/score_breakdown_results(intfloatmultilingual-e5-base).json b/llm_evaluations/sentence_transformer/score_breakdown_results(intfloatmultilingual-e5-base).json
new file mode 100644
index 00000000..48eb2a2b
--- /dev/null
+++ b/llm_evaluations/sentence_transformer/score_breakdown_results(intfloatmultilingual-e5-base).json
@@ -0,0 +1,31375 @@
+{
+ "summary": {
+ "total_records": 1560,
+ "average_score": 44.33708782692308,
+ "averages": {
+ "lexical": 37.121756332349214,
+ "title_vector": 12.512386266987178,
+ "description_vector": 0.4139854951282051,
+ "keywords_vector": 8.616630050641026
+ },
+ "percentages": {
+ "lexical": 63.27777954957148,
+ "title_vector": 21.32862499158037,
+ "description_vector": 0.7056800508820367,
+ "keywords_vector": 14.687915407966118
+ }
+ },
+ "field_summaries": {
+ "Social Sciences": {
+ "queries": 20,
+ "avg_score": 44.691606083333326,
+ "lexical_pct": 65.00201126813509,
+ "title_vector_pct": 23.004883245842517,
+ "description_vector_pct": 0.0,
+ "keywords_vector_pct": 11.993105486022387
+ },
+ "Medicine": {
+ "queries": 20,
+ "avg_score": 43.3742871,
+ "lexical_pct": 59.96158427748923,
+ "title_vector_pct": 22.80496401810898,
+ "description_vector_pct": 1.183239442404864,
+ "keywords_vector_pct": 16.050212261996933
+ },
+ "Engineering": {
+ "queries": 20,
+ "avg_score": 42.652342033333326,
+ "lexical_pct": 60.579205821187784,
+ "title_vector_pct": 23.648589049262313,
+ "description_vector_pct": 0.0,
+ "keywords_vector_pct": 15.772205129549896
+ },
+ "Computer Science": {
+ "queries": 20,
+ "avg_score": 45.19125736666667,
+ "lexical_pct": 65.40675694450007,
+ "title_vector_pct": 22.694704040776557,
+ "description_vector_pct": 0.43868662035508244,
+ "keywords_vector_pct": 11.45985239436828
+ },
+ "Arts and Humanities": {
+ "queries": 20,
+ "avg_score": 42.363685833333335,
+ "lexical_pct": 61.353990729191956,
+ "title_vector_pct": 23.758258965868574,
+ "description_vector_pct": 0.0,
+ "keywords_vector_pct": 14.887750304939477
+ },
+ "Biochemistry, Genetics and Molecular Biology": {
+ "queries": 20,
+ "avg_score": 45.44292323333333,
+ "lexical_pct": 59.34314773463204,
+ "title_vector_pct": 16.408174239254194,
+ "description_vector_pct": 1.6521691250884776,
+ "keywords_vector_pct": 22.596508901025285
+ },
+ "Agricultural and Biological Sciences": {
+ "queries": 20,
+ "avg_score": 41.6167355,
+ "lexical_pct": 55.71579149754287,
+ "title_vector_pct": 27.81299415612154,
+ "description_vector_pct": 0.25899645594401116,
+ "keywords_vector_pct": 16.21221789039159
+ },
+ "Environmental Science": {
+ "queries": 20,
+ "avg_score": 44.723642366666674,
+ "lexical_pct": 64.77489305949486,
+ "title_vector_pct": 17.736946919154022,
+ "description_vector_pct": 0.2107068267148452,
+ "keywords_vector_pct": 17.27745319463628
+ },
+ "Business, Management and Accounting": {
+ "queries": 20,
+ "avg_score": 48.75740525000001,
+ "lexical_pct": 63.93821297284141,
+ "title_vector_pct": 19.667535176415342,
+ "description_vector_pct": 0.19691659895805808,
+ "keywords_vector_pct": 16.197335251785194
+ },
+ "Psychology": {
+ "queries": 20,
+ "avg_score": 41.75730373333333,
+ "lexical_pct": 60.50980189107883,
+ "title_vector_pct": 23.201031522637333,
+ "description_vector_pct": 0.24290048681459517,
+ "keywords_vector_pct": 16.046266099469236
+ },
+ "Materials Science": {
+ "queries": 20,
+ "avg_score": 44.03316936666666,
+ "lexical_pct": 61.968415290385934,
+ "title_vector_pct": 23.7959432338703,
+ "description_vector_pct": 0.9252773938742205,
+ "keywords_vector_pct": 13.31036408186954
+ },
+ "Economics, Econometrics and Finance": {
+ "queries": 20,
+ "avg_score": 42.009615333333336,
+ "lexical_pct": 63.96885387684882,
+ "title_vector_pct": 16.175382364829595,
+ "description_vector_pct": 0.7091920312069078,
+ "keywords_vector_pct": 19.146571727114665
+ },
+ "Health Professions": {
+ "queries": 20,
+ "avg_score": 39.09271638333333,
+ "lexical_pct": 58.61776742805226,
+ "title_vector_pct": 25.08742555432097,
+ "description_vector_pct": 0.5881680901110428,
+ "keywords_vector_pct": 15.706638927515742
+ },
+ "Physics and Astronomy": {
+ "queries": 20,
+ "avg_score": 46.450791366666664,
+ "lexical_pct": 64.06169485699029,
+ "title_vector_pct": 18.642645405462417,
+ "description_vector_pct": 0.8138136303185902,
+ "keywords_vector_pct": 16.481846107228716
+ },
+ "Chemistry": {
+ "queries": 20,
+ "avg_score": 44.65317583333333,
+ "lexical_pct": 63.31769945489661,
+ "title_vector_pct": 22.44060887788869,
+ "description_vector_pct": 0.22479313588386513,
+ "keywords_vector_pct": 14.01689853133083
+ },
+ "Mathematics": {
+ "queries": 20,
+ "avg_score": 47.41829911666666,
+ "lexical_pct": 65.76367854365417,
+ "title_vector_pct": 21.715178706121215,
+ "description_vector_pct": 0.3971279014214166,
+ "keywords_vector_pct": 12.124014848803204
+ },
+ "Neuroscience": {
+ "queries": 20,
+ "avg_score": 45.343937283333325,
+ "lexical_pct": 61.410433562544334,
+ "title_vector_pct": 21.461739010378885,
+ "description_vector_pct": 1.9156901785071658,
+ "keywords_vector_pct": 15.212137248569615
+ },
+ "Decision Sciences": {
+ "queries": 20,
+ "avg_score": 44.61401975,
+ "lexical_pct": 69.80441978128438,
+ "title_vector_pct": 20.974748344480357,
+ "description_vector_pct": 0.0,
+ "keywords_vector_pct": 9.220831874235264
+ },
+ "Earth and Planetary Sciences": {
+ "queries": 20,
+ "avg_score": 43.27161781666666,
+ "lexical_pct": 62.99953417618228,
+ "title_vector_pct": 19.101746947552456,
+ "description_vector_pct": 0.2301675978159437,
+ "keywords_vector_pct": 17.66855127844932
+ },
+ "Immunology and Microbiology": {
+ "queries": 20,
+ "avg_score": 45.962275066666656,
+ "lexical_pct": 60.10893526652117,
+ "title_vector_pct": 19.010597255031794,
+ "description_vector_pct": 2.5597364101627718,
+ "keywords_vector_pct": 18.320731068284264
+ },
+ "Energy": {
+ "queries": 20,
+ "avg_score": 50.96220243333334,
+ "lexical_pct": 70.61185144581529,
+ "title_vector_pct": 17.735074375013532,
+ "description_vector_pct": 1.0548723113758427,
+ "keywords_vector_pct": 10.598201867795343
+ },
+ "Pharmacology, Toxicology and Pharmaceutics": {
+ "queries": 20,
+ "avg_score": 45.66246233333333,
+ "lexical_pct": 62.14777640163718,
+ "title_vector_pct": 17.43582568347439,
+ "description_vector_pct": 2.0014961519930834,
+ "keywords_vector_pct": 18.41490176289535
+ },
+ "Nursing": {
+ "queries": 20,
+ "avg_score": 47.05686481666667,
+ "lexical_pct": 67.50013681964742,
+ "title_vector_pct": 22.867864879898665,
+ "description_vector_pct": 0.4223761007861813,
+ "keywords_vector_pct": 9.209622199667724
+ },
+ "Chemical Engineering": {
+ "queries": 20,
+ "avg_score": 40.46604928333333,
+ "lexical_pct": 62.26568728600908,
+ "title_vector_pct": 27.4905558412728,
+ "description_vector_pct": 0.4986090188509173,
+ "keywords_vector_pct": 9.745147853867199
+ },
+ "Dentistry": {
+ "queries": 20,
+ "avg_score": 43.180870766666665,
+ "lexical_pct": 65.4992206506925,
+ "title_vector_pct": 18.351563897796474,
+ "description_vector_pct": 1.157607471821934,
+ "keywords_vector_pct": 14.991607979689103
+ },
+ "Veterinary": {
+ "queries": 20,
+ "avg_score": 42.01502805,
+ "lexical_pct": 62.93786415842035,
+ "title_vector_pct": 25.144540277443323,
+ "description_vector_pct": 0.527266460186474,
+ "keywords_vector_pct": 11.390329103949858
+ }
+ },
+ "results": [
+ {
+ "query": "sociology",
+ "field": "Social Sciences",
+ "rank": 1,
+ "topic_name": "Emile Durkheim and Sociology",
+ "total_score": 43.226112,
+ "lexical_score": 33.628865499999996,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.963123,
+ "matched_keywords": [
+ {
+ "keyword": "sociology",
+ "score": 0.99852496
+ },
+ {
+ "keyword": "anthropology",
+ "score": 0.7940318
+ }
+ ]
+ },
+ {
+ "query": "sociology",
+ "field": "Social Sciences",
+ "rank": 2,
+ "topic_name": "Philosophy, Sociology, Political Theory",
+ "total_score": 36.37201,
+ "lexical_score": 18.26299,
+ "title_vector_score": 18.109016,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "sociology",
+ "field": "Social Sciences",
+ "rank": 3,
+ "topic_name": "Education, Sociology, Communication Studies",
+ "total_score": 36.287895,
+ "lexical_score": 18.26299,
+ "title_vector_score": 18.024902,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Education",
+ "score": 0.5419566
+ }
+ ]
+ },
+ {
+ "query": "gender inequality in workplace",
+ "field": "Social Sciences",
+ "rank": 1,
+ "topic_name": "Gender Diversity and Inequality",
+ "total_score": 56.963276,
+ "lexical_score": 63.9757238,
+ "title_vector_score": 20.701675,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Workplace Bias",
+ "score": 0.6337827
+ },
+ {
+ "keyword": "Gender Diversity",
+ "score": 0.554774
+ }
+ ]
+ },
+ {
+ "query": "gender inequality in workplace",
+ "field": "Social Sciences",
+ "rank": 2,
+ "topic_name": "Gender, Health, and Social Inequality",
+ "total_score": 52.467648,
+ "lexical_score": 58.20896087,
+ "title_vector_score": 19.36081,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Social Inequality",
+ "score": 0.6042951
+ }
+ ]
+ },
+ {
+ "query": "gender inequality in workplace",
+ "field": "Social Sciences",
+ "rank": 3,
+ "topic_name": "Gender, Security, and Conflict",
+ "total_score": 42.182816,
+ "lexical_score": 48.4846367,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 18.664265,
+ "matched_keywords": [
+ {
+ "keyword": "Gender Inequality",
+ "score": 0.7465706
+ },
+ {
+ "keyword": "Gender-based Violence",
+ "score": 0.5596759
+ }
+ ]
+ },
+ {
+ "query": "urbanization trends",
+ "field": "Social Sciences",
+ "rank": 1,
+ "topic_name": "Urbanization and City Planning",
+ "total_score": 42.827896,
+ "lexical_score": 23.561312,
+ "title_vector_score": 19.266586,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Suburbanization",
+ "score": 0.6112378
+ },
+ {
+ "keyword": "Urban Decline",
+ "score": 0.6049436
+ }
+ ]
+ },
+ {
+ "query": "urbanization trends",
+ "field": "Social Sciences",
+ "rank": 2,
+ "topic_name": "Global Development and Urbanization",
+ "total_score": 42.305283,
+ "lexical_score": 23.561312,
+ "title_vector_score": 18.743973,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Urban Planning",
+ "score": 0.57461673
+ },
+ {
+ "keyword": "Globalization",
+ "score": 0.52236813
+ }
+ ]
+ },
+ {
+ "query": "urbanization trends",
+ "field": "Social Sciences",
+ "rank": 3,
+ "topic_name": "China's Socioeconomic Reforms and Governance",
+ "total_score": 32.312443,
+ "lexical_score": 18.2568573,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 19.7052,
+ "matched_keywords": [
+ {
+ "keyword": "urbanization",
+ "score": 0.788208
+ },
+ {
+ "keyword": "economic development",
+ "score": 0.56193286
+ }
+ ]
+ },
+ {
+ "query": "political polarization",
+ "field": "Social Sciences",
+ "rank": 1,
+ "topic_name": "Reformation and Early Modern Christianity",
+ "total_score": 41.547928,
+ "lexical_score": 23.7816267,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 21.189117,
+ "matched_keywords": [
+ {
+ "keyword": "Political Polarization",
+ "score": 0.8475647
+ }
+ ]
+ },
+ {
+ "query": "political polarization",
+ "field": "Social Sciences",
+ "rank": 2,
+ "topic_name": "Electoral Systems and Political Participation",
+ "total_score": 39.26758,
+ "lexical_score": 43.9795081,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 19.34058,
+ "matched_keywords": [
+ {
+ "keyword": "Party Polarization",
+ "score": 0.77362317
+ },
+ {
+ "keyword": "Political Science",
+ "score": 0.5501264
+ }
+ ]
+ },
+ {
+ "query": "political polarization",
+ "field": "Social Sciences",
+ "rank": 3,
+ "topic_name": "Globalization and political ideologies",
+ "total_score": 32.10346,
+ "lexical_score": 30.2749557,
+ "title_vector_score": 17.516594,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Political Economy",
+ "score": 0.54250973
+ },
+ {
+ "keyword": "Globalization",
+ "score": 0.5414607
+ }
+ ]
+ },
+ {
+ "query": "human rights law",
+ "field": "Social Sciences",
+ "rank": 1,
+ "topic_name": "International Law and Human Rights",
+ "total_score": 65.27403,
+ "lexical_score": 77.48566689999998,
+ "title_vector_score": 23.117142,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Human Rights",
+ "score": 0.83175915
+ },
+ {
+ "keyword": "International Humanitarian Law",
+ "score": 0.6744792
+ }
+ ]
+ },
+ {
+ "query": "human rights law",
+ "field": "Social Sciences",
+ "rank": 2,
+ "topic_name": "Legal Rights and Human Rights",
+ "total_score": 57.139732,
+ "lexical_score": 76.1793958,
+ "title_vector_score": 22.043877,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Human Rights",
+ "score": 0.8319562
+ },
+ {
+ "keyword": "International Law",
+ "score": 0.71659344
+ }
+ ]
+ },
+ {
+ "query": "human rights law",
+ "field": "Social Sciences",
+ "rank": 3,
+ "topic_name": "Human Rights and Development",
+ "total_score": 53.3282,
+ "lexical_score": 55.6740135,
+ "title_vector_score": 21.399193,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Human Rights",
+ "score": 0.8318672
+ },
+ {
+ "keyword": "Rights-Based Approach",
+ "score": 0.593277
+ }
+ ]
+ },
+ {
+ "query": "social mobility",
+ "field": "Social Sciences",
+ "rank": 1,
+ "topic_name": "Social and Cultural Dynamics",
+ "total_score": 38.59113,
+ "lexical_score": 34.9325216,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.84549,
+ "matched_keywords": [
+ {
+ "keyword": "Social Mobility",
+ "score": 0.9138196
+ },
+ {
+ "keyword": "Social Class",
+ "score": 0.59172565
+ }
+ ]
+ },
+ {
+ "query": "social mobility",
+ "field": "Social Sciences",
+ "rank": 2,
+ "topic_name": "Urban, Neighborhood, and Segregation Studies",
+ "total_score": 36.851753,
+ "lexical_score": 20.7274692,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.852962,
+ "matched_keywords": [
+ {
+ "keyword": "Social Mobility",
+ "score": 0.91411847
+ },
+ {
+ "keyword": "Family Migration",
+ "score": 0.58740234
+ }
+ ]
+ },
+ {
+ "query": "social mobility",
+ "field": "Social Sciences",
+ "rank": 3,
+ "topic_name": "Human Mobility and Location-Based Analysis",
+ "total_score": 34.886086,
+ "lexical_score": 38.2259111,
+ "title_vector_score": 16.647415,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Human Mobility",
+ "score": 0.7341156
+ },
+ {
+ "keyword": "Social Sensing",
+ "score": 0.5859273
+ }
+ ]
+ },
+ {
+ "query": "qualitative research methods",
+ "field": "Social Sciences",
+ "rank": 1,
+ "topic_name": "Qualitative Research Methods and Ethics",
+ "total_score": 60.276505,
+ "lexical_score": 64.264787,
+ "title_vector_score": 22.268562,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Qualitative Research",
+ "score": 0.7352155
+ }
+ ]
+ },
+ {
+ "query": "qualitative research methods",
+ "field": "Social Sciences",
+ "rank": 2,
+ "topic_name": "Qualitative Research Methods and Applications",
+ "total_score": 59.842392,
+ "lexical_score": 60.7065409,
+ "title_vector_score": 21.83445,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Qualitative Research",
+ "score": 0.7354571
+ },
+ {
+ "keyword": "Methodological Issues",
+ "score": 0.55423355
+ }
+ ]
+ },
+ {
+ "query": "qualitative research methods",
+ "field": "Social Sciences",
+ "rank": 3,
+ "topic_name": "Qualitative research in health",
+ "total_score": 49.615635,
+ "lexical_score": 50.5319482,
+ "title_vector_score": 20.758324,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Qualitative Research",
+ "score": 0.73516464
+ }
+ ]
+ },
+ {
+ "query": "demographic shifts",
+ "field": "Social Sciences",
+ "rank": 1,
+ "topic_name": "demographic modeling and climate adaptation",
+ "total_score": 37.682487,
+ "lexical_score": 19.825434,
+ "title_vector_score": 17.857056,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Population Dynamics",
+ "score": 0.64069366
+ }
+ ]
+ },
+ {
+ "query": "demographic shifts",
+ "field": "Social Sciences",
+ "rank": 2,
+ "topic_name": "Demographic Trends and Gender Preferences",
+ "total_score": 36.469604,
+ "lexical_score": 19.825434,
+ "title_vector_score": 16.644173,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Fertility Decline",
+ "score": 0.54832715
+ },
+ {
+ "keyword": "Socioeconomic Factors",
+ "score": 0.5027606
+ }
+ ]
+ },
+ {
+ "query": "demographic shifts",
+ "field": "Social Sciences",
+ "rank": 3,
+ "topic_name": "Social Issues in Poland",
+ "total_score": 32.564095,
+ "lexical_score": 16.9154966,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 20.66269,
+ "matched_keywords": [
+ {
+ "keyword": "Demographic Changes",
+ "score": 0.82650757
+ },
+ {
+ "keyword": "Generational Diversity",
+ "score": 0.5315679
+ }
+ ]
+ },
+ {
+ "query": "cultural anthropology",
+ "field": "Social Sciences",
+ "rank": 1,
+ "topic_name": "Anthropology: Ethics, History, Culture",
+ "total_score": 42.367966,
+ "lexical_score": 53.812639000000004,
+ "title_vector_score": 19.863777,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Anthropology",
+ "score": 0.7230657
+ },
+ {
+ "keyword": "Applied Anthropology",
+ "score": 0.6493149
+ }
+ ]
+ },
+ {
+ "query": "cultural anthropology",
+ "field": "Social Sciences",
+ "rank": 2,
+ "topic_name": "Humanities and Social Sciences",
+ "total_score": 41.66201,
+ "lexical_score": 29.5569201,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 21.265411,
+ "matched_keywords": [
+ {
+ "keyword": "Cultural Anthropology",
+ "score": 0.85061646
+ },
+ {
+ "keyword": "Philosophical Anthropology",
+ "score": 0.70284146
+ }
+ ]
+ },
+ {
+ "query": "cultural anthropology",
+ "field": "Social Sciences",
+ "rank": 3,
+ "topic_name": "Anthropological Studies and Insights",
+ "total_score": 40.847584,
+ "lexical_score": 27.369926200000002,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 21.265411,
+ "matched_keywords": [
+ {
+ "keyword": "Cultural Anthropology",
+ "score": 0.85061646
+ },
+ {
+ "keyword": "Cultural Critique",
+ "score": 0.597702
+ }
+ ]
+ },
+ {
+ "query": "criminal justice reform",
+ "field": "Social Sciences",
+ "rank": 1,
+ "topic_name": "Criminal Justice and Corrections Analysis",
+ "total_score": 74.25893,
+ "lexical_score": 62.70728559999999,
+ "title_vector_score": 17.839699,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 19.168282,
+ "matched_keywords": [
+ {
+ "keyword": "Criminal Justice",
+ "score": 0.76673126
+ },
+ {
+ "keyword": "Mass Incarceration",
+ "score": 0.53552884
+ }
+ ]
+ },
+ {
+ "query": "criminal justice reform",
+ "field": "Social Sciences",
+ "rank": 2,
+ "topic_name": "Criminal Justice and Penology",
+ "total_score": 59.67713,
+ "lexical_score": 74.483061,
+ "title_vector_score": 18.876534,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Criminal Justice",
+ "score": 0.7662735
+ },
+ {
+ "keyword": "Restorative Justice",
+ "score": 0.61898166
+ }
+ ]
+ },
+ {
+ "query": "criminal justice reform",
+ "field": "Social Sciences",
+ "rank": 3,
+ "topic_name": "Criminal Law and Policy",
+ "total_score": 39.769745,
+ "lexical_score": 47.112014,
+ "title_vector_score": 18.685608,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Legal Reforms",
+ "score": 0.7069359
+ },
+ {
+ "keyword": "Criminal Law",
+ "score": 0.62142944
+ }
+ ]
+ },
+ {
+ "query": "public policy analysis",
+ "field": "Social Sciences",
+ "rank": 1,
+ "topic_name": "Education and Public Policy",
+ "total_score": 51.22551,
+ "lexical_score": 54.9361837,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 20.175045,
+ "matched_keywords": [
+ {
+ "keyword": "Policy Analysis",
+ "score": 0.80700177
+ },
+ {
+ "keyword": "Public Policy",
+ "score": 0.7178777
+ }
+ ]
+ },
+ {
+ "query": "public policy analysis",
+ "field": "Social Sciences",
+ "rank": 2,
+ "topic_name": "Public Policy and Administration Research",
+ "total_score": 48.55007,
+ "lexical_score": 51.187937000000005,
+ "title_vector_score": 20.200996,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Policy Implementation",
+ "score": 0.61235046
+ },
+ {
+ "keyword": "Public Management Reform",
+ "score": 0.57831067
+ }
+ ]
+ },
+ {
+ "query": "public policy analysis",
+ "field": "Social Sciences",
+ "rank": 3,
+ "topic_name": "Public Administration and Political Analysis",
+ "total_score": 45.335236,
+ "lexical_score": 43.9123865,
+ "title_vector_score": 21.259003,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Public Administration",
+ "score": 0.6200053
+ },
+ {
+ "keyword": "Policy Change",
+ "score": 0.6005122
+ }
+ ]
+ },
+ {
+ "query": "indigenous languages",
+ "field": "Social Sciences",
+ "rank": 1,
+ "topic_name": "Minority Rights and Languages",
+ "total_score": 43.191505,
+ "lexical_score": 25.166224,
+ "title_vector_score": 18.025284,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Ethnic Minorities",
+ "score": 0.526062
+ }
+ ]
+ },
+ {
+ "query": "indigenous languages",
+ "field": "Social Sciences",
+ "rank": 2,
+ "topic_name": "Australian Indigenous Culture and History",
+ "total_score": 40.75158,
+ "lexical_score": 55.386841000000004,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 18.473053,
+ "matched_keywords": [
+ {
+ "keyword": "Australian Indigenous Languages",
+ "score": 0.7389221
+ },
+ {
+ "keyword": "Language Contact",
+ "score": 0.5522626
+ }
+ ]
+ },
+ {
+ "query": "indigenous languages",
+ "field": "Social Sciences",
+ "rank": 3,
+ "topic_name": "Indigenous Cultures and History",
+ "total_score": 37.505676,
+ "lexical_score": 35.2041715,
+ "title_vector_score": 19.000893,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Indigenous Peoples",
+ "score": 0.6812439
+ }
+ ]
+ },
+ {
+ "query": "voter behavior",
+ "field": "Social Sciences",
+ "rank": 1,
+ "topic_name": "Electoral Systems and Political Participation",
+ "total_score": 44.849373,
+ "lexical_score": 34.7259653,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.077465,
+ "matched_keywords": [
+ {
+ "keyword": "Voter Behavior",
+ "score": 0.8830986
+ },
+ {
+ "keyword": "Electoral Systems",
+ "score": 0.6530533
+ }
+ ]
+ },
+ {
+ "query": "voter behavior",
+ "field": "Social Sciences",
+ "rank": 2,
+ "topic_name": "Gambling Behavior and Treatments",
+ "total_score": 30.36472,
+ "lexical_score": 14.586864,
+ "title_vector_score": 15.777855,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "voter behavior",
+ "field": "Social Sciences",
+ "rank": 3,
+ "topic_name": "Health, Technology, Consumer Behavior",
+ "total_score": 30.360332,
+ "lexical_score": 23.9460433,
+ "title_vector_score": 15.773469,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Consumer Behavior",
+ "score": 0.6396192
+ }
+ ]
+ },
+ {
+ "query": "globalization effects",
+ "field": "Social Sciences",
+ "rank": 1,
+ "topic_name": "Globalization and Economic Impact",
+ "total_score": 44.06948,
+ "lexical_score": 31.0537625,
+ "title_vector_score": 22.985344,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Globalization",
+ "score": 0.73335266
+ },
+ {
+ "keyword": "Ethical Implications",
+ "score": 0.5135053
+ }
+ ]
+ },
+ {
+ "query": "globalization effects",
+ "field": "Social Sciences",
+ "rank": 2,
+ "topic_name": "Globalization and Cultural Identity",
+ "total_score": 40.001106,
+ "lexical_score": 32.7178386,
+ "title_vector_score": 18.91697,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Globalization",
+ "score": 0.7324117
+ }
+ ]
+ },
+ {
+ "query": "globalization effects",
+ "field": "Social Sciences",
+ "rank": 3,
+ "topic_name": "Economic, Educational, Environmental and Organizational Development",
+ "total_score": 35.777332,
+ "lexical_score": 18.6399528,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.98711,
+ "matched_keywords": [
+ {
+ "keyword": "Globalization Effects",
+ "score": 0.91948444
+ }
+ ]
+ },
+ {
+ "query": "community development",
+ "field": "Social Sciences",
+ "rank": 1,
+ "topic_name": "Community Health and Development",
+ "total_score": 54.63263,
+ "lexical_score": 46.7165186,
+ "title_vector_score": 22.415428,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Community Empowerment",
+ "score": 0.65351105
+ },
+ {
+ "keyword": "Community Capacity Building",
+ "score": 0.63064194
+ }
+ ]
+ },
+ {
+ "query": "community development",
+ "field": "Social Sciences",
+ "rank": 2,
+ "topic_name": "Community and Sustainable Development",
+ "total_score": 54.02056,
+ "lexical_score": 51.456012300000005,
+ "title_vector_score": 21.80336,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Community Development",
+ "score": 0.90062076
+ },
+ {
+ "keyword": "Rural Development",
+ "score": 0.70774335
+ }
+ ]
+ },
+ {
+ "query": "community development",
+ "field": "Social Sciences",
+ "rank": 3,
+ "topic_name": "Community Development and Social Impact",
+ "total_score": 50.66243,
+ "lexical_score": 35.5834801,
+ "title_vector_score": 21.24813,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Sustainable Development",
+ "score": 0.63755924
+ }
+ ]
+ },
+ {
+ "query": "media studies",
+ "field": "Social Sciences",
+ "rank": 1,
+ "topic_name": "Media Studies and Communication",
+ "total_score": 46.26006,
+ "lexical_score": 35.9725402,
+ "title_vector_score": 24.44809,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Media Framing",
+ "score": 0.5805359
+ },
+ {
+ "keyword": "Mediatization",
+ "score": 0.5549965
+ }
+ ]
+ },
+ {
+ "query": "media studies",
+ "field": "Social Sciences",
+ "rank": 2,
+ "topic_name": "Media and Communication Studies",
+ "total_score": 46.179188,
+ "lexical_score": 37.5507477,
+ "title_vector_score": 24.367218,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Mediatization",
+ "score": 0.5575841
+ },
+ {
+ "keyword": "Journalism",
+ "score": 0.5544052
+ }
+ ]
+ },
+ {
+ "query": "media studies",
+ "field": "Social Sciences",
+ "rank": 3,
+ "topic_name": "Journalism and Media Studies",
+ "total_score": 45.292843,
+ "lexical_score": 41.9507898,
+ "title_vector_score": 23.480873,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Media",
+ "score": 0.6282132
+ },
+ {
+ "keyword": "Media Industry",
+ "score": 0.6272786
+ }
+ ]
+ },
+ {
+ "query": "social movements",
+ "field": "Social Sciences",
+ "rank": 1,
+ "topic_name": "Communism, Protests, Social Movements",
+ "total_score": 54.968624,
+ "lexical_score": 58.1458655,
+ "title_vector_score": 21.509628,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "social movements",
+ "score": 0.99865216
+ },
+ {
+ "keyword": "protest",
+ "score": 0.58487195
+ }
+ ]
+ },
+ {
+ "query": "social movements",
+ "field": "Social Sciences",
+ "rank": 2,
+ "topic_name": "Social Movements and Cultural Identity",
+ "total_score": 50.442924,
+ "lexical_score": 37.2375775,
+ "title_vector_score": 19.894867,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Social Change",
+ "score": 0.6471532
+ },
+ {
+ "keyword": "Politics",
+ "score": 0.5036252
+ }
+ ]
+ },
+ {
+ "query": "social movements",
+ "field": "Social Sciences",
+ "rank": 3,
+ "topic_name": "Labor Movements and Unions",
+ "total_score": 39.87226,
+ "lexical_score": 21.714607,
+ "title_vector_score": 18.157654,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Labor Movement",
+ "score": 0.6247991
+ }
+ ]
+ },
+ {
+ "query": "migration patterns",
+ "field": "Social Sciences",
+ "rank": 1,
+ "topic_name": "Galician and Iberian cultural studies",
+ "total_score": 41.119797,
+ "lexical_score": 26.5745383,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.823238,
+ "matched_keywords": [
+ {
+ "keyword": "Migration Patterns",
+ "score": 0.91292953
+ }
+ ]
+ },
+ {
+ "query": "migration patterns",
+ "field": "Social Sciences",
+ "rank": 2,
+ "topic_name": "Avian ecology and behavior",
+ "total_score": 41.108353,
+ "lexical_score": 26.5745383,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.811794,
+ "matched_keywords": [
+ {
+ "keyword": "Migration Patterns",
+ "score": 0.9124718
+ },
+ {
+ "keyword": "Phenological Changes",
+ "score": 0.5422618
+ }
+ ]
+ },
+ {
+ "query": "migration patterns",
+ "field": "Social Sciences",
+ "rank": 3,
+ "topic_name": "Venezuelan Migration and Society",
+ "total_score": 36.42823,
+ "lexical_score": 30.765685500000004,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 19.627316,
+ "matched_keywords": [
+ {
+ "keyword": "migration",
+ "score": 0.78509265
+ },
+ {
+ "keyword": "border countries",
+ "score": 0.5829837
+ }
+ ]
+ },
+ {
+ "query": "welfare systems",
+ "field": "Social Sciences",
+ "rank": 1,
+ "topic_name": "European Law and Migration",
+ "total_score": 39.88918,
+ "lexical_score": 23.167299,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.96503,
+ "matched_keywords": [
+ {
+ "keyword": "welfare systems",
+ "score": 0.99860126
+ },
+ {
+ "keyword": "social security",
+ "score": 0.6289253
+ }
+ ]
+ },
+ {
+ "query": "welfare systems",
+ "field": "Social Sciences",
+ "rank": 2,
+ "topic_name": "Child Welfare and Adoption",
+ "total_score": 38.902527,
+ "lexical_score": 35.554553,
+ "title_vector_score": 18.343239,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Child Welfare",
+ "score": 0.653155
+ },
+ {
+ "keyword": "Foster Care",
+ "score": 0.5044454
+ }
+ ]
+ },
+ {
+ "query": "welfare systems",
+ "field": "Social Sciences",
+ "rank": 3,
+ "topic_name": "Social Policies and Family",
+ "total_score": 37.306995,
+ "lexical_score": 20.7647621,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.97805,
+ "matched_keywords": [
+ {
+ "keyword": "Welfare Systems",
+ "score": 0.91912204
+ },
+ {
+ "keyword": "Family Support Policies",
+ "score": 0.53392667
+ }
+ ]
+ },
+ {
+ "query": "family dynamics",
+ "field": "Social Sciences",
+ "rank": 1,
+ "topic_name": "Family Dynamics and Relationships",
+ "total_score": 53.3916,
+ "lexical_score": 47.5795492,
+ "title_vector_score": 23.170357,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Family Structure",
+ "score": 0.7240448
+ },
+ {
+ "keyword": "Parenting",
+ "score": 0.60834503
+ }
+ ]
+ },
+ {
+ "query": "family dynamics",
+ "field": "Social Sciences",
+ "rank": 2,
+ "topic_name": "Marriage and Family Dynamics",
+ "total_score": 52.525665,
+ "lexical_score": 51.829483599999996,
+ "title_vector_score": 22.30442,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Family Dynamics",
+ "score": 0.85343295
+ },
+ {
+ "keyword": "Gender Relations",
+ "score": 0.549516
+ }
+ ]
+ },
+ {
+ "query": "family dynamics",
+ "field": "Social Sciences",
+ "rank": 3,
+ "topic_name": "Counseling, Therapy, and Family Dynamics",
+ "total_score": 47.541218,
+ "lexical_score": 39.115118,
+ "title_vector_score": 19.949226,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Family Therapy",
+ "score": 0.6682803
+ },
+ {
+ "keyword": "Mental Health",
+ "score": 0.53797024
+ }
+ ]
+ },
+ {
+ "query": "cardiology",
+ "field": "Medicine",
+ "rank": 1,
+ "topic_name": "Cardiac electrophysiology and arrhythmias",
+ "total_score": 38.426125,
+ "lexical_score": 0.0,
+ "title_vector_score": 19.71672,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 18.709404,
+ "matched_keywords": [
+ {
+ "keyword": "Cardiac Electrophysiology",
+ "score": 0.7483762
+ },
+ {
+ "keyword": "Cardiac Channelopathies",
+ "score": 0.598376
+ }
+ ]
+ },
+ {
+ "query": "cardiology",
+ "field": "Medicine",
+ "rank": 2,
+ "topic_name": "Cardiac Imaging and Diagnostics",
+ "total_score": 20.083313,
+ "lexical_score": 0.0,
+ "title_vector_score": 20.083313,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Cardiac Imaging",
+ "score": 0.73748523
+ },
+ {
+ "keyword": "Myocardial Perfusion",
+ "score": 0.6342214
+ }
+ ]
+ },
+ {
+ "query": "cardiology",
+ "field": "Medicine",
+ "rank": 3,
+ "topic_name": "Cardiovascular and exercise physiology",
+ "total_score": 19.307785,
+ "lexical_score": 0.0,
+ "title_vector_score": 19.307785,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Heart Failure",
+ "score": 0.61473465
+ },
+ {
+ "keyword": "Cardiorespiratory Fitness",
+ "score": 0.597524
+ }
+ ]
+ },
+ {
+ "query": "diabetes management",
+ "field": "Medicine",
+ "rank": 1,
+ "topic_name": "Diabetes Treatment and Management",
+ "total_score": 61.971302,
+ "lexical_score": 46.1218352,
+ "title_vector_score": 24.701195,
+ "description_vector_score": 8.013096,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Glycemic Control",
+ "score": 0.7272301
+ },
+ {
+ "keyword": "Glucose Control",
+ "score": 0.7230339
+ }
+ ]
+ },
+ {
+ "query": "diabetes management",
+ "field": "Medicine",
+ "rank": 2,
+ "topic_name": "Diabetes Management and Research",
+ "total_score": 59.8592,
+ "lexical_score": 51.3853787,
+ "title_vector_score": 22.884636,
+ "description_vector_score": 7.717552,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Glycemic Control",
+ "score": 0.72730637
+ },
+ {
+ "keyword": "Diabetes",
+ "score": 0.72358066
+ }
+ ]
+ },
+ {
+ "query": "diabetes management",
+ "field": "Medicine",
+ "rank": 3,
+ "topic_name": "Diabetes Management and Education",
+ "total_score": 51.588898,
+ "lexical_score": 49.6009663,
+ "title_vector_score": 22.331886,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Glycemic Control",
+ "score": 0.7278722
+ },
+ {
+ "keyword": "Diabetes",
+ "score": 0.7237396
+ }
+ ]
+ },
+ {
+ "query": "oncology treatment options",
+ "field": "Medicine",
+ "rank": 1,
+ "topic_name": "Ocular Oncology and Treatments",
+ "total_score": 42.035156,
+ "lexical_score": 24.343631300000002,
+ "title_vector_score": 21.475868,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Intraocular Chemotherapy",
+ "score": 0.5721817
+ },
+ {
+ "keyword": "Radiation Therapy",
+ "score": 0.5656268
+ }
+ ]
+ },
+ {
+ "query": "oncology treatment options",
+ "field": "Medicine",
+ "rank": 2,
+ "topic_name": "Cancer Treatment and Pharmacology",
+ "total_score": 33.16824,
+ "lexical_score": 16.0134154,
+ "title_vector_score": 20.515137,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Metastatic Breast Cancer",
+ "score": 0.5263672
+ },
+ {
+ "keyword": "Neuroprotective Strategies",
+ "score": 0.5048459
+ }
+ ]
+ },
+ {
+ "query": "oncology treatment options",
+ "field": "Medicine",
+ "rank": 3,
+ "topic_name": "Otitis Media and Relapsing Polychondritis",
+ "total_score": 32.693787,
+ "lexical_score": 19.6553105,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 18.15691,
+ "matched_keywords": [
+ {
+ "keyword": "Therapeutic Options",
+ "score": 0.7262764
+ },
+ {
+ "keyword": "Clinical Features",
+ "score": 0.5208995
+ }
+ ]
+ },
+ {
+ "query": "clinical trials",
+ "field": "Medicine",
+ "rank": 1,
+ "topic_name": "Statistical Methods in Clinical Trials",
+ "total_score": 40.658836,
+ "lexical_score": 65.553028,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Phase I Trials",
+ "score": 0.6301015
+ },
+ {
+ "keyword": "Noninferiority Trials",
+ "score": 0.59546405
+ }
+ ]
+ },
+ {
+ "query": "clinical trials",
+ "field": "Medicine",
+ "rank": 2,
+ "topic_name": "Pain Management and Placebo Effect",
+ "total_score": 40.46879,
+ "lexical_score": 26.5372551,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 21.966362,
+ "matched_keywords": [
+ {
+ "keyword": "Clinical Trials",
+ "score": 0.8786545
+ }
+ ]
+ },
+ {
+ "query": "clinical trials",
+ "field": "Medicine",
+ "rank": 3,
+ "topic_name": "Dental materials and restorations",
+ "total_score": 38.96293,
+ "lexical_score": 25.696511200000003,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 21.966362,
+ "matched_keywords": [
+ {
+ "keyword": "Clinical Trials",
+ "score": 0.8786545
+ }
+ ]
+ },
+ {
+ "query": "pediatric care",
+ "field": "Medicine",
+ "rank": 1,
+ "topic_name": "Adolescent and Pediatric Healthcare",
+ "total_score": 42.189354,
+ "lexical_score": 50.575766,
+ "title_vector_score": 21.770363,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Pediatric to Adult Care",
+ "score": 0.75444156
+ },
+ {
+ "keyword": "Health Care",
+ "score": 0.70609665
+ }
+ ]
+ },
+ {
+ "query": "pediatric care",
+ "field": "Medicine",
+ "rank": 2,
+ "topic_name": "Diabetes Management and Research",
+ "total_score": 40.332714,
+ "lexical_score": 22.337632499999998,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.864246,
+ "matched_keywords": [
+ {
+ "keyword": "Pediatric Care",
+ "score": 0.91456985
+ },
+ {
+ "keyword": "Glycemic Control",
+ "score": 0.5786349
+ }
+ ]
+ },
+ {
+ "query": "pediatric care",
+ "field": "Medicine",
+ "rank": 3,
+ "topic_name": "Neonatal skin health care",
+ "total_score": 36.291862,
+ "lexical_score": 29.2057455,
+ "title_vector_score": 19.184189,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Umbilical Cord Care",
+ "score": 0.6604093
+ },
+ {
+ "keyword": "Neonatal Skin",
+ "score": 0.55978394
+ }
+ ]
+ },
+ {
+ "query": "chronic pain relief",
+ "field": "Medicine",
+ "rank": 1,
+ "topic_name": "Acupuncture Treatment Research Studies",
+ "total_score": 44.29817,
+ "lexical_score": 37.140433599999994,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 19.427364,
+ "matched_keywords": [
+ {
+ "keyword": "Pain Relief",
+ "score": 0.77709454
+ },
+ {
+ "keyword": "Clinical Trials",
+ "score": 0.5742734
+ }
+ ]
+ },
+ {
+ "query": "chronic pain relief",
+ "field": "Medicine",
+ "rank": 2,
+ "topic_name": "Healthcare and Venom Research",
+ "total_score": 44.220123,
+ "lexical_score": 35.866171099999995,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 19.34932,
+ "matched_keywords": [
+ {
+ "keyword": "Pain Relief",
+ "score": 0.7739728
+ },
+ {
+ "keyword": "Anti-inflammatory",
+ "score": 0.64223224
+ }
+ ]
+ },
+ {
+ "query": "chronic pain relief",
+ "field": "Medicine",
+ "rank": 3,
+ "topic_name": "Pain Management and Treatment",
+ "total_score": 43.451927,
+ "lexical_score": 55.479079999999996,
+ "title_vector_score": 20.536118,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Chronic Back Pain",
+ "score": 0.73602295
+ },
+ {
+ "keyword": "Neuropathic Pain",
+ "score": 0.62279636
+ }
+ ]
+ },
+ {
+ "query": "cardiovascular disease prevention",
+ "field": "Medicine",
+ "rank": 1,
+ "topic_name": "Cardiovascular Health and Disease Prevention",
+ "total_score": 71.0996,
+ "lexical_score": 59.5604657,
+ "title_vector_score": 24.42234,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Cardiovascular Events",
+ "score": 0.66379803
+ },
+ {
+ "keyword": "Central Blood Pressure",
+ "score": 0.6145566
+ }
+ ]
+ },
+ {
+ "query": "cardiovascular disease prevention",
+ "field": "Medicine",
+ "rank": 2,
+ "topic_name": "Health Promotion and Cardiovascular Prevention",
+ "total_score": 56.243896,
+ "lexical_score": 68.6158461,
+ "title_vector_score": 22.632103,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Chronic Disease Prevention",
+ "score": 0.83287174
+ },
+ {
+ "keyword": "Cardiovascular Risk Assessment",
+ "score": 0.6862602
+ }
+ ]
+ },
+ {
+ "query": "cardiovascular disease prevention",
+ "field": "Medicine",
+ "rank": 3,
+ "topic_name": "Lipoproteins and Cardiovascular Health",
+ "total_score": 47.297485,
+ "lexical_score": 50.7042205,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.5214,
+ "matched_keywords": [
+ {
+ "keyword": "Cardiovascular Disease Prevention",
+ "score": 0.900856
+ },
+ {
+ "keyword": "Atherosclerotic Cardiovascular Risk",
+ "score": 0.67003506
+ }
+ ]
+ },
+ {
+ "query": "surgical procedures",
+ "field": "Medicine",
+ "rank": 1,
+ "topic_name": "Vascular Procedures and Complications",
+ "total_score": 42.00805,
+ "lexical_score": 27.225605,
+ "title_vector_score": 19.50386,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Vascular Complications",
+ "score": 0.6093877
+ },
+ {
+ "keyword": "Vascular Trauma",
+ "score": 0.5505397
+ }
+ ]
+ },
+ {
+ "query": "surgical procedures",
+ "field": "Medicine",
+ "rank": 2,
+ "topic_name": "Surgical Simulation and Training",
+ "total_score": 39.17736,
+ "lexical_score": 34.044001,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 19.4609,
+ "matched_keywords": [
+ {
+ "keyword": "Surgical Skills",
+ "score": 0.778436
+ },
+ {
+ "keyword": "Laparoscopic Surgery",
+ "score": 0.7309812
+ }
+ ]
+ },
+ {
+ "query": "surgical procedures",
+ "field": "Medicine",
+ "rank": 3,
+ "topic_name": "History of Medical Practice",
+ "total_score": 33.669994,
+ "lexical_score": 16.7341407,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 21.11314,
+ "matched_keywords": [
+ {
+ "keyword": "Surgical Techniques",
+ "score": 0.84452564
+ },
+ {
+ "keyword": "Surgical Innovations",
+ "score": 0.7293472
+ }
+ ]
+ },
+ {
+ "query": "infectious disease outbreak",
+ "field": "Medicine",
+ "rank": 1,
+ "topic_name": "Vector-borne infectious diseases",
+ "total_score": 38.516106,
+ "lexical_score": 28.9040374,
+ "title_vector_score": 19.149094,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Pathogen Transmission",
+ "score": 0.57166034
+ },
+ {
+ "keyword": "Tick-Borne Diseases",
+ "score": 0.5690854
+ }
+ ]
+ },
+ {
+ "query": "infectious disease outbreak",
+ "field": "Medicine",
+ "rank": 2,
+ "topic_name": "Medical Device Sterilization and Disinfection",
+ "total_score": 37.01125,
+ "lexical_score": 18.728615,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 18.282635,
+ "matched_keywords": [
+ {
+ "keyword": "Outbreak",
+ "score": 0.7313054
+ },
+ {
+ "keyword": "Infection",
+ "score": 0.58874387
+ }
+ ]
+ },
+ {
+ "query": "infectious disease outbreak",
+ "field": "Medicine",
+ "rank": 3,
+ "topic_name": "Viral Infections and Outbreaks Research",
+ "total_score": 35.871185,
+ "lexical_score": 16.183264,
+ "title_vector_score": 19.68792,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Outbreak",
+ "score": 0.73126096
+ },
+ {
+ "keyword": "Ebola Virus",
+ "score": 0.5960553
+ }
+ ]
+ },
+ {
+ "query": "medical imaging techniques",
+ "field": "Medicine",
+ "rank": 1,
+ "topic_name": "Medical Imaging Techniques and Applications",
+ "total_score": 60.38707,
+ "lexical_score": 53.1538113,
+ "title_vector_score": 21.666794,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "imaging",
+ "score": 0.7282664
+ },
+ {
+ "keyword": "cancer",
+ "score": 0.5575714
+ }
+ ]
+ },
+ {
+ "query": "medical imaging techniques",
+ "field": "Medicine",
+ "rank": 2,
+ "topic_name": "Medical Imaging and Analysis",
+ "total_score": 51.823654,
+ "lexical_score": 48.406655799999996,
+ "title_vector_score": 20.430832,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Medical Image Analysis",
+ "score": 0.70832825
+ },
+ {
+ "keyword": "CT and MRI",
+ "score": 0.6699588
+ }
+ ]
+ },
+ {
+ "query": "medical imaging techniques",
+ "field": "Medicine",
+ "rank": 3,
+ "topic_name": "Medical Image Segmentation Techniques",
+ "total_score": 46.91588,
+ "lexical_score": 39.6643448,
+ "title_vector_score": 21.164017,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Medical Image Analysis",
+ "score": 0.712588
+ },
+ {
+ "keyword": "MRI Segmentation",
+ "score": 0.5797984
+ }
+ ]
+ },
+ {
+ "query": "hypertension guidelines",
+ "field": "Medicine",
+ "rank": 1,
+ "topic_name": "Blood Pressure and Hypertension Studies",
+ "total_score": 47.59082,
+ "lexical_score": 51.634692900000005,
+ "title_vector_score": 19.875603,
+ "description_vector_score": 7.889786,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Clinical Guidelines",
+ "score": 0.6851158
+ },
+ {
+ "keyword": "Antihypertensive Drugs",
+ "score": 0.6684265
+ }
+ ]
+ },
+ {
+ "query": "hypertension guidelines",
+ "field": "Medicine",
+ "rank": 2,
+ "topic_name": "Hormonal Regulation and Hypertension",
+ "total_score": 39.67447,
+ "lexical_score": 37.4912986,
+ "title_vector_score": 17.959862,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Hypertension",
+ "score": 0.661115
+ },
+ {
+ "keyword": "Cardiovascular Events",
+ "score": 0.5589447
+ }
+ ]
+ },
+ {
+ "query": "hypertension guidelines",
+ "field": "Medicine",
+ "rank": 3,
+ "topic_name": "Hibiscus Plant Research Studies",
+ "total_score": 30.3041,
+ "lexical_score": 17.795191000000003,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 18.01942,
+ "matched_keywords": [
+ {
+ "keyword": "hypertension",
+ "score": 0.72077686
+ },
+ {
+ "keyword": "hepatoprotective",
+ "score": 0.515845
+ }
+ ]
+ },
+ {
+ "query": "patient outcomes",
+ "field": "Medicine",
+ "rank": 1,
+ "topic_name": "Patient Satisfaction in Healthcare",
+ "total_score": 39.096535,
+ "lexical_score": 48.593436700000005,
+ "title_vector_score": 19.380074,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Clinical Outcomes",
+ "score": 0.7830391
+ },
+ {
+ "keyword": "Patient Experience",
+ "score": 0.724706
+ }
+ ]
+ },
+ {
+ "query": "patient outcomes",
+ "field": "Medicine",
+ "rank": 2,
+ "topic_name": "Nursing education and management",
+ "total_score": 39.081543,
+ "lexical_score": 24.495275600000003,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.24086,
+ "matched_keywords": [
+ {
+ "keyword": "Patient Outcomes",
+ "score": 0.88963443
+ },
+ {
+ "keyword": "Clinical Practice",
+ "score": 0.5980517
+ }
+ ]
+ },
+ {
+ "query": "patient outcomes",
+ "field": "Medicine",
+ "rank": 3,
+ "topic_name": "Clinical practice guidelines implementation",
+ "total_score": 38.070904,
+ "lexical_score": 23.2912125,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.237682,
+ "matched_keywords": [
+ {
+ "keyword": "Patient Outcomes",
+ "score": 0.8895073
+ },
+ {
+ "keyword": "Healthcare Evaluation",
+ "score": 0.6045621
+ }
+ ]
+ },
+ {
+ "query": "immunotherapy for cancer",
+ "field": "Medicine",
+ "rank": 1,
+ "topic_name": "Immunotherapy and Immune Responses",
+ "total_score": 66.49202,
+ "lexical_score": 47.95501,
+ "title_vector_score": 21.130447,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 21.800262,
+ "matched_keywords": [
+ {
+ "keyword": "Cancer Immunotherapy",
+ "score": 0.8720105
+ },
+ {
+ "keyword": "T Cell Immunity",
+ "score": 0.6482404
+ }
+ ]
+ },
+ {
+ "query": "immunotherapy for cancer",
+ "field": "Medicine",
+ "rank": 2,
+ "topic_name": "Cancer Immunotherapy and Biomarkers",
+ "total_score": 58.97299,
+ "lexical_score": 72.5294228,
+ "title_vector_score": 22.062378,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Biomarkers for Immunotherapy",
+ "score": 0.7364044
+ },
+ {
+ "keyword": "Cancer Immunoediting",
+ "score": 0.7209422
+ }
+ ]
+ },
+ {
+ "query": "immunotherapy for cancer",
+ "field": "Medicine",
+ "rank": 3,
+ "topic_name": "Phagocytosis and Immune Regulation",
+ "total_score": 41.446007,
+ "lexical_score": 27.741474099999998,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.327892,
+ "matched_keywords": [
+ {
+ "keyword": "cancer immunotherapy",
+ "score": 0.93311566
+ },
+ {
+ "keyword": "immune regulation",
+ "score": 0.66559726
+ }
+ ]
+ },
+ {
+ "query": "epidemiology study",
+ "field": "Medicine",
+ "rank": 1,
+ "topic_name": "Historical and modern epidemiology studies",
+ "total_score": 36.96768,
+ "lexical_score": 39.2992713,
+ "title_vector_score": 20.68985,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Epidemiology",
+ "score": 0.8037338
+ },
+ {
+ "keyword": "Health Education",
+ "score": 0.5705922
+ }
+ ]
+ },
+ {
+ "query": "epidemiology study",
+ "field": "Medicine",
+ "rank": 2,
+ "topic_name": "Disability Rights and Representation",
+ "total_score": 32.08636,
+ "lexical_score": 13.1399778,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.28918,
+ "matched_keywords": [
+ {
+ "keyword": "Epidemiological Study",
+ "score": 0.89156723
+ }
+ ]
+ },
+ {
+ "query": "epidemiology study",
+ "field": "Medicine",
+ "rank": 3,
+ "topic_name": "Health and Medical Studies",
+ "total_score": 31.499443,
+ "lexical_score": 9.186736,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.312706,
+ "matched_keywords": [
+ {
+ "keyword": "Epidemiological Study",
+ "score": 0.8925082
+ },
+ {
+ "keyword": "Health Surveys",
+ "score": 0.6240489
+ }
+ ]
+ },
+ {
+ "query": "stroke rehabilitation",
+ "field": "Medicine",
+ "rank": 1,
+ "topic_name": "Stroke Rehabilitation and Recovery",
+ "total_score": 76.84856,
+ "lexical_score": 83.081315,
+ "title_vector_score": 24.99073,
+ "description_vector_score": 8.580055,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Rehabilitation Techniques",
+ "score": 0.7184054
+ },
+ {
+ "keyword": "Motor Recovery",
+ "score": 0.7009023
+ }
+ ]
+ },
+ {
+ "query": "stroke rehabilitation",
+ "field": "Medicine",
+ "rank": 2,
+ "topic_name": "Nerve Injury and Rehabilitation",
+ "total_score": 39.657486,
+ "lexical_score": 19.71646,
+ "title_vector_score": 19.941025,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Peripheral Nerve Surgery",
+ "score": 0.5474561
+ },
+ {
+ "keyword": "Nerve Injury",
+ "score": 0.5326106
+ }
+ ]
+ },
+ {
+ "query": "stroke rehabilitation",
+ "field": "Medicine",
+ "rank": 3,
+ "topic_name": "Orthopedic Surgery and Rehabilitation",
+ "total_score": 38.783348,
+ "lexical_score": 19.71646,
+ "title_vector_score": 19.066887,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Thumb Osteoarthritis",
+ "score": 0.50898486
+ }
+ ]
+ },
+ {
+ "query": "genetic disorders",
+ "field": "Medicine",
+ "rank": 1,
+ "topic_name": "Metabolism and Genetic Disorders",
+ "total_score": 51.795414,
+ "lexical_score": 42.736781699999995,
+ "title_vector_score": 21.7902,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Metabolic Disorders",
+ "score": 0.7001203
+ },
+ {
+ "keyword": "Biochemical Genetics",
+ "score": 0.64259464
+ }
+ ]
+ },
+ {
+ "query": "genetic disorders",
+ "field": "Medicine",
+ "rank": 2,
+ "topic_name": "Cerebrovascular and genetic disorders",
+ "total_score": 50.85967,
+ "lexical_score": 36.5242394,
+ "title_vector_score": 20.854454,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "genetic model",
+ "score": 0.6790187
+ },
+ {
+ "keyword": "cerebrovascular dysfunction",
+ "score": 0.6265602
+ }
+ ]
+ },
+ {
+ "query": "genetic disorders",
+ "field": "Medicine",
+ "rank": 3,
+ "topic_name": "Genetic Neurodegenerative Diseases",
+ "total_score": 40.994743,
+ "lexical_score": 30.860918100000003,
+ "title_vector_score": 21.902351,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "RNA-Mediated Disorders",
+ "score": 0.6047465
+ },
+ {
+ "keyword": "Huntington's Disease",
+ "score": 0.60336685
+ }
+ ]
+ },
+ {
+ "query": "telemedicine adoption",
+ "field": "Medicine",
+ "rank": 1,
+ "topic_name": "Telemedicine and Telehealth Implementation",
+ "total_score": 44.21575,
+ "lexical_score": 47.27097,
+ "title_vector_score": 19.04953,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Telemedicine",
+ "score": 0.710172
+ },
+ {
+ "keyword": "Telehealth",
+ "score": 0.6181424
+ }
+ ]
+ },
+ {
+ "query": "telemedicine adoption",
+ "field": "Medicine",
+ "rank": 2,
+ "topic_name": "Ophthalmology and Visual Health Research",
+ "total_score": 31.90456,
+ "lexical_score": 20.7701144,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 17.771942,
+ "matched_keywords": [
+ {
+ "keyword": "Telemedicine",
+ "score": 0.7108777
+ }
+ ]
+ },
+ {
+ "query": "telemedicine adoption",
+ "field": "Medicine",
+ "rank": 3,
+ "topic_name": "Retinopathy of Prematurity Studies",
+ "total_score": 31.904404,
+ "lexical_score": 14.132617,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 17.771786,
+ "matched_keywords": [
+ {
+ "keyword": "Telemedicine",
+ "score": 0.7108714
+ }
+ ]
+ },
+ {
+ "query": "internal medicine",
+ "field": "Medicine",
+ "rank": 1,
+ "topic_name": "Diverse Scientific Research Studies",
+ "total_score": 28.079065,
+ "lexical_score": 13.4742086,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 18.830841,
+ "matched_keywords": [
+ {
+ "keyword": "herbal medicine",
+ "score": 0.7532336
+ },
+ {
+ "keyword": "treatment",
+ "score": 0.6741803
+ }
+ ]
+ },
+ {
+ "query": "internal medicine",
+ "field": "Medicine",
+ "rank": 2,
+ "topic_name": "Inflammatory Bowel Disease",
+ "total_score": 19.126778,
+ "lexical_score": 0.0,
+ "title_vector_score": 19.126778,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Immunology",
+ "score": 0.6506755
+ },
+ {
+ "keyword": "Inflammatory Bowel Disease",
+ "score": 0.635849
+ }
+ ]
+ },
+ {
+ "query": "internal medicine",
+ "field": "Medicine",
+ "rank": 3,
+ "topic_name": "Medical Case Reports and Studies",
+ "total_score": 18.995743,
+ "lexical_score": 0.0,
+ "title_vector_score": 18.995743,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Endocrinology",
+ "score": 0.65459824
+ },
+ {
+ "keyword": "Cardiovascular Disease",
+ "score": 0.61918515
+ }
+ ]
+ },
+ {
+ "query": "diagnostic accuracy",
+ "field": "Medicine",
+ "rank": 1,
+ "topic_name": "MRI in cancer diagnosis",
+ "total_score": 60.698696,
+ "lexical_score": 28.3294546,
+ "title_vector_score": 18.17978,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.529507,
+ "matched_keywords": [
+ {
+ "keyword": "Diagnostic Accuracy",
+ "score": 0.90118027
+ },
+ {
+ "keyword": "Magnetic Resonance Imaging",
+ "score": 0.563001
+ }
+ ]
+ },
+ {
+ "query": "diagnostic accuracy",
+ "field": "Medicine",
+ "rank": 2,
+ "topic_name": "Meta-analysis and systematic reviews",
+ "total_score": 43.73622,
+ "lexical_score": 30.5697795,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.526646,
+ "matched_keywords": [
+ {
+ "keyword": "Diagnostic Accuracy",
+ "score": 0.9010658
+ },
+ {
+ "keyword": "Quality Assessment",
+ "score": 0.5238304
+ }
+ ]
+ },
+ {
+ "query": "diagnostic accuracy",
+ "field": "Medicine",
+ "rank": 3,
+ "topic_name": "Radiology practices and education",
+ "total_score": 43.33267,
+ "lexical_score": 31.545070000000003,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.546036,
+ "matched_keywords": [
+ {
+ "keyword": "Diagnostic Accuracy",
+ "score": 0.90184146
+ },
+ {
+ "keyword": "Radiology Errors",
+ "score": 0.5759201
+ }
+ ]
+ },
+ {
+ "query": "palliative care",
+ "field": "Medicine",
+ "rank": 1,
+ "topic_name": "Palliative Care and End-of-Life Issues",
+ "total_score": 82.38357,
+ "lexical_score": 69.9007324,
+ "title_vector_score": 20.747261,
+ "description_vector_score": 7.7872653,
+ "keywords_vector_score": 22.22147,
+ "matched_keywords": [
+ {
+ "keyword": "Palliative Care",
+ "score": 0.8888588
+ },
+ {
+ "keyword": "ICU Care",
+ "score": 0.6701177
+ }
+ ]
+ },
+ {
+ "query": "palliative care",
+ "field": "Medicine",
+ "rank": 2,
+ "topic_name": "Palliative and Oncologic Care",
+ "total_score": 64.45904,
+ "lexical_score": 75.1267705,
+ "title_vector_score": 23.790054,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Palliative Care",
+ "score": 0.88675433
+ },
+ {
+ "keyword": "End-of-Life",
+ "score": 0.65509415
+ }
+ ]
+ },
+ {
+ "query": "palliative care",
+ "field": "Medicine",
+ "rank": 3,
+ "topic_name": "Health, Medicine and Society",
+ "total_score": 43.368595,
+ "lexical_score": 32.0646695,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.175056,
+ "matched_keywords": [
+ {
+ "keyword": "Palliative Care",
+ "score": 0.8870023
+ },
+ {
+ "keyword": "End-of-Life Care",
+ "score": 0.7731018
+ }
+ ]
+ },
+ {
+ "query": "civil engineering",
+ "field": "Engineering",
+ "rank": 1,
+ "topic_name": "Civil and Structural Engineering Research",
+ "total_score": 73.75813,
+ "lexical_score": 60.8414627,
+ "title_vector_score": 19.124489,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.674149,
+ "matched_keywords": [
+ {
+ "keyword": "Civil Engineering",
+ "score": 0.9069659
+ },
+ {
+ "keyword": "Bridge Engineering",
+ "score": 0.719073
+ }
+ ]
+ },
+ {
+ "query": "civil engineering",
+ "field": "Engineering",
+ "rank": 2,
+ "topic_name": "Construction Engineering and Safety",
+ "total_score": 58.928856,
+ "lexical_score": 42.2219497,
+ "title_vector_score": 19.346123,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 19.285744,
+ "matched_keywords": [
+ {
+ "keyword": "Civil Engineering Education",
+ "score": 0.7714297
+ },
+ {
+ "keyword": "Structural Engineering",
+ "score": 0.7001584
+ }
+ ]
+ },
+ {
+ "query": "civil engineering",
+ "field": "Engineering",
+ "rank": 3,
+ "topic_name": "Geophysical Methods and Applications",
+ "total_score": 38.6947,
+ "lexical_score": 25.0774436,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.675896,
+ "matched_keywords": [
+ {
+ "keyword": "Civil Engineering",
+ "score": 0.9070358
+ },
+ {
+ "keyword": "Concrete Inspection",
+ "score": 0.54754514
+ }
+ ]
+ },
+ {
+ "query": "structural integrity",
+ "field": "Engineering",
+ "rank": 1,
+ "topic_name": "Structural Integrity and Reliability Analysis",
+ "total_score": 59.30455,
+ "lexical_score": 41.5432852,
+ "title_vector_score": 22.173767,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Steel Structures",
+ "score": 0.552695
+ },
+ {
+ "keyword": "Reliability Assessment",
+ "score": 0.51301575
+ }
+ ]
+ },
+ {
+ "query": "structural integrity",
+ "field": "Engineering",
+ "rank": 2,
+ "topic_name": "Structural mechanics and materials",
+ "total_score": 34.875465,
+ "lexical_score": 17.107674,
+ "title_vector_score": 17.767792,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "structural integrity",
+ "field": "Engineering",
+ "rank": 3,
+ "topic_name": "Structural Analysis and Optimization",
+ "total_score": 33.862663,
+ "lexical_score": 29.9010954,
+ "title_vector_score": 16.75499,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Structural Optimization",
+ "score": 0.6255048
+ },
+ {
+ "keyword": "Mechanical Properties",
+ "score": 0.54395294
+ }
+ ]
+ },
+ {
+ "query": "aerospace propulsion",
+ "field": "Engineering",
+ "rank": 1,
+ "topic_name": "Heat transfer and supercritical fluids",
+ "total_score": 45.285065,
+ "lexical_score": 35.175049,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 21.171314,
+ "matched_keywords": [
+ {
+ "keyword": "Aerospace Propulsion",
+ "score": 0.8468526
+ }
+ ]
+ },
+ {
+ "query": "aerospace propulsion",
+ "field": "Engineering",
+ "rank": 2,
+ "topic_name": "Aerospace and Aviation Technology",
+ "total_score": 38.567787,
+ "lexical_score": 20.55929,
+ "title_vector_score": 18.0085,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Aerodynamic Modeling",
+ "score": 0.5676613
+ },
+ {
+ "keyword": "Unmanned Aerial Vehicles",
+ "score": 0.50911206
+ }
+ ]
+ },
+ {
+ "query": "aerospace propulsion",
+ "field": "Engineering",
+ "rank": 3,
+ "topic_name": "Rocket and propulsion systems research",
+ "total_score": 38.44133,
+ "lexical_score": 37.155389299999996,
+ "title_vector_score": 17.895012,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Hybrid Rocket Propulsion",
+ "score": 0.62306976
+ },
+ {
+ "keyword": "Space Launch Vehicles",
+ "score": 0.55731076
+ }
+ ]
+ },
+ {
+ "query": "mechanical design",
+ "field": "Engineering",
+ "rank": 1,
+ "topic_name": "Mechanical Systems and Engineering",
+ "total_score": 38.545753,
+ "lexical_score": 18.504786,
+ "title_vector_score": 20.04097,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Vibration Mechanochemical Coating",
+ "score": 0.50230914
+ }
+ ]
+ },
+ {
+ "query": "mechanical design",
+ "field": "Engineering",
+ "rank": 2,
+ "topic_name": "Material Selection and Properties",
+ "total_score": 37.89327,
+ "lexical_score": 23.7210678,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 18.839264,
+ "matched_keywords": [
+ {
+ "keyword": "Mechanical Engineering",
+ "score": 0.75357056
+ },
+ {
+ "keyword": "Product Design",
+ "score": 0.62459564
+ }
+ ]
+ },
+ {
+ "query": "mechanical design",
+ "field": "Engineering",
+ "rank": 3,
+ "topic_name": "Engineering Applied Research",
+ "total_score": 33.876583,
+ "lexical_score": 22.7671,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 18.857224,
+ "matched_keywords": [
+ {
+ "keyword": "Mechanical Engineering",
+ "score": 0.754289
+ },
+ {
+ "keyword": "Design Optimization",
+ "score": 0.6190834
+ }
+ ]
+ },
+ {
+ "query": "robotics automation",
+ "field": "Engineering",
+ "rank": 1,
+ "topic_name": "Robotic Process Automation Applications",
+ "total_score": 61.90246,
+ "lexical_score": 44.621878300000006,
+ "title_vector_score": 19.968681,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 19.429588,
+ "matched_keywords": [
+ {
+ "keyword": "Robotic Process Automation",
+ "score": 0.77718353
+ },
+ {
+ "keyword": "Automation",
+ "score": 0.6874809
+ }
+ ]
+ },
+ {
+ "query": "robotics automation",
+ "field": "Engineering",
+ "rank": 2,
+ "topic_name": "Robotics and Automated Systems",
+ "total_score": 40.89434,
+ "lexical_score": 46.8167556,
+ "title_vector_score": 20.784645,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Cloud Robotics",
+ "score": 0.7195752
+ },
+ {
+ "keyword": "Robot Middleware",
+ "score": 0.63852566
+ }
+ ]
+ },
+ {
+ "query": "robotics automation",
+ "field": "Engineering",
+ "rank": 3,
+ "topic_name": "Advanced Scientific and Engineering Studies",
+ "total_score": 39.99545,
+ "lexical_score": 31.575908000000002,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 19.252998,
+ "matched_keywords": [
+ {
+ "keyword": "Robotics and Automation",
+ "score": 0.77011997
+ },
+ {
+ "keyword": "Artificial Intelligence",
+ "score": 0.543883
+ }
+ ]
+ },
+ {
+ "query": "geotechnical analysis",
+ "field": "Engineering",
+ "rank": 1,
+ "topic_name": "Geotechnical Engineering and Analysis",
+ "total_score": 52.97566,
+ "lexical_score": 44.8967418,
+ "title_vector_score": 23.279266,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Finite Element Analysis",
+ "score": 0.63466644
+ },
+ {
+ "keyword": "Reliability Analysis",
+ "score": 0.6159744
+ }
+ ]
+ },
+ {
+ "query": "geotechnical analysis",
+ "field": "Engineering",
+ "rank": 2,
+ "topic_name": "Geotechnical and Geomechanical Engineering",
+ "total_score": 40.4498,
+ "lexical_score": 21.4439001,
+ "title_vector_score": 20.733337,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Geomechanical Assessment",
+ "score": 0.76272583
+ },
+ {
+ "keyword": "Geomechanical Processes",
+ "score": 0.70621747
+ }
+ ]
+ },
+ {
+ "query": "geotechnical analysis",
+ "field": "Engineering",
+ "rank": 3,
+ "topic_name": "Geological and Geochemical Analysis",
+ "total_score": 31.88381,
+ "lexical_score": 12.0563407,
+ "title_vector_score": 21.903877,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Geochronology",
+ "score": 0.5685132
+ },
+ {
+ "keyword": "Tectonics",
+ "score": 0.54259235
+ }
+ ]
+ },
+ {
+ "query": "bridge construction",
+ "field": "Engineering",
+ "rank": 1,
+ "topic_name": "Civil and Structural Engineering Research",
+ "total_score": 40.051952,
+ "lexical_score": 33.468717,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 17.340248,
+ "matched_keywords": [
+ {
+ "keyword": "Bridge Engineering",
+ "score": 0.6936099
+ },
+ {
+ "keyword": "Construction",
+ "score": 0.68342465
+ }
+ ]
+ },
+ {
+ "query": "bridge construction",
+ "field": "Engineering",
+ "rank": 2,
+ "topic_name": "Structural Engineering and Materials Analysis",
+ "total_score": 39.45547,
+ "lexical_score": 32.0695,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 17.649555,
+ "matched_keywords": [
+ {
+ "keyword": "Bridge Design",
+ "score": 0.7059822
+ },
+ {
+ "keyword": "Steel Construction",
+ "score": 0.6090825
+ }
+ ]
+ },
+ {
+ "query": "bridge construction",
+ "field": "Engineering",
+ "rank": 3,
+ "topic_name": "BIM and Construction Integration",
+ "total_score": 36.467407,
+ "lexical_score": 42.341256,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 17.100399,
+ "matched_keywords": [
+ {
+ "keyword": "Construction",
+ "score": 0.6840159
+ },
+ {
+ "keyword": "Lean Construction",
+ "score": 0.5586586
+ }
+ ]
+ },
+ {
+ "query": "renewable energy grid",
+ "field": "Engineering",
+ "rank": 1,
+ "topic_name": "Renewable Energy and Sustainability",
+ "total_score": 57.214966,
+ "lexical_score": 73.22106120000001,
+ "title_vector_score": 20.992737,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Renewable Energy",
+ "score": 0.77630615
+ },
+ {
+ "keyword": "Power Generation",
+ "score": 0.5596759
+ }
+ ]
+ },
+ {
+ "query": "renewable energy grid",
+ "field": "Engineering",
+ "rank": 2,
+ "topic_name": "Hybrid Renewable Energy Systems",
+ "total_score": 56.054153,
+ "lexical_score": 64.7226853,
+ "title_vector_score": 19.831924,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Renewable Energy",
+ "score": 0.776357
+ },
+ {
+ "keyword": "Renewable Resources",
+ "score": 0.68819934
+ }
+ ]
+ },
+ {
+ "query": "renewable energy grid",
+ "field": "Engineering",
+ "rank": 3,
+ "topic_name": "Power Systems and Renewable Energy",
+ "total_score": 52.087807,
+ "lexical_score": 77.5410631,
+ "title_vector_score": 19.016914,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Renewable Energy",
+ "score": 0.776357
+ },
+ {
+ "keyword": "Photovoltaic Generation",
+ "score": 0.62702435
+ }
+ ]
+ },
+ {
+ "query": "fluid mechanics",
+ "field": "Engineering",
+ "rank": 1,
+ "topic_name": "Fluid Dynamics and Turbulent Flows",
+ "total_score": 41.001583,
+ "lexical_score": 34.694522000000006,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.776192,
+ "matched_keywords": [
+ {
+ "keyword": "Fluid Mechanics",
+ "score": 0.91104764
+ },
+ {
+ "keyword": "Vortex Dynamics",
+ "score": 0.5918083
+ }
+ ]
+ },
+ {
+ "query": "fluid mechanics",
+ "field": "Engineering",
+ "rank": 2,
+ "topic_name": "Heat Transfer and Numerical Methods",
+ "total_score": 41.001583,
+ "lexical_score": 28.076290300000004,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.776192,
+ "matched_keywords": [
+ {
+ "keyword": "Fluid Mechanics",
+ "score": 0.91104764
+ },
+ {
+ "keyword": "Numerical Methods",
+ "score": 0.588
+ }
+ ]
+ },
+ {
+ "query": "fluid mechanics",
+ "field": "Engineering",
+ "rank": 3,
+ "topic_name": "Composite Material Mechanics",
+ "total_score": 38.95903,
+ "lexical_score": 19.09239,
+ "title_vector_score": 19.866638,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Micromechanics",
+ "score": 0.655571
+ },
+ {
+ "keyword": "Elastic Properties",
+ "score": 0.5666377
+ }
+ ]
+ },
+ {
+ "query": "electrical circuits",
+ "field": "Engineering",
+ "rank": 1,
+ "topic_name": "Electrical and Electromagnetic Research",
+ "total_score": 37.88114,
+ "lexical_score": 36.3949416,
+ "title_vector_score": 17.321854,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Electrical Engineering",
+ "score": 0.70556897
+ },
+ {
+ "keyword": "Semiconductor Science",
+ "score": 0.57724255
+ }
+ ]
+ },
+ {
+ "query": "electrical circuits",
+ "field": "Engineering",
+ "rank": 2,
+ "topic_name": "Engineering and Technology Innovations",
+ "total_score": 32.097843,
+ "lexical_score": 16.0944566,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 21.606667,
+ "matched_keywords": [
+ {
+ "keyword": "Electric Circuits",
+ "score": 0.8642667
+ },
+ {
+ "keyword": "Electronics",
+ "score": 0.66824216
+ }
+ ]
+ },
+ {
+ "query": "electrical circuits",
+ "field": "Engineering",
+ "rank": 3,
+ "topic_name": "Photonic and Optical Devices",
+ "total_score": 27.672077,
+ "lexical_score": 16.7829275,
+ "title_vector_score": 17.1809,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Integrated Circuits",
+ "score": 0.68625385
+ },
+ {
+ "keyword": "On-chip Interconnects",
+ "score": 0.51036453
+ }
+ ]
+ },
+ {
+ "query": "thermodynamics applications",
+ "field": "Engineering",
+ "rank": 1,
+ "topic_name": "thermodynamics and calorimetric analyses",
+ "total_score": 40.96399,
+ "lexical_score": 41.887134,
+ "title_vector_score": 20.404701,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Thermodynamics",
+ "score": 0.6917407
+ },
+ {
+ "keyword": "Thermal Analysis",
+ "score": 0.5990372
+ }
+ ]
+ },
+ {
+ "query": "thermodynamics applications",
+ "field": "Engineering",
+ "rank": 2,
+ "topic_name": "Metallurgical Processes and Thermodynamics",
+ "total_score": 38.357025,
+ "lexical_score": 20.55929,
+ "title_vector_score": 17.797737,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Thermochemical",
+ "score": 0.5692126
+ },
+ {
+ "keyword": "Heat Recovery",
+ "score": 0.5321655
+ }
+ ]
+ },
+ {
+ "query": "thermodynamics applications",
+ "field": "Engineering",
+ "rank": 3,
+ "topic_name": "Heusler alloys: electronic and magnetic properties",
+ "total_score": 20.958292,
+ "lexical_score": 2.437078,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 18.521214,
+ "matched_keywords": [
+ {
+ "keyword": "Thermodynamic Properties",
+ "score": 0.74084854
+ },
+ {
+ "keyword": "Magnetic Properties",
+ "score": 0.56986743
+ }
+ ]
+ },
+ {
+ "query": "manufacturing optimization",
+ "field": "Engineering",
+ "rank": 1,
+ "topic_name": "Manufacturing Process and Optimization",
+ "total_score": 57.92224,
+ "lexical_score": 54.9258495,
+ "title_vector_score": 22.720032,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Design for Manufacture",
+ "score": 0.6403885
+ },
+ {
+ "keyword": "Product Cost Estimation",
+ "score": 0.6147092
+ }
+ ]
+ },
+ {
+ "query": "manufacturing optimization",
+ "field": "Engineering",
+ "rank": 2,
+ "topic_name": "Diverse Industrial Engineering Technologies",
+ "total_score": 36.714626,
+ "lexical_score": 27.336575500000002,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 18.765831,
+ "matched_keywords": [
+ {
+ "keyword": "Process Optimization",
+ "score": 0.75063324
+ },
+ {
+ "keyword": "Manufacturing Processes",
+ "score": 0.67529297
+ }
+ ]
+ },
+ {
+ "query": "manufacturing optimization",
+ "field": "Engineering",
+ "rank": 3,
+ "topic_name": "solar cell performance optimization",
+ "total_score": 35.130642,
+ "lexical_score": 14.11807,
+ "title_vector_score": 21.012573,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "High Efficiency",
+ "score": 0.5793851
+ },
+ {
+ "keyword": "Energy Conversion Efficiency",
+ "score": 0.5553398
+ }
+ ]
+ },
+ {
+ "query": "control systems engineering",
+ "field": "Engineering",
+ "rank": 1,
+ "topic_name": "Control Systems in Engineering",
+ "total_score": 59.059734,
+ "lexical_score": 56.390883,
+ "title_vector_score": 23.066406,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Control",
+ "score": 0.62027866
+ },
+ {
+ "keyword": "Drive Systems",
+ "score": 0.57752866
+ }
+ ]
+ },
+ {
+ "query": "control systems engineering",
+ "field": "Engineering",
+ "rank": 2,
+ "topic_name": "Aerospace Engineering and Control Systems",
+ "total_score": 54.592022,
+ "lexical_score": 43.204091500000004,
+ "title_vector_score": 21.730118,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Trajectory Tracking Controller",
+ "score": 0.5395279
+ },
+ {
+ "keyword": "Flight Control",
+ "score": 0.52704746
+ }
+ ]
+ },
+ {
+ "query": "control systems engineering",
+ "field": "Engineering",
+ "rank": 3,
+ "topic_name": "Guidance and Control Systems",
+ "total_score": 44.193115,
+ "lexical_score": 36.726040299999994,
+ "title_vector_score": 20.700531,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Control",
+ "score": 0.6207873
+ },
+ {
+ "keyword": "Optimal Control",
+ "score": 0.5196851
+ }
+ ]
+ },
+ {
+ "query": "materials fatigue",
+ "field": "Engineering",
+ "rank": 1,
+ "topic_name": "Mechanical stress and fatigue analysis",
+ "total_score": 55.685127,
+ "lexical_score": 41.650684,
+ "title_vector_score": 18.394356,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 17.465336,
+ "matched_keywords": [
+ {
+ "keyword": "Corrosion Fatigue",
+ "score": 0.69861346
+ },
+ {
+ "keyword": "Fretting Fatigue",
+ "score": 0.66580707
+ }
+ ]
+ },
+ {
+ "query": "materials fatigue",
+ "field": "Engineering",
+ "rank": 2,
+ "topic_name": "Fatigue and fracture mechanics",
+ "total_score": 40.64798,
+ "lexical_score": 47.880446,
+ "title_vector_score": 18.933372,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Multiaxial Fatigue Criterion",
+ "score": 0.6317546
+ },
+ {
+ "keyword": "Fatigue Crack Closure",
+ "score": 0.61624783
+ }
+ ]
+ },
+ {
+ "query": "materials fatigue",
+ "field": "Engineering",
+ "rank": 3,
+ "topic_name": "Mechanical Failure Analysis and Simulation",
+ "total_score": 33.481277,
+ "lexical_score": 20.6522535,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 18.88361,
+ "matched_keywords": [
+ {
+ "keyword": "Metal Fatigue",
+ "score": 0.7553444
+ },
+ {
+ "keyword": "Fatigue Fracture",
+ "score": 0.6477191
+ }
+ ]
+ },
+ {
+ "query": "hvac design",
+ "field": "Engineering",
+ "rank": 1,
+ "topic_name": "Advanced Control Systems Design",
+ "total_score": 30.14156,
+ "lexical_score": 18.1100603,
+ "title_vector_score": 15.00347,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "hvac design",
+ "field": "Engineering",
+ "rank": 2,
+ "topic_name": "Advanced Aircraft Design and Technologies",
+ "total_score": 29.772297,
+ "lexical_score": 24.063251700000002,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 15.9512205,
+ "matched_keywords": [
+ {
+ "keyword": "Aircraft Design",
+ "score": 0.6380488
+ }
+ ]
+ },
+ {
+ "query": "hvac design",
+ "field": "Engineering",
+ "rank": 3,
+ "topic_name": "Diverse Academic Research Analysis",
+ "total_score": 22.707298,
+ "lexical_score": 9.583779400000001,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 15.924199,
+ "matched_keywords": [
+ {
+ "keyword": "Lighting Design",
+ "score": 0.63696796
+ }
+ ]
+ },
+ {
+ "query": "biomedical devices",
+ "field": "Engineering",
+ "rank": 1,
+ "topic_name": "Mechanical Circulatory Support Devices",
+ "total_score": 37.304367,
+ "lexical_score": 25.224155,
+ "title_vector_score": 17.937355,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Ventricular Assist Device",
+ "score": 0.5789401
+ },
+ {
+ "keyword": "Left Ventricular Assist Device",
+ "score": 0.534359
+ }
+ ]
+ },
+ {
+ "query": "biomedical devices",
+ "field": "Engineering",
+ "rank": 2,
+ "topic_name": "Wireless Power Transfer Systems",
+ "total_score": 36.242462,
+ "lexical_score": 24.742593900000003,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 19.892914,
+ "matched_keywords": [
+ {
+ "keyword": "Biomedical Implants",
+ "score": 0.7957166
+ },
+ {
+ "keyword": "Implantable Devices",
+ "score": 0.6754964
+ }
+ ]
+ },
+ {
+ "query": "biomedical devices",
+ "field": "Engineering",
+ "rank": 3,
+ "topic_name": "Biomedical and Chemical Research",
+ "total_score": 36.014763,
+ "lexical_score": 18.26299,
+ "title_vector_score": 17.75177,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Medical Gases",
+ "score": 0.57537335
+ }
+ ]
+ },
+ {
+ "query": "transportation infrastructure",
+ "field": "Engineering",
+ "rank": 1,
+ "topic_name": "Transportation Systems and Infrastructure",
+ "total_score": 61.272057,
+ "lexical_score": 39.476704999999995,
+ "title_vector_score": 21.79535,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "transportation infrastructure",
+ "field": "Engineering",
+ "rank": 2,
+ "topic_name": "transportation and logistics systems",
+ "total_score": 41.201653,
+ "lexical_score": 33.827672,
+ "title_vector_score": 21.83464,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Infrastructure",
+ "score": 0.68062085
+ },
+ {
+ "keyword": "Intelligent Transport Systems",
+ "score": 0.63904065
+ }
+ ]
+ },
+ {
+ "query": "transportation infrastructure",
+ "field": "Engineering",
+ "rank": 3,
+ "topic_name": "Transportation Systems and Safety",
+ "total_score": 38.94011,
+ "lexical_score": 19.36701,
+ "title_vector_score": 19.573097,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Transport Systems",
+ "score": 0.71998215
+ }
+ ]
+ },
+ {
+ "query": "signal processing",
+ "field": "Engineering",
+ "rank": 1,
+ "topic_name": "Advanced Signal Processing Techniques",
+ "total_score": 56.035263,
+ "lexical_score": 61.7368941,
+ "title_vector_score": 19.404106,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Signal Processing",
+ "score": 0.8472023
+ },
+ {
+ "keyword": "Wireless Communication",
+ "score": 0.53418094
+ }
+ ]
+ },
+ {
+ "query": "signal processing",
+ "field": "Engineering",
+ "rank": 2,
+ "topic_name": "Mathematical Analysis and Transform Methods",
+ "total_score": 40.228703,
+ "lexical_score": 28.587412599999997,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 21.207714,
+ "matched_keywords": [
+ {
+ "keyword": "Signal Processing",
+ "score": 0.84830856
+ }
+ ]
+ },
+ {
+ "query": "signal processing",
+ "field": "Engineering",
+ "rank": 3,
+ "topic_name": "Flow Measurement and Analysis",
+ "total_score": 37.95291,
+ "lexical_score": 25.7479616,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 21.207714,
+ "matched_keywords": [
+ {
+ "keyword": "Signal Processing",
+ "score": 0.84830856
+ }
+ ]
+ },
+ {
+ "query": "solid mechanics",
+ "field": "Engineering",
+ "rank": 1,
+ "topic_name": "Composite Material Mechanics",
+ "total_score": 38.539413,
+ "lexical_score": 19.09239,
+ "title_vector_score": 19.447021,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Micromechanics",
+ "score": 0.6053569
+ },
+ {
+ "keyword": "Elastic Properties",
+ "score": 0.5406723
+ }
+ ]
+ },
+ {
+ "query": "solid mechanics",
+ "field": "Engineering",
+ "rank": 2,
+ "topic_name": "Rock Mechanics and Modeling",
+ "total_score": 35.89728,
+ "lexical_score": 32.829911,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 18.62421,
+ "matched_keywords": [
+ {
+ "keyword": "Rock Mechanics",
+ "score": 0.7449684
+ },
+ {
+ "keyword": "Geomechanics",
+ "score": 0.60488635
+ }
+ ]
+ },
+ {
+ "query": "solid mechanics",
+ "field": "Engineering",
+ "rank": 3,
+ "topic_name": "Fatigue and fracture mechanics",
+ "total_score": 34.665306,
+ "lexical_score": 21.618759,
+ "title_vector_score": 17.392235,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Multiaxial Fatigue Criterion",
+ "score": 0.5099767
+ }
+ ]
+ },
+ {
+ "query": "industrial engineering",
+ "field": "Engineering",
+ "rank": 1,
+ "topic_name": "Diverse Industrial Engineering Technologies",
+ "total_score": 72.26691,
+ "lexical_score": 55.5093815,
+ "title_vector_score": 19.224243,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.50344,
+ "matched_keywords": [
+ {
+ "keyword": "Industrial Engineering",
+ "score": 0.9001376
+ },
+ {
+ "keyword": "Metallurgical Processes",
+ "score": 0.5954895
+ }
+ ]
+ },
+ {
+ "query": "industrial engineering",
+ "field": "Engineering",
+ "rank": 2,
+ "topic_name": "Industrial Engineering and Technologies",
+ "total_score": 53.433014,
+ "lexical_score": 30.539225000000002,
+ "title_vector_score": 22.893791,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Energy Efficiency",
+ "score": 0.53911465
+ },
+ {
+ "keyword": "Technological Innovation",
+ "score": 0.5314725
+ }
+ ]
+ },
+ {
+ "query": "industrial engineering",
+ "field": "Engineering",
+ "rank": 3,
+ "topic_name": "Management and Performance Evaluation",
+ "total_score": 38.738403,
+ "lexical_score": 23.3506704,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.500736,
+ "matched_keywords": [
+ {
+ "keyword": "Industrial Engineering",
+ "score": 0.9000295
+ },
+ {
+ "keyword": "Economic Analysis",
+ "score": 0.5145162
+ }
+ ]
+ },
+ {
+ "query": "machine learning",
+ "field": "Computer Science",
+ "rank": 1,
+ "topic_name": "Machine Learning and Algorithms",
+ "total_score": 54.413803,
+ "lexical_score": 55.5561871,
+ "title_vector_score": 21.905785,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Machine Learning",
+ "score": 0.8841159
+ },
+ {
+ "keyword": "Deep Learning",
+ "score": 0.7459348
+ }
+ ]
+ },
+ {
+ "query": "machine learning",
+ "field": "Computer Science",
+ "rank": 2,
+ "topic_name": "Machine Learning in Healthcare",
+ "total_score": 52.560432,
+ "lexical_score": 40.299937299999996,
+ "title_vector_score": 20.052414,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Deep Learning",
+ "score": 0.74846524
+ },
+ {
+ "keyword": "Predictive Modeling",
+ "score": 0.51115924
+ }
+ ]
+ },
+ {
+ "query": "machine learning",
+ "field": "Computer Science",
+ "rank": 3,
+ "topic_name": "Machine Learning and Data Classification",
+ "total_score": 50.424026,
+ "lexical_score": 52.9389944,
+ "title_vector_score": 20.74421,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Automated Machine Learning",
+ "score": 0.81304806
+ },
+ {
+ "keyword": "Deep Neural Networks",
+ "score": 0.656957
+ }
+ ]
+ },
+ {
+ "query": "natural language processing",
+ "field": "Computer Science",
+ "rank": 1,
+ "topic_name": "Natural Language Processing Techniques",
+ "total_score": 73.35987,
+ "lexical_score": 59.9096155,
+ "title_vector_score": 24.157791,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Language Modeling",
+ "score": 0.6241633
+ },
+ {
+ "keyword": "Neural Machine Translation",
+ "score": 0.6185684
+ }
+ ]
+ },
+ {
+ "query": "natural language processing",
+ "field": "Computer Science",
+ "rank": 2,
+ "topic_name": "Hate Speech and Cyberbullying Detection",
+ "total_score": 50.084034,
+ "lexical_score": 40.7650005,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.008324,
+ "matched_keywords": [
+ {
+ "keyword": "Natural Language Processing",
+ "score": 0.88033295
+ },
+ {
+ "keyword": "Machine Learning",
+ "score": 0.6348826
+ }
+ ]
+ },
+ {
+ "query": "natural language processing",
+ "field": "Computer Science",
+ "rank": 3,
+ "topic_name": "Artificial Intelligence in Law",
+ "total_score": 46.130272,
+ "lexical_score": 35.2051007,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.008324,
+ "matched_keywords": [
+ {
+ "keyword": "Natural Language Processing",
+ "score": 0.88033295
+ },
+ {
+ "keyword": "Machine Learning",
+ "score": 0.6348826
+ }
+ ]
+ },
+ {
+ "query": "cybersecurity protocols",
+ "field": "Computer Science",
+ "rank": 1,
+ "topic_name": "Advanced Authentication Protocols Security",
+ "total_score": 63.027794,
+ "lexical_score": 40.201457000000005,
+ "title_vector_score": 20.122223,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 20.401382,
+ "matched_keywords": [
+ {
+ "keyword": "Security Protocols",
+ "score": 0.8160553
+ },
+ {
+ "keyword": "Wireless Sensor Networks",
+ "score": 0.5867093
+ }
+ ]
+ },
+ {
+ "query": "cybersecurity protocols",
+ "field": "Computer Science",
+ "rank": 2,
+ "topic_name": "IoT Networks and Protocols",
+ "total_score": 42.696983,
+ "lexical_score": 40.362003,
+ "title_vector_score": 20.192795,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Random Access Protocols",
+ "score": 0.6690051
+ },
+ {
+ "keyword": "5G Networks",
+ "score": 0.55537796
+ }
+ ]
+ },
+ {
+ "query": "cybersecurity protocols",
+ "field": "Computer Science",
+ "rank": 3,
+ "topic_name": "Data Privacy and Cybersecurity",
+ "total_score": 41.457397,
+ "lexical_score": 22.504187,
+ "title_vector_score": 18.953209,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Privacy Protection",
+ "score": 0.5769246
+ },
+ {
+ "keyword": "Data Protection",
+ "score": 0.5762825
+ }
+ ]
+ },
+ {
+ "query": "cloud computing architecture",
+ "field": "Computer Science",
+ "rank": 1,
+ "topic_name": "Cloud Computing and Remote Desktop Technologies",
+ "total_score": 50.029533,
+ "lexical_score": 68.9313587,
+ "title_vector_score": 16.619568,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Mobile Cloud Computing",
+ "score": 0.6935145
+ },
+ {
+ "keyword": "Transparent Computing",
+ "score": 0.5536168
+ }
+ ]
+ },
+ {
+ "query": "cloud computing architecture",
+ "field": "Computer Science",
+ "rank": 2,
+ "topic_name": "Cloud Data Security Solutions",
+ "total_score": 39.320786,
+ "lexical_score": 52.8240174,
+ "title_vector_score": 16.816597,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Cloud Computing",
+ "score": 0.7568639
+ }
+ ]
+ },
+ {
+ "query": "cloud computing architecture",
+ "field": "Computer Science",
+ "rank": 3,
+ "topic_name": "Technology and Security Systems",
+ "total_score": 37.41596,
+ "lexical_score": 29.143794200000002,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 18.921917,
+ "matched_keywords": [
+ {
+ "keyword": "Cloud Computing",
+ "score": 0.75687665
+ }
+ ]
+ },
+ {
+ "query": "neural networks",
+ "field": "Computer Science",
+ "rank": 1,
+ "topic_name": "Neural Networks and Applications",
+ "total_score": 55.022472,
+ "lexical_score": 64.07318839999999,
+ "title_vector_score": 20.71064,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Neural Networks",
+ "score": 0.880085
+ },
+ {
+ "keyword": "Artificial Neural Networks",
+ "score": 0.7518031
+ }
+ ]
+ },
+ {
+ "query": "neural networks",
+ "field": "Computer Science",
+ "rank": 2,
+ "topic_name": "Model Reduction and Neural Networks",
+ "total_score": 50.623802,
+ "lexical_score": 37.3804894,
+ "title_vector_score": 19.297104,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Deep Learning",
+ "score": 0.68545276
+ },
+ {
+ "keyword": "Machine Learning",
+ "score": 0.68163174
+ }
+ ]
+ },
+ {
+ "query": "neural networks",
+ "field": "Computer Science",
+ "rank": 3,
+ "topic_name": "Memory and Neural Mechanisms",
+ "total_score": 37.36911,
+ "lexical_score": 31.006234699999997,
+ "title_vector_score": 18.864326,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Neural Circuits",
+ "score": 0.774189
+ },
+ {
+ "keyword": "Neurobiology",
+ "score": 0.61227417
+ }
+ ]
+ },
+ {
+ "query": "database optimization",
+ "field": "Computer Science",
+ "rank": 1,
+ "topic_name": "Advanced Database Systems and Queries",
+ "total_score": 41.86434,
+ "lexical_score": 59.5113226,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 18.887585,
+ "matched_keywords": [
+ {
+ "keyword": "Query Optimization",
+ "score": 0.75550336
+ },
+ {
+ "keyword": "Relational Database Systems",
+ "score": 0.6200816
+ }
+ ]
+ },
+ {
+ "query": "database optimization",
+ "field": "Computer Science",
+ "rank": 2,
+ "topic_name": "solar cell performance optimization",
+ "total_score": 34.98454,
+ "lexical_score": 14.11807,
+ "title_vector_score": 20.86647,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "High Efficiency",
+ "score": 0.54537076
+ },
+ {
+ "keyword": "Energy Conversion Efficiency",
+ "score": 0.51589584
+ }
+ ]
+ },
+ {
+ "query": "database optimization",
+ "field": "Computer Science",
+ "rank": 3,
+ "topic_name": "Optimization and Search Problems",
+ "total_score": 32.294605,
+ "lexical_score": 14.11807,
+ "title_vector_score": 18.176537,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Resource Allocation",
+ "score": 0.54134625
+ },
+ {
+ "keyword": "Online Algorithms",
+ "score": 0.5364507
+ }
+ ]
+ },
+ {
+ "query": "software engineering practices",
+ "field": "Computer Science",
+ "rank": 1,
+ "topic_name": "Software Engineering Techniques and Practices",
+ "total_score": 64.226425,
+ "lexical_score": 76.8700807,
+ "title_vector_score": 22.673492,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Agile Software Development",
+ "score": 0.6058019
+ },
+ {
+ "keyword": "Requirements Engineering",
+ "score": 0.5935758
+ }
+ ]
+ },
+ {
+ "query": "software engineering practices",
+ "field": "Computer Science",
+ "rank": 2,
+ "topic_name": "Software Engineering Research",
+ "total_score": 55.448257,
+ "lexical_score": 59.4827097,
+ "title_vector_score": 20.887451,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Software Maintenance",
+ "score": 0.5764224
+ },
+ {
+ "keyword": "Software Defect Prediction",
+ "score": 0.5368512
+ }
+ ]
+ },
+ {
+ "query": "software engineering practices",
+ "field": "Computer Science",
+ "rank": 3,
+ "topic_name": "Software Testing and Debugging Techniques",
+ "total_score": 35.453632,
+ "lexical_score": 33.491248999999996,
+ "title_vector_score": 18.319588,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "computer vision algorithms",
+ "field": "Computer Science",
+ "rank": 1,
+ "topic_name": "Water Quality Monitoring Technologies",
+ "total_score": 40.303238,
+ "lexical_score": 32.3252764,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 19.123775,
+ "matched_keywords": [
+ {
+ "keyword": "Computer Vision",
+ "score": 0.76495105
+ },
+ {
+ "keyword": "Remote Sensing",
+ "score": 0.50868607
+ }
+ ]
+ },
+ {
+ "query": "computer vision algorithms",
+ "field": "Computer Science",
+ "rank": 2,
+ "topic_name": "Advanced Neural Network Applications",
+ "total_score": 39.458557,
+ "lexical_score": 31.6682309,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 19.123775,
+ "matched_keywords": [
+ {
+ "keyword": "Computer Vision",
+ "score": 0.76495105
+ },
+ {
+ "keyword": "Image Recognition",
+ "score": 0.6150653
+ }
+ ]
+ },
+ {
+ "query": "computer vision algorithms",
+ "field": "Computer Science",
+ "rank": 3,
+ "topic_name": "Image and Object Detection Techniques",
+ "total_score": 39.3813,
+ "lexical_score": 37.225373999999995,
+ "title_vector_score": 18.632774,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Computer Vision",
+ "score": 0.764932
+ },
+ {
+ "keyword": "Edge Detection",
+ "score": 0.5743434
+ }
+ ]
+ },
+ {
+ "query": "blockchain technology",
+ "field": "Computer Science",
+ "rank": 1,
+ "topic_name": "Blockchain Technology Applications and Security",
+ "total_score": 52.931137,
+ "lexical_score": 57.936059,
+ "title_vector_score": 20.073586,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Blockchain",
+ "score": 0.81847125
+ },
+ {
+ "keyword": "Cryptocurrencies",
+ "score": 0.6830304
+ }
+ ]
+ },
+ {
+ "query": "blockchain technology",
+ "field": "Computer Science",
+ "rank": 2,
+ "topic_name": "Blockchain Technology in Education and Learning",
+ "total_score": 48.650127,
+ "lexical_score": 61.193715,
+ "title_vector_score": 18.422394,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Blockchain",
+ "score": 0.81774014
+ },
+ {
+ "keyword": "Technology",
+ "score": 0.6666972
+ }
+ ]
+ },
+ {
+ "query": "blockchain technology",
+ "field": "Computer Science",
+ "rank": 3,
+ "topic_name": "Artificial Intelligence and Decision Support Systems",
+ "total_score": 41.789623,
+ "lexical_score": 29.118519600000003,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.816402,
+ "matched_keywords": [
+ {
+ "keyword": "Blockchain Technology",
+ "score": 0.9126561
+ },
+ {
+ "keyword": "Machine Learning",
+ "score": 0.6136284
+ }
+ ]
+ },
+ {
+ "query": "artificial intelligence ethics",
+ "field": "Computer Science",
+ "rank": 1,
+ "topic_name": "Artificial Intelligence Applications",
+ "total_score": 58.49787,
+ "lexical_score": 64.59775929999999,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 16.904419,
+ "matched_keywords": [
+ {
+ "keyword": "Artificial Intelligence",
+ "score": 0.6761767
+ },
+ {
+ "keyword": "Machine Learning",
+ "score": 0.50394315
+ }
+ ]
+ },
+ {
+ "query": "artificial intelligence ethics",
+ "field": "Computer Science",
+ "rank": 2,
+ "topic_name": "Artificial Intelligence in Law",
+ "total_score": 58.12797,
+ "lexical_score": 60.274851299999995,
+ "title_vector_score": 20.49797,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Artificial Intelligence",
+ "score": 0.6761767
+ },
+ {
+ "keyword": "Ethical Implications",
+ "score": 0.6191025
+ }
+ ]
+ },
+ {
+ "query": "artificial intelligence ethics",
+ "field": "Computer Science",
+ "rank": 3,
+ "topic_name": "Ethics and Social Impacts of AI",
+ "total_score": 55.716125,
+ "lexical_score": 50.9322676,
+ "title_vector_score": 21.417503,
+ "description_vector_score": 8.414211,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Artificial Intelligence",
+ "score": 0.6761767
+ },
+ {
+ "keyword": "Ethics",
+ "score": 0.60905075
+ }
+ ]
+ },
+ {
+ "query": "human computer interaction",
+ "field": "Computer Science",
+ "rank": 1,
+ "topic_name": "Innovative Human-Technology Interaction",
+ "total_score": 53.909122,
+ "lexical_score": 55.8145754,
+ "title_vector_score": 18.391876,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Interaction Design",
+ "score": 0.60454303
+ },
+ {
+ "keyword": "User Experience",
+ "score": 0.5869573
+ }
+ ]
+ },
+ {
+ "query": "human computer interaction",
+ "field": "Computer Science",
+ "rank": 2,
+ "topic_name": "Human-Automation Interaction and Safety",
+ "total_score": 49.28084,
+ "lexical_score": 43.335441800000005,
+ "title_vector_score": 16.8536,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Human Factors",
+ "score": 0.5306079
+ },
+ {
+ "keyword": "User Acceptance",
+ "score": 0.5089467
+ }
+ ]
+ },
+ {
+ "query": "human computer interaction",
+ "field": "Computer Science",
+ "rank": 3,
+ "topic_name": "Digital Media and Visual Art",
+ "total_score": 44.42667,
+ "lexical_score": 23.9221297,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 20.50454,
+ "matched_keywords": [
+ {
+ "keyword": "Human-Computer Interaction",
+ "score": 0.82018155
+ },
+ {
+ "keyword": "Multimedia Technology",
+ "score": 0.51494217
+ }
+ ]
+ },
+ {
+ "query": "operating systems",
+ "field": "Computer Science",
+ "rank": 1,
+ "topic_name": "Information Systems Education and Curriculum Development",
+ "total_score": 28.096535,
+ "lexical_score": 15.8382435,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 19.418144,
+ "matched_keywords": [
+ {
+ "keyword": "information systems",
+ "score": 0.77672577
+ },
+ {
+ "keyword": "skill requirements",
+ "score": 0.53357697
+ }
+ ]
+ },
+ {
+ "query": "operating systems",
+ "field": "Computer Science",
+ "rank": 2,
+ "topic_name": "transportation and logistics systems",
+ "total_score": 28.034504,
+ "lexical_score": 17.702704400000002,
+ "title_vector_score": 17.702179,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Intelligent Transport Systems",
+ "score": 0.5236206
+ }
+ ]
+ },
+ {
+ "query": "operating systems",
+ "field": "Computer Science",
+ "rank": 3,
+ "topic_name": "Cybersecurity and Information Systems",
+ "total_score": 27.072437,
+ "lexical_score": 10.332324,
+ "title_vector_score": 16.740112,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Network Security",
+ "score": 0.5401891
+ },
+ {
+ "keyword": "Telecommunication Networks",
+ "score": 0.5098305
+ }
+ ]
+ },
+ {
+ "query": "distributed ledgers",
+ "field": "Computer Science",
+ "rank": 1,
+ "topic_name": "Constraint Satisfaction and Optimization",
+ "total_score": 26.072195,
+ "lexical_score": 16.271179,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 15.749518,
+ "matched_keywords": [
+ {
+ "keyword": "Distributed Algorithms",
+ "score": 0.62998074
+ }
+ ]
+ },
+ {
+ "query": "distributed ledgers",
+ "field": "Computer Science",
+ "rank": 2,
+ "topic_name": "Graph Theory and Algorithms",
+ "total_score": 25.240368,
+ "lexical_score": 15.7974794,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 15.127723,
+ "matched_keywords": [
+ {
+ "keyword": "Distributed Computing",
+ "score": 0.6051089
+ }
+ ]
+ },
+ {
+ "query": "distributed ledgers",
+ "field": "Computer Science",
+ "rank": 3,
+ "topic_name": "Distributed systems and fault tolerance",
+ "total_score": 19.825434,
+ "lexical_score": 37.478102,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Distributed Systems",
+ "score": 0.601415
+ }
+ ]
+ },
+ {
+ "query": "compiler design",
+ "field": "Computer Science",
+ "rank": 1,
+ "topic_name": "Architecture and Computational Design",
+ "total_score": 32.32586,
+ "lexical_score": 29.611094,
+ "title_vector_score": 17.187767,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Computational Design",
+ "score": 0.6377818
+ },
+ {
+ "keyword": "Architectural Design",
+ "score": 0.5869255
+ }
+ ]
+ },
+ {
+ "query": "compiler design",
+ "field": "Computer Science",
+ "rank": 2,
+ "topic_name": "VLSI and FPGA Design Techniques",
+ "total_score": 30.381134,
+ "lexical_score": 26.1076332,
+ "title_vector_score": 16.560059,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "CMOS Design",
+ "score": 0.63351566
+ },
+ {
+ "keyword": "Analog Circuits",
+ "score": 0.5277341
+ }
+ ]
+ },
+ {
+ "query": "compiler design",
+ "field": "Computer Science",
+ "rank": 3,
+ "topic_name": "Radio Frequency Integrated Circuit Design",
+ "total_score": 30.251434,
+ "lexical_score": 17.2369995,
+ "title_vector_score": 16.430359,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Integrated Circuits",
+ "score": 0.5435524
+ }
+ ]
+ },
+ {
+ "query": "data mining techniques",
+ "field": "Computer Science",
+ "rank": 1,
+ "topic_name": "Data Stream Mining Techniques",
+ "total_score": 66.93847,
+ "lexical_score": 56.29404099999999,
+ "title_vector_score": 23.12191,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Data Streams",
+ "score": 0.55364865
+ },
+ {
+ "keyword": "Adaptive Algorithms",
+ "score": 0.54755783
+ }
+ ]
+ },
+ {
+ "query": "data mining techniques",
+ "field": "Computer Science",
+ "rank": 2,
+ "topic_name": "Data Mining Algorithms and Applications",
+ "total_score": 50.225082,
+ "lexical_score": 62.461057999999994,
+ "title_vector_score": 20.279198,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Data Mining",
+ "score": 0.7995059
+ },
+ {
+ "keyword": "Temporal Data Mining",
+ "score": 0.70089597
+ }
+ ]
+ },
+ {
+ "query": "data mining techniques",
+ "field": "Computer Science",
+ "rank": 3,
+ "topic_name": "Information Retrieval and Data Mining",
+ "total_score": 49.98153,
+ "lexical_score": 57.4922423,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 20.035648,
+ "matched_keywords": [
+ {
+ "keyword": "Data Mining",
+ "score": 0.80142593
+ },
+ {
+ "keyword": "Machine Learning",
+ "score": 0.55943424
+ }
+ ]
+ },
+ {
+ "query": "cryptographic keys",
+ "field": "Computer Science",
+ "rank": 1,
+ "topic_name": "Cryptographic Implementations and Security",
+ "total_score": 45.447136,
+ "lexical_score": 25.166224,
+ "title_vector_score": 20.280914,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Authenticated Encryption",
+ "score": 0.6536954
+ },
+ {
+ "keyword": "Block Ciphers",
+ "score": 0.6061961
+ }
+ ]
+ },
+ {
+ "query": "cryptographic keys",
+ "field": "Computer Science",
+ "rank": 2,
+ "topic_name": "Coding theory and cryptography",
+ "total_score": 41.73989,
+ "lexical_score": 6.6889133,
+ "title_vector_score": 17.348175,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 17.7028,
+ "matched_keywords": [
+ {
+ "keyword": "Cryptography",
+ "score": 0.70811206
+ },
+ {
+ "keyword": "Decoding Algorithms",
+ "score": 0.5301692
+ }
+ ]
+ },
+ {
+ "query": "cryptographic keys",
+ "field": "Computer Science",
+ "rank": 3,
+ "topic_name": "Cryptography and Data Security",
+ "total_score": 27.637314,
+ "lexical_score": 7.6211386,
+ "title_vector_score": 20.016174,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Pairing-based Cryptography",
+ "score": 0.5877393
+ },
+ {
+ "keyword": "Identity-Based Encryption",
+ "score": 0.5854314
+ }
+ ]
+ },
+ {
+ "query": "quantum computing algorithms",
+ "field": "Computer Science",
+ "rank": 1,
+ "topic_name": "Quantum Computing Algorithms and Architecture",
+ "total_score": 88.695526,
+ "lexical_score": 91.49520659999999,
+ "title_vector_score": 21.140938,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 21.049404,
+ "matched_keywords": [
+ {
+ "keyword": "Quantum Algorithms",
+ "score": 0.84197617
+ },
+ {
+ "keyword": "Quantum Computation",
+ "score": 0.7993469
+ }
+ ]
+ },
+ {
+ "query": "quantum computing algorithms",
+ "field": "Computer Science",
+ "rank": 2,
+ "topic_name": "Advanced Computing and Algorithms",
+ "total_score": 52.554253,
+ "lexical_score": 33.66360400000001,
+ "title_vector_score": 18.890648,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Wireless Sensor Networks",
+ "score": 0.5441437
+ }
+ ]
+ },
+ {
+ "query": "quantum computing algorithms",
+ "field": "Computer Science",
+ "rank": 3,
+ "topic_name": "Scientific Research and Discoveries",
+ "total_score": 40.837875,
+ "lexical_score": 31.256331700000004,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 19.844276,
+ "matched_keywords": [
+ {
+ "keyword": "Quantum Computing",
+ "score": 0.7937711
+ },
+ {
+ "keyword": "Quantum Mechanics",
+ "score": 0.6513303
+ }
+ ]
+ },
+ {
+ "query": "web development frameworks",
+ "field": "Computer Science",
+ "rank": 1,
+ "topic_name": "Mobile and Web Applications",
+ "total_score": 37.588585,
+ "lexical_score": 48.185377200000005,
+ "title_vector_score": 17.872124,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Web Technologies",
+ "score": 0.6242078
+ },
+ {
+ "keyword": "Cross-Platform Development",
+ "score": 0.6074867
+ }
+ ]
+ },
+ {
+ "query": "web development frameworks",
+ "field": "Computer Science",
+ "rank": 2,
+ "topic_name": "Semantic Web and Ontologies",
+ "total_score": 35.75257,
+ "lexical_score": 37.4305651,
+ "title_vector_score": 16.03611,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "web development frameworks",
+ "field": "Computer Science",
+ "rank": 3,
+ "topic_name": "Web Applications and Data Management",
+ "total_score": 35.272434,
+ "lexical_score": 43.30219459999999,
+ "title_vector_score": 17.271309,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Adaptive Web Applications",
+ "score": 0.5971425
+ },
+ {
+ "keyword": "Rich Internet Applications",
+ "score": 0.5438957
+ }
+ ]
+ },
+ {
+ "query": "reinforcement learning",
+ "field": "Computer Science",
+ "rank": 1,
+ "topic_name": "Reinforcement Learning in Robotics",
+ "total_score": 89.835846,
+ "lexical_score": 66.22691760000001,
+ "title_vector_score": 22.20543,
+ "description_vector_score": 7.5704956,
+ "keywords_vector_score": 22.253578,
+ "matched_keywords": [
+ {
+ "keyword": "Reinforcement Learning",
+ "score": 0.8901431
+ },
+ {
+ "keyword": "Deep Learning",
+ "score": 0.60582733
+ }
+ ]
+ },
+ {
+ "query": "reinforcement learning",
+ "field": "Computer Science",
+ "rank": 2,
+ "topic_name": "Adaptive Dynamic Programming Control",
+ "total_score": 39.580833,
+ "lexical_score": 26.043045999999997,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.23943,
+ "matched_keywords": [
+ {
+ "keyword": "Reinforcement Learning",
+ "score": 0.8895772
+ },
+ {
+ "keyword": "Online Learning",
+ "score": 0.56962585
+ }
+ ]
+ },
+ {
+ "query": "reinforcement learning",
+ "field": "Computer Science",
+ "rank": 3,
+ "topic_name": "Speech and dialogue systems",
+ "total_score": 37.395065,
+ "lexical_score": 23.1807273,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.22433,
+ "matched_keywords": [
+ {
+ "keyword": "Reinforcement Learning",
+ "score": 0.88897324
+ },
+ {
+ "keyword": "Markov Decision Processes",
+ "score": 0.5135498
+ }
+ ]
+ },
+ {
+ "query": "graph databases",
+ "field": "Computer Science",
+ "rank": 1,
+ "topic_name": "Graph Theory and Algorithms",
+ "total_score": 59.0591,
+ "lexical_score": 47.388583,
+ "title_vector_score": 17.724686,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 21.22472,
+ "matched_keywords": [
+ {
+ "keyword": "Graph Database",
+ "score": 0.84898883
+ },
+ {
+ "keyword": "Graph Analytics",
+ "score": 0.704539
+ }
+ ]
+ },
+ {
+ "query": "graph databases",
+ "field": "Computer Science",
+ "rank": 2,
+ "topic_name": "Graph theory and applications",
+ "total_score": 38.505577,
+ "lexical_score": 37.59873339999999,
+ "title_vector_score": 18.395882,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Graph Spectra",
+ "score": 0.59005994
+ },
+ {
+ "keyword": "Topological Indices",
+ "score": 0.5535024
+ }
+ ]
+ },
+ {
+ "query": "graph databases",
+ "field": "Computer Science",
+ "rank": 3,
+ "topic_name": "graph theory and CDMA systems",
+ "total_score": 36.447803,
+ "lexical_score": 18.36015,
+ "title_vector_score": 18.087654,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "art history",
+ "field": "Arts and Humanities",
+ "rank": 1,
+ "topic_name": "Art History and Market Analysis",
+ "total_score": 46.639404,
+ "lexical_score": 44.325482,
+ "title_vector_score": 19.617348,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Art Market",
+ "score": 0.5538966
+ }
+ ]
+ },
+ {
+ "query": "art history",
+ "field": "Arts and Humanities",
+ "rank": 2,
+ "topic_name": "Architecture and Art History Studies",
+ "total_score": 46.45649,
+ "lexical_score": 40.760116,
+ "title_vector_score": 19.434433,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Renaissance Art",
+ "score": 0.6352704
+ },
+ {
+ "keyword": "Historical Cartography",
+ "score": 0.5979373
+ }
+ ]
+ },
+ {
+ "query": "art history",
+ "field": "Arts and Humanities",
+ "rank": 3,
+ "topic_name": "Historical Art and Architecture Studies",
+ "total_score": 44.462105,
+ "lexical_score": 48.3021193,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.482616,
+ "matched_keywords": [
+ {
+ "keyword": "Art History",
+ "score": 0.8993047
+ },
+ {
+ "keyword": "Spanish Art",
+ "score": 0.62486905
+ }
+ ]
+ },
+ {
+ "query": "literary criticism",
+ "field": "Arts and Humanities",
+ "rank": 1,
+ "topic_name": "Latin American Literature Analysis",
+ "total_score": 47.133377,
+ "lexical_score": 34.6682797,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.962646,
+ "matched_keywords": [
+ {
+ "keyword": "literary criticism",
+ "score": 0.9985059
+ },
+ {
+ "keyword": "Latin American literature",
+ "score": 0.57524616
+ }
+ ]
+ },
+ {
+ "query": "literary criticism",
+ "field": "Arts and Humanities",
+ "rank": 2,
+ "topic_name": "Latin American Literature Studies",
+ "total_score": 43.78702,
+ "lexical_score": 22.6618005,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 21.125221,
+ "matched_keywords": [
+ {
+ "keyword": "Literary Criticism",
+ "score": 0.84500885
+ },
+ {
+ "keyword": "Latin American Literature",
+ "score": 0.58464307
+ }
+ ]
+ },
+ {
+ "query": "literary criticism",
+ "field": "Arts and Humanities",
+ "rank": 3,
+ "topic_name": "American Literature and Culture",
+ "total_score": 43.783104,
+ "lexical_score": 21.249784,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.533321,
+ "matched_keywords": [
+ {
+ "keyword": "Literary criticism",
+ "score": 0.90133286
+ },
+ {
+ "keyword": "American literature",
+ "score": 0.5776367
+ }
+ ]
+ },
+ {
+ "query": "philosophy of mind",
+ "field": "Arts and Humanities",
+ "rank": 1,
+ "topic_name": "Philosophy and Theoretical Science",
+ "total_score": 50.927734,
+ "lexical_score": 53.9440538903,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.597378,
+ "matched_keywords": [
+ {
+ "keyword": "Philosophy of Mind",
+ "score": 0.9038951
+ },
+ {
+ "keyword": "Cognitive Science",
+ "score": 0.6012561
+ }
+ ]
+ },
+ {
+ "query": "philosophy of mind",
+ "field": "Arts and Humanities",
+ "rank": 2,
+ "topic_name": "Cybernetics and Technology in Society",
+ "total_score": 50.602253,
+ "lexical_score": 38.471745327709996,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.597378,
+ "matched_keywords": [
+ {
+ "keyword": "Philosophy of Mind",
+ "score": 0.9038951
+ },
+ {
+ "keyword": "Neuroscience",
+ "score": 0.5841344
+ }
+ ]
+ },
+ {
+ "query": "philosophy of mind",
+ "field": "Arts and Humanities",
+ "rank": 3,
+ "topic_name": "Study and Philosophy of Religion",
+ "total_score": 41.334595,
+ "lexical_score": 36.60724210928,
+ "title_vector_score": 17.731934,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Philosophy",
+ "score": 0.6844101
+ }
+ ]
+ },
+ {
+ "query": "renaissance architecture",
+ "field": "Arts and Humanities",
+ "rank": 1,
+ "topic_name": "Medieval Architecture and Archaeology",
+ "total_score": 52.280884,
+ "lexical_score": 26.851512999999997,
+ "title_vector_score": 16.813545,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 17.20435,
+ "matched_keywords": [
+ {
+ "keyword": "Medieval Architecture",
+ "score": 0.68817395
+ }
+ ]
+ },
+ {
+ "query": "renaissance architecture",
+ "field": "Arts and Humanities",
+ "rank": 2,
+ "topic_name": "Medieval European History and Architecture",
+ "total_score": 49.80219,
+ "lexical_score": 31.093536,
+ "title_vector_score": 15.912131,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 17.21595,
+ "matched_keywords": [
+ {
+ "keyword": "Medieval Architecture",
+ "score": 0.68863803
+ },
+ {
+ "keyword": "Architectural Evolution",
+ "score": 0.56689835
+ }
+ ]
+ },
+ {
+ "query": "renaissance architecture",
+ "field": "Arts and Humanities",
+ "rank": 3,
+ "topic_name": "Renaissance Literature and Culture",
+ "total_score": 40.12175,
+ "lexical_score": 45.879309600000006,
+ "title_vector_score": 16.56044,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Renaissance",
+ "score": 0.6357918
+ }
+ ]
+ },
+ {
+ "query": "linguistics morphology",
+ "field": "Arts and Humanities",
+ "rank": 1,
+ "topic_name": "Linguistic Variation and Morphology",
+ "total_score": 46.90168,
+ "lexical_score": 25.166224,
+ "title_vector_score": 21.735458,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Linguistic Identity",
+ "score": 0.635245
+ },
+ {
+ "keyword": "Sociolinguistic Variation",
+ "score": 0.58301544
+ }
+ ]
+ },
+ {
+ "query": "linguistics morphology",
+ "field": "Arts and Humanities",
+ "rank": 2,
+ "topic_name": "Linguistics and Cultural Studies",
+ "total_score": 44.525967,
+ "lexical_score": 54.4928568,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 20.438736,
+ "matched_keywords": [
+ {
+ "keyword": "morphology",
+ "score": 0.8175494
+ },
+ {
+ "keyword": "linguistics",
+ "score": 0.795386
+ }
+ ]
+ },
+ {
+ "query": "linguistics morphology",
+ "field": "Arts and Humanities",
+ "rank": 3,
+ "topic_name": "linguistics and terminology studies",
+ "total_score": 39.579918,
+ "lexical_score": 40.9480213,
+ "title_vector_score": 21.075134,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Corpus Linguistics",
+ "score": 0.6828906
+ },
+ {
+ "keyword": "Cognitive Linguistics",
+ "score": 0.66515857
+ }
+ ]
+ },
+ {
+ "query": "creative writing",
+ "field": "Arts and Humanities",
+ "rank": 1,
+ "topic_name": "Artistic and Creative Research",
+ "total_score": 45.76142,
+ "lexical_score": 63.4647583,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.090023,
+ "matched_keywords": [
+ {
+ "keyword": "Creative Writing",
+ "score": 0.8836009
+ },
+ {
+ "keyword": "Screenwriting",
+ "score": 0.65409595
+ }
+ ]
+ },
+ {
+ "query": "creative writing",
+ "field": "Arts and Humanities",
+ "rank": 2,
+ "topic_name": "Mental Health via Writing",
+ "total_score": 38.749313,
+ "lexical_score": 37.5356766,
+ "title_vector_score": 17.665176,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Expressive Writing",
+ "score": 0.6671422
+ },
+ {
+ "keyword": "Natural Language Processing",
+ "score": 0.5536423
+ }
+ ]
+ },
+ {
+ "query": "creative writing",
+ "field": "Arts and Humanities",
+ "rank": 3,
+ "topic_name": "Academic Writing and Publishing",
+ "total_score": 38.214874,
+ "lexical_score": 40.2469174,
+ "title_vector_score": 17.130737,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Scientific Writing",
+ "score": 0.6632767
+ },
+ {
+ "keyword": "Publication",
+ "score": 0.5425288
+ }
+ ]
+ },
+ {
+ "query": "musical composition",
+ "field": "Arts and Humanities",
+ "rank": 1,
+ "topic_name": "Musicology and Musical Analysis",
+ "total_score": 41.71617,
+ "lexical_score": 57.7744713,
+ "title_vector_score": 16.54995,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Mathematics of Music",
+ "score": 0.590524
+ },
+ {
+ "keyword": "Musicology",
+ "score": 0.5699056
+ }
+ ]
+ },
+ {
+ "query": "musical composition",
+ "field": "Arts and Humanities",
+ "rank": 2,
+ "topic_name": "Body Composition Measurement Techniques",
+ "total_score": 21.714607,
+ "lexical_score": 35.70536,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "musical composition",
+ "field": "Arts and Humanities",
+ "rank": 3,
+ "topic_name": "Nuts composition and effects",
+ "total_score": 21.714607,
+ "lexical_score": 21.714607,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "theater history",
+ "field": "Arts and Humanities",
+ "rank": 1,
+ "topic_name": "Theater, Performance, and Music History",
+ "total_score": 50.422348,
+ "lexical_score": 32.603820999999996,
+ "title_vector_score": 17.818527,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "theater history",
+ "field": "Arts and Humanities",
+ "rank": 2,
+ "topic_name": "Historical and Modern Theater Studies",
+ "total_score": 39.96591,
+ "lexical_score": 21.511477,
+ "title_vector_score": 18.454437,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "theater history",
+ "field": "Arts and Humanities",
+ "rank": 3,
+ "topic_name": "Cinema History and Criticism",
+ "total_score": 30.420479,
+ "lexical_score": 23.463286,
+ "title_vector_score": 18.271141,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "History",
+ "score": 0.5842616
+ }
+ ]
+ },
+ {
+ "query": "postmodern literature",
+ "field": "Arts and Humanities",
+ "rank": 1,
+ "topic_name": "Postmodernism in Literature and Education",
+ "total_score": 51.38645,
+ "lexical_score": 20.5683066,
+ "title_vector_score": 20.571976,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 17.86731,
+ "matched_keywords": [
+ {
+ "keyword": "Postmodernism",
+ "score": 0.7146924
+ }
+ ]
+ },
+ {
+ "query": "postmodern literature",
+ "field": "Arts and Humanities",
+ "rank": 2,
+ "topic_name": "Modernist Literature and Criticism",
+ "total_score": 32.261505,
+ "lexical_score": 27.2676418,
+ "title_vector_score": 18.080597,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Literature",
+ "score": 0.5733897
+ }
+ ]
+ },
+ {
+ "query": "postmodern literature",
+ "field": "Arts and Humanities",
+ "rank": 3,
+ "topic_name": "American Jewish Fiction Analysis",
+ "total_score": 25.974556,
+ "lexical_score": 11.9322606,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 17.86731,
+ "matched_keywords": [
+ {
+ "keyword": "Postmodernism",
+ "score": 0.7146924
+ },
+ {
+ "keyword": "Jewish American Literature",
+ "score": 0.5414543
+ }
+ ]
+ },
+ {
+ "query": "ethics and morality",
+ "field": "Arts and Humanities",
+ "rank": 1,
+ "topic_name": "Social and Intergroup Psychology",
+ "total_score": 40.039013,
+ "lexical_score": 29.47431933736,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 19.792622,
+ "matched_keywords": [
+ {
+ "keyword": "Morality and Justice",
+ "score": 0.79170483
+ },
+ {
+ "keyword": "Social Identity",
+ "score": 0.5096906
+ }
+ ]
+ },
+ {
+ "query": "ethics and morality",
+ "field": "Arts and Humanities",
+ "rank": 2,
+ "topic_name": "Religion, Ecology, and Ethics",
+ "total_score": 37.981926,
+ "lexical_score": 28.4890984717,
+ "title_vector_score": 20.979195,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Ethics",
+ "score": 0.7338994
+ },
+ {
+ "keyword": "Environmental Ethics",
+ "score": 0.6698189
+ }
+ ]
+ },
+ {
+ "query": "ethics and morality",
+ "field": "Arts and Humanities",
+ "rank": 3,
+ "topic_name": "Political Philosophy and Ethics",
+ "total_score": 37.97239,
+ "lexical_score": 17.00286779979,
+ "title_vector_score": 20.969658,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Social Responsibility",
+ "score": 0.5521291
+ },
+ {
+ "keyword": "Human Rights",
+ "score": 0.5141792
+ }
+ ]
+ },
+ {
+ "query": "historical archives",
+ "field": "Arts and Humanities",
+ "rank": 1,
+ "topic_name": "Historical Architecture and Urbanism",
+ "total_score": 31.765352,
+ "lexical_score": 24.8279125,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 18.511993,
+ "matched_keywords": [
+ {
+ "keyword": "historical buildings",
+ "score": 0.74047977
+ },
+ {
+ "keyword": "cultural history",
+ "score": 0.6992111
+ }
+ ]
+ },
+ {
+ "query": "historical archives",
+ "field": "Arts and Humanities",
+ "rank": 2,
+ "topic_name": "Historical and Archaeological Studies",
+ "total_score": 31.7036,
+ "lexical_score": 16.8111717,
+ "title_vector_score": 18.450241,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Archaeology",
+ "score": 0.5323372
+ }
+ ]
+ },
+ {
+ "query": "historical archives",
+ "field": "Arts and Humanities",
+ "rank": 3,
+ "topic_name": "Archaeological and Historical Studies",
+ "total_score": 31.390223,
+ "lexical_score": 13.253359,
+ "title_vector_score": 18.136864,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "archaeology",
+ "score": 0.652551
+ },
+ {
+ "keyword": "cultural exchange",
+ "score": 0.5160993
+ }
+ ]
+ },
+ {
+ "query": "film analysis",
+ "field": "Arts and Humanities",
+ "rank": 1,
+ "topic_name": "Literature, Film, and Journalism Analysis",
+ "total_score": 47.494186,
+ "lexical_score": 28.361494999999998,
+ "title_vector_score": 19.13269,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Cinematic Narrative",
+ "score": 0.5398013
+ }
+ ]
+ },
+ {
+ "query": "film analysis",
+ "field": "Arts and Humanities",
+ "rank": 2,
+ "topic_name": "Video Analysis and Summarization",
+ "total_score": 27.169226,
+ "lexical_score": 16.3528954,
+ "title_vector_score": 17.189293,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Semantic Analysis",
+ "score": 0.57438785
+ },
+ {
+ "keyword": "Video Summarization",
+ "score": 0.52979404
+ }
+ ]
+ },
+ {
+ "query": "film analysis",
+ "field": "Arts and Humanities",
+ "rank": 3,
+ "topic_name": "Experimental and Theoretical Physics Studies",
+ "total_score": 24.57874,
+ "lexical_score": 8.47542,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 18.77966,
+ "matched_keywords": [
+ {
+ "keyword": "Video Analysis",
+ "score": 0.7511864
+ },
+ {
+ "keyword": "Dimensional Analysis",
+ "score": 0.5513916
+ }
+ ]
+ },
+ {
+ "query": "religious studies",
+ "field": "Arts and Humanities",
+ "rank": 1,
+ "topic_name": "Religious and Theological Studies",
+ "total_score": 48.59663,
+ "lexical_score": 29.937609600000002,
+ "title_vector_score": 22.785263,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Theology",
+ "score": 0.6004041
+ },
+ {
+ "keyword": "Religion",
+ "score": 0.5839183
+ }
+ ]
+ },
+ {
+ "query": "religious studies",
+ "field": "Arts and Humanities",
+ "rank": 2,
+ "topic_name": "Catholicism and Religious Studies",
+ "total_score": 47.842846,
+ "lexical_score": 39.8048178,
+ "title_vector_score": 22.031479,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Religious",
+ "score": 0.59473294
+ },
+ {
+ "keyword": "Education",
+ "score": 0.5339902
+ }
+ ]
+ },
+ {
+ "query": "religious studies",
+ "field": "Arts and Humanities",
+ "rank": 3,
+ "topic_name": "Religious, Philosophical, and Educational Studies",
+ "total_score": 44.823063,
+ "lexical_score": 28.727284,
+ "title_vector_score": 21.257286,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Religion",
+ "score": 0.58357495
+ },
+ {
+ "keyword": "Spirituality",
+ "score": 0.54560596
+ }
+ ]
+ },
+ {
+ "query": "classical archaeology",
+ "field": "Arts and Humanities",
+ "rank": 1,
+ "topic_name": "Classical Antiquity Studies",
+ "total_score": 44.145866,
+ "lexical_score": 42.8612294,
+ "title_vector_score": 21.421127,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Classical Antiquity",
+ "score": 0.767278
+ },
+ {
+ "keyword": "Late Antiquity",
+ "score": 0.5385297
+ }
+ ]
+ },
+ {
+ "query": "classical archaeology",
+ "field": "Arts and Humanities",
+ "rank": 2,
+ "topic_name": "Archaeology and Natural History",
+ "total_score": 37.196175,
+ "lexical_score": 18.26299,
+ "title_vector_score": 18.933182,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Archaeological Investigations",
+ "score": 0.62655383
+ }
+ ]
+ },
+ {
+ "query": "classical archaeology",
+ "field": "Arts and Humanities",
+ "rank": 3,
+ "topic_name": "Historical and Archaeological Studies",
+ "total_score": 32.27013,
+ "lexical_score": 13.138776,
+ "title_vector_score": 19.131355,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Archaeology",
+ "score": 0.68453723
+ },
+ {
+ "keyword": "Medieval",
+ "score": 0.5289993
+ }
+ ]
+ },
+ {
+ "query": "metaphysics",
+ "field": "Arts and Humanities",
+ "rank": 1,
+ "topic_name": "Epistemology, Ethics, and Metaphysics",
+ "total_score": 44.684387,
+ "lexical_score": 25.166224,
+ "title_vector_score": 19.518166,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "metaphysics",
+ "field": "Arts and Humanities",
+ "rank": 2,
+ "topic_name": "Kantian Philosophy and Modern Interpretations",
+ "total_score": 37.826,
+ "lexical_score": 22.8424503,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 21.901352,
+ "matched_keywords": [
+ {
+ "keyword": "Metaphysics",
+ "score": 0.8760541
+ },
+ {
+ "keyword": "Philosophy",
+ "score": 0.60142773
+ }
+ ]
+ },
+ {
+ "query": "metaphysics",
+ "field": "Arts and Humanities",
+ "rank": 3,
+ "topic_name": "Classical Philosophy and Thought",
+ "total_score": 36.718784,
+ "lexical_score": 22.554257999999997,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 21.901352,
+ "matched_keywords": [
+ {
+ "keyword": "Metaphysics",
+ "score": 0.8760541
+ },
+ {
+ "keyword": "Ancient Ethics",
+ "score": 0.52373505
+ }
+ ]
+ },
+ {
+ "query": "cultural heritage preservation",
+ "field": "Arts and Humanities",
+ "rank": 1,
+ "topic_name": "Cultural Heritage Management and Preservation",
+ "total_score": 74.17219,
+ "lexical_score": 81.7756646,
+ "title_vector_score": 21.913795,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Heritage Conservation",
+ "score": 0.7311592
+ },
+ {
+ "keyword": "Cultural Sustainability",
+ "score": 0.6211815
+ }
+ ]
+ },
+ {
+ "query": "cultural heritage preservation",
+ "field": "Arts and Humanities",
+ "rank": 2,
+ "topic_name": "Museums and Cultural Heritage",
+ "total_score": 52.15101,
+ "lexical_score": 38.9593617,
+ "title_vector_score": 20.079117,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Cultural Sustainability",
+ "score": 0.62113696
+ }
+ ]
+ },
+ {
+ "query": "cultural heritage preservation",
+ "field": "Arts and Humanities",
+ "rank": 3,
+ "topic_name": "History and Cultural Heritage",
+ "total_score": 52.14891,
+ "lexical_score": 40.256477,
+ "title_vector_score": 20.077019,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Cultural Exchange",
+ "score": 0.5316696
+ }
+ ]
+ },
+ {
+ "query": "comparative literature",
+ "field": "Arts and Humanities",
+ "rank": 1,
+ "topic_name": "Comparative and World Literature",
+ "total_score": 76.9044,
+ "lexical_score": 67.9149521,
+ "title_vector_score": 22.116737,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 20.497066,
+ "matched_keywords": [
+ {
+ "keyword": "Comparative Literature",
+ "score": 0.8198827
+ },
+ {
+ "keyword": "World Literature",
+ "score": 0.6015167
+ }
+ ]
+ },
+ {
+ "query": "comparative literature",
+ "field": "Arts and Humanities",
+ "rank": 2,
+ "topic_name": "History, Culture, and Diplomacy",
+ "total_score": 39.968174,
+ "lexical_score": 30.878297,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 20.497066,
+ "matched_keywords": [
+ {
+ "keyword": "Comparative Literature",
+ "score": 0.8198827
+ },
+ {
+ "keyword": "Literary Networks",
+ "score": 0.5041466
+ }
+ ]
+ },
+ {
+ "query": "comparative literature",
+ "field": "Arts and Humanities",
+ "rank": 3,
+ "topic_name": "Comparative Literary Analysis and Criticism",
+ "total_score": 37.05949,
+ "lexical_score": 33.897036299999996,
+ "title_vector_score": 18.69934,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Literature",
+ "score": 0.5915222
+ },
+ {
+ "keyword": "Spanish Literature",
+ "score": 0.56766766
+ }
+ ]
+ },
+ {
+ "query": "linguistic semantics",
+ "field": "Arts and Humanities",
+ "rank": 1,
+ "topic_name": "Syntax, Semantics, Linguistic Variation",
+ "total_score": 65.92412,
+ "lexical_score": 69.62987179999999,
+ "title_vector_score": 22.253113,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Semantics",
+ "score": 0.71860886
+ },
+ {
+ "keyword": "Language Typology",
+ "score": 0.62574005
+ }
+ ]
+ },
+ {
+ "query": "linguistic semantics",
+ "field": "Arts and Humanities",
+ "rank": 2,
+ "topic_name": "linguistics and terminology studies",
+ "total_score": 34.537823,
+ "lexical_score": 19.7010975,
+ "title_vector_score": 21.031265,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Lexical Semantics",
+ "score": 0.801604
+ },
+ {
+ "keyword": "Cognitive Linguistics",
+ "score": 0.7266261
+ }
+ ]
+ },
+ {
+ "query": "linguistic semantics",
+ "field": "Arts and Humanities",
+ "rank": 3,
+ "topic_name": "Language, Linguistics, Cultural Analysis",
+ "total_score": 30.55338,
+ "lexical_score": 17.2011646,
+ "title_vector_score": 19.051437,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Linguistic Diversity",
+ "score": 0.6493149
+ },
+ {
+ "keyword": "Ethnolinguistics",
+ "score": 0.6159045
+ }
+ ]
+ },
+ {
+ "query": "medieval art",
+ "field": "Arts and Humanities",
+ "rank": 1,
+ "topic_name": "Medieval European History and Architecture",
+ "total_score": 58.468674,
+ "lexical_score": 53.0933785,
+ "title_vector_score": 17.330627,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 17.176056,
+ "matched_keywords": [
+ {
+ "keyword": "Medieval Architecture",
+ "score": 0.68704224
+ },
+ {
+ "keyword": "Gothic Art",
+ "score": 0.62180454
+ }
+ ]
+ },
+ {
+ "query": "medieval art",
+ "field": "Arts and Humanities",
+ "rank": 2,
+ "topic_name": "Medieval Architecture and Archaeology",
+ "total_score": 53.70291,
+ "lexical_score": 39.7736082,
+ "title_vector_score": 17.979317,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 17.218811,
+ "matched_keywords": [
+ {
+ "keyword": "Medieval Architecture",
+ "score": 0.6887525
+ },
+ {
+ "keyword": "Early Medieval Churches",
+ "score": 0.5220375
+ }
+ ]
+ },
+ {
+ "query": "medieval art",
+ "field": "Arts and Humanities",
+ "rank": 3,
+ "topic_name": "Historical Studies of Medieval Iberia",
+ "total_score": 36.78769,
+ "lexical_score": 47.09215450000001,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 17.3199,
+ "matched_keywords": [
+ {
+ "keyword": "medieval Spain",
+ "score": 0.69279605
+ },
+ {
+ "keyword": "art and culture",
+ "score": 0.62278366
+ }
+ ]
+ },
+ {
+ "query": "epistemology",
+ "field": "Arts and Humanities",
+ "rank": 1,
+ "topic_name": "Epistemology, Ethics, and Metaphysics",
+ "total_score": 43.7274,
+ "lexical_score": 31.819223,
+ "title_vector_score": 20.166092,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Epistemic Intuitions",
+ "score": 0.5781962
+ },
+ {
+ "keyword": "Knowledge",
+ "score": 0.53575134
+ }
+ ]
+ },
+ {
+ "query": "epistemology",
+ "field": "Arts and Humanities",
+ "rank": 2,
+ "topic_name": "Academic and Historical Perspectives in Psychology",
+ "total_score": 37.631275,
+ "lexical_score": 16.400833,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 21.230442,
+ "matched_keywords": [
+ {
+ "keyword": "Epistemology",
+ "score": 0.8492177
+ },
+ {
+ "keyword": "Psychology",
+ "score": 0.55437976
+ }
+ ]
+ },
+ {
+ "query": "epistemology",
+ "field": "Arts and Humanities",
+ "rank": 3,
+ "topic_name": "Bach Studies and Logistics Development",
+ "total_score": 37.244457,
+ "lexical_score": 24.997449,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 21.242207,
+ "matched_keywords": [
+ {
+ "keyword": "Epistemology",
+ "score": 0.84968823
+ }
+ ]
+ },
+ {
+ "query": "dna replication",
+ "field": "Biochemistry, Genetics and Molecular Biology",
+ "rank": 1,
+ "topic_name": "DNA Repair Mechanisms",
+ "total_score": 41.308304,
+ "lexical_score": 37.964512,
+ "title_vector_score": 18.583565,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "DNA Damage",
+ "score": 0.6461868
+ },
+ {
+ "keyword": "Homologous Recombination",
+ "score": 0.61989087
+ }
+ ]
+ },
+ {
+ "query": "dna replication",
+ "field": "Biochemistry, Genetics and Molecular Biology",
+ "rank": 2,
+ "topic_name": "DNA and Nucleic Acid Chemistry",
+ "total_score": 36.801826,
+ "lexical_score": 32.5008835,
+ "title_vector_score": 18.031197,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "DNA Structure",
+ "score": 0.6766154
+ },
+ {
+ "keyword": "Nucleic Acids",
+ "score": 0.64258194
+ }
+ ]
+ },
+ {
+ "query": "dna replication",
+ "field": "Biochemistry, Genetics and Molecular Biology",
+ "rank": 3,
+ "topic_name": "Brucella: diagnosis, epidemiology, treatment",
+ "total_score": 34.55851,
+ "lexical_score": 15.815408,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 18.743103,
+ "matched_keywords": [
+ {
+ "keyword": "Intracellular Replication",
+ "score": 0.7497241
+ },
+ {
+ "keyword": "Genomic Analysis",
+ "score": 0.5933406
+ }
+ ]
+ },
+ {
+ "query": "crispr gene editing",
+ "field": "Biochemistry, Genetics and Molecular Biology",
+ "rank": 1,
+ "topic_name": "CRISPR and Genetic Engineering",
+ "total_score": 91.83423,
+ "lexical_score": 97.002091,
+ "title_vector_score": 20.080833,
+ "description_vector_score": 8.287659,
+ "keywords_vector_score": 19.048912,
+ "matched_keywords": [
+ {
+ "keyword": "Gene Editing",
+ "score": 0.7619565
+ },
+ {
+ "keyword": "Multiplex Genome Editing",
+ "score": 0.69940823
+ }
+ ]
+ },
+ {
+ "query": "crispr gene editing",
+ "field": "Biochemistry, Genetics and Molecular Biology",
+ "rank": 2,
+ "topic_name": "RNA regulation and disease",
+ "total_score": 40.07563,
+ "lexical_score": 35.4043895,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 17.141087,
+ "matched_keywords": [
+ {
+ "keyword": "RNA Editing",
+ "score": 0.6856435
+ },
+ {
+ "keyword": "Gene Regulation",
+ "score": 0.53617734
+ }
+ ]
+ },
+ {
+ "query": "crispr gene editing",
+ "field": "Biochemistry, Genetics and Molecular Biology",
+ "rank": 3,
+ "topic_name": "RNA modifications and cancer",
+ "total_score": 24.09104,
+ "lexical_score": 12.531116,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 15.823586,
+ "matched_keywords": [
+ {
+ "keyword": "mRNA modification",
+ "score": 0.63294345
+ },
+ {
+ "keyword": "gene expression regulation",
+ "score": 0.56998825
+ }
+ ]
+ },
+ {
+ "query": "protein folding",
+ "field": "Biochemistry, Genetics and Molecular Biology",
+ "rank": 1,
+ "topic_name": "Endoplasmic Reticulum Stress and Disease",
+ "total_score": 49.736984,
+ "lexical_score": 38.825288400000005,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.642834,
+ "matched_keywords": [
+ {
+ "keyword": "Protein Folding",
+ "score": 0.9057134
+ },
+ {
+ "keyword": "Unfolded Protein Response",
+ "score": 0.6748543
+ }
+ ]
+ },
+ {
+ "query": "protein folding",
+ "field": "Biochemistry, Genetics and Molecular Biology",
+ "rank": 2,
+ "topic_name": "Heat shock proteins research",
+ "total_score": 47.858498,
+ "lexical_score": 39.303454,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.646172,
+ "matched_keywords": [
+ {
+ "keyword": "Protein Folding",
+ "score": 0.9058469
+ },
+ {
+ "keyword": "Protein Quality Control",
+ "score": 0.6161397
+ }
+ ]
+ },
+ {
+ "query": "protein folding",
+ "field": "Biochemistry, Genetics and Molecular Biology",
+ "rank": 3,
+ "topic_name": "Protein Tyrosine Phosphatases",
+ "total_score": 38.41697,
+ "lexical_score": 35.173253200000005,
+ "title_vector_score": 17.673569,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Protein Tyrosine Phosphatases",
+ "score": 0.5882225
+ },
+ {
+ "keyword": "Cell Signaling",
+ "score": 0.559021
+ }
+ ]
+ },
+ {
+ "query": "rna sequencing",
+ "field": "Biochemistry, Genetics and Molecular Biology",
+ "rank": 1,
+ "topic_name": "Ferroptosis and cancer prognosis",
+ "total_score": 43.540833,
+ "lexical_score": 32.1905813,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 21.491749,
+ "matched_keywords": [
+ {
+ "keyword": "RNA-sequencing",
+ "score": 0.85967
+ },
+ {
+ "keyword": "Gene Expression",
+ "score": 0.595623
+ }
+ ]
+ },
+ {
+ "query": "rna sequencing",
+ "field": "Biochemistry, Genetics and Molecular Biology",
+ "rank": 2,
+ "topic_name": "RNA Research and Splicing",
+ "total_score": 40.54756,
+ "lexical_score": 44.23468,
+ "title_vector_score": 19.463425,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "RNA Phase Transitions",
+ "score": 0.6574529
+ },
+ {
+ "keyword": "RNA-Binding Proteins",
+ "score": 0.64752835
+ }
+ ]
+ },
+ {
+ "query": "rna sequencing",
+ "field": "Biochemistry, Genetics and Molecular Biology",
+ "rank": 3,
+ "topic_name": "RNA regulation and disease",
+ "total_score": 39.969254,
+ "lexical_score": 37.3148863,
+ "title_vector_score": 18.885117,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "RNA Editing",
+ "score": 0.7016271
+ },
+ {
+ "keyword": "Nucleic Acid Sensing",
+ "score": 0.63927585
+ }
+ ]
+ },
+ {
+ "query": "enzyme kinetics",
+ "field": "Biochemistry, Genetics and Molecular Biology",
+ "rank": 1,
+ "topic_name": "thermodynamics and calorimetric analyses",
+ "total_score": 43.856613,
+ "lexical_score": 31.816653799999997,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.01715,
+ "matched_keywords": [
+ {
+ "keyword": "Enzyme Kinetics",
+ "score": 0.92068607
+ },
+ {
+ "keyword": "Metabolic Studies",
+ "score": 0.6174876
+ }
+ ]
+ },
+ {
+ "query": "enzyme kinetics",
+ "field": "Biochemistry, Genetics and Molecular Biology",
+ "rank": 2,
+ "topic_name": "Enzyme Structure and Function",
+ "total_score": 39.737343,
+ "lexical_score": 34.911674399999995,
+ "title_vector_score": 19.627647,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Enzyme Structure",
+ "score": 0.69982785
+ },
+ {
+ "keyword": "Protein Stability",
+ "score": 0.6470706
+ }
+ ]
+ },
+ {
+ "query": "enzyme kinetics",
+ "field": "Biochemistry, Genetics and Molecular Biology",
+ "rank": 3,
+ "topic_name": "Enzyme function and inhibition",
+ "total_score": 39.405273,
+ "lexical_score": 36.2734626,
+ "title_vector_score": 19.295578,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Enzyme",
+ "score": 0.6717517
+ },
+ {
+ "keyword": "Carbonic Anhydrases",
+ "score": 0.6030998
+ }
+ ]
+ },
+ {
+ "query": "cellular signaling pathways",
+ "field": "Biochemistry, Genetics and Molecular Biology",
+ "rank": 1,
+ "topic_name": "Signaling Pathways in Disease",
+ "total_score": 60.767296,
+ "lexical_score": 42.807796,
+ "title_vector_score": 23.418312,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Inflammatory Responses",
+ "score": 0.57825977
+ },
+ {
+ "keyword": "Transcriptional Regulation",
+ "score": 0.5253372
+ }
+ ]
+ },
+ {
+ "query": "cellular signaling pathways",
+ "field": "Biochemistry, Genetics and Molecular Biology",
+ "rank": 2,
+ "topic_name": "NF-κB Signaling Pathways",
+ "total_score": 59.973457,
+ "lexical_score": 55.755936999999996,
+ "title_vector_score": 22.624474,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "signaling",
+ "score": 0.6971512
+ },
+ {
+ "keyword": "transcription factors",
+ "score": 0.594415
+ }
+ ]
+ },
+ {
+ "query": "cellular signaling pathways",
+ "field": "Biochemistry, Genetics and Molecular Biology",
+ "rank": 3,
+ "topic_name": "Cytokine Signaling Pathways and Interactions",
+ "total_score": 55.663605,
+ "lexical_score": 46.3100932,
+ "title_vector_score": 21.563988,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "cytokine signaling",
+ "score": 0.75639343
+ },
+ {
+ "keyword": "tumor microenvironment",
+ "score": 0.5973523
+ }
+ ]
+ },
+ {
+ "query": "metabolic pathways",
+ "field": "Biochemistry, Genetics and Molecular Biology",
+ "rank": 1,
+ "topic_name": "Plant Gene Expression Analysis",
+ "total_score": 43.55708,
+ "lexical_score": 24.3322042,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.912567,
+ "matched_keywords": [
+ {
+ "keyword": "Metabolic Pathways",
+ "score": 0.91650265
+ },
+ {
+ "keyword": "Phenylpropanoid Pathway",
+ "score": 0.63790894
+ }
+ ]
+ },
+ {
+ "query": "metabolic pathways",
+ "field": "Biochemistry, Genetics and Molecular Biology",
+ "rank": 2,
+ "topic_name": "Cassava research and cyanide",
+ "total_score": 42.640114,
+ "lexical_score": 19.749800999999998,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.890312,
+ "matched_keywords": [
+ {
+ "keyword": "Metabolic Pathways",
+ "score": 0.9156125
+ },
+ {
+ "keyword": "Genomic Sequencing",
+ "score": 0.53835803
+ }
+ ]
+ },
+ {
+ "query": "metabolic pathways",
+ "field": "Biochemistry, Genetics and Molecular Biology",
+ "rank": 3,
+ "topic_name": "Nitrogen and Sulfur Effects on Brassica",
+ "total_score": 41.81973,
+ "lexical_score": 26.955116599999997,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.890312,
+ "matched_keywords": [
+ {
+ "keyword": "Metabolic Pathways",
+ "score": 0.9156125
+ },
+ {
+ "keyword": "Methionine Biosynthesis",
+ "score": 0.51797485
+ }
+ ]
+ },
+ {
+ "query": "genomic sequencing",
+ "field": "Biochemistry, Genetics and Molecular Biology",
+ "rank": 1,
+ "topic_name": "Cassava research and cyanide",
+ "total_score": 42.982582,
+ "lexical_score": 28.6710192,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.647053,
+ "matched_keywords": [
+ {
+ "keyword": "Genomic Sequencing",
+ "score": 0.94588214
+ },
+ {
+ "keyword": "Metabolic Pathways",
+ "score": 0.5339012
+ }
+ ]
+ },
+ {
+ "query": "genomic sequencing",
+ "field": "Biochemistry, Genetics and Molecular Biology",
+ "rank": 2,
+ "topic_name": "Entomopathogenic Microorganisms in Pest Control",
+ "total_score": 41.80233,
+ "lexical_score": 26.9367488,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.647053,
+ "matched_keywords": [
+ {
+ "keyword": "Genomic Sequencing",
+ "score": 0.94588214
+ },
+ {
+ "keyword": "Biological Control",
+ "score": 0.5322609
+ }
+ ]
+ },
+ {
+ "query": "genomic sequencing",
+ "field": "Biochemistry, Genetics and Molecular Biology",
+ "rank": 3,
+ "topic_name": "Plant Pathogens and Resistance",
+ "total_score": 34.387333,
+ "lexical_score": 20.3307444,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.855751,
+ "matched_keywords": [
+ {
+ "keyword": "genome sequencing",
+ "score": 0.95423
+ },
+ {
+ "keyword": "phylogenetic analysis",
+ "score": 0.68760806
+ }
+ ]
+ },
+ {
+ "query": "molecular cloning",
+ "field": "Biochemistry, Genetics and Molecular Biology",
+ "rank": 1,
+ "topic_name": "Collembola Taxonomy and Ecology Studies",
+ "total_score": 28.387888,
+ "lexical_score": 11.989916,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 19.743984,
+ "matched_keywords": [
+ {
+ "keyword": "molecular",
+ "score": 0.78975934
+ },
+ {
+ "keyword": "phylogeny",
+ "score": 0.62902707
+ }
+ ]
+ },
+ {
+ "query": "molecular cloning",
+ "field": "Biochemistry, Genetics and Molecular Biology",
+ "rank": 2,
+ "topic_name": "Diptera species taxonomy and behavior",
+ "total_score": 27.856802,
+ "lexical_score": 11.4531937,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 19.633038,
+ "matched_keywords": [
+ {
+ "keyword": "molecular data",
+ "score": 0.78532153
+ },
+ {
+ "keyword": "phylogeny",
+ "score": 0.62902707
+ }
+ ]
+ },
+ {
+ "query": "molecular cloning",
+ "field": "Biochemistry, Genetics and Molecular Biology",
+ "rank": 3,
+ "topic_name": "Medical Imaging Techniques and Applications",
+ "total_score": 27.763096,
+ "lexical_score": 10.9993153,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 19.734447,
+ "matched_keywords": [
+ {
+ "keyword": "molecular",
+ "score": 0.78937787
+ },
+ {
+ "keyword": "cancer",
+ "score": 0.5779419
+ }
+ ]
+ },
+ {
+ "query": "apoptosis mechanism",
+ "field": "Biochemistry, Genetics and Molecular Biology",
+ "rank": 1,
+ "topic_name": "Cell death mechanisms and regulation",
+ "total_score": 36.32728,
+ "lexical_score": 15.5002466,
+ "title_vector_score": 18.051414,
+ "description_vector_score": 8.109512,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Apoptosis",
+ "score": 0.74912643
+ },
+ {
+ "keyword": "Programmed Cell Death",
+ "score": 0.56827164
+ }
+ ]
+ },
+ {
+ "query": "apoptosis mechanism",
+ "field": "Biochemistry, Genetics and Molecular Biology",
+ "rank": 2,
+ "topic_name": "Erythrocyte Function and Pathophysiology",
+ "total_score": 31.766022,
+ "lexical_score": 11.938911,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 19.82711,
+ "matched_keywords": [
+ {
+ "keyword": "apoptosis",
+ "score": 0.79308444
+ },
+ {
+ "keyword": "mechanotransduction",
+ "score": 0.54465866
+ }
+ ]
+ },
+ {
+ "query": "apoptosis mechanism",
+ "field": "Biochemistry, Genetics and Molecular Biology",
+ "rank": 3,
+ "topic_name": "Nuclear Receptors and Signaling",
+ "total_score": 30.935928,
+ "lexical_score": 16.808040599999998,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 19.82711,
+ "matched_keywords": [
+ {
+ "keyword": "apoptosis",
+ "score": 0.79308444
+ },
+ {
+ "keyword": "mitochondrial targeting",
+ "score": 0.53280765
+ }
+ ]
+ },
+ {
+ "query": "mitochondrial DNA",
+ "field": "Biochemistry, Genetics and Molecular Biology",
+ "rank": 1,
+ "topic_name": "Mitochondrial Function and Pathology",
+ "total_score": 45.39144,
+ "lexical_score": 47.739074,
+ "title_vector_score": 20.22522,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Mitochondrial Fusion",
+ "score": 0.739151
+ },
+ {
+ "keyword": "Mitochondria",
+ "score": 0.73594666
+ }
+ ]
+ },
+ {
+ "query": "mitochondrial DNA",
+ "field": "Biochemistry, Genetics and Molecular Biology",
+ "rank": 2,
+ "topic_name": "Livestock and Poultry Management",
+ "total_score": 45.29133,
+ "lexical_score": 32.9844012,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.032093,
+ "matched_keywords": [
+ {
+ "keyword": "Mitochondrial DNA",
+ "score": 0.9212837
+ },
+ {
+ "keyword": "Ancient DNA",
+ "score": 0.66395694
+ }
+ ]
+ },
+ {
+ "query": "mitochondrial DNA",
+ "field": "Biochemistry, Genetics and Molecular Biology",
+ "rank": 3,
+ "topic_name": "Forensic and Genetic Research",
+ "total_score": 44.942337,
+ "lexical_score": 33.789078,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.058636,
+ "matched_keywords": [
+ {
+ "keyword": "Mitochondrial DNA",
+ "score": 0.92234546
+ },
+ {
+ "keyword": "Ancient DNA",
+ "score": 0.6656291
+ }
+ ]
+ },
+ {
+ "query": "epigenetic modifications",
+ "field": "Biochemistry, Genetics and Molecular Biology",
+ "rank": 1,
+ "topic_name": "Epigenetics and DNA Methylation",
+ "total_score": 47.469917,
+ "lexical_score": 32.9701509,
+ "title_vector_score": 21.148186,
+ "description_vector_score": 9.219589,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Epigenetic Reprogramming",
+ "score": 0.74975586
+ },
+ {
+ "keyword": "Epigenetic Therapy",
+ "score": 0.73680496
+ }
+ ]
+ },
+ {
+ "query": "epigenetic modifications",
+ "field": "Biochemistry, Genetics and Molecular Biology",
+ "rank": 2,
+ "topic_name": "RNA modifications and cancer",
+ "total_score": 44.058968,
+ "lexical_score": 25.166224,
+ "title_vector_score": 18.892746,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "mRNA modification",
+ "score": 0.72075146
+ },
+ {
+ "keyword": "epitranscriptome",
+ "score": 0.63543576
+ }
+ ]
+ },
+ {
+ "query": "epigenetic modifications",
+ "field": "Biochemistry, Genetics and Molecular Biology",
+ "rank": 3,
+ "topic_name": "Pluripotent Stem Cells Research",
+ "total_score": 31.949516,
+ "lexical_score": 16.659565,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 20.681602,
+ "matched_keywords": [
+ {
+ "keyword": "Epigenetic Remodeling",
+ "score": 0.82726413
+ },
+ {
+ "keyword": "Embryonic Stem Cells",
+ "score": 0.5567894
+ }
+ ]
+ },
+ {
+ "query": "proteomics analysis",
+ "field": "Biochemistry, Genetics and Molecular Biology",
+ "rank": 1,
+ "topic_name": "Advanced Proteomics Techniques and Applications",
+ "total_score": 41.69651,
+ "lexical_score": 50.2030914,
+ "title_vector_score": 18.71975,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Proteomics",
+ "score": 0.82025784
+ },
+ {
+ "keyword": "Phosphoproteomics",
+ "score": 0.7450574
+ }
+ ]
+ },
+ {
+ "query": "proteomics analysis",
+ "field": "Biochemistry, Genetics and Molecular Biology",
+ "rank": 2,
+ "topic_name": "Mass Spectrometry Techniques and Applications",
+ "total_score": 36.12903,
+ "lexical_score": 25.0635312,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 20.506447,
+ "matched_keywords": [
+ {
+ "keyword": "Proteomics",
+ "score": 0.82025784
+ },
+ {
+ "keyword": "Mass Spectrometry",
+ "score": 0.57806903
+ }
+ ]
+ },
+ {
+ "query": "proteomics analysis",
+ "field": "Biochemistry, Genetics and Molecular Biology",
+ "rank": 3,
+ "topic_name": "Venomous Animal Envenomation and Studies",
+ "total_score": 35.830055,
+ "lexical_score": 22.270996099999998,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 20.569546,
+ "matched_keywords": [
+ {
+ "keyword": "Proteomics",
+ "score": 0.82278186
+ },
+ {
+ "keyword": "Metalloproteinases",
+ "score": 0.5095889
+ }
+ ]
+ },
+ {
+ "query": "gene expression regulation",
+ "field": "Biochemistry, Genetics and Molecular Biology",
+ "rank": 1,
+ "topic_name": "Cancer-related gene regulation",
+ "total_score": 57.72177,
+ "lexical_score": 48.824546,
+ "title_vector_score": 22.21077,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Transcriptional Regulation",
+ "score": 0.79665756
+ },
+ {
+ "keyword": "Epigenetic Regulation",
+ "score": 0.6993955
+ }
+ ]
+ },
+ {
+ "query": "gene expression regulation",
+ "field": "Biochemistry, Genetics and Molecular Biology",
+ "rank": 2,
+ "topic_name": "Developmental Biology and Gene Regulation",
+ "total_score": 52.770927,
+ "lexical_score": 56.4021212,
+ "title_vector_score": 20.349388,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Gene Regulation",
+ "score": 0.85120136
+ },
+ {
+ "keyword": "Stem Cells",
+ "score": 0.54617184
+ }
+ ]
+ },
+ {
+ "query": "gene expression regulation",
+ "field": "Biochemistry, Genetics and Molecular Biology",
+ "rank": 3,
+ "topic_name": "RNA modifications and cancer",
+ "total_score": 49.181335,
+ "lexical_score": 32.969521400000005,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.919575,
+ "matched_keywords": [
+ {
+ "keyword": "gene expression regulation",
+ "score": 0.99678296
+ },
+ {
+ "keyword": "mRNA modification",
+ "score": 0.631958
+ }
+ ]
+ },
+ {
+ "query": "chromatin remodeling",
+ "field": "Biochemistry, Genetics and Molecular Biology",
+ "rank": 1,
+ "topic_name": "Chromatin Remodeling and Cancer",
+ "total_score": 101.09082,
+ "lexical_score": 89.10690249999999,
+ "title_vector_score": 22.90886,
+ "description_vector_score": 8.604851,
+ "keywords_vector_score": 22.454483,
+ "matched_keywords": [
+ {
+ "keyword": "Chromatin Remodeling",
+ "score": 0.89817935
+ },
+ {
+ "keyword": "Oncogenic Transformation",
+ "score": 0.6017774
+ }
+ ]
+ },
+ {
+ "query": "chromatin remodeling",
+ "field": "Biochemistry, Genetics and Molecular Biology",
+ "rank": 2,
+ "topic_name": "DNA Repair Mechanisms",
+ "total_score": 50.260277,
+ "lexical_score": 19.480948,
+ "title_vector_score": 19.425278,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 17.88686,
+ "matched_keywords": [
+ {
+ "keyword": "Chromatin",
+ "score": 0.7154744
+ },
+ {
+ "keyword": "Homologous Recombination",
+ "score": 0.61151123
+ }
+ ]
+ },
+ {
+ "query": "chromatin remodeling",
+ "field": "Biochemistry, Genetics and Molecular Biology",
+ "rank": 3,
+ "topic_name": "Cancer-related molecular mechanisms research",
+ "total_score": 33.200737,
+ "lexical_score": 18.3338,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 21.01205,
+ "matched_keywords": [
+ {
+ "keyword": "Chromatin Modification",
+ "score": 0.84048206
+ },
+ {
+ "keyword": "Cell Differentiation",
+ "score": 0.595712
+ }
+ ]
+ },
+ {
+ "query": "amino acid synthesis",
+ "field": "Biochemistry, Genetics and Molecular Biology",
+ "rank": 1,
+ "topic_name": "Amino Acid Enzymes and Metabolism",
+ "total_score": 62.84675,
+ "lexical_score": 78.2161565,
+ "title_vector_score": 21.099358,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Amino Acid Transporters",
+ "score": 0.6308963
+ },
+ {
+ "keyword": "Neuronal Function",
+ "score": 0.5545769
+ }
+ ]
+ },
+ {
+ "query": "amino acid synthesis",
+ "field": "Biochemistry, Genetics and Molecular Biology",
+ "rank": 2,
+ "topic_name": "RNA and protein synthesis mechanisms",
+ "total_score": 51.2728,
+ "lexical_score": 23.295534900000003,
+ "title_vector_score": 19.896584,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 19.188309,
+ "matched_keywords": [
+ {
+ "keyword": "Protein Synthesis",
+ "score": 0.76753235
+ },
+ {
+ "keyword": "RNA Structure",
+ "score": 0.5882225
+ }
+ ]
+ },
+ {
+ "query": "amino acid synthesis",
+ "field": "Biochemistry, Genetics and Molecular Biology",
+ "rank": 3,
+ "topic_name": "Muscle metabolism and nutrition",
+ "total_score": 48.547096,
+ "lexical_score": 32.7375579,
+ "title_vector_score": 0.0,
+ "description_vector_score": 7.778874,
+ "keywords_vector_score": 18.67873,
+ "matched_keywords": [
+ {
+ "keyword": "Muscle Protein Synthesis",
+ "score": 0.74714917
+ },
+ {
+ "keyword": "Amino Acids",
+ "score": 0.7058614
+ }
+ ]
+ },
+ {
+ "query": "nucleic acids",
+ "field": "Biochemistry, Genetics and Molecular Biology",
+ "rank": 1,
+ "topic_name": "DNA and Nucleic Acid Chemistry",
+ "total_score": 68.29529,
+ "lexical_score": 47.078707,
+ "title_vector_score": 21.833115,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.36023,
+ "matched_keywords": [
+ {
+ "keyword": "Nucleic Acids",
+ "score": 0.8944092
+ },
+ {
+ "keyword": "DNA Structure",
+ "score": 0.65876895
+ }
+ ]
+ },
+ {
+ "query": "nucleic acids",
+ "field": "Biochemistry, Genetics and Molecular Biology",
+ "rank": 2,
+ "topic_name": "Origins and Evolution of Life",
+ "total_score": 48.72356,
+ "lexical_score": 33.4871184,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.387249,
+ "matched_keywords": [
+ {
+ "keyword": "Nucleic Acids",
+ "score": 0.89549
+ },
+ {
+ "keyword": "Metabolism",
+ "score": 0.565506
+ }
+ ]
+ },
+ {
+ "query": "nucleic acids",
+ "field": "Biochemistry, Genetics and Molecular Biology",
+ "rank": 3,
+ "topic_name": "DNA and Biological Computing",
+ "total_score": 31.123568,
+ "lexical_score": 22.983898,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 19.316261,
+ "matched_keywords": [
+ {
+ "keyword": "Nucleic Acid Memory",
+ "score": 0.7726504
+ },
+ {
+ "keyword": "DNA Computing",
+ "score": 0.55998737
+ }
+ ]
+ },
+ {
+ "query": "cellular differentiation",
+ "field": "Biochemistry, Genetics and Molecular Biology",
+ "rank": 1,
+ "topic_name": "Cellular transport and secretion",
+ "total_score": 39.141167,
+ "lexical_score": 19.71646,
+ "title_vector_score": 19.424706,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Membrane Fusion",
+ "score": 0.5555369
+ },
+ {
+ "keyword": "Endocytosis",
+ "score": 0.5079549
+ }
+ ]
+ },
+ {
+ "query": "cellular differentiation",
+ "field": "Biochemistry, Genetics and Molecular Biology",
+ "rank": 2,
+ "topic_name": "TGF-β signaling in diseases",
+ "total_score": 32.10392,
+ "lexical_score": 15.475574,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 21.548813,
+ "matched_keywords": [
+ {
+ "keyword": "Cell Differentiation",
+ "score": 0.8619525
+ },
+ {
+ "keyword": "Immune Response",
+ "score": 0.5548439
+ }
+ ]
+ },
+ {
+ "query": "cellular differentiation",
+ "field": "Biochemistry, Genetics and Molecular Biology",
+ "rank": 3,
+ "topic_name": "Cancer-related molecular mechanisms research",
+ "total_score": 31.702156,
+ "lexical_score": 15.208849,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 21.55978,
+ "matched_keywords": [
+ {
+ "keyword": "Cell Differentiation",
+ "score": 0.8623912
+ },
+ {
+ "keyword": "Chromatin Modification",
+ "score": 0.5647113
+ }
+ ]
+ },
+ {
+ "query": "lipid metabolism",
+ "field": "Biochemistry, Genetics and Molecular Biology",
+ "rank": 1,
+ "topic_name": "Lipid metabolism and biosynthesis",
+ "total_score": 67.47669,
+ "lexical_score": 74.448386,
+ "title_vector_score": 21.648483,
+ "description_vector_score": 7.5921435,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Phospholipid Metabolism",
+ "score": 0.77782565
+ },
+ {
+ "keyword": "Lipid Droplets",
+ "score": 0.65147656
+ }
+ ]
+ },
+ {
+ "query": "lipid metabolism",
+ "field": "Biochemistry, Genetics and Molecular Biology",
+ "rank": 2,
+ "topic_name": "Cholesterol and Lipid Metabolism",
+ "total_score": 61.728767,
+ "lexical_score": 57.38696160000001,
+ "title_vector_score": 23.492699,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Metabolism",
+ "score": 0.7149976
+ },
+ {
+ "keyword": "Cholesterol",
+ "score": 0.70933914
+ }
+ ]
+ },
+ {
+ "query": "lipid metabolism",
+ "field": "Biochemistry, Genetics and Molecular Biology",
+ "rank": 3,
+ "topic_name": "Lipid metabolism and disorders",
+ "total_score": 60.251144,
+ "lexical_score": 58.236255500000006,
+ "title_vector_score": 22.015076,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Triglyceride Metabolism",
+ "score": 0.75659686
+ },
+ {
+ "keyword": "Lipoprotein Lipase",
+ "score": 0.6864319
+ }
+ ]
+ },
+ {
+ "query": "transcription factors",
+ "field": "Biochemistry, Genetics and Molecular Biology",
+ "rank": 1,
+ "topic_name": "FOXO transcription factor regulation",
+ "total_score": 53.282948,
+ "lexical_score": 55.5009572,
+ "title_vector_score": 20.232277,
+ "description_vector_score": 7.8844457,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "FoxO transcription factors",
+ "score": 0.7561391
+ },
+ {
+ "keyword": "oxidative stress",
+ "score": 0.6308899
+ }
+ ]
+ },
+ {
+ "query": "transcription factors",
+ "field": "Biochemistry, Genetics and Molecular Biology",
+ "rank": 2,
+ "topic_name": "Genomics and Chromatin Dynamics",
+ "total_score": 47.533134,
+ "lexical_score": 24.7027437,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.83039,
+ "matched_keywords": [
+ {
+ "keyword": "Transcription Factors",
+ "score": 0.91321564
+ },
+ {
+ "keyword": "Transcription",
+ "score": 0.691302
+ }
+ ]
+ },
+ {
+ "query": "transcription factors",
+ "field": "Biochemistry, Genetics and Molecular Biology",
+ "rank": 3,
+ "topic_name": "NF-κB Signaling Pathways",
+ "total_score": 47.192024,
+ "lexical_score": 22.239708,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.952316,
+ "matched_keywords": [
+ {
+ "keyword": "transcription factors",
+ "score": 0.99809265
+ },
+ {
+ "keyword": "inflammation",
+ "score": 0.61732864
+ }
+ ]
+ },
+ {
+ "query": "crop yield optimization",
+ "field": "Agricultural and Biological Sciences",
+ "rank": 1,
+ "topic_name": "Soil Management and Crop Yield",
+ "total_score": 60.141266,
+ "lexical_score": 58.57537750000001,
+ "title_vector_score": 20.824318,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Integrated Crop-Livestock Systems",
+ "score": 0.5820363
+ },
+ {
+ "keyword": "Soil Quality",
+ "score": 0.53799564
+ }
+ ]
+ },
+ {
+ "query": "crop yield optimization",
+ "field": "Agricultural and Biological Sciences",
+ "rank": 2,
+ "topic_name": "Crop Yield and Soil Fertility",
+ "total_score": 60.042847,
+ "lexical_score": 72.9192433,
+ "title_vector_score": 20.725899,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Maize Yield",
+ "score": 0.70199585
+ },
+ {
+ "keyword": "Crop Management",
+ "score": 0.6595891
+ }
+ ]
+ },
+ {
+ "query": "crop yield optimization",
+ "field": "Agricultural and Biological Sciences",
+ "rank": 3,
+ "topic_name": "Agronomic Practices and Intercropping Systems",
+ "total_score": 43.96107,
+ "lexical_score": 36.3481218,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 19.823296,
+ "matched_keywords": [
+ {
+ "keyword": "Crop Yield Stability",
+ "score": 0.79293185
+ },
+ {
+ "keyword": "Agricultural Productivity",
+ "score": 0.6390088
+ }
+ ]
+ },
+ {
+ "query": "plant physiology",
+ "field": "Agricultural and Biological Sciences",
+ "rank": 1,
+ "topic_name": "Plant Physiology and Cultivation Studies",
+ "total_score": 49.29617,
+ "lexical_score": 35.1453246,
+ "title_vector_score": 20.213394,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Carbohydrate Metabolism",
+ "score": 0.6087138
+ },
+ {
+ "keyword": "Nutrient Uptake",
+ "score": 0.58077115
+ }
+ ]
+ },
+ {
+ "query": "plant physiology",
+ "field": "Agricultural and Biological Sciences",
+ "rank": 2,
+ "topic_name": "Magnesium in Health and Disease",
+ "total_score": 43.321606,
+ "lexical_score": 32.233620099999996,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 21.608734,
+ "matched_keywords": [
+ {
+ "keyword": "Plant Physiology",
+ "score": 0.86434937
+ },
+ {
+ "keyword": "Inflammation",
+ "score": 0.57864124
+ }
+ ]
+ },
+ {
+ "query": "plant physiology",
+ "field": "Agricultural and Biological Sciences",
+ "rank": 3,
+ "topic_name": "Seed Germination and Physiology",
+ "total_score": 41.007996,
+ "lexical_score": 41.54641899999999,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 21.597767,
+ "matched_keywords": [
+ {
+ "keyword": "Plant Physiology",
+ "score": 0.8639107
+ },
+ {
+ "keyword": "Hormone Signaling",
+ "score": 0.5894496
+ }
+ ]
+ },
+ {
+ "query": "marine biology",
+ "field": "Agricultural and Biological Sciences",
+ "rank": 1,
+ "topic_name": "Ichthyology and Marine Biology",
+ "total_score": 54.003387,
+ "lexical_score": 47.8241315,
+ "title_vector_score": 21.91475,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Marine Ecosystems",
+ "score": 0.6811231
+ },
+ {
+ "keyword": "Ecology",
+ "score": 0.63409424
+ }
+ ]
+ },
+ {
+ "query": "marine biology",
+ "field": "Agricultural and Biological Sciences",
+ "rank": 2,
+ "topic_name": "Marine Biology and Environmental Chemistry",
+ "total_score": 51.140533,
+ "lexical_score": 43.796364999999994,
+ "title_vector_score": 21.843605,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Marine Environment",
+ "score": 0.6570778
+ }
+ ]
+ },
+ {
+ "query": "marine biology",
+ "field": "Agricultural and Biological Sciences",
+ "rank": 3,
+ "topic_name": "Marine and coastal plant biology",
+ "total_score": 50.857864,
+ "lexical_score": 45.81031,
+ "title_vector_score": 21.560936,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Marine Biodiversity",
+ "score": 0.7387187
+ },
+ {
+ "keyword": "Ocean Acidification",
+ "score": 0.5589511
+ }
+ ]
+ },
+ {
+ "query": "soil microbiology",
+ "field": "Agricultural and Biological Sciences",
+ "rank": 1,
+ "topic_name": "Alexander von Humboldt Studies",
+ "total_score": 40.452194,
+ "lexical_score": 32.9011113,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 19.590443,
+ "matched_keywords": [
+ {
+ "keyword": "Microbiology",
+ "score": 0.7836177
+ },
+ {
+ "keyword": "Soil Health",
+ "score": 0.733607
+ }
+ ]
+ },
+ {
+ "query": "soil microbiology",
+ "field": "Agricultural and Biological Sciences",
+ "rank": 2,
+ "topic_name": "Plant and soil sciences",
+ "total_score": 37.29834,
+ "lexical_score": 29.342834200000006,
+ "title_vector_score": 20.640259,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Soil Management",
+ "score": 0.6862984
+ },
+ {
+ "keyword": "Agroecology",
+ "score": 0.5819664
+ }
+ ]
+ },
+ {
+ "query": "soil microbiology",
+ "field": "Agricultural and Biological Sciences",
+ "rank": 3,
+ "topic_name": "Soil and Environmental Studies",
+ "total_score": 36.941284,
+ "lexical_score": 30.227837,
+ "title_vector_score": 20.283203,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Soil Evolution",
+ "score": 0.70626193
+ },
+ {
+ "keyword": "Microbial Communities",
+ "score": 0.68230563
+ }
+ ]
+ },
+ {
+ "query": "entomology study",
+ "field": "Agricultural and Biological Sciences",
+ "rank": 1,
+ "topic_name": "Forensic Entomology and Diptera Studies",
+ "total_score": 62.30506,
+ "lexical_score": 48.948952000000006,
+ "title_vector_score": 20.599823,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 18.728477,
+ "matched_keywords": [
+ {
+ "keyword": "Entomological Evidence",
+ "score": 0.74913913
+ },
+ {
+ "keyword": "Forensic Entomology",
+ "score": 0.74660236
+ }
+ ]
+ },
+ {
+ "query": "entomology study",
+ "field": "Agricultural and Biological Sciences",
+ "rank": 2,
+ "topic_name": "Omental and Epiploic Conditions",
+ "total_score": 26.434002,
+ "lexical_score": 9.186736,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 17.247265,
+ "matched_keywords": [
+ {
+ "keyword": "Anatomical Study",
+ "score": 0.68989056
+ }
+ ]
+ },
+ {
+ "query": "entomology study",
+ "field": "Agricultural and Biological Sciences",
+ "rank": 3,
+ "topic_name": "Entomological Studies and Ecology",
+ "total_score": 23.978119,
+ "lexical_score": 0.0,
+ "title_vector_score": 23.978119,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Epidemiology",
+ "score": 0.55684024
+ },
+ {
+ "keyword": "Forest Pest Management",
+ "score": 0.5046425
+ }
+ ]
+ },
+ {
+ "query": "botany research",
+ "field": "Agricultural and Biological Sciences",
+ "rank": 1,
+ "topic_name": "Botany and Plant Ecology Studies",
+ "total_score": 40.42621,
+ "lexical_score": 21.188026,
+ "title_vector_score": 20.600777,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Phytogeography",
+ "score": 0.54054517
+ },
+ {
+ "keyword": "Ecology",
+ "score": 0.53781766
+ }
+ ]
+ },
+ {
+ "query": "botany research",
+ "field": "Agricultural and Biological Sciences",
+ "rank": 2,
+ "topic_name": "Medicinal Plant Research",
+ "total_score": 30.148636,
+ "lexical_score": 10.1379967,
+ "title_vector_score": 21.55674,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Phytochemical Analysis",
+ "score": 0.5896848
+ },
+ {
+ "keyword": "Ethnobotanical Uses",
+ "score": 0.5867093
+ }
+ ]
+ },
+ {
+ "query": "botany research",
+ "field": "Agricultural and Biological Sciences",
+ "rank": 3,
+ "topic_name": "Botanical Research and Chemistry",
+ "total_score": 29.330103,
+ "lexical_score": 7.7731724,
+ "title_vector_score": 21.55693,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Molecular Phylogeny",
+ "score": 0.52138263
+ }
+ ]
+ },
+ {
+ "query": "sustainable agriculture",
+ "field": "Agricultural and Biological Sciences",
+ "rank": 1,
+ "topic_name": "Organic Food and Agriculture",
+ "total_score": 36.346436,
+ "lexical_score": 28.925446700000002,
+ "title_vector_score": 19.955902,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Organic Agriculture",
+ "score": 0.6980031
+ },
+ {
+ "keyword": "Food Supply Chains",
+ "score": 0.61919785
+ }
+ ]
+ },
+ {
+ "query": "sustainable agriculture",
+ "field": "Agricultural and Biological Sciences",
+ "rank": 2,
+ "topic_name": "Agriculture, Soil, Plant Science",
+ "total_score": 35.78663,
+ "lexical_score": 16.390533,
+ "title_vector_score": 19.396095,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Crop Yield",
+ "score": 0.5912488
+ },
+ {
+ "keyword": "Ecological Statistics",
+ "score": 0.526151
+ }
+ ]
+ },
+ {
+ "query": "sustainable agriculture",
+ "field": "Agricultural and Biological Sciences",
+ "rank": 3,
+ "topic_name": "Bioenergy crop production and management",
+ "total_score": 35.768227,
+ "lexical_score": 17.6334257,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 20.719433,
+ "matched_keywords": [
+ {
+ "keyword": "Sustainable Agriculture",
+ "score": 0.8287773
+ },
+ {
+ "keyword": "Bioenergy Crops",
+ "score": 0.58869296
+ }
+ ]
+ },
+ {
+ "query": "animal behavior",
+ "field": "Agricultural and Biological Sciences",
+ "rank": 1,
+ "topic_name": "Animal Behavior and Reproduction",
+ "total_score": 52.602802,
+ "lexical_score": 39.604575000000004,
+ "title_vector_score": 21.625404,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Behavioral Syndromes",
+ "score": 0.54524994
+ },
+ {
+ "keyword": "Reproductive Strategies",
+ "score": 0.51473874
+ }
+ ]
+ },
+ {
+ "query": "animal behavior",
+ "field": "Agricultural and Biological Sciences",
+ "rank": 2,
+ "topic_name": "Animal Ecology and Behavior Studies",
+ "total_score": 47.755516,
+ "lexical_score": 28.282362,
+ "title_vector_score": 19.473152,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "animal behavior",
+ "field": "Agricultural and Biological Sciences",
+ "rank": 3,
+ "topic_name": "Hemispheric Asymmetry in Neuroscience",
+ "total_score": 38.065697,
+ "lexical_score": 17.223715,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 20.84198,
+ "matched_keywords": [
+ {
+ "keyword": "Animal Behavior",
+ "score": 0.8336792
+ }
+ ]
+ },
+ {
+ "query": "ecology systems",
+ "field": "Agricultural and Biological Sciences",
+ "rank": 1,
+ "topic_name": "Forest, Soil, and Plant Ecology in China",
+ "total_score": 30.959627,
+ "lexical_score": 18.1810279,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 19.830608,
+ "matched_keywords": [
+ {
+ "keyword": "Environmental Systems",
+ "score": 0.79322433
+ },
+ {
+ "keyword": "Ecosystem Dynamics",
+ "score": 0.7072856
+ }
+ ]
+ },
+ {
+ "query": "ecology systems",
+ "field": "Agricultural and Biological Sciences",
+ "rank": 2,
+ "topic_name": "Energy and Environmental Systems",
+ "total_score": 29.903896,
+ "lexical_score": 12.93826,
+ "title_vector_score": 19.571571,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Environmental Sustainability",
+ "score": 0.5707385
+ }
+ ]
+ },
+ {
+ "query": "ecology systems",
+ "field": "Agricultural and Biological Sciences",
+ "rank": 3,
+ "topic_name": "Sustainability and Ecological Systems Analysis",
+ "total_score": 28.637054,
+ "lexical_score": 9.433411,
+ "title_vector_score": 19.203644,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Ecosystem Dynamics",
+ "score": 0.7078514
+ },
+ {
+ "keyword": "Ecological Network Analysis",
+ "score": 0.60264206
+ }
+ ]
+ },
+ {
+ "query": "pest management",
+ "field": "Agricultural and Biological Sciences",
+ "rank": 1,
+ "topic_name": "Insect Pest Control Strategies",
+ "total_score": 66.00866,
+ "lexical_score": 48.34588170000001,
+ "title_vector_score": 20.806961,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.697514,
+ "matched_keywords": [
+ {
+ "keyword": "Pest Management",
+ "score": 0.9079005
+ },
+ {
+ "keyword": "Insect Control",
+ "score": 0.72005844
+ }
+ ]
+ },
+ {
+ "query": "pest management",
+ "field": "Agricultural and Biological Sciences",
+ "rank": 2,
+ "topic_name": "Agricultural pest management studies",
+ "total_score": 54.033245,
+ "lexical_score": 32.708629,
+ "title_vector_score": 21.324615,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "pest management",
+ "field": "Agricultural and Biological Sciences",
+ "rank": 3,
+ "topic_name": "Insects and Parasite Interactions",
+ "total_score": 40.554733,
+ "lexical_score": 25.8159693,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.703392,
+ "matched_keywords": [
+ {
+ "keyword": "Pest Management",
+ "score": 0.9081357
+ },
+ {
+ "keyword": "Insecticide Resistance",
+ "score": 0.5880191
+ }
+ ]
+ },
+ {
+ "query": "forestry conservation",
+ "field": "Agricultural and Biological Sciences",
+ "rank": 1,
+ "topic_name": "Forest Management and Policy",
+ "total_score": 38.561028,
+ "lexical_score": 23.8183433,
+ "title_vector_score": 18.686752,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "European Forestry",
+ "score": 0.6749942
+ },
+ {
+ "keyword": "Biodiversity Conservation",
+ "score": 0.6622658
+ }
+ ]
+ },
+ {
+ "query": "forestry conservation",
+ "field": "Agricultural and Biological Sciences",
+ "rank": 2,
+ "topic_name": "Forest Ecology and Conservation",
+ "total_score": 38.140984,
+ "lexical_score": 33.279505,
+ "title_vector_score": 20.508461,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Soil Conservation",
+ "score": 0.6645991
+ },
+ {
+ "keyword": "Biodiversity Conservation",
+ "score": 0.6622658
+ }
+ ]
+ },
+ {
+ "query": "forestry conservation",
+ "field": "Agricultural and Biological Sciences",
+ "rank": 3,
+ "topic_name": "Conservation Techniques and Studies",
+ "total_score": 36.465187,
+ "lexical_score": 29.08559,
+ "title_vector_score": 18.832664,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Conservation",
+ "score": 0.6962738
+ },
+ {
+ "keyword": "Environmental Monitoring",
+ "score": 0.50092953
+ }
+ ]
+ },
+ {
+ "query": "photosynthesis mechanism",
+ "field": "Agricultural and Biological Sciences",
+ "rank": 1,
+ "topic_name": "Photosynthetic Processes and Mechanisms",
+ "total_score": 36.444523,
+ "lexical_score": 7.242616,
+ "title_vector_score": 21.30497,
+ "description_vector_score": 7.8969383,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Photosynthetic Acclimation",
+ "score": 0.6881676
+ },
+ {
+ "keyword": "Photoinhibition",
+ "score": 0.55093384
+ }
+ ]
+ },
+ {
+ "query": "photosynthesis mechanism",
+ "field": "Agricultural and Biological Sciences",
+ "rank": 2,
+ "topic_name": "Heat Transfer Mechanisms",
+ "total_score": 19.120483,
+ "lexical_score": 0.0,
+ "title_vector_score": 19.120483,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "photosynthesis mechanism",
+ "field": "Agricultural and Biological Sciences",
+ "rank": 3,
+ "topic_name": "Metalloenzymes and iron-sulfur proteins",
+ "total_score": 18.780296,
+ "lexical_score": 0.0,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 18.780296,
+ "matched_keywords": [
+ {
+ "keyword": "Photosynthetic Systems",
+ "score": 0.7512118
+ },
+ {
+ "keyword": "Enzyme Structure-Function",
+ "score": 0.6088155
+ }
+ ]
+ },
+ {
+ "query": "biodiversity preservation",
+ "field": "Agricultural and Biological Sciences",
+ "rank": 1,
+ "topic_name": "Geography and Environmental Studies",
+ "total_score": 40.00739,
+ "lexical_score": 30.261714,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 19.99305,
+ "matched_keywords": [
+ {
+ "keyword": "Biodiversity Preservation",
+ "score": 0.799722
+ },
+ {
+ "keyword": "Environmental Conservation",
+ "score": 0.6976916
+ }
+ ]
+ },
+ {
+ "query": "biodiversity preservation",
+ "field": "Agricultural and Biological Sciences",
+ "rank": 2,
+ "topic_name": "Herbal Medicine and Trade Cooperation",
+ "total_score": 32.167374,
+ "lexical_score": 12.680800600000001,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.87864,
+ "matched_keywords": [
+ {
+ "keyword": "biodiversity conservation",
+ "score": 0.95514554
+ },
+ {
+ "keyword": "sustainable development",
+ "score": 0.63312787
+ }
+ ]
+ },
+ {
+ "query": "biodiversity preservation",
+ "field": "Agricultural and Biological Sciences",
+ "rank": 3,
+ "topic_name": "Polar Research and Ecology",
+ "total_score": 29.463167,
+ "lexical_score": 13.576444,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 19.692326,
+ "matched_keywords": [
+ {
+ "keyword": "biodiversity",
+ "score": 0.787693
+ },
+ {
+ "keyword": "ecology",
+ "score": 0.60711795
+ }
+ ]
+ },
+ {
+ "query": "aquaculture techniques",
+ "field": "Agricultural and Biological Sciences",
+ "rank": 1,
+ "topic_name": "Aquaculture Nutrition and Growth",
+ "total_score": 62.933506,
+ "lexical_score": 40.3245135,
+ "title_vector_score": 21.313744,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 19.905155,
+ "matched_keywords": [
+ {
+ "keyword": "Aquaculture",
+ "score": 0.7962062
+ },
+ {
+ "keyword": "Fish Health",
+ "score": 0.6012942
+ }
+ ]
+ },
+ {
+ "query": "aquaculture techniques",
+ "field": "Agricultural and Biological Sciences",
+ "rank": 2,
+ "topic_name": "Fisheries and Aquaculture Studies",
+ "total_score": 41.48664,
+ "lexical_score": 21.714607,
+ "title_vector_score": 19.772034,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Agriculture",
+ "score": 0.5538648
+ },
+ {
+ "keyword": "Water Management",
+ "score": 0.5343526
+ }
+ ]
+ },
+ {
+ "query": "aquaculture techniques",
+ "field": "Agricultural and Biological Sciences",
+ "rank": 3,
+ "topic_name": "Aquaculture disease management and microbiota",
+ "total_score": 39.73059,
+ "lexical_score": 38.987125500000005,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 19.905155,
+ "matched_keywords": [
+ {
+ "keyword": "Aquaculture",
+ "score": 0.7962062
+ },
+ {
+ "keyword": "Fish Immunology",
+ "score": 0.58590823
+ }
+ ]
+ },
+ {
+ "query": "agronomy practices",
+ "field": "Agricultural and Biological Sciences",
+ "rank": 1,
+ "topic_name": "Agricultural Research and Practices",
+ "total_score": 35.121037,
+ "lexical_score": 17.3531907,
+ "title_vector_score": 20.876007,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Agricultural Sustainability",
+ "score": 0.5550601
+ },
+ {
+ "keyword": "Smallholder Farming",
+ "score": 0.5542908
+ }
+ ]
+ },
+ {
+ "query": "agronomy practices",
+ "field": "Agricultural and Biological Sciences",
+ "rank": 2,
+ "topic_name": "Agricultural Economics and Practices",
+ "total_score": 35.027958,
+ "lexical_score": 17.2084043,
+ "title_vector_score": 20.782928,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Agriculture",
+ "score": 0.5682144
+ }
+ ]
+ },
+ {
+ "query": "agronomy practices",
+ "field": "Agricultural and Biological Sciences",
+ "rank": 3,
+ "topic_name": "Agricultural Systems and Practices",
+ "total_score": 34.616543,
+ "lexical_score": 14.2450285,
+ "title_vector_score": 20.371513,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Agricultural Heritage Systems",
+ "score": 0.54648334
+ },
+ {
+ "keyword": "Integrated Farming Systems",
+ "score": 0.51905566
+ }
+ ]
+ },
+ {
+ "query": "seed germination",
+ "field": "Agricultural and Biological Sciences",
+ "rank": 1,
+ "topic_name": "Seed Germination and Physiology",
+ "total_score": 92.05727,
+ "lexical_score": 97.81537800000001,
+ "title_vector_score": 22.42878,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 20.900948,
+ "matched_keywords": [
+ {
+ "keyword": "Germination",
+ "score": 0.83603793
+ },
+ {
+ "keyword": "Seed Dormancy",
+ "score": 0.66525394
+ }
+ ]
+ },
+ {
+ "query": "seed germination",
+ "field": "Agricultural and Biological Sciences",
+ "rank": 2,
+ "topic_name": "Magnetic and Electromagnetic Effects",
+ "total_score": 48.786186,
+ "lexical_score": 40.7897367,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.952461,
+ "matched_keywords": [
+ {
+ "keyword": "Seed Germination",
+ "score": 0.91809845
+ },
+ {
+ "keyword": "Plant Growth",
+ "score": 0.58194095
+ }
+ ]
+ },
+ {
+ "query": "seed germination",
+ "field": "Agricultural and Biological Sciences",
+ "rank": 3,
+ "topic_name": "Seed and Plant Biochemistry",
+ "total_score": 42.180923,
+ "lexical_score": 23.561312,
+ "title_vector_score": 18.619614,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "horticulture science",
+ "field": "Agricultural and Biological Sciences",
+ "rank": 1,
+ "topic_name": "Plant Growth and Agriculture Techniques",
+ "total_score": 37.74707,
+ "lexical_score": 27.9734862,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 20.461464,
+ "matched_keywords": [
+ {
+ "keyword": "Horticulture",
+ "score": 0.81845856
+ },
+ {
+ "keyword": "Hydroponics",
+ "score": 0.60293454
+ }
+ ]
+ },
+ {
+ "query": "horticulture science",
+ "field": "Agricultural and Biological Sciences",
+ "rank": 2,
+ "topic_name": "Agriculture, Soil, Plant Science",
+ "total_score": 34.367313,
+ "lexical_score": 13.498936,
+ "title_vector_score": 20.868378,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Ecological Statistics",
+ "score": 0.5362027
+ },
+ {
+ "keyword": "Crop Yield",
+ "score": 0.5237605
+ }
+ ]
+ },
+ {
+ "query": "horticulture science",
+ "field": "Agricultural and Biological Sciences",
+ "rank": 3,
+ "topic_name": "Plant Growth Enhancement Techniques",
+ "total_score": 25.504812,
+ "lexical_score": 7.04241,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 18.462402,
+ "matched_keywords": [
+ {
+ "keyword": "Horticultural Crops",
+ "score": 0.7384961
+ },
+ {
+ "keyword": "Crop Management",
+ "score": 0.55623627
+ }
+ ]
+ },
+ {
+ "query": "wildlife ecology",
+ "field": "Agricultural and Biological Sciences",
+ "rank": 1,
+ "topic_name": "Wildlife Ecology and Conservation",
+ "total_score": 59.039337,
+ "lexical_score": 60.891601,
+ "title_vector_score": 23.644714,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Human-Wildlife Conflict",
+ "score": 0.5929591
+ },
+ {
+ "keyword": "Habitat Selection",
+ "score": 0.572169
+ }
+ ]
+ },
+ {
+ "query": "wildlife ecology",
+ "field": "Agricultural and Biological Sciences",
+ "rank": 2,
+ "topic_name": "Conservation, Ecology, Wildlife Education",
+ "total_score": 57.146294,
+ "lexical_score": 44.971123,
+ "title_vector_score": 21.75167,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Conservation Biology",
+ "score": 0.6617572
+ },
+ {
+ "keyword": "Applied Ecology",
+ "score": 0.64688617
+ }
+ ]
+ },
+ {
+ "query": "wildlife ecology",
+ "field": "Agricultural and Biological Sciences",
+ "rank": 3,
+ "topic_name": "Polar Research and Ecology",
+ "total_score": 35.38373,
+ "lexical_score": 25.843977000000002,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 21.073246,
+ "matched_keywords": [
+ {
+ "keyword": "ecology",
+ "score": 0.84292984
+ },
+ {
+ "keyword": "biogeography",
+ "score": 0.7040685
+ }
+ ]
+ },
+ {
+ "query": "plant pathology",
+ "field": "Agricultural and Biological Sciences",
+ "rank": 1,
+ "topic_name": "Plant Pathogens and Resistance",
+ "total_score": 54.948647,
+ "lexical_score": 25.767708499999998,
+ "title_vector_score": 20.629578,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 20.969772,
+ "matched_keywords": [
+ {
+ "keyword": "plant pathogens",
+ "score": 0.8387909
+ },
+ {
+ "keyword": "disease epidemiology",
+ "score": 0.69704944
+ }
+ ]
+ },
+ {
+ "query": "plant pathology",
+ "field": "Agricultural and Biological Sciences",
+ "rank": 2,
+ "topic_name": "Plant Reproductive Biology",
+ "total_score": 35.3441,
+ "lexical_score": 14.75534,
+ "title_vector_score": 20.58876,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Fertilization Mechanisms",
+ "score": 0.5203082
+ }
+ ]
+ },
+ {
+ "query": "plant pathology",
+ "field": "Agricultural and Biological Sciences",
+ "rank": 3,
+ "topic_name": "Plant Pathogenic Bacteria Studies",
+ "total_score": 34.49424,
+ "lexical_score": 24.325587499999997,
+ "title_vector_score": 21.144943,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Plant Pathogenic Bacteria",
+ "score": 0.74249524
+ },
+ {
+ "keyword": "Phyllosphere Pathogens",
+ "score": 0.6081479
+ }
+ ]
+ },
+ {
+ "query": "livestock breeding",
+ "field": "Agricultural and Biological Sciences",
+ "rank": 1,
+ "topic_name": "Agriculture and Biological Studies",
+ "total_score": 45.078156,
+ "lexical_score": 35.9635524,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 21.955235,
+ "matched_keywords": [
+ {
+ "keyword": "Livestock Breeding",
+ "score": 0.8782094
+ },
+ {
+ "keyword": "Sustainable Farming",
+ "score": 0.5470874
+ }
+ ]
+ },
+ {
+ "query": "livestock breeding",
+ "field": "Agricultural and Biological Sciences",
+ "rank": 2,
+ "topic_name": "Livestock Farming and Management",
+ "total_score": 40.38031,
+ "lexical_score": 36.327276,
+ "title_vector_score": 20.270615,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Livestock Production",
+ "score": 0.7144763
+ },
+ {
+ "keyword": "Beef Cattle",
+ "score": 0.60343677
+ }
+ ]
+ },
+ {
+ "query": "livestock breeding",
+ "field": "Agricultural and Biological Sciences",
+ "rank": 3,
+ "topic_name": "Livestock and Poultry Management",
+ "total_score": 38.969826,
+ "lexical_score": 20.109695,
+ "title_vector_score": 18.86013,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Indigenous Breeds",
+ "score": 0.6207619
+ },
+ {
+ "keyword": "Family Poultry",
+ "score": 0.5629819
+ }
+ ]
+ },
+ {
+ "query": "climate change mitigation",
+ "field": "Environmental Science",
+ "rank": 1,
+ "topic_name": "Climate Change, Adaptation, Migration",
+ "total_score": 52.884407,
+ "lexical_score": 55.1716799,
+ "title_vector_score": 17.804222,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Climate Change",
+ "score": 0.6623166
+ }
+ ]
+ },
+ {
+ "query": "climate change mitigation",
+ "field": "Environmental Science",
+ "rank": 2,
+ "topic_name": "Climate Change and Environmental Impact",
+ "total_score": 49.418724,
+ "lexical_score": 49.5296604,
+ "title_vector_score": 17.390518,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Climate Change",
+ "score": 0.6634674
+ },
+ {
+ "keyword": "Carbon Emissions",
+ "score": 0.6080971
+ }
+ ]
+ },
+ {
+ "query": "climate change mitigation",
+ "field": "Environmental Science",
+ "rank": 3,
+ "topic_name": "Renewable Energy and Sustainability",
+ "total_score": 46.130978,
+ "lexical_score": 35.8450884,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.969788,
+ "matched_keywords": [
+ {
+ "keyword": "Climate Change Mitigation",
+ "score": 0.9187915
+ },
+ {
+ "keyword": "Environmental Impact",
+ "score": 0.55702466
+ }
+ ]
+ },
+ {
+ "query": "renewable resource management",
+ "field": "Environmental Science",
+ "rank": 1,
+ "topic_name": "Mining and Resource Management",
+ "total_score": 50.374813,
+ "lexical_score": 42.1692085,
+ "title_vector_score": 20.45391,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Resource Conflict",
+ "score": 0.5574443
+ },
+ {
+ "keyword": "Sustainable Development",
+ "score": 0.5460383
+ }
+ ]
+ },
+ {
+ "query": "renewable resource management",
+ "field": "Environmental Science",
+ "rank": 2,
+ "topic_name": "Renewable Energy and Sustainability",
+ "total_score": 40.177536,
+ "lexical_score": 33.2528924,
+ "title_vector_score": 19.0934,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Renewable Energy",
+ "score": 0.67947006
+ },
+ {
+ "keyword": "Sustainability",
+ "score": 0.53976315
+ }
+ ]
+ },
+ {
+ "query": "renewable resource management",
+ "field": "Environmental Science",
+ "rank": 3,
+ "topic_name": "Ottoman Empire History and Society",
+ "total_score": 32.62732,
+ "lexical_score": 17.9682893,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 20.547771,
+ "matched_keywords": [
+ {
+ "keyword": "resource management",
+ "score": 0.82191086
+ },
+ {
+ "keyword": "environmental restoration",
+ "score": 0.598821
+ }
+ ]
+ },
+ {
+ "query": "air pollution monitoring",
+ "field": "Environmental Science",
+ "rank": 1,
+ "topic_name": "Air Quality Monitoring and Forecasting",
+ "total_score": 77.97052,
+ "lexical_score": 67.7668803,
+ "title_vector_score": 21.534615,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 21.53991,
+ "matched_keywords": [
+ {
+ "keyword": "Air Quality Monitoring",
+ "score": 0.8615964
+ },
+ {
+ "keyword": "Environmental Monitoring",
+ "score": 0.75810367
+ }
+ ]
+ },
+ {
+ "query": "air pollution monitoring",
+ "field": "Environmental Science",
+ "rank": 2,
+ "topic_name": "Air Quality and Health Impacts",
+ "total_score": 46.453064,
+ "lexical_score": 56.01948829999999,
+ "title_vector_score": 19.105034,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Air Pollution",
+ "score": 0.73658246
+ },
+ {
+ "keyword": "Fine Particulate Air Pollution",
+ "score": 0.67365265
+ }
+ ]
+ },
+ {
+ "query": "air pollution monitoring",
+ "field": "Environmental Science",
+ "rank": 3,
+ "topic_name": "Environmental and Air Quality Management",
+ "total_score": 37.787273,
+ "lexical_score": 35.245582999999996,
+ "title_vector_score": 19.786148,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Air Quality Management",
+ "score": 0.7510783
+ },
+ {
+ "keyword": "Environmental Policy",
+ "score": 0.5464134
+ }
+ ]
+ },
+ {
+ "query": "microplastics in oceans",
+ "field": "Environmental Science",
+ "rank": 1,
+ "topic_name": "Microplastics and Plastic Pollution",
+ "total_score": 72.27136,
+ "lexical_score": 51.16721636,
+ "title_vector_score": 20.683174,
+ "description_vector_score": 7.7720075,
+ "keywords_vector_score": 18.64996,
+ "matched_keywords": [
+ {
+ "keyword": "Microplastics",
+ "score": 0.7459984
+ },
+ {
+ "keyword": "Plastic Debris",
+ "score": 0.52976227
+ }
+ ]
+ },
+ {
+ "query": "microplastics in oceans",
+ "field": "Environmental Science",
+ "rank": 2,
+ "topic_name": "Heavy metals in environment",
+ "total_score": 25.44529,
+ "lexical_score": 8.452643,
+ "title_vector_score": 16.992645,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "microplastics in oceans",
+ "field": "Environmental Science",
+ "rank": 3,
+ "topic_name": "Microbial Community Ecology and Physiology",
+ "total_score": 17.511679,
+ "lexical_score": 0.51713806,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 16.994541,
+ "matched_keywords": [
+ {
+ "keyword": "Ocean Microbiome",
+ "score": 0.6797816
+ },
+ {
+ "keyword": "Marine Microbes",
+ "score": 0.5842044
+ }
+ ]
+ },
+ {
+ "query": "deforestation rates",
+ "field": "Environmental Science",
+ "rank": 1,
+ "topic_name": "Oil Palm Production and Sustainability",
+ "total_score": 31.839062,
+ "lexical_score": 22.2092619,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 17.000263,
+ "matched_keywords": [
+ {
+ "keyword": "Deforestation",
+ "score": 0.6800105
+ },
+ {
+ "keyword": "Land Use Change",
+ "score": 0.51913834
+ }
+ ]
+ },
+ {
+ "query": "deforestation rates",
+ "field": "Environmental Science",
+ "rank": 2,
+ "topic_name": "Radioactive Decay and Measurement Techniques",
+ "total_score": 28.001917,
+ "lexical_score": 17.018933,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 17.657978,
+ "matched_keywords": [
+ {
+ "keyword": "Decay Rates",
+ "score": 0.70631915
+ },
+ {
+ "keyword": "Nuclear Decay Parameters",
+ "score": 0.51931
+ }
+ ]
+ },
+ {
+ "query": "deforestation rates",
+ "field": "Environmental Science",
+ "rank": 3,
+ "topic_name": "CO2 Sequestration and Geologic Interactions",
+ "total_score": 28.000053,
+ "lexical_score": 10.764871,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 17.235184,
+ "matched_keywords": [
+ {
+ "keyword": "Weathering Rates",
+ "score": 0.68940735
+ }
+ ]
+ },
+ {
+ "query": "waste management systems",
+ "field": "Environmental Science",
+ "rank": 1,
+ "topic_name": "Waste Management and Recycling",
+ "total_score": 52.762753,
+ "lexical_score": 60.2795578,
+ "title_vector_score": 22.448616,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Waste Management",
+ "score": 0.81004715
+ },
+ {
+ "keyword": "Plastic Waste",
+ "score": 0.61737317
+ }
+ ]
+ },
+ {
+ "query": "waste management systems",
+ "field": "Environmental Science",
+ "rank": 2,
+ "topic_name": "Waste Management and Environmental Impact",
+ "total_score": 47.910988,
+ "lexical_score": 55.438098000000004,
+ "title_vector_score": 20.234184,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Waste Management",
+ "score": 0.80997723
+ },
+ {
+ "keyword": "Coal Waste",
+ "score": 0.5679347
+ }
+ ]
+ },
+ {
+ "query": "waste management systems",
+ "field": "Environmental Science",
+ "rank": 3,
+ "topic_name": "Quality and Management Systems",
+ "total_score": 40.50564,
+ "lexical_score": 38.7638874,
+ "title_vector_score": 19.968872,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Management Systems",
+ "score": 0.69611484
+ },
+ {
+ "keyword": "Environmental Management",
+ "score": 0.64213055
+ }
+ ]
+ },
+ {
+ "query": "carbon footprint reduction",
+ "field": "Environmental Science",
+ "rank": 1,
+ "topic_name": "CO2 Reduction Techniques and Catalysts",
+ "total_score": 58.483612,
+ "lexical_score": 53.123962,
+ "title_vector_score": 18.04741,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 18.774414,
+ "matched_keywords": [
+ {
+ "keyword": "CO2 Reduction",
+ "score": 0.75097656
+ },
+ {
+ "keyword": "Selective Reduction",
+ "score": 0.57633334
+ }
+ ]
+ },
+ {
+ "query": "carbon footprint reduction",
+ "field": "Environmental Science",
+ "rank": 2,
+ "topic_name": "Climate Change and Sustainable Development",
+ "total_score": 41.11031,
+ "lexical_score": 33.4763802,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 18.619919,
+ "matched_keywords": [
+ {
+ "keyword": "Carbon Footprint",
+ "score": 0.74479675
+ },
+ {
+ "keyword": "Emissions Trading",
+ "score": 0.56912357
+ }
+ ]
+ },
+ {
+ "query": "carbon footprint reduction",
+ "field": "Environmental Science",
+ "rank": 3,
+ "topic_name": "Food Waste Reduction and Sustainability",
+ "total_score": 36.461426,
+ "lexical_score": 34.602351,
+ "title_vector_score": 17.211609,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Waste Reduction",
+ "score": 0.6740977
+ },
+ {
+ "keyword": "Environmental Impact",
+ "score": 0.5449893
+ }
+ ]
+ },
+ {
+ "query": "biodiversity loss",
+ "field": "Environmental Science",
+ "rank": 1,
+ "topic_name": "Aquatic Ecosystems and Biodiversity",
+ "total_score": 42.438232,
+ "lexical_score": 48.0904558,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 21.87894,
+ "matched_keywords": [
+ {
+ "keyword": "Biodiversity Loss",
+ "score": 0.87515765
+ }
+ ]
+ },
+ {
+ "query": "biodiversity loss",
+ "field": "Environmental Science",
+ "rank": 2,
+ "topic_name": "Amphibian and Reptile Biology",
+ "total_score": 40.402107,
+ "lexical_score": 27.6759564,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 21.90612,
+ "matched_keywords": [
+ {
+ "keyword": "Biodiversity Loss",
+ "score": 0.87624484
+ },
+ {
+ "keyword": "Species Extinction",
+ "score": 0.68949634
+ }
+ ]
+ },
+ {
+ "query": "biodiversity loss",
+ "field": "Environmental Science",
+ "rank": 3,
+ "topic_name": "Aquatic Invertebrate Ecology and Behavior",
+ "total_score": 40.385582,
+ "lexical_score": 28.563273000000002,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 21.889591,
+ "matched_keywords": [
+ {
+ "keyword": "Biodiversity Loss",
+ "score": 0.87558365
+ },
+ {
+ "keyword": "Environmental Impacts",
+ "score": 0.56898373
+ }
+ ]
+ },
+ {
+ "query": "global warming impacts",
+ "field": "Environmental Science",
+ "rank": 1,
+ "topic_name": "Climate Change and Health Impacts",
+ "total_score": 38.00905,
+ "lexical_score": 32.841727,
+ "title_vector_score": 20.506554,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Global Warming",
+ "score": 0.7228686
+ },
+ {
+ "keyword": "Climate Change",
+ "score": 0.69163895
+ }
+ ]
+ },
+ {
+ "query": "global warming impacts",
+ "field": "Environmental Science",
+ "rank": 2,
+ "topic_name": "Climate change impacts on agriculture",
+ "total_score": 37.469563,
+ "lexical_score": 39.2638643,
+ "title_vector_score": 19.570618,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Global Warming",
+ "score": 0.72103757
+ },
+ {
+ "keyword": "Climate Change",
+ "score": 0.6914355
+ }
+ ]
+ },
+ {
+ "query": "global warming impacts",
+ "field": "Environmental Science",
+ "rank": 3,
+ "topic_name": "Climate Change and Environmental Impact",
+ "total_score": 36.856937,
+ "lexical_score": 19.7803447,
+ "title_vector_score": 20.778923,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Global Warming",
+ "score": 0.7210312
+ },
+ {
+ "keyword": "Climate Change",
+ "score": 0.69144183
+ }
+ ]
+ },
+ {
+ "query": "ecosystem restoration",
+ "field": "Environmental Science",
+ "rank": 1,
+ "topic_name": "Animal Ecology and Behavior Studies",
+ "total_score": 42.403854,
+ "lexical_score": 19.261449499999998,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.142403,
+ "matched_keywords": [
+ {
+ "keyword": "Ecosystem Restoration",
+ "score": 0.9256961
+ },
+ {
+ "keyword": "Island Ecosystems",
+ "score": 0.64696246
+ }
+ ]
+ },
+ {
+ "query": "ecosystem restoration",
+ "field": "Environmental Science",
+ "rank": 2,
+ "topic_name": "Seedling growth and survival studies",
+ "total_score": 41.479225,
+ "lexical_score": 26.1330485,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 21.417683,
+ "matched_keywords": [
+ {
+ "keyword": "Ecosystem Recovery",
+ "score": 0.8567073
+ },
+ {
+ "keyword": "Forest Restoration",
+ "score": 0.76659775
+ }
+ ]
+ },
+ {
+ "query": "ecosystem restoration",
+ "field": "Environmental Science",
+ "rank": 3,
+ "topic_name": "Ecosystem dynamics and resilience",
+ "total_score": 40.906937,
+ "lexical_score": 35.5286126,
+ "title_vector_score": 18.402748,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Ecosystem Resilience",
+ "score": 0.73011655
+ },
+ {
+ "keyword": "Ecological Indicators",
+ "score": 0.52720004
+ }
+ ]
+ },
+ {
+ "query": "water quality analysis",
+ "field": "Environmental Science",
+ "rank": 1,
+ "topic_name": "Water Quality Monitoring Technologies",
+ "total_score": 72.66908,
+ "lexical_score": 56.855761199999996,
+ "title_vector_score": 21.193008,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 20.44366,
+ "matched_keywords": [
+ {
+ "keyword": "Water Quality Monitoring",
+ "score": 0.81774646
+ },
+ {
+ "keyword": "Fish Behavior Analysis",
+ "score": 0.6156247
+ }
+ ]
+ },
+ {
+ "query": "water quality analysis",
+ "field": "Environmental Science",
+ "rank": 2,
+ "topic_name": "Water Quality Monitoring and Analysis",
+ "total_score": 60.328907,
+ "lexical_score": 61.7766112,
+ "title_vector_score": 22.884636,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Water Quality",
+ "score": 0.7848511
+ },
+ {
+ "keyword": "Environmental Analysis",
+ "score": 0.72517014
+ }
+ ]
+ },
+ {
+ "query": "water quality analysis",
+ "field": "Environmental Science",
+ "rank": 3,
+ "topic_name": "Water Quality and Pollution Assessment",
+ "total_score": 49.069744,
+ "lexical_score": 62.779350099999995,
+ "title_vector_score": 20.737152,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Water Quality Index",
+ "score": 0.72672147
+ },
+ {
+ "keyword": "Groundwater Quality Assessment",
+ "score": 0.66582614
+ }
+ ]
+ },
+ {
+ "query": "urban sustainability",
+ "field": "Environmental Science",
+ "rank": 1,
+ "topic_name": "Sustainable Urban and Rural Development",
+ "total_score": 57.233727,
+ "lexical_score": 35.0356325,
+ "title_vector_score": 20.144539,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.558434,
+ "matched_keywords": [
+ {
+ "keyword": "Urban Sustainability",
+ "score": 0.9023374
+ },
+ {
+ "keyword": "Sustainable Development",
+ "score": 0.63356656
+ }
+ ]
+ },
+ {
+ "query": "urban sustainability",
+ "field": "Environmental Science",
+ "rank": 2,
+ "topic_name": "Urban Agriculture and Sustainability",
+ "total_score": 52.467175,
+ "lexical_score": 52.91098409999999,
+ "title_vector_score": 21.413689,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Sustainability",
+ "score": 0.7121938
+ },
+ {
+ "keyword": "Urban Agriculture",
+ "score": 0.69020844
+ }
+ ]
+ },
+ {
+ "query": "urban sustainability",
+ "field": "Environmental Science",
+ "rank": 3,
+ "topic_name": "Historical Architecture and Urbanism",
+ "total_score": 37.79865,
+ "lexical_score": 19.3577206,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.966461,
+ "matched_keywords": [
+ {
+ "keyword": "urban sustainability",
+ "score": 0.9986585
+ },
+ {
+ "keyword": "art and architecture",
+ "score": 0.5459366
+ }
+ ]
+ },
+ {
+ "query": "environmental impact assessment",
+ "field": "Environmental Science",
+ "rank": 1,
+ "topic_name": "Environmental and Social Impact Assessments",
+ "total_score": 72.9812,
+ "lexical_score": 60.266536,
+ "title_vector_score": 23.378448,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.449558,
+ "matched_keywords": [
+ {
+ "keyword": "Environmental Impact Assessment",
+ "score": 0.8979823
+ },
+ {
+ "keyword": "Health Impact Assessment",
+ "score": 0.7778575
+ }
+ ]
+ },
+ {
+ "query": "environmental impact assessment",
+ "field": "Environmental Science",
+ "rank": 2,
+ "topic_name": "Environmental Impact and Sustainability",
+ "total_score": 48.39677,
+ "lexical_score": 53.2012435,
+ "title_vector_score": 20.765572,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Environmental Impact",
+ "score": 0.7790909
+ },
+ {
+ "keyword": "Sustainability Assessment",
+ "score": 0.7523689
+ }
+ ]
+ },
+ {
+ "query": "environmental impact assessment",
+ "field": "Environmental Science",
+ "rank": 3,
+ "topic_name": "Landfill Environmental Impact Studies",
+ "total_score": 47.588436,
+ "lexical_score": 27.6312,
+ "title_vector_score": 19.957237,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Waste Degradation",
+ "score": 0.5287387
+ }
+ ]
+ },
+ {
+ "query": "glacier melting",
+ "field": "Environmental Science",
+ "rank": 1,
+ "topic_name": "Additive Manufacturing Materials and Processes",
+ "total_score": 35.43432,
+ "lexical_score": 30.429364999999997,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 15.533034,
+ "matched_keywords": [
+ {
+ "keyword": "Electron Beam Melting",
+ "score": 0.6213214
+ },
+ {
+ "keyword": "Selective Laser Melting",
+ "score": 0.551239
+ }
+ ]
+ },
+ {
+ "query": "glacier melting",
+ "field": "Environmental Science",
+ "rank": 2,
+ "topic_name": "nanoparticles nucleation surface interactions",
+ "total_score": 31.155611,
+ "lexical_score": 23.422801999999997,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 16.002083,
+ "matched_keywords": [
+ {
+ "keyword": "Melting",
+ "score": 0.6400833
+ },
+ {
+ "keyword": "Ice Nucleation",
+ "score": 0.52724457
+ }
+ ]
+ },
+ {
+ "query": "glacier melting",
+ "field": "Environmental Science",
+ "rank": 3,
+ "topic_name": "Cryospheric studies and observations",
+ "total_score": 16.902742,
+ "lexical_score": 28.274067000000002,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Glacier",
+ "score": 0.5531972
+ }
+ ]
+ },
+ {
+ "query": "conservation biology",
+ "field": "Environmental Science",
+ "rank": 1,
+ "topic_name": "Conservation, Ecology, Wildlife Education",
+ "total_score": 44.338436,
+ "lexical_score": 45.5199705,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.1157,
+ "matched_keywords": [
+ {
+ "keyword": "Conservation Biology",
+ "score": 0.92462796
+ },
+ {
+ "keyword": "Biodiversity Conservation",
+ "score": 0.7608312
+ }
+ ]
+ },
+ {
+ "query": "conservation biology",
+ "field": "Environmental Science",
+ "rank": 2,
+ "topic_name": "Amphibian and Reptile Biology",
+ "total_score": 41.36912,
+ "lexical_score": 41.7784069,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.11697,
+ "matched_keywords": [
+ {
+ "keyword": "Conservation Biology",
+ "score": 0.9246788
+ },
+ {
+ "keyword": "Species Extinction",
+ "score": 0.6211497
+ }
+ ]
+ },
+ {
+ "query": "conservation biology",
+ "field": "Environmental Science",
+ "rank": 3,
+ "topic_name": "Animal Ecology and Behavior Studies",
+ "total_score": 40.27722,
+ "lexical_score": 21.4478693,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.11697,
+ "matched_keywords": [
+ {
+ "keyword": "Conservation Biology",
+ "score": 0.9246788
+ },
+ {
+ "keyword": "Ecosystem Restoration",
+ "score": 0.60358304
+ }
+ ]
+ },
+ {
+ "query": "greenhouse gas emissions",
+ "field": "Environmental Science",
+ "rank": 1,
+ "topic_name": "Science and Climate Studies",
+ "total_score": 54.23094,
+ "lexical_score": 47.6730422,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.907955,
+ "matched_keywords": [
+ {
+ "keyword": "Greenhouse Gas Emissions",
+ "score": 0.91631824
+ },
+ {
+ "keyword": "Climate Change",
+ "score": 0.66149014
+ }
+ ]
+ },
+ {
+ "query": "greenhouse gas emissions",
+ "field": "Environmental Science",
+ "rank": 2,
+ "topic_name": "Oil Palm Production and Sustainability",
+ "total_score": 52.929825,
+ "lexical_score": 44.8486655,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.907955,
+ "matched_keywords": [
+ {
+ "keyword": "Greenhouse Gas Emissions",
+ "score": 0.91631824
+ },
+ {
+ "keyword": "Environmental Impact",
+ "score": 0.63948566
+ }
+ ]
+ },
+ {
+ "query": "greenhouse gas emissions",
+ "field": "Environmental Science",
+ "rank": 3,
+ "topic_name": "Scientific Research and Studies",
+ "total_score": 51.1656,
+ "lexical_score": 42.4278481,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.904617,
+ "matched_keywords": [
+ {
+ "keyword": "Greenhouse Gas Emissions",
+ "score": 0.9161847
+ },
+ {
+ "keyword": "Global Warming",
+ "score": 0.6918869
+ }
+ ]
+ },
+ {
+ "query": "soil erosion control",
+ "field": "Environmental Science",
+ "rank": 1,
+ "topic_name": "Soil erosion and sediment transport",
+ "total_score": 55.67424,
+ "lexical_score": 79.95788870000001,
+ "title_vector_score": 19.91909,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Soil Erosion",
+ "score": 0.7812271
+ },
+ {
+ "keyword": "Soil Degradation",
+ "score": 0.6241951
+ }
+ ]
+ },
+ {
+ "query": "soil erosion control",
+ "field": "Environmental Science",
+ "rank": 2,
+ "topic_name": "Water and Land Management",
+ "total_score": 48.40219,
+ "lexical_score": 40.539634799999995,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 21.56884,
+ "matched_keywords": [
+ {
+ "keyword": "Erosion Control",
+ "score": 0.86275357
+ },
+ {
+ "keyword": "Soil Health",
+ "score": 0.6472359
+ }
+ ]
+ },
+ {
+ "query": "soil erosion control",
+ "field": "Environmental Science",
+ "rank": 3,
+ "topic_name": "Environmental and Agricultural Sciences",
+ "total_score": 48.40203,
+ "lexical_score": 40.3127168,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 21.56868,
+ "matched_keywords": [
+ {
+ "keyword": "Erosion Control",
+ "score": 0.8627472
+ },
+ {
+ "keyword": "Soil Moisture",
+ "score": 0.5742607
+ }
+ ]
+ },
+ {
+ "query": "renewable energy transition",
+ "field": "Environmental Science",
+ "rank": 1,
+ "topic_name": "Renewable Energy and Sustainability",
+ "total_score": 56.322327,
+ "lexical_score": 62.8159272,
+ "title_vector_score": 20.100098,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Renewable Energy",
+ "score": 0.7219467
+ },
+ {
+ "keyword": "Energy Efficiency",
+ "score": 0.5390002
+ }
+ ]
+ },
+ {
+ "query": "renewable energy transition",
+ "field": "Environmental Science",
+ "rank": 2,
+ "topic_name": "Hybrid Renewable Energy Systems",
+ "total_score": 55.175056,
+ "lexical_score": 64.7226853,
+ "title_vector_score": 18.952827,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Renewable Energy",
+ "score": 0.72178775
+ },
+ {
+ "keyword": "Renewable Resources",
+ "score": 0.64249295
+ }
+ ]
+ },
+ {
+ "query": "renewable energy transition",
+ "field": "Environmental Science",
+ "rank": 3,
+ "topic_name": "Power Systems and Renewable Energy",
+ "total_score": 51.010345,
+ "lexical_score": 57.800087500000004,
+ "title_vector_score": 17.939453,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Renewable Energy",
+ "score": 0.72178775
+ },
+ {
+ "keyword": "Photovoltaic Generation",
+ "score": 0.5886421
+ }
+ ]
+ },
+ {
+ "query": "climate adaptation strategies",
+ "field": "Environmental Science",
+ "rank": 1,
+ "topic_name": "Climate Change, Adaptation, Migration",
+ "total_score": 58.445602,
+ "lexical_score": 64.9706221,
+ "title_vector_score": 20.438652,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Climate Change",
+ "score": 0.6269099
+ },
+ {
+ "keyword": "Adaptation",
+ "score": 0.5246887
+ }
+ ]
+ },
+ {
+ "query": "climate adaptation strategies",
+ "field": "Environmental Science",
+ "rank": 2,
+ "topic_name": "demographic modeling and climate adaptation",
+ "total_score": 54.976868,
+ "lexical_score": 43.687800499999994,
+ "title_vector_score": 20.276527,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Climate Change",
+ "score": 0.6269099
+ },
+ {
+ "keyword": "Policy Analysis",
+ "score": 0.52142715
+ }
+ ]
+ },
+ {
+ "query": "climate adaptation strategies",
+ "field": "Environmental Science",
+ "rank": 3,
+ "topic_name": "Climate Change and Environmental Impact",
+ "total_score": 42.619545,
+ "lexical_score": 49.00480580000001,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 19.566917,
+ "matched_keywords": [
+ {
+ "keyword": "Adaptation Strategies",
+ "score": 0.7826767
+ },
+ {
+ "keyword": "Climate Change",
+ "score": 0.62682086
+ }
+ ]
+ },
+ {
+ "query": "acid rain causes",
+ "field": "Environmental Science",
+ "rank": 1,
+ "topic_name": "Ocean Acidification Effects and Responses",
+ "total_score": 30.454044,
+ "lexical_score": 0.0,
+ "title_vector_score": 16.120415,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 14.33363,
+ "matched_keywords": [
+ {
+ "keyword": "Ocean Acidification",
+ "score": 0.5733452
+ }
+ ]
+ },
+ {
+ "query": "acid rain causes",
+ "field": "Environmental Science",
+ "rank": 2,
+ "topic_name": "Biochemical Acid Research Studies",
+ "total_score": 20.55929,
+ "lexical_score": 36.9578938,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "acid rain causes",
+ "field": "Environmental Science",
+ "rank": 3,
+ "topic_name": "Gout, Hyperuricemia, Uric Acid",
+ "total_score": 20.55929,
+ "lexical_score": 36.9194886,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "corporate strategy",
+ "field": "Business, Management and Accounting",
+ "rank": 1,
+ "topic_name": "Globalization, Economics, and Policies",
+ "total_score": 40.954575,
+ "lexical_score": 23.2927027,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.050125,
+ "matched_keywords": [
+ {
+ "keyword": "Corporate Strategy",
+ "score": 0.88200504
+ },
+ {
+ "keyword": "Transnational Corporations",
+ "score": 0.52539444
+ }
+ ]
+ },
+ {
+ "query": "corporate strategy",
+ "field": "Business, Management and Accounting",
+ "rank": 2,
+ "topic_name": "Business Strategy and Innovation",
+ "total_score": 40.60102,
+ "lexical_score": 25.9338237,
+ "title_vector_score": 20.041733,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Strategic Alliances",
+ "score": 0.56567764
+ },
+ {
+ "keyword": "Business Networks",
+ "score": 0.5493762
+ }
+ ]
+ },
+ {
+ "query": "corporate strategy",
+ "field": "Business, Management and Accounting",
+ "rank": 3,
+ "topic_name": "Leadership, Human Resources, Global Affairs",
+ "total_score": 40.58858,
+ "lexical_score": 29.7563217,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.085094,
+ "matched_keywords": [
+ {
+ "keyword": "Corporate Strategy",
+ "score": 0.8834038
+ },
+ {
+ "keyword": "Human Resource Management",
+ "score": 0.55956775
+ }
+ ]
+ },
+ {
+ "query": "supply chain logistics",
+ "field": "Business, Management and Accounting",
+ "rank": 1,
+ "topic_name": "Sustainable Supply Chain Management",
+ "total_score": 62.2402,
+ "lexical_score": 77.239848,
+ "title_vector_score": 20.596771,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Sustainable Supply Chain Management",
+ "score": 0.6837743
+ },
+ {
+ "keyword": "Supply Chain Network Design",
+ "score": 0.6513176
+ }
+ ]
+ },
+ {
+ "query": "supply chain logistics",
+ "field": "Business, Management and Accounting",
+ "rank": 2,
+ "topic_name": "Supply Chain and Inventory Management",
+ "total_score": 58.343513,
+ "lexical_score": 63.519496000000004,
+ "title_vector_score": 20.323067,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Supply Chain Coordination",
+ "score": 0.70781326
+ },
+ {
+ "keyword": "Inventory Management",
+ "score": 0.6159236
+ }
+ ]
+ },
+ {
+ "query": "supply chain logistics",
+ "field": "Business, Management and Accounting",
+ "rank": 3,
+ "topic_name": "activated carbon and charcoal",
+ "total_score": 51.920624,
+ "lexical_score": 41.9152975,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.048218,
+ "matched_keywords": [
+ {
+ "keyword": "Supply Chain Logistics",
+ "score": 0.88192874
+ }
+ ]
+ },
+ {
+ "query": "financial auditing",
+ "field": "Business, Management and Accounting",
+ "rank": 1,
+ "topic_name": "Agricultural and Financial Auditing",
+ "total_score": 61.787445,
+ "lexical_score": 50.1412763,
+ "title_vector_score": 21.961288,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Financial Reporting",
+ "score": 0.7555351
+ },
+ {
+ "keyword": "Management Accounting",
+ "score": 0.62780637
+ }
+ ]
+ },
+ {
+ "query": "financial auditing",
+ "field": "Business, Management and Accounting",
+ "rank": 2,
+ "topic_name": "Auditing, Earnings Management, Governance",
+ "total_score": 43.235687,
+ "lexical_score": 39.349220700000004,
+ "title_vector_score": 19.674377,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Financial Reporting",
+ "score": 0.7555351
+ },
+ {
+ "keyword": "Accounting Quality",
+ "score": 0.626859
+ }
+ ]
+ },
+ {
+ "query": "financial auditing",
+ "field": "Business, Management and Accounting",
+ "rank": 3,
+ "topic_name": "Accounting and Financial Management",
+ "total_score": 36.17306,
+ "lexical_score": 31.549735599999998,
+ "title_vector_score": 19.908218,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Forensic Audit",
+ "score": 0.6566455
+ },
+ {
+ "keyword": "Financial Information",
+ "score": 0.6473058
+ }
+ ]
+ },
+ {
+ "query": "marketing analytics",
+ "field": "Business, Management and Accounting",
+ "rank": 1,
+ "topic_name": "Digital Marketing and Social Media",
+ "total_score": 44.390785,
+ "lexical_score": 52.42081340000001,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.271378,
+ "matched_keywords": [
+ {
+ "keyword": "Marketing Analytics",
+ "score": 0.89085513
+ },
+ {
+ "keyword": "Influencer Marketing",
+ "score": 0.62975186
+ }
+ ]
+ },
+ {
+ "query": "marketing analytics",
+ "field": "Business, Management and Accounting",
+ "rank": 2,
+ "topic_name": "Marketing and Advertising Strategies",
+ "total_score": 41.239357,
+ "lexical_score": 43.167637,
+ "title_vector_score": 20.15522,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Marketing Communications",
+ "score": 0.7369385
+ },
+ {
+ "keyword": "Digital Marketing",
+ "score": 0.6922938
+ }
+ ]
+ },
+ {
+ "query": "marketing analytics",
+ "field": "Business, Management and Accounting",
+ "rank": 3,
+ "topic_name": "Data Visualization and Analytics",
+ "total_score": 40.885193,
+ "lexical_score": 38.493572,
+ "title_vector_score": 18.381004,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Visual Analytics",
+ "score": 0.65387344
+ },
+ {
+ "keyword": "Data Mining",
+ "score": 0.6179072
+ }
+ ]
+ },
+ {
+ "query": "human resource management",
+ "field": "Business, Management and Accounting",
+ "rank": 1,
+ "topic_name": "Human Resource and Talent Management",
+ "total_score": 64.91934,
+ "lexical_score": 48.720533399999994,
+ "title_vector_score": 23.53447,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Talent Management",
+ "score": 0.64560825
+ },
+ {
+ "keyword": "HR",
+ "score": 0.62359744
+ }
+ ]
+ },
+ {
+ "query": "human resource management",
+ "field": "Business, Management and Accounting",
+ "rank": 2,
+ "topic_name": "Leadership, Human Resources, Global Affairs",
+ "total_score": 61.152336,
+ "lexical_score": 43.1184698,
+ "title_vector_score": 19.279175,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.76109,
+ "matched_keywords": [
+ {
+ "keyword": "Human Resource Management",
+ "score": 0.9104436
+ },
+ {
+ "keyword": "Corporate Strategy",
+ "score": 0.54473495
+ }
+ ]
+ },
+ {
+ "query": "human resource management",
+ "field": "Business, Management and Accounting",
+ "rank": 3,
+ "topic_name": "Education, Management, Technology, Human Resources",
+ "total_score": 46.144836,
+ "lexical_score": 50.763418900000005,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.76109,
+ "matched_keywords": [
+ {
+ "keyword": "Human Resource Management",
+ "score": 0.9104436
+ },
+ {
+ "keyword": "Leadership",
+ "score": 0.5731735
+ }
+ ]
+ },
+ {
+ "query": "organizational behavior",
+ "field": "Business, Management and Accounting",
+ "rank": 1,
+ "topic_name": "Job Satisfaction and Organizational Behavior",
+ "total_score": 50.48208,
+ "lexical_score": 51.3873294,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 21.065777,
+ "matched_keywords": [
+ {
+ "keyword": "Organizational Behavior",
+ "score": 0.84263104
+ },
+ {
+ "keyword": "Leadership",
+ "score": 0.56739426
+ }
+ ]
+ },
+ {
+ "query": "organizational behavior",
+ "field": "Business, Management and Accounting",
+ "rank": 2,
+ "topic_name": "Management Theory and Practice",
+ "total_score": 38.93849,
+ "lexical_score": 26.812701699999998,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 21.060848,
+ "matched_keywords": [
+ {
+ "keyword": "Organizational Behavior",
+ "score": 0.8424339
+ },
+ {
+ "keyword": "Organizational Learning",
+ "score": 0.6601741
+ }
+ ]
+ },
+ {
+ "query": "organizational behavior",
+ "field": "Business, Management and Accounting",
+ "rank": 3,
+ "topic_name": "Organizational Management and Leadership",
+ "total_score": 36.39061,
+ "lexical_score": 30.397783500000003,
+ "title_vector_score": 18.758087,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Organizational Flexibility",
+ "score": 0.63755924
+ },
+ {
+ "keyword": "Management",
+ "score": 0.57965213
+ }
+ ]
+ },
+ {
+ "query": "consumer behavior trends",
+ "field": "Business, Management and Accounting",
+ "rank": 1,
+ "topic_name": "Health, Technology, Consumer Behavior",
+ "total_score": 73.5546,
+ "lexical_score": 55.8292948,
+ "title_vector_score": 20.691948,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 19.771004,
+ "matched_keywords": [
+ {
+ "keyword": "Consumer Behavior",
+ "score": 0.79084015
+ },
+ {
+ "keyword": "Marketing Strategy",
+ "score": 0.55221814
+ }
+ ]
+ },
+ {
+ "query": "consumer behavior trends",
+ "field": "Business, Management and Accounting",
+ "rank": 2,
+ "topic_name": "Consumer Packaging Perceptions and Trends",
+ "total_score": 55.104298,
+ "lexical_score": 62.0938152,
+ "title_vector_score": 19.849281,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Consumer Behavior",
+ "score": 0.7901535
+ },
+ {
+ "keyword": "Consumer Perception",
+ "score": 0.65056103
+ }
+ ]
+ },
+ {
+ "query": "consumer behavior trends",
+ "field": "Business, Management and Accounting",
+ "rank": 3,
+ "topic_name": "Consumer Retail Behavior Studies",
+ "total_score": 53.32984,
+ "lexical_score": 57.778047,
+ "title_vector_score": 20.23819,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Consumer Shopping Behavior",
+ "score": 0.7508621
+ },
+ {
+ "keyword": "Retail Environment",
+ "score": 0.5376587
+ }
+ ]
+ },
+ {
+ "query": "risk assessment framework",
+ "field": "Business, Management and Accounting",
+ "rank": 1,
+ "topic_name": "Flood Risk Assessment and Management",
+ "total_score": 49.66353,
+ "lexical_score": 47.92116399999999,
+ "title_vector_score": 17.424088,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Risk Perception",
+ "score": 0.5878919
+ },
+ {
+ "keyword": "Flood Risk",
+ "score": 0.50874966
+ }
+ ]
+ },
+ {
+ "query": "risk assessment framework",
+ "field": "Business, Management and Accounting",
+ "rank": 2,
+ "topic_name": "Technology Assessment and Management",
+ "total_score": 37.593002,
+ "lexical_score": 40.8669876,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 19.55452,
+ "matched_keywords": [
+ {
+ "keyword": "Risk Assessment",
+ "score": 0.7821808
+ },
+ {
+ "keyword": "Maturity Assessment",
+ "score": 0.5220502
+ }
+ ]
+ },
+ {
+ "query": "risk assessment framework",
+ "field": "Business, Management and Accounting",
+ "rank": 3,
+ "topic_name": "Risk and Safety Analysis",
+ "total_score": 36.9032,
+ "lexical_score": 35.8365553,
+ "title_vector_score": 19.630127,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Quantitative Risk Assessment",
+ "score": 0.6786817
+ },
+ {
+ "keyword": "Human Reliability Analysis",
+ "score": 0.5119731
+ }
+ ]
+ },
+ {
+ "query": "entrepreneurship ecosystems",
+ "field": "Business, Management and Accounting",
+ "rank": 1,
+ "topic_name": "Marine and Coastal Ecosystems",
+ "total_score": 38.026672,
+ "lexical_score": 24.733335,
+ "title_vector_score": 17.467384,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Sustainable Livelihoods",
+ "score": 0.5080185
+ }
+ ]
+ },
+ {
+ "query": "entrepreneurship ecosystems",
+ "field": "Business, Management and Accounting",
+ "rank": 2,
+ "topic_name": "Marine and coastal ecosystems",
+ "total_score": 37.84204,
+ "lexical_score": 20.55929,
+ "title_vector_score": 17.282753,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "entrepreneurship ecosystems",
+ "field": "Business, Management and Accounting",
+ "rank": 3,
+ "topic_name": "Regional Economic Development and Innovation",
+ "total_score": 31.438663,
+ "lexical_score": 15.1038546,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 20.053928,
+ "matched_keywords": [
+ {
+ "keyword": "Innovation Ecosystems",
+ "score": 0.8021571
+ }
+ ]
+ },
+ {
+ "query": "project management methodologies",
+ "field": "Business, Management and Accounting",
+ "rank": 1,
+ "topic_name": "Advanced Software Engineering Methodologies",
+ "total_score": 37.74981,
+ "lexical_score": 24.641654000000003,
+ "title_vector_score": 18.697243,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Variability Management",
+ "score": 0.5448939
+ },
+ {
+ "keyword": "Requirements Engineering",
+ "score": 0.5141538
+ }
+ ]
+ },
+ {
+ "query": "project management methodologies",
+ "field": "Business, Management and Accounting",
+ "rank": 2,
+ "topic_name": "Engineering Technology and Methodologies",
+ "total_score": 37.615723,
+ "lexical_score": 19.052568,
+ "title_vector_score": 18.563156,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "project management methodologies",
+ "field": "Business, Management and Accounting",
+ "rank": 3,
+ "topic_name": "Economic and Technological Systems Analysis",
+ "total_score": 36.569183,
+ "lexical_score": 27.6026795,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 18.089039,
+ "matched_keywords": [
+ {
+ "keyword": "Project Management",
+ "score": 0.7235616
+ },
+ {
+ "keyword": "Innovation Management",
+ "score": 0.54481125
+ }
+ ]
+ },
+ {
+ "query": "accounting principles",
+ "field": "Business, Management and Accounting",
+ "rank": 1,
+ "topic_name": "Accounting and Financial Management",
+ "total_score": 57.47849,
+ "lexical_score": 48.968927,
+ "title_vector_score": 17.987328,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 17.776554,
+ "matched_keywords": [
+ {
+ "keyword": "Ethics in Accounting",
+ "score": 0.71106213
+ },
+ {
+ "keyword": "Education in Accounting",
+ "score": 0.6584511
+ }
+ ]
+ },
+ {
+ "query": "accounting principles",
+ "field": "Business, Management and Accounting",
+ "rank": 2,
+ "topic_name": "Accounting Education and Careers",
+ "total_score": 40.646835,
+ "lexical_score": 40.414731,
+ "title_vector_score": 18.932228,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Accounting Education",
+ "score": 0.6705691
+ }
+ ]
+ },
+ {
+ "query": "accounting principles",
+ "field": "Business, Management and Accounting",
+ "rank": 3,
+ "topic_name": "Accounting Theory and Financial Reporting",
+ "total_score": 37.642433,
+ "lexical_score": 43.902978000000004,
+ "title_vector_score": 17.817001,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Management Accounting",
+ "score": 0.6444194
+ },
+ {
+ "keyword": "Financial Reporting",
+ "score": 0.62881726
+ }
+ ]
+ },
+ {
+ "query": "brand equity",
+ "field": "Business, Management and Accounting",
+ "rank": 1,
+ "topic_name": "Consumer Behavior in Brand Consumption and Identification",
+ "total_score": 54.98411,
+ "lexical_score": 61.52655,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.315971,
+ "matched_keywords": [
+ {
+ "keyword": "Brand Equity",
+ "score": 0.9326388
+ },
+ {
+ "keyword": "Brand Trust",
+ "score": 0.679292
+ }
+ ]
+ },
+ {
+ "query": "brand equity",
+ "field": "Business, Management and Accounting",
+ "rank": 2,
+ "topic_name": "Marketing and Advertising Strategies",
+ "total_score": 50.586395,
+ "lexical_score": 41.051882400000004,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.267967,
+ "matched_keywords": [
+ {
+ "keyword": "Brand Equity",
+ "score": 0.9307187
+ },
+ {
+ "keyword": "Brand Performance",
+ "score": 0.6552785
+ }
+ ]
+ },
+ {
+ "query": "brand equity",
+ "field": "Business, Management and Accounting",
+ "rank": 3,
+ "topic_name": "Management, Economics, and Public Policy",
+ "total_score": 45.542763,
+ "lexical_score": 34.8694327,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.315971,
+ "matched_keywords": [
+ {
+ "keyword": "Brand Equity",
+ "score": 0.9326388
+ },
+ {
+ "keyword": "Corporate Responsibility",
+ "score": 0.51687497
+ }
+ ]
+ },
+ {
+ "query": "leadership styles",
+ "field": "Business, Management and Accounting",
+ "rank": 1,
+ "topic_name": "Interdisciplinary Studies and Sociocultural Dynamics",
+ "total_score": 44.191452,
+ "lexical_score": 31.3185743,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.069126,
+ "matched_keywords": [
+ {
+ "keyword": "Leadership Styles",
+ "score": 0.9227651
+ },
+ {
+ "keyword": "Organizational Performance",
+ "score": 0.52948254
+ }
+ ]
+ },
+ {
+ "query": "leadership styles",
+ "field": "Business, Management and Accounting",
+ "rank": 2,
+ "topic_name": "Healthcare during COVID-19 Pandemic",
+ "total_score": 43.752754,
+ "lexical_score": 31.9841308,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.069126,
+ "matched_keywords": [
+ {
+ "keyword": "Leadership Styles",
+ "score": 0.9227651
+ }
+ ]
+ },
+ {
+ "query": "leadership styles",
+ "field": "Business, Management and Accounting",
+ "rank": 3,
+ "topic_name": "Legal Studies and Policies",
+ "total_score": 42.5291,
+ "lexical_score": 29.1917434,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.058636,
+ "matched_keywords": [
+ {
+ "keyword": "Leadership Styles",
+ "score": 0.92234546
+ }
+ ]
+ },
+ {
+ "query": "business ethics",
+ "field": "Business, Management and Accounting",
+ "rank": 1,
+ "topic_name": "Ethics in Business and Education",
+ "total_score": 75.23927,
+ "lexical_score": 59.446872299999995,
+ "title_vector_score": 21.613388,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.300236,
+ "matched_keywords": [
+ {
+ "keyword": "Business Ethics",
+ "score": 0.9320094
+ },
+ {
+ "keyword": "Corporate Ethics",
+ "score": 0.8297946
+ }
+ ]
+ },
+ {
+ "query": "business ethics",
+ "field": "Business, Management and Accounting",
+ "rank": 2,
+ "topic_name": "Business Law and Ethics",
+ "total_score": 57.381767,
+ "lexical_score": 37.2979245,
+ "title_vector_score": 24.166374,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Corporate Social Responsibility",
+ "score": 0.67104596
+ },
+ {
+ "keyword": "Ethical Implications",
+ "score": 0.61366016
+ }
+ ]
+ },
+ {
+ "query": "business ethics",
+ "field": "Business, Management and Accounting",
+ "rank": 3,
+ "topic_name": "Corporate Social Responsibility and Sustainability",
+ "total_score": 40.02379,
+ "lexical_score": 25.100044999999998,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.300236,
+ "matched_keywords": [
+ {
+ "keyword": "Business Ethics",
+ "score": 0.9320094
+ },
+ {
+ "keyword": "Corporate Social Responsibility",
+ "score": 0.6707535
+ }
+ ]
+ },
+ {
+ "query": "digital transformation strategy",
+ "field": "Business, Management and Accounting",
+ "rank": 1,
+ "topic_name": "Digital Transformation in Industry",
+ "total_score": 55.730515,
+ "lexical_score": 47.744735799999994,
+ "title_vector_score": 20.960884,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Supply Chain Management",
+ "score": 0.53332263
+ },
+ {
+ "keyword": "Digital Twin",
+ "score": 0.5041974
+ }
+ ]
+ },
+ {
+ "query": "digital transformation strategy",
+ "field": "Business, Management and Accounting",
+ "rank": 2,
+ "topic_name": "Digital Economy and Transformation",
+ "total_score": 54.682236,
+ "lexical_score": 55.593357,
+ "title_vector_score": 19.912605,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Digital Transformation",
+ "score": 0.7925313
+ },
+ {
+ "keyword": "Knowledge Management",
+ "score": 0.5044136
+ }
+ ]
+ },
+ {
+ "query": "digital transformation strategy",
+ "field": "Business, Management and Accounting",
+ "rank": 3,
+ "topic_name": "Digital Transformation in Law",
+ "total_score": 54.407196,
+ "lexical_score": 47.932862,
+ "title_vector_score": 19.637566,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Digital Economy",
+ "score": 0.6037102
+ },
+ {
+ "keyword": "Blockchain Technology",
+ "score": 0.57537335
+ }
+ ]
+ },
+ {
+ "query": "operations management",
+ "field": "Business, Management and Accounting",
+ "rank": 1,
+ "topic_name": "Operations Management Techniques",
+ "total_score": 83.271164,
+ "lexical_score": 62.71620370000001,
+ "title_vector_score": 23.294525,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.654438,
+ "matched_keywords": [
+ {
+ "keyword": "Operations Management",
+ "score": 0.9061775
+ },
+ {
+ "keyword": "Change Management",
+ "score": 0.6420415
+ }
+ ]
+ },
+ {
+ "query": "operations management",
+ "field": "Business, Management and Accounting",
+ "rank": 2,
+ "topic_name": "Business and Management Studies",
+ "total_score": 28.867592,
+ "lexical_score": 20.5241945,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 18.66315,
+ "matched_keywords": [
+ {
+ "keyword": "Organizational Management",
+ "score": 0.74652606
+ },
+ {
+ "keyword": "Innovation Management",
+ "score": 0.63955563
+ }
+ ]
+ },
+ {
+ "query": "operations management",
+ "field": "Business, Management and Accounting",
+ "rank": 3,
+ "topic_name": "Organizational Management and Leadership",
+ "total_score": 28.66212,
+ "lexical_score": 19.0710163,
+ "title_vector_score": 18.45768,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Management",
+ "score": 0.69136554
+ },
+ {
+ "keyword": "Supply Chain Management",
+ "score": 0.6410052
+ }
+ ]
+ },
+ {
+ "query": "corporate governance",
+ "field": "Business, Management and Accounting",
+ "rank": 1,
+ "topic_name": "Corporate Governance and Management",
+ "total_score": 56.658066,
+ "lexical_score": 33.353621,
+ "title_vector_score": 23.304443,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Supply Chain Controlling",
+ "score": 0.5743561
+ },
+ {
+ "keyword": "Investment Decisions",
+ "score": 0.5628357
+ }
+ ]
+ },
+ {
+ "query": "corporate governance",
+ "field": "Business, Management and Accounting",
+ "rank": 2,
+ "topic_name": "Corporate Governance and Law",
+ "total_score": 56.35308,
+ "lexical_score": 59.7724213,
+ "title_vector_score": 22.999458,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Company Governance",
+ "score": 0.8428154
+ },
+ {
+ "keyword": "Corporate Mobility",
+ "score": 0.6049563
+ }
+ ]
+ },
+ {
+ "query": "corporate governance",
+ "field": "Business, Management and Accounting",
+ "rank": 3,
+ "topic_name": "Corporate Finance and Governance",
+ "total_score": 55.32979,
+ "lexical_score": 57.091403199999995,
+ "title_vector_score": 21.976166,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Corporate Governance",
+ "score": 0.9084918
+ },
+ {
+ "keyword": "Dividend Policy",
+ "score": 0.59597903
+ }
+ ]
+ },
+ {
+ "query": "market segmentation",
+ "field": "Business, Management and Accounting",
+ "rank": 1,
+ "topic_name": "Customer churn and segmentation",
+ "total_score": 44.203476,
+ "lexical_score": 41.1793093,
+ "title_vector_score": 20.642166,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Segmentation",
+ "score": 0.71688586
+ },
+ {
+ "keyword": "Marketing Strategy",
+ "score": 0.64329404
+ }
+ ]
+ },
+ {
+ "query": "market segmentation",
+ "field": "Business, Management and Accounting",
+ "rank": 2,
+ "topic_name": "Wine Industry and Tourism",
+ "total_score": 41.953312,
+ "lexical_score": 28.104346999999997,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.621696,
+ "matched_keywords": [
+ {
+ "keyword": "Market Segmentation",
+ "score": 0.9048678
+ },
+ {
+ "keyword": "Consumer Behavior",
+ "score": 0.5750491
+ }
+ ]
+ },
+ {
+ "query": "market segmentation",
+ "field": "Business, Management and Accounting",
+ "rank": 3,
+ "topic_name": "finance, banking, and market dynamics",
+ "total_score": 33.963425,
+ "lexical_score": 16.894867,
+ "title_vector_score": 17.068558,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Tourism Marketing",
+ "score": 0.56862766
+ },
+ {
+ "keyword": "Corporate Governance",
+ "score": 0.51546985
+ }
+ ]
+ },
+ {
+ "query": "strategic planning",
+ "field": "Business, Management and Accounting",
+ "rank": 1,
+ "topic_name": "Strategic Planning and Analysis",
+ "total_score": 86.81325,
+ "lexical_score": 74.70437559999999,
+ "title_vector_score": 21.917992,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 21.224243,
+ "matched_keywords": [
+ {
+ "keyword": "Strategic Planning",
+ "score": 0.84896976
+ },
+ {
+ "keyword": "Strategic Management Tools",
+ "score": 0.6285375
+ }
+ ]
+ },
+ {
+ "query": "strategic planning",
+ "field": "Business, Management and Accounting",
+ "rank": 2,
+ "topic_name": "Mining Techniques and Economics",
+ "total_score": 39.96653,
+ "lexical_score": 28.899949600000003,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 21.213276,
+ "matched_keywords": [
+ {
+ "keyword": "Strategic Planning",
+ "score": 0.84853107
+ },
+ {
+ "keyword": "Optimization",
+ "score": 0.5504634
+ }
+ ]
+ },
+ {
+ "query": "strategic planning",
+ "field": "Business, Management and Accounting",
+ "rank": 3,
+ "topic_name": "Organizational Strategy and Culture",
+ "total_score": 38.821827,
+ "lexical_score": 25.852822000000003,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 21.213276,
+ "matched_keywords": [
+ {
+ "keyword": "Strategic Planning",
+ "score": 0.84853107
+ },
+ {
+ "keyword": "Stakeholder Management",
+ "score": 0.56265134
+ }
+ ]
+ },
+ {
+ "query": "financial reporting standards",
+ "field": "Business, Management and Accounting",
+ "rank": 1,
+ "topic_name": "Financial Reporting and XBRL",
+ "total_score": 74.6882,
+ "lexical_score": 65.9146864,
+ "title_vector_score": 18.184929,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 19.154293,
+ "matched_keywords": [
+ {
+ "keyword": "Financial Reporting",
+ "score": 0.76617175
+ }
+ ]
+ },
+ {
+ "query": "financial reporting standards",
+ "field": "Business, Management and Accounting",
+ "rank": 2,
+ "topic_name": "Auditing, Earnings Management, Governance",
+ "total_score": 63.260975,
+ "lexical_score": 53.3636287,
+ "title_vector_score": 0.0,
+ "description_vector_score": 7.601967,
+ "keywords_vector_score": 21.507961,
+ "matched_keywords": [
+ {
+ "keyword": "International Financial Reporting Standards",
+ "score": 0.8603185
+ },
+ {
+ "keyword": "Financial Reporting",
+ "score": 0.7643725
+ }
+ ]
+ },
+ {
+ "query": "financial reporting standards",
+ "field": "Business, Management and Accounting",
+ "rank": 3,
+ "topic_name": "Financial Reporting and Valuation Research",
+ "total_score": 52.03411,
+ "lexical_score": 44.548444800000006,
+ "title_vector_score": 17.934494,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Financial Performance",
+ "score": 0.6423213
+ }
+ ]
+ },
+ {
+ "query": "cognitive behavioral therapy",
+ "field": "Psychology",
+ "rank": 1,
+ "topic_name": "Digital Mental Health Interventions",
+ "total_score": 50.087776,
+ "lexical_score": 40.8335978,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.342587,
+ "matched_keywords": [
+ {
+ "keyword": "Cognitive Behavioral Therapy",
+ "score": 0.89370346
+ },
+ {
+ "keyword": "Behavioral Activation",
+ "score": 0.5899518
+ }
+ ]
+ },
+ {
+ "query": "cognitive behavioral therapy",
+ "field": "Psychology",
+ "rank": 2,
+ "topic_name": "Attention Economy in Education and Business",
+ "total_score": 47.712093,
+ "lexical_score": 38.961250199999995,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.325897,
+ "matched_keywords": [
+ {
+ "keyword": "Cognitive Behavioral Therapy",
+ "score": 0.8930359
+ },
+ {
+ "keyword": "Calligraphy Therapy",
+ "score": 0.5642662
+ }
+ ]
+ },
+ {
+ "query": "cognitive behavioral therapy",
+ "field": "Psychology",
+ "rank": 3,
+ "topic_name": "Psychological Treatments and Assessments",
+ "total_score": 45.166267,
+ "lexical_score": 33.955219199999995,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.326057,
+ "matched_keywords": [
+ {
+ "keyword": "Cognitive Behavioral Therapy",
+ "score": 0.89304227
+ },
+ {
+ "keyword": "Rational Emotive Behavior Therapy",
+ "score": 0.67033386
+ }
+ ]
+ },
+ {
+ "query": "developmental psychology",
+ "field": "Psychology",
+ "rank": 1,
+ "topic_name": "Developmental and Educational Neuropsychology",
+ "total_score": 42.07805,
+ "lexical_score": 36.450251300000005,
+ "title_vector_score": 19.57386,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Educational Psychology",
+ "score": 0.7002347
+ },
+ {
+ "keyword": "Cognitive Development",
+ "score": 0.68846637
+ }
+ ]
+ },
+ {
+ "query": "developmental psychology",
+ "field": "Psychology",
+ "rank": 2,
+ "topic_name": "Psychology of Development and Education",
+ "total_score": 35.409077,
+ "lexical_score": 26.541922300000003,
+ "title_vector_score": 19.789772,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Adolescent Development",
+ "score": 0.67717487
+ },
+ {
+ "keyword": "Psychological Well-Being",
+ "score": 0.5852788
+ }
+ ]
+ },
+ {
+ "query": "developmental psychology",
+ "field": "Psychology",
+ "rank": 3,
+ "topic_name": "Zebrafish Biomedical Research Applications",
+ "total_score": 30.73678,
+ "lexical_score": 17.072304000000003,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 18.872643,
+ "matched_keywords": [
+ {
+ "keyword": "Developmental Biology",
+ "score": 0.7549057
+ },
+ {
+ "keyword": "Vascular Development",
+ "score": 0.588089
+ }
+ ]
+ },
+ {
+ "query": "social anxiety disorder",
+ "field": "Psychology",
+ "rank": 1,
+ "topic_name": "Death Anxiety and Social Exclusion",
+ "total_score": 48.192444,
+ "lexical_score": 37.2471395,
+ "title_vector_score": 17.644386,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Social Exclusion",
+ "score": 0.593455
+ }
+ ]
+ },
+ {
+ "query": "social anxiety disorder",
+ "field": "Psychology",
+ "rank": 2,
+ "topic_name": "Body Image and Dysmorphia Studies",
+ "total_score": 44.665203,
+ "lexical_score": 35.4722015,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 20.396137,
+ "matched_keywords": [
+ {
+ "keyword": "Social Anxiety",
+ "score": 0.8158455
+ },
+ {
+ "keyword": "Body Dysmorphic Disorder",
+ "score": 0.58176297
+ }
+ ]
+ },
+ {
+ "query": "social anxiety disorder",
+ "field": "Psychology",
+ "rank": 3,
+ "topic_name": "Crime, Deviance, and Social Control",
+ "total_score": 35.32544,
+ "lexical_score": 32.8936329,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 20.396454,
+ "matched_keywords": [
+ {
+ "keyword": "Social Anxiety",
+ "score": 0.8158582
+ },
+ {
+ "keyword": "Societal Reaction",
+ "score": 0.52424365
+ }
+ ]
+ },
+ {
+ "query": "memory retention techniques",
+ "field": "Psychology",
+ "rank": 1,
+ "topic_name": "Memory Processes and Influences",
+ "total_score": 35.25335,
+ "lexical_score": 37.9348917,
+ "title_vector_score": 16.990356,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Memory Retrieval",
+ "score": 0.6361923
+ },
+ {
+ "keyword": "Recollection",
+ "score": 0.5665423
+ }
+ ]
+ },
+ {
+ "query": "memory retention techniques",
+ "field": "Psychology",
+ "rank": 2,
+ "topic_name": "Global Health Workforce Issues",
+ "total_score": 29.745335,
+ "lexical_score": 16.970378,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 18.166607,
+ "matched_keywords": [
+ {
+ "keyword": "Retention Strategies",
+ "score": 0.72666425
+ }
+ ]
+ },
+ {
+ "query": "memory retention techniques",
+ "field": "Psychology",
+ "rank": 3,
+ "topic_name": "Education, Law, and Society",
+ "total_score": 28.865566,
+ "lexical_score": 17.737717,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 17.046356,
+ "matched_keywords": [
+ {
+ "keyword": "Data Retention Laws",
+ "score": 0.68185425
+ }
+ ]
+ },
+ {
+ "query": "neuropsychology assessment",
+ "field": "Psychology",
+ "rank": 1,
+ "topic_name": "Psychological Testing and Assessment",
+ "total_score": 60.28042,
+ "lexical_score": 30.731446499999997,
+ "title_vector_score": 19.978027,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.263908,
+ "matched_keywords": [
+ {
+ "keyword": "Neuropsychological Assessment",
+ "score": 0.89055634
+ },
+ {
+ "keyword": "Therapeutic Assessment",
+ "score": 0.6786499
+ }
+ ]
+ },
+ {
+ "query": "neuropsychology assessment",
+ "field": "Psychology",
+ "rank": 2,
+ "topic_name": "Medical Case Reports and Studies",
+ "total_score": 29.412588,
+ "lexical_score": 7.1486793,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.263908,
+ "matched_keywords": [
+ {
+ "keyword": "Neuropsychological Assessment",
+ "score": 0.89055634
+ },
+ {
+ "keyword": "Neurological Disorders",
+ "score": 0.58853406
+ }
+ ]
+ },
+ {
+ "query": "neuropsychology assessment",
+ "field": "Psychology",
+ "rank": 3,
+ "topic_name": "Historical and Modern Theater Studies",
+ "total_score": 28.69804,
+ "lexical_score": 10.9257879,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.276623,
+ "matched_keywords": [
+ {
+ "keyword": "Neuropsychological Assessment",
+ "score": 0.89106494
+ },
+ {
+ "keyword": "Neurocognitive Evaluation",
+ "score": 0.7562726
+ }
+ ]
+ },
+ {
+ "query": "human behavior analysis",
+ "field": "Psychology",
+ "rank": 1,
+ "topic_name": "Human Behavior and Motivation",
+ "total_score": 48.709015,
+ "lexical_score": 38.734938299999996,
+ "title_vector_score": 18.7146,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Human Motivation",
+ "score": 0.5814832
+ },
+ {
+ "keyword": "Person-Centered Approach",
+ "score": 0.50674057
+ }
+ ]
+ },
+ {
+ "query": "human behavior analysis",
+ "field": "Psychology",
+ "rank": 2,
+ "topic_name": "Human Pose and Action Recognition",
+ "total_score": 33.831738,
+ "lexical_score": 30.123563,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 19.764645,
+ "matched_keywords": [
+ {
+ "keyword": "Human Activity Analysis",
+ "score": 0.7905858
+ },
+ {
+ "keyword": "Action Recognition",
+ "score": 0.51811475
+ }
+ ]
+ },
+ {
+ "query": "human behavior analysis",
+ "field": "Psychology",
+ "rank": 3,
+ "topic_name": "Behavioral and Psychological Studies",
+ "total_score": 27.56605,
+ "lexical_score": 13.591080700000001,
+ "title_vector_score": 18.147163,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Behavioral Interventions",
+ "score": 0.6062279
+ },
+ {
+ "keyword": "Functional Analysis",
+ "score": 0.547774
+ }
+ ]
+ },
+ {
+ "query": "mental health counseling",
+ "field": "Psychology",
+ "rank": 1,
+ "topic_name": "Psychology and Mental Health",
+ "total_score": 50.39858,
+ "lexical_score": 51.5727679,
+ "title_vector_score": 22.446136,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Mental Health",
+ "score": 0.76041156
+ },
+ {
+ "keyword": "Parenting",
+ "score": 0.5904096
+ }
+ ]
+ },
+ {
+ "query": "mental health counseling",
+ "field": "Psychology",
+ "rank": 2,
+ "topic_name": "Mental Health and Psychiatry",
+ "total_score": 49.81741,
+ "lexical_score": 35.9395745,
+ "title_vector_score": 21.864967,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Psychiatric Disorders",
+ "score": 0.60264206
+ },
+ {
+ "keyword": "Person-Centered Medicine",
+ "score": 0.543546
+ }
+ ]
+ },
+ {
+ "query": "mental health counseling",
+ "field": "Psychology",
+ "rank": 3,
+ "topic_name": "Mental Health Treatment and Access",
+ "total_score": 45.98002,
+ "lexical_score": 48.5500725,
+ "title_vector_score": 20.459442,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Mental Disorders",
+ "score": 0.6148173
+ },
+ {
+ "keyword": "Psychological Distress",
+ "score": 0.58388644
+ }
+ ]
+ },
+ {
+ "query": "personality traits theory",
+ "field": "Psychology",
+ "rank": 1,
+ "topic_name": "Personality Traits and Psychology",
+ "total_score": 84.96751,
+ "lexical_score": 85.16322740000001,
+ "title_vector_score": 20.807724,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 18.094284,
+ "matched_keywords": [
+ {
+ "keyword": "Personality Traits",
+ "score": 0.7237714
+ }
+ ]
+ },
+ {
+ "query": "personality traits theory",
+ "field": "Psychology",
+ "rank": 2,
+ "topic_name": "Personality Disorders and Psychopathology",
+ "total_score": 44.989017,
+ "lexical_score": 63.7069605,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 18.094284,
+ "matched_keywords": [
+ {
+ "keyword": "Personality Traits",
+ "score": 0.7237714
+ },
+ {
+ "keyword": "Borderline Personality Disorder",
+ "score": 0.5154317
+ }
+ ]
+ },
+ {
+ "query": "personality traits theory",
+ "field": "Psychology",
+ "rank": 3,
+ "topic_name": "Labor market dynamics and wage inequality",
+ "total_score": 41.910072,
+ "lexical_score": 34.4915917,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 18.094284,
+ "matched_keywords": [
+ {
+ "keyword": "Personality Traits",
+ "score": 0.7237714
+ }
+ ]
+ },
+ {
+ "query": "child development stages",
+ "field": "Psychology",
+ "rank": 1,
+ "topic_name": "Child Therapy and Development",
+ "total_score": 50.23785,
+ "lexical_score": 44.363927000000004,
+ "title_vector_score": 20.541458,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Child-Centered",
+ "score": 0.54469043
+ }
+ ]
+ },
+ {
+ "query": "child development stages",
+ "field": "Psychology",
+ "rank": 2,
+ "topic_name": "Child Development and Education",
+ "total_score": 48.83671,
+ "lexical_score": 36.0150094,
+ "title_vector_score": 19.14032,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Motor Skills Development",
+ "score": 0.583683
+ }
+ ]
+ },
+ {
+ "query": "child development stages",
+ "field": "Psychology",
+ "rank": 3,
+ "topic_name": "Developmental and Educational Neuropsychology",
+ "total_score": 33.734776,
+ "lexical_score": 22.4029826,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 18.252594,
+ "matched_keywords": [
+ {
+ "keyword": "Child Development",
+ "score": 0.7301038
+ },
+ {
+ "keyword": "Cognitive Development",
+ "score": 0.62221783
+ }
+ ]
+ },
+ {
+ "query": "addiction recovery mechanisms",
+ "field": "Psychology",
+ "rank": 1,
+ "topic_name": "Stroke Rehabilitation and Recovery",
+ "total_score": 39.101044,
+ "lexical_score": 42.207363400000006,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 16.596859,
+ "matched_keywords": [
+ {
+ "keyword": "Rehabilitation Techniques",
+ "score": 0.6638743
+ },
+ {
+ "keyword": "Motor Recovery",
+ "score": 0.6058337
+ }
+ ]
+ },
+ {
+ "query": "addiction recovery mechanisms",
+ "field": "Psychology",
+ "rank": 2,
+ "topic_name": "DNA Repair Mechanisms",
+ "total_score": 35.225082,
+ "lexical_score": 19.5927503,
+ "title_vector_score": 18.396072,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "addiction recovery mechanisms",
+ "field": "Psychology",
+ "rank": 3,
+ "topic_name": "Pain Mechanisms and Treatments",
+ "total_score": 33.682667,
+ "lexical_score": 18.277993,
+ "title_vector_score": 18.457298,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "emotional intelligence",
+ "field": "Psychology",
+ "rank": 1,
+ "topic_name": "Emotional Intelligence and Performance",
+ "total_score": 92.659515,
+ "lexical_score": 81.2533248,
+ "title_vector_score": 22.809486,
+ "description_vector_score": 7.7876472,
+ "keywords_vector_score": 22.084778,
+ "matched_keywords": [
+ {
+ "keyword": "Emotional Intelligence",
+ "score": 0.8833911
+ },
+ {
+ "keyword": "Trait Emotional Intelligence",
+ "score": 0.8067856
+ }
+ ]
+ },
+ {
+ "query": "emotional intelligence",
+ "field": "Psychology",
+ "rank": 2,
+ "topic_name": "Physical education and sports games research",
+ "total_score": 40.199883,
+ "lexical_score": 29.1102299,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.084778,
+ "matched_keywords": [
+ {
+ "keyword": "Emotional Intelligence",
+ "score": 0.8833911
+ },
+ {
+ "keyword": "Socioemotional Competence",
+ "score": 0.5924759
+ }
+ ]
+ },
+ {
+ "query": "emotional intelligence",
+ "field": "Psychology",
+ "rank": 3,
+ "topic_name": "Child Development and Education",
+ "total_score": 39.462715,
+ "lexical_score": 26.1012388,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.084778,
+ "matched_keywords": [
+ {
+ "keyword": "Emotional Intelligence",
+ "score": 0.8833911
+ },
+ {
+ "keyword": "Social Skills",
+ "score": 0.5773697
+ }
+ ]
+ },
+ {
+ "query": "perception and sensation",
+ "field": "Psychology",
+ "rank": 1,
+ "topic_name": "Face Recognition and Perception",
+ "total_score": 39.82291,
+ "lexical_score": 32.891447670519995,
+ "title_vector_score": 20.82203,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Face Perception",
+ "score": 0.62776184
+ },
+ {
+ "keyword": "Object Recognition",
+ "score": 0.51912564
+ }
+ ]
+ },
+ {
+ "query": "perception and sensation",
+ "field": "Psychology",
+ "rank": 2,
+ "topic_name": "Categorization, perception, and language",
+ "total_score": 38.716457,
+ "lexical_score": 37.968342247349995,
+ "title_vector_score": 19.715576,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Color Perception",
+ "score": 0.6367645
+ },
+ {
+ "keyword": "Categorical Perception",
+ "score": 0.5575587
+ }
+ ]
+ },
+ {
+ "query": "perception and sensation",
+ "field": "Psychology",
+ "rank": 3,
+ "topic_name": "Swearing, Euphemism, Multilingualism",
+ "total_score": 28.592907,
+ "lexical_score": 14.36490934735,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 18.806362,
+ "matched_keywords": [
+ {
+ "keyword": "Perception",
+ "score": 0.7522545
+ }
+ ]
+ },
+ {
+ "query": "group dynamics psychology",
+ "field": "Psychology",
+ "rank": 1,
+ "topic_name": "Social and Intergroup Psychology",
+ "total_score": 58.32349,
+ "lexical_score": 46.018088899999995,
+ "title_vector_score": 19.469337,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 19.69598,
+ "matched_keywords": [
+ {
+ "keyword": "Group Dynamics",
+ "score": 0.78783923
+ },
+ {
+ "keyword": "Power Dynamics",
+ "score": 0.56825894
+ }
+ ]
+ },
+ {
+ "query": "group dynamics psychology",
+ "field": "Psychology",
+ "rank": 2,
+ "topic_name": "Psychology and Mental Health",
+ "total_score": 35.770966,
+ "lexical_score": 17.107674,
+ "title_vector_score": 18.663292,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Psychopathology",
+ "score": 0.5850499
+ },
+ {
+ "keyword": "Mental Health",
+ "score": 0.5187314
+ }
+ ]
+ },
+ {
+ "query": "group dynamics psychology",
+ "field": "Psychology",
+ "rank": 3,
+ "topic_name": "Psychology of Social Influence",
+ "total_score": 35.677887,
+ "lexical_score": 23.6897177,
+ "title_vector_score": 18.570213,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "depression treatment outcomes",
+ "field": "Psychology",
+ "rank": 1,
+ "topic_name": "Treatment of Major Depression",
+ "total_score": 56.469387,
+ "lexical_score": 69.3653104,
+ "title_vector_score": 20.254974,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Treatment-Resistant Depression",
+ "score": 0.6326828
+ },
+ {
+ "keyword": "Depression",
+ "score": 0.5062892
+ }
+ ]
+ },
+ {
+ "query": "depression treatment outcomes",
+ "field": "Psychology",
+ "rank": 2,
+ "topic_name": "Substance Abuse Treatment and Outcomes",
+ "total_score": 45.071102,
+ "lexical_score": 26.891513,
+ "title_vector_score": 18.179588,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "depression treatment outcomes",
+ "field": "Psychology",
+ "rank": 3,
+ "topic_name": "Cleft Lip and Palate Research",
+ "total_score": 36.994785,
+ "lexical_score": 24.492391100000003,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 18.403435,
+ "matched_keywords": [
+ {
+ "keyword": "Treatment Outcomes",
+ "score": 0.7361374
+ },
+ {
+ "keyword": "Speech Outcomes",
+ "score": 0.5582263
+ }
+ ]
+ },
+ {
+ "query": "stress management interventions",
+ "field": "Psychology",
+ "rank": 1,
+ "topic_name": "Mindfulness and Compassion Interventions",
+ "total_score": 38.781036,
+ "lexical_score": 33.8347231,
+ "title_vector_score": 19.414024,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Stress Reduction",
+ "score": 0.64164096
+ },
+ {
+ "keyword": "Emotion Regulation",
+ "score": 0.53035355
+ }
+ ]
+ },
+ {
+ "query": "stress management interventions",
+ "field": "Psychology",
+ "rank": 2,
+ "topic_name": "Digital Mental Health Interventions",
+ "total_score": 38.21856,
+ "lexical_score": 34.7355546,
+ "title_vector_score": 18.851547,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Internet-based Interventions",
+ "score": 0.57518893
+ },
+ {
+ "keyword": "Therapist Support",
+ "score": 0.5483716
+ }
+ ]
+ },
+ {
+ "query": "stress management interventions",
+ "field": "Psychology",
+ "rank": 3,
+ "topic_name": "Cardiac Health and Mental Health",
+ "total_score": 30.729036,
+ "lexical_score": 20.4039871,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 19.153976,
+ "matched_keywords": [
+ {
+ "keyword": "Stress Management",
+ "score": 0.76615906
+ },
+ {
+ "keyword": "Cardiac Rehabilitation",
+ "score": 0.5404752
+ }
+ ]
+ },
+ {
+ "query": "motivation theories",
+ "field": "Psychology",
+ "rank": 1,
+ "topic_name": "advanced mathematical theories",
+ "total_score": 41.20678,
+ "lexical_score": 21.793135,
+ "title_vector_score": 19.413643,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "string theory",
+ "score": 0.6553548
+ },
+ {
+ "keyword": "ergodic theory",
+ "score": 0.5858574
+ }
+ ]
+ },
+ {
+ "query": "motivation theories",
+ "field": "Psychology",
+ "rank": 2,
+ "topic_name": "Human Behavior and Motivation",
+ "total_score": 39.789772,
+ "lexical_score": 37.1763975,
+ "title_vector_score": 18.705635,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Human Motivation",
+ "score": 0.6785863
+ }
+ ]
+ },
+ {
+ "query": "motivation theories",
+ "field": "Psychology",
+ "rank": 3,
+ "topic_name": "Economic theories and models",
+ "total_score": 36.630714,
+ "lexical_score": 19.71646,
+ "title_vector_score": 16.914253,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "cognitive dissonance",
+ "field": "Psychology",
+ "rank": 1,
+ "topic_name": "Health, Environment, Cognitive Aging",
+ "total_score": 32.83127,
+ "lexical_score": 17.44766,
+ "title_vector_score": 15.383606,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "cognitive dissonance",
+ "field": "Psychology",
+ "rank": 2,
+ "topic_name": "Intensive Care Unit Cognitive Disorders",
+ "total_score": 31.5525,
+ "lexical_score": 27.1396791,
+ "title_vector_score": 15.622787,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Cognitive Dysfunction",
+ "score": 0.64291257
+ },
+ {
+ "keyword": "Neuromuscular Dysfunction",
+ "score": 0.5185407
+ }
+ ]
+ },
+ {
+ "query": "cognitive dissonance",
+ "field": "Psychology",
+ "rank": 3,
+ "topic_name": "Learning Styles and Cognitive Differences",
+ "total_score": 31.44283,
+ "lexical_score": 26.7430594,
+ "title_vector_score": 15.513116,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Cognitive Styles",
+ "score": 0.5594406
+ },
+ {
+ "keyword": "Cultural Differences",
+ "score": 0.53734714
+ }
+ ]
+ },
+ {
+ "query": "behavioral psychology",
+ "field": "Psychology",
+ "rank": 1,
+ "topic_name": "Neural and Behavioral Psychology Studies",
+ "total_score": 52.794,
+ "lexical_score": 33.979455,
+ "title_vector_score": 18.814545,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Prefrontal Cortex",
+ "score": 0.5429166
+ },
+ {
+ "keyword": "Adolescent Brain Development",
+ "score": 0.5403163
+ }
+ ]
+ },
+ {
+ "query": "behavioral psychology",
+ "field": "Psychology",
+ "rank": 2,
+ "topic_name": "Behavioral and Psychological Studies",
+ "total_score": 40.950798,
+ "lexical_score": 35.8471595,
+ "title_vector_score": 20.841103,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Behavioral Interventions",
+ "score": 0.6781222
+ },
+ {
+ "keyword": "Positive Behavior Support",
+ "score": 0.52826184
+ }
+ ]
+ },
+ {
+ "query": "behavioral psychology",
+ "field": "Psychology",
+ "rank": 3,
+ "topic_name": "Psychology and Mental Health",
+ "total_score": 37.40213,
+ "lexical_score": 17.107674,
+ "title_vector_score": 20.294456,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Psychopathology",
+ "score": 0.63875455
+ },
+ {
+ "keyword": "Parenting",
+ "score": 0.5853742
+ }
+ ]
+ },
+ {
+ "query": "mindfulness practices",
+ "field": "Psychology",
+ "rank": 1,
+ "topic_name": "Mindfulness and Compassion Interventions",
+ "total_score": 61.843468,
+ "lexical_score": 52.353169,
+ "title_vector_score": 18.88607,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 17.791176,
+ "matched_keywords": [
+ {
+ "keyword": "Mindfulness",
+ "score": 0.71164703
+ },
+ {
+ "keyword": "Meditation",
+ "score": 0.6525256
+ }
+ ]
+ },
+ {
+ "query": "mindfulness practices",
+ "field": "Psychology",
+ "rank": 2,
+ "topic_name": "Obesity and Health Practices",
+ "total_score": 31.54781,
+ "lexical_score": 14.2450285,
+ "title_vector_score": 17.30278,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Psychological Well-being",
+ "score": 0.5151202
+ },
+ {
+ "keyword": "Physician Attitudes",
+ "score": 0.5108668
+ }
+ ]
+ },
+ {
+ "query": "mindfulness practices",
+ "field": "Psychology",
+ "rank": 3,
+ "topic_name": "Reflective Practices in Education",
+ "total_score": 31.351734,
+ "lexical_score": 14.2450285,
+ "title_vector_score": 17.106705,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Reflective Practice",
+ "score": 0.65897876
+ },
+ {
+ "keyword": "Self-Reflection",
+ "score": 0.56385297
+ }
+ ]
+ },
+ {
+ "query": "sleep disorders psychology",
+ "field": "Psychology",
+ "rank": 1,
+ "topic_name": "Sleep and related disorders",
+ "total_score": 54.204582,
+ "lexical_score": 61.969163,
+ "title_vector_score": 20.388298,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Sleep Quality",
+ "score": 0.62148666
+ },
+ {
+ "keyword": "Sleep Duration",
+ "score": 0.61595535
+ }
+ ]
+ },
+ {
+ "query": "sleep disorders psychology",
+ "field": "Psychology",
+ "rank": 2,
+ "topic_name": "Psychology and Mental Health",
+ "total_score": 36.068703,
+ "lexical_score": 17.107674,
+ "title_vector_score": 18.96103,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Psychopathology",
+ "score": 0.602019
+ },
+ {
+ "keyword": "Mental Health",
+ "score": 0.53942615
+ }
+ ]
+ },
+ {
+ "query": "sleep disorders psychology",
+ "field": "Psychology",
+ "rank": 3,
+ "topic_name": "Noise Effects and Management",
+ "total_score": 29.714527,
+ "lexical_score": 19.299002,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 16.780918,
+ "matched_keywords": [
+ {
+ "keyword": "Sleep Disturbance",
+ "score": 0.6712367
+ }
+ ]
+ },
+ {
+ "query": "nanomaterials synthesis",
+ "field": "Materials Science",
+ "rank": 1,
+ "topic_name": "Nanoparticles: synthesis and applications",
+ "total_score": 43.99985,
+ "lexical_score": 41.6579822,
+ "title_vector_score": 20.70015,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Nanomaterials",
+ "score": 0.69474155
+ },
+ {
+ "keyword": "Biological Synthesis",
+ "score": 0.62489444
+ }
+ ]
+ },
+ {
+ "query": "nanomaterials synthesis",
+ "field": "Materials Science",
+ "rank": 2,
+ "topic_name": "Microwave-Assisted Synthesis and Applications",
+ "total_score": 42.403633,
+ "lexical_score": 43.2092843,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 21.981144,
+ "matched_keywords": [
+ {
+ "keyword": "Nanomaterials Synthesis",
+ "score": 0.87924576
+ },
+ {
+ "keyword": "Organic Synthesis",
+ "score": 0.6610387
+ }
+ ]
+ },
+ {
+ "query": "nanomaterials synthesis",
+ "field": "Materials Science",
+ "rank": 3,
+ "topic_name": "Nanomaterials for catalytic reactions",
+ "total_score": 40.162148,
+ "lexical_score": 31.1063608,
+ "title_vector_score": 20.795135,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Metal Nanoparticles",
+ "score": 0.6164958
+ },
+ {
+ "keyword": "Nanocomposites",
+ "score": 0.6038882
+ }
+ ]
+ },
+ {
+ "query": "graphene applications",
+ "field": "Materials Science",
+ "rank": 1,
+ "topic_name": "Graphene and Nanomaterials Applications",
+ "total_score": 62.834522,
+ "lexical_score": 63.827391999999996,
+ "title_vector_score": 21.283607,
+ "description_vector_score": 7.6572804,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Graphene",
+ "score": 0.68892413
+ },
+ {
+ "keyword": "Biomedical Applications",
+ "score": 0.57668304
+ }
+ ]
+ },
+ {
+ "query": "graphene applications",
+ "field": "Materials Science",
+ "rank": 2,
+ "topic_name": "Graphene research and applications",
+ "total_score": 56.213886,
+ "lexical_score": 59.0918457,
+ "title_vector_score": 22.320251,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Graphene",
+ "score": 0.68892413
+ },
+ {
+ "keyword": "Graphene Oxide",
+ "score": 0.6778361
+ }
+ ]
+ },
+ {
+ "query": "graphene applications",
+ "field": "Materials Science",
+ "rank": 3,
+ "topic_name": "Nanopore and Nanochannel Transport Studies",
+ "total_score": 28.701263,
+ "lexical_score": 18.465743500000002,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 17.712814,
+ "matched_keywords": [
+ {
+ "keyword": "Graphene Membranes",
+ "score": 0.7085126
+ },
+ {
+ "keyword": "Carbon Nanotubes",
+ "score": 0.5121129
+ }
+ ]
+ },
+ {
+ "query": "polymers characterization",
+ "field": "Materials Science",
+ "rank": 1,
+ "topic_name": "Polymer Synthesis and Characterization",
+ "total_score": 40.25728,
+ "lexical_score": 32.736272400000004,
+ "title_vector_score": 21.994286,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Polymer Resins",
+ "score": 0.6447563
+ },
+ {
+ "keyword": "Characterization",
+ "score": 0.6351306
+ }
+ ]
+ },
+ {
+ "query": "polymers characterization",
+ "field": "Materials Science",
+ "rank": 2,
+ "topic_name": "Advanced Polymer Synthesis and Characterization",
+ "total_score": 36.58023,
+ "lexical_score": 31.9748155,
+ "title_vector_score": 19.90612,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Functional Polymers",
+ "score": 0.67911404
+ },
+ {
+ "keyword": "Controlled Polymerization",
+ "score": 0.6235275
+ }
+ ]
+ },
+ {
+ "query": "polymers characterization",
+ "field": "Materials Science",
+ "rank": 3,
+ "topic_name": "Polymer crystallization and properties",
+ "total_score": 32.616535,
+ "lexical_score": 18.812335,
+ "title_vector_score": 21.692352,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Polymer Crystallization",
+ "score": 0.71509933
+ },
+ {
+ "keyword": "Conducting Polymers",
+ "score": 0.66812134
+ }
+ ]
+ },
+ {
+ "query": "metallurgy engineering",
+ "field": "Materials Science",
+ "rank": 1,
+ "topic_name": "Metallurgy and Material Science",
+ "total_score": 43.99118,
+ "lexical_score": 21.714607,
+ "title_vector_score": 22.276573,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "metallurgy engineering",
+ "field": "Materials Science",
+ "rank": 2,
+ "topic_name": "Metallurgy and Material Forming",
+ "total_score": 42.683884,
+ "lexical_score": 21.714607,
+ "title_vector_score": 20.969276,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Metallic Materials",
+ "score": 0.63740665
+ }
+ ]
+ },
+ {
+ "query": "metallurgy engineering",
+ "field": "Materials Science",
+ "rank": 3,
+ "topic_name": "Metallurgical Processes and Thermodynamics",
+ "total_score": 33.492714,
+ "lexical_score": 14.161036,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 19.331676,
+ "matched_keywords": [
+ {
+ "keyword": "Metallurgy",
+ "score": 0.7732671
+ }
+ ]
+ },
+ {
+ "query": "semiconductor fabrication",
+ "field": "Materials Science",
+ "rank": 1,
+ "topic_name": "Semiconductor materials and devices",
+ "total_score": 37.45408,
+ "lexical_score": 33.4986836,
+ "title_vector_score": 18.687325,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Semiconductor Devices",
+ "score": 0.6932411
+ },
+ {
+ "keyword": "Metal Gate Transistors",
+ "score": 0.56222534
+ }
+ ]
+ },
+ {
+ "query": "semiconductor fabrication",
+ "field": "Materials Science",
+ "rank": 2,
+ "topic_name": "Semiconductor materials and interfaces",
+ "total_score": 36.690758,
+ "lexical_score": 38.2176096,
+ "title_vector_score": 17.924004,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Semiconductor Physics",
+ "score": 0.69006854
+ },
+ {
+ "keyword": "Metal-Semiconductor Contacts",
+ "score": 0.6674983
+ }
+ ]
+ },
+ {
+ "query": "semiconductor fabrication",
+ "field": "Materials Science",
+ "rank": 3,
+ "topic_name": "Advanced Semiconductor Detectors and Materials",
+ "total_score": 34.958916,
+ "lexical_score": 27.377563000000002,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 17.824871,
+ "matched_keywords": [
+ {
+ "keyword": "Semiconductor Materials",
+ "score": 0.7129949
+ },
+ {
+ "keyword": "Compound Semiconductors",
+ "score": 0.6155421
+ }
+ ]
+ },
+ {
+ "query": "composite materials design",
+ "field": "Materials Science",
+ "rank": 1,
+ "topic_name": "Composite Material Mechanics",
+ "total_score": 67.99351,
+ "lexical_score": 53.6168346,
+ "title_vector_score": 23.83564,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 20.156128,
+ "matched_keywords": [
+ {
+ "keyword": "Composite Materials",
+ "score": 0.80624515
+ },
+ {
+ "keyword": "Material Modeling",
+ "score": 0.6265666
+ }
+ ]
+ },
+ {
+ "query": "composite materials design",
+ "field": "Materials Science",
+ "rank": 2,
+ "topic_name": "Electrophoretic Deposition in Materials Science",
+ "total_score": 41.242504,
+ "lexical_score": 44.379938100000004,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 20.145481,
+ "matched_keywords": [
+ {
+ "keyword": "Composite Materials",
+ "score": 0.8058192
+ },
+ {
+ "keyword": "Ceramic Materials",
+ "score": 0.6395747
+ }
+ ]
+ },
+ {
+ "query": "composite materials design",
+ "field": "Materials Science",
+ "rank": 3,
+ "topic_name": "Erosion and Abrasive Machining",
+ "total_score": 37.523098,
+ "lexical_score": 27.027019,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 20.156128,
+ "matched_keywords": [
+ {
+ "keyword": "Composite Materials",
+ "score": 0.80624515
+ }
+ ]
+ },
+ {
+ "query": "biomaterials tissue engineering",
+ "field": "Materials Science",
+ "rank": 1,
+ "topic_name": "Bone Tissue Engineering Materials",
+ "total_score": 85.44179,
+ "lexical_score": 84.5024163,
+ "title_vector_score": 24.30542,
+ "description_vector_score": 8.622303,
+ "keywords_vector_score": 20.646317,
+ "matched_keywords": [
+ {
+ "keyword": "Tissue Engineering",
+ "score": 0.8258527
+ },
+ {
+ "keyword": "Biomaterials",
+ "score": 0.771239
+ }
+ ]
+ },
+ {
+ "query": "biomaterials tissue engineering",
+ "field": "Materials Science",
+ "rank": 2,
+ "topic_name": "Tissue Engineering and Regenerative Medicine",
+ "total_score": 51.00333,
+ "lexical_score": 63.446709899999995,
+ "title_vector_score": 21.908073,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Cardiac Tissue Engineering",
+ "score": 0.7526932
+ },
+ {
+ "keyword": "Organ Engineering",
+ "score": 0.71480054
+ }
+ ]
+ },
+ {
+ "query": "biomaterials tissue engineering",
+ "field": "Materials Science",
+ "rank": 3,
+ "topic_name": "Hydrogels: synthesis, properties, applications",
+ "total_score": 49.48989,
+ "lexical_score": 38.665532400000004,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 20.646317,
+ "matched_keywords": [
+ {
+ "keyword": "Tissue Engineering",
+ "score": 0.8258527
+ },
+ {
+ "keyword": "Biomaterials",
+ "score": 0.771239
+ }
+ ]
+ },
+ {
+ "query": "thin film deposition",
+ "field": "Materials Science",
+ "rank": 1,
+ "topic_name": "Thin-Film Transistor Technologies",
+ "total_score": 60.57089,
+ "lexical_score": 71.73641239999999,
+ "title_vector_score": 18.92746,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Thin-Film Transistors",
+ "score": 0.68437195
+ }
+ ]
+ },
+ {
+ "query": "thin film deposition",
+ "field": "Materials Science",
+ "rank": 2,
+ "topic_name": "Advanced Materials and Semiconductor Technologies",
+ "total_score": 53.51777,
+ "lexical_score": 46.995557899999994,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.990131,
+ "matched_keywords": [
+ {
+ "keyword": "Thin-Film Deposition",
+ "score": 0.91960526
+ }
+ ]
+ },
+ {
+ "query": "thin film deposition",
+ "field": "Materials Science",
+ "rank": 3,
+ "topic_name": "Optical Coatings and Gratings",
+ "total_score": 51.087578,
+ "lexical_score": 50.1307879,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 17.96999,
+ "matched_keywords": [
+ {
+ "keyword": "Thin-Film Materials",
+ "score": 0.7187996
+ },
+ {
+ "keyword": "Glancing Angle Deposition",
+ "score": 0.6586482
+ }
+ ]
+ },
+ {
+ "query": "corrosion resistance",
+ "field": "Materials Science",
+ "rank": 1,
+ "topic_name": "Concrete Corrosion and Durability",
+ "total_score": 42.141754,
+ "lexical_score": 46.191041,
+ "title_vector_score": 19.637566,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Corrosion Rate Measurement",
+ "score": 0.7382037
+ },
+ {
+ "keyword": "Corrosion",
+ "score": 0.7293472
+ }
+ ]
+ },
+ {
+ "query": "corrosion resistance",
+ "field": "Materials Science",
+ "rank": 2,
+ "topic_name": "Corrosion Behavior and Inhibition",
+ "total_score": 41.497643,
+ "lexical_score": 44.864388000000005,
+ "title_vector_score": 18.993454,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Metal Corrosion",
+ "score": 0.7445552
+ },
+ {
+ "keyword": "Corrosion Inhibitors",
+ "score": 0.6815999
+ }
+ ]
+ },
+ {
+ "query": "corrosion resistance",
+ "field": "Materials Science",
+ "rank": 3,
+ "topic_name": "Magnesium Alloys: Properties and Applications",
+ "total_score": 40.533638,
+ "lexical_score": 28.404443500000003,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.033436,
+ "matched_keywords": [
+ {
+ "keyword": "Corrosion Resistance",
+ "score": 0.88133746
+ },
+ {
+ "keyword": "Magnesium Alloys",
+ "score": 0.5039177
+ }
+ ]
+ },
+ {
+ "query": "superconductors properties",
+ "field": "Materials Science",
+ "rank": 1,
+ "topic_name": "Superconducting Materials and Applications",
+ "total_score": 43.355755,
+ "lexical_score": 8.6477397,
+ "title_vector_score": 19.059448,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 18.357498,
+ "matched_keywords": [
+ {
+ "keyword": "Superconducting Magnets",
+ "score": 0.73429996
+ },
+ {
+ "keyword": "Cryogenic Material Properties",
+ "score": 0.6422259
+ }
+ ]
+ },
+ {
+ "query": "superconductors properties",
+ "field": "Materials Science",
+ "rank": 2,
+ "topic_name": "Thermal properties of materials",
+ "total_score": 32.714214,
+ "lexical_score": 16.2512775,
+ "title_vector_score": 19.215279,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Thermal Conductivity",
+ "score": 0.60244495
+ }
+ ]
+ },
+ {
+ "query": "superconductors properties",
+ "field": "Materials Science",
+ "rank": 3,
+ "topic_name": "Magnetic Properties and Applications",
+ "total_score": 32.426777,
+ "lexical_score": 16.047103,
+ "title_vector_score": 18.927841,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Magnetic Materials",
+ "score": 0.5612526
+ },
+ {
+ "keyword": "Electrical Steels",
+ "score": 0.52985764
+ }
+ ]
+ },
+ {
+ "query": "ceramic engineering",
+ "field": "Materials Science",
+ "rank": 1,
+ "topic_name": "Advanced ceramic materials synthesis",
+ "total_score": 44.174934,
+ "lexical_score": 45.29559,
+ "title_vector_score": 19.008713,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Ceramic Materials",
+ "score": 0.67851
+ },
+ {
+ "keyword": "Porous Ceramics",
+ "score": 0.62092084
+ }
+ ]
+ },
+ {
+ "query": "ceramic engineering",
+ "field": "Materials Science",
+ "rank": 2,
+ "topic_name": "Chemistry and Chemical Engineering",
+ "total_score": 30.18461,
+ "lexical_score": 23.0270329,
+ "title_vector_score": 17.683868,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Green Engineering",
+ "score": 0.6462886
+ }
+ ]
+ },
+ {
+ "query": "ceramic engineering",
+ "field": "Materials Science",
+ "rank": 3,
+ "topic_name": "Crystallization and Solubility Studies",
+ "total_score": 26.218227,
+ "lexical_score": 11.6493421,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 18.594963,
+ "matched_keywords": [
+ {
+ "keyword": "Crystal Engineering",
+ "score": 0.74379855
+ },
+ {
+ "keyword": "Process Analytical Technology",
+ "score": 0.53264236
+ }
+ ]
+ },
+ {
+ "query": "alloy development",
+ "field": "Materials Science",
+ "rank": 1,
+ "topic_name": "Metallurgical and Alloy Processes",
+ "total_score": 40.661903,
+ "lexical_score": 21.714607,
+ "title_vector_score": 18.947296,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Alloys",
+ "score": 0.62956744
+ },
+ {
+ "keyword": "Crystal Growth",
+ "score": 0.6154658
+ }
+ ]
+ },
+ {
+ "query": "alloy development",
+ "field": "Materials Science",
+ "rank": 2,
+ "topic_name": "Intermetallics and Advanced Alloy Properties",
+ "total_score": 36.73192,
+ "lexical_score": 19.825434,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 16.906483,
+ "matched_keywords": [
+ {
+ "keyword": "Diffusion in Alloys",
+ "score": 0.67625934
+ },
+ {
+ "keyword": "Intermetallic Alloys",
+ "score": 0.63662463
+ }
+ ]
+ },
+ {
+ "query": "alloy development",
+ "field": "Materials Science",
+ "rank": 3,
+ "topic_name": "dental development and anomalies",
+ "total_score": 29.526218,
+ "lexical_score": 17.3180864,
+ "title_vector_score": 17.868309,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Tooth Development",
+ "score": 0.6436691
+ }
+ ]
+ },
+ {
+ "query": "material degradation",
+ "field": "Materials Science",
+ "rank": 1,
+ "topic_name": "Material Properties and Failure Mechanisms",
+ "total_score": 63.863514,
+ "lexical_score": 46.2244743,
+ "title_vector_score": 17.820053,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 21.380966,
+ "matched_keywords": [
+ {
+ "keyword": "Material Degradation",
+ "score": 0.8552386
+ },
+ {
+ "keyword": "Operational Degradation",
+ "score": 0.62284726
+ }
+ ]
+ },
+ {
+ "query": "material degradation",
+ "field": "Materials Science",
+ "rank": 2,
+ "topic_name": "Protein Degradation and Inhibitors",
+ "total_score": 40.190033,
+ "lexical_score": 40.129604400000005,
+ "title_vector_score": 16.628723,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Cereblon-Dependent Degradation",
+ "score": 0.53051883
+ }
+ ]
+ },
+ {
+ "query": "material degradation",
+ "field": "Materials Science",
+ "rank": 3,
+ "topic_name": "Material Properties and Processing",
+ "total_score": 35.267067,
+ "lexical_score": 27.726506999999998,
+ "title_vector_score": 17.228584,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Material Modeling",
+ "score": 0.57172394
+ }
+ ]
+ },
+ {
+ "query": "photovoltaic materials",
+ "field": "Materials Science",
+ "rank": 1,
+ "topic_name": "Electromagnetic wave absorption materials",
+ "total_score": 31.480919,
+ "lexical_score": 22.678781700000002,
+ "title_vector_score": 18.708496,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Polymer Composites",
+ "score": 0.5965195
+ },
+ {
+ "keyword": "Flexible Materials",
+ "score": 0.5896657
+ }
+ ]
+ },
+ {
+ "query": "photovoltaic materials",
+ "field": "Materials Science",
+ "rank": 2,
+ "topic_name": "Electromagnetic Effects on Materials",
+ "total_score": 31.453453,
+ "lexical_score": 12.772424,
+ "title_vector_score": 18.68103,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Metallic Alloys",
+ "score": 0.5437686
+ },
+ {
+ "keyword": "Mechanical Properties",
+ "score": 0.50425464
+ }
+ ]
+ },
+ {
+ "query": "photovoltaic materials",
+ "field": "Materials Science",
+ "rank": 3,
+ "topic_name": "Solar Radiation and Photovoltaics",
+ "total_score": 30.924938,
+ "lexical_score": 17.3400063,
+ "title_vector_score": 19.577103,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Photovoltaic Power",
+ "score": 0.72241086
+ },
+ {
+ "keyword": "Solar Energy",
+ "score": 0.59079105
+ }
+ ]
+ },
+ {
+ "query": "mechanical testing of alloys",
+ "field": "Materials Science",
+ "rank": 1,
+ "topic_name": "Magnetic Properties of Alloys",
+ "total_score": 47.911118,
+ "lexical_score": 29.545303064645,
+ "title_vector_score": 18.365936,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "mechanical testing of alloys",
+ "field": "Materials Science",
+ "rank": 2,
+ "topic_name": "Intermetallics and Advanced Alloy Properties",
+ "total_score": 41.391254,
+ "lexical_score": 36.05745833533,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 16.504986,
+ "matched_keywords": [
+ {
+ "keyword": "Diffusion in Alloys",
+ "score": 0.66019946
+ },
+ {
+ "keyword": "Mechanical Properties",
+ "score": 0.6059672
+ }
+ ]
+ },
+ {
+ "query": "mechanical testing of alloys",
+ "field": "Materials Science",
+ "rank": 3,
+ "topic_name": "Metallurgical and Alloy Processes",
+ "total_score": 38.656193,
+ "lexical_score": 30.74454088012,
+ "title_vector_score": 18.534546,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Mechanical Properties",
+ "score": 0.60704166
+ },
+ {
+ "keyword": "Alloys",
+ "score": 0.55509186
+ }
+ ]
+ },
+ {
+ "query": "smart materials technology",
+ "field": "Materials Science",
+ "rank": 1,
+ "topic_name": "Smart Materials for Construction",
+ "total_score": 56.105347,
+ "lexical_score": 39.970384700000004,
+ "title_vector_score": 23.965912,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Smart Structures",
+ "score": 0.68163174
+ },
+ {
+ "keyword": "Concrete Sensors",
+ "score": 0.53457516
+ }
+ ]
+ },
+ {
+ "query": "smart materials technology",
+ "field": "Materials Science",
+ "rank": 2,
+ "topic_name": "Smart Cities and Technologies",
+ "total_score": 38.425697,
+ "lexical_score": 32.977699,
+ "title_vector_score": 19.058685,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Smart Cities",
+ "score": 0.6075249
+ },
+ {
+ "keyword": "Internet of Things",
+ "score": 0.54200107
+ }
+ ]
+ },
+ {
+ "query": "smart materials technology",
+ "field": "Materials Science",
+ "rank": 3,
+ "topic_name": "Environmental and Industrial Safety",
+ "total_score": 36.608505,
+ "lexical_score": 29.32369,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 17.817085,
+ "matched_keywords": [
+ {
+ "keyword": "Smart Grid Technology",
+ "score": 0.7126834
+ },
+ {
+ "keyword": "Composite Materials",
+ "score": 0.60523605
+ }
+ ]
+ },
+ {
+ "query": "crystal structure analysis",
+ "field": "Materials Science",
+ "rank": 1,
+ "topic_name": "X-ray Diffraction in Crystallography",
+ "total_score": 61.637627,
+ "lexical_score": 29.492928799999998,
+ "title_vector_score": 19.571953,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 19.624931,
+ "matched_keywords": [
+ {
+ "keyword": "Crystal Structure",
+ "score": 0.7849973
+ },
+ {
+ "keyword": "Structure Determination",
+ "score": 0.7073491
+ }
+ ]
+ },
+ {
+ "query": "crystal structure analysis",
+ "field": "Materials Science",
+ "rank": 2,
+ "topic_name": "Crystal structures of chemical compounds",
+ "total_score": 49.92237,
+ "lexical_score": 64.95372520000001,
+ "title_vector_score": 20.518188,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Crystal Structure Validation",
+ "score": 0.77520627
+ },
+ {
+ "keyword": "Crystal Structure Refinement",
+ "score": 0.73543805
+ }
+ ]
+ },
+ {
+ "query": "crystal structure analysis",
+ "field": "Materials Science",
+ "rank": 3,
+ "topic_name": "Protein Interaction Studies and Fluorescence Analysis",
+ "total_score": 41.918915,
+ "lexical_score": 29.736559999999994,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.292202,
+ "matched_keywords": [
+ {
+ "keyword": "Crystal Structure Analysis",
+ "score": 0.89168805
+ },
+ {
+ "keyword": "Antioxidant Properties",
+ "score": 0.5288658
+ }
+ ]
+ },
+ {
+ "query": "carbon nanotubes research",
+ "field": "Materials Science",
+ "rank": 1,
+ "topic_name": "Carbon Nanotubes in Composites",
+ "total_score": 72.96132,
+ "lexical_score": 81.2043901,
+ "title_vector_score": 20.349388,
+ "description_vector_score": 8.393135,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Nanotubes",
+ "score": 0.6275266
+ }
+ ]
+ },
+ {
+ "query": "carbon nanotubes research",
+ "field": "Materials Science",
+ "rank": 2,
+ "topic_name": "Boron and Carbon Nanomaterials Research",
+ "total_score": 44.614506,
+ "lexical_score": 41.9017507,
+ "title_vector_score": 20.122604,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Boron Nitride Nanotubes",
+ "score": 0.5911153
+ },
+ {
+ "keyword": "Nanostructures",
+ "score": 0.52100754
+ }
+ ]
+ },
+ {
+ "query": "carbon nanotubes research",
+ "field": "Materials Science",
+ "rank": 3,
+ "topic_name": "Electrochemical sensors and biosensors",
+ "total_score": 38.364113,
+ "lexical_score": 31.3939572,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 18.403595,
+ "matched_keywords": [
+ {
+ "keyword": "Carbon Nanotubes",
+ "score": 0.73614377
+ },
+ {
+ "keyword": "Nanostructured Materials",
+ "score": 0.56388474
+ }
+ ]
+ },
+ {
+ "query": "thermal conductivity materials",
+ "field": "Materials Science",
+ "rank": 1,
+ "topic_name": "Thermal properties of materials",
+ "total_score": 62.26679,
+ "lexical_score": 79.8625075,
+ "title_vector_score": 22.598152,
+ "description_vector_score": 7.999077,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Thermal Conductivity",
+ "score": 0.83098346
+ },
+ {
+ "keyword": "Thermal Interface Materials",
+ "score": 0.74776584
+ }
+ ]
+ },
+ {
+ "query": "thermal conductivity materials",
+ "field": "Materials Science",
+ "rank": 2,
+ "topic_name": "Electrical and Thermal Properties of Materials",
+ "total_score": 45.918034,
+ "lexical_score": 26.27055,
+ "title_vector_score": 19.647484,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Electrical Properties",
+ "score": 0.558932
+ },
+ {
+ "keyword": "Thermistors",
+ "score": 0.55012006
+ }
+ ]
+ },
+ {
+ "query": "thermal conductivity materials",
+ "field": "Materials Science",
+ "rank": 3,
+ "topic_name": "Heat and Mass Transfer in Porous Media",
+ "total_score": 40.3328,
+ "lexical_score": 29.965032,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 20.803673,
+ "matched_keywords": [
+ {
+ "keyword": "Thermal Conductivity",
+ "score": 0.83214694
+ },
+ {
+ "keyword": "Heat Transfer",
+ "score": 0.53451157
+ }
+ ]
+ },
+ {
+ "query": "magnetic materials applications",
+ "field": "Materials Science",
+ "rank": 1,
+ "topic_name": "Magnetic Properties and Applications",
+ "total_score": 70.74777,
+ "lexical_score": 54.3508262,
+ "title_vector_score": 22.35344,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 19.55722,
+ "matched_keywords": [
+ {
+ "keyword": "Magnetic Materials",
+ "score": 0.78228885
+ },
+ {
+ "keyword": "Electrical Steels",
+ "score": 0.5414416
+ }
+ ]
+ },
+ {
+ "query": "magnetic materials applications",
+ "field": "Materials Science",
+ "rank": 2,
+ "topic_name": "Magnetic properties of thin films",
+ "total_score": 35.049393,
+ "lexical_score": 44.1045062,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 18.154526,
+ "matched_keywords": [
+ {
+ "keyword": "Ferromagnetic Materials",
+ "score": 0.72618103
+ },
+ {
+ "keyword": "Magnetic Tunnel Junctions",
+ "score": 0.5925331
+ }
+ ]
+ },
+ {
+ "query": "magnetic materials applications",
+ "field": "Materials Science",
+ "rank": 3,
+ "topic_name": "Material Properties and Applications",
+ "total_score": 34.899654,
+ "lexical_score": 32.09049,
+ "title_vector_score": 19.643478,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Aerospace Applications",
+ "score": 0.5960045
+ },
+ {
+ "keyword": "Metal Nanoparticles",
+ "score": 0.54054517
+ }
+ ]
+ },
+ {
+ "query": "macroeconomic policy",
+ "field": "Economics, Econometrics and Finance",
+ "rank": 1,
+ "topic_name": "Geochemistry and Geochronology of Asian Mineral Deposits",
+ "total_score": 33.433647,
+ "lexical_score": 22.0629504,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 19.92709,
+ "matched_keywords": [
+ {
+ "keyword": "macroeconomic factors",
+ "score": 0.79708356
+ },
+ {
+ "keyword": "economic growth",
+ "score": 0.5604515
+ }
+ ]
+ },
+ {
+ "query": "macroeconomic policy",
+ "field": "Economics, Econometrics and Finance",
+ "rank": 2,
+ "topic_name": "Politics, Economics, and Education Policy",
+ "total_score": 33.30668,
+ "lexical_score": 27.569382,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 19.922161,
+ "matched_keywords": [
+ {
+ "keyword": "economic policy",
+ "score": 0.79688644
+ },
+ {
+ "keyword": "monetary policy",
+ "score": 0.78176117
+ }
+ ]
+ },
+ {
+ "query": "macroeconomic policy",
+ "field": "Economics, Econometrics and Finance",
+ "rank": 3,
+ "topic_name": "Monetary Policy and Economic Impact",
+ "total_score": 32.27631,
+ "lexical_score": 33.605173,
+ "title_vector_score": 18.891792,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Monetary Policy",
+ "score": 0.7403908
+ },
+ {
+ "keyword": "Fiscal Policy",
+ "score": 0.70237094
+ }
+ ]
+ },
+ {
+ "query": "econometric modeling",
+ "field": "Economics, Econometrics and Finance",
+ "rank": 1,
+ "topic_name": "Innovation Policy and R&D",
+ "total_score": 34.999725,
+ "lexical_score": 15.849564,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 19.150162,
+ "matched_keywords": [
+ {
+ "keyword": "Econometric Evidence",
+ "score": 0.76600647
+ }
+ ]
+ },
+ {
+ "query": "econometric modeling",
+ "field": "Economics, Econometrics and Finance",
+ "rank": 2,
+ "topic_name": "Aerospace, Electronics, Mathematical Modeling",
+ "total_score": 33.514515,
+ "lexical_score": 16.800915,
+ "title_vector_score": 16.7136,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "econometric modeling",
+ "field": "Economics, Econometrics and Finance",
+ "rank": 3,
+ "topic_name": "demographic modeling and climate adaptation",
+ "total_score": 32.81005,
+ "lexical_score": 15.339233,
+ "title_vector_score": 17.470818,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Small Area Estimation",
+ "score": 0.51445895
+ }
+ ]
+ },
+ {
+ "query": "financial market analysis",
+ "field": "Economics, Econometrics and Finance",
+ "rank": 1,
+ "topic_name": "Financial Analysis and Corporate Governance",
+ "total_score": 45.442905,
+ "lexical_score": 60.656137599999994,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 20.640438,
+ "matched_keywords": [
+ {
+ "keyword": "Financial Analysis",
+ "score": 0.8256175
+ },
+ {
+ "keyword": "Market Analysis",
+ "score": 0.7728221
+ }
+ ]
+ },
+ {
+ "query": "financial market analysis",
+ "field": "Economics, Econometrics and Finance",
+ "rank": 2,
+ "topic_name": "Economic, financial, and policy analysis",
+ "total_score": 43.180573,
+ "lexical_score": 36.3902606,
+ "title_vector_score": 19.219093,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Financial Crisis",
+ "score": 0.5884514
+ },
+ {
+ "keyword": "Monetary Policy",
+ "score": 0.5366542
+ }
+ ]
+ },
+ {
+ "query": "financial market analysis",
+ "field": "Economics, Econometrics and Finance",
+ "rank": 3,
+ "topic_name": "Diverse Scientific and Economic Studies",
+ "total_score": 39.017796,
+ "lexical_score": 29.5481895,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 20.634872,
+ "matched_keywords": [
+ {
+ "keyword": "Financial Analysis",
+ "score": 0.8253949
+ },
+ {
+ "keyword": "Economic Evaluation",
+ "score": 0.5818965
+ }
+ ]
+ },
+ {
+ "query": "monetary theory",
+ "field": "Economics, Econometrics and Finance",
+ "rank": 1,
+ "topic_name": "Economic Theory and Policy",
+ "total_score": 32.630196,
+ "lexical_score": 30.825559300000002,
+ "title_vector_score": 18.449287,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Monetary Policy",
+ "score": 0.7227033
+ }
+ ]
+ },
+ {
+ "query": "monetary theory",
+ "field": "Economics, Econometrics and Finance",
+ "rank": 2,
+ "topic_name": "Politics, Economics, and Education Policy",
+ "total_score": 30.7853,
+ "lexical_score": 16.5794039,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 19.782448,
+ "matched_keywords": [
+ {
+ "keyword": "monetary policy",
+ "score": 0.7912979
+ },
+ {
+ "keyword": "economic policy",
+ "score": 0.6475156
+ }
+ ]
+ },
+ {
+ "query": "monetary theory",
+ "field": "Economics, Econometrics and Finance",
+ "rank": 3,
+ "topic_name": "Banking stability, regulation, efficiency",
+ "total_score": 29.879627,
+ "lexical_score": 18.206478,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 18.129093,
+ "matched_keywords": [
+ {
+ "keyword": "Monetary Policy",
+ "score": 0.72516376
+ },
+ {
+ "keyword": "Finance",
+ "score": 0.5452054
+ }
+ ]
+ },
+ {
+ "query": "microeconomics principles",
+ "field": "Economics, Econometrics and Finance",
+ "rank": 1,
+ "topic_name": "Engineering and Environmental Studies",
+ "total_score": 33.469036,
+ "lexical_score": 19.285816,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 19.347733,
+ "matched_keywords": [
+ {
+ "keyword": "Economic Principles",
+ "score": 0.7739093
+ }
+ ]
+ },
+ {
+ "query": "microeconomics principles",
+ "field": "Economics, Econometrics and Finance",
+ "rank": 2,
+ "topic_name": "Legal principles and applications",
+ "total_score": 25.166224,
+ "lexical_score": 25.166224,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "microeconomics principles",
+ "field": "Economics, Econometrics and Finance",
+ "rank": 3,
+ "topic_name": "HIV/AIDS Impact and Responses",
+ "total_score": 17.931206,
+ "lexical_score": 0.0,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 17.931206,
+ "matched_keywords": [
+ {
+ "keyword": "macroeconomics",
+ "score": 0.71724826
+ },
+ {
+ "keyword": "economic growth",
+ "score": 0.5013046
+ }
+ ]
+ },
+ {
+ "query": "game theory applications",
+ "field": "Economics, Econometrics and Finance",
+ "rank": 1,
+ "topic_name": "Game Theory and Applications",
+ "total_score": 87.94707,
+ "lexical_score": 71.15752760000001,
+ "title_vector_score": 22.796898,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 18.132751,
+ "matched_keywords": [
+ {
+ "keyword": "Game Theory",
+ "score": 0.72531
+ },
+ {
+ "keyword": "Coordination Games",
+ "score": 0.5136261
+ }
+ ]
+ },
+ {
+ "query": "game theory applications",
+ "field": "Economics, Econometrics and Finance",
+ "rank": 2,
+ "topic_name": "Game Theory and Voting Systems",
+ "total_score": 51.56531,
+ "lexical_score": 63.6153666,
+ "title_vector_score": 18.071823,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Game Theory",
+ "score": 0.72421646
+ },
+ {
+ "keyword": "Matching Theory",
+ "score": 0.54847974
+ }
+ ]
+ },
+ {
+ "query": "game theory applications",
+ "field": "Economics, Econometrics and Finance",
+ "rank": 3,
+ "topic_name": "Graph theory and applications",
+ "total_score": 43.08459,
+ "lexical_score": 27.167899000000002,
+ "title_vector_score": 18.571358,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "inflation rates forecast",
+ "field": "Economics, Econometrics and Finance",
+ "rank": 1,
+ "topic_name": "Monetary Policy and Economic Impact",
+ "total_score": 45.11943,
+ "lexical_score": 42.4372587,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 16.289299,
+ "matched_keywords": [
+ {
+ "keyword": "Inflation Dynamics",
+ "score": 0.6515719
+ },
+ {
+ "keyword": "Interest Rates",
+ "score": 0.62314606
+ }
+ ]
+ },
+ {
+ "query": "inflation rates forecast",
+ "field": "Economics, Econometrics and Finance",
+ "rank": 2,
+ "topic_name": "Forecasting Techniques and Applications",
+ "total_score": 16.185732,
+ "lexical_score": 24.675599000000002,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Demand Forecasting",
+ "score": 0.57810086
+ },
+ {
+ "keyword": "Forecast Combination",
+ "score": 0.50064975
+ }
+ ]
+ },
+ {
+ "query": "inflation rates forecast",
+ "field": "Economics, Econometrics and Finance",
+ "rank": 3,
+ "topic_name": "Financial Distress and Bankruptcy Prediction",
+ "total_score": 15.652402,
+ "lexical_score": 0.0,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 15.652402,
+ "matched_keywords": [
+ {
+ "keyword": "Bankruptcy Prediction",
+ "score": 0.62609607
+ }
+ ]
+ },
+ {
+ "query": "labor economics",
+ "field": "Economics, Econometrics and Finance",
+ "rank": 1,
+ "topic_name": "Legal and Labor Studies",
+ "total_score": 37.531517,
+ "lexical_score": 32.3987635,
+ "title_vector_score": 18.764763,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Labor Relations",
+ "score": 0.64070004
+ },
+ {
+ "keyword": "Worker Rights",
+ "score": 0.5805041
+ }
+ ]
+ },
+ {
+ "query": "labor economics",
+ "field": "Economics, Econometrics and Finance",
+ "rank": 2,
+ "topic_name": "Labor Market and Education",
+ "total_score": 37.09893,
+ "lexical_score": 32.0363085,
+ "title_vector_score": 18.332176,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Labor Migration",
+ "score": 0.68638104
+ },
+ {
+ "keyword": "Economic Development",
+ "score": 0.5383708
+ }
+ ]
+ },
+ {
+ "query": "labor economics",
+ "field": "Economics, Econometrics and Finance",
+ "rank": 3,
+ "topic_name": "Employment, Labor, and Gender Studies",
+ "total_score": 35.173634,
+ "lexical_score": 30.337758900000004,
+ "title_vector_score": 18.039589,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Labor Market",
+ "score": 0.67631656
+ },
+ {
+ "keyword": "Employment Relations",
+ "score": 0.56705093
+ }
+ ]
+ },
+ {
+ "query": "behavioral finance",
+ "field": "Economics, Econometrics and Finance",
+ "rank": 1,
+ "topic_name": "Financial Markets and Investment Strategies",
+ "total_score": 43.147564,
+ "lexical_score": 32.2863732,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.505505,
+ "matched_keywords": [
+ {
+ "keyword": "Behavioral Finance",
+ "score": 0.9002202
+ },
+ {
+ "keyword": "Investor Sentiment",
+ "score": 0.53695935
+ }
+ ]
+ },
+ {
+ "query": "behavioral finance",
+ "field": "Economics, Econometrics and Finance",
+ "rank": 2,
+ "topic_name": "Experimental Behavioral Economics Studies",
+ "total_score": 37.009834,
+ "lexical_score": 24.9695607,
+ "title_vector_score": 16.900139,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "behavioral finance",
+ "field": "Economics, Econometrics and Finance",
+ "rank": 3,
+ "topic_name": "finance, banking, and market dynamics",
+ "total_score": 34.863335,
+ "lexical_score": 17.394995,
+ "title_vector_score": 17.468338,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Monetary Policy",
+ "score": 0.50912476
+ },
+ {
+ "keyword": "Risk Management",
+ "score": 0.50430554
+ }
+ ]
+ },
+ {
+ "query": "portfolio optimization",
+ "field": "Economics, Econometrics and Finance",
+ "rank": 1,
+ "topic_name": "Risk and Portfolio Optimization",
+ "total_score": 83.89513,
+ "lexical_score": 77.20224110000001,
+ "title_vector_score": 22.267609,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.343224,
+ "matched_keywords": [
+ {
+ "keyword": "Portfolio Optimization",
+ "score": 0.8937289
+ },
+ {
+ "keyword": "Robust Optimization",
+ "score": 0.64675903
+ }
+ ]
+ },
+ {
+ "query": "portfolio optimization",
+ "field": "Economics, Econometrics and Finance",
+ "rank": 2,
+ "topic_name": "Art History and Market Analysis",
+ "total_score": 34.358555,
+ "lexical_score": 21.942242,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 18.543148,
+ "matched_keywords": [
+ {
+ "keyword": "Portfolio Diversification",
+ "score": 0.7417259
+ },
+ {
+ "keyword": "Investment",
+ "score": 0.5796585
+ }
+ ]
+ },
+ {
+ "query": "portfolio optimization",
+ "field": "Economics, Econometrics and Finance",
+ "rank": 3,
+ "topic_name": "solar cell performance optimization",
+ "total_score": 33.662174,
+ "lexical_score": 14.11807,
+ "title_vector_score": 19.544106,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "High Efficiency",
+ "score": 0.52833813
+ },
+ {
+ "keyword": "Energy Conversion Efficiency",
+ "score": 0.50739545
+ }
+ ]
+ },
+ {
+ "query": "international trade agreements",
+ "field": "Economics, Econometrics and Finance",
+ "rank": 1,
+ "topic_name": "Law, logistics, and international trade",
+ "total_score": 51.001457,
+ "lexical_score": 64.0759577,
+ "title_vector_score": 18.035774,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Trade Contracts",
+ "score": 0.71688586
+ },
+ {
+ "keyword": "Shipping Regulations",
+ "score": 0.55286026
+ }
+ ]
+ },
+ {
+ "query": "international trade agreements",
+ "field": "Economics, Econometrics and Finance",
+ "rank": 2,
+ "topic_name": "Legal case studies and regulations",
+ "total_score": 48.453438,
+ "lexical_score": 43.929272499999996,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 20.323181,
+ "matched_keywords": [
+ {
+ "keyword": "Trade Agreements",
+ "score": 0.81292725
+ },
+ {
+ "keyword": "International Law",
+ "score": 0.656709
+ }
+ ]
+ },
+ {
+ "query": "international trade agreements",
+ "field": "Economics, Econometrics and Finance",
+ "rank": 3,
+ "topic_name": "International Relations in Latin America",
+ "total_score": 44.43693,
+ "lexical_score": 50.267567299999996,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 20.323181,
+ "matched_keywords": [
+ {
+ "keyword": "Trade Agreements",
+ "score": 0.81292725
+ },
+ {
+ "keyword": "Foreign Policy",
+ "score": 0.51567334
+ }
+ ]
+ },
+ {
+ "query": "fiscal policy impact",
+ "field": "Economics, Econometrics and Finance",
+ "rank": 1,
+ "topic_name": "Fiscal Policy and Economic Growth",
+ "total_score": 71.82877,
+ "lexical_score": 55.850834500000005,
+ "title_vector_score": 19.925385,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 19.269054,
+ "matched_keywords": [
+ {
+ "keyword": "Fiscal Policy",
+ "score": 0.77076215
+ },
+ {
+ "keyword": "Optimal Taxation",
+ "score": 0.5228259
+ }
+ ]
+ },
+ {
+ "query": "fiscal policy impact",
+ "field": "Economics, Econometrics and Finance",
+ "rank": 2,
+ "topic_name": "Economic and Fiscal Studies",
+ "total_score": 48.78486,
+ "lexical_score": 47.2941968,
+ "title_vector_score": 0.0,
+ "description_vector_score": 8.4316635,
+ "keywords_vector_score": 19.269054,
+ "matched_keywords": [
+ {
+ "keyword": "Fiscal Policy",
+ "score": 0.77076215
+ },
+ {
+ "keyword": "Income Taxation",
+ "score": 0.53416187
+ }
+ ]
+ },
+ {
+ "query": "fiscal policy impact",
+ "field": "Economics, Econometrics and Finance",
+ "rank": 3,
+ "topic_name": "Monetary Policy and Economic Impact",
+ "total_score": 46.13005,
+ "lexical_score": 54.447348000000005,
+ "title_vector_score": 19.292717,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Fiscal Policy",
+ "score": 0.7695796
+ },
+ {
+ "keyword": "Monetary Policy",
+ "score": 0.63035583
+ }
+ ]
+ },
+ {
+ "query": "time series analysis",
+ "field": "Economics, Econometrics and Finance",
+ "rank": 1,
+ "topic_name": "Time Series Analysis and Forecasting",
+ "total_score": 78.89951,
+ "lexical_score": 84.7731333,
+ "title_vector_score": 22.370415,
+ "description_vector_score": 7.545795,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Time Series",
+ "score": 0.7268613
+ },
+ {
+ "keyword": "Dynamic Time Warping",
+ "score": 0.5732371
+ }
+ ]
+ },
+ {
+ "query": "time series analysis",
+ "field": "Economics, Econometrics and Finance",
+ "rank": 2,
+ "topic_name": "Data Analysis with R",
+ "total_score": 69.14069,
+ "lexical_score": 48.556881700000005,
+ "title_vector_score": 19.251137,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.961536,
+ "matched_keywords": [
+ {
+ "keyword": "time series analysis",
+ "score": 0.9984614
+ },
+ {
+ "keyword": "statistical analysis",
+ "score": 0.7544861
+ }
+ ]
+ },
+ {
+ "query": "time series analysis",
+ "field": "Economics, Econometrics and Finance",
+ "rank": 3,
+ "topic_name": "Complex Systems and Time Series Analysis",
+ "total_score": 45.062836,
+ "lexical_score": 79.51918429999999,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Nonstationary Time Series",
+ "score": 0.6425565
+ },
+ {
+ "keyword": "Multifractal Analysis",
+ "score": 0.6306038
+ }
+ ]
+ },
+ {
+ "query": "asset pricing models",
+ "field": "Economics, Econometrics and Finance",
+ "rank": 1,
+ "topic_name": "Economic theories and models",
+ "total_score": 60.700623,
+ "lexical_score": 61.252708500000004,
+ "title_vector_score": 16.55281,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 19.235832,
+ "matched_keywords": [
+ {
+ "keyword": "Asset Pricing",
+ "score": 0.7694333
+ }
+ ]
+ },
+ {
+ "query": "asset pricing models",
+ "field": "Economics, Econometrics and Finance",
+ "rank": 2,
+ "topic_name": "Financial Markets and Investment Strategies",
+ "total_score": 50.415443,
+ "lexical_score": 43.1318131,
+ "title_vector_score": 0.0,
+ "description_vector_score": 7.7939415,
+ "keywords_vector_score": 19.261742,
+ "matched_keywords": [
+ {
+ "keyword": "Asset Pricing",
+ "score": 0.77046967
+ }
+ ]
+ },
+ {
+ "query": "asset pricing models",
+ "field": "Economics, Econometrics and Finance",
+ "rank": 3,
+ "topic_name": "Diverse Scientific and Economic Studies",
+ "total_score": 48.650585,
+ "lexical_score": 45.0180431,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 19.224072,
+ "matched_keywords": [
+ {
+ "keyword": "Asset Pricing",
+ "score": 0.76896286
+ },
+ {
+ "keyword": "Panel Data Models",
+ "score": 0.56415176
+ }
+ ]
+ },
+ {
+ "query": "poverty reduction strategies",
+ "field": "Economics, Econometrics and Finance",
+ "rank": 1,
+ "topic_name": "International Development and Aid",
+ "total_score": 38.52639,
+ "lexical_score": 31.8056808,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 18.53059,
+ "matched_keywords": [
+ {
+ "keyword": "Poverty Reduction",
+ "score": 0.74122363
+ },
+ {
+ "keyword": "Development Policies",
+ "score": 0.6216011
+ }
+ ]
+ },
+ {
+ "query": "poverty reduction strategies",
+ "field": "Economics, Econometrics and Finance",
+ "rank": 2,
+ "topic_name": "Education, Technology, and Ethics",
+ "total_score": 38.102283,
+ "lexical_score": 28.6524956,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 18.53059,
+ "matched_keywords": [
+ {
+ "keyword": "Poverty Reduction",
+ "score": 0.74122363
+ }
+ ]
+ },
+ {
+ "query": "poverty reduction strategies",
+ "field": "Economics, Econometrics and Finance",
+ "rank": 3,
+ "topic_name": "International Human Rights and Reproductive Law",
+ "total_score": 37.69579,
+ "lexical_score": 27.9765497,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 18.53059,
+ "matched_keywords": [
+ {
+ "keyword": "Poverty Reduction",
+ "score": 0.74122363
+ }
+ ]
+ },
+ {
+ "query": "economic growth models",
+ "field": "Economics, Econometrics and Finance",
+ "rank": 1,
+ "topic_name": "Economic theories and models",
+ "total_score": 52.65409,
+ "lexical_score": 57.181432799999996,
+ "title_vector_score": 20.033722,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Economic Growth",
+ "score": 0.673392
+ },
+ {
+ "keyword": "Competitive Economy",
+ "score": 0.50869244
+ }
+ ]
+ },
+ {
+ "query": "economic growth models",
+ "field": "Economics, Econometrics and Finance",
+ "rank": 2,
+ "topic_name": "Economic Growth and Productivity",
+ "total_score": 50.63994,
+ "lexical_score": 63.3291866,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 20.436031,
+ "matched_keywords": [
+ {
+ "keyword": "Growth Models",
+ "score": 0.8174413
+ },
+ {
+ "keyword": "Economic Development",
+ "score": 0.6009064
+ }
+ ]
+ },
+ {
+ "query": "economic growth models",
+ "field": "Economics, Econometrics and Finance",
+ "rank": 3,
+ "topic_name": "Economic Growth and Development",
+ "total_score": 49.66829,
+ "lexical_score": 36.2712991,
+ "title_vector_score": 19.464378,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "knowledge economy",
+ "score": 0.552536
+ },
+ {
+ "keyword": "inclusive development",
+ "score": 0.53086853
+ }
+ ]
+ },
+ {
+ "query": "corporate finance theory",
+ "field": "Economics, Econometrics and Finance",
+ "rank": 1,
+ "topic_name": "Corporate Finance and Governance",
+ "total_score": 56.437553,
+ "lexical_score": 50.558093,
+ "title_vector_score": 19.346504,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Corporate Governance",
+ "score": 0.59782916
+ },
+ {
+ "keyword": "Dividend Policy",
+ "score": 0.5482254
+ }
+ ]
+ },
+ {
+ "query": "corporate finance theory",
+ "field": "Economics, Econometrics and Finance",
+ "rank": 2,
+ "topic_name": "Financial Analysis and Corporate Governance",
+ "total_score": 41.770172,
+ "lexical_score": 50.06893960000001,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 19.32977,
+ "matched_keywords": [
+ {
+ "keyword": "Corporate Finance",
+ "score": 0.7731908
+ },
+ {
+ "keyword": "Corporate Governance",
+ "score": 0.5981471
+ }
+ ]
+ },
+ {
+ "query": "corporate finance theory",
+ "field": "Economics, Econometrics and Finance",
+ "rank": 3,
+ "topic_name": "Working Capital and Financial Performance",
+ "total_score": 38.706448,
+ "lexical_score": 24.275762999999998,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 19.32977,
+ "matched_keywords": [
+ {
+ "keyword": "Corporate Finance",
+ "score": 0.7731908
+ },
+ {
+ "keyword": "Liquidity Management",
+ "score": 0.53724545
+ }
+ ]
+ },
+ {
+ "query": "cryptocurrency economics",
+ "field": "Economics, Econometrics and Finance",
+ "rank": 1,
+ "topic_name": "Digital Platforms and Economics",
+ "total_score": 34.664513,
+ "lexical_score": 17.107674,
+ "title_vector_score": 17.556839,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Market Dynamics",
+ "score": 0.54141617
+ }
+ ]
+ },
+ {
+ "query": "cryptocurrency economics",
+ "field": "Economics, Econometrics and Finance",
+ "rank": 2,
+ "topic_name": "Mining Techniques and Economics",
+ "total_score": 33.392883,
+ "lexical_score": 17.107674,
+ "title_vector_score": 16.28521,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "cryptocurrency economics",
+ "field": "Economics, Econometrics and Finance",
+ "rank": 3,
+ "topic_name": "Economic and Industrial Development",
+ "total_score": 27.62889,
+ "lexical_score": 16.2388963,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 16.593678,
+ "matched_keywords": [
+ {
+ "keyword": "Innovation Economics",
+ "score": 0.66374713
+ },
+ {
+ "keyword": "Digital Economy",
+ "score": 0.5957947
+ }
+ ]
+ },
+ {
+ "query": "market equilibrium",
+ "field": "Economics, Econometrics and Finance",
+ "rank": 1,
+ "topic_name": "Economic theories and models",
+ "total_score": 38.027596,
+ "lexical_score": 28.867883499999998,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 18.885677,
+ "matched_keywords": [
+ {
+ "keyword": "Monetary Equilibrium",
+ "score": 0.75542706
+ },
+ {
+ "keyword": "Search Equilibrium",
+ "score": 0.6876653
+ }
+ ]
+ },
+ {
+ "query": "market equilibrium",
+ "field": "Economics, Econometrics and Finance",
+ "rank": 2,
+ "topic_name": "Market Dynamics and Volatility",
+ "total_score": 36.20582,
+ "lexical_score": 30.0075122,
+ "title_vector_score": 17.701035,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Stock Market",
+ "score": 0.5729955
+ },
+ {
+ "keyword": "Commodity Markets",
+ "score": 0.5611636
+ }
+ ]
+ },
+ {
+ "query": "market equilibrium",
+ "field": "Economics, Econometrics and Finance",
+ "rank": 3,
+ "topic_name": "Housing Market and Economics",
+ "total_score": 35.114815,
+ "lexical_score": 31.518065999999997,
+ "title_vector_score": 16.610031,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Real Estate Market",
+ "score": 0.59659576
+ }
+ ]
+ },
+ {
+ "query": "public finance management",
+ "field": "Economics, Econometrics and Finance",
+ "rank": 1,
+ "topic_name": "Economic and Fiscal Studies",
+ "total_score": 40.836662,
+ "lexical_score": 23.144463599999998,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 19.731903,
+ "matched_keywords": [
+ {
+ "keyword": "Public Finance",
+ "score": 0.7892761
+ },
+ {
+ "keyword": "Financial Management",
+ "score": 0.73414737
+ }
+ ]
+ },
+ {
+ "query": "public finance management",
+ "field": "Economics, Econometrics and Finance",
+ "rank": 2,
+ "topic_name": "Politics, Economics, and Education Policy",
+ "total_score": 38.214943,
+ "lexical_score": 25.401295,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 21.075947,
+ "matched_keywords": [
+ {
+ "keyword": "public finance",
+ "score": 0.8430379
+ },
+ {
+ "keyword": "financial regulation",
+ "score": 0.6242142
+ }
+ ]
+ },
+ {
+ "query": "public finance management",
+ "field": "Economics, Econometrics and Finance",
+ "rank": 3,
+ "topic_name": "Public Administration and Governance",
+ "total_score": 34.645653,
+ "lexical_score": 26.9162234,
+ "title_vector_score": 18.25512,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Public Policy",
+ "score": 0.5502345
+ },
+ {
+ "keyword": "Governance",
+ "score": 0.5114136
+ }
+ ]
+ },
+ {
+ "query": "physical therapy techniques",
+ "field": "Health Professions",
+ "rank": 1,
+ "topic_name": "Temporomandibular Joint Disorders",
+ "total_score": 34.514214,
+ "lexical_score": 15.283308300000002,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 19.230907,
+ "matched_keywords": [
+ {
+ "keyword": "Physical Therapy Interventions",
+ "score": 0.76923627
+ }
+ ]
+ },
+ {
+ "query": "physical therapy techniques",
+ "field": "Health Professions",
+ "rank": 2,
+ "topic_name": "Stroke Rehabilitation and Recovery",
+ "total_score": 33.802433,
+ "lexical_score": 22.4453302,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 18.229073,
+ "matched_keywords": [
+ {
+ "keyword": "Rehabilitation Techniques",
+ "score": 0.7291629
+ },
+ {
+ "keyword": "Robot-Assisted Therapy",
+ "score": 0.5415942
+ }
+ ]
+ },
+ {
+ "query": "physical therapy techniques",
+ "field": "Health Professions",
+ "rank": 3,
+ "topic_name": "Advanced Radiotherapy Techniques",
+ "total_score": 30.854929,
+ "lexical_score": 12.177523,
+ "title_vector_score": 18.677406,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Radiotherapy Physics",
+ "score": 0.6338399
+ }
+ ]
+ },
+ {
+ "query": "occupational therapy interventions",
+ "field": "Health Professions",
+ "rank": 1,
+ "topic_name": "Occupational Therapy Practice and Research",
+ "total_score": 51.26482,
+ "lexical_score": 67.5047314,
+ "title_vector_score": 18.750648,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Occupational Science",
+ "score": 0.63603973
+ },
+ {
+ "keyword": "Occupational Justice",
+ "score": 0.6049054
+ }
+ ]
+ },
+ {
+ "query": "occupational therapy interventions",
+ "field": "Health Professions",
+ "rank": 2,
+ "topic_name": "Writing and Handwriting Education",
+ "total_score": 43.44382,
+ "lexical_score": 29.7106104,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 18.796188,
+ "matched_keywords": [
+ {
+ "keyword": "Occupational Therapy",
+ "score": 0.75184757
+ },
+ {
+ "keyword": "Reading Interventions",
+ "score": 0.6522649
+ }
+ ]
+ },
+ {
+ "query": "occupational therapy interventions",
+ "field": "Health Professions",
+ "rank": 3,
+ "topic_name": "Education and Learning Interventions",
+ "total_score": 37.859024,
+ "lexical_score": 19.36701,
+ "title_vector_score": 18.492012,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "speech language pathology",
+ "field": "Health Professions",
+ "rank": 1,
+ "topic_name": "Voice and Speech Disorders",
+ "total_score": 40.205383,
+ "lexical_score": 38.283915,
+ "title_vector_score": 19.121246,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Speech Therapy",
+ "score": 0.66250736
+ },
+ {
+ "keyword": "Voice Disorders",
+ "score": 0.620711
+ }
+ ]
+ },
+ {
+ "query": "speech language pathology",
+ "field": "Health Professions",
+ "rank": 2,
+ "topic_name": "Oral and Maxillofacial Pathology",
+ "total_score": 38.465355,
+ "lexical_score": 35.558959,
+ "title_vector_score": 19.6986,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Molecular Pathology",
+ "score": 0.6666527
+ },
+ {
+ "keyword": "Histopathological Analysis",
+ "score": 0.59085464
+ }
+ ]
+ },
+ {
+ "query": "speech language pathology",
+ "field": "Health Professions",
+ "rank": 3,
+ "topic_name": "Oral Health Pathology and Treatment",
+ "total_score": 36.917522,
+ "lexical_score": 17.134045,
+ "title_vector_score": 19.783478,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Epidemiology",
+ "score": 0.58216983
+ },
+ {
+ "keyword": "Pathogenesis",
+ "score": 0.56724805
+ }
+ ]
+ },
+ {
+ "query": "radiologic technology",
+ "field": "Health Professions",
+ "rank": 1,
+ "topic_name": "Pulsed Power Technology Applications",
+ "total_score": 31.205952,
+ "lexical_score": 15.2856874,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 18.778706,
+ "matched_keywords": [
+ {
+ "keyword": "Radiography Systems",
+ "score": 0.7511482
+ }
+ ]
+ },
+ {
+ "query": "radiologic technology",
+ "field": "Health Professions",
+ "rank": 2,
+ "topic_name": "Advanced Radiotherapy Techniques",
+ "total_score": 22.210716,
+ "lexical_score": 2.7579718,
+ "title_vector_score": 19.452744,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Radiotherapy Physics",
+ "score": 0.63431674
+ },
+ {
+ "keyword": "Image-Guided Radiotherapy",
+ "score": 0.5683098
+ }
+ ]
+ },
+ {
+ "query": "radiologic technology",
+ "field": "Health Professions",
+ "rank": 3,
+ "topic_name": "Dental Radiography and Imaging",
+ "total_score": 19.69574,
+ "lexical_score": 0.0,
+ "title_vector_score": 19.69574,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Maxillofacial Radiology",
+ "score": 0.692777
+ },
+ {
+ "keyword": "Radiation Dosimetry",
+ "score": 0.64077634
+ }
+ ]
+ },
+ {
+ "query": "emergency medical services",
+ "field": "Health Professions",
+ "rank": 1,
+ "topic_name": "Emergency Medicine Education and Research",
+ "total_score": 58.11331,
+ "lexical_score": 38.195249000000004,
+ "title_vector_score": 18.330269,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 19.957607,
+ "matched_keywords": [
+ {
+ "keyword": "Emergency Medicine",
+ "score": 0.79830426
+ },
+ {
+ "keyword": "Healthcare",
+ "score": 0.583505
+ }
+ ]
+ },
+ {
+ "query": "emergency medical services",
+ "field": "Health Professions",
+ "rank": 2,
+ "topic_name": "Trauma and Emergency Care Studies",
+ "total_score": 55.85418,
+ "lexical_score": 35.9852137,
+ "title_vector_score": 17.679672,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 18.349075,
+ "matched_keywords": [
+ {
+ "keyword": "Emergency Surgery",
+ "score": 0.733963
+ },
+ {
+ "keyword": "Prehospital Care",
+ "score": 0.584713
+ }
+ ]
+ },
+ {
+ "query": "emergency medical services",
+ "field": "Health Professions",
+ "rank": 3,
+ "topic_name": "Emergency and Acute Care Studies",
+ "total_score": 38.447144,
+ "lexical_score": 35.670283,
+ "title_vector_score": 18.621712,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Ambulance Diversion",
+ "score": 0.58811444
+ },
+ {
+ "keyword": "Emergency Department Crowding",
+ "score": 0.5725123
+ }
+ ]
+ },
+ {
+ "query": "healthcare administration",
+ "field": "Health Professions",
+ "rank": 1,
+ "topic_name": "Competency Development and Evaluation",
+ "total_score": 41.958176,
+ "lexical_score": 27.5122675,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.805435,
+ "matched_keywords": [
+ {
+ "keyword": "Healthcare Administration",
+ "score": 0.91221744
+ },
+ {
+ "keyword": "Management",
+ "score": 0.6065585
+ }
+ ]
+ },
+ {
+ "query": "healthcare administration",
+ "field": "Health Professions",
+ "rank": 2,
+ "topic_name": "Healthcare Regulation",
+ "total_score": 38.71777,
+ "lexical_score": 28.011454899999997,
+ "title_vector_score": 20.870857,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Healthcare Regulation",
+ "score": 0.6989886
+ },
+ {
+ "keyword": "Nursing Care",
+ "score": 0.6352704
+ }
+ ]
+ },
+ {
+ "query": "healthcare administration",
+ "field": "Health Professions",
+ "rank": 3,
+ "topic_name": "Healthcare Policy and Management",
+ "total_score": 35.16791,
+ "lexical_score": 14.445637,
+ "title_vector_score": 20.722275,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Health Care Spending",
+ "score": 0.6990331
+ },
+ {
+ "keyword": "Health Care Utilization",
+ "score": 0.69183606
+ }
+ ]
+ },
+ {
+ "query": "audiology assessments",
+ "field": "Health Professions",
+ "rank": 1,
+ "topic_name": "Psychological Treatments and Assessments",
+ "total_score": 21.714607,
+ "lexical_score": 21.714607,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Educational Settings",
+ "score": 0.5004527
+ }
+ ]
+ },
+ {
+ "query": "audiology assessments",
+ "field": "Health Professions",
+ "rank": 2,
+ "topic_name": "Educational and Psychological Assessments",
+ "total_score": 21.714607,
+ "lexical_score": 21.714607,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Assessment Practices",
+ "score": 0.6194649
+ },
+ {
+ "keyword": "Dynamic Assessment",
+ "score": 0.60436505
+ }
+ ]
+ },
+ {
+ "query": "audiology assessments",
+ "field": "Health Professions",
+ "rank": 3,
+ "topic_name": "Teacher Education and Assessments",
+ "total_score": 21.714607,
+ "lexical_score": 21.714607,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Performance Assessment",
+ "score": 0.5860608
+ },
+ {
+ "keyword": "High-Stakes Testing",
+ "score": 0.50259525
+ }
+ ]
+ },
+ {
+ "query": "rehabilitation sciences",
+ "field": "Health Professions",
+ "rank": 1,
+ "topic_name": "Stroke Rehabilitation and Recovery",
+ "total_score": 57.602234,
+ "lexical_score": 41.869735000000006,
+ "title_vector_score": 19.306068,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 18.579704,
+ "matched_keywords": [
+ {
+ "keyword": "Rehabilitation Techniques",
+ "score": 0.7431882
+ },
+ {
+ "keyword": "Virtual Reality Rehabilitation",
+ "score": 0.6530469
+ }
+ ]
+ },
+ {
+ "query": "rehabilitation sciences",
+ "field": "Health Professions",
+ "rank": 2,
+ "topic_name": "Musculoskeletal Disorders and Rehabilitation",
+ "total_score": 39.91137,
+ "lexical_score": 37.122972000000004,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 20.194912,
+ "matched_keywords": [
+ {
+ "keyword": "Rehabilitation Medicine",
+ "score": 0.8077965
+ },
+ {
+ "keyword": "Musculoskeletal Medicine",
+ "score": 0.6266301
+ }
+ ]
+ },
+ {
+ "query": "rehabilitation sciences",
+ "field": "Health Professions",
+ "rank": 3,
+ "topic_name": "Orthopedic Surgery and Rehabilitation",
+ "total_score": 38.96531,
+ "lexical_score": 19.71646,
+ "title_vector_score": 19.248848,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "clinical nutrition",
+ "field": "Health Professions",
+ "rank": 1,
+ "topic_name": "Clinical Nutrition and Gastroenterology",
+ "total_score": 59.51229,
+ "lexical_score": 62.5653185,
+ "title_vector_score": 23.037605,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Enteral Nutrition",
+ "score": 0.7256343
+ },
+ {
+ "keyword": "Parenteral Nutrition",
+ "score": 0.6902275
+ }
+ ]
+ },
+ {
+ "query": "clinical nutrition",
+ "field": "Health Professions",
+ "rank": 2,
+ "topic_name": "Nutrition, Genetics, and Disease",
+ "total_score": 37.04126,
+ "lexical_score": 32.178992,
+ "title_vector_score": 19.933586,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Personalized Nutrition",
+ "score": 0.68055725
+ },
+ {
+ "keyword": "Chronic Diseases",
+ "score": 0.61515427
+ }
+ ]
+ },
+ {
+ "query": "clinical nutrition",
+ "field": "Health Professions",
+ "rank": 3,
+ "topic_name": "Nutrition, Health, and Society Studies",
+ "total_score": 34.388157,
+ "lexical_score": 35.137736000000004,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 18.768852,
+ "matched_keywords": [
+ {
+ "keyword": "Nutrition Science",
+ "score": 0.75075406
+ },
+ {
+ "keyword": "Evidence-Based Nutrition",
+ "score": 0.6479289
+ }
+ ]
+ },
+ {
+ "query": "paramedic protocols",
+ "field": "Health Professions",
+ "rank": 1,
+ "topic_name": "IoT Networks and Protocols",
+ "total_score": 38.34708,
+ "lexical_score": 40.362003,
+ "title_vector_score": 15.842895,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Random Access Protocols",
+ "score": 0.57259494
+ }
+ ]
+ },
+ {
+ "query": "paramedic protocols",
+ "field": "Health Professions",
+ "rank": 2,
+ "topic_name": "Dermatological diseases and infestations",
+ "total_score": 30.17506,
+ "lexical_score": 13.389693,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 16.785366,
+ "matched_keywords": [
+ {
+ "keyword": "Treatment Protocols",
+ "score": 0.6714147
+ }
+ ]
+ },
+ {
+ "query": "paramedic protocols",
+ "field": "Health Professions",
+ "rank": 3,
+ "topic_name": "Vehicular Ad Hoc Networks (VANETs)",
+ "total_score": 26.882458,
+ "lexical_score": 16.8187644,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 16.012096,
+ "matched_keywords": [
+ {
+ "keyword": "Routing Protocols",
+ "score": 0.64048386
+ }
+ ]
+ },
+ {
+ "query": "respiratory therapy management",
+ "field": "Health Professions",
+ "rank": 1,
+ "topic_name": "Airway Management and Intubation Techniques",
+ "total_score": 47.32132,
+ "lexical_score": 16.1641944,
+ "title_vector_score": 19.241219,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 18.763447,
+ "matched_keywords": [
+ {
+ "keyword": "Airway Management",
+ "score": 0.7505379
+ },
+ {
+ "keyword": "Tracheal Intubation",
+ "score": 0.56273395
+ }
+ ]
+ },
+ {
+ "query": "respiratory therapy management",
+ "field": "Health Professions",
+ "rank": 2,
+ "topic_name": "Advanced Radiotherapy Techniques",
+ "total_score": 32.847607,
+ "lexical_score": 21.1651912,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 19.580906,
+ "matched_keywords": [
+ {
+ "keyword": "Respiratory Motion Management",
+ "score": 0.7832362
+ },
+ {
+ "keyword": "Clinical Implementation",
+ "score": 0.52062607
+ }
+ ]
+ },
+ {
+ "query": "respiratory therapy management",
+ "field": "Health Professions",
+ "rank": 3,
+ "topic_name": "Pain Management and Treatment",
+ "total_score": 28.987133,
+ "lexical_score": 18.6501493,
+ "title_vector_score": 18.782692,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "health informatics systems",
+ "field": "Health Professions",
+ "rank": 1,
+ "topic_name": "Electronic Health Records Systems",
+ "total_score": 45.02179,
+ "lexical_score": 36.3855634,
+ "title_vector_score": 24.184685,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Electronic Health Records",
+ "score": 0.71666974
+ },
+ {
+ "keyword": "Health Information Exchange",
+ "score": 0.68025845
+ }
+ ]
+ },
+ {
+ "query": "health informatics systems",
+ "field": "Health Professions",
+ "rank": 2,
+ "topic_name": "Maternal and Neonatal Healthcare",
+ "total_score": 36.08146,
+ "lexical_score": 19.3693268,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.505665,
+ "matched_keywords": [
+ {
+ "keyword": "Health Information Systems",
+ "score": 0.9002266
+ },
+ {
+ "keyword": "Health Inequalities",
+ "score": 0.5738983
+ }
+ ]
+ },
+ {
+ "query": "health informatics systems",
+ "field": "Health Professions",
+ "rank": 3,
+ "topic_name": "Health and Medical Education",
+ "total_score": 33.865093,
+ "lexical_score": 30.1770483,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 20.13213,
+ "matched_keywords": [
+ {
+ "keyword": "Healthcare Systems",
+ "score": 0.80528516
+ },
+ {
+ "keyword": "Healthcare Quality",
+ "score": 0.5933787
+ }
+ ]
+ },
+ {
+ "query": "dietetics practice",
+ "field": "Health Professions",
+ "rank": 1,
+ "topic_name": "Dietetics, Nutrition, and Education",
+ "total_score": 68.06244,
+ "lexical_score": 65.7976575,
+ "title_vector_score": 20.346527,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 19.762897,
+ "matched_keywords": [
+ {
+ "keyword": "Dietetics",
+ "score": 0.7905159
+ },
+ {
+ "keyword": "Nutrition Care Process",
+ "score": 0.5942752
+ }
+ ]
+ },
+ {
+ "query": "dietetics practice",
+ "field": "Health Professions",
+ "rank": 2,
+ "topic_name": "Diverse Music Education Insights",
+ "total_score": 25.532795,
+ "lexical_score": 8.23626,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 17.296535,
+ "matched_keywords": [
+ {
+ "keyword": "Practice Strategies",
+ "score": 0.69186145
+ }
+ ]
+ },
+ {
+ "query": "dietetics practice",
+ "field": "Health Professions",
+ "rank": 3,
+ "topic_name": "Obesity and Health Practices",
+ "total_score": 18.853645,
+ "lexical_score": 0.0,
+ "title_vector_score": 18.853645,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Nutrition Education",
+ "score": 0.5803261
+ },
+ {
+ "keyword": "Physician Attitudes",
+ "score": 0.52388126
+ }
+ ]
+ },
+ {
+ "query": "patient care quality",
+ "field": "Health Professions",
+ "rank": 1,
+ "topic_name": "Patient Satisfaction in Healthcare",
+ "total_score": 54.01999,
+ "lexical_score": 60.086970699999995,
+ "title_vector_score": 20.304375,
+ "description_vector_score": 7.5481796,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Healthcare Quality",
+ "score": 0.80766934
+ },
+ {
+ "keyword": "Patient Satisfaction",
+ "score": 0.6927325
+ }
+ ]
+ },
+ {
+ "query": "patient care quality",
+ "field": "Health Professions",
+ "rank": 2,
+ "topic_name": "Primary Care and Health Outcomes",
+ "total_score": 45.671516,
+ "lexical_score": 54.8488481,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 20.55238,
+ "matched_keywords": [
+ {
+ "keyword": "Health Care Quality",
+ "score": 0.8220952
+ },
+ {
+ "keyword": "Continuity of Care",
+ "score": 0.66313046
+ }
+ ]
+ },
+ {
+ "query": "patient care quality",
+ "field": "Health Professions",
+ "rank": 3,
+ "topic_name": "Health Services Management and Policy",
+ "total_score": 41.809563,
+ "lexical_score": 29.0558456,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 21.682167,
+ "matched_keywords": [
+ {
+ "keyword": "patient care",
+ "score": 0.8672867
+ },
+ {
+ "keyword": "primary care",
+ "score": 0.6982002
+ }
+ ]
+ },
+ {
+ "query": "medical laboratory technology",
+ "field": "Health Professions",
+ "rank": 1,
+ "topic_name": "Anatomy and Medical Technology",
+ "total_score": 47.594727,
+ "lexical_score": 43.9119746,
+ "title_vector_score": 20.43274,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Medical Imaging",
+ "score": 0.67249554
+ },
+ {
+ "keyword": "Medical Applications",
+ "score": 0.6604665
+ }
+ ]
+ },
+ {
+ "query": "medical laboratory technology",
+ "field": "Health Professions",
+ "rank": 2,
+ "topic_name": "Amoebic Infections and Treatments",
+ "total_score": 33.083588,
+ "lexical_score": 20.6533832,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 18.92255,
+ "matched_keywords": [
+ {
+ "keyword": "laboratory diagnosis",
+ "score": 0.75690204
+ },
+ {
+ "keyword": "epidemiology",
+ "score": 0.6208636
+ }
+ ]
+ },
+ {
+ "query": "medical laboratory technology",
+ "field": "Health Professions",
+ "rank": 3,
+ "topic_name": "Healthcare Systems and Technology",
+ "total_score": 31.726448,
+ "lexical_score": 12.427246,
+ "title_vector_score": 19.299202,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Physician Collaboration",
+ "score": 0.59259033
+ },
+ {
+ "keyword": "Healthcare Networks",
+ "score": 0.55382663
+ }
+ ]
+ },
+ {
+ "query": "orthotics and prosthetics",
+ "field": "Health Professions",
+ "rank": 1,
+ "topic_name": "Prosthetics and Rehabilitation Robotics",
+ "total_score": 66.60224,
+ "lexical_score": 45.39763460249,
+ "title_vector_score": 21.965675,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 18.732452,
+ "matched_keywords": [
+ {
+ "keyword": "Prosthetics",
+ "score": 0.7492981
+ },
+ {
+ "keyword": "Biomechanics",
+ "score": 0.5617549
+ }
+ ]
+ },
+ {
+ "query": "orthotics and prosthetics",
+ "field": "Health Professions",
+ "rank": 2,
+ "topic_name": "Orthopaedic implants and arthroplasty",
+ "total_score": 22.53057,
+ "lexical_score": 0.73807453575,
+ "title_vector_score": 21.792679,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Hip Arthroplasty",
+ "score": 0.60682553
+ },
+ {
+ "keyword": "Femoral Fractures",
+ "score": 0.54838437
+ }
+ ]
+ },
+ {
+ "query": "orthotics and prosthetics",
+ "field": "Health Professions",
+ "rank": 3,
+ "topic_name": "Orthodontics and Dentofacial Orthopedics",
+ "total_score": 21.724905,
+ "lexical_score": 0.73805242125,
+ "title_vector_score": 20.987015,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Orthognathic Surgery",
+ "score": 0.57452774
+ },
+ {
+ "keyword": "Dental Esthetics",
+ "score": 0.56718445
+ }
+ ]
+ },
+ {
+ "query": "interprofessional healthcare collaboration",
+ "field": "Health Professions",
+ "rank": 1,
+ "topic_name": "Interprofessional Education and Collaboration",
+ "total_score": 99.49948,
+ "lexical_score": 104.857174,
+ "title_vector_score": 23.336487,
+ "description_vector_score": 10.498848,
+ "keywords_vector_score": 18.783314,
+ "matched_keywords": [
+ {
+ "keyword": "Interprofessional Education",
+ "score": 0.7513326
+ },
+ {
+ "keyword": "Interdisciplinary Collaboration",
+ "score": 0.73113376
+ }
+ ]
+ },
+ {
+ "query": "interprofessional healthcare collaboration",
+ "field": "Health Professions",
+ "rank": 2,
+ "topic_name": "Interdisciplinary Research and Collaboration",
+ "total_score": 40.93313,
+ "lexical_score": 37.4520946,
+ "title_vector_score": 19.218521,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Interdisciplinary Research",
+ "score": 0.5832189
+ }
+ ]
+ },
+ {
+ "query": "interprofessional healthcare collaboration",
+ "field": "Health Professions",
+ "rank": 3,
+ "topic_name": "Interpreting and Communication in Healthcare",
+ "total_score": 30.774504,
+ "lexical_score": 23.320946,
+ "title_vector_score": 17.58564,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Healthcare Communication",
+ "score": 0.5995903
+ },
+ {
+ "keyword": "Patient-Physician Language Concordance",
+ "score": 0.5931053
+ }
+ ]
+ },
+ {
+ "query": "community health education",
+ "field": "Health Professions",
+ "rank": 1,
+ "topic_name": "Community Health and Development",
+ "total_score": 54.128952,
+ "lexical_score": 52.8665674,
+ "title_vector_score": 23.06488,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Health Promotion",
+ "score": 0.6021144
+ },
+ {
+ "keyword": "Community Empowerment",
+ "score": 0.60020065
+ }
+ ]
+ },
+ {
+ "query": "community health education",
+ "field": "Health Professions",
+ "rank": 2,
+ "topic_name": "Health and Medical Education",
+ "total_score": 40.12516,
+ "lexical_score": 48.7169436,
+ "title_vector_score": 20.339851,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Community Health",
+ "score": 0.7987239
+ },
+ {
+ "keyword": "Medical Education",
+ "score": 0.6641477
+ }
+ ]
+ },
+ {
+ "query": "community health education",
+ "field": "Health Professions",
+ "rank": 3,
+ "topic_name": "Health Education and Validation",
+ "total_score": 40.038567,
+ "lexical_score": 33.2945483,
+ "title_vector_score": 20.253258,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Nursing Education",
+ "score": 0.58813983
+ },
+ {
+ "keyword": "Health Research",
+ "score": 0.57199097
+ }
+ ]
+ },
+ {
+ "query": "sports medicine rehabilitation",
+ "field": "Health Professions",
+ "rank": 1,
+ "topic_name": "Musculoskeletal Disorders and Rehabilitation",
+ "total_score": 43.536507,
+ "lexical_score": 53.3795906,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 19.894981,
+ "matched_keywords": [
+ {
+ "keyword": "Rehabilitation Medicine",
+ "score": 0.79579926
+ },
+ {
+ "keyword": "Musculoskeletal Medicine",
+ "score": 0.6971957
+ }
+ ]
+ },
+ {
+ "query": "sports medicine rehabilitation",
+ "field": "Health Professions",
+ "rank": 2,
+ "topic_name": "Medical Practices and Rehabilitation",
+ "total_score": 39.65367,
+ "lexical_score": 42.490525000000005,
+ "title_vector_score": 19.93721,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Rehabilitation",
+ "score": 0.65862274
+ },
+ {
+ "keyword": "Medical Evaluation",
+ "score": 0.55868405
+ }
+ ]
+ },
+ {
+ "query": "sports medicine rehabilitation",
+ "field": "Health Professions",
+ "rank": 3,
+ "topic_name": "Orthopedic Surgery and Rehabilitation",
+ "total_score": 39.368713,
+ "lexical_score": 19.71646,
+ "title_vector_score": 19.652252,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Thumb Osteoarthritis",
+ "score": 0.5003955
+ }
+ ]
+ },
+ {
+ "query": "physician assistant training",
+ "field": "Health Professions",
+ "rank": 1,
+ "topic_name": "Surgical Simulation and Training",
+ "total_score": 35.881676,
+ "lexical_score": 34.8478415,
+ "title_vector_score": 16.514664,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Virtual Reality Training",
+ "score": 0.6012306
+ },
+ {
+ "keyword": "Medical Education",
+ "score": 0.5980072
+ }
+ ]
+ },
+ {
+ "query": "physician assistant training",
+ "field": "Health Professions",
+ "rank": 2,
+ "topic_name": "Athletic Training and Education",
+ "total_score": 35.776962,
+ "lexical_score": 31.322344,
+ "title_vector_score": 16.40995,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Athletic Training",
+ "score": 0.61106616
+ },
+ {
+ "keyword": "Clinical Education",
+ "score": 0.54587936
+ }
+ ]
+ },
+ {
+ "query": "physician assistant training",
+ "field": "Health Professions",
+ "rank": 3,
+ "topic_name": "Health Services Management and Policy",
+ "total_score": 27.841394,
+ "lexical_score": 12.8923299,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 18.836563,
+ "matched_keywords": [
+ {
+ "keyword": "medical training",
+ "score": 0.7534625
+ },
+ {
+ "keyword": "patient care",
+ "score": 0.58329517
+ }
+ ]
+ },
+ {
+ "query": "quantum mechanics",
+ "field": "Physics and Astronomy",
+ "rank": 1,
+ "topic_name": "Quantum Mechanics and Applications",
+ "total_score": 54.62297,
+ "lexical_score": 62.6773355,
+ "title_vector_score": 20.076828,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Quantum Measurement",
+ "score": 0.7108523
+ },
+ {
+ "keyword": "Quantum Probabilities",
+ "score": 0.7036743
+ }
+ ]
+ },
+ {
+ "query": "quantum mechanics",
+ "field": "Physics and Astronomy",
+ "rank": 2,
+ "topic_name": "Quantum Mechanics and Non-Hermitian Physics",
+ "total_score": 50.80646,
+ "lexical_score": 59.75153039999999,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 21.790249,
+ "matched_keywords": [
+ {
+ "keyword": "Quantum Mechanics",
+ "score": 0.87161
+ },
+ {
+ "keyword": "Photonics",
+ "score": 0.6126938
+ }
+ ]
+ },
+ {
+ "query": "quantum mechanics",
+ "field": "Physics and Astronomy",
+ "rank": 3,
+ "topic_name": "Advanced Physical and Chemical Molecular Interactions",
+ "total_score": 46.032593,
+ "lexical_score": 35.338601,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 21.779442,
+ "matched_keywords": [
+ {
+ "keyword": "Quantum Mechanics",
+ "score": 0.8711777
+ },
+ {
+ "keyword": "Quantum Chemistry",
+ "score": 0.7706032
+ }
+ ]
+ },
+ {
+ "query": "astrophysics research",
+ "field": "Physics and Astronomy",
+ "rank": 1,
+ "topic_name": "Astrophysics and Star Formation Studies",
+ "total_score": 42.089363,
+ "lexical_score": 21.511477,
+ "title_vector_score": 20.577888,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Astrochemistry",
+ "score": 0.7006543
+ },
+ {
+ "keyword": "Magnetic Fields",
+ "score": 0.5482381
+ }
+ ]
+ },
+ {
+ "query": "astrophysics research",
+ "field": "Physics and Astronomy",
+ "rank": 2,
+ "topic_name": "Scientific Research and Discoveries",
+ "total_score": 33.59459,
+ "lexical_score": 30.5897669,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 18.807316,
+ "matched_keywords": [
+ {
+ "keyword": "Astrophysics",
+ "score": 0.75229263
+ },
+ {
+ "keyword": "Geophysical Surveys",
+ "score": 0.6840032
+ }
+ ]
+ },
+ {
+ "query": "astrophysics research",
+ "field": "Physics and Astronomy",
+ "rank": 3,
+ "topic_name": "Stellar, planetary, and galactic studies",
+ "total_score": 33.187172,
+ "lexical_score": 21.9173416,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 18.71354,
+ "matched_keywords": [
+ {
+ "keyword": "Astrophysical Spectroscopy",
+ "score": 0.74854153
+ },
+ {
+ "keyword": "Astronomical Surveys",
+ "score": 0.7082265
+ }
+ ]
+ },
+ {
+ "query": "dark matter detection",
+ "field": "Physics and Astronomy",
+ "rank": 1,
+ "topic_name": "Dark Matter and Cosmic Phenomena",
+ "total_score": 69.77785,
+ "lexical_score": 95.05931190000001,
+ "title_vector_score": 19.175034,
+ "description_vector_score": 7.8006177,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Dark Matter",
+ "score": 0.6933047
+ },
+ {
+ "keyword": "Direct Detection",
+ "score": 0.6187909
+ }
+ ]
+ },
+ {
+ "query": "dark matter detection",
+ "field": "Physics and Astronomy",
+ "rank": 2,
+ "topic_name": "AI in cancer detection",
+ "total_score": 34.048687,
+ "lexical_score": 25.1961093,
+ "title_vector_score": 18.823318,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Computer-Aided Detection",
+ "score": 0.5860608
+ },
+ {
+ "keyword": "Breast Cancer Diagnosis",
+ "score": 0.54910916
+ }
+ ]
+ },
+ {
+ "query": "dark matter detection",
+ "field": "Physics and Astronomy",
+ "rank": 3,
+ "topic_name": "Radiation Detection and Scintillator Technologies",
+ "total_score": 31.522497,
+ "lexical_score": 28.335857000000004,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 17.621738,
+ "matched_keywords": [
+ {
+ "keyword": "Neutron Detection",
+ "score": 0.70486957
+ },
+ {
+ "keyword": "Radiation Detection",
+ "score": 0.7010295
+ }
+ ]
+ },
+ {
+ "query": "particle physics collision",
+ "field": "Physics and Astronomy",
+ "rank": 1,
+ "topic_name": "Particle physics theoretical and experimental studies",
+ "total_score": 68.71365,
+ "lexical_score": 60.644617399999994,
+ "title_vector_score": 18.793564,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 19.122505,
+ "matched_keywords": [
+ {
+ "keyword": "Particle Physics",
+ "score": 0.7649002
+ },
+ {
+ "keyword": "Quantum Chromodynamics",
+ "score": 0.5948346
+ }
+ ]
+ },
+ {
+ "query": "particle physics collision",
+ "field": "Physics and Astronomy",
+ "rank": 2,
+ "topic_name": "Dark Matter and Cosmic Phenomena",
+ "total_score": 41.079384,
+ "lexical_score": 27.0951103,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 19.122505,
+ "matched_keywords": [
+ {
+ "keyword": "Particle Physics",
+ "score": 0.7649002
+ }
+ ]
+ },
+ {
+ "query": "particle physics collision",
+ "field": "Physics and Astronomy",
+ "rank": 3,
+ "topic_name": "High-Energy Particle Collisions Research",
+ "total_score": 37.61733,
+ "lexical_score": 18.001125,
+ "title_vector_score": 19.616203,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Heavy-Ion Collisions",
+ "score": 0.66616946
+ },
+ {
+ "keyword": "Viscous Fluid Dynamics",
+ "score": 0.6041743
+ }
+ ]
+ },
+ {
+ "query": "general relativity theory",
+ "field": "Physics and Astronomy",
+ "rank": 1,
+ "topic_name": "Relativity and Gravitational Theory",
+ "total_score": 59.687744,
+ "lexical_score": 97.8729588,
+ "title_vector_score": 20.340614,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Einstein's Theory",
+ "score": 0.6424802
+ },
+ {
+ "keyword": "Relativity",
+ "score": 0.6375974
+ }
+ ]
+ },
+ {
+ "query": "general relativity theory",
+ "field": "Physics and Astronomy",
+ "rank": 2,
+ "topic_name": "advanced mathematical theories",
+ "total_score": 46.804283,
+ "lexical_score": 12.086974999999999,
+ "title_vector_score": 19.697456,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 18.043583,
+ "matched_keywords": [
+ {
+ "keyword": "string theory",
+ "score": 0.7217433
+ },
+ {
+ "keyword": "mathematical physics",
+ "score": 0.6941058
+ }
+ ]
+ },
+ {
+ "query": "general relativity theory",
+ "field": "Physics and Astronomy",
+ "rank": 3,
+ "topic_name": "Cosmology and Gravitation Theories",
+ "total_score": 43.56966,
+ "lexical_score": 37.578054300000005,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 19.306248,
+ "matched_keywords": [
+ {
+ "keyword": "General Relativity",
+ "score": 0.7722499
+ },
+ {
+ "keyword": "Scalar-Tensor Theories",
+ "score": 0.5402654
+ }
+ ]
+ },
+ {
+ "query": "cosmology evolution",
+ "field": "Physics and Astronomy",
+ "rank": 1,
+ "topic_name": "Galaxies: Formation, Evolution, Phenomena",
+ "total_score": 58.309242,
+ "lexical_score": 45.828631800000004,
+ "title_vector_score": 17.71267,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 18.82162,
+ "matched_keywords": [
+ {
+ "keyword": "Cosmology",
+ "score": 0.75286484
+ },
+ {
+ "keyword": "Cosmic Evolution",
+ "score": 0.73686856
+ }
+ ]
+ },
+ {
+ "query": "cosmology evolution",
+ "field": "Physics and Astronomy",
+ "rank": 2,
+ "topic_name": "Cosmology and Gravitation Theories",
+ "total_score": 44.35499,
+ "lexical_score": 28.8244595,
+ "title_vector_score": 19.188766,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Cosmological Parameters",
+ "score": 0.66824216
+ },
+ {
+ "keyword": "General Relativity",
+ "score": 0.5701917
+ }
+ ]
+ },
+ {
+ "query": "cosmology evolution",
+ "field": "Physics and Astronomy",
+ "rank": 3,
+ "topic_name": "Origins and Evolution of Life",
+ "total_score": 35.546383,
+ "lexical_score": 17.68208,
+ "title_vector_score": 17.864304,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Astrobiology",
+ "score": 0.61926144
+ },
+ {
+ "keyword": "RNA World",
+ "score": 0.51292676
+ }
+ ]
+ },
+ {
+ "query": "exoplanet discovery",
+ "field": "Physics and Astronomy",
+ "rank": 1,
+ "topic_name": "Planetary Science and Exploration",
+ "total_score": 32.88264,
+ "lexical_score": 0.0,
+ "title_vector_score": 16.960983,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 15.921657,
+ "matched_keywords": [
+ {
+ "keyword": "Planetary Exploration",
+ "score": 0.6368663
+ },
+ {
+ "keyword": "Martian Atmosphere",
+ "score": 0.51438904
+ }
+ ]
+ },
+ {
+ "query": "exoplanet discovery",
+ "field": "Physics and Astronomy",
+ "rank": 2,
+ "topic_name": "Computational Drug Discovery Methods",
+ "total_score": 25.166224,
+ "lexical_score": 30.876185,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "exoplanet discovery",
+ "field": "Physics and Astronomy",
+ "rank": 3,
+ "topic_name": "Stellar, planetary, and galactic studies",
+ "total_score": 17.429417,
+ "lexical_score": 0.0,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 17.429417,
+ "matched_keywords": [
+ {
+ "keyword": "Exoplanets",
+ "score": 0.69717664
+ },
+ {
+ "keyword": "Stellar Evolution",
+ "score": 0.53202564
+ }
+ ]
+ },
+ {
+ "query": "nuclear fusion energy",
+ "field": "Physics and Astronomy",
+ "rank": 1,
+ "topic_name": "Cold Fusion and Nuclear Reactions",
+ "total_score": 74.34808,
+ "lexical_score": 70.9092596,
+ "title_vector_score": 19.296532,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 19.606812,
+ "matched_keywords": [
+ {
+ "keyword": "Nuclear Fusion",
+ "score": 0.7842725
+ },
+ {
+ "keyword": "Low Energy Nuclear Reactions",
+ "score": 0.62733585
+ }
+ ]
+ },
+ {
+ "query": "nuclear fusion energy",
+ "field": "Physics and Astronomy",
+ "rank": 2,
+ "topic_name": "Fusion materials and technologies",
+ "total_score": 58.750084,
+ "lexical_score": 40.184733,
+ "title_vector_score": 19.36901,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 18.821781,
+ "matched_keywords": [
+ {
+ "keyword": "fusion materials",
+ "score": 0.7528712
+ },
+ {
+ "keyword": "neutron irradiation effects",
+ "score": 0.6146202
+ }
+ ]
+ },
+ {
+ "query": "nuclear fusion energy",
+ "field": "Physics and Astronomy",
+ "rank": 3,
+ "topic_name": "Nuclear physics research studies",
+ "total_score": 36.56389,
+ "lexical_score": 40.916982,
+ "title_vector_score": 18.300896,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Nuclear Forces",
+ "score": 0.6400388
+ },
+ {
+ "keyword": "Nuclear Reactions",
+ "score": 0.6233304
+ }
+ ]
+ },
+ {
+ "query": "condensed matter physics",
+ "field": "Physics and Astronomy",
+ "rank": 1,
+ "topic_name": "Advanced Condensed Matter Physics",
+ "total_score": 86.71831,
+ "lexical_score": 63.831381,
+ "title_vector_score": 22.886925,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Superconductivity",
+ "score": 0.6055794
+ },
+ {
+ "keyword": "Quantum Spin Liquids",
+ "score": 0.543972
+ }
+ ]
+ },
+ {
+ "query": "condensed matter physics",
+ "field": "Physics and Astronomy",
+ "rank": 2,
+ "topic_name": "Dark Matter and Cosmic Phenomena",
+ "total_score": 40.460617,
+ "lexical_score": 49.941114,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 17.646378,
+ "matched_keywords": [
+ {
+ "keyword": "Particle Physics",
+ "score": 0.7058551
+ }
+ ]
+ },
+ {
+ "query": "condensed matter physics",
+ "field": "Physics and Astronomy",
+ "rank": 3,
+ "topic_name": "Particle physics theoretical and experimental studies",
+ "total_score": 37.338303,
+ "lexical_score": 45.040752600000005,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 17.646378,
+ "matched_keywords": [
+ {
+ "keyword": "Particle Physics",
+ "score": 0.7058551
+ },
+ {
+ "keyword": "Quantum Chromodynamics",
+ "score": 0.6079127
+ }
+ ]
+ },
+ {
+ "query": "string theory concepts",
+ "field": "Physics and Astronomy",
+ "rank": 1,
+ "topic_name": "advanced mathematical theories",
+ "total_score": 64.30463,
+ "lexical_score": 34.1526214,
+ "title_vector_score": 19.28032,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 21.046227,
+ "matched_keywords": [
+ {
+ "keyword": "string theory",
+ "score": 0.841849
+ },
+ {
+ "keyword": "ergodic theory",
+ "score": 0.6168518
+ }
+ ]
+ },
+ {
+ "query": "string theory concepts",
+ "field": "Physics and Astronomy",
+ "rank": 2,
+ "topic_name": "Black Holes and Theoretical Physics",
+ "total_score": 39.234398,
+ "lexical_score": 31.0674561,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 18.504524,
+ "matched_keywords": [
+ {
+ "keyword": "String Theory",
+ "score": 0.74018097
+ },
+ {
+ "keyword": "Field Theories",
+ "score": 0.63834125
+ }
+ ]
+ },
+ {
+ "query": "string theory concepts",
+ "field": "Physics and Astronomy",
+ "rank": 3,
+ "topic_name": "semigroups and automata theory",
+ "total_score": 32.657852,
+ "lexical_score": 18.579317,
+ "title_vector_score": 18.476944,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Combinatorics on Words",
+ "score": 0.5202255
+ }
+ ]
+ },
+ {
+ "query": "optics and photonics",
+ "field": "Physics and Astronomy",
+ "rank": 1,
+ "topic_name": "Photorefractive and Nonlinear Optics",
+ "total_score": 48.811687,
+ "lexical_score": 65.74254942125,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 19.861603,
+ "matched_keywords": [
+ {
+ "keyword": "Photonics",
+ "score": 0.7944641
+ },
+ {
+ "keyword": "Photonic Crystals",
+ "score": 0.7080612
+ }
+ ]
+ },
+ {
+ "query": "optics and photonics",
+ "field": "Physics and Astronomy",
+ "rank": 2,
+ "topic_name": "Photonic Crystal and Fiber Optics",
+ "total_score": 42.04438,
+ "lexical_score": 37.52017739595,
+ "title_vector_score": 22.60006,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Nonlinear Optics",
+ "score": 0.6307818
+ },
+ {
+ "keyword": "Fiber Lasers",
+ "score": 0.59665936
+ }
+ ]
+ },
+ {
+ "query": "optics and photonics",
+ "field": "Physics and Astronomy",
+ "rank": 3,
+ "topic_name": "Photonic and Optical Devices",
+ "total_score": 37.430374,
+ "lexical_score": 20.4110055479,
+ "title_vector_score": 25.013046,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Silicon Photonics",
+ "score": 0.70588046
+ },
+ {
+ "keyword": "Optical Modulators",
+ "score": 0.6275838
+ }
+ ]
+ },
+ {
+ "query": "black hole thermodynamics",
+ "field": "Physics and Astronomy",
+ "rank": 1,
+ "topic_name": "Noncommutative and Quantum Gravity Theories",
+ "total_score": 57.058273,
+ "lexical_score": 56.2314705,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.31636,
+ "matched_keywords": [
+ {
+ "keyword": "Black Hole Thermodynamics",
+ "score": 0.8926544
+ },
+ {
+ "keyword": "Quantum Geometry",
+ "score": 0.5763397
+ }
+ ]
+ },
+ {
+ "query": "black hole thermodynamics",
+ "field": "Physics and Astronomy",
+ "rank": 2,
+ "topic_name": "Black Holes and Theoretical Physics",
+ "total_score": 42.91416,
+ "lexical_score": 49.121935900000004,
+ "title_vector_score": 19.9374,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Black Holes",
+ "score": 0.6229299
+ },
+ {
+ "keyword": "Quantum Gravity",
+ "score": 0.5713043
+ }
+ ]
+ },
+ {
+ "query": "black hole thermodynamics",
+ "field": "Physics and Astronomy",
+ "rank": 3,
+ "topic_name": "thermodynamics and calorimetric analyses",
+ "total_score": 39.454323,
+ "lexical_score": 39.776785000000004,
+ "title_vector_score": 18.895035,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Thermodynamics",
+ "score": 0.6594429
+ },
+ {
+ "keyword": "Isothermal Titration Calorimetry",
+ "score": 0.57817715
+ }
+ ]
+ },
+ {
+ "query": "gravitational waves detection",
+ "field": "Physics and Astronomy",
+ "rank": 1,
+ "topic_name": "Pulsars and Gravitational Waves Research",
+ "total_score": 85.184586,
+ "lexical_score": 78.8400314,
+ "title_vector_score": 18.476944,
+ "description_vector_score": 7.62104,
+ "keywords_vector_score": 17.749691,
+ "matched_keywords": [
+ {
+ "keyword": "Gravitational Waves",
+ "score": 0.70998764
+ },
+ {
+ "keyword": "Space-borne Detectors",
+ "score": 0.6516164
+ }
+ ]
+ },
+ {
+ "query": "gravitational waves detection",
+ "field": "Physics and Astronomy",
+ "rank": 2,
+ "topic_name": "Gamma-ray bursts and supernovae",
+ "total_score": 43.57694,
+ "lexical_score": 37.3298147,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 17.749691,
+ "matched_keywords": [
+ {
+ "keyword": "Gravitational Waves",
+ "score": 0.70998764
+ },
+ {
+ "keyword": "Astrophysical Flashes",
+ "score": 0.5522563
+ }
+ ]
+ },
+ {
+ "query": "gravitational waves detection",
+ "field": "Physics and Astronomy",
+ "rank": 3,
+ "topic_name": "Earthquake Detection and Analysis",
+ "total_score": 33.38741,
+ "lexical_score": 15.2253685,
+ "title_vector_score": 18.16204,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Seismic Activity Monitoring",
+ "score": 0.5571645
+ },
+ {
+ "keyword": "Seismic Electromagnetics",
+ "score": 0.54111737
+ }
+ ]
+ },
+ {
+ "query": "statistical mechanics",
+ "field": "Physics and Astronomy",
+ "rank": 1,
+ "topic_name": "Statistical Mechanics and Entropy",
+ "total_score": 55.60269,
+ "lexical_score": 62.563218000000006,
+ "title_vector_score": 20.697098,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Nonextensive Statistical Mechanics",
+ "score": 0.6238263
+ },
+ {
+ "keyword": "Non-Gaussian Statistics",
+ "score": 0.6234067
+ }
+ ]
+ },
+ {
+ "query": "statistical mechanics",
+ "field": "Physics and Astronomy",
+ "rank": 2,
+ "topic_name": "Stochastic processes and statistical mechanics",
+ "total_score": 53.433937,
+ "lexical_score": 59.354937,
+ "title_vector_score": 21.565132,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Nonequilibrium Statistical Mechanics",
+ "score": 0.69064075
+ },
+ {
+ "keyword": "Percolation Models",
+ "score": 0.5305951
+ }
+ ]
+ },
+ {
+ "query": "statistical mechanics",
+ "field": "Physics and Astronomy",
+ "rank": 3,
+ "topic_name": "Advanced Physical and Chemical Molecular Interactions",
+ "total_score": 43.659996,
+ "lexical_score": 33.142804600000005,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 21.85939,
+ "matched_keywords": [
+ {
+ "keyword": "Statistical Mechanics",
+ "score": 0.87437564
+ },
+ {
+ "keyword": "Quantum Mechanics",
+ "score": 0.65099335
+ }
+ ]
+ },
+ {
+ "query": "plasma physics applications",
+ "field": "Physics and Astronomy",
+ "rank": 1,
+ "topic_name": "Plasma Applications and Diagnostics",
+ "total_score": 59.96764,
+ "lexical_score": 66.4887352,
+ "title_vector_score": 22.764854,
+ "description_vector_score": 7.503452,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Plasma Chemistry",
+ "score": 0.6758588
+ },
+ {
+ "keyword": "Biomedical Applications",
+ "score": 0.62658566
+ }
+ ]
+ },
+ {
+ "query": "plasma physics applications",
+ "field": "Physics and Astronomy",
+ "rank": 2,
+ "topic_name": "Plasma Diagnostics and Applications",
+ "total_score": 59.480026,
+ "lexical_score": 52.477332000000004,
+ "title_vector_score": 21.716385,
+ "description_vector_score": 8.064308,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Low Temperature Plasmas",
+ "score": 0.6495056
+ },
+ {
+ "keyword": "Plasma Etching",
+ "score": 0.63400525
+ }
+ ]
+ },
+ {
+ "query": "plasma physics applications",
+ "field": "Physics and Astronomy",
+ "rank": 3,
+ "topic_name": "Fusion and Plasma Physics Studies",
+ "total_score": 52.513588,
+ "lexical_score": 33.157931,
+ "title_vector_score": 19.35566,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Quantum Mechanics",
+ "score": 0.5253245
+ }
+ ]
+ },
+ {
+ "query": "stellar evolution models",
+ "field": "Physics and Astronomy",
+ "rank": 1,
+ "topic_name": "Stellar, planetary, and galactic studies",
+ "total_score": 64.75244,
+ "lexical_score": 64.552869,
+ "title_vector_score": 16.688995,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 18.219215,
+ "matched_keywords": [
+ {
+ "keyword": "Stellar Evolution",
+ "score": 0.72876865
+ },
+ {
+ "keyword": "Stellar Astrophysics",
+ "score": 0.620177
+ }
+ ]
+ },
+ {
+ "query": "stellar evolution models",
+ "field": "Physics and Astronomy",
+ "rank": 2,
+ "topic_name": "Galaxies: Formation, Evolution, Phenomena",
+ "total_score": 37.58264,
+ "lexical_score": 52.635575200000005,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 15.807693,
+ "matched_keywords": [
+ {
+ "keyword": "Stellar Populations",
+ "score": 0.6323077
+ },
+ {
+ "keyword": "Astrophysical Simulations",
+ "score": 0.5854378
+ }
+ ]
+ },
+ {
+ "query": "stellar evolution models",
+ "field": "Physics and Astronomy",
+ "rank": 3,
+ "topic_name": "Economic Growth and Productivity",
+ "total_score": 23.03935,
+ "lexical_score": 7.443692,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 15.595658,
+ "matched_keywords": [
+ {
+ "keyword": "Growth Models",
+ "score": 0.6238263
+ }
+ ]
+ },
+ {
+ "query": "high energy physics",
+ "field": "Physics and Astronomy",
+ "rank": 1,
+ "topic_name": "High-Energy Particle Collisions Research",
+ "total_score": 51.43843,
+ "lexical_score": 31.216070000000002,
+ "title_vector_score": 20.222359,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Heavy-Ion Collisions",
+ "score": 0.6133423
+ },
+ {
+ "keyword": "Viscous Fluid Dynamics",
+ "score": 0.5609474
+ }
+ ]
+ },
+ {
+ "query": "high energy physics",
+ "field": "Physics and Astronomy",
+ "rank": 2,
+ "topic_name": "Advanced Mathematical Theories and Applications",
+ "total_score": 48.744843,
+ "lexical_score": 42.1212788,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 20.99123,
+ "matched_keywords": [
+ {
+ "keyword": "High Energy Particle Physics",
+ "score": 0.8396492
+ },
+ {
+ "keyword": "Quantum Physics",
+ "score": 0.6308072
+ }
+ ]
+ },
+ {
+ "query": "high energy physics",
+ "field": "Physics and Astronomy",
+ "rank": 3,
+ "topic_name": "Particle accelerators and beam dynamics",
+ "total_score": 40.117233,
+ "lexical_score": 30.4501499,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 20.492142,
+ "matched_keywords": [
+ {
+ "keyword": "High Energy Density Physics",
+ "score": 0.81968564
+ },
+ {
+ "keyword": "Ion Beam Dynamics",
+ "score": 0.56177396
+ }
+ ]
+ },
+ {
+ "query": "quantum entanglement experiments",
+ "field": "Physics and Astronomy",
+ "rank": 1,
+ "topic_name": "Black Holes and Theoretical Physics",
+ "total_score": 44.77704,
+ "lexical_score": 35.631249999999994,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 19.836807,
+ "matched_keywords": [
+ {
+ "keyword": "Quantum Entanglement",
+ "score": 0.7934723
+ },
+ {
+ "keyword": "Quantum Gravity",
+ "score": 0.5821889
+ }
+ ]
+ },
+ {
+ "query": "quantum entanglement experiments",
+ "field": "Physics and Astronomy",
+ "rank": 2,
+ "topic_name": "Quantum optics and atomic interactions",
+ "total_score": 43.118423,
+ "lexical_score": 51.9700377,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 19.879246,
+ "matched_keywords": [
+ {
+ "keyword": "Quantum Entanglement",
+ "score": 0.79516983
+ },
+ {
+ "keyword": "Quantum Memory",
+ "score": 0.6108691
+ }
+ ]
+ },
+ {
+ "query": "quantum entanglement experiments",
+ "field": "Physics and Astronomy",
+ "rank": 3,
+ "topic_name": "Quantum many-body systems",
+ "total_score": 41.19157,
+ "lexical_score": 54.104826,
+ "title_vector_score": 17.549973,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Entanglement",
+ "score": 0.70704395
+ },
+ {
+ "keyword": "Quantum Thermalization",
+ "score": 0.65445834
+ }
+ ]
+ },
+ {
+ "query": "spectroscopy techniques",
+ "field": "Physics and Astronomy",
+ "rank": 1,
+ "topic_name": "Optical Imaging and Spectroscopy Techniques",
+ "total_score": 47.871086,
+ "lexical_score": 42.807872200000006,
+ "title_vector_score": 20.917587,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Near-Infrared Spectroscopy",
+ "score": 0.56676483
+ },
+ {
+ "keyword": "Hyperspectral Imaging",
+ "score": 0.54329807
+ }
+ ]
+ },
+ {
+ "query": "spectroscopy techniques",
+ "field": "Physics and Astronomy",
+ "rank": 2,
+ "topic_name": "Electron and X-Ray Spectroscopy Techniques",
+ "total_score": 45.187958,
+ "lexical_score": 46.6650663,
+ "title_vector_score": 20.391731,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Surface Science",
+ "score": 0.54235715
+ },
+ {
+ "keyword": "Scanning Electron Microscopy",
+ "score": 0.529171
+ }
+ ]
+ },
+ {
+ "query": "spectroscopy techniques",
+ "field": "Physics and Astronomy",
+ "rank": 3,
+ "topic_name": "Spectroscopy Techniques in Biomedical and Chemical Research",
+ "total_score": 42.258266,
+ "lexical_score": 45.6688622,
+ "title_vector_score": 19.299583,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Infrared Spectroscopy",
+ "score": 0.6718152
+ },
+ {
+ "keyword": "Raman Spectroscopy",
+ "score": 0.6573067
+ }
+ ]
+ },
+ {
+ "query": "thermodynamics principles",
+ "field": "Physics and Astronomy",
+ "rank": 1,
+ "topic_name": "thermodynamics and calorimetric analyses",
+ "total_score": 58.93096,
+ "lexical_score": 39.776785000000004,
+ "title_vector_score": 19.205933,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 19.165737,
+ "matched_keywords": [
+ {
+ "keyword": "Thermodynamics",
+ "score": 0.7666295
+ },
+ {
+ "keyword": "Thermal Analysis",
+ "score": 0.57184476
+ }
+ ]
+ },
+ {
+ "query": "thermodynamics principles",
+ "field": "Physics and Astronomy",
+ "rank": 2,
+ "topic_name": "Biomedical and Chemical Research",
+ "total_score": 33.65199,
+ "lexical_score": 14.448582,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 19.203407,
+ "matched_keywords": [
+ {
+ "keyword": "Thermodynamics",
+ "score": 0.7681363
+ },
+ {
+ "keyword": "Oxygen Consumption",
+ "score": 0.5429484
+ }
+ ]
+ },
+ {
+ "query": "thermodynamics principles",
+ "field": "Physics and Astronomy",
+ "rank": 3,
+ "topic_name": "Metallurgical and Alloy Processes",
+ "total_score": 32.64595,
+ "lexical_score": 21.053532,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 19.13665,
+ "matched_keywords": [
+ {
+ "keyword": "Thermodynamics",
+ "score": 0.76546603
+ },
+ {
+ "keyword": "Electrochemical Properties",
+ "score": 0.58230335
+ }
+ ]
+ },
+ {
+ "query": "organic synthesis",
+ "field": "Chemistry",
+ "rank": 1,
+ "topic_name": "Synthesis of Organic Compounds",
+ "total_score": 53.535393,
+ "lexical_score": 45.8303465,
+ "title_vector_score": 23.078423,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Synthesis",
+ "score": 0.67531204
+ },
+ {
+ "keyword": "Microwave-Assisted Synthesis",
+ "score": 0.59508896
+ }
+ ]
+ },
+ {
+ "query": "organic synthesis",
+ "field": "Chemistry",
+ "rank": 2,
+ "topic_name": "Organic Chemistry Synthesis Methods",
+ "total_score": 52.22657,
+ "lexical_score": 51.1392127,
+ "title_vector_score": 21.7696,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Total Synthesis",
+ "score": 0.63985443
+ },
+ {
+ "keyword": "Regioselective Synthesis",
+ "score": 0.61975735
+ }
+ ]
+ },
+ {
+ "query": "organic synthesis",
+ "field": "Chemistry",
+ "rank": 3,
+ "topic_name": "Synthesis and Reactivity of Sulfur-Containing Compounds",
+ "total_score": 42.529682,
+ "lexical_score": 40.2387436,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.572105,
+ "matched_keywords": [
+ {
+ "keyword": "Organic Synthesis",
+ "score": 0.9028842
+ },
+ {
+ "keyword": "Catalytic Reactions",
+ "score": 0.61575824
+ }
+ ]
+ },
+ {
+ "query": "analytical chemistry methods",
+ "field": "Chemistry",
+ "rank": 1,
+ "topic_name": "Analytical chemistry methods development",
+ "total_score": 71.32817,
+ "lexical_score": 80.15799899999999,
+ "title_vector_score": 24.068718,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Green Analytical Chemistry",
+ "score": 0.6672948
+ },
+ {
+ "keyword": "Sample Preparation Techniques",
+ "score": 0.61978275
+ }
+ ]
+ },
+ {
+ "query": "analytical chemistry methods",
+ "field": "Chemistry",
+ "rank": 2,
+ "topic_name": "Analytical Methods in Pharmaceuticals",
+ "total_score": 54.89891,
+ "lexical_score": 75.9580666,
+ "title_vector_score": 22.016792,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Spectrophotometric Methods",
+ "score": 0.68319577
+ },
+ {
+ "keyword": "Green Analytical Chemistry",
+ "score": 0.6668307
+ }
+ ]
+ },
+ {
+ "query": "analytical chemistry methods",
+ "field": "Chemistry",
+ "rank": 3,
+ "topic_name": "Synthetic Organic Chemistry Methods",
+ "total_score": 47.524704,
+ "lexical_score": 38.9736173,
+ "title_vector_score": 20.374947,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Organometallic Chemistry",
+ "score": 0.5741272
+ },
+ {
+ "keyword": "Catalytic Activity",
+ "score": 0.542834
+ }
+ ]
+ },
+ {
+ "query": "inorganic compounds coordination",
+ "field": "Chemistry",
+ "rank": 1,
+ "topic_name": "Coordination Chemistry and Organometallics",
+ "total_score": 43.65721,
+ "lexical_score": 37.267500000000005,
+ "title_vector_score": 20.095901,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Organometallic Chemistry",
+ "score": 0.56137973
+ },
+ {
+ "keyword": "Functionalized Reagents",
+ "score": 0.53893024
+ }
+ ]
+ },
+ {
+ "query": "inorganic compounds coordination",
+ "field": "Chemistry",
+ "rank": 2,
+ "topic_name": "Inorganic Chemistry and Materials",
+ "total_score": 39.338135,
+ "lexical_score": 42.9326782,
+ "title_vector_score": 19.22844,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Inorganic Clusters",
+ "score": 0.68378705
+ },
+ {
+ "keyword": "Metallic Cluster Complexes",
+ "score": 0.5253627
+ }
+ ]
+ },
+ {
+ "query": "inorganic compounds coordination",
+ "field": "Chemistry",
+ "rank": 3,
+ "topic_name": "Inorganic and Organometallic Chemistry",
+ "total_score": 38.951134,
+ "lexical_score": 32.7685294,
+ "title_vector_score": 18.841438,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Metal Complexes",
+ "score": 0.5631091
+ },
+ {
+ "keyword": "Organic Synthesis",
+ "score": 0.5436732
+ }
+ ]
+ },
+ {
+ "query": "physical chemistry thermodynamics",
+ "field": "Chemistry",
+ "rank": 1,
+ "topic_name": "thermodynamics and calorimetric analyses",
+ "total_score": 60.00286,
+ "lexical_score": 39.776785000000004,
+ "title_vector_score": 20.028763,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 19.414806,
+ "matched_keywords": [
+ {
+ "keyword": "Thermodynamics",
+ "score": 0.77659225
+ },
+ {
+ "keyword": "Isothermal Titration Calorimetry",
+ "score": 0.5985222
+ }
+ ]
+ },
+ {
+ "query": "physical chemistry thermodynamics",
+ "field": "Chemistry",
+ "rank": 2,
+ "topic_name": "Material Science and Thermodynamics",
+ "total_score": 40.861183,
+ "lexical_score": 20.55929,
+ "title_vector_score": 20.301895,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Thermoelectric Properties",
+ "score": 0.57890826
+ },
+ {
+ "keyword": "Energy Efficiency",
+ "score": 0.5441055
+ }
+ ]
+ },
+ {
+ "query": "physical chemistry thermodynamics",
+ "field": "Chemistry",
+ "rank": 3,
+ "topic_name": "Chemical Thermodynamics and Molecular Structure",
+ "total_score": 38.16541,
+ "lexical_score": 32.891933,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 19.39478,
+ "matched_keywords": [
+ {
+ "keyword": "Thermodynamics",
+ "score": 0.77579117
+ },
+ {
+ "keyword": "Calorimetry",
+ "score": 0.6450424
+ }
+ ]
+ },
+ {
+ "query": "spectroscopy chemical analysis",
+ "field": "Chemistry",
+ "rank": 1,
+ "topic_name": "Spectroscopy and Quantum Chemical Studies",
+ "total_score": 51.968674,
+ "lexical_score": 40.530531,
+ "title_vector_score": 20.641975,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Vibrational Spectroscopy",
+ "score": 0.69321567
+ },
+ {
+ "keyword": "Molecular Dynamics",
+ "score": 0.5851962
+ }
+ ]
+ },
+ {
+ "query": "spectroscopy chemical analysis",
+ "field": "Chemistry",
+ "rank": 2,
+ "topic_name": "Plant chemical constituents analysis",
+ "total_score": 46.265114,
+ "lexical_score": 27.8290113,
+ "title_vector_score": 20.478134,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Chemistry",
+ "score": 0.5938301
+ },
+ {
+ "keyword": "Phytochemistry",
+ "score": 0.5833079
+ }
+ ]
+ },
+ {
+ "query": "spectroscopy chemical analysis",
+ "field": "Chemistry",
+ "rank": 3,
+ "topic_name": "Spectroscopy and Chemometric Analyses",
+ "total_score": 40.503647,
+ "lexical_score": 37.5101607,
+ "title_vector_score": 21.998863,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Spectral Analysis",
+ "score": 0.70466614
+ },
+ {
+ "keyword": "Chemometric Tools",
+ "score": 0.6290906
+ }
+ ]
+ },
+ {
+ "query": "catalysis mechanism design",
+ "field": "Chemistry",
+ "rank": 1,
+ "topic_name": "Advanced Nanomaterials in Catalysis",
+ "total_score": 37.221977,
+ "lexical_score": 18.504786,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 18.717194,
+ "matched_keywords": [
+ {
+ "keyword": "Catalytic Mechanisms",
+ "score": 0.74868774
+ },
+ {
+ "keyword": "Single-Atom Catalysts",
+ "score": 0.5751254
+ }
+ ]
+ },
+ {
+ "query": "catalysis mechanism design",
+ "field": "Chemistry",
+ "rank": 2,
+ "topic_name": "Carbon dioxide utilization in catalysis",
+ "total_score": 35.764534,
+ "lexical_score": 26.597192,
+ "title_vector_score": 18.869667,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Catalysis",
+ "score": 0.62718964
+ },
+ {
+ "keyword": "Homogeneous Catalysts",
+ "score": 0.592247
+ }
+ ]
+ },
+ {
+ "query": "catalysis mechanism design",
+ "field": "Chemistry",
+ "rank": 3,
+ "topic_name": "Mechanics and Biomechanics Studies",
+ "total_score": 35.68019,
+ "lexical_score": 28.873817000000003,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 16.687138,
+ "matched_keywords": [
+ {
+ "keyword": "Mechanism Design",
+ "score": 0.66748554
+ }
+ ]
+ },
+ {
+ "query": "polymer chemistry polymerization",
+ "field": "Chemistry",
+ "rank": 1,
+ "topic_name": "Polymer crystallization and properties",
+ "total_score": 39.756218,
+ "lexical_score": 37.71762,
+ "title_vector_score": 21.493225,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Polymer Crystallization",
+ "score": 0.77933246
+ },
+ {
+ "keyword": "Conducting Polymers",
+ "score": 0.6634229
+ }
+ ]
+ },
+ {
+ "query": "polymer chemistry polymerization",
+ "field": "Chemistry",
+ "rank": 2,
+ "topic_name": "Polymer Science and PVC",
+ "total_score": 39.558807,
+ "lexical_score": 18.26299,
+ "title_vector_score": 21.295815,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Plasticizers",
+ "score": 0.55443066
+ },
+ {
+ "keyword": "Poly(vinyl chloride)",
+ "score": 0.55400467
+ }
+ ]
+ },
+ {
+ "query": "polymer chemistry polymerization",
+ "field": "Chemistry",
+ "rank": 3,
+ "topic_name": "Polymer Synthesis and Characterization",
+ "total_score": 38.743034,
+ "lexical_score": 33.375466,
+ "title_vector_score": 20.480042,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Polymer Resins",
+ "score": 0.7022629
+ },
+ {
+ "keyword": "Terpolymer",
+ "score": 0.5498403
+ }
+ ]
+ },
+ {
+ "query": "electrochemistry batteries",
+ "field": "Chemistry",
+ "rank": 1,
+ "topic_name": "Electrochemical sensors and biosensors",
+ "total_score": 52.21048,
+ "lexical_score": 21.6244424,
+ "title_vector_score": 18.91697,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 18.819874,
+ "matched_keywords": [
+ {
+ "keyword": "Electrochemistry",
+ "score": 0.7527949
+ },
+ {
+ "keyword": "Electrochemical Biosensors",
+ "score": 0.6835391
+ }
+ ]
+ },
+ {
+ "query": "electrochemistry batteries",
+ "field": "Chemistry",
+ "rank": 2,
+ "topic_name": "Advanced biosensing and bioanalysis techniques",
+ "total_score": 36.071857,
+ "lexical_score": 23.355425,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 20.614689,
+ "matched_keywords": [
+ {
+ "keyword": "electrochemistry",
+ "score": 0.8245875
+ },
+ {
+ "keyword": "biosensors",
+ "score": 0.56914264
+ }
+ ]
+ },
+ {
+ "query": "electrochemistry batteries",
+ "field": "Chemistry",
+ "rank": 3,
+ "topic_name": "Advancements in Battery Materials",
+ "total_score": 34.8395,
+ "lexical_score": 22.519867,
+ "title_vector_score": 18.988495,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Rechargeable Batteries",
+ "score": 0.6928088
+ },
+ {
+ "keyword": "Lithium-ion Batteries",
+ "score": 0.6913592
+ }
+ ]
+ },
+ {
+ "query": "medicinal chemistry design",
+ "field": "Chemistry",
+ "rank": 1,
+ "topic_name": "Synthesis of Tetrazole Derivatives",
+ "total_score": 49.05148,
+ "lexical_score": 41.4532339,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 19.987804,
+ "matched_keywords": [
+ {
+ "keyword": "Drug Design",
+ "score": 0.7995122
+ },
+ {
+ "keyword": "Medicinal Chemistry",
+ "score": 0.7365697
+ }
+ ]
+ },
+ {
+ "query": "medicinal chemistry design",
+ "field": "Chemistry",
+ "rank": 2,
+ "topic_name": "Sulfur-Based Synthesis Techniques",
+ "total_score": 42.951363,
+ "lexical_score": 37.035285099999996,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 20.005447,
+ "matched_keywords": [
+ {
+ "keyword": "Drug Design",
+ "score": 0.8002179
+ },
+ {
+ "keyword": "Medicinal Chemistry",
+ "score": 0.7385661
+ }
+ ]
+ },
+ {
+ "query": "medicinal chemistry design",
+ "field": "Chemistry",
+ "rank": 3,
+ "topic_name": "Medicinal Plant Research",
+ "total_score": 38.30297,
+ "lexical_score": 34.623836,
+ "title_vector_score": 18.596153,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Pharmacological Properties",
+ "score": 0.6609815
+ },
+ {
+ "keyword": "Bioactive Compounds",
+ "score": 0.57825345
+ }
+ ]
+ },
+ {
+ "query": "chromatography separation techniques",
+ "field": "Chemistry",
+ "rank": 1,
+ "topic_name": "Blind Source Separation Techniques",
+ "total_score": 52.020214,
+ "lexical_score": 47.537642500000004,
+ "title_vector_score": 20.443802,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Blind Separation",
+ "score": 0.58150864
+ },
+ {
+ "keyword": "Independent Component Analysis",
+ "score": 0.5284526
+ }
+ ]
+ },
+ {
+ "query": "chromatography separation techniques",
+ "field": "Chemistry",
+ "rank": 2,
+ "topic_name": "Chromatography in Natural Products",
+ "total_score": 45.92926,
+ "lexical_score": 60.416120500000005,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 20.431107,
+ "matched_keywords": [
+ {
+ "keyword": "Chromatographic Separation",
+ "score": 0.81724423
+ },
+ {
+ "keyword": "Counter-Current Chromatography",
+ "score": 0.5901871
+ }
+ ]
+ },
+ {
+ "query": "chromatography separation techniques",
+ "field": "Chemistry",
+ "rank": 3,
+ "topic_name": "Membrane Separation Technologies",
+ "total_score": 43.154808,
+ "lexical_score": 22.72474,
+ "title_vector_score": 20.430069,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Membrane Distillation",
+ "score": 0.5857811
+ },
+ {
+ "keyword": "Membrane Technology",
+ "score": 0.5142301
+ }
+ ]
+ },
+ {
+ "query": "chemical kinetics reactions",
+ "field": "Chemistry",
+ "rank": 1,
+ "topic_name": "Chemical Synthesis and Reactions",
+ "total_score": 55.166977,
+ "lexical_score": 37.71803,
+ "title_vector_score": 21.91227,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Green Chemistry",
+ "score": 0.59314346
+ },
+ {
+ "keyword": "Heterogeneous Catalysts",
+ "score": 0.5786603
+ }
+ ]
+ },
+ {
+ "query": "chemical kinetics reactions",
+ "field": "Chemistry",
+ "rank": 2,
+ "topic_name": "Chemical Reactions and Isotopes",
+ "total_score": 54.803246,
+ "lexical_score": 46.2000525,
+ "title_vector_score": 21.548538,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Medicinal Chemistry",
+ "score": 0.64380264
+ },
+ {
+ "keyword": "Iridium-Catalyzed Reactions",
+ "score": 0.63710785
+ }
+ ]
+ },
+ {
+ "query": "chemical kinetics reactions",
+ "field": "Chemistry",
+ "rank": 3,
+ "topic_name": "Advanced Combustion Engine Technologies",
+ "total_score": 41.155453,
+ "lexical_score": 33.598389999999995,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 21.165752,
+ "matched_keywords": [
+ {
+ "keyword": "Chemical Kinetics",
+ "score": 0.8466301
+ },
+ {
+ "keyword": "Fuel Chemistry",
+ "score": 0.6501668
+ }
+ ]
+ },
+ {
+ "query": "mass spectrometry profiling",
+ "field": "Chemistry",
+ "rank": 1,
+ "topic_name": "Metabolomics and Mass Spectrometry Studies",
+ "total_score": 82.71838,
+ "lexical_score": 76.71830700000001,
+ "title_vector_score": 20.329933,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 20.33065,
+ "matched_keywords": [
+ {
+ "keyword": "Mass Spectrometry",
+ "score": 0.81322604
+ },
+ {
+ "keyword": "NMR Spectroscopy",
+ "score": 0.5693016
+ }
+ ]
+ },
+ {
+ "query": "mass spectrometry profiling",
+ "field": "Chemistry",
+ "rank": 2,
+ "topic_name": "Mass Spectrometry Techniques and Applications",
+ "total_score": 61.385418,
+ "lexical_score": 81.5495631,
+ "title_vector_score": 19.327621,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Mass Spectrometry",
+ "score": 0.8123868
+ },
+ {
+ "keyword": "Proteomics",
+ "score": 0.5095698
+ }
+ ]
+ },
+ {
+ "query": "mass spectrometry profiling",
+ "field": "Chemistry",
+ "rank": 3,
+ "topic_name": "Petroleum Processing and Analysis",
+ "total_score": 43.49846,
+ "lexical_score": 33.1259145,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 20.33065,
+ "matched_keywords": [
+ {
+ "keyword": "Mass Spectrometry",
+ "score": 0.81322604
+ },
+ {
+ "keyword": "Chemical Characterization",
+ "score": 0.54723996
+ }
+ ]
+ },
+ {
+ "query": "computational chemistry modeling",
+ "field": "Chemistry",
+ "rank": 1,
+ "topic_name": "Statistical and Computational Modeling",
+ "total_score": 56.04724,
+ "lexical_score": 51.408938,
+ "title_vector_score": 20.741539,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Modeling and Prediction",
+ "score": 0.59694546
+ },
+ {
+ "keyword": "Inductive Modeling",
+ "score": 0.55213547
+ }
+ ]
+ },
+ {
+ "query": "computational chemistry modeling",
+ "field": "Chemistry",
+ "rank": 2,
+ "topic_name": "Chemical Reactions and Mechanisms",
+ "total_score": 39.716125,
+ "lexical_score": 28.532339600000004,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 20.082218,
+ "matched_keywords": [
+ {
+ "keyword": "Computational Chemistry",
+ "score": 0.80328876
+ },
+ {
+ "keyword": "Chemical Reactions",
+ "score": 0.56481296
+ }
+ ]
+ },
+ {
+ "query": "computational chemistry modeling",
+ "field": "Chemistry",
+ "rank": 3,
+ "topic_name": "Machine Learning in Materials Science",
+ "total_score": 38.95667,
+ "lexical_score": 23.790277600000003,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 20.138329,
+ "matched_keywords": [
+ {
+ "keyword": "Computational Chemistry",
+ "score": 0.8055331
+ },
+ {
+ "keyword": "Molecular Dynamics",
+ "score": 0.6062915
+ }
+ ]
+ },
+ {
+ "query": "environmental chemistry monitoring",
+ "field": "Chemistry",
+ "rank": 1,
+ "topic_name": "Environmental Monitoring and Data Management",
+ "total_score": 48.580223,
+ "lexical_score": 50.2412568,
+ "title_vector_score": 19.910889,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Environmental Monitoring",
+ "score": 0.78551865
+ },
+ {
+ "keyword": "Environmental Observations",
+ "score": 0.72063065
+ }
+ ]
+ },
+ {
+ "query": "environmental chemistry monitoring",
+ "field": "Chemistry",
+ "rank": 2,
+ "topic_name": "Environmental Chemistry and Analysis",
+ "total_score": 47.559284,
+ "lexical_score": 35.8743623,
+ "title_vector_score": 20.285492,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Environmental Fate",
+ "score": 0.55115
+ },
+ {
+ "keyword": "Ecotoxicity",
+ "score": 0.52033997
+ }
+ ]
+ },
+ {
+ "query": "environmental chemistry monitoring",
+ "field": "Chemistry",
+ "rank": 3,
+ "topic_name": "Environmental and Analytical Chemistry Studies",
+ "total_score": 44.60682,
+ "lexical_score": 38.6213821,
+ "title_vector_score": 19.705849,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Environmental Contamination",
+ "score": 0.66702145
+ },
+ {
+ "keyword": "Chemical Analysis",
+ "score": 0.62615967
+ }
+ ]
+ },
+ {
+ "query": "photochemistry solar conversion",
+ "field": "Chemistry",
+ "rank": 1,
+ "topic_name": "Photochemistry and Electron Transfer Studies",
+ "total_score": 43.114243,
+ "lexical_score": 36.2154946,
+ "title_vector_score": 20.137482,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Luminescent Solar Concentrators",
+ "score": 0.64099246
+ },
+ {
+ "keyword": "Photoinduced Proton Transfer",
+ "score": 0.6014531
+ }
+ ]
+ },
+ {
+ "query": "photochemistry solar conversion",
+ "field": "Chemistry",
+ "rank": 2,
+ "topic_name": "Solar Radiation and Photovoltaics",
+ "total_score": 39.182365,
+ "lexical_score": 39.91818,
+ "title_vector_score": 19.465904,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Photovoltaic Power",
+ "score": 0.6058528
+ },
+ {
+ "keyword": "Solar Energy",
+ "score": 0.5960744
+ }
+ ]
+ },
+ {
+ "query": "photochemistry solar conversion",
+ "field": "Chemistry",
+ "rank": 3,
+ "topic_name": "Chemical Reactions and Mechanisms",
+ "total_score": 35.455048,
+ "lexical_score": 24.930326,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 18.91858,
+ "matched_keywords": [
+ {
+ "keyword": "Photochemistry",
+ "score": 0.75674313
+ },
+ {
+ "keyword": "Organic Synthesis",
+ "score": 0.5483144
+ }
+ ]
+ },
+ {
+ "query": "biophysical chemistry structure",
+ "field": "Chemistry",
+ "rank": 1,
+ "topic_name": "Molecular Spectroscopy and Structure",
+ "total_score": 37.89544,
+ "lexical_score": 25.579042299999998,
+ "title_vector_score": 19.128685,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Molecular Structure",
+ "score": 0.7028033
+ },
+ {
+ "keyword": "Conformational Dynamics",
+ "score": 0.5348994
+ }
+ ]
+ },
+ {
+ "query": "biophysical chemistry structure",
+ "field": "Chemistry",
+ "rank": 2,
+ "topic_name": "Electron Spin Resonance Studies",
+ "total_score": 26.755898,
+ "lexical_score": 6.9454775,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 19.810421,
+ "matched_keywords": [
+ {
+ "keyword": "Biomolecular Structure",
+ "score": 0.7924169
+ },
+ {
+ "keyword": "Protein Dynamics",
+ "score": 0.56977844
+ }
+ ]
+ },
+ {
+ "query": "biophysical chemistry structure",
+ "field": "Chemistry",
+ "rank": 3,
+ "topic_name": "Polysaccharides Composition and Applications",
+ "total_score": 25.268242,
+ "lexical_score": 11.1893012,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 17.57024,
+ "matched_keywords": [
+ {
+ "keyword": "Molecular Structure",
+ "score": 0.70280963
+ },
+ {
+ "keyword": "Biomedical Applications",
+ "score": 0.56473035
+ }
+ ]
+ },
+ {
+ "query": "green chemistry principles",
+ "field": "Chemistry",
+ "rank": 1,
+ "topic_name": "Phosphorus compounds and reactions",
+ "total_score": 38.21172,
+ "lexical_score": 26.108815000000003,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 21.276218,
+ "matched_keywords": [
+ {
+ "keyword": "green chemistry",
+ "score": 0.85104877
+ },
+ {
+ "keyword": "natural product synthesis",
+ "score": 0.5297496
+ }
+ ]
+ },
+ {
+ "query": "green chemistry principles",
+ "field": "Chemistry",
+ "rank": 2,
+ "topic_name": "Multicomponent Synthesis of Heterocycles",
+ "total_score": 37.739815,
+ "lexical_score": 27.077081500000002,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 19.678974,
+ "matched_keywords": [
+ {
+ "keyword": "Green Chemistry",
+ "score": 0.78715897
+ },
+ {
+ "keyword": "Organic Synthesis",
+ "score": 0.54432803
+ }
+ ]
+ },
+ {
+ "query": "green chemistry principles",
+ "field": "Chemistry",
+ "rank": 3,
+ "topic_name": "Catalysis for Biomass Conversion",
+ "total_score": 36.973675,
+ "lexical_score": 30.6564392,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 19.678974,
+ "matched_keywords": [
+ {
+ "keyword": "Green Chemistry",
+ "score": 0.78715897
+ }
+ ]
+ },
+ {
+ "query": "molecular orbital theory",
+ "field": "Chemistry",
+ "rank": 1,
+ "topic_name": "Atomic and Molecular Physics",
+ "total_score": 36.47622,
+ "lexical_score": 17.828949,
+ "title_vector_score": 18.64727,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Atomic Structure",
+ "score": 0.6229617
+ },
+ {
+ "keyword": "Positron-Molecule Interactions",
+ "score": 0.55826443
+ }
+ ]
+ },
+ {
+ "query": "molecular orbital theory",
+ "field": "Chemistry",
+ "rank": 2,
+ "topic_name": "Molecular Spectroscopy and Structure",
+ "total_score": 35.843933,
+ "lexical_score": 27.3870332,
+ "title_vector_score": 18.014984,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Molecular Structure",
+ "score": 0.6595891
+ },
+ {
+ "keyword": "Conformational Dynamics",
+ "score": 0.6156247
+ }
+ ]
+ },
+ {
+ "query": "molecular orbital theory",
+ "field": "Chemistry",
+ "rank": 3,
+ "topic_name": "Magnetic and transport properties of perovskites and related materials",
+ "total_score": 29.668356,
+ "lexical_score": 12.431742,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 17.236614,
+ "matched_keywords": [
+ {
+ "keyword": "Orbital Physics",
+ "score": 0.68946457
+ },
+ {
+ "keyword": "Electronic Structure",
+ "score": 0.5900027
+ }
+ ]
+ },
+ {
+ "query": "supramolecular architecture",
+ "field": "Chemistry",
+ "rank": 1,
+ "topic_name": "Supramolecular Chemistry and Complexes",
+ "total_score": 42.287354,
+ "lexical_score": 41.3069108,
+ "title_vector_score": 18.726044,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Supramolecular Chemistry",
+ "score": 0.7114563
+ },
+ {
+ "keyword": "Molecular Machines",
+ "score": 0.5391591
+ }
+ ]
+ },
+ {
+ "query": "supramolecular architecture",
+ "field": "Chemistry",
+ "rank": 2,
+ "topic_name": "Supramolecular Self-Assembly in Materials",
+ "total_score": 39.999672,
+ "lexical_score": 40.8613394,
+ "title_vector_score": 18.488197,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Supramolecular",
+ "score": 0.73459244
+ },
+ {
+ "keyword": "Molecular Gelation",
+ "score": 0.5421855
+ }
+ ]
+ },
+ {
+ "query": "supramolecular architecture",
+ "field": "Chemistry",
+ "rank": 3,
+ "topic_name": "Organometallic Compounds Synthesis and Characterization",
+ "total_score": 32.39389,
+ "lexical_score": 18.513298,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 19.683743,
+ "matched_keywords": [
+ {
+ "keyword": "Supramolecular Structures",
+ "score": 0.7873497
+ }
+ ]
+ },
+ {
+ "query": "crystallography structure determination",
+ "field": "Chemistry",
+ "rank": 1,
+ "topic_name": "X-ray Diffraction in Crystallography",
+ "total_score": 74.92781,
+ "lexical_score": 71.933577,
+ "title_vector_score": 21.425896,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 19.70647,
+ "matched_keywords": [
+ {
+ "keyword": "Structure Determination",
+ "score": 0.78825885
+ },
+ {
+ "keyword": "Crystallography",
+ "score": 0.7536659
+ }
+ ]
+ },
+ {
+ "query": "crystallography structure determination",
+ "field": "Chemistry",
+ "rank": 2,
+ "topic_name": "Enzyme Structure and Function",
+ "total_score": 62.849285,
+ "lexical_score": 70.5447604,
+ "title_vector_score": 0.0,
+ "description_vector_score": 7.915153,
+ "keywords_vector_score": 21.293861,
+ "matched_keywords": [
+ {
+ "keyword": "Crystal Structure Determination",
+ "score": 0.8517545
+ },
+ {
+ "keyword": "Macromolecular Crystallography",
+ "score": 0.7209485
+ }
+ ]
+ },
+ {
+ "query": "crystallography structure determination",
+ "field": "Chemistry",
+ "rank": 3,
+ "topic_name": "Crystal structures of chemical compounds",
+ "total_score": 46.9398,
+ "lexical_score": 43.6753334,
+ "title_vector_score": 19.917755,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Crystal Structure Validation",
+ "score": 0.77292377
+ },
+ {
+ "keyword": "X-Ray Crystallography",
+ "score": 0.75337344
+ }
+ ]
+ },
+ {
+ "query": "linear algebra",
+ "field": "Mathematics",
+ "rank": 1,
+ "topic_name": "Algebraic and Geometric Analysis",
+ "total_score": 48.83886,
+ "lexical_score": 21.211774,
+ "title_vector_score": 18.414574,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 17.476147,
+ "matched_keywords": [
+ {
+ "keyword": "Geometric Algebra",
+ "score": 0.69904584
+ },
+ {
+ "keyword": "Functional Calculus",
+ "score": 0.5858383
+ }
+ ]
+ },
+ {
+ "query": "linear algebra",
+ "field": "Mathematics",
+ "rank": 2,
+ "topic_name": "Matrix Theory and Algorithms",
+ "total_score": 44.69595,
+ "lexical_score": 42.725856,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 17.917538,
+ "matched_keywords": [
+ {
+ "keyword": "Numerical Linear Algebra",
+ "score": 0.7167015
+ },
+ {
+ "keyword": "Sparse Linear Systems",
+ "score": 0.62393445
+ }
+ ]
+ },
+ {
+ "query": "linear algebra",
+ "field": "Mathematics",
+ "rank": 3,
+ "topic_name": "Polynomial and algebraic computation",
+ "total_score": 31.043375,
+ "lexical_score": 19.4916304,
+ "title_vector_score": 18.358688,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Algebraic Varieties",
+ "score": 0.61092633
+ },
+ {
+ "keyword": "Polynomial Systems",
+ "score": 0.6060435
+ }
+ ]
+ },
+ {
+ "query": "differential equations solution",
+ "field": "Mathematics",
+ "rank": 1,
+ "topic_name": "Differential Equations and Boundary Problems",
+ "total_score": 63.798847,
+ "lexical_score": 94.723564,
+ "title_vector_score": 19.306068,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Partial Differential Equations",
+ "score": 0.66028214
+ },
+ {
+ "keyword": "Numerical Solution",
+ "score": 0.65724945
+ }
+ ]
+ },
+ {
+ "query": "differential equations solution",
+ "field": "Mathematics",
+ "rank": 2,
+ "topic_name": "Fractional Differential Equations Solutions",
+ "total_score": 59.916046,
+ "lexical_score": 54.988964,
+ "title_vector_score": 21.496468,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Nonlinear Equations",
+ "score": 0.6287473
+ },
+ {
+ "keyword": "Time-Fractional Diffusion Equation",
+ "score": 0.5731608
+ }
+ ]
+ },
+ {
+ "query": "differential equations solution",
+ "field": "Mathematics",
+ "rank": 3,
+ "topic_name": "Numerical methods for differential equations",
+ "total_score": 54.401756,
+ "lexical_score": 71.4616614,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 19.324684,
+ "matched_keywords": [
+ {
+ "keyword": "Differential Equations",
+ "score": 0.77298737
+ },
+ {
+ "keyword": "Schrödinger Equation",
+ "score": 0.5767085
+ }
+ ]
+ },
+ {
+ "query": "algebraic topology",
+ "field": "Mathematics",
+ "rank": 1,
+ "topic_name": "Geometric and Algebraic Topology",
+ "total_score": 66.45362,
+ "lexical_score": 68.47117800000001,
+ "title_vector_score": 24.179726,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Quantum Topology",
+ "score": 0.6963628
+ },
+ {
+ "keyword": "Symplectic Topology",
+ "score": 0.62437314
+ }
+ ]
+ },
+ {
+ "query": "algebraic topology",
+ "field": "Mathematics",
+ "rank": 2,
+ "topic_name": "Algebraic and Geometric Analysis",
+ "total_score": 41.160446,
+ "lexical_score": 20.55929,
+ "title_vector_score": 20.601158,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Geometric Algebra",
+ "score": 0.68438464
+ },
+ {
+ "keyword": "Functional Calculus",
+ "score": 0.54675037
+ }
+ ]
+ },
+ {
+ "query": "algebraic topology",
+ "field": "Mathematics",
+ "rank": 3,
+ "topic_name": "Algebraic Geometry and Number Theory",
+ "total_score": 38.69258,
+ "lexical_score": 25.576036000000002,
+ "title_vector_score": 19.921951,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Tropical Geometry",
+ "score": 0.55899554
+ },
+ {
+ "keyword": "Symplectic Geometry",
+ "score": 0.5472781
+ }
+ ]
+ },
+ {
+ "query": "number theory cryptography",
+ "field": "Mathematics",
+ "rank": 1,
+ "topic_name": "Analytic Number Theory Research",
+ "total_score": 76.3964,
+ "lexical_score": 70.19852250000001,
+ "title_vector_score": 19.061356,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 19.592827,
+ "matched_keywords": [
+ {
+ "keyword": "Number Theory",
+ "score": 0.78371304
+ },
+ {
+ "keyword": "Arithmetic Progressions",
+ "score": 0.55808
+ }
+ ]
+ },
+ {
+ "query": "number theory cryptography",
+ "field": "Mathematics",
+ "rank": 2,
+ "topic_name": "Coding theory and cryptography",
+ "total_score": 57.431274,
+ "lexical_score": 56.763103,
+ "title_vector_score": 21.535759,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Cryptography",
+ "score": 0.67522305
+ },
+ {
+ "keyword": "Algebraic Attacks",
+ "score": 0.5101738
+ }
+ ]
+ },
+ {
+ "query": "number theory cryptography",
+ "field": "Mathematics",
+ "rank": 3,
+ "topic_name": "Advanced Mathematical Theories",
+ "total_score": 38.736088,
+ "lexical_score": 29.2712588,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 19.548798,
+ "matched_keywords": [
+ {
+ "keyword": "Number Theory",
+ "score": 0.7819519
+ }
+ ]
+ },
+ {
+ "query": "calculus fundamentals",
+ "field": "Mathematics",
+ "rank": 1,
+ "topic_name": "Mathematical Inequalities and Applications",
+ "total_score": 30.110605,
+ "lexical_score": 20.742613,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 17.425919,
+ "matched_keywords": [
+ {
+ "keyword": "Quantum Calculus",
+ "score": 0.69703674
+ },
+ {
+ "keyword": "Fractional Integrals",
+ "score": 0.551398
+ }
+ ]
+ },
+ {
+ "query": "calculus fundamentals",
+ "field": "Mathematics",
+ "rank": 2,
+ "topic_name": "Advanced Frequency and Time Standards",
+ "total_score": 18.578274,
+ "lexical_score": 0.0,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 18.578274,
+ "matched_keywords": [
+ {
+ "keyword": "Fundamental Constants",
+ "score": 0.743131
+ },
+ {
+ "keyword": "Quantum Metrology",
+ "score": 0.50494766
+ }
+ ]
+ },
+ {
+ "query": "calculus fundamentals",
+ "field": "Mathematics",
+ "rank": 3,
+ "topic_name": "Mathematics and Applications",
+ "total_score": 17.447548,
+ "lexical_score": 0.0,
+ "title_vector_score": 17.447548,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Algebraic",
+ "score": 0.5347722
+ }
+ ]
+ },
+ {
+ "query": "probability and statistics",
+ "field": "Mathematics",
+ "rank": 1,
+ "topic_name": "Probability and Statistical Research",
+ "total_score": 67.134735,
+ "lexical_score": 61.30781543212,
+ "title_vector_score": 25.151329,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 17.684204,
+ "matched_keywords": [
+ {
+ "keyword": "Probability Theory",
+ "score": 0.7073682
+ },
+ {
+ "keyword": "Random Variables",
+ "score": 0.63226956
+ }
+ ]
+ },
+ {
+ "query": "probability and statistics",
+ "field": "Mathematics",
+ "rank": 2,
+ "topic_name": "Probability and Risk Models",
+ "total_score": 46.97174,
+ "lexical_score": 36.75532952495,
+ "title_vector_score": 22.672539,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Stochastic Processes",
+ "score": 0.61618423
+ },
+ {
+ "keyword": "Ruin Probability",
+ "score": 0.5707512
+ }
+ ]
+ },
+ {
+ "query": "probability and statistics",
+ "field": "Mathematics",
+ "rank": 3,
+ "topic_name": "Probabilistic Statistics in Medicine",
+ "total_score": 43.46621,
+ "lexical_score": 62.98214271166,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 18.739922,
+ "matched_keywords": [
+ {
+ "keyword": "Probability",
+ "score": 0.7495969
+ },
+ {
+ "keyword": "Statistics",
+ "score": 0.6617572
+ }
+ ]
+ },
+ {
+ "query": "discrete mathematics structures",
+ "field": "Mathematics",
+ "rank": 1,
+ "topic_name": "Algebraic structures and combinatorial models",
+ "total_score": 34.829166,
+ "lexical_score": 17.134045,
+ "title_vector_score": 17.695122,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Cluster Algebras",
+ "score": 0.5383072
+ }
+ ]
+ },
+ {
+ "query": "discrete mathematics structures",
+ "field": "Mathematics",
+ "rank": 2,
+ "topic_name": "Digital Image Processing Techniques",
+ "total_score": 30.172289,
+ "lexical_score": 20.347973,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 16.929848,
+ "matched_keywords": [
+ {
+ "keyword": "Discrete Geometry",
+ "score": 0.67719394
+ }
+ ]
+ },
+ {
+ "query": "discrete mathematics structures",
+ "field": "Mathematics",
+ "rank": 3,
+ "topic_name": "Advanced Topology and Set Theory",
+ "total_score": 29.00713,
+ "lexical_score": 17.8669684,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 16.496563,
+ "matched_keywords": [
+ {
+ "keyword": "O-Minimal Structures",
+ "score": 0.6598625
+ },
+ {
+ "keyword": "Homogeneous Structures",
+ "score": 0.6289508
+ }
+ ]
+ },
+ {
+ "query": "numerical analysis algorithms",
+ "field": "Mathematics",
+ "rank": 1,
+ "topic_name": "Statistical and numerical algorithms",
+ "total_score": 58.025993,
+ "lexical_score": 47.6394435,
+ "title_vector_score": 22.582893,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Time Series Analysis",
+ "score": 0.574337
+ },
+ {
+ "keyword": "Singular Spectrum Analysis",
+ "score": 0.5188713
+ }
+ ]
+ },
+ {
+ "query": "numerical analysis algorithms",
+ "field": "Mathematics",
+ "rank": 2,
+ "topic_name": "Numerical Methods and Algorithms",
+ "total_score": 57.14499,
+ "lexical_score": 53.892776,
+ "title_vector_score": 21.701889,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Numerical Verification Methods",
+ "score": 0.6868324
+ },
+ {
+ "keyword": "Interval Analysis",
+ "score": 0.554259
+ }
+ ]
+ },
+ {
+ "query": "numerical analysis algorithms",
+ "field": "Mathematics",
+ "rank": 3,
+ "topic_name": "Advanced Numerical Analysis Techniques",
+ "total_score": 50.21311,
+ "lexical_score": 35.852087600000004,
+ "title_vector_score": 21.18061,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Structural Analysis",
+ "score": 0.5487277
+ }
+ ]
+ },
+ {
+ "query": "complex analysis functions",
+ "field": "Mathematics",
+ "rank": 1,
+ "topic_name": "Complex Network Analysis Techniques",
+ "total_score": 50.17771,
+ "lexical_score": 37.6946984,
+ "title_vector_score": 20.088081,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Network Analysis",
+ "score": 0.57630795
+ }
+ ]
+ },
+ {
+ "query": "complex analysis functions",
+ "field": "Mathematics",
+ "rank": 2,
+ "topic_name": "Analytic and geometric function theory",
+ "total_score": 48.577133,
+ "lexical_score": 40.3276494,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 19.979698,
+ "matched_keywords": [
+ {
+ "keyword": "Complex Analysis",
+ "score": 0.79918796
+ },
+ {
+ "keyword": "Analytic Functions",
+ "score": 0.7139104
+ }
+ ]
+ },
+ {
+ "query": "complex analysis functions",
+ "field": "Mathematics",
+ "rank": 3,
+ "topic_name": "Complex Systems and Time Series Analysis",
+ "total_score": 43.528572,
+ "lexical_score": 44.018407399999994,
+ "title_vector_score": 18.2555,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Complex Systems",
+ "score": 0.63992435
+ },
+ {
+ "keyword": "Multifractal Analysis",
+ "score": 0.57330066
+ }
+ ]
+ },
+ {
+ "query": "geometry axiom theories",
+ "field": "Mathematics",
+ "rank": 1,
+ "topic_name": "advanced mathematical theories",
+ "total_score": 41.8095,
+ "lexical_score": 21.793135,
+ "title_vector_score": 20.016365,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "ergodic theory",
+ "score": 0.6265475
+ },
+ {
+ "keyword": "string theory",
+ "score": 0.6233495
+ }
+ ]
+ },
+ {
+ "query": "geometry axiom theories",
+ "field": "Mathematics",
+ "rank": 2,
+ "topic_name": "Cosmology and Gravitation Theories",
+ "total_score": 35.936615,
+ "lexical_score": 38.10665470000001,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 16.220158,
+ "matched_keywords": [
+ {
+ "keyword": "Scalar-Tensor Theories",
+ "score": 0.6488063
+ },
+ {
+ "keyword": "General Relativity",
+ "score": 0.51691943
+ }
+ ]
+ },
+ {
+ "query": "geometry axiom theories",
+ "field": "Mathematics",
+ "rank": 3,
+ "topic_name": "Analytic and geometric function theory",
+ "total_score": 35.74935,
+ "lexical_score": 0.0,
+ "title_vector_score": 18.783264,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 16.966087,
+ "matched_keywords": [
+ {
+ "keyword": "Geometric Function Theory",
+ "score": 0.6786435
+ },
+ {
+ "keyword": "Hypergeometric Functions",
+ "score": 0.5425542
+ }
+ ]
+ },
+ {
+ "query": "combinatorics counting techniques",
+ "field": "Mathematics",
+ "rank": 1,
+ "topic_name": "Advanced Combinatorial Mathematics",
+ "total_score": 57.5823,
+ "lexical_score": 35.855732,
+ "title_vector_score": 17.078857,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 16.271496,
+ "matched_keywords": [
+ {
+ "keyword": "Combinatorics",
+ "score": 0.65085983
+ },
+ {
+ "keyword": "Enumerative Combinatorics",
+ "score": 0.64206696
+ }
+ ]
+ },
+ {
+ "query": "combinatorics counting techniques",
+ "field": "Mathematics",
+ "rank": 2,
+ "topic_name": "Radioactive Decay and Measurement Techniques",
+ "total_score": 33.778275,
+ "lexical_score": 38.148740200000006,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 16.651218,
+ "matched_keywords": [
+ {
+ "keyword": "Coincidence Counting",
+ "score": 0.6660487
+ },
+ {
+ "keyword": "Liquid Scintillation Counting",
+ "score": 0.56424713
+ }
+ ]
+ },
+ {
+ "query": "combinatorics counting techniques",
+ "field": "Mathematics",
+ "rank": 3,
+ "topic_name": "semigroups and automata theory",
+ "total_score": 31.687906,
+ "lexical_score": 23.609579,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 16.206009,
+ "matched_keywords": [
+ {
+ "keyword": "Combinatorics on Words",
+ "score": 0.6482404
+ },
+ {
+ "keyword": "Synchronizing Automata",
+ "score": 0.50921375
+ }
+ ]
+ },
+ {
+ "query": "mathematical modeling simulation",
+ "field": "Mathematics",
+ "rank": 1,
+ "topic_name": "Modeling and Simulation Systems",
+ "total_score": 56.045906,
+ "lexical_score": 65.19091,
+ "title_vector_score": 20.740204,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Simulation",
+ "score": 0.6390343
+ },
+ {
+ "keyword": "Object-Oriented Modeling",
+ "score": 0.58501816
+ }
+ ]
+ },
+ {
+ "query": "mathematical modeling simulation",
+ "field": "Mathematics",
+ "rank": 2,
+ "topic_name": "Modeling, Simulation, and Optimization",
+ "total_score": 56.02912,
+ "lexical_score": 55.9611895,
+ "title_vector_score": 20.72342,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Ontology-Based Simulations",
+ "score": 0.5802371
+ },
+ {
+ "keyword": "Agent-Based Modeling",
+ "score": 0.5747121
+ }
+ ]
+ },
+ {
+ "query": "mathematical modeling simulation",
+ "field": "Mathematics",
+ "rank": 3,
+ "topic_name": "Simulation and Modeling Applications",
+ "total_score": 55.096237,
+ "lexical_score": 62.718115,
+ "title_vector_score": 19.790535,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Network Simulation",
+ "score": 0.64903516
+ },
+ {
+ "keyword": "Simulation",
+ "score": 0.6392377
+ }
+ ]
+ },
+ {
+ "query": "set theory foundations",
+ "field": "Mathematics",
+ "rank": 1,
+ "topic_name": "Fuzzy and Soft Set Theory",
+ "total_score": 67.584694,
+ "lexical_score": 60.605400499999995,
+ "title_vector_score": 17.195969,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 15.93008,
+ "matched_keywords": [
+ {
+ "keyword": "Soft Set Theory",
+ "score": 0.6372032
+ },
+ {
+ "keyword": "Fuzzy Sets",
+ "score": 0.54173404
+ }
+ ]
+ },
+ {
+ "query": "set theory foundations",
+ "field": "Mathematics",
+ "rank": 2,
+ "topic_name": "Advanced Topology and Set Theory",
+ "total_score": 34.458645,
+ "lexical_score": 47.016591,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Definable Sets",
+ "score": 0.5836703
+ },
+ {
+ "keyword": "Model Theory",
+ "score": 0.51588947
+ }
+ ]
+ },
+ {
+ "query": "set theory foundations",
+ "field": "Mathematics",
+ "rank": 3,
+ "topic_name": "semigroups and automata theory",
+ "total_score": 30.333748,
+ "lexical_score": 18.579317,
+ "title_vector_score": 16.15284,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "graph theory applications",
+ "field": "Mathematics",
+ "rank": 1,
+ "topic_name": "Advanced Graph Theory Research",
+ "total_score": 72.04201,
+ "lexical_score": 72.4424236,
+ "title_vector_score": 19.753914,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 17.997486,
+ "matched_keywords": [
+ {
+ "keyword": "Graph Theory",
+ "score": 0.7198995
+ },
+ {
+ "keyword": "Algorithmic Applications",
+ "score": 0.6437645
+ }
+ ]
+ },
+ {
+ "query": "graph theory applications",
+ "field": "Mathematics",
+ "rank": 2,
+ "topic_name": "Graph theory and applications",
+ "total_score": 68.71434,
+ "lexical_score": 64.76663239999999,
+ "title_vector_score": 24.091415,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Graph Spectra",
+ "score": 0.58819073
+ },
+ {
+ "keyword": "Topological Indices",
+ "score": 0.5055644
+ }
+ ]
+ },
+ {
+ "query": "graph theory applications",
+ "field": "Mathematics",
+ "rank": 3,
+ "topic_name": "Graph Theory and Algorithms",
+ "total_score": 54.33329,
+ "lexical_score": 61.569491,
+ "title_vector_score": 20.042686,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Graph Analytics",
+ "score": 0.6909968
+ },
+ {
+ "keyword": "Graph Processing",
+ "score": 0.64703876
+ }
+ ]
+ },
+ {
+ "query": "real analysis limits",
+ "field": "Mathematics",
+ "rank": 1,
+ "topic_name": "Masonry and Concrete Structural Analysis",
+ "total_score": 27.338524,
+ "lexical_score": 17.5446962,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 18.226845,
+ "matched_keywords": [
+ {
+ "keyword": "Limit Analysis",
+ "score": 0.7290738
+ },
+ {
+ "keyword": "Seismic Analysis",
+ "score": 0.5077451
+ }
+ ]
+ },
+ {
+ "query": "real analysis limits",
+ "field": "Mathematics",
+ "rank": 2,
+ "topic_name": "Legal and Regulatory Analysis",
+ "total_score": 27.021788,
+ "lexical_score": 9.979933,
+ "title_vector_score": 17.041855,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "real analysis limits",
+ "field": "Mathematics",
+ "rank": 3,
+ "topic_name": "Risk and Safety Analysis",
+ "total_score": 25.690075,
+ "lexical_score": 19.524759500000002,
+ "title_vector_score": 15.710143,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Quantitative Risk Assessment",
+ "score": 0.5033264
+ },
+ {
+ "keyword": "Human Reliability Analysis",
+ "score": 0.50128555
+ }
+ ]
+ },
+ {
+ "query": "partial differential equations",
+ "field": "Mathematics",
+ "rank": 1,
+ "topic_name": "Nonlinear Partial Differential Equations",
+ "total_score": 86.31041,
+ "lexical_score": 85.1366263,
+ "title_vector_score": 22.72461,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Elliptic Equations",
+ "score": 0.7104327
+ },
+ {
+ "keyword": "Nonlinear Equations",
+ "score": 0.6900368
+ }
+ ]
+ },
+ {
+ "query": "partial differential equations",
+ "field": "Mathematics",
+ "rank": 2,
+ "topic_name": "Differential Equations and Boundary Problems",
+ "total_score": 84.57576,
+ "lexical_score": 100.78196369999999,
+ "title_vector_score": 18.316727,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 21.76625,
+ "matched_keywords": [
+ {
+ "keyword": "Partial Differential Equations",
+ "score": 0.87065
+ },
+ {
+ "keyword": "Parabolic Equations",
+ "score": 0.7205035
+ }
+ ]
+ },
+ {
+ "query": "partial differential equations",
+ "field": "Mathematics",
+ "rank": 3,
+ "topic_name": "Fractional Differential Equations Solutions",
+ "total_score": 56.99437,
+ "lexical_score": 54.988964,
+ "title_vector_score": 18.574791,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Nonlinear Equations",
+ "score": 0.690361
+ },
+ {
+ "keyword": "Time-Fractional Diffusion Equation",
+ "score": 0.59459305
+ }
+ ]
+ },
+ {
+ "query": "abstract algebra groups",
+ "field": "Mathematics",
+ "rank": 1,
+ "topic_name": "Advanced Algebra and Geometry",
+ "total_score": 56.602318,
+ "lexical_score": 38.311009,
+ "title_vector_score": 17.87117,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 17.64701,
+ "matched_keywords": [
+ {
+ "keyword": "Algebraic Groups",
+ "score": 0.70588046
+ }
+ ]
+ },
+ {
+ "query": "abstract algebra groups",
+ "field": "Mathematics",
+ "rank": 2,
+ "topic_name": "Advanced Topology and Set Theory",
+ "total_score": 41.83603,
+ "lexical_score": 40.18338369999999,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 16.399605,
+ "matched_keywords": [
+ {
+ "keyword": "Abstract Elementary Classes",
+ "score": 0.6559842
+ },
+ {
+ "keyword": "Automorphism Groups",
+ "score": 0.63797885
+ }
+ ]
+ },
+ {
+ "query": "abstract algebra groups",
+ "field": "Mathematics",
+ "rank": 3,
+ "topic_name": "Advanced Topics in Algebra",
+ "total_score": 40.39917,
+ "lexical_score": 35.205442,
+ "title_vector_score": 19.315033,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Baxter Algebras",
+ "score": 0.56422806
+ },
+ {
+ "keyword": "Quasi-Lie Algebras",
+ "score": 0.5496623
+ }
+ ]
+ },
+ {
+ "query": "optimization theory algorithms",
+ "field": "Mathematics",
+ "rank": 1,
+ "topic_name": "Scheduling and Optimization Algorithms",
+ "total_score": 50.433033,
+ "lexical_score": 47.005763699999996,
+ "title_vector_score": 19.92443,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Genetic Algorithm",
+ "score": 0.6137937
+ },
+ {
+ "keyword": "Hybrid Optimization",
+ "score": 0.5624669
+ }
+ ]
+ },
+ {
+ "query": "optimization theory algorithms",
+ "field": "Mathematics",
+ "rank": 2,
+ "topic_name": "Matrix Theory and Algorithms",
+ "total_score": 50.2956,
+ "lexical_score": 34.6743897,
+ "title_vector_score": 19.72416,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Matrix Computations",
+ "score": 0.60861206
+ },
+ {
+ "keyword": "Iterative Methods",
+ "score": 0.5864932
+ }
+ ]
+ },
+ {
+ "query": "optimization theory algorithms",
+ "field": "Mathematics",
+ "rank": 3,
+ "topic_name": "Assembly Line Balancing Optimization",
+ "total_score": 36.563446,
+ "lexical_score": 41.630569699999995,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 18.010204,
+ "matched_keywords": [
+ {
+ "keyword": "Optimization Methods",
+ "score": 0.72040814
+ },
+ {
+ "keyword": "Genetic Algorithms",
+ "score": 0.6665001
+ }
+ ]
+ },
+ {
+ "query": "stochastic processes modeling",
+ "field": "Mathematics",
+ "rank": 1,
+ "topic_name": "Stochastic processes and statistical mechanics",
+ "total_score": 53.83513,
+ "lexical_score": 64.62345400000001,
+ "title_vector_score": 20.764236,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Branching Processes",
+ "score": 0.60676193
+ },
+ {
+ "keyword": "Percolation Models",
+ "score": 0.58813983
+ }
+ ]
+ },
+ {
+ "query": "stochastic processes modeling",
+ "field": "Mathematics",
+ "rank": 2,
+ "topic_name": "Analysis of environmental and stochastic processes",
+ "total_score": 51.48636,
+ "lexical_score": 30.424002,
+ "title_vector_score": 21.062355,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "stochastic processes modeling",
+ "field": "Mathematics",
+ "rank": 3,
+ "topic_name": "Probability and Risk Models",
+ "total_score": 46.261246,
+ "lexical_score": 39.728295,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 19.87273,
+ "matched_keywords": [
+ {
+ "keyword": "Stochastic Processes",
+ "score": 0.7949092
+ },
+ {
+ "keyword": "Dependence Modeling",
+ "score": 0.6068637
+ }
+ ]
+ },
+ {
+ "query": "chaos theory dynamics",
+ "field": "Mathematics",
+ "rank": 1,
+ "topic_name": "Quantum chaos and dynamical systems",
+ "total_score": 51.339012,
+ "lexical_score": 57.3835629,
+ "title_vector_score": 19.524841,
+ "description_vector_score": 7.591095,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Quantum Chaos",
+ "score": 0.6482086
+ },
+ {
+ "keyword": "Hamiltonian Dynamics",
+ "score": 0.64725494
+ }
+ ]
+ },
+ {
+ "query": "chaos theory dynamics",
+ "field": "Mathematics",
+ "rank": 2,
+ "topic_name": "Mathematical Dynamics and Fractals",
+ "total_score": 46.34356,
+ "lexical_score": 46.419700899999995,
+ "title_vector_score": 18.724518,
+ "description_vector_score": 7.6483154,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Dynamical Systems",
+ "score": 0.6234767
+ },
+ {
+ "keyword": "Chaos",
+ "score": 0.58793
+ }
+ ]
+ },
+ {
+ "query": "chaos theory dynamics",
+ "field": "Mathematics",
+ "rank": 3,
+ "topic_name": "advanced mathematical theories",
+ "total_score": 33.639732,
+ "lexical_score": 21.704212599999998,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 17.388088,
+ "matched_keywords": [
+ {
+ "keyword": "dynamics",
+ "score": 0.69552356
+ },
+ {
+ "keyword": "string theory",
+ "score": 0.65898514
+ }
+ ]
+ },
+ {
+ "query": "synaptic plasticity",
+ "field": "Neuroscience",
+ "rank": 1,
+ "topic_name": "Neuroscience and Neuropharmacology Research",
+ "total_score": 54.451683,
+ "lexical_score": 34.733166,
+ "title_vector_score": 0.0,
+ "description_vector_score": 8.778229,
+ "keywords_vector_score": 22.977734,
+ "matched_keywords": [
+ {
+ "keyword": "Synaptic Plasticity",
+ "score": 0.91910934
+ },
+ {
+ "keyword": "Neuronal Circuits",
+ "score": 0.56407547
+ }
+ ]
+ },
+ {
+ "query": "synaptic plasticity",
+ "field": "Neuroscience",
+ "rank": 2,
+ "topic_name": "Nerve injury and regeneration",
+ "total_score": 50.08431,
+ "lexical_score": 40.407136,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.974556,
+ "matched_keywords": [
+ {
+ "keyword": "Synaptic Plasticity",
+ "score": 0.9189822
+ },
+ {
+ "keyword": "Neuronal Plasticity",
+ "score": 0.79129153
+ }
+ ]
+ },
+ {
+ "query": "synaptic plasticity",
+ "field": "Neuroscience",
+ "rank": 3,
+ "topic_name": "Treatment of Major Depression",
+ "total_score": 46.168434,
+ "lexical_score": 33.936592000000005,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.980911,
+ "matched_keywords": [
+ {
+ "keyword": "Synaptic Plasticity",
+ "score": 0.9192365
+ },
+ {
+ "keyword": "Neurobiological Mechanisms",
+ "score": 0.5836385
+ }
+ ]
+ },
+ {
+ "query": "neurodegenerative diseases mechanisms",
+ "field": "Neuroscience",
+ "rank": 1,
+ "topic_name": "Genetic Neurodegenerative Diseases",
+ "total_score": 71.85895,
+ "lexical_score": 53.5682652,
+ "title_vector_score": 21.267967,
+ "description_vector_score": 9.270802,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Neuronal Degeneration",
+ "score": 0.63875455
+ },
+ {
+ "keyword": "Mitochondrial Dysfunction",
+ "score": 0.54633075
+ }
+ ]
+ },
+ {
+ "query": "neurodegenerative diseases mechanisms",
+ "field": "Neuroscience",
+ "rank": 2,
+ "topic_name": "Coenzyme Q10 studies and effects",
+ "total_score": 42.316277,
+ "lexical_score": 32.60188,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 19.336605,
+ "matched_keywords": [
+ {
+ "keyword": "Neurodegenerative Diseases",
+ "score": 0.7734642
+ },
+ {
+ "keyword": "Mitochondrial Dysfunction",
+ "score": 0.54633075
+ }
+ ]
+ },
+ {
+ "query": "neurodegenerative diseases mechanisms",
+ "field": "Neuroscience",
+ "rank": 3,
+ "topic_name": "Neurological Disease Mechanisms and Treatments",
+ "total_score": 40.771603,
+ "lexical_score": 43.2949684,
+ "title_vector_score": 20.999603,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Neurodegenerative Diseases",
+ "score": 0.77090836
+ },
+ {
+ "keyword": "Neuroprotective Effects",
+ "score": 0.6063423
+ }
+ ]
+ },
+ {
+ "query": "brain mapping fmri",
+ "field": "Neuroscience",
+ "rank": 1,
+ "topic_name": "Functional Brain Connectivity Studies",
+ "total_score": 61.227062,
+ "lexical_score": 58.250214299999996,
+ "title_vector_score": 18.876534,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 17.51461,
+ "matched_keywords": [
+ {
+ "keyword": "Resting-State fMRI",
+ "score": 0.7005844
+ },
+ {
+ "keyword": "Neuroimaging Data Analysis",
+ "score": 0.5780627
+ }
+ ]
+ },
+ {
+ "query": "brain mapping fmri",
+ "field": "Neuroscience",
+ "rank": 2,
+ "topic_name": "Traumatic Brain Injury Research",
+ "total_score": 36.315025,
+ "lexical_score": 23.7874903,
+ "title_vector_score": 16.948013,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "brain mapping fmri",
+ "field": "Neuroscience",
+ "rank": 3,
+ "topic_name": "Face Recognition and Perception",
+ "total_score": 34.413662,
+ "lexical_score": 26.5321045,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 19.574863,
+ "matched_keywords": [
+ {
+ "keyword": "fMRI Data",
+ "score": 0.78299457
+ },
+ {
+ "keyword": "Cortical Processing",
+ "score": 0.5279503
+ }
+ ]
+ },
+ {
+ "query": "cognitive neuroscience memory",
+ "field": "Neuroscience",
+ "rank": 1,
+ "topic_name": "Neuroscience, Education and Cognitive Function",
+ "total_score": 74.26573,
+ "lexical_score": 61.279170300000004,
+ "title_vector_score": 19.585304,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 21.068638,
+ "matched_keywords": [
+ {
+ "keyword": "Cognitive Neuroscience",
+ "score": 0.8427455
+ },
+ {
+ "keyword": "Neuroscience",
+ "score": 0.77753955
+ }
+ ]
+ },
+ {
+ "query": "cognitive neuroscience memory",
+ "field": "Neuroscience",
+ "rank": 2,
+ "topic_name": "Developmental and Educational Neuropsychology",
+ "total_score": 41.12423,
+ "lexical_score": 23.708958,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 21.041458,
+ "matched_keywords": [
+ {
+ "keyword": "Cognitive Neuroscience",
+ "score": 0.8416583
+ },
+ {
+ "keyword": "Neuropsychological Assessment",
+ "score": 0.6040599
+ }
+ ]
+ },
+ {
+ "query": "cognitive neuroscience memory",
+ "field": "Neuroscience",
+ "rank": 3,
+ "topic_name": "Hemispheric Asymmetry in Neuroscience",
+ "total_score": 40.435646,
+ "lexical_score": 36.7215784,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 21.068638,
+ "matched_keywords": [
+ {
+ "keyword": "Cognitive Neuroscience",
+ "score": 0.8427455
+ },
+ {
+ "keyword": "Cerebral Asymmetry",
+ "score": 0.5366351
+ }
+ ]
+ },
+ {
+ "query": "neurotransmitter receptors pathways",
+ "field": "Neuroscience",
+ "rank": 1,
+ "topic_name": "Neurotransmitter Receptor Influence on Behavior",
+ "total_score": 61.301476,
+ "lexical_score": 48.414665,
+ "title_vector_score": 20.302277,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 18.022442,
+ "matched_keywords": [
+ {
+ "keyword": "Neurotransmitter Systems",
+ "score": 0.7208977
+ },
+ {
+ "keyword": "Neural Plasticity",
+ "score": 0.5472717
+ }
+ ]
+ },
+ {
+ "query": "neurotransmitter receptors pathways",
+ "field": "Neuroscience",
+ "rank": 2,
+ "topic_name": "NF-κB Signaling Pathways",
+ "total_score": 40.368355,
+ "lexical_score": 23.510422000000002,
+ "title_vector_score": 20.651894,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "transcription factors",
+ "score": 0.5659701
+ },
+ {
+ "keyword": "signaling",
+ "score": 0.5314153
+ }
+ ]
+ },
+ {
+ "query": "neurotransmitter receptors pathways",
+ "field": "Neuroscience",
+ "rank": 3,
+ "topic_name": "Signaling Pathways in Disease",
+ "total_score": 39.71318,
+ "lexical_score": 19.71646,
+ "title_vector_score": 19.99672,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Inflammatory Responses",
+ "score": 0.5363045
+ },
+ {
+ "keyword": "Transcriptional Regulation",
+ "score": 0.5195071
+ }
+ ]
+ },
+ {
+ "query": "neural network architecture",
+ "field": "Neuroscience",
+ "rank": 1,
+ "topic_name": "Advanced Neural Network Applications",
+ "total_score": 77.73006,
+ "lexical_score": 61.715172100000004,
+ "title_vector_score": 19.302444,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 21.884346,
+ "matched_keywords": [
+ {
+ "keyword": "Neural Network Architectures",
+ "score": 0.87537384
+ },
+ {
+ "keyword": "Convolutional Neural Networks",
+ "score": 0.58611804
+ }
+ ]
+ },
+ {
+ "query": "neural network architecture",
+ "field": "Neuroscience",
+ "rank": 2,
+ "topic_name": "Neural Networks and Applications",
+ "total_score": 38.283875,
+ "lexical_score": 33.3228047,
+ "title_vector_score": 19.77909,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Neural Networks",
+ "score": 0.7515869
+ },
+ {
+ "keyword": "Artificial Neural Networks",
+ "score": 0.6785164
+ }
+ ]
+ },
+ {
+ "query": "neural network architecture",
+ "field": "Neuroscience",
+ "rank": 3,
+ "topic_name": "Neural Networks Stability and Synchronization",
+ "total_score": 35.062057,
+ "lexical_score": 27.754882900000002,
+ "title_vector_score": 18.16719,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Neural Networks",
+ "score": 0.7513072
+ },
+ {
+ "keyword": "Complex Networks",
+ "score": 0.5568593
+ }
+ ]
+ },
+ {
+ "query": "behavioral neuroscience addiction",
+ "field": "Neuroscience",
+ "rank": 1,
+ "topic_name": "Neuroscience and Neuropharmacology Research",
+ "total_score": 37.65513,
+ "lexical_score": 19.36701,
+ "title_vector_score": 18.288116,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Neurotransmission",
+ "score": 0.5029895
+ },
+ {
+ "keyword": "Neuronal Circuits",
+ "score": 0.50178784
+ }
+ ]
+ },
+ {
+ "query": "behavioral neuroscience addiction",
+ "field": "Neuroscience",
+ "rank": 2,
+ "topic_name": "Psychiatry, Mental Health, Neuroscience",
+ "total_score": 37.32363,
+ "lexical_score": 24.8028005,
+ "title_vector_score": 17.95662,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "behavioral neuroscience addiction",
+ "field": "Neuroscience",
+ "rank": 3,
+ "topic_name": "Neuroscience of respiration and sleep",
+ "total_score": 35.90611,
+ "lexical_score": 17.68208,
+ "title_vector_score": 18.22403,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Serotonergic Neurons",
+ "score": 0.50971603
+ }
+ ]
+ },
+ {
+ "query": "neurogenesis adult brain",
+ "field": "Neuroscience",
+ "rank": 1,
+ "topic_name": "Neurogenesis and neuroplasticity mechanisms",
+ "total_score": 87.164116,
+ "lexical_score": 88.32923969999999,
+ "title_vector_score": 18.223076,
+ "description_vector_score": 9.298267,
+ "keywords_vector_score": 18.671577,
+ "matched_keywords": [
+ {
+ "keyword": "Neurogenesis",
+ "score": 0.74686307
+ },
+ {
+ "keyword": "Hippocampal Neurogenesis",
+ "score": 0.732914
+ }
+ ]
+ },
+ {
+ "query": "neurogenesis adult brain",
+ "field": "Neuroscience",
+ "rank": 2,
+ "topic_name": "Adult and Continuing Education Topics",
+ "total_score": 22.976759,
+ "lexical_score": 41.1612373,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Adult Education",
+ "score": 0.53941983
+ },
+ {
+ "keyword": "Cognitive Development",
+ "score": 0.5172882
+ }
+ ]
+ },
+ {
+ "query": "neurogenesis adult brain",
+ "field": "Neuroscience",
+ "rank": 3,
+ "topic_name": "Tryptophan and brain disorders",
+ "total_score": 19.36701,
+ "lexical_score": 25.0375665,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Neuroinflammation",
+ "score": 0.53028363
+ }
+ ]
+ },
+ {
+ "query": "axon guidance development",
+ "field": "Neuroscience",
+ "rank": 1,
+ "topic_name": "Axon Guidance and Neuronal Signaling",
+ "total_score": 86.39035,
+ "lexical_score": 91.6650332,
+ "title_vector_score": 19.922714,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 21.979397,
+ "matched_keywords": [
+ {
+ "keyword": "Axon guidance",
+ "score": 0.87917584
+ },
+ {
+ "keyword": "Neural development",
+ "score": 0.53467053
+ }
+ ]
+ },
+ {
+ "query": "axon guidance development",
+ "field": "Neuroscience",
+ "rank": 2,
+ "topic_name": "Nerve injury and regeneration",
+ "total_score": 38.275646,
+ "lexical_score": 28.9597028,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 18.336838,
+ "matched_keywords": [
+ {
+ "keyword": "Axon Growth",
+ "score": 0.7334735
+ },
+ {
+ "keyword": "Neural Circuit Development",
+ "score": 0.56976575
+ }
+ ]
+ },
+ {
+ "query": "axon guidance development",
+ "field": "Neuroscience",
+ "rank": 3,
+ "topic_name": "Guidance and Control Systems",
+ "total_score": 23.561312,
+ "lexical_score": 53.998983800000005,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Missile Guidance",
+ "score": 0.53840894
+ },
+ {
+ "keyword": "Integrated Guidance",
+ "score": 0.52547073
+ }
+ ]
+ },
+ {
+ "query": "spinal cord injury",
+ "field": "Neuroscience",
+ "rank": 1,
+ "topic_name": "Spinal Cord Injury Research",
+ "total_score": 108.02517,
+ "lexical_score": 122.623144,
+ "title_vector_score": 21.114616,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 21.60762,
+ "matched_keywords": [
+ {
+ "keyword": "Spinal Cord Injury",
+ "score": 0.86430484
+ },
+ {
+ "keyword": "Inflammation",
+ "score": 0.5807012
+ }
+ ]
+ },
+ {
+ "query": "spinal cord injury",
+ "field": "Neuroscience",
+ "rank": 2,
+ "topic_name": "Nerve injury and regeneration",
+ "total_score": 55.359364,
+ "lexical_score": 69.1761044,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 21.590137,
+ "matched_keywords": [
+ {
+ "keyword": "Spinal Cord Injury",
+ "score": 0.8636055
+ },
+ {
+ "keyword": "Nerve Regeneration",
+ "score": 0.5452563
+ }
+ ]
+ },
+ {
+ "query": "spinal cord injury",
+ "field": "Neuroscience",
+ "rank": 3,
+ "topic_name": "Veterinary Orthopedics and Neurology",
+ "total_score": 45.699142,
+ "lexical_score": 37.9690976,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 21.514797,
+ "matched_keywords": [
+ {
+ "keyword": "Spinal Cord Injuries",
+ "score": 0.8605919
+ },
+ {
+ "keyword": "Joint Diseases",
+ "score": 0.58762485
+ }
+ ]
+ },
+ {
+ "query": "sensory processing systems",
+ "field": "Neuroscience",
+ "rank": 1,
+ "topic_name": "Tactile and Sensory Interactions",
+ "total_score": 39.454933,
+ "lexical_score": 41.1905385,
+ "title_vector_score": 17.740326,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Sensory Substitution",
+ "score": 0.65272266
+ },
+ {
+ "keyword": "Auditory Localization",
+ "score": 0.5455869
+ }
+ ]
+ },
+ {
+ "query": "sensory processing systems",
+ "field": "Neuroscience",
+ "rank": 2,
+ "topic_name": "Neural dynamics and brain function",
+ "total_score": 39.40724,
+ "lexical_score": 30.2306967,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 19.61953,
+ "matched_keywords": [
+ {
+ "keyword": "Sensory Processing",
+ "score": 0.78478116
+ },
+ {
+ "keyword": "Neural Synchrony",
+ "score": 0.5541191
+ }
+ ]
+ },
+ {
+ "query": "sensory processing systems",
+ "field": "Neuroscience",
+ "rank": 3,
+ "topic_name": "Fermentation and Sensory Analysis",
+ "total_score": 39.39657,
+ "lexical_score": 21.714607,
+ "title_vector_score": 17.681961,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "motor control pathways",
+ "field": "Neuroscience",
+ "rank": 1,
+ "topic_name": "Motor Control and Adaptation",
+ "total_score": 73.46474,
+ "lexical_score": 72.089542,
+ "title_vector_score": 19.497948,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 18.302345,
+ "matched_keywords": [
+ {
+ "keyword": "Motor Control",
+ "score": 0.7320938
+ },
+ {
+ "keyword": "Motor Skill",
+ "score": 0.56057864
+ }
+ ]
+ },
+ {
+ "query": "motor control pathways",
+ "field": "Neuroscience",
+ "rank": 2,
+ "topic_name": "Sports and Physical Education Research",
+ "total_score": 38.911293,
+ "lexical_score": 30.30022,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 18.302345,
+ "matched_keywords": [
+ {
+ "keyword": "Motor Control",
+ "score": 0.7320938
+ },
+ {
+ "keyword": "Motor Learning",
+ "score": 0.59222156
+ }
+ ]
+ },
+ {
+ "query": "motor control pathways",
+ "field": "Neuroscience",
+ "rank": 3,
+ "topic_name": "Signaling Pathways in Disease",
+ "total_score": 38.725746,
+ "lexical_score": 19.71646,
+ "title_vector_score": 19.009285,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "alzheimer disease pathology",
+ "field": "Neuroscience",
+ "rank": 1,
+ "topic_name": "Clusterin in disease pathology",
+ "total_score": 51.30699,
+ "lexical_score": 33.077239,
+ "title_vector_score": 18.229752,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "alzheimer disease pathology",
+ "field": "Neuroscience",
+ "rank": 2,
+ "topic_name": "Alzheimer's disease research and treatments",
+ "total_score": 38.77797,
+ "lexical_score": 33.948145,
+ "title_vector_score": 0.0,
+ "description_vector_score": 8.216324,
+ "keywords_vector_score": 17.496174,
+ "matched_keywords": [
+ {
+ "keyword": "Tau Pathology",
+ "score": 0.6998469
+ },
+ {
+ "keyword": "Amyloid Hypothesis",
+ "score": 0.6125984
+ }
+ ]
+ },
+ {
+ "query": "alzheimer disease pathology",
+ "field": "Neuroscience",
+ "rank": 3,
+ "topic_name": "Mitochondrial Function and Pathology",
+ "total_score": 36.699913,
+ "lexical_score": 18.766754,
+ "title_vector_score": 17.933159,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Neurodegenerative Diseases",
+ "score": 0.59819794
+ },
+ {
+ "keyword": "Mitochondrial Dysfunction",
+ "score": 0.52796936
+ }
+ ]
+ },
+ {
+ "query": "parkinson motor deficits",
+ "field": "Neuroscience",
+ "rank": 1,
+ "topic_name": "Parkinson's Disease and Spinal Disorders",
+ "total_score": 36.585598,
+ "lexical_score": 0.0,
+ "title_vector_score": 19.673233,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 16.912365,
+ "matched_keywords": [
+ {
+ "keyword": "Parkinson's Disease",
+ "score": 0.6764946
+ },
+ {
+ "keyword": "Neurological Disorders",
+ "score": 0.587663
+ }
+ ]
+ },
+ {
+ "query": "parkinson motor deficits",
+ "field": "Neuroscience",
+ "rank": 2,
+ "topic_name": "Cerebral Palsy and Movement Disorders",
+ "total_score": 29.218536,
+ "lexical_score": 17.0305842,
+ "title_vector_score": 17.934303,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Neurological Impairment",
+ "score": 0.58487827
+ },
+ {
+ "keyword": "Gross Motor Function",
+ "score": 0.57703274
+ }
+ ]
+ },
+ {
+ "query": "parkinson motor deficits",
+ "field": "Neuroscience",
+ "rank": 3,
+ "topic_name": "Parkinson's Disease Mechanisms and Treatments",
+ "total_score": 28.450876,
+ "lexical_score": 15.2904503,
+ "title_vector_score": 18.29174,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Parkinson's Disease",
+ "score": 0.676164
+ },
+ {
+ "keyword": "Dopaminergic Neurons",
+ "score": 0.5781453
+ }
+ ]
+ },
+ {
+ "query": "neuroimmunology inflammation",
+ "field": "Neuroscience",
+ "rank": 1,
+ "topic_name": "Immune Response and Inflammation",
+ "total_score": 42.65235,
+ "lexical_score": 33.447255600000005,
+ "title_vector_score": 20.148163,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Inflammation",
+ "score": 0.6433449
+ },
+ {
+ "keyword": "Innate Antiviral Responses",
+ "score": 0.6216456
+ }
+ ]
+ },
+ {
+ "query": "neuroimmunology inflammation",
+ "field": "Neuroscience",
+ "rank": 2,
+ "topic_name": "Neuroinflammation and Neurodegeneration Mechanisms",
+ "total_score": 28.159733,
+ "lexical_score": 0.0,
+ "title_vector_score": 20.307617,
+ "description_vector_score": 7.852116,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Neuroinflammation",
+ "score": 0.77968854
+ },
+ {
+ "keyword": "Innate Immunity",
+ "score": 0.65337116
+ }
+ ]
+ },
+ {
+ "query": "neuroimmunology inflammation",
+ "field": "Neuroscience",
+ "rank": 3,
+ "topic_name": "Inflammation biomarkers and pathways",
+ "total_score": 22.504187,
+ "lexical_score": 31.089684000000002,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Inflammatory Diseases",
+ "score": 0.65233487
+ },
+ {
+ "keyword": "Inflammation",
+ "score": 0.643631
+ }
+ ]
+ },
+ {
+ "query": "sleep neural circuits",
+ "field": "Neuroscience",
+ "rank": 1,
+ "topic_name": "Neuroscience of respiration and sleep",
+ "total_score": 56.91771,
+ "lexical_score": 39.4339505,
+ "title_vector_score": 19.274788,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 18.393105,
+ "matched_keywords": [
+ {
+ "keyword": "Neural Circuits",
+ "score": 0.73572415
+ },
+ {
+ "keyword": "Serotonergic Neurons",
+ "score": 0.6028964
+ }
+ ]
+ },
+ {
+ "query": "sleep neural circuits",
+ "field": "Neuroscience",
+ "rank": 2,
+ "topic_name": "Sleep and Wakefulness Research",
+ "total_score": 46.35166,
+ "lexical_score": 49.5691463,
+ "title_vector_score": 17.19902,
+ "description_vector_score": 8.068504,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Sleep",
+ "score": 0.5736122
+ },
+ {
+ "keyword": "Neurons",
+ "score": 0.5536995
+ }
+ ]
+ },
+ {
+ "query": "sleep neural circuits",
+ "field": "Neuroscience",
+ "rank": 3,
+ "topic_name": "Action Observation and Synchronization",
+ "total_score": 38.141304,
+ "lexical_score": 23.296526999999998,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 18.400414,
+ "matched_keywords": [
+ {
+ "keyword": "Neural Circuits",
+ "score": 0.7360166
+ },
+ {
+ "keyword": "Neural Mechanisms",
+ "score": 0.62451935
+ }
+ ]
+ },
+ {
+ "query": "epilepsy seizure mechanisms",
+ "field": "Neuroscience",
+ "rank": 1,
+ "topic_name": "Epilepsy research and treatment",
+ "total_score": 68.13331,
+ "lexical_score": 49.19043,
+ "title_vector_score": 18.308334,
+ "description_vector_score": 7.9768567,
+ "keywords_vector_score": 16.681892,
+ "matched_keywords": [
+ {
+ "keyword": "Seizures",
+ "score": 0.6672757
+ },
+ {
+ "keyword": "Antiepileptic Drugs",
+ "score": 0.62723416
+ }
+ ]
+ },
+ {
+ "query": "epilepsy seizure mechanisms",
+ "field": "Neuroscience",
+ "rank": 2,
+ "topic_name": "Mechanisms of cancer metastasis",
+ "total_score": 33.57719,
+ "lexical_score": 18.277993,
+ "title_vector_score": 18.351822,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Signal Transduction",
+ "score": 0.5049985
+ }
+ ]
+ },
+ {
+ "query": "epilepsy seizure mechanisms",
+ "field": "Neuroscience",
+ "rank": 3,
+ "topic_name": "Receptor Mechanisms and Signaling",
+ "total_score": 32.545124,
+ "lexical_score": 27.8778255,
+ "title_vector_score": 17.319756,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Molecular Mechanisms",
+ "score": 0.58244324
+ },
+ {
+ "keyword": "Signal Transduction",
+ "score": 0.5051257
+ }
+ ]
+ },
+ {
+ "query": "computational neuroscience models",
+ "field": "Neuroscience",
+ "rank": 1,
+ "topic_name": "Statistical and Computational Modeling",
+ "total_score": 37.932922,
+ "lexical_score": 32.0017389,
+ "title_vector_score": 19.428139,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Inductive Modeling",
+ "score": 0.574763
+ },
+ {
+ "keyword": "Interval Models",
+ "score": 0.54985934
+ }
+ ]
+ },
+ {
+ "query": "computational neuroscience models",
+ "field": "Neuroscience",
+ "rank": 2,
+ "topic_name": "Neuroscience and Neural Engineering",
+ "total_score": 37.882484,
+ "lexical_score": 19.36701,
+ "title_vector_score": 18.515472,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Neuronal Networks",
+ "score": 0.59091824
+ },
+ {
+ "keyword": "Neuroprostheses",
+ "score": 0.5549838
+ }
+ ]
+ },
+ {
+ "query": "computational neuroscience models",
+ "field": "Neuroscience",
+ "rank": 3,
+ "topic_name": "Neuroscience and Neuropharmacology Research",
+ "total_score": 37.034286,
+ "lexical_score": 19.36701,
+ "title_vector_score": 17.667274,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Neuronal Circuits",
+ "score": 0.5716095
+ },
+ {
+ "keyword": "Glutamate Receptors",
+ "score": 0.5467949
+ }
+ ]
+ },
+ {
+ "query": "neuropharmacology drugs action",
+ "field": "Neuroscience",
+ "rank": 1,
+ "topic_name": "Neuroscience and Neuropharmacology Research",
+ "total_score": 44.11371,
+ "lexical_score": 25.166224,
+ "title_vector_score": 18.947487,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Neurotransmission",
+ "score": 0.5341428
+ },
+ {
+ "keyword": "Neurological Disorders",
+ "score": 0.5168686
+ }
+ ]
+ },
+ {
+ "query": "neuropharmacology drugs action",
+ "field": "Neuroscience",
+ "rank": 2,
+ "topic_name": "Alkaloids: synthesis and pharmacology",
+ "total_score": 36.420036,
+ "lexical_score": 17.285608,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 19.134426,
+ "matched_keywords": [
+ {
+ "keyword": "Neuropharmacology",
+ "score": 0.76537704
+ },
+ {
+ "keyword": "Pharmacological Effects",
+ "score": 0.6286011
+ }
+ ]
+ },
+ {
+ "query": "neuropharmacology drugs action",
+ "field": "Neuroscience",
+ "rank": 3,
+ "topic_name": "Youth, Drugs, and Violence",
+ "total_score": 23.561312,
+ "lexical_score": 23.561312,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "brain computer interface",
+ "field": "Neuroscience",
+ "rank": 1,
+ "topic_name": "EEG and Brain-Computer Interfaces",
+ "total_score": 89.90575,
+ "lexical_score": 65.8617823,
+ "title_vector_score": 22.296219,
+ "description_vector_score": 8.120003,
+ "keywords_vector_score": 21.26112,
+ "matched_keywords": [
+ {
+ "keyword": "Brain-Computer Interfaces",
+ "score": 0.8504448
+ },
+ {
+ "keyword": "BCI Technology",
+ "score": 0.6538162
+ }
+ ]
+ },
+ {
+ "query": "brain computer interface",
+ "field": "Neuroscience",
+ "rank": 2,
+ "topic_name": "Functional Brain Connectivity Studies",
+ "total_score": 36.72339,
+ "lexical_score": 36.558771300000004,
+ "title_vector_score": 17.356377,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Brain Network Development",
+ "score": 0.5893733
+ },
+ {
+ "keyword": "Brain Network Organization",
+ "score": 0.55869037
+ }
+ ]
+ },
+ {
+ "query": "brain computer interface",
+ "field": "Neuroscience",
+ "rank": 3,
+ "topic_name": "Neural dynamics and brain function",
+ "total_score": 34.08402,
+ "lexical_score": 17.68208,
+ "title_vector_score": 16.40194,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Cortical Networks",
+ "score": 0.5415433
+ },
+ {
+ "keyword": "Neuronal Oscillations",
+ "score": 0.536012
+ }
+ ]
+ },
+ {
+ "query": "operations research optimization",
+ "field": "Decision Sciences",
+ "rank": 1,
+ "topic_name": "Operations Management Techniques",
+ "total_score": 44.91205,
+ "lexical_score": 45.7186619,
+ "title_vector_score": 18.869095,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Operations Management",
+ "score": 0.62911606
+ }
+ ]
+ },
+ {
+ "query": "operations research optimization",
+ "field": "Decision Sciences",
+ "rank": 2,
+ "topic_name": "Advanced Optimization Algorithms Research",
+ "total_score": 41.828453,
+ "lexical_score": 40.4309694,
+ "title_vector_score": 19.93721,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Global Optimization",
+ "score": 0.58868027
+ },
+ {
+ "keyword": "Convex Optimization",
+ "score": 0.5492935
+ }
+ ]
+ },
+ {
+ "query": "operations research optimization",
+ "field": "Decision Sciences",
+ "rank": 3,
+ "topic_name": "Metaheuristic Optimization Algorithms Research",
+ "total_score": 41.62742,
+ "lexical_score": 40.9934527,
+ "title_vector_score": 19.736176,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Optimization Applications",
+ "score": 0.608167
+ },
+ {
+ "keyword": "Ant Colony Optimization",
+ "score": 0.5925458
+ }
+ ]
+ },
+ {
+ "query": "decision analysis models",
+ "field": "Decision Sciences",
+ "rank": 1,
+ "topic_name": "Advanced Decision-Making Techniques",
+ "total_score": 37.418236,
+ "lexical_score": 22.510361,
+ "title_vector_score": 18.051224,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Cloud Model",
+ "score": 0.52035266
+ },
+ {
+ "keyword": "GIS Data Mining",
+ "score": 0.51072055
+ }
+ ]
+ },
+ {
+ "query": "decision analysis models",
+ "field": "Decision Sciences",
+ "rank": 2,
+ "topic_name": "Multi-Criteria Decision Making",
+ "total_score": 36.859764,
+ "lexical_score": 44.1996028,
+ "title_vector_score": 17.492752,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "GIS-based Decision Analysis",
+ "score": 0.5725314
+ },
+ {
+ "keyword": "Environmental Decision Making",
+ "score": 0.533933
+ }
+ ]
+ },
+ {
+ "query": "decision analysis models",
+ "field": "Decision Sciences",
+ "rank": 3,
+ "topic_name": "Rough Sets and Fuzzy Logic",
+ "total_score": 30.115221,
+ "lexical_score": 18.581158,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 18.118923,
+ "matched_keywords": [
+ {
+ "keyword": "Decision Analysis",
+ "score": 0.7247569
+ }
+ ]
+ },
+ {
+ "query": "multi criteria decision making",
+ "field": "Decision Sciences",
+ "rank": 1,
+ "topic_name": "Multi-Criteria Decision Making",
+ "total_score": 111.508484,
+ "lexical_score": 132.7763889,
+ "title_vector_score": 25.150948,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Environmental Decision Making",
+ "score": 0.6011925
+ },
+ {
+ "keyword": "Group Decision Making",
+ "score": 0.5684433
+ }
+ ]
+ },
+ {
+ "query": "multi criteria decision making",
+ "field": "Decision Sciences",
+ "rank": 2,
+ "topic_name": "Fuzzy and Soft Set Theory",
+ "total_score": 61.325157,
+ "lexical_score": 62.04687559999999,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 21.019203,
+ "matched_keywords": [
+ {
+ "keyword": "Multi-criteria Decision Making",
+ "score": 0.84076816
+ },
+ {
+ "keyword": "Decision Making",
+ "score": 0.56691104
+ }
+ ]
+ },
+ {
+ "query": "multi criteria decision making",
+ "field": "Decision Sciences",
+ "rank": 3,
+ "topic_name": "Advanced Decision-Making Techniques",
+ "total_score": 58.31357,
+ "lexical_score": 39.476704999999995,
+ "title_vector_score": 18.83686,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "GIS Data Mining",
+ "score": 0.51632184
+ }
+ ]
+ },
+ {
+ "query": "game theory strategies",
+ "field": "Decision Sciences",
+ "rank": 1,
+ "topic_name": "Game Theory and Applications",
+ "total_score": 57.68966,
+ "lexical_score": 60.82520360000001,
+ "title_vector_score": 21.004562,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Game Theory",
+ "score": 0.7654724
+ },
+ {
+ "keyword": "Coordination Games",
+ "score": 0.5432091
+ }
+ ]
+ },
+ {
+ "query": "game theory strategies",
+ "field": "Decision Sciences",
+ "rank": 2,
+ "topic_name": "Game Theory and Voting Systems",
+ "total_score": 52.40626,
+ "lexical_score": 63.6153666,
+ "title_vector_score": 18.912773,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Game Theory",
+ "score": 0.765269
+ },
+ {
+ "keyword": "Matching Theory",
+ "score": 0.5617612
+ }
+ ]
+ },
+ {
+ "query": "game theory strategies",
+ "field": "Decision Sciences",
+ "rank": 3,
+ "topic_name": "Educational Technology and Optimization",
+ "total_score": 37.877296,
+ "lexical_score": 28.7325707,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 19.157314,
+ "matched_keywords": [
+ {
+ "keyword": "Game Theory",
+ "score": 0.7662926
+ }
+ ]
+ },
+ {
+ "query": "risk analysis management",
+ "field": "Decision Sciences",
+ "rank": 1,
+ "topic_name": "Risk and Safety Analysis",
+ "total_score": 49.3171,
+ "lexical_score": 48.224034100000004,
+ "title_vector_score": 22.064095,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Quantitative Risk Assessment",
+ "score": 0.6693929
+ },
+ {
+ "keyword": "Human Reliability Analysis",
+ "score": 0.60855484
+ }
+ ]
+ },
+ {
+ "query": "risk analysis management",
+ "field": "Decision Sciences",
+ "rank": 2,
+ "topic_name": "Safety and Risk Management",
+ "total_score": 48.716297,
+ "lexical_score": 43.421358,
+ "title_vector_score": 21.238785,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Risk Assessment",
+ "score": 0.7475942
+ },
+ {
+ "keyword": "Emergency Management",
+ "score": 0.5882797
+ }
+ ]
+ },
+ {
+ "query": "risk analysis management",
+ "field": "Decision Sciences",
+ "rank": 3,
+ "topic_name": "Risk Perception and Management",
+ "total_score": 47.13339,
+ "lexical_score": 41.40854,
+ "title_vector_score": 19.655876,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Risk Perception",
+ "score": 0.6156502
+ },
+ {
+ "keyword": "Environmental Risk",
+ "score": 0.57647324
+ }
+ ]
+ },
+ {
+ "query": "linear programming applications",
+ "field": "Decision Sciences",
+ "rank": 1,
+ "topic_name": "Artificial Intelligence Applications",
+ "total_score": 30.706448,
+ "lexical_score": 11.420596,
+ "title_vector_score": 19.28585,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "linear programming applications",
+ "field": "Decision Sciences",
+ "rank": 2,
+ "topic_name": "Augmented Reality Applications",
+ "total_score": 29.815525,
+ "lexical_score": 21.800010999999998,
+ "title_vector_score": 18.394928,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Applications",
+ "score": 0.6418762
+ }
+ ]
+ },
+ {
+ "query": "linear programming applications",
+ "field": "Decision Sciences",
+ "rank": 3,
+ "topic_name": "Complexity and Algorithms in Graphs",
+ "total_score": 28.805237,
+ "lexical_score": 45.348588400000004,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Linear Programming",
+ "score": 0.7022502
+ },
+ {
+ "keyword": "Algorithmic Applications",
+ "score": 0.6902148
+ }
+ ]
+ },
+ {
+ "query": "forecasting methods business",
+ "field": "Decision Sciences",
+ "rank": 1,
+ "topic_name": "Stock Market Forecasting Methods",
+ "total_score": 70.377266,
+ "lexical_score": 55.06493570000001,
+ "title_vector_score": 21.05835,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 16.436798,
+ "matched_keywords": [
+ {
+ "keyword": "Forecasting Models",
+ "score": 0.65747195
+ },
+ {
+ "keyword": "Time Series Forecasting",
+ "score": 0.6005821
+ }
+ ]
+ },
+ {
+ "query": "forecasting methods business",
+ "field": "Decision Sciences",
+ "rank": 2,
+ "topic_name": "Forecasting Techniques and Applications",
+ "total_score": 39.275,
+ "lexical_score": 46.431188,
+ "title_vector_score": 19.165306,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Forecasting",
+ "score": 0.6198082
+ },
+ {
+ "keyword": "Demand Forecasting",
+ "score": 0.5712598
+ }
+ ]
+ },
+ {
+ "query": "forecasting methods business",
+ "field": "Decision Sciences",
+ "rank": 3,
+ "topic_name": "Innovation Diffusion and Forecasting",
+ "total_score": 36.62263,
+ "lexical_score": 35.313250999999994,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 16.512936,
+ "matched_keywords": [
+ {
+ "keyword": "Forecasting Models",
+ "score": 0.6605174
+ }
+ ]
+ },
+ {
+ "query": "supply chain optimization",
+ "field": "Decision Sciences",
+ "rank": 1,
+ "topic_name": "Sustainable Supply Chain Management",
+ "total_score": 61.12459,
+ "lexical_score": 77.239848,
+ "title_vector_score": 19.481163,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Supply Chain Network Design",
+ "score": 0.66170627
+ },
+ {
+ "keyword": "Sustainable Supply Chain Management",
+ "score": 0.6532567
+ }
+ ]
+ },
+ {
+ "query": "supply chain optimization",
+ "field": "Decision Sciences",
+ "rank": 2,
+ "topic_name": "Food Supply Chain Traceability",
+ "total_score": 41.64343,
+ "lexical_score": 75.6360402,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Supply Chain Transparency",
+ "score": 0.6914037
+ },
+ {
+ "keyword": "Food Supply Chain",
+ "score": 0.64615506
+ }
+ ]
+ },
+ {
+ "query": "supply chain optimization",
+ "field": "Decision Sciences",
+ "rank": 3,
+ "topic_name": "Supply Chain and Inventory Management",
+ "total_score": 38.020447,
+ "lexical_score": 63.519496000000004,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Supply Chain Coordination",
+ "score": 0.7166888
+ },
+ {
+ "keyword": "Dual-Channel Supply Chains",
+ "score": 0.5904986
+ }
+ ]
+ },
+ {
+ "query": "stochastic modeling systems",
+ "field": "Decision Sciences",
+ "rank": 1,
+ "topic_name": "Reliability and Maintenance Optimization",
+ "total_score": 43.70562,
+ "lexical_score": 34.5891289,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 21.102333,
+ "matched_keywords": [
+ {
+ "keyword": "Stochastic Modeling",
+ "score": 0.8440933
+ },
+ {
+ "keyword": "Prognostic Models",
+ "score": 0.70790863
+ }
+ ]
+ },
+ {
+ "query": "stochastic modeling systems",
+ "field": "Decision Sciences",
+ "rank": 2,
+ "topic_name": "stochastic dynamics and bifurcation",
+ "total_score": 41.041183,
+ "lexical_score": 37.623831100000004,
+ "title_vector_score": 19.957047,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Stochastic Resonance",
+ "score": 0.6316274
+ },
+ {
+ "keyword": "Noise-induced Dynamics",
+ "score": 0.5331637
+ }
+ ]
+ },
+ {
+ "query": "stochastic modeling systems",
+ "field": "Decision Sciences",
+ "rank": 3,
+ "topic_name": "Geological Modeling and Analysis",
+ "total_score": 41.037304,
+ "lexical_score": 45.9875049,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 21.088345,
+ "matched_keywords": [
+ {
+ "keyword": "Stochastic Modeling",
+ "score": 0.8435338
+ },
+ {
+ "keyword": "Geological Modeling",
+ "score": 0.58334607
+ }
+ ]
+ },
+ {
+ "query": "queuing theory performance",
+ "field": "Decision Sciences",
+ "rank": 1,
+ "topic_name": "Advanced Queuing Theory Analysis",
+ "total_score": 55.234455,
+ "lexical_score": 57.653091,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 15.887324,
+ "matched_keywords": [
+ {
+ "keyword": "Queueing Theory",
+ "score": 0.635493
+ },
+ {
+ "keyword": "Performance Analysis",
+ "score": 0.55611545
+ }
+ ]
+ },
+ {
+ "query": "queuing theory performance",
+ "field": "Decision Sciences",
+ "rank": 2,
+ "topic_name": "Team Dynamics and Performance",
+ "total_score": 31.072401,
+ "lexical_score": 17.7727482,
+ "title_vector_score": 16.101913,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "queuing theory performance",
+ "field": "Decision Sciences",
+ "rank": 3,
+ "topic_name": "Seismic Performance and Analysis",
+ "total_score": 30.611965,
+ "lexical_score": 24.187808699999998,
+ "title_vector_score": 15.641479,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Performance-Based Design",
+ "score": 0.51142627
+ }
+ ]
+ },
+ {
+ "query": "decision tree classification",
+ "field": "Decision Sciences",
+ "rank": 1,
+ "topic_name": "Imbalanced Data Classification Techniques",
+ "total_score": 36.124313,
+ "lexical_score": 32.3118605,
+ "title_vector_score": 16.407852,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Classification",
+ "score": 0.5388603
+ }
+ ]
+ },
+ {
+ "query": "decision tree classification",
+ "field": "Decision Sciences",
+ "rank": 2,
+ "topic_name": "Advanced Decision-Making Techniques",
+ "total_score": 35.572876,
+ "lexical_score": 19.36701,
+ "title_vector_score": 16.205864,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "GIS Data Mining",
+ "score": 0.52898026
+ }
+ ]
+ },
+ {
+ "query": "decision tree classification",
+ "field": "Decision Sciences",
+ "rank": 3,
+ "topic_name": "Decision Support System Applications",
+ "total_score": 35.51928,
+ "lexical_score": 31.144669,
+ "title_vector_score": 16.152267,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Decision Support System",
+ "score": 0.6216138
+ }
+ ]
+ },
+ {
+ "query": "predictive analytics framework",
+ "field": "Decision Sciences",
+ "rank": 1,
+ "topic_name": "Online Learning and Analytics",
+ "total_score": 56.13028,
+ "lexical_score": 53.414531700000005,
+ "title_vector_score": 16.100197,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 17.525894,
+ "matched_keywords": [
+ {
+ "keyword": "Predictive Analysis",
+ "score": 0.7010358
+ },
+ {
+ "keyword": "Learning Analytics",
+ "score": 0.6304448
+ }
+ ]
+ },
+ {
+ "query": "predictive analytics framework",
+ "field": "Decision Sciences",
+ "rank": 2,
+ "topic_name": "AI and HR Technologies",
+ "total_score": 44.57816,
+ "lexical_score": 30.977037000000003,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 19.619846,
+ "matched_keywords": [
+ {
+ "keyword": "Predictive Analytics",
+ "score": 0.78479385
+ },
+ {
+ "keyword": "HR Analytics",
+ "score": 0.5935758
+ }
+ ]
+ },
+ {
+ "query": "predictive analytics framework",
+ "field": "Decision Sciences",
+ "rank": 3,
+ "topic_name": "Big Data and Business Intelligence",
+ "total_score": 44.575615,
+ "lexical_score": 36.3375469,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 19.617302,
+ "matched_keywords": [
+ {
+ "keyword": "Predictive Analytics",
+ "score": 0.7846921
+ },
+ {
+ "keyword": "Analytics",
+ "score": 0.63243484
+ }
+ ]
+ },
+ {
+ "query": "statistical decision theory",
+ "field": "Decision Sciences",
+ "rank": 1,
+ "topic_name": "Probability and Statistical Research",
+ "total_score": 35.763855,
+ "lexical_score": 41.5299608,
+ "title_vector_score": 18.131332,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Statistical Modeling",
+ "score": 0.6842893
+ },
+ {
+ "keyword": "Probability Theory",
+ "score": 0.6052615
+ }
+ ]
+ },
+ {
+ "query": "statistical decision theory",
+ "field": "Decision Sciences",
+ "rank": 2,
+ "topic_name": "Statistical and Computational Modeling",
+ "total_score": 35.608597,
+ "lexical_score": 17.632524,
+ "title_vector_score": 17.976074,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Machine Learning",
+ "score": 0.55445606
+ },
+ {
+ "keyword": "Data Mining",
+ "score": 0.5353508
+ }
+ ]
+ },
+ {
+ "query": "statistical decision theory",
+ "field": "Decision Sciences",
+ "rank": 3,
+ "topic_name": "Data Analysis with R",
+ "total_score": 31.757935,
+ "lexical_score": 19.949755,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 19.20039,
+ "matched_keywords": [
+ {
+ "keyword": "statistical modeling",
+ "score": 0.76801556
+ },
+ {
+ "keyword": "statistical analysis",
+ "score": 0.76172763
+ }
+ ]
+ },
+ {
+ "query": "heuristic search optimization",
+ "field": "Decision Sciences",
+ "rank": 1,
+ "topic_name": "Optimization and Search Problems",
+ "total_score": 56.220913,
+ "lexical_score": 53.4714004,
+ "title_vector_score": 19.598656,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Rendezvous Search",
+ "score": 0.56537247
+ },
+ {
+ "keyword": "Stochastic Matching",
+ "score": 0.52575684
+ }
+ ]
+ },
+ {
+ "query": "heuristic search optimization",
+ "field": "Decision Sciences",
+ "rank": 2,
+ "topic_name": "AI-based Problem Solving and Planning",
+ "total_score": 44.161575,
+ "lexical_score": 35.3028216,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 21.97892,
+ "matched_keywords": [
+ {
+ "keyword": "Heuristic Search",
+ "score": 0.87915677
+ }
+ ]
+ },
+ {
+ "query": "heuristic search optimization",
+ "field": "Decision Sciences",
+ "rank": 3,
+ "topic_name": "Military Defense Systems Analysis",
+ "total_score": 41.32099,
+ "lexical_score": 34.0214523,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 18.330162,
+ "matched_keywords": [
+ {
+ "keyword": "Heuristic Algorithms",
+ "score": 0.73320645
+ },
+ {
+ "keyword": "Ant Colony Optimization",
+ "score": 0.56438065
+ }
+ ]
+ },
+ {
+ "query": "inventory control models",
+ "field": "Decision Sciences",
+ "rank": 1,
+ "topic_name": "Supply Chain and Inventory Management",
+ "total_score": 40.49984,
+ "lexical_score": 40.3829947,
+ "title_vector_score": 17.523079,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Inventory Management",
+ "score": 0.67452365
+ },
+ {
+ "keyword": "Supply Chain Coordination",
+ "score": 0.50903577
+ }
+ ]
+ },
+ {
+ "query": "inventory control models",
+ "field": "Decision Sciences",
+ "rank": 2,
+ "topic_name": "Wind Turbine Control Systems",
+ "total_score": 29.651083,
+ "lexical_score": 22.4076663,
+ "title_vector_score": 16.490822,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "inventory control models",
+ "field": "Decision Sciences",
+ "rank": 3,
+ "topic_name": "IoT-based Control Systems",
+ "total_score": 29.58299,
+ "lexical_score": 13.160261,
+ "title_vector_score": 16.42273,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "simulation optimization methods",
+ "field": "Decision Sciences",
+ "rank": 1,
+ "topic_name": "Simulation Techniques and Applications",
+ "total_score": 59.267654,
+ "lexical_score": 48.162834000000004,
+ "title_vector_score": 19.809036,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 20.098274,
+ "matched_keywords": [
+ {
+ "keyword": "Simulation Optimization",
+ "score": 0.80393094
+ },
+ {
+ "keyword": "Parallel Simulation Systems",
+ "score": 0.61147946
+ }
+ ]
+ },
+ {
+ "query": "simulation optimization methods",
+ "field": "Decision Sciences",
+ "rank": 2,
+ "topic_name": "Modeling, Simulation, and Optimization",
+ "total_score": 52.422737,
+ "lexical_score": 53.764060799999996,
+ "title_vector_score": 19.799881,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Simulation Optimization Hybrids",
+ "score": 0.69673157
+ },
+ {
+ "keyword": "Ontology-Based Simulations",
+ "score": 0.5681636
+ }
+ ]
+ },
+ {
+ "query": "simulation optimization methods",
+ "field": "Decision Sciences",
+ "rank": 3,
+ "topic_name": "Assembly Line Balancing Optimization",
+ "total_score": 36.024845,
+ "lexical_score": 39.3019859,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 18.588448,
+ "matched_keywords": [
+ {
+ "keyword": "Optimization Methods",
+ "score": 0.7435379
+ },
+ {
+ "keyword": "Ant Colony Optimization",
+ "score": 0.60543317
+ }
+ ]
+ },
+ {
+ "query": "behavioral decision making",
+ "field": "Decision Sciences",
+ "rank": 1,
+ "topic_name": "Decision-Making and Behavioral Economics",
+ "total_score": 73.98883,
+ "lexical_score": 90.10470570000001,
+ "title_vector_score": 19.586449,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Decision Making",
+ "score": 0.6811231
+ },
+ {
+ "keyword": "Cognitive Reflection",
+ "score": 0.5517095
+ }
+ ]
+ },
+ {
+ "query": "behavioral decision making",
+ "field": "Decision Sciences",
+ "rank": 2,
+ "topic_name": "Multi-Criteria Decision Making",
+ "total_score": 58.34771,
+ "lexical_score": 77.0226079,
+ "title_vector_score": 18.871002,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Environmental Decision Making",
+ "score": 0.69436646
+ },
+ {
+ "keyword": "Group Decision Making",
+ "score": 0.6522458
+ }
+ ]
+ },
+ {
+ "query": "behavioral decision making",
+ "field": "Decision Sciences",
+ "rank": 3,
+ "topic_name": "Leadership, Behavior, and Decision-Making Studies",
+ "total_score": 52.63144,
+ "lexical_score": 58.256556,
+ "title_vector_score": 19.473915,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Decision Making",
+ "score": 0.67851
+ },
+ {
+ "keyword": "Risk Management",
+ "score": 0.5461909
+ }
+ ]
+ },
+ {
+ "query": "utility theory choices",
+ "field": "Decision Sciences",
+ "rank": 1,
+ "topic_name": "Health Systems, Economic Evaluations, Quality of Life",
+ "total_score": 32.265926,
+ "lexical_score": 24.037194,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 14.660104,
+ "matched_keywords": [
+ {
+ "keyword": "Health Utility Measures",
+ "score": 0.58640414
+ },
+ {
+ "keyword": "Utility Index Scores",
+ "score": 0.5768611
+ }
+ ]
+ },
+ {
+ "query": "utility theory choices",
+ "field": "Decision Sciences",
+ "rank": 2,
+ "topic_name": "Auction Theory and Applications",
+ "total_score": 29.803505,
+ "lexical_score": 23.8744229,
+ "title_vector_score": 15.622596,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Auction Theory",
+ "score": 0.5524661
+ }
+ ]
+ },
+ {
+ "query": "utility theory choices",
+ "field": "Decision Sciences",
+ "rank": 3,
+ "topic_name": "Power Systems and Technologies",
+ "total_score": 14.584484,
+ "lexical_score": 21.330081,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "data driven decision support",
+ "field": "Decision Sciences",
+ "rank": 1,
+ "topic_name": "Decision Support System Applications",
+ "total_score": 57.276352,
+ "lexical_score": 62.471836999999994,
+ "title_vector_score": 17.799644,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Decision Support System",
+ "score": 0.71471786
+ },
+ {
+ "keyword": "Database Management",
+ "score": 0.5483017
+ }
+ ]
+ },
+ {
+ "query": "data driven decision support",
+ "field": "Decision Sciences",
+ "rank": 2,
+ "topic_name": "Data-Driven Disease Surveillance",
+ "total_score": 56.662178,
+ "lexical_score": 41.3783004,
+ "title_vector_score": 18.130379,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Public Health Informatics",
+ "score": 0.5039241
+ }
+ ]
+ },
+ {
+ "query": "data driven decision support",
+ "field": "Decision Sciences",
+ "rank": 3,
+ "topic_name": "Cognitive Science and Mapping",
+ "total_score": 37.618393,
+ "lexical_score": 28.4858929,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 18.479252,
+ "matched_keywords": [
+ {
+ "keyword": "Decision Support",
+ "score": 0.7391701
+ },
+ {
+ "keyword": "Healthcare Decision Making",
+ "score": 0.55218
+ }
+ ]
+ },
+ {
+ "query": "dynamic programming problems",
+ "field": "Decision Sciences",
+ "rank": 1,
+ "topic_name": "Adaptive Dynamic Programming Control",
+ "total_score": 63.135384,
+ "lexical_score": 74.804451,
+ "title_vector_score": 18.916588,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Adaptive Dynamic Programming",
+ "score": 0.6857707
+ },
+ {
+ "keyword": "Continuous-Time Systems",
+ "score": 0.5263672
+ }
+ ]
+ },
+ {
+ "query": "dynamic programming problems",
+ "field": "Decision Sciences",
+ "rank": 2,
+ "topic_name": "Optimization and Packing Problems",
+ "total_score": 40.06067,
+ "lexical_score": 26.867383,
+ "title_vector_score": 19.50138,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Heuristic Algorithms",
+ "score": 0.5627403
+ },
+ {
+ "keyword": "Metaheuristic Algorithms",
+ "score": 0.5546277
+ }
+ ]
+ },
+ {
+ "query": "dynamic programming problems",
+ "field": "Decision Sciences",
+ "rank": 3,
+ "topic_name": "Optimization and Search Problems",
+ "total_score": 39.540916,
+ "lexical_score": 20.55929,
+ "title_vector_score": 18.981628,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "AdWords Problem",
+ "score": 0.5843633
+ },
+ {
+ "keyword": "Online Algorithms",
+ "score": 0.5336151
+ }
+ ]
+ },
+ {
+ "query": "plate tectonics geology",
+ "field": "Earth and Planetary Sciences",
+ "rank": 1,
+ "topic_name": "Geological and Geochemical Analysis",
+ "total_score": 70.976685,
+ "lexical_score": 47.1954483,
+ "title_vector_score": 17.868118,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 20.724201,
+ "matched_keywords": [
+ {
+ "keyword": "Plate Tectonics",
+ "score": 0.82896805
+ },
+ {
+ "keyword": "Tectonics",
+ "score": 0.686896
+ }
+ ]
+ },
+ {
+ "query": "plate tectonics geology",
+ "field": "Earth and Planetary Sciences",
+ "rank": 2,
+ "topic_name": "Geological and Geophysical Studies",
+ "total_score": 47.579636,
+ "lexical_score": 33.516977000000004,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 20.769978,
+ "matched_keywords": [
+ {
+ "keyword": "Plate Tectonics",
+ "score": 0.8307991
+ },
+ {
+ "keyword": "Tectonic Model",
+ "score": 0.6272786
+ }
+ ]
+ },
+ {
+ "query": "plate tectonics geology",
+ "field": "Earth and Planetary Sciences",
+ "rank": 3,
+ "topic_name": "High-pressure geophysics and materials",
+ "total_score": 45.89087,
+ "lexical_score": 39.5018422,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 20.717686,
+ "matched_keywords": [
+ {
+ "keyword": "Plate Tectonics",
+ "score": 0.8287074
+ },
+ {
+ "keyword": "Seismic Imaging",
+ "score": 0.5589256
+ }
+ ]
+ },
+ {
+ "query": "seismology earthquake prediction",
+ "field": "Earth and Planetary Sciences",
+ "rank": 1,
+ "topic_name": "Seismology and Earthquake Studies",
+ "total_score": 83.45585,
+ "lexical_score": 87.44417539999999,
+ "title_vector_score": 19.688492,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 17.516994,
+ "matched_keywords": [
+ {
+ "keyword": "Real-Time Seismology",
+ "score": 0.7006798
+ },
+ {
+ "keyword": "Earthquake Detection",
+ "score": 0.6881358
+ }
+ ]
+ },
+ {
+ "query": "seismology earthquake prediction",
+ "field": "Earth and Planetary Sciences",
+ "rank": 2,
+ "topic_name": "Earthquake Detection and Analysis",
+ "total_score": 61.6438,
+ "lexical_score": 58.74820150000001,
+ "title_vector_score": 19.047432,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 19.329136,
+ "matched_keywords": [
+ {
+ "keyword": "Earthquake Prediction Models",
+ "score": 0.7731654
+ },
+ {
+ "keyword": "Seismic Electromagnetics",
+ "score": 0.6900113
+ }
+ ]
+ },
+ {
+ "query": "seismology earthquake prediction",
+ "field": "Earth and Planetary Sciences",
+ "rank": 3,
+ "topic_name": "earthquake and tectonic studies",
+ "total_score": 39.87713,
+ "lexical_score": 27.374866,
+ "title_vector_score": 18.792992,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Seismic Deformation",
+ "score": 0.633414
+ },
+ {
+ "keyword": "Seismic Hazard",
+ "score": 0.5945994
+ }
+ ]
+ },
+ {
+ "query": "volcanology eruption monitoring",
+ "field": "Earth and Planetary Sciences",
+ "rank": 1,
+ "topic_name": "Structural Health Monitoring Techniques",
+ "total_score": 35.29563,
+ "lexical_score": 22.481875199999998,
+ "title_vector_score": 16.790848,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Structural Damage Detection",
+ "score": 0.5091693
+ }
+ ]
+ },
+ {
+ "query": "volcanology eruption monitoring",
+ "field": "Earth and Planetary Sciences",
+ "rank": 2,
+ "topic_name": "Geophysics and Sensor Technology",
+ "total_score": 24.021196,
+ "lexical_score": 10.8825227,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 17.013615,
+ "matched_keywords": [
+ {
+ "keyword": "Earth Rotation Monitoring",
+ "score": 0.68054456
+ },
+ {
+ "keyword": "Electrochemical Seismometers",
+ "score": 0.5657603
+ }
+ ]
+ },
+ {
+ "query": "volcanology eruption monitoring",
+ "field": "Earth and Planetary Sciences",
+ "rank": 3,
+ "topic_name": "Fire Detection and Safety Systems",
+ "total_score": 23.062666,
+ "lexical_score": 10.045167000000001,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 16.186935,
+ "matched_keywords": [
+ {
+ "keyword": "Forest Fire Monitoring",
+ "score": 0.64747745
+ },
+ {
+ "keyword": "Fire Detection",
+ "score": 0.5460383
+ }
+ ]
+ },
+ {
+ "query": "paleoclimatology proxy data",
+ "field": "Earth and Planetary Sciences",
+ "rank": 1,
+ "topic_name": "Geology and Paleoclimatology Research",
+ "total_score": 59.97808,
+ "lexical_score": 49.152299,
+ "title_vector_score": 18.443565,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 16.368294,
+ "matched_keywords": [
+ {
+ "keyword": "Paleoclimatology",
+ "score": 0.65473175
+ },
+ {
+ "keyword": "Glacial Cycles",
+ "score": 0.54991657
+ }
+ ]
+ },
+ {
+ "query": "paleoclimatology proxy data",
+ "field": "Earth and Planetary Sciences",
+ "rank": 2,
+ "topic_name": "Tree-ring climate responses",
+ "total_score": 31.521822,
+ "lexical_score": 15.153528,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 16.368294,
+ "matched_keywords": [
+ {
+ "keyword": "Paleoclimatology",
+ "score": 0.65473175
+ },
+ {
+ "keyword": "Precipitation Variability",
+ "score": 0.55691653
+ }
+ ]
+ },
+ {
+ "query": "paleoclimatology proxy data",
+ "field": "Earth and Planetary Sciences",
+ "rank": 3,
+ "topic_name": "Geomagnetism and Paleomagnetism Studies",
+ "total_score": 22.965862,
+ "lexical_score": 9.106414000000001,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 16.891384,
+ "matched_keywords": [
+ {
+ "keyword": "Paleomagnetic Data",
+ "score": 0.67565536
+ }
+ ]
+ },
+ {
+ "query": "planetary geology mars",
+ "field": "Earth and Planetary Sciences",
+ "rank": 1,
+ "topic_name": "Planetary Science and Exploration",
+ "total_score": 71.46298,
+ "lexical_score": 77.11862430000001,
+ "title_vector_score": 18.752937,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 16.782665,
+ "matched_keywords": [
+ {
+ "keyword": "Martian Minerals",
+ "score": 0.6713066
+ },
+ {
+ "keyword": "Martian Surface",
+ "score": 0.6443812
+ }
+ ]
+ },
+ {
+ "query": "planetary geology mars",
+ "field": "Earth and Planetary Sciences",
+ "rank": 2,
+ "topic_name": "Astro and Planetary Science",
+ "total_score": 56.64291,
+ "lexical_score": 39.916563,
+ "title_vector_score": 18.423538,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 15.715186,
+ "matched_keywords": [
+ {
+ "keyword": "Planetary Chronology",
+ "score": 0.62860745
+ },
+ {
+ "keyword": "Terrestrial Planets",
+ "score": 0.59314346
+ }
+ ]
+ },
+ {
+ "query": "planetary geology mars",
+ "field": "Earth and Planetary Sciences",
+ "rank": 3,
+ "topic_name": "Space Science and Extraterrestrial Life",
+ "total_score": 30.29942,
+ "lexical_score": 19.786231,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 17.618721,
+ "matched_keywords": [
+ {
+ "keyword": "Planetary Biology",
+ "score": 0.7047488
+ },
+ {
+ "keyword": "Astrobiology",
+ "score": 0.5223935
+ }
+ ]
+ },
+ {
+ "query": "mineralogy crystal structures",
+ "field": "Earth and Planetary Sciences",
+ "rank": 1,
+ "topic_name": "Crystal Structures and Properties",
+ "total_score": 59.83674,
+ "lexical_score": 71.8490727,
+ "title_vector_score": 19.985847,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Inorganic Crystal Structures",
+ "score": 0.7521718
+ },
+ {
+ "keyword": "Crystal Growth",
+ "score": 0.61919147
+ }
+ ]
+ },
+ {
+ "query": "mineralogy crystal structures",
+ "field": "Earth and Planetary Sciences",
+ "rank": 2,
+ "topic_name": "Crystal structures of chemical compounds",
+ "total_score": 58.106922,
+ "lexical_score": 59.753926,
+ "title_vector_score": 21.72306,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "X-Ray Crystallography",
+ "score": 0.6717262
+ },
+ {
+ "keyword": "Crystal Structure Refinement",
+ "score": 0.66207504
+ }
+ ]
+ },
+ {
+ "query": "mineralogy crystal structures",
+ "field": "Earth and Planetary Sciences",
+ "rank": 3,
+ "topic_name": "Quasicrystal Structures and Properties",
+ "total_score": 38.6788,
+ "lexical_score": 41.751819499999996,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 19.626839,
+ "matched_keywords": [
+ {
+ "keyword": "Crystal Structures",
+ "score": 0.7850736
+ },
+ {
+ "keyword": "Metallic Alloys",
+ "score": 0.5267741
+ }
+ ]
+ },
+ {
+ "query": "sedimentology deposition environments",
+ "field": "Earth and Planetary Sciences",
+ "rank": 1,
+ "topic_name": "Geological formations and processes",
+ "total_score": 37.738163,
+ "lexical_score": 17.175191599999998,
+ "title_vector_score": 0.0,
+ "description_vector_score": 7.9214473,
+ "keywords_vector_score": 18.58813,
+ "matched_keywords": [
+ {
+ "keyword": "Sedimentary Deposition",
+ "score": 0.7435252
+ },
+ {
+ "keyword": "Subaqueous Sediment Density Flows",
+ "score": 0.59200543
+ }
+ ]
+ },
+ {
+ "query": "sedimentology deposition environments",
+ "field": "Earth and Planetary Sciences",
+ "rank": 2,
+ "topic_name": "Geophysical Methods and Applications",
+ "total_score": 31.21127,
+ "lexical_score": 22.969592,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 15.993817,
+ "matched_keywords": [
+ {
+ "keyword": "Sedimentology",
+ "score": 0.6397527
+ },
+ {
+ "keyword": "Hydrogeological Studies",
+ "score": 0.50884503
+ }
+ ]
+ },
+ {
+ "query": "sedimentology deposition environments",
+ "field": "Earth and Planetary Sciences",
+ "rank": 3,
+ "topic_name": "Impact of Education Environments",
+ "total_score": 23.561312,
+ "lexical_score": 23.561312,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "stratigraphy rock layers",
+ "field": "Earth and Planetary Sciences",
+ "rank": 1,
+ "topic_name": "Geological formations and processes",
+ "total_score": 48.06381,
+ "lexical_score": 22.6973591,
+ "title_vector_score": 16.57093,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 16.65408,
+ "matched_keywords": [
+ {
+ "keyword": "Sequence Stratigraphy",
+ "score": 0.66616315
+ },
+ {
+ "keyword": "Sedimentary Deposition",
+ "score": 0.525795
+ }
+ ]
+ },
+ {
+ "query": "stratigraphy rock layers",
+ "field": "Earth and Planetary Sciences",
+ "rank": 2,
+ "topic_name": "Paleontology and Stratigraphy of Fossils",
+ "total_score": 40.59311,
+ "lexical_score": 22.976759,
+ "title_vector_score": 17.616348,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "stratigraphy rock layers",
+ "field": "Earth and Planetary Sciences",
+ "rank": 3,
+ "topic_name": "Rock Mechanics and Modeling",
+ "total_score": 39.419777,
+ "lexical_score": 41.722090300000005,
+ "title_vector_score": 16.915588,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Rock Mechanics",
+ "score": 0.5753288
+ },
+ {
+ "keyword": "Geomechanics",
+ "score": 0.51026917
+ }
+ ]
+ },
+ {
+ "query": "geomorphology landscape evolution",
+ "field": "Earth and Planetary Sciences",
+ "rank": 1,
+ "topic_name": "Botany and Geology in Latin America and Caribbean",
+ "total_score": 44.420322,
+ "lexical_score": 33.662169000000006,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 18.885834,
+ "matched_keywords": [
+ {
+ "keyword": "Geomorphology",
+ "score": 0.7554334
+ },
+ {
+ "keyword": "Evolution",
+ "score": 0.50719833
+ }
+ ]
+ },
+ {
+ "query": "geomorphology landscape evolution",
+ "field": "Earth and Planetary Sciences",
+ "rank": 2,
+ "topic_name": "Evolution and Paleontology Studies",
+ "total_score": 35.5847,
+ "lexical_score": 34.947143700000005,
+ "title_vector_score": 16.21769,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Cenozoic Climatic Change",
+ "score": 0.5680173
+ },
+ {
+ "keyword": "Body Size Evolution",
+ "score": 0.56473666
+ }
+ ]
+ },
+ {
+ "query": "geomorphology landscape evolution",
+ "field": "Earth and Planetary Sciences",
+ "rank": 3,
+ "topic_name": "Computational Physics and Python Applications",
+ "total_score": 34.706833,
+ "lexical_score": 23.3115274,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 18.882019,
+ "matched_keywords": [
+ {
+ "keyword": "Geomorphology",
+ "score": 0.7552808
+ },
+ {
+ "keyword": "Geospatial Mapping",
+ "score": 0.5387586
+ }
+ ]
+ },
+ {
+ "query": "hydrology water cycle",
+ "field": "Earth and Planetary Sciences",
+ "rank": 1,
+ "topic_name": "Hydrology and Drought Analysis",
+ "total_score": 43.301994,
+ "lexical_score": 22.504187,
+ "title_vector_score": 20.797806,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Hydrological",
+ "score": 0.6798134
+ },
+ {
+ "keyword": "Evapotranspiration",
+ "score": 0.5871353
+ }
+ ]
+ },
+ {
+ "query": "hydrology water cycle",
+ "field": "Earth and Planetary Sciences",
+ "rank": 2,
+ "topic_name": "Hydrology and Watershed Management Studies",
+ "total_score": 38.501793,
+ "lexical_score": 51.4622527,
+ "title_vector_score": 17.955475,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Global Hydrology",
+ "score": 0.71090955
+ },
+ {
+ "keyword": "Hydrological Modeling",
+ "score": 0.686559
+ }
+ ]
+ },
+ {
+ "query": "hydrology water cycle",
+ "field": "Earth and Planetary Sciences",
+ "rank": 3,
+ "topic_name": "Climate change and permafrost",
+ "total_score": 33.491318,
+ "lexical_score": 20.8215303,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 19.3587,
+ "matched_keywords": [
+ {
+ "keyword": "Hydrology",
+ "score": 0.77434796
+ }
+ ]
+ },
+ {
+ "query": "meteorology weather forecasting",
+ "field": "Earth and Planetary Sciences",
+ "rank": 1,
+ "topic_name": "Air Quality Monitoring and Forecasting",
+ "total_score": 54.362545,
+ "lexical_score": 34.309791,
+ "title_vector_score": 18.409424,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 17.592972,
+ "matched_keywords": [
+ {
+ "keyword": "Forecasting",
+ "score": 0.70371884
+ },
+ {
+ "keyword": "Air Quality Monitoring",
+ "score": 0.5993805
+ }
+ ]
+ },
+ {
+ "query": "meteorology weather forecasting",
+ "field": "Earth and Planetary Sciences",
+ "rank": 2,
+ "topic_name": "Forecasting Techniques and Applications",
+ "total_score": 38.64367,
+ "lexical_score": 43.428111,
+ "title_vector_score": 18.533974,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Forecasting",
+ "score": 0.7020912
+ },
+ {
+ "keyword": "Demand Forecasting",
+ "score": 0.6271451
+ }
+ ]
+ },
+ {
+ "query": "meteorology weather forecasting",
+ "field": "Earth and Planetary Sciences",
+ "rank": 3,
+ "topic_name": "Arduino and IoT Applications",
+ "total_score": 31.369934,
+ "lexical_score": 20.437542999999998,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 17.860634,
+ "matched_keywords": [
+ {
+ "keyword": "Weather Monitoring",
+ "score": 0.7144254
+ },
+ {
+ "keyword": "Remote Monitoring",
+ "score": 0.53266144
+ }
+ ]
+ },
+ {
+ "query": "oceanography ocean currents",
+ "field": "Earth and Planetary Sciences",
+ "rank": 1,
+ "topic_name": "Oceanographic and Atmospheric Processes",
+ "total_score": 46.358273,
+ "lexical_score": 18.91653,
+ "title_vector_score": 18.580132,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 16.950829,
+ "matched_keywords": [
+ {
+ "keyword": "Oceanic Modeling",
+ "score": 0.6780332
+ },
+ {
+ "keyword": "Ocean Circulation",
+ "score": 0.6634547
+ }
+ ]
+ },
+ {
+ "query": "oceanography ocean currents",
+ "field": "Earth and Planetary Sciences",
+ "rank": 2,
+ "topic_name": "Ocean Waves and Remote Sensing",
+ "total_score": 39.399048,
+ "lexical_score": 38.850894999999994,
+ "title_vector_score": 17.887573,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Ocean Waves",
+ "score": 0.64329404
+ },
+ {
+ "keyword": "Satellite Altimetry",
+ "score": 0.5267995
+ }
+ ]
+ },
+ {
+ "query": "oceanography ocean currents",
+ "field": "Earth and Planetary Sciences",
+ "rank": 3,
+ "topic_name": "Computational Physics and Python Applications",
+ "total_score": 34.382385,
+ "lexical_score": 24.899423,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 17.479641,
+ "matched_keywords": [
+ {
+ "keyword": "Oceanography",
+ "score": 0.69918567
+ }
+ ]
+ },
+ {
+ "query": "geochemistry isotopic analysis",
+ "field": "Earth and Planetary Sciences",
+ "rank": 1,
+ "topic_name": "Geochemistry and Elemental Analysis",
+ "total_score": 53.05101,
+ "lexical_score": 56.0018898,
+ "title_vector_score": 21.356468,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Geochemistry",
+ "score": 0.70724744
+ },
+ {
+ "keyword": "Provenance Analysis",
+ "score": 0.5179367
+ }
+ ]
+ },
+ {
+ "query": "geochemistry isotopic analysis",
+ "field": "Earth and Planetary Sciences",
+ "rank": 2,
+ "topic_name": "Isotope Analysis in Ecology",
+ "total_score": 51.773956,
+ "lexical_score": 15.7953636,
+ "title_vector_score": 22.149544,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 19.644482,
+ "matched_keywords": [
+ {
+ "keyword": "Isotope Analysis",
+ "score": 0.7857793
+ },
+ {
+ "keyword": "Stable Isotopes",
+ "score": 0.6021907
+ }
+ ]
+ },
+ {
+ "query": "geochemistry isotopic analysis",
+ "field": "Earth and Planetary Sciences",
+ "rank": 3,
+ "topic_name": "Archaeology and ancient environmental studies",
+ "total_score": 40.605392,
+ "lexical_score": 28.3816771,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 20.30077,
+ "matched_keywords": [
+ {
+ "keyword": "Isotopic Analysis",
+ "score": 0.8120308
+ },
+ {
+ "keyword": "Stable Isotope Analysis",
+ "score": 0.7293218
+ }
+ ]
+ },
+ {
+ "query": "remote sensing earth",
+ "field": "Earth and Planetary Sciences",
+ "rank": 1,
+ "topic_name": "Remote Sensing in Agriculture",
+ "total_score": 59.708923,
+ "lexical_score": 64.26837760000001,
+ "title_vector_score": 21.560745,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Remote Sensing",
+ "score": 0.77825165
+ },
+ {
+ "keyword": "Vegetation Monitoring",
+ "score": 0.5724551
+ }
+ ]
+ },
+ {
+ "query": "remote sensing earth",
+ "field": "Earth and Planetary Sciences",
+ "rank": 2,
+ "topic_name": "Remote Sensing and Land Use",
+ "total_score": 55.84357,
+ "lexical_score": 60.7370791,
+ "title_vector_score": 21.01429,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Remote Sensing",
+ "score": 0.7784297
+ },
+ {
+ "keyword": "Hyperspectral Imaging",
+ "score": 0.5178477
+ }
+ ]
+ },
+ {
+ "query": "remote sensing earth",
+ "field": "Earth and Planetary Sciences",
+ "rank": 3,
+ "topic_name": "Soil Moisture and Remote Sensing",
+ "total_score": 54.439953,
+ "lexical_score": 59.5287266,
+ "title_vector_score": 19.610672,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Remote Sensing",
+ "score": 0.7783788
+ },
+ {
+ "keyword": "Satellite Observations",
+ "score": 0.62150574
+ }
+ ]
+ },
+ {
+ "query": "petrology rock formation",
+ "field": "Earth and Planetary Sciences",
+ "rank": 1,
+ "topic_name": "Tunneling and Rock Mechanics",
+ "total_score": 38.304886,
+ "lexical_score": 52.246477,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 15.800698,
+ "matched_keywords": [
+ {
+ "keyword": "rock fragmentation",
+ "score": 0.6320279
+ },
+ {
+ "keyword": "geological conditions",
+ "score": 0.6140416
+ }
+ ]
+ },
+ {
+ "query": "petrology rock formation",
+ "field": "Earth and Planetary Sciences",
+ "rank": 2,
+ "topic_name": "Rock Mechanics and Modeling",
+ "total_score": 22.504187,
+ "lexical_score": 41.722090300000005,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Rock Mechanics",
+ "score": 0.538873
+ }
+ ]
+ },
+ {
+ "query": "petrology rock formation",
+ "field": "Earth and Planetary Sciences",
+ "rank": 3,
+ "topic_name": "Galaxies: Formation, Evolution, Phenomena",
+ "total_score": 21.714607,
+ "lexical_score": 35.9457777,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Star Formation",
+ "score": 0.577287
+ }
+ ]
+ },
+ {
+ "query": "impact cratering planetary",
+ "field": "Earth and Planetary Sciences",
+ "rank": 1,
+ "topic_name": "Planetary Science and Exploration",
+ "total_score": 53.382458,
+ "lexical_score": 41.1130493,
+ "title_vector_score": 16.070824,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 14.8074465,
+ "matched_keywords": [
+ {
+ "keyword": "Planetary Exploration",
+ "score": 0.59229785
+ },
+ {
+ "keyword": "Martian Surface",
+ "score": 0.51004666
+ }
+ ]
+ },
+ {
+ "query": "impact cratering planetary",
+ "field": "Earth and Planetary Sciences",
+ "rank": 2,
+ "topic_name": "Stellar, planetary, and galactic studies",
+ "total_score": 34.77727,
+ "lexical_score": 41.31915,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 14.23095,
+ "matched_keywords": [
+ {
+ "keyword": "Planetary Systems",
+ "score": 0.569238
+ }
+ ]
+ },
+ {
+ "query": "impact cratering planetary",
+ "field": "Earth and Planetary Sciences",
+ "rank": 3,
+ "topic_name": "Toxic Organic Pollutants Impact",
+ "total_score": 30.269218,
+ "lexical_score": 15.8573132,
+ "title_vector_score": 15.534476,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "paleontology fossil records",
+ "field": "Earth and Planetary Sciences",
+ "rank": 1,
+ "topic_name": "Paleontology and Evolutionary Biology",
+ "total_score": 72.33911,
+ "lexical_score": 66.091982,
+ "title_vector_score": 18.293839,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 18.22049,
+ "matched_keywords": [
+ {
+ "keyword": "Paleontology",
+ "score": 0.72881955
+ },
+ {
+ "keyword": "Fossil",
+ "score": 0.5465787
+ }
+ ]
+ },
+ {
+ "query": "paleontology fossil records",
+ "field": "Earth and Planetary Sciences",
+ "rank": 2,
+ "topic_name": "Paleontology and Stratigraphy of Fossils",
+ "total_score": 41.080338,
+ "lexical_score": 20.54632,
+ "title_vector_score": 20.53402,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Paleoproductivity",
+ "score": 0.54904556
+ }
+ ]
+ },
+ {
+ "query": "paleontology fossil records",
+ "field": "Earth and Planetary Sciences",
+ "rank": 3,
+ "topic_name": "Evolution and Paleontology Studies",
+ "total_score": 40.8892,
+ "lexical_score": 22.504187,
+ "title_vector_score": 18.38501,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Paleobiology",
+ "score": 0.6317609
+ },
+ {
+ "keyword": "Molecular Phylogeny",
+ "score": 0.5542908
+ }
+ ]
+ },
+ {
+ "query": "glaciology ice sheets",
+ "field": "Earth and Planetary Sciences",
+ "rank": 1,
+ "topic_name": "Cryospheric studies and observations",
+ "total_score": 48.192314,
+ "lexical_score": 27.6056874,
+ "title_vector_score": 15.947608,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 17.881458,
+ "matched_keywords": [
+ {
+ "keyword": "Ice Sheet",
+ "score": 0.7152583
+ }
+ ]
+ },
+ {
+ "query": "glaciology ice sheets",
+ "field": "Earth and Planetary Sciences",
+ "rank": 2,
+ "topic_name": "Geophysics and Gravity Measurements",
+ "total_score": 46.222706,
+ "lexical_score": 32.137125,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 20.053608,
+ "matched_keywords": [
+ {
+ "keyword": "polar ice sheets",
+ "score": 0.80214435
+ },
+ {
+ "keyword": "geodetic measurements",
+ "score": 0.5423953
+ }
+ ]
+ },
+ {
+ "query": "glaciology ice sheets",
+ "field": "Earth and Planetary Sciences",
+ "rank": 3,
+ "topic_name": "Arctic and Antarctic ice dynamics",
+ "total_score": 40.336,
+ "lexical_score": 46.409007,
+ "title_vector_score": 17.359238,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Antarctic Comparison",
+ "score": 0.53724545
+ }
+ ]
+ },
+ {
+ "query": "geophysics magnetic fields",
+ "field": "Earth and Planetary Sciences",
+ "rank": 1,
+ "topic_name": "Geophysics and Gravity Measurements",
+ "total_score": 42.920715,
+ "lexical_score": 22.504187,
+ "title_vector_score": 20.416527,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "geodetic measurements",
+ "score": 0.66141385
+ },
+ {
+ "keyword": "satellite measurements",
+ "score": 0.5816612
+ }
+ ]
+ },
+ {
+ "query": "geophysics magnetic fields",
+ "field": "Earth and Planetary Sciences",
+ "rank": 2,
+ "topic_name": "Magnetic Field Sensors Techniques",
+ "total_score": 38.935425,
+ "lexical_score": 30.5963973,
+ "title_vector_score": 20.430641,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Magnetic Sensors",
+ "score": 0.63270825
+ },
+ {
+ "keyword": "Space-based Magnetometers",
+ "score": 0.60186005
+ }
+ ]
+ },
+ {
+ "query": "geophysics magnetic fields",
+ "field": "Earth and Planetary Sciences",
+ "rank": 3,
+ "topic_name": "Magnetic and Electromagnetic Effects",
+ "total_score": 38.825417,
+ "lexical_score": 47.418258699999996,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 18.982792,
+ "matched_keywords": [
+ {
+ "keyword": "Magnetic Fields",
+ "score": 0.7593117
+ },
+ {
+ "keyword": "Electromagnetic Stimulation",
+ "score": 0.5203082
+ }
+ ]
+ },
+ {
+ "query": "environmental geology hazards",
+ "field": "Earth and Planetary Sciences",
+ "rank": 1,
+ "topic_name": "Geology and Environmental Impact Studies",
+ "total_score": 52.060776,
+ "lexical_score": 41.1138377,
+ "title_vector_score": 19.73999,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Environmental Protection",
+ "score": 0.56403095
+ },
+ {
+ "keyword": "Mining Regulations",
+ "score": 0.5300166
+ }
+ ]
+ },
+ {
+ "query": "environmental geology hazards",
+ "field": "Earth and Planetary Sciences",
+ "rank": 2,
+ "topic_name": "Industrial and Mining Safety",
+ "total_score": 36.546158,
+ "lexical_score": 27.86864,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 18.281525,
+ "matched_keywords": [
+ {
+ "keyword": "Mining Hazards",
+ "score": 0.73126096
+ },
+ {
+ "keyword": "Explosion Risk",
+ "score": 0.59697086
+ }
+ ]
+ },
+ {
+ "query": "environmental geology hazards",
+ "field": "Earth and Planetary Sciences",
+ "rank": 3,
+ "topic_name": "Landslides and related hazards",
+ "total_score": 25.166224,
+ "lexical_score": 31.0462036,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Risk Assessment",
+ "score": 0.52760696
+ },
+ {
+ "keyword": "Earthquake-induced Landslides",
+ "score": 0.50745267
+ }
+ ]
+ },
+ {
+ "query": "t cell activation",
+ "field": "Immunology and Microbiology",
+ "rank": 1,
+ "topic_name": "Atherosclerosis and Cardiovascular Diseases",
+ "total_score": 53.420753,
+ "lexical_score": 47.3401482,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.477531,
+ "matched_keywords": [
+ {
+ "keyword": "T Cell Activation",
+ "score": 0.89910126
+ },
+ {
+ "keyword": "Regulatory T Cells",
+ "score": 0.64999515
+ }
+ ]
+ },
+ {
+ "query": "t cell activation",
+ "field": "Immunology and Microbiology",
+ "rank": 2,
+ "topic_name": "Mast cells and histamine",
+ "total_score": 51.1987,
+ "lexical_score": 36.095417600000005,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.482777,
+ "matched_keywords": [
+ {
+ "keyword": "T Cell Activation",
+ "score": 0.89931107
+ },
+ {
+ "keyword": "Immune Responses",
+ "score": 0.6380107
+ }
+ ]
+ },
+ {
+ "query": "t cell activation",
+ "field": "Immunology and Microbiology",
+ "rank": 3,
+ "topic_name": "HIV Research and Treatment",
+ "total_score": 50.51766,
+ "lexical_score": 34.2782566,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 21.151287,
+ "matched_keywords": [
+ {
+ "keyword": "immune activation",
+ "score": 0.8460515
+ },
+ {
+ "keyword": "T cell",
+ "score": 0.71366245
+ }
+ ]
+ },
+ {
+ "query": "antibody response mechanics",
+ "field": "Immunology and Microbiology",
+ "rank": 1,
+ "topic_name": "Invertebrate Immune Response Mechanisms",
+ "total_score": 38.94754,
+ "lexical_score": 32.632440200000005,
+ "title_vector_score": 18.388252,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Immune Response",
+ "score": 0.6099917
+ },
+ {
+ "keyword": "Invertebrate Immunity",
+ "score": 0.5454788
+ }
+ ]
+ },
+ {
+ "query": "antibody response mechanics",
+ "field": "Immunology and Microbiology",
+ "rank": 2,
+ "topic_name": "Composite Material Mechanics",
+ "total_score": 36.740784,
+ "lexical_score": 19.09239,
+ "title_vector_score": 17.648392,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Micromechanics",
+ "score": 0.50710297
+ }
+ ]
+ },
+ {
+ "query": "antibody response mechanics",
+ "field": "Immunology and Microbiology",
+ "rank": 3,
+ "topic_name": "Monoclonal and Polyclonal Antibodies Research",
+ "total_score": 35.89755,
+ "lexical_score": 29.648246,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 17.909592,
+ "matched_keywords": [
+ {
+ "keyword": "Antibody Engineering",
+ "score": 0.71638364
+ },
+ {
+ "keyword": "Antibody Pharmacokinetics",
+ "score": 0.68863803
+ }
+ ]
+ },
+ {
+ "query": "bacterial resistance antibiotics",
+ "field": "Immunology and Microbiology",
+ "rank": 1,
+ "topic_name": "Infections and bacterial resistance",
+ "total_score": 82.94674,
+ "lexical_score": 54.596600499999994,
+ "title_vector_score": 21.456223,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.614067,
+ "matched_keywords": [
+ {
+ "keyword": "antibiotic resistance",
+ "score": 0.90456265
+ },
+ {
+ "keyword": "multidrug resistance",
+ "score": 0.74816006
+ }
+ ]
+ },
+ {
+ "query": "bacterial resistance antibiotics",
+ "field": "Immunology and Microbiology",
+ "rank": 2,
+ "topic_name": "Antibiotic Use and Resistance",
+ "total_score": 50.713104,
+ "lexical_score": 50.0103929,
+ "title_vector_score": 22.700386,
+ "description_vector_score": 7.783832,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Antibiotic Resistance",
+ "score": 0.8184268
+ },
+ {
+ "keyword": "Drug Resistance",
+ "score": 0.69623566
+ }
+ ]
+ },
+ {
+ "query": "bacterial resistance antibiotics",
+ "field": "Immunology and Microbiology",
+ "rank": 3,
+ "topic_name": "Antibiotic Resistance in Bacteria",
+ "total_score": 43.458412,
+ "lexical_score": 34.2999136,
+ "title_vector_score": 24.691658,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Antibiotic Resistance",
+ "score": 0.8187764
+ },
+ {
+ "keyword": "Antimicrobial Resistance Genes",
+ "score": 0.7536977
+ }
+ ]
+ },
+ {
+ "query": "viral replication cycle",
+ "field": "Immunology and Microbiology",
+ "rank": 1,
+ "topic_name": "T-cell and Retrovirus Studies",
+ "total_score": 50.953205,
+ "lexical_score": 21.810253000000003,
+ "title_vector_score": 18.15422,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 18.005116,
+ "matched_keywords": [
+ {
+ "keyword": "viral transmission",
+ "score": 0.72020465
+ },
+ {
+ "keyword": "viral oncogenes",
+ "score": 0.65243655
+ }
+ ]
+ },
+ {
+ "query": "viral replication cycle",
+ "field": "Immunology and Microbiology",
+ "rank": 2,
+ "topic_name": "Virology and Viral Diseases",
+ "total_score": 38.252342,
+ "lexical_score": 30.333168,
+ "title_vector_score": 18.535881,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Viral Pathogenesis",
+ "score": 0.66300327
+ },
+ {
+ "keyword": "Measles Virus",
+ "score": 0.56827164
+ }
+ ]
+ },
+ {
+ "query": "viral replication cycle",
+ "field": "Immunology and Microbiology",
+ "rank": 3,
+ "topic_name": "Respiratory viral infections research",
+ "total_score": 37.782944,
+ "lexical_score": 40.314735000000006,
+ "title_vector_score": 18.066483,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Viral Infections",
+ "score": 0.60358304
+ },
+ {
+ "keyword": "Viral Pneumonia",
+ "score": 0.5891444
+ }
+ ]
+ },
+ {
+ "query": "autoimmune disease pathogenesis",
+ "field": "Immunology and Microbiology",
+ "rank": 1,
+ "topic_name": "Autoimmune and Inflammatory Disorders",
+ "total_score": 41.19644,
+ "lexical_score": 26.849047300000002,
+ "title_vector_score": 20.112305,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Autoinflammatory Skin Disorders",
+ "score": 0.65293247
+ },
+ {
+ "keyword": "Inflammatory Bowel Disease",
+ "score": 0.58041507
+ }
+ ]
+ },
+ {
+ "query": "autoimmune disease pathogenesis",
+ "field": "Immunology and Microbiology",
+ "rank": 2,
+ "topic_name": "Immunodeficiency and Autoimmune Disorders",
+ "total_score": 40.455437,
+ "lexical_score": 21.084139,
+ "title_vector_score": 19.3713,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Immune Dysregulation",
+ "score": 0.58777744
+ },
+ {
+ "keyword": "Primary Immunodeficiency",
+ "score": 0.56789017
+ }
+ ]
+ },
+ {
+ "query": "autoimmune disease pathogenesis",
+ "field": "Immunology and Microbiology",
+ "rank": 3,
+ "topic_name": "Autoimmune and Inflammatory Disorders Research",
+ "total_score": 38.91752,
+ "lexical_score": 22.8873964,
+ "title_vector_score": 19.667702,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Juvenile Idiopathic Arthritis",
+ "score": 0.55410004
+ },
+ {
+ "keyword": "Interleukin-1 Blockade",
+ "score": 0.5148404
+ }
+ ]
+ },
+ {
+ "query": "innate immunity defense",
+ "field": "Immunology and Microbiology",
+ "rank": 1,
+ "topic_name": "Antimicrobial Peptides and Activities",
+ "total_score": 53.338207,
+ "lexical_score": 46.8452754,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 21.359348,
+ "matched_keywords": [
+ {
+ "keyword": "Innate Immunity",
+ "score": 0.85437393
+ },
+ {
+ "keyword": "Immune Modulation",
+ "score": 0.65401965
+ }
+ ]
+ },
+ {
+ "query": "innate immunity defense",
+ "field": "Immunology and Microbiology",
+ "rank": 2,
+ "topic_name": "Immunotherapy and Immune Responses",
+ "total_score": 47.822292,
+ "lexical_score": 31.389016599999998,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 21.359348,
+ "matched_keywords": [
+ {
+ "keyword": "Innate Immunity",
+ "score": 0.85437393
+ },
+ {
+ "keyword": "T Cell Immunity",
+ "score": 0.70823926
+ }
+ ]
+ },
+ {
+ "query": "innate immunity defense",
+ "field": "Immunology and Microbiology",
+ "rank": 3,
+ "topic_name": "Biomarkers in Disease Mechanisms",
+ "total_score": 45.204876,
+ "lexical_score": 35.493319799999995,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 21.359348,
+ "matched_keywords": [
+ {
+ "keyword": "Innate Immunity",
+ "score": 0.85437393
+ },
+ {
+ "keyword": "Autoimmunity",
+ "score": 0.62212247
+ }
+ ]
+ },
+ {
+ "query": "vaccine development strategies",
+ "field": "Immunology and Microbiology",
+ "rank": 1,
+ "topic_name": "Chronic Disease Management Strategies",
+ "total_score": 36.548126,
+ "lexical_score": 19.1541178,
+ "title_vector_score": 18.719177,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Clinical Practice Guidelines",
+ "score": 0.51077145
+ }
+ ]
+ },
+ {
+ "query": "vaccine development strategies",
+ "field": "Immunology and Microbiology",
+ "rank": 2,
+ "topic_name": "Escherichia coli research studies",
+ "total_score": 35.1484,
+ "lexical_score": 21.0159052,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 21.33805,
+ "matched_keywords": [
+ {
+ "keyword": "vaccine development",
+ "score": 0.853522
+ },
+ {
+ "keyword": "molecular pathogenesis",
+ "score": 0.56609726
+ }
+ ]
+ },
+ {
+ "query": "vaccine development strategies",
+ "field": "Immunology and Microbiology",
+ "rank": 3,
+ "topic_name": "Malaria Research and Control",
+ "total_score": 34.5895,
+ "lexical_score": 21.4962672,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 20.193321,
+ "matched_keywords": [
+ {
+ "keyword": "Vaccine Development",
+ "score": 0.8077329
+ }
+ ]
+ },
+ {
+ "query": "microbiome gut health",
+ "field": "Immunology and Microbiology",
+ "rank": 1,
+ "topic_name": "Gut microbiota and health",
+ "total_score": 69.432434,
+ "lexical_score": 80.592633,
+ "title_vector_score": 25.09964,
+ "description_vector_score": 8.661785,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Gut Microbiota",
+ "score": 0.7930972
+ },
+ {
+ "keyword": "Obesity-associated Microbiome",
+ "score": 0.7277387
+ }
+ ]
+ },
+ {
+ "query": "microbiome gut health",
+ "field": "Immunology and Microbiology",
+ "rank": 2,
+ "topic_name": "Pomegranate: compositions and health benefits",
+ "total_score": 38.080826,
+ "lexical_score": 36.8911686,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 19.86335,
+ "matched_keywords": [
+ {
+ "keyword": "Gut Microbiota",
+ "score": 0.794534
+ },
+ {
+ "keyword": "Cardiovascular Health",
+ "score": 0.5657857
+ }
+ ]
+ },
+ {
+ "query": "microbiome gut health",
+ "field": "Immunology and Microbiology",
+ "rank": 3,
+ "topic_name": "Animal Nutrition and Physiology",
+ "total_score": 37.305344,
+ "lexical_score": 29.399424200000002,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 19.86065,
+ "matched_keywords": [
+ {
+ "keyword": "Gut Microbiota",
+ "score": 0.79442596
+ },
+ {
+ "keyword": "Digestive Health",
+ "score": 0.6859169
+ }
+ ]
+ },
+ {
+ "query": "macrophage polarization function",
+ "field": "Immunology and Microbiology",
+ "rank": 1,
+ "topic_name": "Macrophage Migration Inhibitory Factor",
+ "total_score": 50.93872,
+ "lexical_score": 31.3339386,
+ "title_vector_score": 18.092995,
+ "description_vector_score": 7.6795006,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Inflammatory Response",
+ "score": 0.58861035
+ },
+ {
+ "keyword": "Inflammation",
+ "score": 0.5476214
+ }
+ ]
+ },
+ {
+ "query": "macrophage polarization function",
+ "field": "Immunology and Microbiology",
+ "rank": 2,
+ "topic_name": "Immune cells in cancer",
+ "total_score": 36.983864,
+ "lexical_score": 44.231494,
+ "title_vector_score": 0.0,
+ "description_vector_score": 8.313122,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Macrophage",
+ "score": 0.64991885
+ },
+ {
+ "keyword": "Polarization",
+ "score": 0.5752271
+ }
+ ]
+ },
+ {
+ "query": "macrophage polarization function",
+ "field": "Immunology and Microbiology",
+ "rank": 3,
+ "topic_name": "Cholesterol and Lipid Metabolism",
+ "total_score": 32.98669,
+ "lexical_score": 16.75954,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 16.22715,
+ "matched_keywords": [
+ {
+ "keyword": "Macrophage",
+ "score": 0.649086
+ }
+ ]
+ },
+ {
+ "query": "pathogen virulence factors",
+ "field": "Immunology and Microbiology",
+ "rank": 1,
+ "topic_name": "Enterobacteriaceae and Cronobacter Research",
+ "total_score": 52.791256,
+ "lexical_score": 45.467697,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.083115,
+ "matched_keywords": [
+ {
+ "keyword": "virulence factors",
+ "score": 0.9233246
+ },
+ {
+ "keyword": "bacterial pathogen",
+ "score": 0.7104899
+ }
+ ]
+ },
+ {
+ "query": "pathogen virulence factors",
+ "field": "Immunology and Microbiology",
+ "rank": 2,
+ "topic_name": "Yersinia bacterium, plague, ectoparasites research",
+ "total_score": 49.38254,
+ "lexical_score": 27.643355800000002,
+ "title_vector_score": 0.0,
+ "description_vector_score": 7.8750987,
+ "keywords_vector_score": 23.091698,
+ "matched_keywords": [
+ {
+ "keyword": "virulence factors",
+ "score": 0.9236679
+ },
+ {
+ "keyword": "bacterial pathogenesis",
+ "score": 0.70027924
+ }
+ ]
+ },
+ {
+ "query": "pathogen virulence factors",
+ "field": "Immunology and Microbiology",
+ "rank": 3,
+ "topic_name": "Antimicrobial Resistance in Staphylococcus",
+ "total_score": 39.868713,
+ "lexical_score": 27.724440299999998,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 21.452969,
+ "matched_keywords": [
+ {
+ "keyword": "Virulence Factors",
+ "score": 0.8581187
+ },
+ {
+ "keyword": "Antimicrobial Resistance",
+ "score": 0.57298917
+ }
+ ]
+ },
+ {
+ "query": "cytokine storm response",
+ "field": "Immunology and Microbiology",
+ "rank": 1,
+ "topic_name": "COVID-19 Clinical Research Studies",
+ "total_score": 66.674736,
+ "lexical_score": 55.246630200000006,
+ "title_vector_score": 0.0,
+ "description_vector_score": 8.048859,
+ "keywords_vector_score": 21.82204,
+ "matched_keywords": [
+ {
+ "keyword": "Cytokine Storm",
+ "score": 0.8728816
+ },
+ {
+ "keyword": "Immune Response",
+ "score": 0.6065903
+ }
+ ]
+ },
+ {
+ "query": "cytokine storm response",
+ "field": "Immunology and Microbiology",
+ "rank": 2,
+ "topic_name": "Xenotransplantation and immune response",
+ "total_score": 37.684303,
+ "lexical_score": 20.55929,
+ "title_vector_score": 17.125015,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Clinical Xenotransplantation",
+ "score": 0.5187314
+ },
+ {
+ "keyword": "Immunological Barriers",
+ "score": 0.5152537
+ }
+ ]
+ },
+ {
+ "query": "cytokine storm response",
+ "field": "Immunology and Microbiology",
+ "rank": 3,
+ "topic_name": "Exercise and Physiological Responses",
+ "total_score": 36.765564,
+ "lexical_score": 21.0941175,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 19.273502,
+ "matched_keywords": [
+ {
+ "keyword": "Cytokine Response",
+ "score": 0.7709401
+ },
+ {
+ "keyword": "Muscle-Derived Interleukin-6",
+ "score": 0.53172684
+ }
+ ]
+ },
+ {
+ "query": "mycology fungal infections",
+ "field": "Immunology and Microbiology",
+ "rank": 1,
+ "topic_name": "Fungal Infections and Studies",
+ "total_score": 57.863876,
+ "lexical_score": 59.070880700000004,
+ "title_vector_score": 22.546463,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Fungal Pathogens",
+ "score": 0.7097333
+ },
+ {
+ "keyword": "Antifungal Therapy",
+ "score": 0.60899353
+ }
+ ]
+ },
+ {
+ "query": "mycology fungal infections",
+ "field": "Immunology and Microbiology",
+ "rank": 2,
+ "topic_name": "Infectious Diseases and Mycology",
+ "total_score": 49.139954,
+ "lexical_score": 29.247981,
+ "title_vector_score": 23.973732,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Zygomycosis",
+ "score": 0.5658938
+ },
+ {
+ "keyword": "Basidiobolomycosis",
+ "score": 0.52005386
+ }
+ ]
+ },
+ {
+ "query": "mycology fungal infections",
+ "field": "Immunology and Microbiology",
+ "rank": 3,
+ "topic_name": "Antifungal resistance and susceptibility",
+ "total_score": 47.87499,
+ "lexical_score": 34.710684,
+ "title_vector_score": 0.0,
+ "description_vector_score": 8.045998,
+ "keywords_vector_score": 18.361156,
+ "matched_keywords": [
+ {
+ "keyword": "Invasive Fungal Infections",
+ "score": 0.7344462
+ },
+ {
+ "keyword": "Antifungal Resistance",
+ "score": 0.63766736
+ }
+ ]
+ },
+ {
+ "query": "parasitology host interaction",
+ "field": "Immunology and Microbiology",
+ "rank": 1,
+ "topic_name": "Parasite Biology and Host Interactions",
+ "total_score": 70.335266,
+ "lexical_score": 36.1840174,
+ "title_vector_score": 21.000366,
+ "description_vector_score": 7.6925654,
+ "keywords_vector_score": 20.130856,
+ "matched_keywords": [
+ {
+ "keyword": "Host-Parasite Interactions",
+ "score": 0.80523425
+ },
+ {
+ "keyword": "Parasites",
+ "score": 0.5734978
+ }
+ ]
+ },
+ {
+ "query": "parasitology host interaction",
+ "field": "Immunology and Microbiology",
+ "rank": 2,
+ "topic_name": "Parasites and Host Interactions",
+ "total_score": 47.013,
+ "lexical_score": 23.561312,
+ "title_vector_score": 23.45169,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Parasite Control",
+ "score": 0.5564969
+ },
+ {
+ "keyword": "Helminth Infections",
+ "score": 0.5449257
+ }
+ ]
+ },
+ {
+ "query": "parasitology host interaction",
+ "field": "Immunology and Microbiology",
+ "rank": 3,
+ "topic_name": "Myxozoan Parasites in Aquatic Species",
+ "total_score": 29.805244,
+ "lexical_score": 14.365707,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 20.072842,
+ "matched_keywords": [
+ {
+ "keyword": "host-parasite relationship",
+ "score": 0.80291367
+ },
+ {
+ "keyword": "pathogenic species",
+ "score": 0.51509476
+ }
+ ]
+ },
+ {
+ "query": "adaptive immune system",
+ "field": "Immunology and Microbiology",
+ "rank": 1,
+ "topic_name": "IL-33, ST2, and ILC Pathways",
+ "total_score": 43.76879,
+ "lexical_score": 33.2951705,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.469902,
+ "matched_keywords": [
+ {
+ "keyword": "Adaptive Immune System",
+ "score": 0.8987961
+ },
+ {
+ "keyword": "Allergic Inflammation",
+ "score": 0.6523285
+ }
+ ]
+ },
+ {
+ "query": "adaptive immune system",
+ "field": "Immunology and Microbiology",
+ "rank": 2,
+ "topic_name": "interferon and immune responses",
+ "total_score": 39.60325,
+ "lexical_score": 30.8189384,
+ "title_vector_score": 21.340256,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Innate Immunity",
+ "score": 0.6676445
+ },
+ {
+ "keyword": "Antiviral Response",
+ "score": 0.6339798
+ }
+ ]
+ },
+ {
+ "query": "adaptive immune system",
+ "field": "Immunology and Microbiology",
+ "rank": 3,
+ "topic_name": "Immune Response and Inflammation",
+ "total_score": 38.00756,
+ "lexical_score": 34.678229,
+ "title_vector_score": 19.744568,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Adaptive Immunity Regulation",
+ "score": 0.7616577
+ },
+ {
+ "keyword": "Innate Antiviral Responses",
+ "score": 0.60926056
+ }
+ ]
+ },
+ {
+ "query": "antigen presentation pathway",
+ "field": "Immunology and Microbiology",
+ "rank": 1,
+ "topic_name": "Immunotherapy and Immune Responses",
+ "total_score": 57.678673,
+ "lexical_score": 56.58135,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 19.80645,
+ "matched_keywords": [
+ {
+ "keyword": "Antigen Presentation",
+ "score": 0.79225796
+ },
+ {
+ "keyword": "Tumor Antigen",
+ "score": 0.5575714
+ }
+ ]
+ },
+ {
+ "query": "antigen presentation pathway",
+ "field": "Immunology and Microbiology",
+ "rank": 2,
+ "topic_name": "vaccines and immunoinformatics approaches",
+ "total_score": 44.660004,
+ "lexical_score": 38.686563,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 19.79087,
+ "matched_keywords": [
+ {
+ "keyword": "Antigen Presentation",
+ "score": 0.79163486
+ },
+ {
+ "keyword": "Vaccine Design",
+ "score": 0.5524788
+ }
+ ]
+ },
+ {
+ "query": "antigen presentation pathway",
+ "field": "Immunology and Microbiology",
+ "rank": 3,
+ "topic_name": "Signaling Pathways in Disease",
+ "total_score": 23.663296,
+ "lexical_score": 5.420766,
+ "title_vector_score": 18.24253,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Cancer Progression",
+ "score": 0.54371136
+ },
+ {
+ "keyword": "Inflammatory Responses",
+ "score": 0.51595944
+ }
+ ]
+ },
+ {
+ "query": "bacteriophage therapy applications",
+ "field": "Immunology and Microbiology",
+ "rank": 1,
+ "topic_name": "Bacteriophages and microbial interactions",
+ "total_score": 52.118404,
+ "lexical_score": 30.274977900000003,
+ "title_vector_score": 0.0,
+ "description_vector_score": 7.6419253,
+ "keywords_vector_score": 16.754848,
+ "matched_keywords": [
+ {
+ "keyword": "Bacteriophage",
+ "score": 0.670194
+ }
+ ]
+ },
+ {
+ "query": "bacteriophage therapy applications",
+ "field": "Immunology and Microbiology",
+ "rank": 2,
+ "topic_name": "Cancer Research and Treatments",
+ "total_score": 25.324785,
+ "lexical_score": 12.7433065,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 16.889317,
+ "matched_keywords": [
+ {
+ "keyword": "Bacterial Therapy",
+ "score": 0.6755727
+ },
+ {
+ "keyword": "Gene Therapy",
+ "score": 0.5463498
+ }
+ ]
+ },
+ {
+ "query": "bacteriophage therapy applications",
+ "field": "Immunology and Microbiology",
+ "rank": 3,
+ "topic_name": "Heme Oxygenase-1 and Carbon Monoxide",
+ "total_score": 24.329193,
+ "lexical_score": 9.8448832,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 16.56189,
+ "matched_keywords": [
+ {
+ "keyword": "Therapeutic Applications",
+ "score": 0.6624756
+ }
+ ]
+ },
+ {
+ "query": "immunotherapy cancer treatment",
+ "field": "Immunology and Microbiology",
+ "rank": 1,
+ "topic_name": "Immunotherapy and Immune Responses",
+ "total_score": 67.71743,
+ "lexical_score": 47.95501,
+ "title_vector_score": 21.693687,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.462433,
+ "matched_keywords": [
+ {
+ "keyword": "Cancer Immunotherapy",
+ "score": 0.8984973
+ },
+ {
+ "keyword": "T Cell Immunity",
+ "score": 0.65435666
+ }
+ ]
+ },
+ {
+ "query": "immunotherapy cancer treatment",
+ "field": "Immunology and Microbiology",
+ "rank": 2,
+ "topic_name": "Cancer Immunotherapy and Biomarkers",
+ "total_score": 58.94762,
+ "lexical_score": 61.588961499999996,
+ "title_vector_score": 22.03701,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Cancer Immunoediting",
+ "score": 0.70603305
+ },
+ {
+ "keyword": "Biomarkers for Immunotherapy",
+ "score": 0.6979459
+ }
+ ]
+ },
+ {
+ "query": "immunotherapy cancer treatment",
+ "field": "Immunology and Microbiology",
+ "rank": 3,
+ "topic_name": "CAR-T cell therapy research",
+ "total_score": 41.940605,
+ "lexical_score": 29.0455739,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.448284,
+ "matched_keywords": [
+ {
+ "keyword": "Cancer Immunotherapy",
+ "score": 0.8979314
+ },
+ {
+ "keyword": "Immunotherapy",
+ "score": 0.8295021
+ }
+ ]
+ },
+ {
+ "query": "microbial biofilms formation",
+ "field": "Immunology and Microbiology",
+ "rank": 1,
+ "topic_name": "Bacterial biofilms and quorum sensing",
+ "total_score": 53.220066,
+ "lexical_score": 67.7248381,
+ "title_vector_score": 19.745522,
+ "description_vector_score": 8.513489,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Biofilms",
+ "score": 0.682312
+ },
+ {
+ "keyword": "Microbial Communities",
+ "score": 0.6625519
+ }
+ ]
+ },
+ {
+ "query": "microbial biofilms formation",
+ "field": "Immunology and Microbiology",
+ "rank": 2,
+ "topic_name": "Biocrusts and Microbial Ecology",
+ "total_score": 36.00807,
+ "lexical_score": 30.732649000000002,
+ "title_vector_score": 17.96959,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Microbial Diversity",
+ "score": 0.6680641
+ },
+ {
+ "keyword": "Biological Soil Crusts",
+ "score": 0.5715459
+ }
+ ]
+ },
+ {
+ "query": "microbial biofilms formation",
+ "field": "Immunology and Microbiology",
+ "rank": 3,
+ "topic_name": "Microbial bioremediation and biosurfactants",
+ "total_score": 35.790062,
+ "lexical_score": 32.9073357,
+ "title_vector_score": 17.75158,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Microbial Communities",
+ "score": 0.66341656
+ },
+ {
+ "keyword": "Petroleum Microbiology",
+ "score": 0.5611827
+ }
+ ]
+ },
+ {
+ "query": "virology host defense",
+ "field": "Immunology and Microbiology",
+ "rank": 1,
+ "topic_name": "Virology and Viral Diseases",
+ "total_score": 43.51671,
+ "lexical_score": 25.166224,
+ "title_vector_score": 18.350487,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Viral Pathogenesis",
+ "score": 0.5792516
+ },
+ {
+ "keyword": "Immune Response",
+ "score": 0.5526314
+ }
+ ]
+ },
+ {
+ "query": "virology host defense",
+ "field": "Immunology and Microbiology",
+ "rank": 2,
+ "topic_name": "Parasites and Host Interactions",
+ "total_score": 40.953735,
+ "lexical_score": 23.561312,
+ "title_vector_score": 17.392426,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Global Epidemiology",
+ "score": 0.5288213
+ }
+ ]
+ },
+ {
+ "query": "virology host defense",
+ "field": "Immunology and Microbiology",
+ "rank": 3,
+ "topic_name": "Chemokine receptors and signaling",
+ "total_score": 40.68358,
+ "lexical_score": 21.790750000000003,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 18.89283,
+ "matched_keywords": [
+ {
+ "keyword": "Host Defense",
+ "score": 0.75571316
+ },
+ {
+ "keyword": "Immune Responses",
+ "score": 0.5566368
+ }
+ ]
+ },
+ {
+ "query": "inflammation signaling pathways",
+ "field": "Immunology and Microbiology",
+ "rank": 1,
+ "topic_name": "NF-κB Signaling Pathways",
+ "total_score": 68.255394,
+ "lexical_score": 68.3767655,
+ "title_vector_score": 23.200874,
+ "description_vector_score": 7.705536,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "inflammation",
+ "score": 0.75861865
+ },
+ {
+ "keyword": "signaling",
+ "score": 0.6555583
+ }
+ ]
+ },
+ {
+ "query": "inflammation signaling pathways",
+ "field": "Immunology and Microbiology",
+ "rank": 2,
+ "topic_name": "Inflammation biomarkers and pathways",
+ "total_score": 65.37097,
+ "lexical_score": 50.806144,
+ "title_vector_score": 23.15033,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Inflammatory Diseases",
+ "score": 0.6649742
+ },
+ {
+ "keyword": "Inflammation",
+ "score": 0.63537854
+ }
+ ]
+ },
+ {
+ "query": "inflammation signaling pathways",
+ "field": "Immunology and Microbiology",
+ "rank": 3,
+ "topic_name": "Signaling Pathways in Disease",
+ "total_score": 61.200455,
+ "lexical_score": 42.807796,
+ "title_vector_score": 23.85147,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Inflammatory Responses",
+ "score": 0.6938197
+ },
+ {
+ "keyword": "Immunophilins",
+ "score": 0.51459247
+ }
+ ]
+ },
+ {
+ "query": "solar cell efficiency",
+ "field": "Energy",
+ "rank": 1,
+ "topic_name": "solar cell performance optimization",
+ "total_score": 63.379677,
+ "lexical_score": 69.747856,
+ "title_vector_score": 25.624733,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Energy Conversion Efficiency",
+ "score": 0.6722412
+ },
+ {
+ "keyword": "Multijunction Solar Cells",
+ "score": 0.62436676
+ }
+ ]
+ },
+ {
+ "query": "solar cell efficiency",
+ "field": "Energy",
+ "rank": 2,
+ "topic_name": "Chalcogenide Semiconductor Thin Films",
+ "total_score": 54.323105,
+ "lexical_score": 45.6779638,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.5578,
+ "matched_keywords": [
+ {
+ "keyword": "Solar Cell Efficiency",
+ "score": 0.902312
+ },
+ {
+ "keyword": "Photovoltaics",
+ "score": 0.6085103
+ }
+ ]
+ },
+ {
+ "query": "solar cell efficiency",
+ "field": "Energy",
+ "rank": 3,
+ "topic_name": "Silicon and Solar Cell Technologies",
+ "total_score": 52.676548,
+ "lexical_score": 65.70648059999999,
+ "title_vector_score": 18.206291,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Solar Cells",
+ "score": 0.6984164
+ },
+ {
+ "keyword": "Photovoltaics",
+ "score": 0.60841495
+ }
+ ]
+ },
+ {
+ "query": "wind turbine aerodynamics",
+ "field": "Energy",
+ "rank": 1,
+ "topic_name": "Wind Turbine Control Systems",
+ "total_score": 67.245285,
+ "lexical_score": 62.996071,
+ "title_vector_score": 20.364456,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Variable Speed Turbines",
+ "score": 0.62804157
+ },
+ {
+ "keyword": "Wind Power",
+ "score": 0.5859845
+ }
+ ]
+ },
+ {
+ "query": "wind turbine aerodynamics",
+ "field": "Energy",
+ "rank": 2,
+ "topic_name": "Wind Energy Research and Development",
+ "total_score": 59.91135,
+ "lexical_score": 85.0284765,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 18.188541,
+ "matched_keywords": [
+ {
+ "keyword": "Aerodynamics",
+ "score": 0.7275416
+ },
+ {
+ "keyword": "Wind Farm Optimization",
+ "score": 0.6410497
+ }
+ ]
+ },
+ {
+ "query": "wind turbine aerodynamics",
+ "field": "Energy",
+ "rank": 3,
+ "topic_name": "Aerodynamics and Fluid Dynamics Research",
+ "total_score": 44.032932,
+ "lexical_score": 49.649684,
+ "title_vector_score": 19.017677,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Aerodynamics",
+ "score": 0.72401303
+ },
+ {
+ "keyword": "Vehicle Dynamics",
+ "score": 0.56034976
+ }
+ ]
+ },
+ {
+ "query": "battery energy storage",
+ "field": "Energy",
+ "rank": 1,
+ "topic_name": "Advancements in Battery Materials",
+ "total_score": 48.33025,
+ "lexical_score": 70.2388308,
+ "title_vector_score": 17.049103,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Energy Storage",
+ "score": 0.777476
+ },
+ {
+ "keyword": "Battery Technology",
+ "score": 0.65739566
+ }
+ ]
+ },
+ {
+ "query": "battery energy storage",
+ "field": "Energy",
+ "rank": 2,
+ "topic_name": "Thermal Analysis in Power Transmission",
+ "total_score": 46.667046,
+ "lexical_score": 36.5322145,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 21.961754,
+ "matched_keywords": [
+ {
+ "keyword": "Battery Energy Storage",
+ "score": 0.8784701
+ }
+ ]
+ },
+ {
+ "query": "battery energy storage",
+ "field": "Energy",
+ "rank": 3,
+ "topic_name": "Advanced battery technologies research",
+ "total_score": 45.90839,
+ "lexical_score": 58.8164872,
+ "title_vector_score": 16.6745,
+ "description_vector_score": 7.5192833,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Energy Storage",
+ "score": 0.77680844
+ },
+ {
+ "keyword": "Rechargeable Batteries",
+ "score": 0.6138446
+ }
+ ]
+ },
+ {
+ "query": "hydrogen fuel cells",
+ "field": "Energy",
+ "rank": 1,
+ "topic_name": "Fuel Cells and Related Materials",
+ "total_score": 78.67335,
+ "lexical_score": 93.0259265,
+ "title_vector_score": 18.41114,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.434616,
+ "matched_keywords": [
+ {
+ "keyword": "Hydrogen Fuel Cells",
+ "score": 0.89738464
+ },
+ {
+ "keyword": "PEM Fuel Cells",
+ "score": 0.74150974
+ }
+ ]
+ },
+ {
+ "query": "hydrogen fuel cells",
+ "field": "Energy",
+ "rank": 2,
+ "topic_name": "Electrocatalysts for Energy Conversion",
+ "total_score": 47.563755,
+ "lexical_score": 43.434610500000005,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 18.526619,
+ "matched_keywords": [
+ {
+ "keyword": "Fuel Cells",
+ "score": 0.7410647
+ },
+ {
+ "keyword": "Hydrogen Evolution",
+ "score": 0.6118164
+ }
+ ]
+ },
+ {
+ "query": "hydrogen fuel cells",
+ "field": "Energy",
+ "rank": 3,
+ "topic_name": "Hydrogen Storage and Materials",
+ "total_score": 42.825226,
+ "lexical_score": 45.734255,
+ "title_vector_score": 19.263916,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Hydrogen Generation",
+ "score": 0.6916072
+ },
+ {
+ "keyword": "Hydrogen Storage",
+ "score": 0.66902417
+ }
+ ]
+ },
+ {
+ "query": "nuclear power generation",
+ "field": "Energy",
+ "rank": 1,
+ "topic_name": "Advanced Power Generation Technologies",
+ "total_score": 57.588463,
+ "lexical_score": 80.6919515,
+ "title_vector_score": 17.999535,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Nuclear Power Plants",
+ "score": 0.7117551
+ },
+ {
+ "keyword": "Renewable Energy",
+ "score": 0.6020381
+ }
+ ]
+ },
+ {
+ "query": "nuclear power generation",
+ "field": "Energy",
+ "rank": 2,
+ "topic_name": "Power Systems and Renewable Energy",
+ "total_score": 36.165993,
+ "lexical_score": 38.7637655,
+ "title_vector_score": 17.541008,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Photovoltaic Generation",
+ "score": 0.68314487
+ },
+ {
+ "keyword": "Renewable Energy",
+ "score": 0.6029091
+ }
+ ]
+ },
+ {
+ "query": "nuclear power generation",
+ "field": "Energy",
+ "rank": 3,
+ "topic_name": "Nuclear Issues and Defense",
+ "total_score": 35.8864,
+ "lexical_score": 38.8129634,
+ "title_vector_score": 17.623405,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Nuclear War",
+ "score": 0.57292557
+ },
+ {
+ "keyword": "Nuclear Winter",
+ "score": 0.525795
+ }
+ ]
+ },
+ {
+ "query": "biofuel production technologies",
+ "field": "Energy",
+ "rank": 1,
+ "topic_name": "Algal biology and biofuel production",
+ "total_score": 76.701935,
+ "lexical_score": 50.8711592,
+ "title_vector_score": 20.003967,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 17.791492,
+ "matched_keywords": [
+ {
+ "keyword": "Biofuels",
+ "score": 0.7116597
+ },
+ {
+ "keyword": "Biodiesel",
+ "score": 0.62853116
+ }
+ ]
+ },
+ {
+ "query": "biofuel production technologies",
+ "field": "Energy",
+ "rank": 2,
+ "topic_name": "Biofuel production and bioconversion",
+ "total_score": 64.68846,
+ "lexical_score": 60.557296,
+ "title_vector_score": 22.074585,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Bioethanol Production",
+ "score": 0.64802426
+ },
+ {
+ "keyword": "Biorefinery Concept",
+ "score": 0.5941226
+ }
+ ]
+ },
+ {
+ "query": "biofuel production technologies",
+ "field": "Energy",
+ "rank": 3,
+ "topic_name": "Microbial Metabolic Engineering and Bioproduction",
+ "total_score": 41.58922,
+ "lexical_score": 31.1297814,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 20.112736,
+ "matched_keywords": [
+ {
+ "keyword": "Biofuel Production",
+ "score": 0.80450946
+ },
+ {
+ "keyword": "Biorefineries",
+ "score": 0.6385129
+ }
+ ]
+ },
+ {
+ "query": "geothermal energy extraction",
+ "field": "Energy",
+ "rank": 1,
+ "topic_name": "Geothermal Energy Systems and Applications",
+ "total_score": 74.735016,
+ "lexical_score": 84.3579893,
+ "title_vector_score": 18.520622,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 19.416553,
+ "matched_keywords": [
+ {
+ "keyword": "Geothermal Energy",
+ "score": 0.7766622
+ },
+ {
+ "keyword": "Enhanced Geothermal Systems",
+ "score": 0.637661
+ }
+ ]
+ },
+ {
+ "query": "geothermal energy extraction",
+ "field": "Energy",
+ "rank": 2,
+ "topic_name": "Innovative Energy Harvesting Technologies",
+ "total_score": 32.516785,
+ "lexical_score": 30.209587,
+ "title_vector_score": 17.378693,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Energy Scavenging",
+ "score": 0.6167819
+ },
+ {
+ "keyword": "Power Harvesting",
+ "score": 0.61092633
+ }
+ ]
+ },
+ {
+ "query": "geothermal energy extraction",
+ "field": "Energy",
+ "rank": 3,
+ "topic_name": "Advanced Sensor and Energy Harvesting Materials",
+ "total_score": 29.769659,
+ "lexical_score": 21.882356299999998,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 17.05478,
+ "matched_keywords": [
+ {
+ "keyword": "Energy Harvesting",
+ "score": 0.6821912
+ }
+ ]
+ },
+ {
+ "query": "energy grid optimization",
+ "field": "Energy",
+ "rank": 1,
+ "topic_name": "Integrated Energy Systems Optimization",
+ "total_score": 49.199284,
+ "lexical_score": 60.5688231,
+ "title_vector_score": 19.943123,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Energy Modeling",
+ "score": 0.6871948
+ },
+ {
+ "keyword": "Power Grid Flexibility",
+ "score": 0.6307945
+ }
+ ]
+ },
+ {
+ "query": "energy grid optimization",
+ "field": "Energy",
+ "rank": 2,
+ "topic_name": "Smart Grid Energy Management",
+ "total_score": 37.642277,
+ "lexical_score": 61.766349,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Energy Management",
+ "score": 0.64452744
+ },
+ {
+ "keyword": "Smart Grid",
+ "score": 0.59955853
+ }
+ ]
+ },
+ {
+ "query": "energy grid optimization",
+ "field": "Energy",
+ "rank": 3,
+ "topic_name": "solar cell performance optimization",
+ "total_score": 36.05895,
+ "lexical_score": 22.6886927,
+ "title_vector_score": 21.94088,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Energy Conversion Efficiency",
+ "score": 0.6500842
+ },
+ {
+ "keyword": "High Efficiency",
+ "score": 0.5046298
+ }
+ ]
+ },
+ {
+ "query": "fossil fuel alternative",
+ "field": "Energy",
+ "rank": 1,
+ "topic_name": "Advanced Aircraft Design and Technologies",
+ "total_score": 43.33237,
+ "lexical_score": 34.719758299999995,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 19.238853,
+ "matched_keywords": [
+ {
+ "keyword": "Alternative Fuels",
+ "score": 0.76955414
+ },
+ {
+ "keyword": "Renewable Jet Fuel",
+ "score": 0.6055158
+ }
+ ]
+ },
+ {
+ "query": "fossil fuel alternative",
+ "field": "Energy",
+ "rank": 2,
+ "topic_name": "Maritime Transport Emissions and Efficiency",
+ "total_score": 42.90305,
+ "lexical_score": 34.0462593,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 19.320553,
+ "matched_keywords": [
+ {
+ "keyword": "Alternative Fuels",
+ "score": 0.7728221
+ },
+ {
+ "keyword": "Fuel Consumption",
+ "score": 0.55513
+ }
+ ]
+ },
+ {
+ "query": "fossil fuel alternative",
+ "field": "Energy",
+ "rank": 3,
+ "topic_name": "Engine and Fuel Emissions",
+ "total_score": 37.547775,
+ "lexical_score": 38.9535938,
+ "title_vector_score": 15.833167,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Fuel Emissions",
+ "score": 0.58063763
+ },
+ {
+ "keyword": "Renewable Energy",
+ "score": 0.566377
+ }
+ ]
+ },
+ {
+ "query": "hydroelectric power systems",
+ "field": "Energy",
+ "rank": 1,
+ "topic_name": "Hydraulic and Pneumatic Systems",
+ "total_score": 46.903778,
+ "lexical_score": 19.6103778,
+ "title_vector_score": 19.266014,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 17.305439,
+ "matched_keywords": [
+ {
+ "keyword": "Hydraulic Systems",
+ "score": 0.6922175
+ },
+ {
+ "keyword": "Electro-Hydraulic",
+ "score": 0.5298767
+ }
+ ]
+ },
+ {
+ "query": "hydroelectric power systems",
+ "field": "Energy",
+ "rank": 2,
+ "topic_name": "Wireless Power Transfer Systems",
+ "total_score": 46.254616,
+ "lexical_score": 44.613924499999996,
+ "title_vector_score": 19.894676,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Contactless Power Transmission",
+ "score": 0.5341237
+ },
+ {
+ "keyword": "Wireless Power Transfer",
+ "score": 0.52035904
+ }
+ ]
+ },
+ {
+ "query": "hydroelectric power systems",
+ "field": "Energy",
+ "rank": 3,
+ "topic_name": "High-Voltage Power Transmission Systems",
+ "total_score": 43.735466,
+ "lexical_score": 40.372524799999994,
+ "title_vector_score": 19.668846,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Power System Technology",
+ "score": 0.5912679
+ }
+ ]
+ },
+ {
+ "query": "energy efficiency buildings",
+ "field": "Energy",
+ "rank": 1,
+ "topic_name": "Energy Efficiency in Computing",
+ "total_score": 70.26932,
+ "lexical_score": 43.232640100000005,
+ "title_vector_score": 17.74662,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 17.668152,
+ "matched_keywords": [
+ {
+ "keyword": "Energy-Efficient Models",
+ "score": 0.7067261
+ }
+ ]
+ },
+ {
+ "query": "energy efficiency buildings",
+ "field": "Energy",
+ "rank": 2,
+ "topic_name": "Building energy efficiency and sustainability",
+ "total_score": 61.149136,
+ "lexical_score": 72.1893813,
+ "title_vector_score": 21.28151,
+ "description_vector_score": 8.045425,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Energy Efficiency",
+ "score": 0.6826744
+ },
+ {
+ "keyword": "Sustainable Architecture",
+ "score": 0.5778529
+ }
+ ]
+ },
+ {
+ "query": "energy efficiency buildings",
+ "field": "Energy",
+ "rank": 3,
+ "topic_name": "Energy Efficiency and Management",
+ "total_score": 53.592037,
+ "lexical_score": 63.44946370000001,
+ "title_vector_score": 18.737488,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Energy Efficiency",
+ "score": 0.6853447
+ },
+ {
+ "keyword": "Resource Efficient",
+ "score": 0.57704544
+ }
+ ]
+ },
+ {
+ "query": "carbon capture storage",
+ "field": "Energy",
+ "rank": 1,
+ "topic_name": "Carbon Dioxide Capture Technologies",
+ "total_score": 73.06412,
+ "lexical_score": 71.1682843,
+ "title_vector_score": 20.514755,
+ "description_vector_score": 8.330574,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Carbon Dioxide Capture",
+ "score": 0.7349167
+ },
+ {
+ "keyword": "CO2 Capture Technology",
+ "score": 0.7130394
+ }
+ ]
+ },
+ {
+ "query": "carbon capture storage",
+ "field": "Energy",
+ "rank": 2,
+ "topic_name": "Mining and Gasification Technologies",
+ "total_score": 50.651443,
+ "lexical_score": 43.5710136,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 20.625496,
+ "matched_keywords": [
+ {
+ "keyword": "Carbon Capture and Storage",
+ "score": 0.82501984
+ }
+ ]
+ },
+ {
+ "query": "carbon capture storage",
+ "field": "Energy",
+ "rank": 3,
+ "topic_name": "CO2 Sequestration and Geologic Interactions",
+ "total_score": 47.32106,
+ "lexical_score": 43.9713685,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 19.12791,
+ "matched_keywords": [
+ {
+ "keyword": "Carbon Capture",
+ "score": 0.7651164
+ },
+ {
+ "keyword": "Geological Storage",
+ "score": 0.63522595
+ }
+ ]
+ },
+ {
+ "query": "renewable energy policy",
+ "field": "Energy",
+ "rank": 1,
+ "topic_name": "Renewable Energy and Sustainability",
+ "total_score": 56.24565,
+ "lexical_score": 62.8159272,
+ "title_vector_score": 20.023422,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Renewable Energy",
+ "score": 0.73112744
+ },
+ {
+ "keyword": "Energy Efficiency",
+ "score": 0.53797024
+ }
+ ]
+ },
+ {
+ "query": "renewable energy policy",
+ "field": "Energy",
+ "rank": 2,
+ "topic_name": "Energy Law and Policy",
+ "total_score": 50.719425,
+ "lexical_score": 38.7429158,
+ "title_vector_score": 20.921402,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Smart Energy Systems",
+ "score": 0.5574443
+ },
+ {
+ "keyword": "Environmental Protection",
+ "score": 0.50610477
+ }
+ ]
+ },
+ {
+ "query": "renewable energy policy",
+ "field": "Energy",
+ "rank": 3,
+ "topic_name": "Global Energy Security and Policy",
+ "total_score": 46.37586,
+ "lexical_score": 63.50439,
+ "title_vector_score": 19.170265,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Renewable Energy",
+ "score": 0.7325325
+ },
+ {
+ "keyword": "Energy Security",
+ "score": 0.5836322
+ }
+ ]
+ },
+ {
+ "query": "smart grid infrastructure",
+ "field": "Energy",
+ "rank": 1,
+ "topic_name": "Smart Grid and Power Systems",
+ "total_score": 66.319275,
+ "lexical_score": 70.3093666,
+ "title_vector_score": 20.522957,
+ "description_vector_score": 7.5679207,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Smart Grid",
+ "score": 0.72759885
+ },
+ {
+ "keyword": "Cloud Computing",
+ "score": 0.50825375
+ }
+ ]
+ },
+ {
+ "query": "smart grid infrastructure",
+ "field": "Energy",
+ "rank": 2,
+ "topic_name": "Smart Grid Energy Management",
+ "total_score": 62.00887,
+ "lexical_score": 68.271038,
+ "title_vector_score": 20.137672,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Smart Grid",
+ "score": 0.72759885
+ },
+ {
+ "keyword": "Smart Home",
+ "score": 0.5611636
+ }
+ ]
+ },
+ {
+ "query": "smart grid infrastructure",
+ "field": "Energy",
+ "rank": 3,
+ "topic_name": "Smart Grid Security and Resilience",
+ "total_score": 58.64512,
+ "lexical_score": 64.691363,
+ "title_vector_score": 20.416718,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Smart Grid",
+ "score": 0.7278277
+ }
+ ]
+ },
+ {
+ "query": "tidal energy conversion",
+ "field": "Energy",
+ "rank": 1,
+ "topic_name": "Catalysis for Biomass Conversion",
+ "total_score": 38.152153,
+ "lexical_score": 38.702901,
+ "title_vector_score": 15.6479645,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Catalytic Conversion",
+ "score": 0.566714
+ }
+ ]
+ },
+ {
+ "query": "tidal energy conversion",
+ "field": "Energy",
+ "rank": 2,
+ "topic_name": "Thermochemical Biomass Conversion Processes",
+ "total_score": 38.004143,
+ "lexical_score": 41.524171,
+ "title_vector_score": 15.499955,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Thermochemical Conversion",
+ "score": 0.6203931
+ },
+ {
+ "keyword": "Hydrothermal Carbonization",
+ "score": 0.5025635
+ }
+ ]
+ },
+ {
+ "query": "tidal energy conversion",
+ "field": "Energy",
+ "rank": 3,
+ "topic_name": "Wind Energy Research and Development",
+ "total_score": 37.962055,
+ "lexical_score": 51.3564144,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 17.431164,
+ "matched_keywords": [
+ {
+ "keyword": "Tidal Energy",
+ "score": 0.69724655
+ }
+ ]
+ },
+ {
+ "query": "thermal energy storage",
+ "field": "Energy",
+ "rank": 1,
+ "topic_name": "Phase Change Materials Research",
+ "total_score": 51.267975,
+ "lexical_score": 45.479136600000004,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.735023,
+ "matched_keywords": [
+ {
+ "keyword": "Thermal Energy Storage",
+ "score": 0.90940094
+ },
+ {
+ "keyword": "Thermal Conductivity Enhancement",
+ "score": 0.57056683
+ }
+ ]
+ },
+ {
+ "query": "thermal energy storage",
+ "field": "Energy",
+ "rank": 2,
+ "topic_name": "Geothermal Energy Systems and Applications",
+ "total_score": 49.659916,
+ "lexical_score": 58.774261800000005,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 19.439762,
+ "matched_keywords": [
+ {
+ "keyword": "Seasonal Thermal Energy Storage",
+ "score": 0.77759045
+ },
+ {
+ "keyword": "Thermal Conductivity",
+ "score": 0.63904065
+ }
+ ]
+ },
+ {
+ "query": "thermal energy storage",
+ "field": "Energy",
+ "rank": 3,
+ "topic_name": "Hydrogen Storage and Materials",
+ "total_score": 40.203186,
+ "lexical_score": 42.5231173,
+ "title_vector_score": 18.488579,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Hydrogen Storage",
+ "score": 0.63098526
+ },
+ {
+ "keyword": "Chemical Hydrogen Storage",
+ "score": 0.62833405
+ }
+ ]
+ },
+ {
+ "query": "power electronics converters",
+ "field": "Energy",
+ "rank": 1,
+ "topic_name": "Multilevel Inverters and Converters",
+ "total_score": 67.2439,
+ "lexical_score": 69.6551848,
+ "title_vector_score": 17.61158,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 20.833714,
+ "matched_keywords": [
+ {
+ "keyword": "Power Electronics",
+ "score": 0.8333486
+ },
+ {
+ "keyword": "Voltage Source Inverters",
+ "score": 0.65518314
+ }
+ ]
+ },
+ {
+ "query": "power electronics converters",
+ "field": "Energy",
+ "rank": 2,
+ "topic_name": "HVDC Systems and Fault Protection",
+ "total_score": 57.98225,
+ "lexical_score": 47.1820845,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 20.833714,
+ "matched_keywords": [
+ {
+ "keyword": "Power Electronics",
+ "score": 0.8333486
+ },
+ {
+ "keyword": "Voltage Source Converters",
+ "score": 0.7449748
+ }
+ ]
+ },
+ {
+ "query": "power electronics converters",
+ "field": "Energy",
+ "rank": 3,
+ "topic_name": "Advanced DC-DC Converters",
+ "total_score": 54.76013,
+ "lexical_score": 77.3655819,
+ "title_vector_score": 20.732765,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Power Electronics",
+ "score": 0.8333295
+ },
+ {
+ "keyword": "DC-DC Converters",
+ "score": 0.7626686
+ }
+ ]
+ },
+ {
+ "query": "microgrid energy systems",
+ "field": "Energy",
+ "rank": 1,
+ "topic_name": "Hybrid Renewable Energy Systems",
+ "total_score": 45.719475,
+ "lexical_score": 41.002324099999996,
+ "title_vector_score": 20.249062,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Renewable Energy",
+ "score": 0.54329807
+ },
+ {
+ "keyword": "Energy Storage",
+ "score": 0.53826267
+ }
+ ]
+ },
+ {
+ "query": "microgrid energy systems",
+ "field": "Energy",
+ "rank": 2,
+ "topic_name": "Microgrid Control and Optimization",
+ "total_score": 43.98085,
+ "lexical_score": 62.6251055,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 18.814629,
+ "matched_keywords": [
+ {
+ "keyword": "Microgrid Control",
+ "score": 0.7525851
+ },
+ {
+ "keyword": "Energy Storage Systems",
+ "score": 0.6900304
+ }
+ ]
+ },
+ {
+ "query": "microgrid energy systems",
+ "field": "Energy",
+ "rank": 3,
+ "topic_name": "Power Systems Fault Detection",
+ "total_score": 33.43322,
+ "lexical_score": 24.805959,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 18.959587,
+ "matched_keywords": [
+ {
+ "keyword": "Microgrid",
+ "score": 0.75838345
+ },
+ {
+ "keyword": "Smart Grids",
+ "score": 0.6262169
+ }
+ ]
+ },
+ {
+ "query": "biomass combustion processes",
+ "field": "Energy",
+ "rank": 1,
+ "topic_name": "Thermochemical Biomass Conversion Processes",
+ "total_score": 65.808304,
+ "lexical_score": 61.011209,
+ "title_vector_score": 20.529442,
+ "description_vector_score": 7.636585,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Lignocellulosic Biomass",
+ "score": 0.65465546
+ },
+ {
+ "keyword": "Biomass",
+ "score": 0.599425
+ }
+ ]
+ },
+ {
+ "query": "biomass combustion processes",
+ "field": "Energy",
+ "rank": 2,
+ "topic_name": "Combustion and Detonation Processes",
+ "total_score": 54.834595,
+ "lexical_score": 52.4673813,
+ "title_vector_score": 18.612366,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Combustion Dynamics",
+ "score": 0.62533313
+ },
+ {
+ "keyword": "Rotating Detonation Combustors",
+ "score": 0.52789944
+ }
+ ]
+ },
+ {
+ "query": "biomass combustion processes",
+ "field": "Energy",
+ "rank": 3,
+ "topic_name": "Catalysis for Biomass Conversion",
+ "total_score": 42.209084,
+ "lexical_score": 38.96753700000001,
+ "title_vector_score": 19.704895,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Biomass",
+ "score": 0.6002197
+ },
+ {
+ "keyword": "Liquid Fuels",
+ "score": 0.5199712
+ }
+ ]
+ },
+ {
+ "query": "energy consumption forecasting",
+ "field": "Energy",
+ "rank": 1,
+ "topic_name": "Grey System Theory Applications",
+ "total_score": 57.814606,
+ "lexical_score": 52.2945777,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.857254,
+ "matched_keywords": [
+ {
+ "keyword": "Energy Consumption Forecasting",
+ "score": 0.91429013
+ },
+ {
+ "keyword": "Electricity Demand Forecasting",
+ "score": 0.7470347
+ }
+ ]
+ },
+ {
+ "query": "energy consumption forecasting",
+ "field": "Energy",
+ "rank": 2,
+ "topic_name": "Energy Load and Power Forecasting",
+ "total_score": 52.868977,
+ "lexical_score": 67.06294299999999,
+ "title_vector_score": 20.687752,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Electricity Price Forecasting",
+ "score": 0.7356288
+ },
+ {
+ "keyword": "Load Forecasting",
+ "score": 0.68321484
+ }
+ ]
+ },
+ {
+ "query": "energy consumption forecasting",
+ "field": "Energy",
+ "rank": 3,
+ "topic_name": "Building Energy and Comfort Optimization",
+ "total_score": 44.7096,
+ "lexical_score": 43.605075,
+ "title_vector_score": 0.0,
+ "description_vector_score": 7.8614616,
+ "keywords_vector_score": 18.579071,
+ "matched_keywords": [
+ {
+ "keyword": "Building Energy Consumption",
+ "score": 0.7431628
+ },
+ {
+ "keyword": "Energy Efficiency",
+ "score": 0.60400265
+ }
+ ]
+ },
+ {
+ "query": "drug delivery systems",
+ "field": "Pharmacology, Toxicology and Pharmaceutics",
+ "rank": 1,
+ "topic_name": "Advanced Drug Delivery Systems",
+ "total_score": 72.11809,
+ "lexical_score": 82.70734759999999,
+ "title_vector_score": 24.043541,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Drug Delivery",
+ "score": 0.7998937
+ }
+ ]
+ },
+ {
+ "query": "drug delivery systems",
+ "field": "Pharmacology, Toxicology and Pharmaceutics",
+ "rank": 2,
+ "topic_name": "Drug Solubulity and Delivery Systems",
+ "total_score": 65.43563,
+ "lexical_score": 77.5281694,
+ "title_vector_score": 21.54358,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Oral Delivery",
+ "score": 0.61854297
+ },
+ {
+ "keyword": "Drug Solubility",
+ "score": 0.6043269
+ }
+ ]
+ },
+ {
+ "query": "drug delivery systems",
+ "field": "Pharmacology, Toxicology and Pharmaceutics",
+ "rank": 3,
+ "topic_name": "Aerogels and thermal insulation",
+ "total_score": 49.139843,
+ "lexical_score": 37.2165829,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.120625,
+ "matched_keywords": [
+ {
+ "keyword": "Drug Delivery Systems",
+ "score": 0.924825
+ }
+ ]
+ },
+ {
+ "query": "pharmacokinetics modeling analysis",
+ "field": "Pharmacology, Toxicology and Pharmaceutics",
+ "rank": 1,
+ "topic_name": "Antibiotics Pharmacokinetics and Efficacy",
+ "total_score": 42.809654,
+ "lexical_score": 41.846939,
+ "title_vector_score": 17.643433,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Antibiotic Pharmacokinetics",
+ "score": 0.69179153
+ },
+ {
+ "keyword": "Pharmacodynamic",
+ "score": 0.59344226
+ }
+ ]
+ },
+ {
+ "query": "pharmacokinetics modeling analysis",
+ "field": "Pharmacology, Toxicology and Pharmaceutics",
+ "rank": 2,
+ "topic_name": "Analytical Methods in Pharmaceuticals",
+ "total_score": 39.812885,
+ "lexical_score": 6.4010774,
+ "title_vector_score": 17.937164,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 18.122261,
+ "matched_keywords": [
+ {
+ "keyword": "Pharmaceutical Analysis",
+ "score": 0.7248904
+ },
+ {
+ "keyword": "HPLC Method Development",
+ "score": 0.52504474
+ }
+ ]
+ },
+ {
+ "query": "pharmacokinetics modeling analysis",
+ "field": "Pharmacology, Toxicology and Pharmaceutics",
+ "rank": 3,
+ "topic_name": "Pharmaceutical studies and practices",
+ "total_score": 32.697792,
+ "lexical_score": 14.489859,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 18.207932,
+ "matched_keywords": [
+ {
+ "keyword": "Pediatric Pharmacokinetics",
+ "score": 0.72831726
+ },
+ {
+ "keyword": "Population Pharmacokinetics",
+ "score": 0.6983083
+ }
+ ]
+ },
+ {
+ "query": "pharmacodynamics receptor binding",
+ "field": "Pharmacology, Toxicology and Pharmaceutics",
+ "rank": 1,
+ "topic_name": "Medicinal Plant Pharmacodynamics Research",
+ "total_score": 42.095543,
+ "lexical_score": 25.166224,
+ "title_vector_score": 16.929321,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Pharmacological Effects",
+ "score": 0.52826816
+ }
+ ]
+ },
+ {
+ "query": "pharmacodynamics receptor binding",
+ "field": "Pharmacology, Toxicology and Pharmaceutics",
+ "rank": 2,
+ "topic_name": "Pharmacological Receptor Mechanisms and Effects",
+ "total_score": 39.511353,
+ "lexical_score": 35.671534199999996,
+ "title_vector_score": 18.965034,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Sigma-1 Receptor",
+ "score": 0.50286865
+ }
+ ]
+ },
+ {
+ "query": "pharmacodynamics receptor binding",
+ "field": "Pharmacology, Toxicology and Pharmaceutics",
+ "rank": 3,
+ "topic_name": "Receptor Mechanisms and Signaling",
+ "total_score": 39.26471,
+ "lexical_score": 36.6061045,
+ "title_vector_score": 16.76052,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Receptor Activation",
+ "score": 0.5634778
+ },
+ {
+ "keyword": "Pharmacology",
+ "score": 0.5348676
+ }
+ ]
+ },
+ {
+ "query": "toxicology safety assessment",
+ "field": "Pharmacology, Toxicology and Pharmaceutics",
+ "rank": 1,
+ "topic_name": "Dye analysis and toxicity",
+ "total_score": 51.943985,
+ "lexical_score": 19.0395842,
+ "title_vector_score": 18.55133,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 19.52591,
+ "matched_keywords": [
+ {
+ "keyword": "Toxicity Assessment",
+ "score": 0.7810364
+ },
+ {
+ "keyword": "Health Safety",
+ "score": 0.5568021
+ }
+ ]
+ },
+ {
+ "query": "toxicology safety assessment",
+ "field": "Pharmacology, Toxicology and Pharmaceutics",
+ "rank": 2,
+ "topic_name": "Agricultural safety and regulations",
+ "total_score": 49.065372,
+ "lexical_score": 47.7376251,
+ "title_vector_score": 0.0,
+ "description_vector_score": 7.9286,
+ "keywords_vector_score": 20.0401,
+ "matched_keywords": [
+ {
+ "keyword": "Toxicological Assessment",
+ "score": 0.801604
+ },
+ {
+ "keyword": "Pesticide Risk Assessment",
+ "score": 0.66561
+ }
+ ]
+ },
+ {
+ "query": "toxicology safety assessment",
+ "field": "Pharmacology, Toxicology and Pharmaceutics",
+ "rank": 3,
+ "topic_name": "Forensic Toxicology and Drug Analysis",
+ "total_score": 42.2931,
+ "lexical_score": 54.572868400000004,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 19.500637,
+ "matched_keywords": [
+ {
+ "keyword": "Toxicity Assessment",
+ "score": 0.7800255
+ },
+ {
+ "keyword": "Forensic Toxicology",
+ "score": 0.64236575
+ }
+ ]
+ },
+ {
+ "query": "pharmaceutical formulation design",
+ "field": "Pharmacology, Toxicology and Pharmaceutics",
+ "rank": 1,
+ "topic_name": "Synthesis of Tetrazole Derivatives",
+ "total_score": 26.893494,
+ "lexical_score": 10.5232963,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 19.342167,
+ "matched_keywords": [
+ {
+ "keyword": "Drug Design",
+ "score": 0.7736867
+ },
+ {
+ "keyword": "Medicinal Chemistry",
+ "score": 0.6037801
+ }
+ ]
+ },
+ {
+ "query": "pharmaceutical formulation design",
+ "field": "Pharmacology, Toxicology and Pharmaceutics",
+ "rank": 2,
+ "topic_name": "DNA and Nucleic Acid Chemistry",
+ "total_score": 26.413004,
+ "lexical_score": 10.1365578,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 19.342167,
+ "matched_keywords": [
+ {
+ "keyword": "Drug Design",
+ "score": 0.7736867
+ }
+ ]
+ },
+ {
+ "query": "pharmaceutical formulation design",
+ "field": "Pharmacology, Toxicology and Pharmaceutics",
+ "rank": 3,
+ "topic_name": "thermodynamics and calorimetric analyses",
+ "total_score": 26.118912,
+ "lexical_score": 9.8488208,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 19.335812,
+ "matched_keywords": [
+ {
+ "keyword": "Drug Design",
+ "score": 0.77343243
+ }
+ ]
+ },
+ {
+ "query": "bioavailability drug absorption",
+ "field": "Pharmacology, Toxicology and Pharmaceutics",
+ "rank": 1,
+ "topic_name": "Drug Solubulity and Delivery Systems",
+ "total_score": 39.93416,
+ "lexical_score": 51.995928,
+ "title_vector_score": 17.919807,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Gastrointestinal Drug Absorption",
+ "score": 0.75926715
+ },
+ {
+ "keyword": "Drug Solubility",
+ "score": 0.678847
+ }
+ ]
+ },
+ {
+ "query": "bioavailability drug absorption",
+ "field": "Pharmacology, Toxicology and Pharmaceutics",
+ "rank": 2,
+ "topic_name": "Curcumin's Biomedical Applications",
+ "total_score": 35.88679,
+ "lexical_score": 21.300625,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 19.961899,
+ "matched_keywords": [
+ {
+ "keyword": "Bioavailability",
+ "score": 0.7984759
+ },
+ {
+ "keyword": "Pharmacokinetics",
+ "score": 0.6162097
+ }
+ ]
+ },
+ {
+ "query": "bioavailability drug absorption",
+ "field": "Pharmacology, Toxicology and Pharmaceutics",
+ "rank": 3,
+ "topic_name": "Advanced Drug Delivery Systems",
+ "total_score": 35.819168,
+ "lexical_score": 32.1712267,
+ "title_vector_score": 18.186646,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Drug Delivery",
+ "score": 0.61394626
+ },
+ {
+ "keyword": "Mucoadhesive",
+ "score": 0.50372696
+ }
+ ]
+ },
+ {
+ "query": "cytotoxicity assays testing",
+ "field": "Pharmacology, Toxicology and Pharmaceutics",
+ "rank": 1,
+ "topic_name": "Animal testing and alternatives",
+ "total_score": 55.690235,
+ "lexical_score": 68.3015113,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.04147,
+ "matched_keywords": [
+ {
+ "keyword": "Cytotoxicity Assays",
+ "score": 0.9216588
+ },
+ {
+ "keyword": "In Vitro Testing",
+ "score": 0.63500977
+ }
+ ]
+ },
+ {
+ "query": "cytotoxicity assays testing",
+ "field": "Pharmacology, Toxicology and Pharmaceutics",
+ "rank": 2,
+ "topic_name": "Pharmacological Effects and Assays",
+ "total_score": 44.027115,
+ "lexical_score": 25.166224,
+ "title_vector_score": 18.860893,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Immunoassay",
+ "score": 0.6289571
+ }
+ ]
+ },
+ {
+ "query": "cytotoxicity assays testing",
+ "field": "Pharmacology, Toxicology and Pharmaceutics",
+ "rank": 3,
+ "topic_name": "Carcinogens and Genotoxicity Assessment",
+ "total_score": 36.32972,
+ "lexical_score": 10.167407,
+ "title_vector_score": 0.0,
+ "description_vector_score": 7.502499,
+ "keywords_vector_score": 18.659813,
+ "matched_keywords": [
+ {
+ "keyword": "Genotoxicity Testing",
+ "score": 0.74639255
+ },
+ {
+ "keyword": "Micronucleus Assay",
+ "score": 0.67984515
+ }
+ ]
+ },
+ {
+ "query": "clinical pharmacology trials",
+ "field": "Pharmacology, Toxicology and Pharmaceutics",
+ "rank": 1,
+ "topic_name": "Statistical Methods in Clinical Trials",
+ "total_score": 40.658836,
+ "lexical_score": 65.55302800000001,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Phase I Trials",
+ "score": 0.6292877
+ },
+ {
+ "keyword": "Noninferiority Trials",
+ "score": 0.6046321
+ }
+ ]
+ },
+ {
+ "query": "clinical pharmacology trials",
+ "field": "Pharmacology, Toxicology and Pharmaceutics",
+ "rank": 2,
+ "topic_name": "Cancer Treatment and Pharmacology",
+ "total_score": 39.289368,
+ "lexical_score": 19.71646,
+ "title_vector_score": 19.572906,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Neuroprotective Strategies",
+ "score": 0.5566241
+ },
+ {
+ "keyword": "Microtubule-Targeting Agents",
+ "score": 0.5005925
+ }
+ ]
+ },
+ {
+ "query": "clinical pharmacology trials",
+ "field": "Pharmacology, Toxicology and Pharmaceutics",
+ "rank": 3,
+ "topic_name": "Pain Management and Placebo Effect",
+ "total_score": 38.71498,
+ "lexical_score": 26.5372551,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 20.212555,
+ "matched_keywords": [
+ {
+ "keyword": "Clinical Trials",
+ "score": 0.8085022
+ },
+ {
+ "keyword": "Neurobiological Mechanisms",
+ "score": 0.52301663
+ }
+ ]
+ },
+ {
+ "query": "neuropharmacology drug effects",
+ "field": "Pharmacology, Toxicology and Pharmaceutics",
+ "rank": 1,
+ "topic_name": "Alkaloids: synthesis and pharmacology",
+ "total_score": 43.59745,
+ "lexical_score": 28.2744319,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 18.83815,
+ "matched_keywords": [
+ {
+ "keyword": "Pharmacological Effects",
+ "score": 0.75352603
+ },
+ {
+ "keyword": "Neuropharmacology",
+ "score": 0.7389094
+ }
+ ]
+ },
+ {
+ "query": "neuropharmacology drug effects",
+ "field": "Pharmacology, Toxicology and Pharmaceutics",
+ "rank": 2,
+ "topic_name": "Pharmacological Effects and Toxicity Studies",
+ "total_score": 39.916183,
+ "lexical_score": 15.4246505,
+ "title_vector_score": 19.241982,
+ "description_vector_score": 7.7844043,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Antiepileptic Drugs",
+ "score": 0.6208954
+ }
+ ]
+ },
+ {
+ "query": "neuropharmacology drug effects",
+ "field": "Pharmacology, Toxicology and Pharmaceutics",
+ "rank": 3,
+ "topic_name": "Drug-Induced Adverse Reactions",
+ "total_score": 36.664314,
+ "lexical_score": 29.851695000000003,
+ "title_vector_score": 19.031792,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Drug Hypersensitivity",
+ "score": 0.6100235
+ }
+ ]
+ },
+ {
+ "query": "cardiotoxicity drug evaluation",
+ "field": "Pharmacology, Toxicology and Pharmaceutics",
+ "rank": 1,
+ "topic_name": "Drug-Induced Ocular Toxicity",
+ "total_score": 35.359688,
+ "lexical_score": 26.000345,
+ "title_vector_score": 17.727165,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Ocular Toxicity",
+ "score": 0.5534261
+ }
+ ]
+ },
+ {
+ "query": "cardiotoxicity drug evaluation",
+ "field": "Pharmacology, Toxicology and Pharmaceutics",
+ "rank": 2,
+ "topic_name": "Plant-based Medicinal Research",
+ "total_score": 33.658295,
+ "lexical_score": 23.56699,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 17.475033,
+ "matched_keywords": [
+ {
+ "keyword": "Cardiotoxicity",
+ "score": 0.6990013
+ },
+ {
+ "keyword": "Pharmacokinetics",
+ "score": 0.54479855
+ }
+ ]
+ },
+ {
+ "query": "cardiotoxicity drug evaluation",
+ "field": "Pharmacology, Toxicology and Pharmaceutics",
+ "rank": 3,
+ "topic_name": "Chemotherapy-induced cardiotoxicity and mitigation",
+ "total_score": 31.21683,
+ "lexical_score": 29.908892700000003,
+ "title_vector_score": 0.0,
+ "description_vector_score": 8.24007,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Cardiac Dysfunction",
+ "score": 0.5590083
+ },
+ {
+ "keyword": "Cardiovascular Complications",
+ "score": 0.54350156
+ }
+ ]
+ },
+ {
+ "query": "nanoparticle drug carriers",
+ "field": "Pharmacology, Toxicology and Pharmaceutics",
+ "rank": 1,
+ "topic_name": "Nanoparticle-Based Drug Delivery",
+ "total_score": 91.71959,
+ "lexical_score": 61.12897,
+ "title_vector_score": 21.881561,
+ "description_vector_score": 7.788982,
+ "keywords_vector_score": 19.250298,
+ "matched_keywords": [
+ {
+ "keyword": "Nanocarriers",
+ "score": 0.7700119
+ },
+ {
+ "keyword": "Polymeric Nanoparticles",
+ "score": 0.67060727
+ }
+ ]
+ },
+ {
+ "query": "nanoparticle drug carriers",
+ "field": "Pharmacology, Toxicology and Pharmaceutics",
+ "rank": 2,
+ "topic_name": "Advancements in Transdermal Drug Delivery",
+ "total_score": 49.177032,
+ "lexical_score": 51.812940899999994,
+ "title_vector_score": 0.0,
+ "description_vector_score": 7.5282483,
+ "keywords_vector_score": 19.118374,
+ "matched_keywords": [
+ {
+ "keyword": "Nanostructured Lipid Carriers",
+ "score": 0.7647349
+ },
+ {
+ "keyword": "Solid Lipid Nanoparticles",
+ "score": 0.6456464
+ }
+ ]
+ },
+ {
+ "query": "nanoparticle drug carriers",
+ "field": "Pharmacology, Toxicology and Pharmaceutics",
+ "rank": 3,
+ "topic_name": "Advanced Drug Delivery Systems",
+ "total_score": 35.87429,
+ "lexical_score": 32.1712267,
+ "title_vector_score": 18.241768,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Drug Delivery",
+ "score": 0.6124967
+ },
+ {
+ "keyword": "Nanoparticles",
+ "score": 0.60903805
+ }
+ ]
+ },
+ {
+ "query": "pharmacogenomics personalized medicine",
+ "field": "Pharmacology, Toxicology and Pharmaceutics",
+ "rank": 1,
+ "topic_name": "Pharmacogenetics and Drug Metabolism",
+ "total_score": 69.60571,
+ "lexical_score": 33.6656205,
+ "title_vector_score": 19.357567,
+ "description_vector_score": 7.7206993,
+ "keywords_vector_score": 19.309265,
+ "matched_keywords": [
+ {
+ "keyword": "Personalized Medicine",
+ "score": 0.77237064
+ },
+ {
+ "keyword": "Pharmacogenetics",
+ "score": 0.72955066
+ }
+ ]
+ },
+ {
+ "query": "pharmacogenomics personalized medicine",
+ "field": "Pharmacology, Toxicology and Pharmaceutics",
+ "rank": 2,
+ "topic_name": "Technology and Human Factors in Education and Health",
+ "total_score": 40.189102,
+ "lexical_score": 33.4319162,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 19.2859,
+ "matched_keywords": [
+ {
+ "keyword": "Personalized Medicine",
+ "score": 0.77143604
+ },
+ {
+ "keyword": "Medical Innovation",
+ "score": 0.5481046
+ }
+ ]
+ },
+ {
+ "query": "pharmacogenomics personalized medicine",
+ "field": "Pharmacology, Toxicology and Pharmaceutics",
+ "rank": 3,
+ "topic_name": "Acute Lymphoblastic Leukemia research",
+ "total_score": 35.31461,
+ "lexical_score": 23.523758,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 19.787533,
+ "matched_keywords": [
+ {
+ "keyword": "Pharmacogenomics",
+ "score": 0.79150134
+ }
+ ]
+ },
+ {
+ "query": "drug metabolism enzymes",
+ "field": "Pharmacology, Toxicology and Pharmaceutics",
+ "rank": 1,
+ "topic_name": "Pharmacogenetics and Drug Metabolism",
+ "total_score": 83.34195,
+ "lexical_score": 71.25420869999999,
+ "title_vector_score": 20.5859,
+ "description_vector_score": 8.292236,
+ "keywords_vector_score": 20.30983,
+ "matched_keywords": [
+ {
+ "keyword": "Drug Metabolism",
+ "score": 0.8123932
+ },
+ {
+ "keyword": "Enzyme Activities",
+ "score": 0.6778361
+ }
+ ]
+ },
+ {
+ "query": "drug metabolism enzymes",
+ "field": "Pharmacology, Toxicology and Pharmaceutics",
+ "rank": 2,
+ "topic_name": "Amino Acid Enzymes and Metabolism",
+ "total_score": 57.027603,
+ "lexical_score": 42.3787917,
+ "title_vector_score": 18.966751,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Metabolic Disorders",
+ "score": 0.55826443
+ },
+ {
+ "keyword": "Amino Acid Transporters",
+ "score": 0.51580685
+ }
+ ]
+ },
+ {
+ "query": "drug metabolism enzymes",
+ "field": "Pharmacology, Toxicology and Pharmaceutics",
+ "rank": 3,
+ "topic_name": "Glutathione Transferases and Polymorphisms",
+ "total_score": 48.769497,
+ "lexical_score": 42.000048199999995,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 20.30967,
+ "matched_keywords": [
+ {
+ "keyword": "Drug Metabolism",
+ "score": 0.8123868
+ },
+ {
+ "keyword": "Antioxidant Enzymes",
+ "score": 0.661967
+ }
+ ]
+ },
+ {
+ "query": "adverse drug reactions",
+ "field": "Pharmacology, Toxicology and Pharmaceutics",
+ "rank": 1,
+ "topic_name": "Pharmacovigilance and Adverse Drug Reactions",
+ "total_score": 96.321396,
+ "lexical_score": 98.45590290000001,
+ "title_vector_score": 20.716171,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.065544,
+ "matched_keywords": [
+ {
+ "keyword": "Adverse Drug Reactions",
+ "score": 0.88262177
+ },
+ {
+ "keyword": "Drug Safety Surveillance",
+ "score": 0.57667667
+ }
+ ]
+ },
+ {
+ "query": "adverse drug reactions",
+ "field": "Pharmacology, Toxicology and Pharmaceutics",
+ "rank": 2,
+ "topic_name": "Drug-Induced Adverse Reactions",
+ "total_score": 82.47351,
+ "lexical_score": 90.95221550000001,
+ "title_vector_score": 23.832016,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Drug Hypersensitivity",
+ "score": 0.7420438
+ },
+ {
+ "keyword": "Immediate Allergic Reactions",
+ "score": 0.6450297
+ }
+ ]
+ },
+ {
+ "query": "adverse drug reactions",
+ "field": "Pharmacology, Toxicology and Pharmaceutics",
+ "rank": 3,
+ "topic_name": "Pharmaceutical studies and practices",
+ "total_score": 52.03126,
+ "lexical_score": 46.0547061,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.065544,
+ "matched_keywords": [
+ {
+ "keyword": "Adverse Drug Reactions",
+ "score": 0.88262177
+ },
+ {
+ "keyword": "Drug Development",
+ "score": 0.6349017
+ }
+ ]
+ },
+ {
+ "query": "controlled release tablets",
+ "field": "Pharmacology, Toxicology and Pharmaceutics",
+ "rank": 1,
+ "topic_name": "Polymer-Based Agricultural Enhancements",
+ "total_score": 49.04947,
+ "lexical_score": 45.8066695,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 18.754864,
+ "matched_keywords": [
+ {
+ "keyword": "Controlled Release",
+ "score": 0.75019455
+ },
+ {
+ "keyword": "Slow-Release Technology",
+ "score": 0.52718097
+ }
+ ]
+ },
+ {
+ "query": "controlled release tablets",
+ "field": "Pharmacology, Toxicology and Pharmaceutics",
+ "rank": 2,
+ "topic_name": "Clay minerals and soil interactions",
+ "total_score": 29.906227,
+ "lexical_score": 20.3165958,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 16.603851,
+ "matched_keywords": [
+ {
+ "keyword": "Release Control",
+ "score": 0.66415405
+ },
+ {
+ "keyword": "Drug Delivery",
+ "score": 0.5588239
+ }
+ ]
+ },
+ {
+ "query": "controlled release tablets",
+ "field": "Pharmacology, Toxicology and Pharmaceutics",
+ "rank": 3,
+ "topic_name": "Pain Management and Opioid Use",
+ "total_score": 27.071156,
+ "lexical_score": 12.188686,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 14.882469,
+ "matched_keywords": [
+ {
+ "keyword": "Patient-Controlled Analgesia",
+ "score": 0.59529877
+ }
+ ]
+ },
+ {
+ "query": "heavy metal toxicology",
+ "field": "Pharmacology, Toxicology and Pharmaceutics",
+ "rank": 1,
+ "topic_name": "Heavy Metal Exposure and Toxicity",
+ "total_score": 79.84337,
+ "lexical_score": 63.5075933,
+ "title_vector_score": 22.515564,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 20.36832,
+ "matched_keywords": [
+ {
+ "keyword": "Heavy Metal Poisoning",
+ "score": 0.81473285
+ },
+ {
+ "keyword": "Metal Toxicity",
+ "score": 0.78114444
+ }
+ ]
+ },
+ {
+ "query": "heavy metal toxicology",
+ "field": "Pharmacology, Toxicology and Pharmaceutics",
+ "rank": 2,
+ "topic_name": "Heavy Metal Pollution Remediation",
+ "total_score": 61.390175,
+ "lexical_score": 74.594269,
+ "title_vector_score": 20.908813,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Toxicology",
+ "score": 0.7111511
+ },
+ {
+ "keyword": "Heavy Metals",
+ "score": 0.6670151
+ }
+ ]
+ },
+ {
+ "query": "heavy metal toxicology",
+ "field": "Pharmacology, Toxicology and Pharmaceutics",
+ "rank": 3,
+ "topic_name": "Heavy metals in environment",
+ "total_score": 42.56143,
+ "lexical_score": 50.02489,
+ "title_vector_score": 20.846825,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Heavy Metals",
+ "score": 0.66494876
+ },
+ {
+ "keyword": "Toxicity",
+ "score": 0.5722453
+ }
+ ]
+ },
+ {
+ "query": "target identification drug",
+ "field": "Pharmacology, Toxicology and Pharmaceutics",
+ "rank": 1,
+ "topic_name": "Computational Drug Discovery Methods",
+ "total_score": 51.960915,
+ "lexical_score": 66.0631006,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 21.158123,
+ "matched_keywords": [
+ {
+ "keyword": "Drug Target Identification",
+ "score": 0.8463249
+ },
+ {
+ "keyword": "Network Pharmacology",
+ "score": 0.53018826
+ }
+ ]
+ },
+ {
+ "query": "target identification drug",
+ "field": "Pharmacology, Toxicology and Pharmaceutics",
+ "rank": 2,
+ "topic_name": "Drug-Induced Ocular Toxicity",
+ "total_score": 32.81777,
+ "lexical_score": 26.000345,
+ "title_vector_score": 15.185243,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "target identification drug",
+ "field": "Pharmacology, Toxicology and Pharmaceutics",
+ "rank": 3,
+ "topic_name": "Pharmacy and Medical Practices",
+ "total_score": 27.17283,
+ "lexical_score": 15.329875000000001,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 16.737206,
+ "matched_keywords": [
+ {
+ "keyword": "Drug Information",
+ "score": 0.66948825
+ },
+ {
+ "keyword": "Medication Management",
+ "score": 0.51841354
+ }
+ ]
+ },
+ {
+ "query": "natural product pharmacology",
+ "field": "Pharmacology, Toxicology and Pharmaceutics",
+ "rank": 1,
+ "topic_name": "Natural Compound Pharmacology Studies",
+ "total_score": 59.107605,
+ "lexical_score": 47.2058995,
+ "title_vector_score": 22.118073,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Chemopreventive Agents",
+ "score": 0.53192395
+ },
+ {
+ "keyword": "Antioxidant",
+ "score": 0.51625186
+ }
+ ]
+ },
+ {
+ "query": "natural product pharmacology",
+ "field": "Pharmacology, Toxicology and Pharmaceutics",
+ "rank": 2,
+ "topic_name": "Phosphorus compounds and reactions",
+ "total_score": 38.232845,
+ "lexical_score": 28.1954074,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 19.79993,
+ "matched_keywords": [
+ {
+ "keyword": "natural product synthesis",
+ "score": 0.79199725
+ },
+ {
+ "keyword": "green chemistry",
+ "score": 0.55281574
+ }
+ ]
+ },
+ {
+ "query": "natural product pharmacology",
+ "field": "Pharmacology, Toxicology and Pharmaceutics",
+ "rank": 3,
+ "topic_name": "Chromatography in Natural Products",
+ "total_score": 38.18074,
+ "lexical_score": 37.6992987,
+ "title_vector_score": 20.90767,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Natural Product Isolation",
+ "score": 0.67524844
+ },
+ {
+ "keyword": "Phytochemical Profile",
+ "score": 0.64660645
+ }
+ ]
+ },
+ {
+ "query": "dosage form optimization",
+ "field": "Pharmacology, Toxicology and Pharmaceutics",
+ "rank": 1,
+ "topic_name": "solar cell performance optimization",
+ "total_score": 31.471584,
+ "lexical_score": 14.11807,
+ "title_vector_score": 17.353516,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "dosage form optimization",
+ "field": "Pharmacology, Toxicology and Pharmaceutics",
+ "rank": 2,
+ "topic_name": "Age of Information Optimization",
+ "total_score": 30.864857,
+ "lexical_score": 14.11807,
+ "title_vector_score": 16.746788,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "dosage form optimization",
+ "field": "Pharmacology, Toxicology and Pharmaceutics",
+ "rank": 3,
+ "topic_name": "Laser and Thermal Forming Techniques",
+ "total_score": 22.723347,
+ "lexical_score": 10.4534588,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 15.804195,
+ "matched_keywords": [
+ {
+ "keyword": "Process Optimization",
+ "score": 0.6321678
+ }
+ ]
+ },
+ {
+ "query": "endocrine disruptors toxicology",
+ "field": "Pharmacology, Toxicology and Pharmaceutics",
+ "rank": 1,
+ "topic_name": "Effects and risks of endocrine disrupting chemicals",
+ "total_score": 69.22378,
+ "lexical_score": 40.471168600000006,
+ "title_vector_score": 21.827011,
+ "description_vector_score": 8.728828,
+ "keywords_vector_score": 19.096596,
+ "matched_keywords": [
+ {
+ "keyword": "Endocrine-Disrupting Chemicals",
+ "score": 0.76386386
+ },
+ {
+ "keyword": "Toxicity Testing",
+ "score": 0.585851
+ }
+ ]
+ },
+ {
+ "query": "endocrine disruptors toxicology",
+ "field": "Pharmacology, Toxicology and Pharmaceutics",
+ "rank": 2,
+ "topic_name": "Environmental Toxicology and Ecotoxicology",
+ "total_score": 40.589554,
+ "lexical_score": 22.504187,
+ "title_vector_score": 18.085365,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Metal Toxicity",
+ "score": 0.55756503
+ },
+ {
+ "keyword": "Oxidative Stress",
+ "score": 0.51834995
+ }
+ ]
+ },
+ {
+ "query": "endocrine disruptors toxicology",
+ "field": "Pharmacology, Toxicology and Pharmaceutics",
+ "rank": 3,
+ "topic_name": "Reproductive biology and impacts on aquatic species",
+ "total_score": 33.358036,
+ "lexical_score": 21.717347699999998,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 18.540604,
+ "matched_keywords": [
+ {
+ "keyword": "Endocrine Disruption",
+ "score": 0.7416242
+ },
+ {
+ "keyword": "Estrogen Receptors",
+ "score": 0.5616277
+ }
+ ]
+ },
+ {
+ "query": "patient care management",
+ "field": "Nursing",
+ "rank": 1,
+ "topic_name": "Health Services Management and Policy",
+ "total_score": 46.684708,
+ "lexical_score": 44.918022199999996,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 21.73478,
+ "matched_keywords": [
+ {
+ "keyword": "patient care",
+ "score": 0.86939114
+ },
+ {
+ "keyword": "hospital management",
+ "score": 0.7707049
+ }
+ ]
+ },
+ {
+ "query": "patient care management",
+ "field": "Nursing",
+ "rank": 2,
+ "topic_name": "Interprofessional Education and Collaboration",
+ "total_score": 40.589005,
+ "lexical_score": 30.4305578,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 20.115757,
+ "matched_keywords": [
+ {
+ "keyword": "Patient Care",
+ "score": 0.8046303
+ },
+ {
+ "keyword": "Integrated Care",
+ "score": 0.6336746
+ }
+ ]
+ },
+ {
+ "query": "patient care management",
+ "field": "Nursing",
+ "rank": 3,
+ "topic_name": "Healthcare Technology and Patient Monitoring",
+ "total_score": 37.24387,
+ "lexical_score": 41.1226398,
+ "title_vector_score": 19.242744,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Patient Monitoring",
+ "score": 0.70710117
+ },
+ {
+ "keyword": "Healthcare Technology",
+ "score": 0.6187909
+ }
+ ]
+ },
+ {
+ "query": "nursing education curriculum",
+ "field": "Nursing",
+ "rank": 1,
+ "topic_name": "Nursing Education, Practice, and Leadership",
+ "total_score": 64.32041,
+ "lexical_score": 51.795549099999995,
+ "title_vector_score": 18.26828,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 19.577885,
+ "matched_keywords": [
+ {
+ "keyword": "Nursing Education",
+ "score": 0.7831154
+ },
+ {
+ "keyword": "Nurse Leadership",
+ "score": 0.60877734
+ }
+ ]
+ },
+ {
+ "query": "nursing education curriculum",
+ "field": "Nursing",
+ "rank": 2,
+ "topic_name": "Nursing education and management",
+ "total_score": 48.62406,
+ "lexical_score": 45.0824816,
+ "title_vector_score": 19.627075,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Nursing Staffing",
+ "score": 0.58875656
+ },
+ {
+ "keyword": "Healthcare Environment",
+ "score": 0.5072937
+ }
+ ]
+ },
+ {
+ "query": "nursing education curriculum",
+ "field": "Nursing",
+ "rank": 3,
+ "topic_name": "School Health and Nursing Education",
+ "total_score": 45.238247,
+ "lexical_score": 46.332487,
+ "title_vector_score": 18.764,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Health Education",
+ "score": 0.6255493
+ },
+ {
+ "keyword": "School Nursing Practice",
+ "score": 0.58100635
+ }
+ ]
+ },
+ {
+ "query": "clinical nursing practice",
+ "field": "Nursing",
+ "rank": 1,
+ "topic_name": "Clinical practice guidelines implementation",
+ "total_score": 56.70776,
+ "lexical_score": 60.0826995,
+ "title_vector_score": 19.077759,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Clinical Guidelines",
+ "score": 0.59237415
+ },
+ {
+ "keyword": "Practice Recommendations",
+ "score": 0.5542844
+ }
+ ]
+ },
+ {
+ "query": "clinical nursing practice",
+ "field": "Nursing",
+ "rank": 2,
+ "topic_name": "Nursing Education, Practice, and Leadership",
+ "total_score": 53.842064,
+ "lexical_score": 53.2994184,
+ "title_vector_score": 19.166832,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Nursing Education",
+ "score": 0.59255856
+ },
+ {
+ "keyword": "Nursing Advocacy",
+ "score": 0.54868954
+ }
+ ]
+ },
+ {
+ "query": "clinical nursing practice",
+ "field": "Nursing",
+ "rank": 3,
+ "topic_name": "Nursing education and management",
+ "total_score": 45.528225,
+ "lexical_score": 59.401634,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 19.449776,
+ "matched_keywords": [
+ {
+ "keyword": "Clinical Practice",
+ "score": 0.777991
+ },
+ {
+ "keyword": "Nursing Staffing",
+ "score": 0.57392377
+ }
+ ]
+ },
+ {
+ "query": "geriatric nursing care",
+ "field": "Nursing",
+ "rank": 1,
+ "topic_name": "Geriatric Care and Nursing Homes",
+ "total_score": 81.07561,
+ "lexical_score": 89.4656536,
+ "title_vector_score": 24.478416,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Long-Term Care",
+ "score": 0.7164981
+ },
+ {
+ "keyword": "Nursing Home",
+ "score": 0.65453464
+ }
+ ]
+ },
+ {
+ "query": "geriatric nursing care",
+ "field": "Nursing",
+ "rank": 2,
+ "topic_name": "Health, Nursing, Elderly Care",
+ "total_score": 58.74785,
+ "lexical_score": 51.4565797,
+ "title_vector_score": 21.923714,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Primary Care",
+ "score": 0.6014023
+ },
+ {
+ "keyword": "Community-Based Care",
+ "score": 0.59530514
+ }
+ ]
+ },
+ {
+ "query": "geriatric nursing care",
+ "field": "Nursing",
+ "rank": 3,
+ "topic_name": "Nursing care and research",
+ "total_score": 56.595024,
+ "lexical_score": 63.96259860000001,
+ "title_vector_score": 19.77089,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Nursing Interventions",
+ "score": 0.60704166
+ },
+ {
+ "keyword": "Family Caregivers",
+ "score": 0.5818901
+ }
+ ]
+ },
+ {
+ "query": "pediatric nursing interventions",
+ "field": "Nursing",
+ "rank": 1,
+ "topic_name": "Nursing care and research",
+ "total_score": 39.389236,
+ "lexical_score": 48.031397,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 19.672775,
+ "matched_keywords": [
+ {
+ "keyword": "Nursing Interventions",
+ "score": 0.786911
+ }
+ ]
+ },
+ {
+ "query": "pediatric nursing interventions",
+ "field": "Nursing",
+ "rank": 2,
+ "topic_name": "Pediatric Pain Management Techniques",
+ "total_score": 39.008926,
+ "lexical_score": 49.222718,
+ "title_vector_score": 18.899231,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Psychological Interventions",
+ "score": 0.6710904
+ },
+ {
+ "keyword": "Pediatric Pain",
+ "score": 0.6326764
+ }
+ ]
+ },
+ {
+ "query": "pediatric nursing interventions",
+ "field": "Nursing",
+ "rank": 3,
+ "topic_name": "Adolescent and Pediatric Healthcare",
+ "total_score": 38.723587,
+ "lexical_score": 33.88912,
+ "title_vector_score": 18.613892,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Pediatric to Adult Care",
+ "score": 0.59486645
+ },
+ {
+ "keyword": "Special Health Care Needs",
+ "score": 0.5301056
+ }
+ ]
+ },
+ {
+ "query": "critical care nursing",
+ "field": "Nursing",
+ "rank": 1,
+ "topic_name": "Nursing care and research",
+ "total_score": 54.80822,
+ "lexical_score": 63.9625986,
+ "title_vector_score": 17.984085,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Nursing Interventions",
+ "score": 0.6393903
+ },
+ {
+ "keyword": "Chronic Illness",
+ "score": 0.5522817
+ }
+ ]
+ },
+ {
+ "query": "critical care nursing",
+ "field": "Nursing",
+ "rank": 2,
+ "topic_name": "Health, Nursing, Elderly Care",
+ "total_score": 54.579147,
+ "lexical_score": 51.4565797,
+ "title_vector_score": 17.755013,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Primary Care",
+ "score": 0.5690918
+ },
+ {
+ "keyword": "Community-Based Care",
+ "score": 0.5595105
+ }
+ ]
+ },
+ {
+ "query": "critical care nursing",
+ "field": "Nursing",
+ "rank": 3,
+ "topic_name": "Hyperglycemia and glycemic control in critically ill and hospitalized patients",
+ "total_score": 38.729088,
+ "lexical_score": 19.202386,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 19.526703,
+ "matched_keywords": [
+ {
+ "keyword": "Critical Care",
+ "score": 0.78106815
+ },
+ {
+ "keyword": "Intensive Care Unit",
+ "score": 0.65552014
+ }
+ ]
+ },
+ {
+ "query": "palliative nursing care",
+ "field": "Nursing",
+ "rank": 1,
+ "topic_name": "Palliative and Oncologic Care",
+ "total_score": 63.786507,
+ "lexical_score": 91.1076409,
+ "title_vector_score": 23.117523,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Palliative Care",
+ "score": 0.82601804
+ },
+ {
+ "keyword": "Nursing",
+ "score": 0.60494995
+ }
+ ]
+ },
+ {
+ "query": "palliative nursing care",
+ "field": "Nursing",
+ "rank": 2,
+ "topic_name": "Palliative Care and End-of-Life Issues",
+ "total_score": 59.40927,
+ "lexical_score": 69.9007324,
+ "title_vector_score": 20.114403,
+ "description_vector_score": 7.667294,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Palliative Care",
+ "score": 0.8251216
+ },
+ {
+ "keyword": "Advance Care Planning",
+ "score": 0.63307065
+ }
+ ]
+ },
+ {
+ "query": "palliative nursing care",
+ "field": "Nursing",
+ "rank": 3,
+ "topic_name": "Health, Nursing, Elderly Care",
+ "total_score": 55.99459,
+ "lexical_score": 51.4565797,
+ "title_vector_score": 19.170456,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Primary Care",
+ "score": 0.598217
+ },
+ {
+ "keyword": "Community-Based Care",
+ "score": 0.59243774
+ }
+ ]
+ },
+ {
+ "query": "nursing leadership styles",
+ "field": "Nursing",
+ "rank": 1,
+ "topic_name": "Nursing Education, Practice, and Leadership",
+ "total_score": 49.986107,
+ "lexical_score": 63.8392714,
+ "title_vector_score": 16.509132,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Nurse Leadership",
+ "score": 0.75257236
+ },
+ {
+ "keyword": "Nursing Advocacy",
+ "score": 0.5387268
+ }
+ ]
+ },
+ {
+ "query": "nursing leadership styles",
+ "field": "Nursing",
+ "rank": 2,
+ "topic_name": "Interdisciplinary Studies and Sociocultural Dynamics",
+ "total_score": 40.78334,
+ "lexical_score": 31.3185743,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 19.661015,
+ "matched_keywords": [
+ {
+ "keyword": "Leadership Styles",
+ "score": 0.78644055
+ }
+ ]
+ },
+ {
+ "query": "nursing leadership styles",
+ "field": "Nursing",
+ "rank": 3,
+ "topic_name": "Healthcare during COVID-19 Pandemic",
+ "total_score": 40.344643,
+ "lexical_score": 31.9841308,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 19.661015,
+ "matched_keywords": [
+ {
+ "keyword": "Leadership Styles",
+ "score": 0.78644055
+ }
+ ]
+ },
+ {
+ "query": "community health nursing",
+ "field": "Nursing",
+ "rank": 1,
+ "topic_name": "Community Health and Development",
+ "total_score": 53.07514,
+ "lexical_score": 52.8665674,
+ "title_vector_score": 22.01107,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Community Empowerment",
+ "score": 0.5846812
+ },
+ {
+ "keyword": "Health Promotion",
+ "score": 0.54018277
+ }
+ ]
+ },
+ {
+ "query": "community health nursing",
+ "field": "Nursing",
+ "rank": 2,
+ "topic_name": "School Health and Nursing Education",
+ "total_score": 46.164494,
+ "lexical_score": 52.4645984,
+ "title_vector_score": 18.572502,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "School Nursing Practice",
+ "score": 0.6119626
+ },
+ {
+ "keyword": "Health Education",
+ "score": 0.57503635
+ }
+ ]
+ },
+ {
+ "query": "community health nursing",
+ "field": "Nursing",
+ "rank": 3,
+ "topic_name": "Child and Adolescent Health",
+ "total_score": 34.213715,
+ "lexical_score": 32.221646699999994,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 19.680882,
+ "matched_keywords": [
+ {
+ "keyword": "Community Health",
+ "score": 0.78723526
+ },
+ {
+ "keyword": "Public Health",
+ "score": 0.61291
+ }
+ ]
+ },
+ {
+ "query": "evidence based nursing",
+ "field": "Nursing",
+ "rank": 1,
+ "topic_name": "Nursing Diagnosis and Documentation",
+ "total_score": 38.69332,
+ "lexical_score": 44.893301,
+ "title_vector_score": 18.97686,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Nursing Documentation",
+ "score": 0.6591632
+ },
+ {
+ "keyword": "Big Data in Nursing",
+ "score": 0.64358646
+ }
+ ]
+ },
+ {
+ "query": "evidence based nursing",
+ "field": "Nursing",
+ "rank": 2,
+ "topic_name": "Nursing care and research",
+ "total_score": 37.939728,
+ "lexical_score": 34.704205,
+ "title_vector_score": 18.223267,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Nursing Interventions",
+ "score": 0.6589152
+ },
+ {
+ "keyword": "Caregiver Education",
+ "score": 0.5311801
+ }
+ ]
+ },
+ {
+ "query": "evidence based nursing",
+ "field": "Nursing",
+ "rank": 3,
+ "topic_name": "Clinical practice guidelines implementation",
+ "total_score": 35.62123,
+ "lexical_score": 24.727590199999998,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 19.330566,
+ "matched_keywords": [
+ {
+ "keyword": "Evidence-Based Medicine",
+ "score": 0.7732226
+ },
+ {
+ "keyword": "Healthcare Evaluation",
+ "score": 0.58562213
+ }
+ ]
+ },
+ {
+ "query": "mental health nursing",
+ "field": "Nursing",
+ "rank": 1,
+ "topic_name": "Mental Health and Psychiatry",
+ "total_score": 49.839153,
+ "lexical_score": 35.939574500000006,
+ "title_vector_score": 21.886711,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Psychiatric Disorders",
+ "score": 0.5969518
+ },
+ {
+ "keyword": "Neuroscience",
+ "score": 0.5339966
+ }
+ ]
+ },
+ {
+ "query": "mental health nursing",
+ "field": "Nursing",
+ "rank": 2,
+ "topic_name": "Psychology and Mental Health",
+ "total_score": 49.720707,
+ "lexical_score": 51.5727679,
+ "title_vector_score": 21.768265,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Mental Health",
+ "score": 0.73479587
+ },
+ {
+ "keyword": "Psychopathology",
+ "score": 0.54523724
+ }
+ ]
+ },
+ {
+ "query": "mental health nursing",
+ "field": "Nursing",
+ "rank": 3,
+ "topic_name": "Psychiatry, Mental Health, Neuroscience",
+ "total_score": 48.357906,
+ "lexical_score": 27.952443,
+ "title_vector_score": 20.405464,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "maternal newborn nursing",
+ "field": "Nursing",
+ "rank": 1,
+ "topic_name": "Maternal and Neonatal Healthcare",
+ "total_score": 44.2761,
+ "lexical_score": 38.1473096,
+ "title_vector_score": 23.716812,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Maternal Health",
+ "score": 0.6792857
+ },
+ {
+ "keyword": "Neonatal Mortality",
+ "score": 0.63846844
+ }
+ ]
+ },
+ {
+ "query": "maternal newborn nursing",
+ "field": "Nursing",
+ "rank": 2,
+ "topic_name": "Maternal and fetal healthcare",
+ "total_score": 42.260605,
+ "lexical_score": 37.285181,
+ "title_vector_score": 21.701317,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Maternal Mortality",
+ "score": 0.62984085
+ },
+ {
+ "keyword": "Severe Obstetric Morbidity",
+ "score": 0.60674924
+ }
+ ]
+ },
+ {
+ "query": "maternal newborn nursing",
+ "field": "Nursing",
+ "rank": 3,
+ "topic_name": "Neonatal and Maternal Infections",
+ "total_score": 41.147667,
+ "lexical_score": 20.55929,
+ "title_vector_score": 20.588379,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Neonatal Sepsis",
+ "score": 0.6424739
+ },
+ {
+ "keyword": "Antibiotic Prophylaxis",
+ "score": 0.5249049
+ }
+ ]
+ },
+ {
+ "query": "wound care management",
+ "field": "Nursing",
+ "rank": 1,
+ "topic_name": "Wound Healing and Treatments",
+ "total_score": 45.01455,
+ "lexical_score": 46.757960499999996,
+ "title_vector_score": 19.848328,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Wound Healing",
+ "score": 0.6649297
+ },
+ {
+ "keyword": "Chronic Wounds",
+ "score": 0.6111234
+ }
+ ]
+ },
+ {
+ "query": "wound care management",
+ "field": "Nursing",
+ "rank": 2,
+ "topic_name": "Dermatologic Treatments and Research",
+ "total_score": 34.46524,
+ "lexical_score": 17.8132354,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 18.58511,
+ "matched_keywords": [
+ {
+ "keyword": "Scar Management",
+ "score": 0.7434044
+ },
+ {
+ "keyword": "Wound Healing",
+ "score": 0.6618144
+ }
+ ]
+ },
+ {
+ "query": "wound care management",
+ "field": "Nursing",
+ "rank": 3,
+ "topic_name": "Pain Management and Treatment",
+ "total_score": 30.52274,
+ "lexical_score": 10.204442,
+ "title_vector_score": 20.318298,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "nurse practitioner roles",
+ "field": "Nursing",
+ "rank": 1,
+ "topic_name": "Nursing Roles and Practices",
+ "total_score": 71.701096,
+ "lexical_score": 44.279913,
+ "title_vector_score": 21.762161,
+ "description_vector_score": 8.598843,
+ "keywords_vector_score": 17.778778,
+ "matched_keywords": [
+ {
+ "keyword": "Nurse Practitioners",
+ "score": 0.7111511
+ },
+ {
+ "keyword": "Advanced Practice Nursing",
+ "score": 0.5715777
+ }
+ ]
+ },
+ {
+ "query": "nurse practitioner roles",
+ "field": "Nursing",
+ "rank": 2,
+ "topic_name": "Gender Roles and Identity Studies",
+ "total_score": 21.511477,
+ "lexical_score": 21.511477,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Gender Role Norms",
+ "score": 0.52896756
+ }
+ ]
+ },
+ {
+ "query": "nurse practitioner roles",
+ "field": "Nursing",
+ "rank": 3,
+ "topic_name": "Nursing Diagnosis and Documentation",
+ "total_score": 15.574914,
+ "lexical_score": 0.0,
+ "title_vector_score": 15.574914,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Nursing Diagnoses",
+ "score": 0.5661481
+ },
+ {
+ "keyword": "Nursing Documentation",
+ "score": 0.55466586
+ }
+ ]
+ },
+ {
+ "query": "patient safety protocols",
+ "field": "Nursing",
+ "rank": 1,
+ "topic_name": "Patient Safety and Medication Errors",
+ "total_score": 52.443314,
+ "lexical_score": 62.0785481,
+ "title_vector_score": 20.198517,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Patient Safety Culture",
+ "score": 0.74616367
+ },
+ {
+ "keyword": "Surgical Safety Checklist",
+ "score": 0.6713066
+ }
+ ]
+ },
+ {
+ "query": "patient safety protocols",
+ "field": "Nursing",
+ "rank": 2,
+ "topic_name": "Infection Control in Healthcare",
+ "total_score": 36.959175,
+ "lexical_score": 23.990392000000003,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 20.523613,
+ "matched_keywords": [
+ {
+ "keyword": "Patient Safety",
+ "score": 0.8209445
+ },
+ {
+ "keyword": "Guidelines",
+ "score": 0.56422806
+ }
+ ]
+ },
+ {
+ "query": "patient safety protocols",
+ "field": "Nursing",
+ "rank": 3,
+ "topic_name": "Simulation-Based Education in Healthcare",
+ "total_score": 36.948204,
+ "lexical_score": 25.0432987,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 20.512646,
+ "matched_keywords": [
+ {
+ "keyword": "Patient Safety",
+ "score": 0.8205058
+ },
+ {
+ "keyword": "Virtual Patients",
+ "score": 0.5883115
+ }
+ ]
+ },
+ {
+ "query": "nursing burnout prevention",
+ "field": "Nursing",
+ "rank": 1,
+ "topic_name": "Occupational Health and Burnout",
+ "total_score": 40.682163,
+ "lexical_score": 50.279934,
+ "title_vector_score": 18.376236,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Nursing",
+ "score": 0.5886676
+ },
+ {
+ "keyword": "Burnout Syndrome",
+ "score": 0.5584361
+ }
+ ]
+ },
+ {
+ "query": "nursing burnout prevention",
+ "field": "Nursing",
+ "rank": 2,
+ "topic_name": "Stress and Burnout Research",
+ "total_score": 40.473648,
+ "lexical_score": 40.043901,
+ "title_vector_score": 18.75904,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Burnout",
+ "score": 0.57270306
+ },
+ {
+ "keyword": "Work Stress",
+ "score": 0.53610104
+ }
+ ]
+ },
+ {
+ "query": "nursing burnout prevention",
+ "field": "Nursing",
+ "rank": 3,
+ "topic_name": "Healthcare professionals’ stress and burnout",
+ "total_score": 38.278534,
+ "lexical_score": 41.855937,
+ "title_vector_score": 18.453102,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Physician Burnout",
+ "score": 0.62590533
+ },
+ {
+ "keyword": "Work-Life Balance",
+ "score": 0.5338122
+ }
+ ]
+ },
+ {
+ "query": "oncology nursing practices",
+ "field": "Nursing",
+ "rank": 1,
+ "topic_name": "Nursing Roles and Practices",
+ "total_score": 53.80638,
+ "lexical_score": 43.3970165,
+ "title_vector_score": 19.844894,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Advanced Practice Nursing",
+ "score": 0.6297328
+ },
+ {
+ "keyword": "Nurse Practitioners",
+ "score": 0.58084744
+ }
+ ]
+ },
+ {
+ "query": "oncology nursing practices",
+ "field": "Nursing",
+ "rank": 2,
+ "topic_name": "Palliative and Oncologic Care",
+ "total_score": 45.21645,
+ "lexical_score": 35.735413699999995,
+ "title_vector_score": 19.898872,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Pediatric Oncology",
+ "score": 0.65716046
+ },
+ {
+ "keyword": "Nursing",
+ "score": 0.59013623
+ }
+ ]
+ },
+ {
+ "query": "oncology nursing practices",
+ "field": "Nursing",
+ "rank": 3,
+ "topic_name": "Head and Neck Surgical Oncology",
+ "total_score": 38.107216,
+ "lexical_score": 18.77063,
+ "title_vector_score": 19.336586,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Endoscopic Surgery",
+ "score": 0.5029004
+ },
+ {
+ "keyword": "Sinonasal Malignancies",
+ "score": 0.5012601
+ }
+ ]
+ },
+ {
+ "query": "chronic disease management",
+ "field": "Nursing",
+ "rank": 1,
+ "topic_name": "Chronic Disease Management Strategies",
+ "total_score": 69.181656,
+ "lexical_score": 58.5314781,
+ "title_vector_score": 24.107437,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Chronic Conditions",
+ "score": 0.61485547
+ },
+ {
+ "keyword": "Multimorbidity",
+ "score": 0.592247
+ }
+ ]
+ },
+ {
+ "query": "chronic disease management",
+ "field": "Nursing",
+ "rank": 2,
+ "topic_name": "Peripheral Artery Disease Management",
+ "total_score": 44.90227,
+ "lexical_score": 35.904097300000004,
+ "title_vector_score": 20.387344,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Peripheral Arterial Disease",
+ "score": 0.57848233
+ },
+ {
+ "keyword": "Diabetes",
+ "score": 0.5624797
+ }
+ ]
+ },
+ {
+ "query": "chronic disease management",
+ "field": "Nursing",
+ "rank": 3,
+ "topic_name": "Trade Secret Protection Methods",
+ "total_score": 42.451958,
+ "lexical_score": 22.1568156,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.510593,
+ "matched_keywords": [
+ {
+ "keyword": "Chronic Disease Management",
+ "score": 0.9004237
+ },
+ {
+ "keyword": "Healthcare Knowledge Management",
+ "score": 0.60086185
+ }
+ ]
+ },
+ {
+ "query": "telehealth nursing care",
+ "field": "Nursing",
+ "rank": 1,
+ "topic_name": "Health, Nursing, Elderly Care",
+ "total_score": 56.295,
+ "lexical_score": 51.4565797,
+ "title_vector_score": 19.470863,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Community-Based Care",
+ "score": 0.57653683
+ },
+ {
+ "keyword": "Primary Care",
+ "score": 0.55468494
+ }
+ ]
+ },
+ {
+ "query": "telehealth nursing care",
+ "field": "Nursing",
+ "rank": 2,
+ "topic_name": "Nursing care and research",
+ "total_score": 55.35105,
+ "lexical_score": 63.96259860000001,
+ "title_vector_score": 18.526917,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Nursing Interventions",
+ "score": 0.5854123
+ },
+ {
+ "keyword": "Self-Care",
+ "score": 0.5186615
+ }
+ ]
+ },
+ {
+ "query": "telehealth nursing care",
+ "field": "Nursing",
+ "rank": 3,
+ "topic_name": "Telemedicine and Telehealth Implementation",
+ "total_score": 44.199722,
+ "lexical_score": 59.2653453,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 19.033497,
+ "matched_keywords": [
+ {
+ "keyword": "Telehealth",
+ "score": 0.76133984
+ },
+ {
+ "keyword": "Virtual Care",
+ "score": 0.68768436
+ }
+ ]
+ },
+ {
+ "query": "infection control nursing",
+ "field": "Nursing",
+ "rank": 1,
+ "topic_name": "Infection Control in Healthcare",
+ "total_score": 76.61003,
+ "lexical_score": 56.9724553,
+ "title_vector_score": 23.715668,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 18.64996,
+ "matched_keywords": [
+ {
+ "keyword": "Infection Control",
+ "score": 0.7459984
+ },
+ {
+ "keyword": "Healthcare-Associated Infections",
+ "score": 0.61456937
+ }
+ ]
+ },
+ {
+ "query": "infection control nursing",
+ "field": "Nursing",
+ "rank": 2,
+ "topic_name": "Infection Control and Ventilation",
+ "total_score": 55.99607,
+ "lexical_score": 34.2444,
+ "title_vector_score": 21.75167,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Infectious Aerosols",
+ "score": 0.5700137
+ },
+ {
+ "keyword": "Healthcare Settings",
+ "score": 0.5136388
+ }
+ ]
+ },
+ {
+ "query": "infection control nursing",
+ "field": "Nursing",
+ "rank": 3,
+ "topic_name": "Healthcare Regulation",
+ "total_score": 44.669773,
+ "lexical_score": 39.1871306,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 18.666649,
+ "matched_keywords": [
+ {
+ "keyword": "Infection Control",
+ "score": 0.74666595
+ },
+ {
+ "keyword": "Nursing Care",
+ "score": 0.61876553
+ }
+ ]
+ },
+ {
+ "query": "process systems engineering",
+ "field": "Chemical Engineering",
+ "rank": 1,
+ "topic_name": "Engineering and Test Systems",
+ "total_score": 41.342052,
+ "lexical_score": 31.6016404,
+ "title_vector_score": 18.508987,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Aerospace Systems",
+ "score": 0.5529048
+ },
+ {
+ "keyword": "System Health Management",
+ "score": 0.5524597
+ }
+ ]
+ },
+ {
+ "query": "process systems engineering",
+ "field": "Chemical Engineering",
+ "rank": 2,
+ "topic_name": "Chemical and Environmental Engineering Research",
+ "total_score": 37.565926,
+ "lexical_score": 43.6951489,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 17.055256,
+ "matched_keywords": [
+ {
+ "keyword": "Process Technology",
+ "score": 0.68221027
+ },
+ {
+ "keyword": "Chemical Engineering",
+ "score": 0.60941315
+ }
+ ]
+ },
+ {
+ "query": "process systems engineering",
+ "field": "Chemical Engineering",
+ "rank": 3,
+ "topic_name": "Business Process Modeling and Analysis",
+ "total_score": 35.379566,
+ "lexical_score": 42.278245,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 16.608936,
+ "matched_keywords": [
+ {
+ "keyword": "Process Models",
+ "score": 0.6643575
+ },
+ {
+ "keyword": "Process Modeling Languages",
+ "score": 0.6173541
+ }
+ ]
+ },
+ {
+ "query": "chemical reactor design",
+ "field": "Chemical Engineering",
+ "rank": 1,
+ "topic_name": "Chemical Reaction Mechanisms",
+ "total_score": 35.333206,
+ "lexical_score": 17.471954,
+ "title_vector_score": 17.861252,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Organic Synthesis",
+ "score": 0.5221837
+ }
+ ]
+ },
+ {
+ "query": "chemical reactor design",
+ "field": "Chemical Engineering",
+ "rank": 2,
+ "topic_name": "Chemical Synthesis and Reactions",
+ "total_score": 33.400887,
+ "lexical_score": 15.807047,
+ "title_vector_score": 17.593842,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "chemical reactor design",
+ "field": "Chemical Engineering",
+ "rank": 3,
+ "topic_name": "Chemistry and Chemical Engineering",
+ "total_score": 32.20574,
+ "lexical_score": 19.7135864,
+ "title_vector_score": 16.398697,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Sustainable Chemistry",
+ "score": 0.50267154
+ }
+ ]
+ },
+ {
+ "query": "transport phenomena fluid",
+ "field": "Chemical Engineering",
+ "rank": 1,
+ "topic_name": "Quantum and electron transport phenomena",
+ "total_score": 48.97747,
+ "lexical_score": 31.717799,
+ "title_vector_score": 17.259674,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "transport phenomena fluid",
+ "field": "Chemical Engineering",
+ "rank": 2,
+ "topic_name": "Fluid Dynamics and Mixing",
+ "total_score": 35.32791,
+ "lexical_score": 18.038483,
+ "title_vector_score": 17.289429,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Mass Transfer Coefficients",
+ "score": 0.58035785
+ },
+ {
+ "keyword": "Oxygen Transfer",
+ "score": 0.5452118
+ }
+ ]
+ },
+ {
+ "query": "transport phenomena fluid",
+ "field": "Chemical Engineering",
+ "rank": 3,
+ "topic_name": "Cavitation Phenomena in Pumps",
+ "total_score": 34.328056,
+ "lexical_score": 31.495754500000004,
+ "title_vector_score": 17.220383,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Fluid-Structure Interaction",
+ "score": 0.56818265
+ },
+ {
+ "keyword": "Vortex Dynamics",
+ "score": 0.52301663
+ }
+ ]
+ },
+ {
+ "query": "separation processes distillation",
+ "field": "Chemical Engineering",
+ "rank": 1,
+ "topic_name": "Membrane Separation Technologies",
+ "total_score": 59.267677,
+ "lexical_score": 45.308879,
+ "title_vector_score": 18.815498,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 17.72744,
+ "matched_keywords": [
+ {
+ "keyword": "Membrane Distillation",
+ "score": 0.70909756
+ },
+ {
+ "keyword": "Desalination",
+ "score": 0.5398712
+ }
+ ]
+ },
+ {
+ "query": "separation processes distillation",
+ "field": "Chemical Engineering",
+ "rank": 2,
+ "topic_name": "Extraction and Separation Processes",
+ "total_score": 57.424828,
+ "lexical_score": 47.899849700000004,
+ "title_vector_score": 21.727448,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Hydrometallurgical Processes",
+ "score": 0.54740524
+ }
+ ]
+ },
+ {
+ "query": "separation processes distillation",
+ "field": "Chemical Engineering",
+ "rank": 3,
+ "topic_name": "Minerals Flotation and Separation Techniques",
+ "total_score": 36.248314,
+ "lexical_score": 21.9560806,
+ "title_vector_score": 17.477684,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "catalytic reaction engineering",
+ "field": "Chemical Engineering",
+ "rank": 1,
+ "topic_name": "Catalytic Alkyne Reactions",
+ "total_score": 42.945297,
+ "lexical_score": 22.227789,
+ "title_vector_score": 20.717506,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Homogeneous Catalysis",
+ "score": 0.6309535
+ },
+ {
+ "keyword": "Transition Metal Catalysis",
+ "score": 0.6229744
+ }
+ ]
+ },
+ {
+ "query": "catalytic reaction engineering",
+ "field": "Chemical Engineering",
+ "rank": 2,
+ "topic_name": "Synthesis and Catalytic Reactions",
+ "total_score": 40.723633,
+ "lexical_score": 36.7463955,
+ "title_vector_score": 20.613937,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Catalytic",
+ "score": 0.6452014
+ },
+ {
+ "keyword": "Metal-Catalyzed",
+ "score": 0.55738705
+ }
+ ]
+ },
+ {
+ "query": "catalytic reaction engineering",
+ "field": "Chemical Engineering",
+ "rank": 3,
+ "topic_name": "Catalytic Cross-Coupling Reactions",
+ "total_score": 39.602875,
+ "lexical_score": 34.1886535,
+ "title_vector_score": 19.49318,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Transition Metal Catalysis",
+ "score": 0.6227328
+ },
+ {
+ "keyword": "Homogeneous and Heterogeneous Catalysis",
+ "score": 0.5845731
+ }
+ ]
+ },
+ {
+ "query": "bioprocess engineering fermentation",
+ "field": "Chemical Engineering",
+ "rank": 1,
+ "topic_name": "Fermentation and Sensory Analysis",
+ "total_score": 43.754555,
+ "lexical_score": 43.8520714,
+ "title_vector_score": 18.588333,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Fermentation",
+ "score": 0.6551768
+ },
+ {
+ "keyword": "Microbial Modulation",
+ "score": 0.5211983
+ }
+ ]
+ },
+ {
+ "query": "bioprocess engineering fermentation",
+ "field": "Chemical Engineering",
+ "rank": 2,
+ "topic_name": "Microbial Metabolic Engineering and Bioproduction",
+ "total_score": 30.425133,
+ "lexical_score": 21.5552821,
+ "title_vector_score": 19.011955,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Metabolic Engineering",
+ "score": 0.64874905
+ },
+ {
+ "keyword": "Biorefineries",
+ "score": 0.592158
+ }
+ ]
+ },
+ {
+ "query": "bioprocess engineering fermentation",
+ "field": "Chemical Engineering",
+ "rank": 3,
+ "topic_name": "Food and Agricultural Sciences",
+ "total_score": 28.829227,
+ "lexical_score": 17.7022404,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 17.481392,
+ "matched_keywords": [
+ {
+ "keyword": "Fermentation Process",
+ "score": 0.69925565
+ },
+ {
+ "keyword": "Protein Profile",
+ "score": 0.5208295
+ }
+ ]
+ },
+ {
+ "query": "thermodynamics chemical mixtures",
+ "field": "Chemical Engineering",
+ "rank": 1,
+ "topic_name": "Thermodynamic properties of mixtures",
+ "total_score": 57.01,
+ "lexical_score": 48.598212000000004,
+ "title_vector_score": 23.918037,
+ "description_vector_score": 7.925739,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Thermodynamic Properties",
+ "score": 0.7233518
+ },
+ {
+ "keyword": "Binary Mixtures",
+ "score": 0.6418063
+ }
+ ]
+ },
+ {
+ "query": "thermodynamics chemical mixtures",
+ "field": "Chemical Engineering",
+ "rank": 2,
+ "topic_name": "thermodynamics and calorimetric analyses",
+ "total_score": 39.4507,
+ "lexical_score": 39.776785000000004,
+ "title_vector_score": 18.89141,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Thermodynamics",
+ "score": 0.6795718
+ },
+ {
+ "keyword": "Enzyme Kinetics",
+ "score": 0.5719147
+ }
+ ]
+ },
+ {
+ "query": "thermodynamics chemical mixtures",
+ "field": "Chemical Engineering",
+ "rank": 3,
+ "topic_name": "Phase Equilibria and Thermodynamics",
+ "total_score": 38.66073,
+ "lexical_score": 20.55929,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 18.101437,
+ "matched_keywords": [
+ {
+ "keyword": "Thermodynamic Properties",
+ "score": 0.7240575
+ },
+ {
+ "keyword": "Supercritical Fluids",
+ "score": 0.52077866
+ }
+ ]
+ },
+ {
+ "query": "heat exchanger network",
+ "field": "Chemical Engineering",
+ "rank": 1,
+ "topic_name": "Heat Transfer and Optimization",
+ "total_score": 54.165573,
+ "lexical_score": 40.554197,
+ "title_vector_score": 16.75747,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 18.90332,
+ "matched_keywords": [
+ {
+ "keyword": "Heat Exchangers",
+ "score": 0.7561328
+ },
+ {
+ "keyword": "Heat Transfer",
+ "score": 0.6287155
+ }
+ ]
+ },
+ {
+ "query": "heat exchanger network",
+ "field": "Chemical Engineering",
+ "rank": 2,
+ "topic_name": "Heat Transfer Mechanisms",
+ "total_score": 38.503918,
+ "lexical_score": 35.1576587,
+ "title_vector_score": 18.05008,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Heat Transfer",
+ "score": 0.6280988
+ },
+ {
+ "keyword": "Thermal Performance",
+ "score": 0.5262718
+ }
+ ]
+ },
+ {
+ "query": "heat exchanger network",
+ "field": "Chemical Engineering",
+ "rank": 3,
+ "topic_name": "Heat Transfer and Boiling Studies",
+ "total_score": 35.70822,
+ "lexical_score": 48.1193535,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 18.813354,
+ "matched_keywords": [
+ {
+ "keyword": "Heat Exchangers",
+ "score": 0.7525342
+ },
+ {
+ "keyword": "Heat Transfer",
+ "score": 0.6280988
+ }
+ ]
+ },
+ {
+ "query": "polymer processing extrusion",
+ "field": "Chemical Engineering",
+ "rank": 1,
+ "topic_name": "Polymer crystallization and properties",
+ "total_score": 52.78382,
+ "lexical_score": 41.3124872,
+ "title_vector_score": 18.007736,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 16.513092,
+ "matched_keywords": [
+ {
+ "keyword": "Polymer Crystallization",
+ "score": 0.6605237
+ },
+ {
+ "keyword": "Polymer Blends",
+ "score": 0.6117401
+ }
+ ]
+ },
+ {
+ "query": "polymer processing extrusion",
+ "field": "Chemical Engineering",
+ "rank": 2,
+ "topic_name": "Polymer Science and PVC",
+ "total_score": 36.471,
+ "lexical_score": 18.26299,
+ "title_vector_score": 18.208008,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "polymer processing extrusion",
+ "field": "Chemical Engineering",
+ "rank": 3,
+ "topic_name": "Polymer Science and Applications",
+ "total_score": 35.924355,
+ "lexical_score": 36.349867599999996,
+ "title_vector_score": 17.661362,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Polymer Materials",
+ "score": 0.6080335
+ },
+ {
+ "keyword": "Polymer Nanocomposites",
+ "score": 0.56104916
+ }
+ ]
+ },
+ {
+ "query": "mass transfer operations",
+ "field": "Chemical Engineering",
+ "rank": 1,
+ "topic_name": "Fluid Dynamics and Mixing",
+ "total_score": 37.52607,
+ "lexical_score": 32.3133554,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 16.898376,
+ "matched_keywords": [
+ {
+ "keyword": "Mass Transfer Coefficients",
+ "score": 0.6759351
+ },
+ {
+ "keyword": "Oxygen Transfer",
+ "score": 0.60920334
+ }
+ ]
+ },
+ {
+ "query": "mass transfer operations",
+ "field": "Chemical Engineering",
+ "rank": 2,
+ "topic_name": "Heat Transfer Mechanisms",
+ "total_score": 37.31368,
+ "lexical_score": 33.543582,
+ "title_vector_score": 17.37526,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Heat Transfer",
+ "score": 0.58020526
+ }
+ ]
+ },
+ {
+ "query": "mass transfer operations",
+ "field": "Chemical Engineering",
+ "rank": 3,
+ "topic_name": "Wireless Power Transfer Systems",
+ "total_score": 35.056305,
+ "lexical_score": 34.424577,
+ "title_vector_score": 17.017822,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Wireless Power Transfer",
+ "score": 0.560229
+ },
+ {
+ "keyword": "Inductive Power Transfer",
+ "score": 0.52804565
+ }
+ ]
+ },
+ {
+ "query": "process safety management",
+ "field": "Chemical Engineering",
+ "rank": 1,
+ "topic_name": "Safety and Risk Management",
+ "total_score": 47.37625,
+ "lexical_score": 47.755150300000004,
+ "title_vector_score": 21.570854,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Emergency Management",
+ "score": 0.61999255
+ },
+ {
+ "keyword": "Traffic Safety",
+ "score": 0.60740405
+ }
+ ]
+ },
+ {
+ "query": "process safety management",
+ "field": "Chemical Engineering",
+ "rank": 2,
+ "topic_name": "Chemical Safety and Risk Management",
+ "total_score": 43.551323,
+ "lexical_score": 48.5516499,
+ "title_vector_score": 19.990997,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Chemical Management",
+ "score": 0.6279526
+ },
+ {
+ "keyword": "Safety Culture",
+ "score": 0.6208
+ }
+ ]
+ },
+ {
+ "query": "process safety management",
+ "field": "Chemical Engineering",
+ "rank": 3,
+ "topic_name": "Occupational Health and Safety Management",
+ "total_score": 43.035004,
+ "lexical_score": 49.9601747,
+ "title_vector_score": 19.474678,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Workplace Safety",
+ "score": 0.6703911
+ },
+ {
+ "keyword": "Safety Behavior",
+ "score": 0.6143277
+ }
+ ]
+ },
+ {
+ "query": "fluidized bed reactor",
+ "field": "Chemical Engineering",
+ "rank": 1,
+ "topic_name": "Granular flow and fluidized beds",
+ "total_score": 63.4702,
+ "lexical_score": 47.492984,
+ "title_vector_score": 21.36982,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 19.12362,
+ "matched_keywords": [
+ {
+ "keyword": "Fluidized Beds",
+ "score": 0.76494473
+ },
+ {
+ "keyword": "Gas-Solid Flow",
+ "score": 0.5155398
+ }
+ ]
+ },
+ {
+ "query": "fluidized bed reactor",
+ "field": "Chemical Engineering",
+ "rank": 2,
+ "topic_name": "Nuclear reactor physics and engineering",
+ "total_score": 38.470375,
+ "lexical_score": 48.82945050000001,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 15.493615,
+ "matched_keywords": [
+ {
+ "keyword": "Lead-Cooled Fast Reactor",
+ "score": 0.6197446
+ },
+ {
+ "keyword": "Small Modular Reactors",
+ "score": 0.55446243
+ }
+ ]
+ },
+ {
+ "query": "fluidized bed reactor",
+ "field": "Chemical Engineering",
+ "rank": 3,
+ "topic_name": "Dermatological diseases and infestations",
+ "total_score": 17.686224,
+ "lexical_score": 25.943376999999998,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "chemical plant optimization",
+ "field": "Chemical Engineering",
+ "rank": 1,
+ "topic_name": "Plant chemical constituents analysis",
+ "total_score": 47.035145,
+ "lexical_score": 29.1563455,
+ "title_vector_score": 17.8788,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Antioxidant Activity",
+ "score": 0.50819653
+ }
+ ]
+ },
+ {
+ "query": "chemical plant optimization",
+ "field": "Chemical Engineering",
+ "rank": 2,
+ "topic_name": "solar cell performance optimization",
+ "total_score": 33.75678,
+ "lexical_score": 14.11807,
+ "title_vector_score": 19.63871,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Energy Conversion Efficiency",
+ "score": 0.52042264
+ }
+ ]
+ },
+ {
+ "query": "chemical plant optimization",
+ "field": "Chemical Engineering",
+ "rank": 3,
+ "topic_name": "Electric Power System Optimization",
+ "total_score": 31.678913,
+ "lexical_score": 26.2815237,
+ "title_vector_score": 17.560844,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Stochastic Optimization",
+ "score": 0.5221074
+ }
+ ]
+ },
+ {
+ "query": "multi phase flow",
+ "field": "Chemical Engineering",
+ "rank": 1,
+ "topic_name": "Flow Measurement and Analysis",
+ "total_score": 38.11024,
+ "lexical_score": 52.8494076,
+ "title_vector_score": 16.123276,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Multiphase Flow Metering",
+ "score": 0.7605133
+ },
+ {
+ "keyword": "Two-Phase Flow",
+ "score": 0.7370656
+ }
+ ]
+ },
+ {
+ "query": "multi phase flow",
+ "field": "Chemical Engineering",
+ "rank": 2,
+ "topic_name": "Cyclone Separators and Fluid Dynamics",
+ "total_score": 35.936314,
+ "lexical_score": 18.290972,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.352283,
+ "matched_keywords": [
+ {
+ "keyword": "Multiphase Flow",
+ "score": 0.8940913
+ },
+ {
+ "keyword": "Particle Flow",
+ "score": 0.59738415
+ }
+ ]
+ },
+ {
+ "query": "multi phase flow",
+ "field": "Chemical Engineering",
+ "rank": 3,
+ "topic_name": "Flow Experience in Various Fields",
+ "total_score": 34.436443,
+ "lexical_score": 31.374145999999996,
+ "title_vector_score": 17.302399,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Flow Theory",
+ "score": 0.5495415
+ }
+ ]
+ },
+ {
+ "query": "computational fluid dynamics",
+ "field": "Chemical Engineering",
+ "rank": 1,
+ "topic_name": "Computational Fluid Dynamics and Aerodynamics",
+ "total_score": 74.25935,
+ "lexical_score": 57.3734374,
+ "title_vector_score": 21.749,
+ "description_vector_score": 8.023491,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Turbulence Modeling",
+ "score": 0.6211116
+ },
+ {
+ "keyword": "Finite Volume Methods",
+ "score": 0.60136414
+ }
+ ]
+ },
+ {
+ "query": "computational fluid dynamics",
+ "field": "Chemical Engineering",
+ "rank": 2,
+ "topic_name": "Fluid Dynamics and Mixing",
+ "total_score": 49.649574,
+ "lexical_score": 30.221244,
+ "title_vector_score": 19.42833,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "CFD Simulation",
+ "score": 0.6527036
+ },
+ {
+ "keyword": "Mass Transfer Coefficients",
+ "score": 0.54877216
+ }
+ ]
+ },
+ {
+ "query": "computational fluid dynamics",
+ "field": "Chemical Engineering",
+ "rank": 3,
+ "topic_name": "Greenhouse Technology and Climate Control",
+ "total_score": 42.527016,
+ "lexical_score": 33.9031191,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 19.78976,
+ "matched_keywords": [
+ {
+ "keyword": "Computational Fluid Dynamics (CFD)",
+ "score": 0.7915904
+ },
+ {
+ "keyword": "Microclimate Simulation",
+ "score": 0.5221837
+ }
+ ]
+ },
+ {
+ "query": "industrial scale synthesis",
+ "field": "Chemical Engineering",
+ "rank": 1,
+ "topic_name": "Synthesis and Catalytic Reactions",
+ "total_score": 31.248316,
+ "lexical_score": 26.5347038,
+ "title_vector_score": 17.899017,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Synthesis",
+ "score": 0.61480457
+ }
+ ]
+ },
+ {
+ "query": "industrial scale synthesis",
+ "field": "Chemical Engineering",
+ "rank": 2,
+ "topic_name": "Synthesis of Organic Compounds",
+ "total_score": 30.784449,
+ "lexical_score": 28.722672499999998,
+ "title_vector_score": 17.43515,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Synthesis",
+ "score": 0.61402893
+ },
+ {
+ "keyword": "Microwave-Assisted Synthesis",
+ "score": 0.6095912
+ }
+ ]
+ },
+ {
+ "query": "industrial scale synthesis",
+ "field": "Chemical Engineering",
+ "rank": 3,
+ "topic_name": "Chemical Synthesis and Analysis",
+ "total_score": 30.721697,
+ "lexical_score": 30.5095771,
+ "title_vector_score": 17.372398,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Solid-Phase Synthesis",
+ "score": 0.66042835
+ },
+ {
+ "keyword": "Peptide Synthesis",
+ "score": 0.5908801
+ }
+ ]
+ },
+ {
+ "query": "green chemical engineering",
+ "field": "Chemical Engineering",
+ "rank": 1,
+ "topic_name": "Chemistry and Chemical Engineering",
+ "total_score": 67.473045,
+ "lexical_score": 58.4614407,
+ "title_vector_score": 18.921547,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 20.24371,
+ "matched_keywords": [
+ {
+ "keyword": "Green Engineering",
+ "score": 0.80974835
+ },
+ {
+ "keyword": "Sustainable Chemistry",
+ "score": 0.70199585
+ }
+ ]
+ },
+ {
+ "query": "green chemical engineering",
+ "field": "Chemical Engineering",
+ "rank": 2,
+ "topic_name": "Chemical and Environmental Engineering Research",
+ "total_score": 44.283424,
+ "lexical_score": 49.50812689999999,
+ "title_vector_score": 18.438416,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Chemical Engineering",
+ "score": 0.708004
+ },
+ {
+ "keyword": "Environmental Analysis",
+ "score": 0.536527
+ }
+ ]
+ },
+ {
+ "query": "green chemical engineering",
+ "field": "Chemical Engineering",
+ "rank": 3,
+ "topic_name": "Phosphorus compounds and reactions",
+ "total_score": 30.102066,
+ "lexical_score": 13.846486,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 21.210575,
+ "matched_keywords": [
+ {
+ "keyword": "green chemistry",
+ "score": 0.848423
+ },
+ {
+ "keyword": "natural product synthesis",
+ "score": 0.6344058
+ }
+ ]
+ },
+ {
+ "query": "adsorption separation kinetics",
+ "field": "Chemical Engineering",
+ "rank": 1,
+ "topic_name": "Membrane Separation Technologies",
+ "total_score": 42.03443,
+ "lexical_score": 22.72474,
+ "title_vector_score": 19.309692,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Membrane Distillation",
+ "score": 0.5687485
+ }
+ ]
+ },
+ {
+ "query": "adsorption separation kinetics",
+ "field": "Chemical Engineering",
+ "rank": 2,
+ "topic_name": "Extraction and Separation Processes",
+ "total_score": 40.347343,
+ "lexical_score": 20.55929,
+ "title_vector_score": 19.788055,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Hydrometallurgical Processes",
+ "score": 0.52372235
+ }
+ ]
+ },
+ {
+ "query": "adsorption separation kinetics",
+ "field": "Chemical Engineering",
+ "rank": 3,
+ "topic_name": "Thermal and Kinetic Analysis",
+ "total_score": 29.913773,
+ "lexical_score": 16.367525399999998,
+ "title_vector_score": 19.034843,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Kinetic Analysis",
+ "score": 0.6572558
+ },
+ {
+ "keyword": "Model-Free Kinetics",
+ "score": 0.63235855
+ }
+ ]
+ },
+ {
+ "query": "process control loops",
+ "field": "Chemical Engineering",
+ "rank": 1,
+ "topic_name": "Advanced Statistical Process Monitoring",
+ "total_score": 37.26248,
+ "lexical_score": 49.7687076,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 16.703194,
+ "matched_keywords": [
+ {
+ "keyword": "Statistical Process Control",
+ "score": 0.6681277
+ },
+ {
+ "keyword": "Control Charts",
+ "score": 0.55055875
+ }
+ ]
+ },
+ {
+ "query": "process control loops",
+ "field": "Chemical Engineering",
+ "rank": 2,
+ "topic_name": "Wind Turbine Control Systems",
+ "total_score": 31.167807,
+ "lexical_score": 22.4076663,
+ "title_vector_score": 18.007545,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Frequency Control",
+ "score": 0.5583026
+ }
+ ]
+ },
+ {
+ "query": "process control loops",
+ "field": "Chemical Engineering",
+ "rank": 3,
+ "topic_name": "Guidance and Control Systems",
+ "total_score": 30.318083,
+ "lexical_score": 26.3937163,
+ "title_vector_score": 17.157822,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Control",
+ "score": 0.5816739
+ },
+ {
+ "keyword": "Optimal Control",
+ "score": 0.52547073
+ }
+ ]
+ },
+ {
+ "query": "materials processing chemical",
+ "field": "Chemical Engineering",
+ "rank": 1,
+ "topic_name": "Materials Engineering and Processing",
+ "total_score": 48.270172,
+ "lexical_score": 33.7408063,
+ "title_vector_score": 18.976288,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Industrial By-Products",
+ "score": 0.51791763
+ },
+ {
+ "keyword": "Mechanical Characteristics",
+ "score": 0.51114017
+ }
+ ]
+ },
+ {
+ "query": "materials processing chemical",
+ "field": "Chemical Engineering",
+ "rank": 2,
+ "topic_name": "Ultrasound and Cavitation Phenomena",
+ "total_score": 44.419285,
+ "lexical_score": 37.263982600000006,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 18.703049,
+ "matched_keywords": [
+ {
+ "keyword": "Chemical Processing",
+ "score": 0.7481219
+ },
+ {
+ "keyword": "Nanostructured Materials",
+ "score": 0.54545975
+ }
+ ]
+ },
+ {
+ "query": "materials processing chemical",
+ "field": "Chemical Engineering",
+ "rank": 3,
+ "topic_name": "Material Properties and Processing",
+ "total_score": 36.980713,
+ "lexical_score": 20.5806784,
+ "title_vector_score": 20.459251,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Material Modeling",
+ "score": 0.57674026
+ },
+ {
+ "keyword": "Packaging Technology",
+ "score": 0.5248413
+ }
+ ]
+ },
+ {
+ "query": "endodontic treatment procedures",
+ "field": "Dentistry",
+ "rank": 1,
+ "topic_name": "Endodontics and Root Canal Treatments",
+ "total_score": 64.99553,
+ "lexical_score": 33.224847600000004,
+ "title_vector_score": 23.091393,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 21.832531,
+ "matched_keywords": [
+ {
+ "keyword": "Endodontic Treatment",
+ "score": 0.8733012
+ },
+ {
+ "keyword": "Regenerative Endodontics",
+ "score": 0.73746616
+ }
+ ]
+ },
+ {
+ "query": "endodontic treatment procedures",
+ "field": "Dentistry",
+ "rank": 2,
+ "topic_name": "Dental Erosion and Treatment",
+ "total_score": 32.559986,
+ "lexical_score": 12.653102,
+ "title_vector_score": 19.906883,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Dentine Hypersensitivity",
+ "score": 0.5464007
+ },
+ {
+ "keyword": "Tooth Whitening",
+ "score": 0.5351982
+ }
+ ]
+ },
+ {
+ "query": "endodontic treatment procedures",
+ "field": "Dentistry",
+ "rank": 3,
+ "topic_name": "Intracranial Aneurysms: Treatment and Complications",
+ "total_score": 29.237759,
+ "lexical_score": 21.110229999999998,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 17.685478,
+ "matched_keywords": [
+ {
+ "keyword": "Endovascular Treatment",
+ "score": 0.7074191
+ }
+ ]
+ },
+ {
+ "query": "periodontal disease therapy",
+ "field": "Dentistry",
+ "rank": 1,
+ "topic_name": "Periodontal Regeneration and Treatments",
+ "total_score": 46.708275,
+ "lexical_score": 43.6021617,
+ "title_vector_score": 21.542053,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Periodontal Regeneration",
+ "score": 0.68954724
+ },
+ {
+ "keyword": "Osteoarthritis Treatment",
+ "score": 0.63653564
+ }
+ ]
+ },
+ {
+ "query": "periodontal disease therapy",
+ "field": "Dentistry",
+ "rank": 2,
+ "topic_name": "Dental Radiography and Imaging",
+ "total_score": 38.07118,
+ "lexical_score": 27.7601035,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 19.38699,
+ "matched_keywords": [
+ {
+ "keyword": "Periodontal Disease",
+ "score": 0.7754796
+ },
+ {
+ "keyword": "Dental Implantology",
+ "score": 0.6154785
+ }
+ ]
+ },
+ {
+ "query": "periodontal disease therapy",
+ "field": "Dentistry",
+ "rank": 3,
+ "topic_name": "Autophagy in Disease and Therapy",
+ "total_score": 28.684776,
+ "lexical_score": 37.928118,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Parkinson's Disease",
+ "score": 0.55259323
+ }
+ ]
+ },
+ {
+ "query": "orthodontic alignment techniques",
+ "field": "Dentistry",
+ "rank": 1,
+ "topic_name": "Orthodontics and Dentofacial Orthopedics",
+ "total_score": 52.515633,
+ "lexical_score": 27.294283,
+ "title_vector_score": 19.815521,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 17.173035,
+ "matched_keywords": [
+ {
+ "keyword": "Orthodontic Tooth Movement",
+ "score": 0.6869214
+ },
+ {
+ "keyword": "Orthognathic Surgery",
+ "score": 0.6483485
+ }
+ ]
+ },
+ {
+ "query": "orthodontic alignment techniques",
+ "field": "Dentistry",
+ "rank": 2,
+ "topic_name": "Genomics and Phylogenetic Studies",
+ "total_score": 28.813053,
+ "lexical_score": 20.040248,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 15.864913,
+ "matched_keywords": [
+ {
+ "keyword": "sequence alignment",
+ "score": 0.6345965
+ },
+ {
+ "keyword": "phylogenetic analysis",
+ "score": 0.5323817
+ }
+ ]
+ },
+ {
+ "query": "orthodontic alignment techniques",
+ "field": "Dentistry",
+ "rank": 3,
+ "topic_name": "Dental Anxiety and Anesthesia Techniques",
+ "total_score": 27.550621,
+ "lexical_score": 10.058632,
+ "title_vector_score": 17.49199,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Dental Anxiety",
+ "score": 0.5100403
+ }
+ ]
+ },
+ {
+ "query": "dental implant surgery",
+ "field": "Dentistry",
+ "rank": 1,
+ "topic_name": "Dental Implant Techniques and Outcomes",
+ "total_score": 79.45174,
+ "lexical_score": 90.144283,
+ "title_vector_score": 20.86895,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 19.93726,
+ "matched_keywords": [
+ {
+ "keyword": "Dental Implants",
+ "score": 0.7974904
+ },
+ {
+ "keyword": "Implant Complications",
+ "score": 0.67997867
+ }
+ ]
+ },
+ {
+ "query": "dental implant surgery",
+ "field": "Dentistry",
+ "rank": 2,
+ "topic_name": "Scientific and Engineering Research Topics",
+ "total_score": 54.40126,
+ "lexical_score": 55.7894916,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 18.068695,
+ "matched_keywords": [
+ {
+ "keyword": "Implant Prostheses",
+ "score": 0.7227478
+ },
+ {
+ "keyword": "Orthognathic Surgery",
+ "score": 0.6481578
+ }
+ ]
+ },
+ {
+ "query": "dental implant surgery",
+ "field": "Dentistry",
+ "rank": 3,
+ "topic_name": "Breast Implant and Reconstruction",
+ "total_score": 43.64634,
+ "lexical_score": 35.590779,
+ "title_vector_score": 20.08503,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Implant-Based Reconstruction",
+ "score": 0.6177419
+ },
+ {
+ "keyword": "Breast Reconstruction",
+ "score": 0.6062915
+ }
+ ]
+ },
+ {
+ "query": "prosthodontics crown design",
+ "field": "Dentistry",
+ "rank": 1,
+ "topic_name": "Orthodontics and Dentofacial Orthopedics",
+ "total_score": 31.415443,
+ "lexical_score": 0.0,
+ "title_vector_score": 16.15532,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 15.260124,
+ "matched_keywords": [
+ {
+ "keyword": "Dental Esthetics",
+ "score": 0.61040497
+ },
+ {
+ "keyword": "Orthodontic Tooth Movement",
+ "score": 0.5910136
+ }
+ ]
+ },
+ {
+ "query": "prosthodontics crown design",
+ "field": "Dentistry",
+ "rank": 2,
+ "topic_name": "Environmental Engineering and Cultural Studies",
+ "total_score": 21.57909,
+ "lexical_score": 9.5077253,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 15.186214,
+ "matched_keywords": [
+ {
+ "keyword": "Ceramic Design",
+ "score": 0.6074486
+ }
+ ]
+ },
+ {
+ "query": "prosthodontics crown design",
+ "field": "Dentistry",
+ "rank": 3,
+ "topic_name": "Advancements in Photolithography Techniques",
+ "total_score": 20.885132,
+ "lexical_score": 9.558454300000001,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 14.492257,
+ "matched_keywords": [
+ {
+ "keyword": "Mask Design",
+ "score": 0.5796903
+ }
+ ]
+ },
+ {
+ "query": "pediatric dentistry prevention",
+ "field": "Dentistry",
+ "rank": 1,
+ "topic_name": "Pediatric Pain Management Techniques",
+ "total_score": 38.56051,
+ "lexical_score": 36.162212999999994,
+ "title_vector_score": 18.450813,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Pediatric Pain",
+ "score": 0.60646313
+ }
+ ]
+ },
+ {
+ "query": "pediatric dentistry prevention",
+ "field": "Dentistry",
+ "rank": 2,
+ "topic_name": "Surgical site infection prevention",
+ "total_score": 38.310493,
+ "lexical_score": 32.2026816,
+ "title_vector_score": 18.943481,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Antimicrobial Prophylaxis",
+ "score": 0.6201642
+ },
+ {
+ "keyword": "Infection Prevention",
+ "score": 0.6172206
+ }
+ ]
+ },
+ {
+ "query": "pediatric dentistry prevention",
+ "field": "Dentistry",
+ "rank": 3,
+ "topic_name": "Adolescent and Pediatric Healthcare",
+ "total_score": 37.370514,
+ "lexical_score": 33.88912,
+ "title_vector_score": 17.260818,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Pediatric to Adult Care",
+ "score": 0.5708783
+ }
+ ]
+ },
+ {
+ "query": "oral maxillofacial surgery",
+ "field": "Dentistry",
+ "rank": 1,
+ "topic_name": "Oral and Maxillofacial Pathology",
+ "total_score": 66.203674,
+ "lexical_score": 44.882684,
+ "title_vector_score": 21.320992,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Odontogenic Tumors",
+ "score": 0.6236865
+ },
+ {
+ "keyword": "Surgical Management",
+ "score": 0.59445316
+ }
+ ]
+ },
+ {
+ "query": "oral maxillofacial surgery",
+ "field": "Dentistry",
+ "rank": 2,
+ "topic_name": "Facial Trauma and Fracture Management",
+ "total_score": 46.209656,
+ "lexical_score": 37.6251574,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 19.351387,
+ "matched_keywords": [
+ {
+ "keyword": "Cranio-Maxillofacial Surgery",
+ "score": 0.7740555
+ },
+ {
+ "keyword": "Maxillofacial Trauma",
+ "score": 0.71956253
+ }
+ ]
+ },
+ {
+ "query": "oral maxillofacial surgery",
+ "field": "Dentistry",
+ "rank": 3,
+ "topic_name": "Dental Radiography and Imaging",
+ "total_score": 40.330605,
+ "lexical_score": 32.941417,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 18.436337,
+ "matched_keywords": [
+ {
+ "keyword": "Maxillofacial Radiology",
+ "score": 0.73745346
+ },
+ {
+ "keyword": "Third Molar Surgery",
+ "score": 0.6875699
+ }
+ ]
+ },
+ {
+ "query": "dental caries prevention",
+ "field": "Dentistry",
+ "rank": 1,
+ "topic_name": "Surgical site infection prevention",
+ "total_score": 38.525642,
+ "lexical_score": 32.2026816,
+ "title_vector_score": 19.15863,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Infection Prevention",
+ "score": 0.6782811
+ },
+ {
+ "keyword": "Antimicrobial Prophylaxis",
+ "score": 0.65574265
+ }
+ ]
+ },
+ {
+ "query": "dental caries prevention",
+ "field": "Dentistry",
+ "rank": 2,
+ "topic_name": "Dental Health and Care Utilization",
+ "total_score": 36.416153,
+ "lexical_score": 67.72586,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Dental Caries",
+ "score": 0.72032547
+ },
+ {
+ "keyword": "Prevention",
+ "score": 0.6803029
+ }
+ ]
+ },
+ {
+ "query": "dental caries prevention",
+ "field": "Dentistry",
+ "rank": 3,
+ "topic_name": "Health Promotion and Cardiovascular Prevention",
+ "total_score": 36.248753,
+ "lexical_score": 32.4842553,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 18.566673,
+ "matched_keywords": [
+ {
+ "keyword": "Chronic Disease Prevention",
+ "score": 0.7426669
+ },
+ {
+ "keyword": "Primary Prevention",
+ "score": 0.65092343
+ }
+ ]
+ },
+ {
+ "query": "restorative dentistry materials",
+ "field": "Dentistry",
+ "rank": 1,
+ "topic_name": "Dental materials and restorations",
+ "total_score": 85.93858,
+ "lexical_score": 58.3366807,
+ "title_vector_score": 23.787956,
+ "description_vector_score": 8.281078,
+ "keywords_vector_score": 19.624454,
+ "matched_keywords": [
+ {
+ "keyword": "Restorative Dentistry",
+ "score": 0.7849782
+ },
+ {
+ "keyword": "Dental Materials",
+ "score": 0.71846896
+ }
+ ]
+ },
+ {
+ "query": "restorative dentistry materials",
+ "field": "Dentistry",
+ "rank": 2,
+ "topic_name": "Occupational health in dentistry",
+ "total_score": 23.561312,
+ "lexical_score": 23.561312,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Dental Students",
+ "score": 0.5144399
+ }
+ ]
+ },
+ {
+ "query": "restorative dentistry materials",
+ "field": "Dentistry",
+ "rank": 3,
+ "topic_name": "Laser Applications in Dentistry and Medicine",
+ "total_score": 19.789764,
+ "lexical_score": 26.5967074,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Dental Applications",
+ "score": 0.56567127
+ }
+ ]
+ },
+ {
+ "query": "oral pathology diagnosis",
+ "field": "Dentistry",
+ "rank": 1,
+ "topic_name": "Oral Health Pathology and Treatment",
+ "total_score": 64.26117,
+ "lexical_score": 61.745979500000004,
+ "title_vector_score": 21.567993,
+ "description_vector_score": 7.558003,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Oral Mucosal Disorders",
+ "score": 0.6211116
+ },
+ {
+ "keyword": "Oral Lichen Planus",
+ "score": 0.6204567
+ }
+ ]
+ },
+ {
+ "query": "oral pathology diagnosis",
+ "field": "Dentistry",
+ "rank": 2,
+ "topic_name": "Oral and Maxillofacial Pathology",
+ "total_score": 60.096413,
+ "lexical_score": 55.275419,
+ "title_vector_score": 21.613197,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Molecular Pathology",
+ "score": 0.6549861
+ },
+ {
+ "keyword": "Histopathological Analysis",
+ "score": 0.6365611
+ }
+ ]
+ },
+ {
+ "query": "oral pathology diagnosis",
+ "field": "Dentistry",
+ "rank": 3,
+ "topic_name": "HIV/AIDS oral health manifestations",
+ "total_score": 36.35905,
+ "lexical_score": 42.568574999999996,
+ "title_vector_score": 18.357925,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "oral manifestations",
+ "score": 0.6864255
+ },
+ {
+ "keyword": "oral warts",
+ "score": 0.63422775
+ }
+ ]
+ },
+ {
+ "query": "laser dentistry applications",
+ "field": "Dentistry",
+ "rank": 1,
+ "topic_name": "Laser Applications in Dentistry and Medicine",
+ "total_score": 91.92413,
+ "lexical_score": 74.14235529999999,
+ "title_vector_score": 21.64772,
+ "description_vector_score": 7.649936,
+ "keywords_vector_score": 18.81876,
+ "matched_keywords": [
+ {
+ "keyword": "Dental Applications",
+ "score": 0.7527504
+ },
+ {
+ "keyword": "Low-Level Laser Therapy",
+ "score": 0.5449384
+ }
+ ]
+ },
+ {
+ "query": "laser dentistry applications",
+ "field": "Dentistry",
+ "rank": 2,
+ "topic_name": "Laser Design and Applications",
+ "total_score": 47.559204,
+ "lexical_score": 48.803166399999995,
+ "title_vector_score": 18.96389,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Oxygen-Iodine Laser",
+ "score": 0.54177856
+ },
+ {
+ "keyword": "High Power Laser",
+ "score": 0.51726276
+ }
+ ]
+ },
+ {
+ "query": "laser dentistry applications",
+ "field": "Dentistry",
+ "rank": 3,
+ "topic_name": "Spectroscopy and Laser Applications",
+ "total_score": 47.23591,
+ "lexical_score": 50.3390364,
+ "title_vector_score": 18.640594,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Diode Laser Absorption",
+ "score": 0.5601781
+ }
+ ]
+ },
+ {
+ "query": "dental biomaterials wear",
+ "field": "Dentistry",
+ "rank": 1,
+ "topic_name": "Silk-based biomaterials and applications",
+ "total_score": 39.99514,
+ "lexical_score": 44.399067,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 17.018383,
+ "matched_keywords": [
+ {
+ "keyword": "Biomaterials",
+ "score": 0.6807353
+ }
+ ]
+ },
+ {
+ "query": "dental biomaterials wear",
+ "field": "Dentistry",
+ "rank": 2,
+ "topic_name": "Dental Erosion and Treatment",
+ "total_score": 39.217445,
+ "lexical_score": 55.619232,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 17.209118,
+ "matched_keywords": [
+ {
+ "keyword": "Erosive Tooth Wear",
+ "score": 0.6883647
+ },
+ {
+ "keyword": "Dental Erosion",
+ "score": 0.5862643
+ }
+ ]
+ },
+ {
+ "query": "dental biomaterials wear",
+ "field": "Dentistry",
+ "rank": 3,
+ "topic_name": "Dental materials and restorations",
+ "total_score": 36.91468,
+ "lexical_score": 37.796346,
+ "title_vector_score": 18.147926,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Dental Materials",
+ "score": 0.6631241
+ },
+ {
+ "keyword": "Dentin Structure",
+ "score": 0.5397313
+ }
+ ]
+ },
+ {
+ "query": "cone beam ct",
+ "field": "Dentistry",
+ "rank": 1,
+ "topic_name": "Dental Radiography and Imaging",
+ "total_score": 57.647057,
+ "lexical_score": 47.1557073,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.402668,
+ "matched_keywords": [
+ {
+ "keyword": "Cone-Beam CT",
+ "score": 0.8961067
+ }
+ ]
+ },
+ {
+ "query": "cone beam ct",
+ "field": "Dentistry",
+ "rank": 2,
+ "topic_name": "Endodontics and Root Canal Treatments",
+ "total_score": 40.69006,
+ "lexical_score": 33.674424,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 17.9533,
+ "matched_keywords": [
+ {
+ "keyword": "Cone Beam Computed Tomography",
+ "score": 0.718132
+ }
+ ]
+ },
+ {
+ "query": "cone beam ct",
+ "field": "Dentistry",
+ "rank": 3,
+ "topic_name": "Geotechnical Engineering and Soil Mechanics",
+ "total_score": 26.074656,
+ "lexical_score": 18.302012,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 14.267349,
+ "matched_keywords": [
+ {
+ "keyword": "Cone Penetration Tests",
+ "score": 0.57069397
+ }
+ ]
+ },
+ {
+ "query": "salivary diagnostics biomarkers",
+ "field": "Dentistry",
+ "rank": 1,
+ "topic_name": "Salivary Gland Disorders and Functions",
+ "total_score": 55.41474,
+ "lexical_score": 62.1496619,
+ "title_vector_score": 19.034271,
+ "description_vector_score": 7.5204277,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Biomarkers",
+ "score": 0.6716626
+ },
+ {
+ "keyword": "Salivary Gland",
+ "score": 0.6401723
+ }
+ ]
+ },
+ {
+ "query": "salivary diagnostics biomarkers",
+ "field": "Dentistry",
+ "rank": 2,
+ "topic_name": "Salivary Gland Tumors Diagnosis and Treatment",
+ "total_score": 38.696815,
+ "lexical_score": 38.956562000000005,
+ "title_vector_score": 18.907051,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Salivary Gland Tumors",
+ "score": 0.6472931
+ }
+ ]
+ },
+ {
+ "query": "salivary diagnostics biomarkers",
+ "field": "Dentistry",
+ "rank": 3,
+ "topic_name": "Inflammatory Biomarkers in Disease Prognosis",
+ "total_score": 37.289406,
+ "lexical_score": 19.249817,
+ "title_vector_score": 18.039589,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Prognostic Markers",
+ "score": 0.592673
+ },
+ {
+ "keyword": "Systemic Inflammatory Response",
+ "score": 0.50755435
+ }
+ ]
+ },
+ {
+ "query": "aesthetic dentistry veneers",
+ "field": "Dentistry",
+ "rank": 1,
+ "topic_name": "Dental materials and restorations",
+ "total_score": 46.665924,
+ "lexical_score": 14.536877,
+ "title_vector_score": 16.566925,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 15.562121,
+ "matched_keywords": [
+ {
+ "keyword": "Restorative Dentistry",
+ "score": 0.62248486
+ },
+ {
+ "keyword": "Tooth Restoration",
+ "score": 0.56789654
+ }
+ ]
+ },
+ {
+ "query": "aesthetic dentistry veneers",
+ "field": "Dentistry",
+ "rank": 2,
+ "topic_name": "Emotional Labor in Professions",
+ "total_score": 28.309765,
+ "lexical_score": 18.901636,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 15.376155,
+ "matched_keywords": [
+ {
+ "keyword": "Aesthetic Labor",
+ "score": 0.6150462
+ }
+ ]
+ },
+ {
+ "query": "aesthetic dentistry veneers",
+ "field": "Dentistry",
+ "rank": 3,
+ "topic_name": "Aesthetic Perception and Analysis",
+ "total_score": 25.166224,
+ "lexical_score": 51.162307,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Aesthetic Emotions",
+ "score": 0.58482105
+ },
+ {
+ "keyword": "Neuroaesthetics",
+ "score": 0.55961865
+ }
+ ]
+ },
+ {
+ "query": "root canal morphology",
+ "field": "Dentistry",
+ "rank": 1,
+ "topic_name": "Endodontics and Root Canal Treatments",
+ "total_score": 78.92981,
+ "lexical_score": 80.938735,
+ "title_vector_score": 18.298035,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 16.143543,
+ "matched_keywords": [
+ {
+ "keyword": "Root Canal Irrigants",
+ "score": 0.64574176
+ },
+ {
+ "keyword": "Regenerative Endodontics",
+ "score": 0.5711708
+ }
+ ]
+ },
+ {
+ "query": "root canal morphology",
+ "field": "Dentistry",
+ "rank": 2,
+ "topic_name": "Hydrology and Sediment Transport Processes",
+ "total_score": 27.43547,
+ "lexical_score": 16.0952483,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 17.341358,
+ "matched_keywords": [
+ {
+ "keyword": "Channel Morphology",
+ "score": 0.69365436
+ },
+ {
+ "keyword": "Geomorphological Effects",
+ "score": 0.5188586
+ }
+ ]
+ },
+ {
+ "query": "root canal morphology",
+ "field": "Dentistry",
+ "rank": 3,
+ "topic_name": "Forensic Anthropology and Bioarchaeology Studies",
+ "total_score": 26.223804,
+ "lexical_score": 15.943541,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 16.335075,
+ "matched_keywords": [
+ {
+ "keyword": "Cranial Morphology",
+ "score": 0.653403
+ },
+ {
+ "keyword": "Dental Age Estimation",
+ "score": 0.5350456
+ }
+ ]
+ },
+ {
+ "query": "gingival recession treatment",
+ "field": "Dentistry",
+ "rank": 1,
+ "topic_name": "Oral and gingival health research",
+ "total_score": 38.743126,
+ "lexical_score": 55.237716000000006,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 15.766366,
+ "matched_keywords": [
+ {
+ "keyword": "Gingival Overgrowth",
+ "score": 0.63065463
+ },
+ {
+ "keyword": "Periodontal Complications",
+ "score": 0.53555423
+ }
+ ]
+ },
+ {
+ "query": "gingival recession treatment",
+ "field": "Dentistry",
+ "rank": 2,
+ "topic_name": "Dental Erosion and Treatment",
+ "total_score": 32.456608,
+ "lexical_score": 12.653102,
+ "title_vector_score": 19.803505,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Dental Erosion",
+ "score": 0.5811017
+ },
+ {
+ "keyword": "Fluoride Therapy",
+ "score": 0.53273773
+ }
+ ]
+ },
+ {
+ "query": "gingival recession treatment",
+ "field": "Dentistry",
+ "rank": 3,
+ "topic_name": "Periodontal Regeneration and Treatments",
+ "total_score": 25.220337,
+ "lexical_score": 6.306419,
+ "title_vector_score": 18.913918,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Periodontal Regeneration",
+ "score": 0.58321255
+ },
+ {
+ "keyword": "Osteoarthritis Treatment",
+ "score": 0.56508
+ }
+ ]
+ },
+ {
+ "query": "fluoride treatment efficacy",
+ "field": "Dentistry",
+ "rank": 1,
+ "topic_name": "Fluoride Effects and Removal",
+ "total_score": 45.181442,
+ "lexical_score": 52.110349,
+ "title_vector_score": 20.01522,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Fluoride",
+ "score": 0.5945676
+ },
+ {
+ "keyword": "Defluoridation",
+ "score": 0.5350711
+ }
+ ]
+ },
+ {
+ "query": "fluoride treatment efficacy",
+ "field": "Dentistry",
+ "rank": 2,
+ "topic_name": "Dental Erosion and Treatment",
+ "total_score": 32.297,
+ "lexical_score": 33.6717356,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 18.899506,
+ "matched_keywords": [
+ {
+ "keyword": "Fluoride Therapy",
+ "score": 0.7559802
+ }
+ ]
+ },
+ {
+ "query": "fluoride treatment efficacy",
+ "field": "Dentistry",
+ "rank": 3,
+ "topic_name": "Constructed Wetlands for Wastewater Treatment",
+ "total_score": 27.433884,
+ "lexical_score": 23.5598876,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 15.881602,
+ "matched_keywords": [
+ {
+ "keyword": "Treatment Efficiency",
+ "score": 0.6352641
+ }
+ ]
+ },
+ {
+ "query": "dental pulp stem cells",
+ "field": "Dentistry",
+ "rank": 1,
+ "topic_name": "Hematopoietic Stem Cell Transplantation",
+ "total_score": 43.745567,
+ "lexical_score": 59.850013000000004,
+ "title_vector_score": 18.207245,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Hematopoietic Stem Cells",
+ "score": 0.6690114
+ },
+ {
+ "keyword": "Mesenchymal Stem Cells",
+ "score": 0.6613757
+ }
+ ]
+ },
+ {
+ "query": "dental pulp stem cells",
+ "field": "Dentistry",
+ "rank": 2,
+ "topic_name": "Endodontics and Root Canal Treatments",
+ "total_score": 43.100075,
+ "lexical_score": 36.276810299999994,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 18.68143,
+ "matched_keywords": [
+ {
+ "keyword": "Dental Pulp Regeneration",
+ "score": 0.74725723
+ },
+ {
+ "keyword": "Regenerative Endodontics",
+ "score": 0.6384112
+ }
+ ]
+ },
+ {
+ "query": "dental pulp stem cells",
+ "field": "Dentistry",
+ "rank": 3,
+ "topic_name": "Pluripotent Stem Cells Research",
+ "total_score": 41.43107,
+ "lexical_score": 80.0787187,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Embryonic Stem Cells",
+ "score": 0.6041743
+ },
+ {
+ "keyword": "Pluripotent Stem Cells",
+ "score": 0.60386914
+ }
+ ]
+ },
+ {
+ "query": "temporomandibular joint disorders",
+ "field": "Dentistry",
+ "rank": 1,
+ "topic_name": "Temporomandibular Joint Disorders",
+ "total_score": 127.3835,
+ "lexical_score": 127.95693100000001,
+ "title_vector_score": 27.423363,
+ "description_vector_score": 9.961071,
+ "keywords_vector_score": 22.066021,
+ "matched_keywords": [
+ {
+ "keyword": "Temporomandibular Disorders",
+ "score": 0.88264084
+ },
+ {
+ "keyword": "Joint Osteoarthritis",
+ "score": 0.62739944
+ }
+ ]
+ },
+ {
+ "query": "temporomandibular joint disorders",
+ "field": "Dentistry",
+ "rank": 2,
+ "topic_name": "Bone and Joint Diseases",
+ "total_score": 42.726425,
+ "lexical_score": 23.561312,
+ "title_vector_score": 19.165115,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "temporomandibular joint disorders",
+ "field": "Dentistry",
+ "rank": 3,
+ "topic_name": "Connective tissue disorders research",
+ "total_score": 31.044865,
+ "lexical_score": 26.283198699999996,
+ "title_vector_score": 18.312721,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Collagen Disorders",
+ "score": 0.6565692
+ },
+ {
+ "keyword": "Genetic Skeletal Disorders",
+ "score": 0.60163116
+ }
+ ]
+ },
+ {
+ "query": "veterinary medicine diagnosis",
+ "field": "Veterinary",
+ "rank": 1,
+ "topic_name": "Veterinary Medicine and Surgery",
+ "total_score": 55.760906,
+ "lexical_score": 36.374538,
+ "title_vector_score": 19.386368,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "veterinary medicine diagnosis",
+ "field": "Veterinary",
+ "rank": 2,
+ "topic_name": "Veterinary medicine and infectious diseases",
+ "total_score": 52.541576,
+ "lexical_score": 33.20995,
+ "title_vector_score": 19.331627,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Swine Dysentery",
+ "score": 0.50990677
+ }
+ ]
+ },
+ {
+ "query": "veterinary medicine diagnosis",
+ "field": "Veterinary",
+ "rank": 3,
+ "topic_name": "Animal health and immunology",
+ "total_score": 43.185387,
+ "lexical_score": 36.6445009,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 21.78421,
+ "matched_keywords": [
+ {
+ "keyword": "Veterinary Diagnosis",
+ "score": 0.8713684
+ },
+ {
+ "keyword": "Diagnostic Tools",
+ "score": 0.5760663
+ }
+ ]
+ },
+ {
+ "query": "canine parvovirus treatment",
+ "field": "Veterinary",
+ "rank": 1,
+ "topic_name": "Parvovirus B19 Infection Studies",
+ "total_score": 42.709137,
+ "lexical_score": 49.409645,
+ "title_vector_score": 17.542915,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Parvovirus B19",
+ "score": 0.537913
+ }
+ ]
+ },
+ {
+ "query": "canine parvovirus treatment",
+ "field": "Veterinary",
+ "rank": 2,
+ "topic_name": "Parasitic Diseases Research and Treatment",
+ "total_score": 27.69646,
+ "lexical_score": 21.116412,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 16.14418,
+ "matched_keywords": [
+ {
+ "keyword": "Antiparasitic Treatment",
+ "score": 0.6457672
+ }
+ ]
+ },
+ {
+ "query": "canine parvovirus treatment",
+ "field": "Veterinary",
+ "rank": 3,
+ "topic_name": "COVID-19 Clinical Research Studies",
+ "total_score": 22.585297,
+ "lexical_score": 9.5022387,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 15.859826,
+ "matched_keywords": [
+ {
+ "keyword": "Antiviral Treatment",
+ "score": 0.63439304
+ }
+ ]
+ },
+ {
+ "query": "feline leukemia virus",
+ "field": "Veterinary",
+ "rank": 1,
+ "topic_name": "Animal Virus Infections Studies",
+ "total_score": 39.078384,
+ "lexical_score": 40.620869600000006,
+ "title_vector_score": 18.519096,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Porcine Reproductive and Respiratory Syndrome Virus",
+ "score": 0.6137555
+ },
+ {
+ "keyword": "Avian Infectious Bronchitis Virus",
+ "score": 0.6023242
+ }
+ ]
+ },
+ {
+ "query": "feline leukemia virus",
+ "field": "Veterinary",
+ "rank": 2,
+ "topic_name": "Acute Lymphoblastic Leukemia research",
+ "total_score": 38.703728,
+ "lexical_score": 41.867709,
+ "title_vector_score": 17.61959,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Acute Lymphoblastic Leukemia",
+ "score": 0.64176816
+ },
+ {
+ "keyword": "Pediatric Oncology",
+ "score": 0.5232455
+ }
+ ]
+ },
+ {
+ "query": "feline leukemia virus",
+ "field": "Veterinary",
+ "rank": 3,
+ "topic_name": "Virus-based gene therapy research",
+ "total_score": 35.05214,
+ "lexical_score": 34.9978936,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 16.28151,
+ "matched_keywords": [
+ {
+ "keyword": "Oncolytic Virus",
+ "score": 0.6512604
+ },
+ {
+ "keyword": "Adenovirus",
+ "score": 0.59595364
+ }
+ ]
+ },
+ {
+ "query": "equine sports medicine",
+ "field": "Veterinary",
+ "rank": 1,
+ "topic_name": "Veterinary Equine Medical Research",
+ "total_score": 67.49376,
+ "lexical_score": 59.94269800000001,
+ "title_vector_score": 21.919327,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 19.05511,
+ "matched_keywords": [
+ {
+ "keyword": "Equine Health",
+ "score": 0.76220447
+ },
+ {
+ "keyword": "Equine Injuries",
+ "score": 0.691658
+ }
+ ]
+ },
+ {
+ "query": "equine sports medicine",
+ "field": "Veterinary",
+ "rank": 2,
+ "topic_name": "Doping in Sports",
+ "total_score": 36.354042,
+ "lexical_score": 36.665634,
+ "title_vector_score": 16.647224,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Sport Ethics",
+ "score": 0.5188268
+ },
+ {
+ "keyword": "Performance-Enhancing Drugs",
+ "score": 0.5038223
+ }
+ ]
+ },
+ {
+ "query": "equine sports medicine",
+ "field": "Veterinary",
+ "rank": 3,
+ "topic_name": "Veterinary Medicine and Surgery",
+ "total_score": 33.45299,
+ "lexical_score": 16.264843,
+ "title_vector_score": 17.188148,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "bovine mastitis control",
+ "field": "Veterinary",
+ "rank": 1,
+ "topic_name": "Milk Quality and Mastitis in Dairy Cows",
+ "total_score": 79.52129,
+ "lexical_score": 76.784355,
+ "title_vector_score": 17.298012,
+ "description_vector_score": 8.344688,
+ "keywords_vector_score": 19.730312,
+ "matched_keywords": [
+ {
+ "keyword": "Bovine Mastitis",
+ "score": 0.7892125
+ },
+ {
+ "keyword": "Mastitis Management",
+ "score": 0.7034772
+ }
+ ]
+ },
+ {
+ "query": "bovine mastitis control",
+ "field": "Veterinary",
+ "rank": 2,
+ "topic_name": "Microbial infections and disease research",
+ "total_score": 31.331547,
+ "lexical_score": 22.2092619,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 16.492748,
+ "matched_keywords": [
+ {
+ "keyword": "Bovine Respiratory Disease",
+ "score": 0.65970993
+ }
+ ]
+ },
+ {
+ "query": "bovine mastitis control",
+ "field": "Veterinary",
+ "rank": 3,
+ "topic_name": "Fungal Plant Pathogen Control",
+ "total_score": 30.624594,
+ "lexical_score": 13.160261,
+ "title_vector_score": 17.464333,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "veterinary surgery techniques",
+ "field": "Veterinary",
+ "rank": 1,
+ "topic_name": "Veterinary Medicine and Surgery",
+ "total_score": 58.26527,
+ "lexical_score": 48.913601799999995,
+ "title_vector_score": 21.205025,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Laparoscopic Surgery",
+ "score": 0.5947647
+ },
+ {
+ "keyword": "Ovariohysterectomy",
+ "score": 0.5025889
+ }
+ ]
+ },
+ {
+ "query": "veterinary surgery techniques",
+ "field": "Veterinary",
+ "rank": 2,
+ "topic_name": "Cardiac and Coronary Surgery Techniques",
+ "total_score": 44.793633,
+ "lexical_score": 47.289895900000005,
+ "title_vector_score": 19.259148,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Minimally Invasive Surgery",
+ "score": 0.57603455
+ },
+ {
+ "keyword": "Coronary Artery Bypass Surgery",
+ "score": 0.56682205
+ }
+ ]
+ },
+ {
+ "query": "veterinary surgery techniques",
+ "field": "Veterinary",
+ "rank": 3,
+ "topic_name": "Veterinary Orthopedics and Neurology",
+ "total_score": 38.541817,
+ "lexical_score": 28.225696999999997,
+ "title_vector_score": 18.432121,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Surgical Complications",
+ "score": 0.572614
+ }
+ ]
+ },
+ {
+ "query": "animal nutrition guidelines",
+ "field": "Veterinary",
+ "rank": 1,
+ "topic_name": "Animal Nutrition and Health",
+ "total_score": 56.079002,
+ "lexical_score": 53.598538399999995,
+ "title_vector_score": 22.580795,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Livestock Health",
+ "score": 0.60888547
+ },
+ {
+ "keyword": "Nutritional Programming",
+ "score": 0.58423615
+ }
+ ]
+ },
+ {
+ "query": "animal nutrition guidelines",
+ "field": "Veterinary",
+ "rank": 2,
+ "topic_name": "Animal Nutrition and Physiology",
+ "total_score": 53.4543,
+ "lexical_score": 43.5769396,
+ "title_vector_score": 19.956093,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Enzyme Supplementation",
+ "score": 0.5954323
+ },
+ {
+ "keyword": "Feed Additives",
+ "score": 0.5809555
+ }
+ ]
+ },
+ {
+ "query": "animal nutrition guidelines",
+ "field": "Veterinary",
+ "rank": 3,
+ "topic_name": "Nutrition, Health, and Society Studies",
+ "total_score": 38.70125,
+ "lexical_score": 46.664636200000004,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 18.619759,
+ "matched_keywords": [
+ {
+ "keyword": "Dietary Guidelines",
+ "score": 0.7447904
+ },
+ {
+ "keyword": "Nutrition Science",
+ "score": 0.6069209
+ }
+ ]
+ },
+ {
+ "query": "zoonotic disease transmission",
+ "field": "Veterinary",
+ "rank": 1,
+ "topic_name": "Virology and Viral Diseases",
+ "total_score": 49.12343,
+ "lexical_score": 42.178151199999995,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 20.885212,
+ "matched_keywords": [
+ {
+ "keyword": "Zoonotic Transmission",
+ "score": 0.8354085
+ },
+ {
+ "keyword": "Viral Pathogenesis",
+ "score": 0.5481046
+ }
+ ]
+ },
+ {
+ "query": "zoonotic disease transmission",
+ "field": "Veterinary",
+ "rank": 2,
+ "topic_name": "Zoonotic diseases and public health",
+ "total_score": 46.097893,
+ "lexical_score": 64.05649120000001,
+ "title_vector_score": 19.05754,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Zoonotic Diseases",
+ "score": 0.72550076
+ },
+ {
+ "keyword": "Pathogen Transmission",
+ "score": 0.7197914
+ }
+ ]
+ },
+ {
+ "query": "zoonotic disease transmission",
+ "field": "Veterinary",
+ "rank": 3,
+ "topic_name": "Hepatitis Viruses Studies and Epidemiology",
+ "total_score": 41.67761,
+ "lexical_score": 31.969262899999997,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 20.891254,
+ "matched_keywords": [
+ {
+ "keyword": "Zoonotic Transmission",
+ "score": 0.83565015
+ },
+ {
+ "keyword": "Chronic Infection",
+ "score": 0.52084225
+ }
+ ]
+ },
+ {
+ "query": "veterinary oncology treatment",
+ "field": "Veterinary",
+ "rank": 1,
+ "topic_name": "Veterinary Oncology Research",
+ "total_score": 69.21904,
+ "lexical_score": 68.6317707,
+ "title_vector_score": 24.26651,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Cancer Treatment",
+ "score": 0.71099216
+ },
+ {
+ "keyword": "Canine Cancer",
+ "score": 0.6522331
+ }
+ ]
+ },
+ {
+ "query": "veterinary oncology treatment",
+ "field": "Veterinary",
+ "rank": 2,
+ "topic_name": "Ocular Oncology and Treatments",
+ "total_score": 41.315895,
+ "lexical_score": 24.343631300000002,
+ "title_vector_score": 20.756607,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Intraocular Chemotherapy",
+ "score": 0.5939763
+ },
+ {
+ "keyword": "Metastatic Disease",
+ "score": 0.556853
+ }
+ ]
+ },
+ {
+ "query": "veterinary oncology treatment",
+ "field": "Veterinary",
+ "rank": 3,
+ "topic_name": "Cancer Treatment and Pharmacology",
+ "total_score": 32.932682,
+ "lexical_score": 16.0134154,
+ "title_vector_score": 20.27958,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Metastatic Breast Cancer",
+ "score": 0.5402972
+ }
+ ]
+ },
+ {
+ "query": "avian medicine care",
+ "field": "Veterinary",
+ "rank": 1,
+ "topic_name": "Bird parasitology and diseases",
+ "total_score": 47.322456,
+ "lexical_score": 22.398995,
+ "title_vector_score": 17.661934,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 16.652012,
+ "matched_keywords": [
+ {
+ "keyword": "Avian Malaria",
+ "score": 0.6660805
+ },
+ {
+ "keyword": "Vector-borne Diseases",
+ "score": 0.510746
+ }
+ ]
+ },
+ {
+ "query": "avian medicine care",
+ "field": "Veterinary",
+ "rank": 2,
+ "topic_name": "Neonatal skin health care",
+ "total_score": 34.7759,
+ "lexical_score": 29.2057455,
+ "title_vector_score": 17.668228,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Umbilical Cord Care",
+ "score": 0.57775116
+ }
+ ]
+ },
+ {
+ "query": "avian medicine care",
+ "field": "Veterinary",
+ "rank": 3,
+ "topic_name": "Avian ecology and behavior",
+ "total_score": 25.166224,
+ "lexical_score": 47.937278,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Avian Ecology",
+ "score": 0.59473294
+ }
+ ]
+ },
+ {
+ "query": "small animal internal",
+ "field": "Veterinary",
+ "rank": 1,
+ "topic_name": "Medical Imaging Techniques and Applications",
+ "total_score": 42.901512,
+ "lexical_score": 32.034965,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 20.344799,
+ "matched_keywords": [
+ {
+ "keyword": "small animal",
+ "score": 0.81379193
+ }
+ ]
+ },
+ {
+ "query": "small animal internal",
+ "field": "Veterinary",
+ "rank": 2,
+ "topic_name": "Animal Behavior and Reproduction",
+ "total_score": 31.747627,
+ "lexical_score": 21.949972000000002,
+ "title_vector_score": 15.357093,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "small animal internal",
+ "field": "Veterinary",
+ "rank": 3,
+ "topic_name": "Animal Genetics and Reproduction",
+ "total_score": 31.679726,
+ "lexical_score": 33.7361067,
+ "title_vector_score": 15.289192,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "livestock herd health",
+ "field": "Veterinary",
+ "rank": 1,
+ "topic_name": "Animal Nutrition and Health",
+ "total_score": 55.69065,
+ "lexical_score": 33.2868249,
+ "title_vector_score": 18.871193,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 21.790249,
+ "matched_keywords": [
+ {
+ "keyword": "Livestock Health",
+ "score": 0.87161
+ },
+ {
+ "keyword": "Meat Quality",
+ "score": 0.5803642
+ }
+ ]
+ },
+ {
+ "query": "livestock herd health",
+ "field": "Veterinary",
+ "rank": 2,
+ "topic_name": "Livestock Farming and Management",
+ "total_score": 39.82737,
+ "lexical_score": 36.327276,
+ "title_vector_score": 19.717674,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Livestock Production",
+ "score": 0.6502177
+ },
+ {
+ "keyword": "Beef Cattle",
+ "score": 0.5869382
+ }
+ ]
+ },
+ {
+ "query": "livestock herd health",
+ "field": "Veterinary",
+ "rank": 3,
+ "topic_name": "Livestock and Poultry Management",
+ "total_score": 39.62805,
+ "lexical_score": 20.109695,
+ "title_vector_score": 19.518356,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Family Poultry",
+ "score": 0.54301196
+ },
+ {
+ "keyword": "Indigenous Breeds",
+ "score": 0.5332845
+ }
+ ]
+ },
+ {
+ "query": "veterinary pharmacology drugs",
+ "field": "Veterinary",
+ "rank": 1,
+ "topic_name": "Veterinary Pharmacology and Anesthesia",
+ "total_score": 63.29387,
+ "lexical_score": 44.271889,
+ "title_vector_score": 23.467712,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Pharmacokinetics",
+ "score": 0.6610069
+ },
+ {
+ "keyword": "Drug Administration",
+ "score": 0.6322759
+ }
+ ]
+ },
+ {
+ "query": "veterinary pharmacology drugs",
+ "field": "Veterinary",
+ "rank": 2,
+ "topic_name": "Veterinary Oncology Research",
+ "total_score": 42.565544,
+ "lexical_score": 22.227789,
+ "title_vector_score": 20.337753,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Canine Cancer",
+ "score": 0.5315806
+ },
+ {
+ "keyword": "Molecular Pathology",
+ "score": 0.50883865
+ }
+ ]
+ },
+ {
+ "query": "veterinary pharmacology drugs",
+ "field": "Veterinary",
+ "rank": 3,
+ "topic_name": "Veterinary Medicine and Surgery",
+ "total_score": 40.306877,
+ "lexical_score": 20.109695,
+ "title_vector_score": 20.197182,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "animal welfare assessment",
+ "field": "Veterinary",
+ "rank": 1,
+ "topic_name": "Animal Behavior and Welfare Studies",
+ "total_score": 63.070606,
+ "lexical_score": 86.52319130000001,
+ "title_vector_score": 20.130997,
+ "description_vector_score": 9.204426,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Animal Welfare",
+ "score": 0.73718005
+ },
+ {
+ "keyword": "Farm Animal Welfare",
+ "score": 0.7333908
+ }
+ ]
+ },
+ {
+ "query": "animal welfare assessment",
+ "field": "Veterinary",
+ "rank": 2,
+ "topic_name": "Animal Law and Welfare",
+ "total_score": 57.648064,
+ "lexical_score": 78.43195650000001,
+ "title_vector_score": 20.698242,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Animal Welfare",
+ "score": 0.73718005
+ },
+ {
+ "keyword": "Animal Abuse",
+ "score": 0.6234703
+ }
+ ]
+ },
+ {
+ "query": "animal welfare assessment",
+ "field": "Veterinary",
+ "rank": 3,
+ "topic_name": "Veterinary Pharmacology and Anesthesia",
+ "total_score": 54.31898,
+ "lexical_score": 50.9785452,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 18.439198,
+ "matched_keywords": [
+ {
+ "keyword": "Animal Welfare",
+ "score": 0.7375679
+ },
+ {
+ "keyword": "Animal Research",
+ "score": 0.64169186
+ }
+ ]
+ },
+ {
+ "query": "veterinary radiology imaging",
+ "field": "Veterinary",
+ "rank": 1,
+ "topic_name": "Dental Radiography and Imaging",
+ "total_score": 42.296352,
+ "lexical_score": 47.884956700000004,
+ "title_vector_score": 21.418839,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Maxillofacial Radiology",
+ "score": 0.6841685
+ },
+ {
+ "keyword": "Dental Imaging",
+ "score": 0.6665573
+ }
+ ]
+ },
+ {
+ "query": "veterinary radiology imaging",
+ "field": "Veterinary",
+ "rank": 2,
+ "topic_name": "Veterinary Orthopedics and Neurology",
+ "total_score": 41.085457,
+ "lexical_score": 28.225696999999997,
+ "title_vector_score": 20.975761,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "veterinary radiology imaging",
+ "field": "Veterinary",
+ "rank": 3,
+ "topic_name": "Veterinary Medicine and Surgery",
+ "total_score": 41.082787,
+ "lexical_score": 20.109695,
+ "title_vector_score": 20.973091,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Adrenal Gland Tumors",
+ "score": 0.51871234
+ }
+ ]
+ },
+ {
+ "query": "feline behavior issues",
+ "field": "Veterinary",
+ "rank": 1,
+ "topic_name": "Animal Behavior and Reproduction",
+ "total_score": 31.315342,
+ "lexical_score": 17.654603,
+ "title_vector_score": 16.728477,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Behavioral Syndromes",
+ "score": 0.61431503
+ }
+ ]
+ },
+ {
+ "query": "feline behavior issues",
+ "field": "Veterinary",
+ "rank": 2,
+ "topic_name": "Animal Ecology and Behavior Studies",
+ "total_score": 29.228222,
+ "lexical_score": 13.317806,
+ "title_vector_score": 15.910415,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "feline behavior issues",
+ "field": "Veterinary",
+ "rank": 3,
+ "topic_name": "Child Welfare and Adoption",
+ "total_score": 25.234165,
+ "lexical_score": 9.588419,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 18.356228,
+ "matched_keywords": [
+ {
+ "keyword": "Behavior Problems",
+ "score": 0.7342491
+ }
+ ]
+ },
+ {
+ "query": "canine hip dysplasia",
+ "field": "Veterinary",
+ "rank": 1,
+ "topic_name": "Hip disorders and treatments",
+ "total_score": 72.962555,
+ "lexical_score": 69.744269,
+ "title_vector_score": 18.09452,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 19.309265,
+ "matched_keywords": [
+ {
+ "keyword": "Hip Dysplasia",
+ "score": 0.77237064
+ },
+ {
+ "keyword": "Hip Arthroscopy",
+ "score": 0.5834923
+ }
+ ]
+ },
+ {
+ "query": "canine hip dysplasia",
+ "field": "Veterinary",
+ "rank": 2,
+ "topic_name": "Hip and Femur Fractures",
+ "total_score": 40.439896,
+ "lexical_score": 45.641536,
+ "title_vector_score": 16.878586,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Hip Fracture",
+ "score": 0.54343796
+ }
+ ]
+ },
+ {
+ "query": "canine hip dysplasia",
+ "field": "Veterinary",
+ "rank": 3,
+ "topic_name": "Orthopaedic implants and arthroplasty",
+ "total_score": 33.33733,
+ "lexical_score": 26.585307,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 15.773042,
+ "matched_keywords": [
+ {
+ "keyword": "Hip Arthroplasty",
+ "score": 0.63092166
+ },
+ {
+ "keyword": "Total Hip Replacement",
+ "score": 0.6190135
+ }
+ ]
+ },
+ {
+ "query": "veterinary epidemiology outbreaks",
+ "field": "Veterinary",
+ "rank": 1,
+ "topic_name": "Viral Infections and Outbreaks Research",
+ "total_score": 40.30237,
+ "lexical_score": 28.784636,
+ "title_vector_score": 18.790894,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Outbreak",
+ "score": 0.57924527
+ }
+ ]
+ },
+ {
+ "query": "veterinary epidemiology outbreaks",
+ "field": "Veterinary",
+ "rank": 2,
+ "topic_name": "Vector-Borne Animal Diseases",
+ "total_score": 26.606363,
+ "lexical_score": 10.6054926,
+ "title_vector_score": 19.42833,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Epidemiology",
+ "score": 0.5954704
+ },
+ {
+ "keyword": "Bluetongue Virus",
+ "score": 0.506588
+ }
+ ]
+ },
+ {
+ "query": "veterinary epidemiology outbreaks",
+ "field": "Veterinary",
+ "rank": 3,
+ "topic_name": "Animal Virus Infections Studies",
+ "total_score": 26.076717,
+ "lexical_score": 10.1033172,
+ "title_vector_score": 19.345932,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Epidemiology",
+ "score": 0.59206265
+ }
+ ]
+ },
+ {
+ "query": "companion animal care",
+ "field": "Veterinary",
+ "rank": 1,
+ "topic_name": "Animal Nutrition and Health",
+ "total_score": 48.821514,
+ "lexical_score": 31.804598,
+ "title_vector_score": 16.831665,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 15.599315,
+ "matched_keywords": [
+ {
+ "keyword": "Animal Husbandry",
+ "score": 0.6239726
+ },
+ {
+ "keyword": "Livestock Health",
+ "score": 0.54931897
+ }
+ ]
+ },
+ {
+ "query": "companion animal care",
+ "field": "Veterinary",
+ "rank": 2,
+ "topic_name": "Animal Law and Welfare",
+ "total_score": 35.211884,
+ "lexical_score": 42.853999,
+ "title_vector_score": 17.416077,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Animal Welfare",
+ "score": 0.61438495
+ },
+ {
+ "keyword": "Animal Abuse",
+ "score": 0.5593834
+ }
+ ]
+ },
+ {
+ "query": "companion animal care",
+ "field": "Veterinary",
+ "rank": 3,
+ "topic_name": "Health Services Management and Policy",
+ "total_score": 27.058197,
+ "lexical_score": 15.8686916,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 16.147518,
+ "matched_keywords": [
+ {
+ "keyword": "patient care",
+ "score": 0.6459007
+ },
+ {
+ "keyword": "primary care",
+ "score": 0.5724869
+ }
+ ]
+ },
+ {
+ "query": "exotic pet medicine",
+ "field": "Veterinary",
+ "rank": 1,
+ "topic_name": "Quantum Chromodynamics and Particle Interactions",
+ "total_score": 33.234676,
+ "lexical_score": 25.682904999999998,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 15.548451,
+ "matched_keywords": [
+ {
+ "keyword": "exotic states",
+ "score": 0.62193805
+ }
+ ]
+ },
+ {
+ "query": "exotic pet medicine",
+ "field": "Veterinary",
+ "rank": 2,
+ "topic_name": "Medicinal Plant Extracts Effects",
+ "total_score": 25.720736,
+ "lexical_score": 13.0804932,
+ "title_vector_score": 16.472511,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Herbal Medicine",
+ "score": 0.57389194
+ }
+ ]
+ },
+ {
+ "query": "exotic pet medicine",
+ "field": "Veterinary",
+ "rank": 3,
+ "topic_name": "Diverse Scientific Research Studies",
+ "total_score": 24.650604,
+ "lexical_score": 13.4742086,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 15.402381,
+ "matched_keywords": [
+ {
+ "keyword": "herbal medicine",
+ "score": 0.61609524
+ }
+ ]
+ }
+ ]
+}
diff --git a/llm_evaluations/sentence_transformer/score_breakdown_results(paraphrase-multilingual-mpnet-base-v2).json b/llm_evaluations/sentence_transformer/score_breakdown_results(paraphrase-multilingual-mpnet-base-v2).json
new file mode 100644
index 00000000..360d1f4d
--- /dev/null
+++ b/llm_evaluations/sentence_transformer/score_breakdown_results(paraphrase-multilingual-mpnet-base-v2).json
@@ -0,0 +1,28540 @@
+{
+ "summary": {
+ "total_records": 1560,
+ "average_score": 52.0758484647436,
+ "averages": {
+ "lexical": 36.227475191528924,
+ "title_vector": 17.974803801282054,
+ "description_vector": 2.550179979166667,
+ "keywords_vector": 9.953108502564103
+ },
+ "percentages": {
+ "lexical": 54.309522522771715,
+ "title_vector": 26.94648210307507,
+ "description_vector": 3.8230391790609475,
+ "keywords_vector": 14.92095619509229
+ }
+ },
+ "field_summaries": {
+ "Social Sciences": {
+ "queries": 20,
+ "avg_score": 55.20930151666666,
+ "lexical_pct": 53.45830981966101,
+ "title_vector_pct": 27.812573760054548,
+ "description_vector_pct": 5.213132549095837,
+ "keywords_vector_pct": 13.515983871188617
+ },
+ "Medicine": {
+ "queries": 20,
+ "avg_score": 51.091508649999994,
+ "lexical_pct": 53.01880155109864,
+ "title_vector_pct": 29.602443933287525,
+ "description_vector_pct": 3.9056055233465177,
+ "keywords_vector_pct": 13.473148992267317
+ },
+ "Engineering": {
+ "queries": 20,
+ "avg_score": 50.75859845,
+ "lexical_pct": 52.26793384019406,
+ "title_vector_pct": 28.97803854222595,
+ "description_vector_pct": 3.282096890205248,
+ "keywords_vector_pct": 15.471930727374755
+ },
+ "Computer Science": {
+ "queries": 20,
+ "avg_score": 53.75884529999999,
+ "lexical_pct": 56.68637088223358,
+ "title_vector_pct": 24.530406021304387,
+ "description_vector_pct": 4.153528950044892,
+ "keywords_vector_pct": 14.62969414641715
+ },
+ "Arts and Humanities": {
+ "queries": 20,
+ "avg_score": 54.59153751666667,
+ "lexical_pct": 51.857957877063946,
+ "title_vector_pct": 28.891307694389372,
+ "description_vector_pct": 4.014310341303955,
+ "keywords_vector_pct": 15.236424087242725
+ },
+ "Biochemistry, Genetics and Molecular Biology": {
+ "queries": 20,
+ "avg_score": 49.070213466666665,
+ "lexical_pct": 54.44389844563594,
+ "title_vector_pct": 22.84826348588896,
+ "description_vector_pct": 2.3663852748412832,
+ "keywords_vector_pct": 20.341452793633817
+ },
+ "Agricultural and Biological Sciences": {
+ "queries": 20,
+ "avg_score": 48.64440713333333,
+ "lexical_pct": 49.47804830411051,
+ "title_vector_pct": 32.01383792856517,
+ "description_vector_pct": 2.8273366600679544,
+ "keywords_vector_pct": 15.680777107256372
+ },
+ "Environmental Science": {
+ "queries": 20,
+ "avg_score": 52.9876906,
+ "lexical_pct": 55.499278242163996,
+ "title_vector_pct": 25.50362396917797,
+ "description_vector_pct": 5.1033619435484745,
+ "keywords_vector_pct": 13.89373584510955
+ },
+ "Business, Management and Accounting": {
+ "queries": 20,
+ "avg_score": 53.92898458333333,
+ "lexical_pct": 58.417420123626314,
+ "title_vector_pct": 28.01981250136039,
+ "description_vector_pct": 2.6390199163013546,
+ "keywords_vector_pct": 10.923747458711949
+ },
+ "Psychology": {
+ "queries": 20,
+ "avg_score": 52.3812338,
+ "lexical_pct": 49.986021866526265,
+ "title_vector_pct": 27.495605076906987,
+ "description_vector_pct": 4.752555599220731,
+ "keywords_vector_pct": 17.765817457346014
+ },
+ "Materials Science": {
+ "queries": 20,
+ "avg_score": 51.87504296666666,
+ "lexical_pct": 54.70185258455573,
+ "title_vector_pct": 29.905204324731177,
+ "description_vector_pct": 5.766813449342647,
+ "keywords_vector_pct": 9.626129641370442
+ },
+ "Economics, Econometrics and Finance": {
+ "queries": 20,
+ "avg_score": 51.919911766666665,
+ "lexical_pct": 52.37122024161509,
+ "title_vector_pct": 28.153841894451837,
+ "description_vector_pct": 4.705073048053929,
+ "keywords_vector_pct": 14.76986481587915
+ },
+ "Health Professions": {
+ "queries": 20,
+ "avg_score": 45.63520138333333,
+ "lexical_pct": 48.39032829941966,
+ "title_vector_pct": 29.190184120357642,
+ "description_vector_pct": 3.6285095970219365,
+ "keywords_vector_pct": 18.790977983200765
+ },
+ "Physics and Astronomy": {
+ "queries": 20,
+ "avg_score": 55.80795428333334,
+ "lexical_pct": 55.7190117252976,
+ "title_vector_pct": 24.46457522492416,
+ "description_vector_pct": 2.6001438569914503,
+ "keywords_vector_pct": 17.216269192786783
+ },
+ "Chemistry": {
+ "queries": 20,
+ "avg_score": 51.54585269999999,
+ "lexical_pct": 54.523535428239086,
+ "title_vector_pct": 27.69975654622278,
+ "description_vector_pct": 3.7784632868426815,
+ "keywords_vector_pct": 13.998244738695451
+ },
+ "Mathematics": {
+ "queries": 20,
+ "avg_score": 56.719515616666676,
+ "lexical_pct": 56.51650980564741,
+ "title_vector_pct": 25.413841588770854,
+ "description_vector_pct": 3.653727373209121,
+ "keywords_vector_pct": 14.415921232372634
+ },
+ "Neuroscience": {
+ "queries": 20,
+ "avg_score": 52.34730621666667,
+ "lexical_pct": 53.40834749166826,
+ "title_vector_pct": 26.154444159547364,
+ "description_vector_pct": 5.971784658386333,
+ "keywords_vector_pct": 14.465423690398039
+ },
+ "Decision Sciences": {
+ "queries": 20,
+ "avg_score": 53.33509276666667,
+ "lexical_pct": 59.07271151408741,
+ "title_vector_pct": 21.88610401036103,
+ "description_vector_pct": 2.0875122538477284,
+ "keywords_vector_pct": 16.953672221703844
+ },
+ "Earth and Planetary Sciences": {
+ "queries": 20,
+ "avg_score": 48.37853658333332,
+ "lexical_pct": 51.54652586504016,
+ "title_vector_pct": 30.34225458869541,
+ "description_vector_pct": 2.3681286650068922,
+ "keywords_vector_pct": 15.74309088125754
+ },
+ "Immunology and Microbiology": {
+ "queries": 20,
+ "avg_score": 51.02330028333334,
+ "lexical_pct": 54.74689231666644,
+ "title_vector_pct": 24.636668154969428,
+ "description_vector_pct": 4.612299941881581,
+ "keywords_vector_pct": 16.004139586482548
+ },
+ "Energy": {
+ "queries": 20,
+ "avg_score": 61.35431661666667,
+ "lexical_pct": 59.61506545291228,
+ "title_vector_pct": 21.98963415436697,
+ "description_vector_pct": 6.522235142970639,
+ "keywords_vector_pct": 11.873065249750098
+ },
+ "Pharmacology, Toxicology and Pharmaceutics": {
+ "queries": 20,
+ "avg_score": 50.6063341,
+ "lexical_pct": 56.210211568118275,
+ "title_vector_pct": 22.283986773039434,
+ "description_vector_pct": 2.5819145913788395,
+ "keywords_vector_pct": 18.923887067463454
+ },
+ "Nursing": {
+ "queries": 20,
+ "avg_score": 57.93564978333334,
+ "lexical_pct": 56.31799596971615,
+ "title_vector_pct": 29.220679792216135,
+ "description_vector_pct": 3.3141257881381185,
+ "keywords_vector_pct": 11.147198449929585
+ },
+ "Chemical Engineering": {
+ "queries": 20,
+ "avg_score": 45.89540768333333,
+ "lexical_pct": 54.182851509484664,
+ "title_vector_pct": 32.06442366205804,
+ "description_vector_pct": 2.156757146398432,
+ "keywords_vector_pct": 11.595967682058864
+ },
+ "Dentistry": {
+ "queries": 20,
+ "avg_score": 51.23460385833333,
+ "lexical_pct": 50.66904405149444,
+ "title_vector_pct": 26.307284535930908,
+ "description_vector_pct": 3.61334093620184,
+ "keywords_vector_pct": 19.410330476372817
+ },
+ "Veterinary": {
+ "queries": 20,
+ "avg_score": 45.935712458333334,
+ "lexical_pct": 54.530360850352146,
+ "title_vector_pct": 28.490633490835194,
+ "description_vector_pct": 2.5051547879798157,
+ "keywords_vector_pct": 14.473850870832852
+ }
+ },
+ "results": [
+ {
+ "query": "sociology",
+ "field": "Social Sciences",
+ "rank": 1,
+ "topic_name": "Emile Durkheim and Sociology",
+ "total_score": 55.408806,
+ "lexical_score": 33.628865499999996,
+ "title_vector_score": 0.0,
+ "description_vector_score": 12.156107,
+ "keywords_vector_score": 24.989706,
+ "matched_keywords": [
+ {
+ "keyword": "sociology",
+ "score": 0.99958825
+ },
+ {
+ "keyword": "social conditions",
+ "score": 0.825433
+ }
+ ]
+ },
+ {
+ "query": "sociology",
+ "field": "Social Sciences",
+ "rank": 2,
+ "topic_name": "Contemporary Sociological Theory and Practice",
+ "total_score": 50.417297,
+ "lexical_score": 16.051634,
+ "title_vector_score": 27.805202,
+ "description_vector_score": 12.765838,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Public Sociology",
+ "score": 0.88709164
+ },
+ {
+ "keyword": "Social Theory",
+ "score": 0.8509965
+ }
+ ]
+ },
+ {
+ "query": "sociology",
+ "field": "Social Sciences",
+ "rank": 3,
+ "topic_name": "Sociology and Education Studies",
+ "total_score": 45.80953,
+ "lexical_score": 18.26299,
+ "title_vector_score": 27.546537,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Soziale Herkunft",
+ "score": 0.8363695
+ },
+ {
+ "keyword": "Soziale Praktiken",
+ "score": 0.8296571
+ }
+ ]
+ },
+ {
+ "query": "gender inequality in workplace",
+ "field": "Social Sciences",
+ "rank": 1,
+ "topic_name": "Gender Diversity and Inequality",
+ "total_score": 76.81629,
+ "lexical_score": 63.9757238,
+ "title_vector_score": 27.526339,
+ "description_vector_score": 13.028351,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Gender Diversity",
+ "score": 0.8530483
+ },
+ {
+ "keyword": "Workplace Bias",
+ "score": 0.836118
+ }
+ ]
+ },
+ {
+ "query": "gender inequality in workplace",
+ "field": "Social Sciences",
+ "rank": 2,
+ "topic_name": "Gender, Health, and Social Inequality",
+ "total_score": 59.57667,
+ "lexical_score": 58.20896087,
+ "title_vector_score": 26.469833,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Gender",
+ "score": 0.83590746
+ },
+ {
+ "keyword": "Social Inequality",
+ "score": 0.8116679
+ }
+ ]
+ },
+ {
+ "query": "gender inequality in workplace",
+ "field": "Social Sciences",
+ "rank": 3,
+ "topic_name": "Gender, Labor, and Family Dynamics",
+ "total_score": 50.19806,
+ "lexical_score": 36.21965027,
+ "title_vector_score": 0.0,
+ "description_vector_score": 12.363274,
+ "keywords_vector_score": 23.498577,
+ "matched_keywords": [
+ {
+ "keyword": "Gender Inequality",
+ "score": 0.9399431
+ }
+ ]
+ },
+ {
+ "query": "urbanization trends",
+ "field": "Social Sciences",
+ "rank": 1,
+ "topic_name": "Urbanization and City Planning",
+ "total_score": 64.0608,
+ "lexical_score": 23.561312,
+ "title_vector_score": 27.60865,
+ "description_vector_score": 12.89084,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Suburbanization",
+ "score": 0.9243028
+ },
+ {
+ "keyword": "Urban Decline",
+ "score": 0.89620423
+ }
+ ]
+ },
+ {
+ "query": "urbanization trends",
+ "field": "Social Sciences",
+ "rank": 2,
+ "topic_name": "Global Development and Urbanization",
+ "total_score": 51.13897,
+ "lexical_score": 23.561312,
+ "title_vector_score": 27.577658,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Urban Planning",
+ "score": 0.8571191
+ }
+ ]
+ },
+ {
+ "query": "urbanization trends",
+ "field": "Social Sciences",
+ "rank": 3,
+ "topic_name": "China's Socioeconomic Reforms and Governance",
+ "total_score": 37.081387,
+ "lexical_score": 18.2568573,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.474144,
+ "matched_keywords": [
+ {
+ "keyword": "urbanization",
+ "score": 0.97896576
+ }
+ ]
+ },
+ {
+ "query": "political polarization",
+ "field": "Social Sciences",
+ "rank": 1,
+ "topic_name": "Reformation and Early Modern Christianity",
+ "total_score": 45.198143,
+ "lexical_score": 23.7816267,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.839336,
+ "matched_keywords": [
+ {
+ "keyword": "Political Polarization",
+ "score": 0.9935734
+ }
+ ]
+ },
+ {
+ "query": "political polarization",
+ "field": "Social Sciences",
+ "rank": 2,
+ "topic_name": "Electoral Systems and Political Participation",
+ "total_score": 42.890106,
+ "lexical_score": 43.9795081,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.963106,
+ "matched_keywords": [
+ {
+ "keyword": "Party Polarization",
+ "score": 0.91852427
+ },
+ {
+ "keyword": "Political Science",
+ "score": 0.8452487
+ }
+ ]
+ },
+ {
+ "query": "political polarization",
+ "field": "Social Sciences",
+ "rank": 3,
+ "topic_name": "Political Developments and Conflicts",
+ "total_score": 40.560955,
+ "lexical_score": 14.586864,
+ "title_vector_score": 25.97409,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "human rights law",
+ "field": "Social Sciences",
+ "rank": 1,
+ "topic_name": "International Law and Human Rights",
+ "total_score": 70.70603,
+ "lexical_score": 77.48566689999998,
+ "title_vector_score": 28.549139,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Human Rights",
+ "score": 0.9757674
+ },
+ {
+ "keyword": "International Humanitarian Law",
+ "score": 0.85901594
+ }
+ ]
+ },
+ {
+ "query": "human rights law",
+ "field": "Social Sciences",
+ "rank": 2,
+ "topic_name": "Legal Rights and Human Rights",
+ "total_score": 64.17262,
+ "lexical_score": 76.1793958,
+ "title_vector_score": 29.076769,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Human Rights",
+ "score": 0.9758651
+ },
+ {
+ "keyword": "European Court of Human Rights",
+ "score": 0.9021833
+ }
+ ]
+ },
+ {
+ "query": "human rights law",
+ "field": "Social Sciences",
+ "rank": 3,
+ "topic_name": "Human Rights and Development",
+ "total_score": 59.35067,
+ "lexical_score": 55.6740135,
+ "title_vector_score": 27.421661,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Human Rights",
+ "score": 0.97574043
+ },
+ {
+ "keyword": "Rights-Based Approach",
+ "score": 0.86790967
+ }
+ ]
+ },
+ {
+ "query": "social mobility",
+ "field": "Social Sciences",
+ "rank": 1,
+ "topic_name": "Intergenerational and Educational Inequality Studies",
+ "total_score": 53.5253,
+ "lexical_score": 27.911473899999997,
+ "title_vector_score": 0.0,
+ "description_vector_score": 12.164576,
+ "keywords_vector_score": 22.617907,
+ "matched_keywords": [
+ {
+ "keyword": "Economic Mobility",
+ "score": 0.90471625
+ },
+ {
+ "keyword": "Intergenerational Mobility",
+ "score": 0.8684342
+ }
+ ]
+ },
+ {
+ "query": "social mobility",
+ "field": "Social Sciences",
+ "rank": 2,
+ "topic_name": "Transportation and Mobility Innovations",
+ "total_score": 46.61083,
+ "lexical_score": 36.341184,
+ "title_vector_score": 24.896221,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Mobility as a Service",
+ "score": 0.8544874
+ }
+ ]
+ },
+ {
+ "query": "social mobility",
+ "field": "Social Sciences",
+ "rank": 3,
+ "topic_name": "Human Mobility and Location-Based Analysis",
+ "total_score": 43.892998,
+ "lexical_score": 38.2259111,
+ "title_vector_score": 25.654327,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Human Mobility",
+ "score": 0.86863995
+ },
+ {
+ "keyword": "Population Movements",
+ "score": 0.8241401
+ }
+ ]
+ },
+ {
+ "query": "qualitative research methods",
+ "field": "Social Sciences",
+ "rank": 1,
+ "topic_name": "Qualitative Research Methods and Ethics",
+ "total_score": 77.43873,
+ "lexical_score": 64.264787,
+ "title_vector_score": 26.651295,
+ "description_vector_score": 12.779489,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Qualitative Research",
+ "score": 0.95608497
+ }
+ ]
+ },
+ {
+ "query": "qualitative research methods",
+ "field": "Social Sciences",
+ "rank": 2,
+ "topic_name": "Qualitative Research Methods and Applications",
+ "total_score": 66.93884,
+ "lexical_score": 60.7065409,
+ "title_vector_score": 28.9309,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Qualitative Research",
+ "score": 0.95589995
+ }
+ ]
+ },
+ {
+ "query": "qualitative research methods",
+ "field": "Social Sciences",
+ "rank": 3,
+ "topic_name": "Consumer Behavior and Market Dynamics",
+ "total_score": 61.281082,
+ "lexical_score": 34.8180332,
+ "title_vector_score": 0.0,
+ "description_vector_score": 12.919771,
+ "keywords_vector_score": 24.294138,
+ "matched_keywords": [
+ {
+ "keyword": "Qualitative Research Methods",
+ "score": 0.9717655
+ }
+ ]
+ },
+ {
+ "query": "demographic shifts",
+ "field": "Social Sciences",
+ "rank": 1,
+ "topic_name": "Socioeconomic and Demographic Analysis",
+ "total_score": 48.876873,
+ "lexical_score": 21.714607,
+ "title_vector_score": 27.162266,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "demographic shifts",
+ "field": "Social Sciences",
+ "rank": 2,
+ "topic_name": "Demographic Trends and Gender Preferences",
+ "total_score": 46.46414,
+ "lexical_score": 19.825434,
+ "title_vector_score": 26.638706,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "demographic shifts",
+ "field": "Social Sciences",
+ "rank": 3,
+ "topic_name": "Social Issues in Poland",
+ "total_score": 36.50808,
+ "lexical_score": 16.9154966,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.606674,
+ "matched_keywords": [
+ {
+ "keyword": "Demographic Changes",
+ "score": 0.984267
+ },
+ {
+ "keyword": "Generational Diversity",
+ "score": 0.8300383
+ }
+ ]
+ },
+ {
+ "query": "cultural anthropology",
+ "field": "Social Sciences",
+ "rank": 1,
+ "topic_name": "Anthropological Studies and Insights",
+ "total_score": 72.90829,
+ "lexical_score": 27.369926200000002,
+ "title_vector_score": 28.393736,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.932379,
+ "matched_keywords": [
+ {
+ "keyword": "Cultural Anthropology",
+ "score": 0.99729514
+ },
+ {
+ "keyword": "Ethnography",
+ "score": 0.90014195
+ }
+ ]
+ },
+ {
+ "query": "cultural anthropology",
+ "field": "Social Sciences",
+ "rank": 2,
+ "topic_name": "Anthropology: Ethics, History, Culture",
+ "total_score": 63.155655,
+ "lexical_score": 53.812639000000004,
+ "title_vector_score": 28.31427,
+ "description_vector_score": 12.337199,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Anthropology",
+ "score": 0.9562335
+ },
+ {
+ "keyword": "Applied Anthropology",
+ "score": 0.927238
+ }
+ ]
+ },
+ {
+ "query": "cultural anthropology",
+ "field": "Social Sciences",
+ "rank": 3,
+ "topic_name": "Humanities and Social Sciences",
+ "total_score": 45.32898,
+ "lexical_score": 29.5569201,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.932379,
+ "matched_keywords": [
+ {
+ "keyword": "Cultural Anthropology",
+ "score": 0.99729514
+ },
+ {
+ "keyword": "Philosophical Anthropology",
+ "score": 0.91519475
+ }
+ ]
+ },
+ {
+ "query": "criminal justice reform",
+ "field": "Social Sciences",
+ "rank": 1,
+ "topic_name": "Criminal Justice and Penology",
+ "total_score": 79.39074,
+ "lexical_score": 74.483061,
+ "title_vector_score": 26.297134,
+ "description_vector_score": 12.293007,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Criminal Justice",
+ "score": 0.93304944
+ },
+ {
+ "keyword": "Penal System",
+ "score": 0.8990817
+ }
+ ]
+ },
+ {
+ "query": "criminal justice reform",
+ "field": "Social Sciences",
+ "rank": 2,
+ "topic_name": "Criminal Justice and Corrections Analysis",
+ "total_score": 77.783295,
+ "lexical_score": 62.70728559999999,
+ "title_vector_score": 28.138533,
+ "description_vector_score": 12.393816,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Criminal Justice",
+ "score": 0.9332261
+ }
+ ]
+ },
+ {
+ "query": "criminal justice reform",
+ "field": "Social Sciences",
+ "rank": 3,
+ "topic_name": "Indonesian Legal and Regulatory Studies",
+ "total_score": 49.906296,
+ "lexical_score": 35.205018100000004,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.330938,
+ "matched_keywords": [
+ {
+ "keyword": "Criminal Justice",
+ "score": 0.93323755
+ }
+ ]
+ },
+ {
+ "query": "public policy analysis",
+ "field": "Social Sciences",
+ "rank": 1,
+ "topic_name": "Public Policy and Governance",
+ "total_score": 58.70601,
+ "lexical_score": 52.0463669,
+ "title_vector_score": 27.655542,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Public Policy",
+ "score": 0.97151875
+ }
+ ]
+ },
+ {
+ "query": "public policy analysis",
+ "field": "Social Sciences",
+ "rank": 2,
+ "topic_name": "Public Policy and Administration Research",
+ "total_score": 56.617462,
+ "lexical_score": 51.187937000000005,
+ "title_vector_score": 28.268387,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Policy Implementation",
+ "score": 0.87743115
+ },
+ {
+ "keyword": "Public Management Reform",
+ "score": 0.84440994
+ }
+ ]
+ },
+ {
+ "query": "public policy analysis",
+ "field": "Social Sciences",
+ "rank": 3,
+ "topic_name": "Public Administration and Political Analysis",
+ "total_score": 51.72555,
+ "lexical_score": 43.9123865,
+ "title_vector_score": 27.649319,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Public Administration",
+ "score": 0.86262536
+ },
+ {
+ "keyword": "Policy Change",
+ "score": 0.81941986
+ }
+ ]
+ },
+ {
+ "query": "indigenous languages",
+ "field": "Social Sciences",
+ "rank": 1,
+ "topic_name": "Indigenous Cultures and History",
+ "total_score": 68.27892,
+ "lexical_score": 35.2041715,
+ "title_vector_score": 27.039593,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.734547,
+ "matched_keywords": [
+ {
+ "keyword": "Indigenous Peoples",
+ "score": 0.90938187
+ }
+ ]
+ },
+ {
+ "query": "indigenous languages",
+ "field": "Social Sciences",
+ "rank": 2,
+ "topic_name": "Australian Indigenous Culture and History",
+ "total_score": 57.974243,
+ "lexical_score": 55.386841000000004,
+ "title_vector_score": 0.0,
+ "description_vector_score": 12.616804,
+ "keywords_vector_score": 23.078913,
+ "matched_keywords": [
+ {
+ "keyword": "Australian Indigenous Languages",
+ "score": 0.9231565
+ },
+ {
+ "keyword": "Ethnobotany",
+ "score": 0.8158045
+ }
+ ]
+ },
+ {
+ "query": "indigenous languages",
+ "field": "Social Sciences",
+ "rank": 3,
+ "topic_name": "Linguistics and Cultural Studies",
+ "total_score": 32.5758,
+ "lexical_score": 6.257396,
+ "title_vector_score": 26.318407,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "linguistics",
+ "score": 0.86940145
+ },
+ {
+ "keyword": "etymology",
+ "score": 0.83658195
+ }
+ ]
+ },
+ {
+ "query": "voter behavior",
+ "field": "Social Sciences",
+ "rank": 1,
+ "topic_name": "Electoral Systems and Political Participation",
+ "total_score": 73.114975,
+ "lexical_score": 34.7259653,
+ "title_vector_score": 25.493238,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.849827,
+ "matched_keywords": [
+ {
+ "keyword": "Voter Behavior",
+ "score": 0.99399304
+ },
+ {
+ "keyword": "Electoral Systems",
+ "score": 0.838305
+ }
+ ]
+ },
+ {
+ "query": "voter behavior",
+ "field": "Social Sciences",
+ "rank": 2,
+ "topic_name": "Gender Politics and Representation",
+ "total_score": 31.18818,
+ "lexical_score": 9.546975,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.310244,
+ "matched_keywords": [
+ {
+ "keyword": "Voting Behavior",
+ "score": 0.9724097
+ }
+ ]
+ },
+ {
+ "query": "voter behavior",
+ "field": "Social Sciences",
+ "rank": 3,
+ "topic_name": "Media Influence and Politics",
+ "total_score": 30.893463,
+ "lexical_score": 9.255214,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.307287,
+ "matched_keywords": [
+ {
+ "keyword": "Voting Behavior",
+ "score": 0.97229147
+ }
+ ]
+ },
+ {
+ "query": "globalization effects",
+ "field": "Social Sciences",
+ "rank": 1,
+ "topic_name": "Globalization and Economic Impact",
+ "total_score": 50.118538,
+ "lexical_score": 31.0537625,
+ "title_vector_score": 29.034397,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Globalization",
+ "score": 0.9340339
+ }
+ ]
+ },
+ {
+ "query": "globalization effects",
+ "field": "Social Sciences",
+ "rank": 2,
+ "topic_name": "Globalization, Economics, and Policies",
+ "total_score": 48.369263,
+ "lexical_score": 33.5042518,
+ "title_vector_score": 27.285126,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Globalization",
+ "score": 0.93423533
+ }
+ ]
+ },
+ {
+ "query": "globalization effects",
+ "field": "Social Sciences",
+ "rank": 3,
+ "topic_name": "Globalization, Historical Perspectives, and International Relations",
+ "total_score": 44.072124,
+ "lexical_score": 17.709122,
+ "title_vector_score": 26.363003,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "community development",
+ "field": "Social Sciences",
+ "rank": 1,
+ "topic_name": "Community and Sustainable Development",
+ "total_score": 59.881584,
+ "lexical_score": 51.456012300000005,
+ "title_vector_score": 27.664383,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Community Development",
+ "score": 0.998358
+ },
+ {
+ "keyword": "Rural Development",
+ "score": 0.85023546
+ }
+ ]
+ },
+ {
+ "query": "community development",
+ "field": "Social Sciences",
+ "rank": 2,
+ "topic_name": "Community Health and Development",
+ "total_score": 59.351315,
+ "lexical_score": 46.7165186,
+ "title_vector_score": 27.134113,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Community Capacity Building",
+ "score": 0.89518404
+ },
+ {
+ "keyword": "Community Empowerment",
+ "score": 0.877332
+ }
+ ]
+ },
+ {
+ "query": "community development",
+ "field": "Social Sciences",
+ "rank": 3,
+ "topic_name": "Community Development and Social Impact",
+ "total_score": 57.87587,
+ "lexical_score": 35.5834801,
+ "title_vector_score": 28.46157,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "media studies",
+ "field": "Social Sciences",
+ "rank": 1,
+ "topic_name": "Media and Communication Studies",
+ "total_score": 63.453846,
+ "lexical_score": 37.5507477,
+ "title_vector_score": 28.382019,
+ "description_vector_score": 13.259858,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Mediatization",
+ "score": 0.88903546
+ },
+ {
+ "keyword": "Journalism",
+ "score": 0.85768485
+ }
+ ]
+ },
+ {
+ "query": "media studies",
+ "field": "Social Sciences",
+ "rank": 2,
+ "topic_name": "Media Studies and Communication",
+ "total_score": 63.389404,
+ "lexical_score": 35.9725402,
+ "title_vector_score": 28.479008,
+ "description_vector_score": 13.098429,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "News Media",
+ "score": 0.8936198
+ },
+ {
+ "keyword": "Mediatization",
+ "score": 0.88923573
+ }
+ ]
+ },
+ {
+ "query": "media studies",
+ "field": "Social Sciences",
+ "rank": 3,
+ "topic_name": "Journalism and Media Studies",
+ "total_score": 63.07166,
+ "lexical_score": 41.9507898,
+ "title_vector_score": 28.199959,
+ "description_vector_score": 13.05973,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Media",
+ "score": 0.9469805
+ },
+ {
+ "keyword": "Media Industry",
+ "score": 0.9159837
+ }
+ ]
+ },
+ {
+ "query": "social movements",
+ "field": "Social Sciences",
+ "rank": 1,
+ "topic_name": "Communism, Protests, Social Movements",
+ "total_score": 98.7561,
+ "lexical_score": 58.1458655,
+ "title_vector_score": 27.532639,
+ "description_vector_score": 12.834953,
+ "keywords_vector_score": 24.929512,
+ "matched_keywords": [
+ {
+ "keyword": "social movements",
+ "score": 0.99718046
+ },
+ {
+ "keyword": "transnational activism",
+ "score": 0.848685
+ }
+ ]
+ },
+ {
+ "query": "social movements",
+ "field": "Social Sciences",
+ "rank": 2,
+ "topic_name": "Social Movements and Cultural Identity",
+ "total_score": 57.21958,
+ "lexical_score": 37.2375775,
+ "title_vector_score": 26.671522,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Social Change",
+ "score": 0.84800506
+ }
+ ]
+ },
+ {
+ "query": "social movements",
+ "field": "Social Sciences",
+ "rank": 3,
+ "topic_name": "African Studies and Ethnography",
+ "total_score": 39.405983,
+ "lexical_score": 21.8731309,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.929493,
+ "matched_keywords": [
+ {
+ "keyword": "social movements",
+ "score": 0.99717975
+ }
+ ]
+ },
+ {
+ "query": "migration patterns",
+ "field": "Social Sciences",
+ "rank": 1,
+ "topic_name": "Avian ecology and behavior",
+ "total_score": 43.162884,
+ "lexical_score": 26.5745383,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.866325,
+ "matched_keywords": [
+ {
+ "keyword": "Migration Patterns",
+ "score": 0.994653
+ }
+ ]
+ },
+ {
+ "query": "migration patterns",
+ "field": "Social Sciences",
+ "rank": 2,
+ "topic_name": "Galician and Iberian cultural studies",
+ "total_score": 43.162758,
+ "lexical_score": 26.5745383,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.8662,
+ "matched_keywords": [
+ {
+ "keyword": "Migration Patterns",
+ "score": 0.994648
+ }
+ ]
+ },
+ {
+ "query": "migration patterns",
+ "field": "Social Sciences",
+ "rank": 3,
+ "topic_name": "Migration, Ethnicity, and Economy",
+ "total_score": 42.395397,
+ "lexical_score": 16.800915,
+ "title_vector_score": 25.594482,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "welfare systems",
+ "field": "Social Sciences",
+ "rank": 1,
+ "topic_name": "Employment and Welfare Studies",
+ "total_score": 45.860855,
+ "lexical_score": 20.55929,
+ "title_vector_score": 25.301563,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "welfare systems",
+ "field": "Social Sciences",
+ "rank": 2,
+ "topic_name": "European Law and Migration",
+ "total_score": 39.92047,
+ "lexical_score": 23.167299,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.996323,
+ "matched_keywords": [
+ {
+ "keyword": "welfare systems",
+ "score": 0.9998529
+ },
+ {
+ "keyword": "social security",
+ "score": 0.82878923
+ }
+ ]
+ },
+ {
+ "query": "welfare systems",
+ "field": "Social Sciences",
+ "rank": 3,
+ "topic_name": "Social Policies and Family",
+ "total_score": 39.24644,
+ "lexical_score": 20.7647621,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.917496,
+ "matched_keywords": [
+ {
+ "keyword": "Welfare Systems",
+ "score": 0.9966998
+ }
+ ]
+ },
+ {
+ "query": "family dynamics",
+ "field": "Social Sciences",
+ "rank": 1,
+ "topic_name": "Marriage and Family Dynamics",
+ "total_score": 82.74547,
+ "lexical_score": 51.829483599999996,
+ "title_vector_score": 28.127754,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.396467,
+ "matched_keywords": [
+ {
+ "keyword": "Family Dynamics",
+ "score": 0.9758587
+ }
+ ]
+ },
+ {
+ "query": "family dynamics",
+ "field": "Social Sciences",
+ "rank": 2,
+ "topic_name": "Family Dynamics and Relationships",
+ "total_score": 72.1731,
+ "lexical_score": 47.5795492,
+ "title_vector_score": 29.437273,
+ "description_vector_score": 12.514586,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Family Structure",
+ "score": 0.93555903
+ },
+ {
+ "keyword": "Parenting",
+ "score": 0.86168456
+ }
+ ]
+ },
+ {
+ "query": "family dynamics",
+ "field": "Social Sciences",
+ "rank": 3,
+ "topic_name": "Intergenerational Family Dynamics and Caregiving",
+ "total_score": 54.454384,
+ "lexical_score": 42.2149624,
+ "title_vector_score": 26.862394,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Intergenerational Relations",
+ "score": 0.8817489
+ },
+ {
+ "keyword": "Family Support",
+ "score": 0.85516405
+ }
+ ]
+ },
+ {
+ "query": "cardiology",
+ "field": "Medicine",
+ "rank": 1,
+ "topic_name": "Cardiac Imaging and Diagnostics",
+ "total_score": 27.667702,
+ "lexical_score": 0.0,
+ "title_vector_score": 27.667702,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Cardiac Imaging",
+ "score": 0.91923213
+ },
+ {
+ "keyword": "Myocardial Infarction",
+ "score": 0.8564024
+ }
+ ]
+ },
+ {
+ "query": "cardiology",
+ "field": "Medicine",
+ "rank": 2,
+ "topic_name": "Cardiovascular Conditions and Treatments",
+ "total_score": 27.144506,
+ "lexical_score": 0.0,
+ "title_vector_score": 27.144506,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Cardiomyopathy",
+ "score": 0.96575737
+ },
+ {
+ "keyword": "Congenital Heart Disease",
+ "score": 0.8664026
+ }
+ ]
+ },
+ {
+ "query": "cardiology",
+ "field": "Medicine",
+ "rank": 3,
+ "topic_name": "Cardiac Valve Diseases and Treatments",
+ "total_score": 26.954477,
+ "lexical_score": 0.0,
+ "title_vector_score": 26.954477,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Heart Valve Surgery",
+ "score": 0.8742099
+ },
+ {
+ "keyword": "Cardiac Surgery Risk Models",
+ "score": 0.8661802
+ }
+ ]
+ },
+ {
+ "query": "diabetes management",
+ "field": "Medicine",
+ "rank": 1,
+ "topic_name": "Diabetes Treatment and Management",
+ "total_score": 71.81474,
+ "lexical_score": 46.1218352,
+ "title_vector_score": 29.563787,
+ "description_vector_score": 12.993947,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Type 2 Diabetes",
+ "score": 0.8891182
+ },
+ {
+ "keyword": "Insulin Therapy",
+ "score": 0.8789799
+ }
+ ]
+ },
+ {
+ "query": "diabetes management",
+ "field": "Medicine",
+ "rank": 2,
+ "topic_name": "Diabetes Management and Research",
+ "total_score": 71.27635,
+ "lexical_score": 51.3853787,
+ "title_vector_score": 29.38976,
+ "description_vector_score": 12.629581,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Diabetes",
+ "score": 0.95261645
+ },
+ {
+ "keyword": "Type 1 Diabetes",
+ "score": 0.89522815
+ }
+ ]
+ },
+ {
+ "query": "diabetes management",
+ "field": "Medicine",
+ "rank": 3,
+ "topic_name": "Diabetes Management and Education",
+ "total_score": 69.88555,
+ "lexical_score": 49.6009663,
+ "title_vector_score": 27.907276,
+ "description_vector_score": 12.721263,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Diabetes",
+ "score": 0.95283794
+ }
+ ]
+ },
+ {
+ "query": "oncology treatment options",
+ "field": "Medicine",
+ "rank": 1,
+ "topic_name": "Advances in Oncology and Radiotherapy",
+ "total_score": 46.11306,
+ "lexical_score": 33.5810738,
+ "title_vector_score": 27.342432,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Cancer Treatment",
+ "score": 0.9232621
+ }
+ ]
+ },
+ {
+ "query": "oncology treatment options",
+ "field": "Medicine",
+ "rank": 2,
+ "topic_name": "Cancer Diagnosis and Treatment",
+ "total_score": 39.440674,
+ "lexical_score": 15.526618800000001,
+ "title_vector_score": 26.78757,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "oncology treatment options",
+ "field": "Medicine",
+ "rank": 3,
+ "topic_name": "Silymarin and Mushroom Poisoning",
+ "total_score": 30.285873,
+ "lexical_score": 11.229092399999999,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.081696,
+ "matched_keywords": [
+ {
+ "keyword": "Cancer Treatment",
+ "score": 0.92326784
+ },
+ {
+ "keyword": "Chemoprevention",
+ "score": 0.86074615
+ }
+ ]
+ },
+ {
+ "query": "clinical trials",
+ "field": "Medicine",
+ "rank": 1,
+ "topic_name": "Statistical Methods in Clinical Trials",
+ "total_score": 80.87935,
+ "lexical_score": 65.553028,
+ "title_vector_score": 27.650385,
+ "description_vector_score": 12.570129,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Phase I Trials",
+ "score": 0.8744974
+ }
+ ]
+ },
+ {
+ "query": "clinical trials",
+ "field": "Medicine",
+ "rank": 2,
+ "topic_name": "Spinal Cord Injury Research",
+ "total_score": 43.63973,
+ "lexical_score": 21.9074568,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.7182,
+ "matched_keywords": [
+ {
+ "keyword": "Clinical Trials",
+ "score": 0.98872805
+ }
+ ]
+ },
+ {
+ "query": "clinical trials",
+ "field": "Medicine",
+ "rank": 3,
+ "topic_name": "Lung Cancer Treatments and Mutations",
+ "total_score": 42.067776,
+ "lexical_score": 25.145987,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.7182,
+ "matched_keywords": [
+ {
+ "keyword": "Clinical Trials",
+ "score": 0.98872805
+ }
+ ]
+ },
+ {
+ "query": "pediatric care",
+ "field": "Medicine",
+ "rank": 1,
+ "topic_name": "Adolescent and Pediatric Healthcare",
+ "total_score": 46.895226,
+ "lexical_score": 50.575766,
+ "title_vector_score": 26.476234,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Pediatric to Adult Care",
+ "score": 0.94259953
+ }
+ ]
+ },
+ {
+ "query": "pediatric care",
+ "field": "Medicine",
+ "rank": 2,
+ "topic_name": "Neonatal skin health care",
+ "total_score": 42.75598,
+ "lexical_score": 29.2057455,
+ "title_vector_score": 25.648306,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "pediatric care",
+ "field": "Medicine",
+ "rank": 3,
+ "topic_name": "Diabetes Management and Research",
+ "total_score": 42.378136,
+ "lexical_score": 22.337632499999998,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.90967,
+ "matched_keywords": [
+ {
+ "keyword": "Pediatric Care",
+ "score": 0.99638677
+ }
+ ]
+ },
+ {
+ "query": "chronic pain relief",
+ "field": "Medicine",
+ "rank": 1,
+ "topic_name": "Pain Mechanisms and Treatments",
+ "total_score": 52.374924,
+ "lexical_score": 57.028543,
+ "title_vector_score": 27.845585,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Chronic Pain",
+ "score": 0.9452181
+ },
+ {
+ "keyword": "Pain Modulation",
+ "score": 0.89595413
+ }
+ ]
+ },
+ {
+ "query": "chronic pain relief",
+ "field": "Medicine",
+ "rank": 2,
+ "topic_name": "Pain Management and Treatment",
+ "total_score": 51.531437,
+ "lexical_score": 55.479079999999996,
+ "title_vector_score": 28.61563,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Chronic Back Pain",
+ "score": 0.88219714
+ },
+ {
+ "keyword": "Neuropathic Pain",
+ "score": 0.8413255
+ }
+ ]
+ },
+ {
+ "query": "chronic pain relief",
+ "field": "Medicine",
+ "rank": 3,
+ "topic_name": "Acupuncture Treatment Research Studies",
+ "total_score": 48.90113,
+ "lexical_score": 37.140433599999994,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.030327,
+ "matched_keywords": [
+ {
+ "keyword": "Pain Relief",
+ "score": 0.9612131
+ }
+ ]
+ },
+ {
+ "query": "cardiovascular disease prevention",
+ "field": "Medicine",
+ "rank": 1,
+ "topic_name": "Cardiovascular Health and Disease Prevention",
+ "total_score": 76.12506,
+ "lexical_score": 59.5604657,
+ "title_vector_score": 29.447802,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Cardiovascular Events",
+ "score": 0.83533263
+ },
+ {
+ "keyword": "Hypertension",
+ "score": 0.81666255
+ }
+ ]
+ },
+ {
+ "query": "cardiovascular disease prevention",
+ "field": "Medicine",
+ "rank": 2,
+ "topic_name": "Health Promotion and Cardiovascular Prevention",
+ "total_score": 62.18583,
+ "lexical_score": 68.6158461,
+ "title_vector_score": 28.574038,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Cardiovascular Risk Assessment",
+ "score": 0.88972926
+ },
+ {
+ "keyword": "Chronic Disease Prevention",
+ "score": 0.84186625
+ }
+ ]
+ },
+ {
+ "query": "cardiovascular disease prevention",
+ "field": "Medicine",
+ "rank": 3,
+ "topic_name": "Cardiovascular Health and Risk Factors",
+ "total_score": 57.29161,
+ "lexical_score": 43.436679,
+ "title_vector_score": 27.92636,
+ "description_vector_score": 12.894924,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Cardiovascular Health",
+ "score": 0.93844056
+ },
+ {
+ "keyword": "Ideal Cardiovascular Health",
+ "score": 0.9133315
+ }
+ ]
+ },
+ {
+ "query": "surgical procedures",
+ "field": "Medicine",
+ "rank": 1,
+ "topic_name": "Minimally Invasive Surgical Techniques",
+ "total_score": 59.78599,
+ "lexical_score": 28.1938337,
+ "title_vector_score": 27.883566,
+ "description_vector_score": 12.185966,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Robotic Surgery",
+ "score": 0.88752174
+ },
+ {
+ "keyword": "Transgastric Surgery",
+ "score": 0.8738127
+ }
+ ]
+ },
+ {
+ "query": "surgical procedures",
+ "field": "Medicine",
+ "rank": 2,
+ "topic_name": "Abdominal Surgery and Complications",
+ "total_score": 30.3677,
+ "lexical_score": 3.985672,
+ "title_vector_score": 26.382029,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Damage Control Surgery",
+ "score": 0.8664458
+ }
+ ]
+ },
+ {
+ "query": "surgical procedures",
+ "field": "Medicine",
+ "rank": 3,
+ "topic_name": "Bariatric Surgery and Outcomes",
+ "total_score": 26.32435,
+ "lexical_score": 0.0,
+ "title_vector_score": 26.32435,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Bariatric Surgery",
+ "score": 0.89503217
+ },
+ {
+ "keyword": "Metabolic Surgery",
+ "score": 0.81421065
+ }
+ ]
+ },
+ {
+ "query": "infectious disease outbreak",
+ "field": "Medicine",
+ "rank": 1,
+ "topic_name": "Infectious Disease Case Reports and Treatments",
+ "total_score": 55.44239,
+ "lexical_score": 28.286613499999998,
+ "title_vector_score": 27.155779,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "infections",
+ "score": 0.8730104
+ }
+ ]
+ },
+ {
+ "query": "infectious disease outbreak",
+ "field": "Medicine",
+ "rank": 2,
+ "topic_name": "Vector-borne infectious diseases",
+ "total_score": 46.55835,
+ "lexical_score": 28.9040374,
+ "title_vector_score": 27.191341,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Pathogen Transmission",
+ "score": 0.8588793
+ }
+ ]
+ },
+ {
+ "query": "infectious disease outbreak",
+ "field": "Medicine",
+ "rank": 3,
+ "topic_name": "Viral Infections and Outbreaks Research",
+ "total_score": 44.040253,
+ "lexical_score": 16.183264,
+ "title_vector_score": 27.856987,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Outbreak",
+ "score": 0.93951035
+ },
+ {
+ "keyword": "Pathogenesis",
+ "score": 0.8463025
+ }
+ ]
+ },
+ {
+ "query": "medical imaging techniques",
+ "field": "Medicine",
+ "rank": 1,
+ "topic_name": "Medical Imaging Techniques and Applications",
+ "total_score": 68.23361,
+ "lexical_score": 53.1538113,
+ "title_vector_score": 29.513332,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "imaging",
+ "score": 0.9321368
+ }
+ ]
+ },
+ {
+ "query": "medical imaging techniques",
+ "field": "Medicine",
+ "rank": 2,
+ "topic_name": "Medical Imaging and Analysis",
+ "total_score": 60.512974,
+ "lexical_score": 48.406655799999996,
+ "title_vector_score": 29.12015,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Medical Image Analysis",
+ "score": 0.9046538
+ },
+ {
+ "keyword": "CT and MRI",
+ "score": 0.88262224
+ }
+ ]
+ },
+ {
+ "query": "medical imaging techniques",
+ "field": "Medicine",
+ "rank": 3,
+ "topic_name": "Radiomics and Machine Learning in Medical Imaging",
+ "total_score": 48.930443,
+ "lexical_score": 50.8894106,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.516779,
+ "matched_keywords": [
+ {
+ "keyword": "Medical Imaging",
+ "score": 0.98067117
+ },
+ {
+ "keyword": "Cancer Imaging",
+ "score": 0.86696076
+ }
+ ]
+ },
+ {
+ "query": "hypertension guidelines",
+ "field": "Medicine",
+ "rank": 1,
+ "topic_name": "Blood Pressure and Hypertension Studies",
+ "total_score": 60.25082,
+ "lexical_score": 51.634692900000005,
+ "title_vector_score": 27.67554,
+ "description_vector_score": 12.749845,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Hypertension",
+ "score": 0.9544523
+ },
+ {
+ "keyword": "Antihypertensive Drugs",
+ "score": 0.86347795
+ }
+ ]
+ },
+ {
+ "query": "hypertension guidelines",
+ "field": "Medicine",
+ "rank": 2,
+ "topic_name": "Hormonal Regulation and Hypertension",
+ "total_score": 48.151104,
+ "lexical_score": 37.4912986,
+ "title_vector_score": 26.436497,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Hypertension",
+ "score": 0.9544523
+ }
+ ]
+ },
+ {
+ "query": "hypertension guidelines",
+ "field": "Medicine",
+ "rank": 3,
+ "topic_name": "Cardiovascular, Neuropeptides, and Oxidative Stress Research",
+ "total_score": 34.326576,
+ "lexical_score": 15.881548,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.865795,
+ "matched_keywords": [
+ {
+ "keyword": "Hypertension",
+ "score": 0.9546318
+ }
+ ]
+ },
+ {
+ "query": "patient outcomes",
+ "field": "Medicine",
+ "rank": 1,
+ "topic_name": "Pharmaceutical Practices and Patient Outcomes",
+ "total_score": 59.094284,
+ "lexical_score": 40.000112599999994,
+ "title_vector_score": 25.753927,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "patient outcomes",
+ "field": "Medicine",
+ "rank": 2,
+ "topic_name": "Patient Satisfaction in Healthcare",
+ "total_score": 45.13371,
+ "lexical_score": 48.593436700000005,
+ "title_vector_score": 25.41725,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Clinical Outcomes",
+ "score": 0.9583349
+ },
+ {
+ "keyword": "Patient Experience",
+ "score": 0.8851676
+ }
+ ]
+ },
+ {
+ "query": "patient outcomes",
+ "field": "Medicine",
+ "rank": 3,
+ "topic_name": "Nursing education and management",
+ "total_score": 41.4448,
+ "lexical_score": 24.495275600000003,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.604118,
+ "matched_keywords": [
+ {
+ "keyword": "Patient Outcomes",
+ "score": 0.9841647
+ },
+ {
+ "keyword": "Clinical Practice",
+ "score": 0.8571639
+ }
+ ]
+ },
+ {
+ "query": "immunotherapy for cancer",
+ "field": "Medicine",
+ "rank": 1,
+ "topic_name": "Cancer Immunotherapy and Biomarkers",
+ "total_score": 77.38598,
+ "lexical_score": 72.5294228,
+ "title_vector_score": 28.04738,
+ "description_vector_score": 12.427987,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Cancer Immunoediting",
+ "score": 0.9747193
+ },
+ {
+ "keyword": "Biomarkers for Immunotherapy",
+ "score": 0.83363223
+ }
+ ]
+ },
+ {
+ "query": "immunotherapy for cancer",
+ "field": "Medicine",
+ "rank": 2,
+ "topic_name": "Immunotherapy and Immune Responses",
+ "total_score": 75.08325,
+ "lexical_score": 47.95501,
+ "title_vector_score": 26.643692,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.878252,
+ "matched_keywords": [
+ {
+ "keyword": "Cancer Immunotherapy",
+ "score": 0.99513006
+ },
+ {
+ "keyword": "Tumor Antigen",
+ "score": 0.8533697
+ }
+ ]
+ },
+ {
+ "query": "immunotherapy for cancer",
+ "field": "Medicine",
+ "rank": 3,
+ "topic_name": "CAR-T cell therapy research",
+ "total_score": 44.366486,
+ "lexical_score": 26.7354781,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.874168,
+ "matched_keywords": [
+ {
+ "keyword": "Cancer Immunotherapy",
+ "score": 0.99496675
+ },
+ {
+ "keyword": "Immunotherapy",
+ "score": 0.91187286
+ }
+ ]
+ },
+ {
+ "query": "epidemiology study",
+ "field": "Medicine",
+ "rank": 1,
+ "topic_name": "Statistical Methods in Epidemiology",
+ "total_score": 46.103367,
+ "lexical_score": 17.828949,
+ "title_vector_score": 28.274418,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Epidemiologic Research",
+ "score": 0.9858682
+ },
+ {
+ "keyword": "Clinical Studies",
+ "score": 0.8354974
+ }
+ ]
+ },
+ {
+ "query": "epidemiology study",
+ "field": "Medicine",
+ "rank": 2,
+ "topic_name": "Historical and modern epidemiology studies",
+ "total_score": 45.040573,
+ "lexical_score": 39.2992713,
+ "title_vector_score": 28.762743,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Epidemiology",
+ "score": 0.9765787
+ }
+ ]
+ },
+ {
+ "query": "epidemiology study",
+ "field": "Medicine",
+ "rank": 3,
+ "topic_name": "Global Health and Epidemiology",
+ "total_score": 44.15569,
+ "lexical_score": 17.828949,
+ "title_vector_score": 26.32674,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Epidemiological Profile",
+ "score": 0.9715898
+ }
+ ]
+ },
+ {
+ "query": "stroke rehabilitation",
+ "field": "Medicine",
+ "rank": 1,
+ "topic_name": "Stroke Rehabilitation and Recovery",
+ "total_score": 86.17312,
+ "lexical_score": 83.081315,
+ "title_vector_score": 29.447872,
+ "description_vector_score": 13.447476,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Rehabilitation Techniques",
+ "score": 0.8278475
+ }
+ ]
+ },
+ {
+ "query": "stroke rehabilitation",
+ "field": "Medicine",
+ "rank": 2,
+ "topic_name": "Acute Ischemic Stroke Management",
+ "total_score": 49.98201,
+ "lexical_score": 43.9406435,
+ "title_vector_score": 26.420696,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Ischemic Stroke",
+ "score": 0.8531909
+ }
+ ]
+ },
+ {
+ "query": "stroke rehabilitation",
+ "field": "Medicine",
+ "rank": 3,
+ "topic_name": "Medical Practices and Rehabilitation",
+ "total_score": 44.311195,
+ "lexical_score": 38.4044697,
+ "title_vector_score": 24.594734,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Rehabilitation",
+ "score": 0.8382189
+ }
+ ]
+ },
+ {
+ "query": "genetic disorders",
+ "field": "Medicine",
+ "rank": 1,
+ "topic_name": "Genetic Syndromes and Imprinting",
+ "total_score": 45.54258,
+ "lexical_score": 17.273071,
+ "title_vector_score": 28.26951,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Gene Expression",
+ "score": 0.8372104
+ },
+ {
+ "keyword": "Imprinted Genes",
+ "score": 0.8297808
+ }
+ ]
+ },
+ {
+ "query": "genetic disorders",
+ "field": "Medicine",
+ "rank": 2,
+ "topic_name": "Hereditary Neurological Disorders",
+ "total_score": 42.13003,
+ "lexical_score": 27.443119,
+ "title_vector_score": 28.05685,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Genetic Mutations",
+ "score": 0.9065144
+ },
+ {
+ "keyword": "Neurofilament Mutations",
+ "score": 0.8249538
+ }
+ ]
+ },
+ {
+ "query": "genetic disorders",
+ "field": "Medicine",
+ "rank": 3,
+ "topic_name": "Genetics and Neurodevelopmental Disorders",
+ "total_score": 40.201855,
+ "lexical_score": 26.469494400000002,
+ "title_vector_score": 27.469711,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Genetic Mutations",
+ "score": 0.9065144
+ },
+ {
+ "keyword": "Rett Syndrome",
+ "score": 0.84319615
+ }
+ ]
+ },
+ {
+ "query": "telemedicine adoption",
+ "field": "Medicine",
+ "rank": 1,
+ "topic_name": "Telemedicine and Telehealth Implementation",
+ "total_score": 87.267166,
+ "lexical_score": 47.27097,
+ "title_vector_score": 27.260872,
+ "description_vector_score": 12.209509,
+ "keywords_vector_score": 22.630566,
+ "matched_keywords": [
+ {
+ "keyword": "Telemedicine",
+ "score": 0.90522265
+ },
+ {
+ "keyword": "Telehealth",
+ "score": 0.88264394
+ }
+ ]
+ },
+ {
+ "query": "telemedicine adoption",
+ "field": "Medicine",
+ "rank": 2,
+ "topic_name": "ECG Monitoring and Analysis",
+ "total_score": 35.566757,
+ "lexical_score": 19.679206999999998,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.633148,
+ "matched_keywords": [
+ {
+ "keyword": "Telemedicine",
+ "score": 0.9053259
+ }
+ ]
+ },
+ {
+ "query": "telemedicine adoption",
+ "field": "Medicine",
+ "rank": 3,
+ "topic_name": "Medical and Health Sciences Research",
+ "total_score": 35.29249,
+ "lexical_score": 20.20922,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.627502,
+ "matched_keywords": [
+ {
+ "keyword": "Telemedicine",
+ "score": 0.9051001
+ }
+ ]
+ },
+ {
+ "query": "internal medicine",
+ "field": "Medicine",
+ "rank": 1,
+ "topic_name": "Historical Studies on Reproduction, Gender, Health, and Societal Changes",
+ "total_score": 32.32831,
+ "lexical_score": 15.7534085,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.110361,
+ "matched_keywords": [
+ {
+ "keyword": "Medicine",
+ "score": 0.88441443
+ }
+ ]
+ },
+ {
+ "query": "internal medicine",
+ "field": "Medicine",
+ "rank": 2,
+ "topic_name": "Medical research and treatments",
+ "total_score": 32.0673,
+ "lexical_score": 14.1829236,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.110361,
+ "matched_keywords": [
+ {
+ "keyword": "Medicine",
+ "score": 0.88441443
+ }
+ ]
+ },
+ {
+ "query": "internal medicine",
+ "field": "Medicine",
+ "rank": 3,
+ "topic_name": "Comics and Graphic Narratives",
+ "total_score": 31.361113,
+ "lexical_score": 12.8044002,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.112888,
+ "matched_keywords": [
+ {
+ "keyword": "Medicine",
+ "score": 0.8845155
+ }
+ ]
+ },
+ {
+ "query": "diagnostic accuracy",
+ "field": "Medicine",
+ "rank": 1,
+ "topic_name": "Meta-analysis and systematic reviews",
+ "total_score": 45.943462,
+ "lexical_score": 30.5697795,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.733889,
+ "matched_keywords": [
+ {
+ "keyword": "Diagnostic Accuracy",
+ "score": 0.98935556
+ }
+ ]
+ },
+ {
+ "query": "diagnostic accuracy",
+ "field": "Medicine",
+ "rank": 2,
+ "topic_name": "Radiology practices and education",
+ "total_score": 45.51909,
+ "lexical_score": 31.545070000000003,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.732458,
+ "matched_keywords": [
+ {
+ "keyword": "Diagnostic Accuracy",
+ "score": 0.98929834
+ }
+ ]
+ },
+ {
+ "query": "diagnostic accuracy",
+ "field": "Medicine",
+ "rank": 3,
+ "topic_name": "MRI in cancer diagnosis",
+ "total_score": 44.72439,
+ "lexical_score": 28.3294546,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.73498,
+ "matched_keywords": [
+ {
+ "keyword": "Diagnostic Accuracy",
+ "score": 0.9893992
+ }
+ ]
+ },
+ {
+ "query": "palliative care",
+ "field": "Medicine",
+ "rank": 1,
+ "topic_name": "Palliative and Oncologic Care",
+ "total_score": 105.38351,
+ "lexical_score": 75.1267705,
+ "title_vector_score": 27.291111,
+ "description_vector_score": 12.720319,
+ "keywords_vector_score": 24.70309,
+ "matched_keywords": [
+ {
+ "keyword": "Palliative Care",
+ "score": 0.98812366
+ }
+ ]
+ },
+ {
+ "query": "palliative care",
+ "field": "Medicine",
+ "rank": 2,
+ "topic_name": "Palliative Care and End-of-Life Issues",
+ "total_score": 98.26401,
+ "lexical_score": 69.9007324,
+ "title_vector_score": 28.793,
+ "description_vector_score": 13.13928,
+ "keywords_vector_score": 24.704153,
+ "matched_keywords": [
+ {
+ "keyword": "Palliative Care",
+ "score": 0.9881661
+ }
+ ]
+ },
+ {
+ "query": "palliative care",
+ "field": "Medicine",
+ "rank": 3,
+ "topic_name": "Pathogenesis and Treatment of Hiccups",
+ "total_score": 45.09031,
+ "lexical_score": 29.0854737,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.704153,
+ "matched_keywords": [
+ {
+ "keyword": "Palliative Care",
+ "score": 0.9881661
+ }
+ ]
+ },
+ {
+ "query": "civil engineering",
+ "field": "Engineering",
+ "rank": 1,
+ "topic_name": "Civil and Structural Engineering Research",
+ "total_score": 97.26521,
+ "lexical_score": 60.8414627,
+ "title_vector_score": 28.101797,
+ "description_vector_score": 12.309858,
+ "keywords_vector_score": 24.894064,
+ "matched_keywords": [
+ {
+ "keyword": "Civil Engineering",
+ "score": 0.9957626
+ },
+ {
+ "keyword": "Construction",
+ "score": 0.8388221
+ }
+ ]
+ },
+ {
+ "query": "civil engineering",
+ "field": "Engineering",
+ "rank": 2,
+ "topic_name": "Civil and Geotechnical Engineering Research",
+ "total_score": 58.542435,
+ "lexical_score": 51.456829299999995,
+ "title_vector_score": 26.582937,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Engineering",
+ "score": 0.8867717
+ }
+ ]
+ },
+ {
+ "query": "civil engineering",
+ "field": "Engineering",
+ "rank": 3,
+ "topic_name": "Construction Engineering and Safety",
+ "total_score": 43.39644,
+ "lexical_score": 42.2219497,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.099453,
+ "matched_keywords": [
+ {
+ "keyword": "Civil Engineering Education",
+ "score": 0.9239781
+ },
+ {
+ "keyword": "Structural Engineering",
+ "score": 0.8569255
+ }
+ ]
+ },
+ {
+ "query": "structural integrity",
+ "field": "Engineering",
+ "rank": 1,
+ "topic_name": "Structural Integrity and Reliability Analysis",
+ "total_score": 64.77472,
+ "lexical_score": 41.5432852,
+ "title_vector_score": 27.64394,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "structural integrity",
+ "field": "Engineering",
+ "rank": 2,
+ "topic_name": "Unemployment and Economic Growth",
+ "total_score": 30.951715,
+ "lexical_score": 13.449307,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.01345,
+ "matched_keywords": [
+ {
+ "keyword": "Structural Stability",
+ "score": 0.880538
+ }
+ ]
+ },
+ {
+ "query": "structural integrity",
+ "field": "Engineering",
+ "rank": 3,
+ "topic_name": "Concrete Corrosion and Durability",
+ "total_score": 30.661928,
+ "lexical_score": 12.290938399999998,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.597431,
+ "matched_keywords": [
+ {
+ "keyword": "Structural Reliability",
+ "score": 0.9038973
+ }
+ ]
+ },
+ {
+ "query": "aerospace propulsion",
+ "field": "Engineering",
+ "rank": 1,
+ "topic_name": "Rocket and propulsion systems research",
+ "total_score": 60.858555,
+ "lexical_score": 37.155389299999996,
+ "title_vector_score": 27.971478,
+ "description_vector_score": 12.340757,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Hybrid Rocket Propulsion",
+ "score": 0.89923096
+ },
+ {
+ "keyword": "Space Launch Vehicles",
+ "score": 0.86215115
+ }
+ ]
+ },
+ {
+ "query": "aerospace propulsion",
+ "field": "Engineering",
+ "rank": 2,
+ "topic_name": "Heat transfer and supercritical fluids",
+ "total_score": 48.845306,
+ "lexical_score": 35.175049,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.731558,
+ "matched_keywords": [
+ {
+ "keyword": "Aerospace Propulsion",
+ "score": 0.98926234
+ }
+ ]
+ },
+ {
+ "query": "aerospace propulsion",
+ "field": "Engineering",
+ "rank": 3,
+ "topic_name": "Aerospace and Aviation Technology",
+ "total_score": 47.447105,
+ "lexical_score": 20.55929,
+ "title_vector_score": 26.887815,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Aerodynamic Modeling",
+ "score": 0.87216616
+ }
+ ]
+ },
+ {
+ "query": "mechanical design",
+ "field": "Engineering",
+ "rank": 1,
+ "topic_name": "Mechanical Systems and Engineering",
+ "total_score": 46.217903,
+ "lexical_score": 18.504786,
+ "title_vector_score": 27.71312,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "mechanical design",
+ "field": "Engineering",
+ "rank": 2,
+ "topic_name": "Mechanical Engineering Research and Applications",
+ "total_score": 44.18987,
+ "lexical_score": 24.9851746,
+ "title_vector_score": 27.295002,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "mechanical design",
+ "field": "Engineering",
+ "rank": 3,
+ "topic_name": "Mechanics and Biomechanics Studies",
+ "total_score": 31.048996,
+ "lexical_score": 10.937496,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.497671,
+ "matched_keywords": [
+ {
+ "keyword": "Mechanism Design",
+ "score": 0.93990684
+ },
+ {
+ "keyword": "Machine Engineering",
+ "score": 0.8806951
+ }
+ ]
+ },
+ {
+ "query": "robotics automation",
+ "field": "Engineering",
+ "rank": 1,
+ "topic_name": "Robotic Process Automation Applications",
+ "total_score": 75.20864,
+ "lexical_score": 44.621878300000006,
+ "title_vector_score": 28.653759,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.050695,
+ "matched_keywords": [
+ {
+ "keyword": "Robotic Process Automation",
+ "score": 0.9620278
+ },
+ {
+ "keyword": "Automation",
+ "score": 0.9136815
+ }
+ ]
+ },
+ {
+ "query": "robotics automation",
+ "field": "Engineering",
+ "rank": 2,
+ "topic_name": "Robotics and Automated Systems",
+ "total_score": 49.332108,
+ "lexical_score": 46.8167556,
+ "title_vector_score": 29.22241,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Service Robots",
+ "score": 0.8830235
+ },
+ {
+ "keyword": "Internet of Robotic Things",
+ "score": 0.876251
+ }
+ ]
+ },
+ {
+ "query": "robotics automation",
+ "field": "Engineering",
+ "rank": 3,
+ "topic_name": "Advanced Scientific and Engineering Studies",
+ "total_score": 45.482742,
+ "lexical_score": 31.575908000000002,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.740292,
+ "matched_keywords": [
+ {
+ "keyword": "Robotics and Automation",
+ "score": 0.9896116
+ }
+ ]
+ },
+ {
+ "query": "geotechnical analysis",
+ "field": "Engineering",
+ "rank": 1,
+ "topic_name": "Geotechnical Engineering and Analysis",
+ "total_score": 71.52355,
+ "lexical_score": 44.8967418,
+ "title_vector_score": 29.128761,
+ "description_vector_score": 12.698397,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "geotechnical analysis",
+ "field": "Engineering",
+ "rank": 2,
+ "topic_name": "Geodetic Measurements and Engineering Structures",
+ "total_score": 40.6035,
+ "lexical_score": 0.0,
+ "title_vector_score": 27.87383,
+ "description_vector_score": 12.729668,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Geodetic",
+ "score": 0.9405906
+ }
+ ]
+ },
+ {
+ "query": "geotechnical analysis",
+ "field": "Engineering",
+ "rank": 3,
+ "topic_name": "Data Analysis with R",
+ "total_score": 33.84871,
+ "lexical_score": 19.8624551,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.868774,
+ "matched_keywords": [
+ {
+ "keyword": "geospatial analysis",
+ "score": 0.954751
+ }
+ ]
+ },
+ {
+ "query": "bridge construction",
+ "field": "Engineering",
+ "rank": 1,
+ "topic_name": "Civil and Structural Engineering Research",
+ "total_score": 46.960953,
+ "lexical_score": 33.468717,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.24925,
+ "matched_keywords": [
+ {
+ "keyword": "Bridge Engineering",
+ "score": 0.96997
+ },
+ {
+ "keyword": "Construction",
+ "score": 0.8842597
+ }
+ ]
+ },
+ {
+ "query": "bridge construction",
+ "field": "Engineering",
+ "rank": 2,
+ "topic_name": "Structural Engineering and Materials Analysis",
+ "total_score": 45.162746,
+ "lexical_score": 32.0695,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.35683,
+ "matched_keywords": [
+ {
+ "keyword": "Bridge Design",
+ "score": 0.93427324
+ },
+ {
+ "keyword": "Railway Bridges",
+ "score": 0.885659
+ }
+ ]
+ },
+ {
+ "query": "bridge construction",
+ "field": "Engineering",
+ "rank": 3,
+ "topic_name": "Construction Engineering and Safety",
+ "total_score": 44.413815,
+ "lexical_score": 39.3159475,
+ "title_vector_score": 25.046804,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Construction Safety",
+ "score": 0.8129859
+ }
+ ]
+ },
+ {
+ "query": "renewable energy grid",
+ "field": "Engineering",
+ "rank": 1,
+ "topic_name": "Power Systems and Renewable Energy",
+ "total_score": 74.38784,
+ "lexical_score": 77.5410631,
+ "title_vector_score": 28.645555,
+ "description_vector_score": 12.671395,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Renewable Energy",
+ "score": 0.9550891
+ },
+ {
+ "keyword": "Photovoltaic Generation",
+ "score": 0.8277695
+ }
+ ]
+ },
+ {
+ "query": "renewable energy grid",
+ "field": "Engineering",
+ "rank": 2,
+ "topic_name": "Renewable energy and sustainable power systems",
+ "total_score": 71.66511,
+ "lexical_score": 54.0578379,
+ "title_vector_score": 28.761192,
+ "description_vector_score": 12.479915,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Renewable Energy Sources",
+ "score": 0.9492364
+ },
+ {
+ "keyword": "Smart Grids",
+ "score": 0.8355911
+ }
+ ]
+ },
+ {
+ "query": "renewable energy grid",
+ "field": "Engineering",
+ "rank": 3,
+ "topic_name": "Hybrid Renewable Energy Systems",
+ "total_score": 64.1487,
+ "lexical_score": 64.7226853,
+ "title_vector_score": 27.926466,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Renewable Energy",
+ "score": 0.9550891
+ },
+ {
+ "keyword": "Renewable Resources",
+ "score": 0.90649796
+ }
+ ]
+ },
+ {
+ "query": "fluid mechanics",
+ "field": "Engineering",
+ "rank": 1,
+ "topic_name": "Fluid dynamics and aerodynamics studies",
+ "total_score": 45.7063,
+ "lexical_score": 46.824187300000006,
+ "title_vector_score": 26.368425,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Fluid Dynamics",
+ "score": 0.92581797
+ },
+ {
+ "keyword": "Mechanics",
+ "score": 0.8408277
+ }
+ ]
+ },
+ {
+ "query": "fluid mechanics",
+ "field": "Engineering",
+ "rank": 2,
+ "topic_name": "Fluid Dynamics and Mixing",
+ "total_score": 44.65629,
+ "lexical_score": 18.038483,
+ "title_vector_score": 26.617805,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "fluid mechanics",
+ "field": "Engineering",
+ "rank": 3,
+ "topic_name": "Fluid Dynamics Simulations and Interactions",
+ "total_score": 43.14174,
+ "lexical_score": 32.123365500000006,
+ "title_vector_score": 26.67261,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Fluid-Structure Interaction",
+ "score": 0.8883543
+ },
+ {
+ "keyword": "Smoothed Particle Hydrodynamics",
+ "score": 0.8148699
+ }
+ ]
+ },
+ {
+ "query": "electrical circuits",
+ "field": "Engineering",
+ "rank": 1,
+ "topic_name": "Analog and Mixed-Signal Circuit Design",
+ "total_score": 35.85816,
+ "lexical_score": 16.1271776,
+ "title_vector_score": 25.580442,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Current-Mode Circuits",
+ "score": 0.9108951
+ },
+ {
+ "keyword": "Voltage Reference",
+ "score": 0.8699138
+ }
+ ]
+ },
+ {
+ "query": "electrical circuits",
+ "field": "Engineering",
+ "rank": 2,
+ "topic_name": "Engineering and Technology Innovations",
+ "total_score": 35.02207,
+ "lexical_score": 16.0944566,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.530893,
+ "matched_keywords": [
+ {
+ "keyword": "Electric Circuits",
+ "score": 0.98123574
+ },
+ {
+ "keyword": "Equivalent Circuit Concept",
+ "score": 0.8765793
+ }
+ ]
+ },
+ {
+ "query": "electrical circuits",
+ "field": "Engineering",
+ "rank": 3,
+ "topic_name": "VLSI and FPGA Design Techniques",
+ "total_score": 34.005966,
+ "lexical_score": 16.609066,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.817665,
+ "matched_keywords": [
+ {
+ "keyword": "Analog Circuits",
+ "score": 0.9127066
+ }
+ ]
+ },
+ {
+ "query": "thermodynamics applications",
+ "field": "Engineering",
+ "rank": 1,
+ "topic_name": "Advanced Thermodynamics and Statistical Mechanics",
+ "total_score": 60.46903,
+ "lexical_score": 47.84172340000001,
+ "title_vector_score": 28.780754,
+ "description_vector_score": 12.917644,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Thermodynamic Efficiency",
+ "score": 0.92890763
+ },
+ {
+ "keyword": "Stochastic Thermodynamics",
+ "score": 0.92199945
+ }
+ ]
+ },
+ {
+ "query": "thermodynamics applications",
+ "field": "Engineering",
+ "rank": 2,
+ "topic_name": "Material Science and Thermodynamics",
+ "total_score": 49.004303,
+ "lexical_score": 20.55929,
+ "title_vector_score": 28.445013,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Thermoelectric Properties",
+ "score": 0.90807223
+ },
+ {
+ "keyword": "Heat Distribution",
+ "score": 0.8265743
+ }
+ ]
+ },
+ {
+ "query": "thermodynamics applications",
+ "field": "Engineering",
+ "rank": 3,
+ "topic_name": "Chemical Thermodynamics and Molecular Structure",
+ "total_score": 43.3965,
+ "lexical_score": 32.891933,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.625868,
+ "matched_keywords": [
+ {
+ "keyword": "Thermodynamics",
+ "score": 0.9850347
+ },
+ {
+ "keyword": "Heat Capacities",
+ "score": 0.83385205
+ }
+ ]
+ },
+ {
+ "query": "manufacturing optimization",
+ "field": "Engineering",
+ "rank": 1,
+ "topic_name": "Manufacturing Process and Optimization",
+ "total_score": 64.759514,
+ "lexical_score": 54.9258495,
+ "title_vector_score": 29.557306,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Design for Manufacture",
+ "score": 0.83521056
+ }
+ ]
+ },
+ {
+ "query": "manufacturing optimization",
+ "field": "Engineering",
+ "rank": 2,
+ "topic_name": "Advanced Manufacturing and Logistics Optimization",
+ "total_score": 60.83049,
+ "lexical_score": 46.289705999999995,
+ "title_vector_score": 28.690874,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "manufacturing optimization",
+ "field": "Engineering",
+ "rank": 3,
+ "topic_name": "Advanced Machining and Optimization Techniques",
+ "total_score": 40.521606,
+ "lexical_score": 23.9893332,
+ "title_vector_score": 27.63181,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Optimization",
+ "score": 0.9107156
+ }
+ ]
+ },
+ {
+ "query": "control systems engineering",
+ "field": "Engineering",
+ "rank": 1,
+ "topic_name": "Control Systems in Engineering",
+ "total_score": 65.464935,
+ "lexical_score": 56.390883,
+ "title_vector_score": 29.471605,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Control",
+ "score": 0.8865433
+ }
+ ]
+ },
+ {
+ "query": "control systems engineering",
+ "field": "Engineering",
+ "rank": 2,
+ "topic_name": "Advanced Control Systems Design",
+ "total_score": 52.3598,
+ "lexical_score": 42.864419299999994,
+ "title_vector_score": 28.867214,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Controller Tuning",
+ "score": 0.8540273
+ },
+ {
+ "keyword": "Discrete-Time Control Systems",
+ "score": 0.8346572
+ }
+ ]
+ },
+ {
+ "query": "control systems engineering",
+ "field": "Engineering",
+ "rank": 3,
+ "topic_name": "Industrial Technology and Control Systems",
+ "total_score": 49.38807,
+ "lexical_score": 41.2425545,
+ "title_vector_score": 27.93934,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Control System",
+ "score": 0.9515667
+ }
+ ]
+ },
+ {
+ "query": "materials fatigue",
+ "field": "Engineering",
+ "rank": 1,
+ "topic_name": "Mechanical stress and fatigue analysis",
+ "total_score": 81.65687,
+ "lexical_score": 41.650684,
+ "title_vector_score": 26.678238,
+ "description_vector_score": 12.182289,
+ "keywords_vector_score": 22.97091,
+ "matched_keywords": [
+ {
+ "keyword": "Corrosion Fatigue",
+ "score": 0.91883636
+ },
+ {
+ "keyword": "Fretting Fatigue",
+ "score": 0.8583994
+ }
+ ]
+ },
+ {
+ "query": "materials fatigue",
+ "field": "Engineering",
+ "rank": 2,
+ "topic_name": "Fatigue and fracture mechanics",
+ "total_score": 60.551147,
+ "lexical_score": 47.880446,
+ "title_vector_score": 26.488796,
+ "description_vector_score": 12.347746,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Multiaxial Fatigue Criterion",
+ "score": 0.85047317
+ },
+ {
+ "keyword": "Fatigue Crack Closure",
+ "score": 0.8498609
+ }
+ ]
+ },
+ {
+ "query": "materials fatigue",
+ "field": "Engineering",
+ "rank": 3,
+ "topic_name": "Mechanical Failure Analysis and Simulation",
+ "total_score": 37.85927,
+ "lexical_score": 20.6522535,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.2616,
+ "matched_keywords": [
+ {
+ "keyword": "Metal Fatigue",
+ "score": 0.930464
+ },
+ {
+ "keyword": "Fatigue Fracture",
+ "score": 0.8599324
+ }
+ ]
+ },
+ {
+ "query": "hvac design",
+ "field": "Engineering",
+ "rank": 1,
+ "topic_name": "Crafts, Textile, and Design",
+ "total_score": 36.36875,
+ "lexical_score": 23.441768500000002,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 21.230661,
+ "matched_keywords": [
+ {
+ "keyword": "Design",
+ "score": 0.8492265
+ }
+ ]
+ },
+ {
+ "query": "hvac design",
+ "field": "Engineering",
+ "rank": 2,
+ "topic_name": "Space Exploration and Technology",
+ "total_score": 29.332539,
+ "lexical_score": 11.578908799999999,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 21.230661,
+ "matched_keywords": [
+ {
+ "keyword": "Design",
+ "score": 0.8492265
+ }
+ ]
+ },
+ {
+ "query": "hvac design",
+ "field": "Engineering",
+ "rank": 3,
+ "topic_name": "Military Technology and Strategies",
+ "total_score": 28.614075,
+ "lexical_score": 10.4989181,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 21.230007,
+ "matched_keywords": [
+ {
+ "keyword": "Design",
+ "score": 0.84920025
+ }
+ ]
+ },
+ {
+ "query": "biomedical devices",
+ "field": "Engineering",
+ "rank": 1,
+ "topic_name": "Mechanical Circulatory Support Devices",
+ "total_score": 44.107964,
+ "lexical_score": 25.224155,
+ "title_vector_score": 24.740953,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "biomedical devices",
+ "field": "Engineering",
+ "rank": 2,
+ "topic_name": "Healthcare Regulation",
+ "total_score": 33.845444,
+ "lexical_score": 14.029979,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.16395,
+ "matched_keywords": [
+ {
+ "keyword": "Medical Devices",
+ "score": 0.966558
+ }
+ ]
+ },
+ {
+ "query": "biomedical devices",
+ "field": "Engineering",
+ "rank": 3,
+ "topic_name": "Wireless Body Area Networks",
+ "total_score": 31.965252,
+ "lexical_score": 13.575864,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.040897,
+ "matched_keywords": [
+ {
+ "keyword": "Implantable Medical Devices",
+ "score": 0.92163587
+ },
+ {
+ "keyword": "Biotelemetry",
+ "score": 0.8524394
+ }
+ ]
+ },
+ {
+ "query": "transportation infrastructure",
+ "field": "Engineering",
+ "rank": 1,
+ "topic_name": "Transportation Systems and Infrastructure",
+ "total_score": 68.95459,
+ "lexical_score": 39.476704999999995,
+ "title_vector_score": 29.477884,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "transportation infrastructure",
+ "field": "Engineering",
+ "rank": 2,
+ "topic_name": "Transportation Systems and Logistics",
+ "total_score": 47.150375,
+ "lexical_score": 52.6319258,
+ "title_vector_score": 27.783365,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Transport Network",
+ "score": 0.9301975
+ },
+ {
+ "keyword": "Road Infrastructure",
+ "score": 0.91980076
+ }
+ ]
+ },
+ {
+ "query": "transportation infrastructure",
+ "field": "Engineering",
+ "rank": 3,
+ "topic_name": "Fiscal Policy and Economic Growth",
+ "total_score": 38.486427,
+ "lexical_score": 25.434292,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.704498,
+ "matched_keywords": [
+ {
+ "keyword": "Transport Infrastructure",
+ "score": 0.9881799
+ },
+ {
+ "keyword": "Infrastructure",
+ "score": 0.9066706
+ }
+ ]
+ },
+ {
+ "query": "signal processing",
+ "field": "Engineering",
+ "rank": 1,
+ "topic_name": "Advanced Signal Processing Techniques",
+ "total_score": 90.5044,
+ "lexical_score": 61.7368941,
+ "title_vector_score": 28.938274,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.93497,
+ "matched_keywords": [
+ {
+ "keyword": "Signal Processing",
+ "score": 0.99739885
+ }
+ ]
+ },
+ {
+ "query": "signal processing",
+ "field": "Engineering",
+ "rank": 2,
+ "topic_name": "Radar Systems and Signal Processing",
+ "total_score": 59.115715,
+ "lexical_score": 61.2818039,
+ "title_vector_score": 25.671473,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Signal Processing",
+ "score": 0.99729013
+ }
+ ]
+ },
+ {
+ "query": "signal processing",
+ "field": "Engineering",
+ "rank": 3,
+ "topic_name": "Advanced Research in Systems and Signal Processing",
+ "total_score": 56.879463,
+ "lexical_score": 28.487423,
+ "title_vector_score": 28.39204,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "solid mechanics",
+ "field": "Engineering",
+ "rank": 1,
+ "topic_name": "Advanced Materials and Mechanics",
+ "total_score": 43.455994,
+ "lexical_score": 17.273071,
+ "title_vector_score": 26.182922,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "solid mechanics",
+ "field": "Engineering",
+ "rank": 2,
+ "topic_name": "Structural mechanics and materials",
+ "total_score": 43.093388,
+ "lexical_score": 17.273071,
+ "title_vector_score": 25.820316,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "solid mechanics",
+ "field": "Engineering",
+ "rank": 3,
+ "topic_name": "Material Dynamics and Properties",
+ "total_score": 25.375729,
+ "lexical_score": 0.0,
+ "title_vector_score": 25.375729,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "industrial engineering",
+ "field": "Engineering",
+ "rank": 1,
+ "topic_name": "Diverse Industrial Engineering Technologies",
+ "total_score": 95.831665,
+ "lexical_score": 55.5093815,
+ "title_vector_score": 27.892006,
+ "description_vector_score": 12.433144,
+ "keywords_vector_score": 24.967289,
+ "matched_keywords": [
+ {
+ "keyword": "Industrial Engineering",
+ "score": 0.99869156
+ },
+ {
+ "keyword": "Manufacturing Processes",
+ "score": 0.8435657
+ }
+ ]
+ },
+ {
+ "query": "industrial engineering",
+ "field": "Engineering",
+ "rank": 2,
+ "topic_name": "Industrial Engineering and Technologies",
+ "total_score": 59.637974,
+ "lexical_score": 30.539225000000002,
+ "title_vector_score": 29.09875,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "industrial engineering",
+ "field": "Engineering",
+ "rank": 3,
+ "topic_name": "Management and Performance Evaluation",
+ "total_score": 41.205505,
+ "lexical_score": 23.3506704,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.967838,
+ "matched_keywords": [
+ {
+ "keyword": "Industrial Engineering",
+ "score": 0.9987135
+ }
+ ]
+ },
+ {
+ "query": "machine learning",
+ "field": "Computer Science",
+ "rank": 1,
+ "topic_name": "Machine Learning and Algorithms",
+ "total_score": 74.285645,
+ "lexical_score": 55.5561871,
+ "title_vector_score": 29.258966,
+ "description_vector_score": 12.51866,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Machine Learning",
+ "score": 0.9987712
+ },
+ {
+ "keyword": "Deep Learning",
+ "score": 0.9119332
+ }
+ ]
+ },
+ {
+ "query": "machine learning",
+ "field": "Computer Science",
+ "rank": 2,
+ "topic_name": "Machine Learning and Data Classification",
+ "total_score": 58.02402,
+ "lexical_score": 52.9389944,
+ "title_vector_score": 28.344204,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Automated Machine Learning",
+ "score": 0.9839554
+ },
+ {
+ "keyword": "Robust Learning",
+ "score": 0.8454802
+ }
+ ]
+ },
+ {
+ "query": "machine learning",
+ "field": "Computer Science",
+ "rank": 3,
+ "topic_name": "Smart Systems and Machine Learning",
+ "total_score": 57.72189,
+ "lexical_score": 47.7023906,
+ "title_vector_score": 28.042072,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Machine Learning",
+ "score": 0.9987993
+ }
+ ]
+ },
+ {
+ "query": "natural language processing",
+ "field": "Computer Science",
+ "rank": 1,
+ "topic_name": "Natural Language Processing Techniques",
+ "total_score": 78.77587,
+ "lexical_score": 59.9096155,
+ "title_vector_score": 29.573793,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Language Modeling",
+ "score": 0.8714433
+ },
+ {
+ "keyword": "Multilingual Neural Machine Translation",
+ "score": 0.8371606
+ }
+ ]
+ },
+ {
+ "query": "natural language processing",
+ "field": "Computer Science",
+ "rank": 2,
+ "topic_name": "Hate Speech and Cyberbullying Detection",
+ "total_score": 53.037216,
+ "lexical_score": 40.7650005,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.961508,
+ "matched_keywords": [
+ {
+ "keyword": "Natural Language Processing",
+ "score": 0.9984603
+ }
+ ]
+ },
+ {
+ "query": "natural language processing",
+ "field": "Computer Science",
+ "rank": 3,
+ "topic_name": "Biomedical Text Mining and Ontologies",
+ "total_score": 48.59265,
+ "lexical_score": 35.2471288,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.961508,
+ "matched_keywords": [
+ {
+ "keyword": "Natural Language Processing",
+ "score": 0.9984603
+ }
+ ]
+ },
+ {
+ "query": "cybersecurity protocols",
+ "field": "Computer Science",
+ "rank": 1,
+ "topic_name": "Advanced Authentication Protocols Security",
+ "total_score": 61.9475,
+ "lexical_score": 40.201457000000005,
+ "title_vector_score": 27.02669,
+ "description_vector_score": 12.416621,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Security Protocols",
+ "score": 0.956506
+ }
+ ]
+ },
+ {
+ "query": "cybersecurity protocols",
+ "field": "Computer Science",
+ "rank": 2,
+ "topic_name": "Cybersecurity and Information Systems",
+ "total_score": 50.29576,
+ "lexical_score": 22.504187,
+ "title_vector_score": 27.791576,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Network Security",
+ "score": 0.9233022
+ }
+ ]
+ },
+ {
+ "query": "cybersecurity protocols",
+ "field": "Computer Science",
+ "rank": 3,
+ "topic_name": "Information and Cyber Security",
+ "total_score": 40.44555,
+ "lexical_score": 19.181902,
+ "title_vector_score": 27.231674,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Cybersecurity",
+ "score": 0.9601822
+ },
+ {
+ "keyword": "Information Security",
+ "score": 0.8946917
+ }
+ ]
+ },
+ {
+ "query": "cloud computing architecture",
+ "field": "Computer Science",
+ "rank": 1,
+ "topic_name": "Cloud Computing and Resource Management",
+ "total_score": 63.514732,
+ "lexical_score": 69.938745,
+ "title_vector_score": 27.198101,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Cloud Computing",
+ "score": 0.96982026
+ }
+ ]
+ },
+ {
+ "query": "cloud computing architecture",
+ "field": "Computer Science",
+ "rank": 2,
+ "topic_name": "Cloud Computing and Remote Desktop Technologies",
+ "total_score": 61.096977,
+ "lexical_score": 68.9313587,
+ "title_vector_score": 27.687014,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Mobile Cloud Computing",
+ "score": 0.90534043
+ }
+ ]
+ },
+ {
+ "query": "cloud computing architecture",
+ "field": "Computer Science",
+ "rank": 3,
+ "topic_name": "Cloud Data Security Solutions",
+ "total_score": 49.111034,
+ "lexical_score": 52.8240174,
+ "title_vector_score": 26.606848,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Cloud Computing",
+ "score": 0.96982026
+ }
+ ]
+ },
+ {
+ "query": "neural networks",
+ "field": "Computer Science",
+ "rank": 1,
+ "topic_name": "Neural Networks and Applications",
+ "total_score": 75.80876,
+ "lexical_score": 64.07318839999999,
+ "title_vector_score": 29.253265,
+ "description_vector_score": 12.243662,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Neural Networks",
+ "score": 0.9978559
+ },
+ {
+ "keyword": "Artificial Neural Networks",
+ "score": 0.9697478
+ }
+ ]
+ },
+ {
+ "query": "neural networks",
+ "field": "Computer Science",
+ "rank": 2,
+ "topic_name": "Advanced Neural Network Applications",
+ "total_score": 59.611774,
+ "lexical_score": 41.4858272,
+ "title_vector_score": 28.774689,
+ "description_vector_score": 12.3323,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Neural Network Architectures",
+ "score": 0.9585259
+ },
+ {
+ "keyword": "Convolutional Neural Networks",
+ "score": 0.9348631
+ }
+ ]
+ },
+ {
+ "query": "neural networks",
+ "field": "Computer Science",
+ "rank": 3,
+ "topic_name": "Model Reduction and Neural Networks",
+ "total_score": 58.74965,
+ "lexical_score": 37.3804894,
+ "title_vector_score": 27.422947,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Machine Learning",
+ "score": 0.81716394
+ }
+ ]
+ },
+ {
+ "query": "database optimization",
+ "field": "Computer Science",
+ "rank": 1,
+ "topic_name": "Advanced Database Systems and Queries",
+ "total_score": 71.93532,
+ "lexical_score": 59.5113226,
+ "title_vector_score": 25.89373,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.064827,
+ "matched_keywords": [
+ {
+ "keyword": "Query Optimization",
+ "score": 0.9225931
+ },
+ {
+ "keyword": "Column-oriented Database Systems",
+ "score": 0.81257033
+ }
+ ]
+ },
+ {
+ "query": "database optimization",
+ "field": "Computer Science",
+ "rank": 2,
+ "topic_name": "Advanced Optimization Algorithms Research",
+ "total_score": 39.95515,
+ "lexical_score": 32.657797,
+ "title_vector_score": 25.837082,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Optimization Software",
+ "score": 0.85752916
+ },
+ {
+ "keyword": "Derivative-Free Optimization",
+ "score": 0.8185699
+ }
+ ]
+ },
+ {
+ "query": "database optimization",
+ "field": "Computer Science",
+ "rank": 3,
+ "topic_name": "Parallel Computing and Optimization Techniques",
+ "total_score": 34.421104,
+ "lexical_score": 24.5882588,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 21.531307,
+ "matched_keywords": [
+ {
+ "keyword": "Performance Optimization",
+ "score": 0.8612523
+ }
+ ]
+ },
+ {
+ "query": "software engineering practices",
+ "field": "Computer Science",
+ "rank": 1,
+ "topic_name": "Software Engineering Techniques and Practices",
+ "total_score": 84.14234,
+ "lexical_score": 76.8700807,
+ "title_vector_score": 29.530828,
+ "description_vector_score": 13.058585,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Agile Software Development",
+ "score": 0.8700838
+ },
+ {
+ "keyword": "Software Process Improvement",
+ "score": 0.86963415
+ }
+ ]
+ },
+ {
+ "query": "software engineering practices",
+ "field": "Computer Science",
+ "rank": 2,
+ "topic_name": "Software Engineering Research",
+ "total_score": 75.66422,
+ "lexical_score": 59.4827097,
+ "title_vector_score": 28.715422,
+ "description_vector_score": 12.387993,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Software Maintenance",
+ "score": 0.83474135
+ }
+ ]
+ },
+ {
+ "query": "software engineering practices",
+ "field": "Computer Science",
+ "rank": 3,
+ "topic_name": "Advanced Software Engineering Methodologies",
+ "total_score": 60.019363,
+ "lexical_score": 63.5129698,
+ "title_vector_score": 28.751865,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Software Architecture",
+ "score": 0.89251685
+ }
+ ]
+ },
+ {
+ "query": "computer vision algorithms",
+ "field": "Computer Science",
+ "rank": 1,
+ "topic_name": "Advanced Vision and Imaging",
+ "total_score": 49.20816,
+ "lexical_score": 39.573312,
+ "title_vector_score": 25.646847,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Stereo Vision",
+ "score": 0.812845
+ }
+ ]
+ },
+ {
+ "query": "computer vision algorithms",
+ "field": "Computer Science",
+ "rank": 2,
+ "topic_name": "Computer Science and Engineering",
+ "total_score": 45.659332,
+ "lexical_score": 53.240981,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.155148,
+ "matched_keywords": [
+ {
+ "keyword": "Computer Vision",
+ "score": 0.9262059
+ }
+ ]
+ },
+ {
+ "query": "computer vision algorithms",
+ "field": "Computer Science",
+ "rank": 3,
+ "topic_name": "Industrial Vision Systems and Defect Detection",
+ "total_score": 45.606655,
+ "lexical_score": 34.90052,
+ "title_vector_score": 25.81689,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Machine Vision",
+ "score": 0.8863964
+ }
+ ]
+ },
+ {
+ "query": "blockchain technology",
+ "field": "Computer Science",
+ "rank": 1,
+ "topic_name": "Blockchain Technology Applications and Security",
+ "total_score": 73.35904,
+ "lexical_score": 57.936059,
+ "title_vector_score": 28.141487,
+ "description_vector_score": 12.360002,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Blockchain",
+ "score": 0.9773195
+ },
+ {
+ "keyword": "Cryptocurrencies",
+ "score": 0.87238574
+ }
+ ]
+ },
+ {
+ "query": "blockchain technology",
+ "field": "Computer Science",
+ "rank": 2,
+ "topic_name": "Blockchain Technology in Education and Learning",
+ "total_score": 56.509613,
+ "lexical_score": 61.193715,
+ "title_vector_score": 26.28188,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Blockchain",
+ "score": 0.9772866
+ }
+ ]
+ },
+ {
+ "query": "blockchain technology",
+ "field": "Computer Science",
+ "rank": 3,
+ "topic_name": "Artificial Intelligence and Decision Support Systems",
+ "total_score": 43.847282,
+ "lexical_score": 29.118519600000003,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.874062,
+ "matched_keywords": [
+ {
+ "keyword": "Blockchain Technology",
+ "score": 0.99496245
+ }
+ ]
+ },
+ {
+ "query": "artificial intelligence ethics",
+ "field": "Computer Science",
+ "rank": 1,
+ "topic_name": "Artificial Intelligence Applications",
+ "total_score": 68.6463,
+ "lexical_score": 64.59775929999999,
+ "title_vector_score": 27.052853,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Artificial Intelligence",
+ "score": 0.91898966
+ }
+ ]
+ },
+ {
+ "query": "artificial intelligence ethics",
+ "field": "Computer Science",
+ "rank": 2,
+ "topic_name": "Ethics and Social Impacts of AI",
+ "total_score": 67.18744,
+ "lexical_score": 50.9322676,
+ "title_vector_score": 27.990826,
+ "description_vector_score": 13.312207,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Artificial Intelligence",
+ "score": 0.91898966
+ },
+ {
+ "keyword": "Algorithmic Bias",
+ "score": 0.8204768
+ }
+ ]
+ },
+ {
+ "query": "artificial intelligence ethics",
+ "field": "Computer Science",
+ "rank": 3,
+ "topic_name": "Artificial Intelligence in Law",
+ "total_score": 65.29555,
+ "lexical_score": 60.274851299999995,
+ "title_vector_score": 27.665548,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Artificial Intelligence",
+ "score": 0.91898966
+ },
+ {
+ "keyword": "Ethical Implications",
+ "score": 0.8264127
+ }
+ ]
+ },
+ {
+ "query": "human computer interaction",
+ "field": "Computer Science",
+ "rank": 1,
+ "topic_name": "Innovative Human-Technology Interaction",
+ "total_score": 61.19012,
+ "lexical_score": 55.8145754,
+ "title_vector_score": 25.672874,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "human computer interaction",
+ "field": "Computer Science",
+ "rank": 2,
+ "topic_name": "Cybernetics and Technology in Society",
+ "total_score": 49.58355,
+ "lexical_score": 37.773382999999995,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.667728,
+ "matched_keywords": [
+ {
+ "keyword": "Human-Computer Interaction",
+ "score": 0.9867091
+ }
+ ]
+ },
+ {
+ "query": "human computer interaction",
+ "field": "Computer Science",
+ "rank": 3,
+ "topic_name": "Usability and User Interface Design",
+ "total_score": 48.58973,
+ "lexical_score": 35.570065400000004,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.667597,
+ "matched_keywords": [
+ {
+ "keyword": "Human-Computer Interaction",
+ "score": 0.9867039
+ }
+ ]
+ },
+ {
+ "query": "operating systems",
+ "field": "Computer Science",
+ "rank": 1,
+ "topic_name": "Cryptographic Implementations and Security",
+ "total_score": 20.536,
+ "lexical_score": 0.0,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 20.536,
+ "matched_keywords": [
+ {
+ "keyword": "Hardware Implementations",
+ "score": 0.82144
+ }
+ ]
+ },
+ {
+ "query": "operating systems",
+ "field": "Computer Science",
+ "rank": 2,
+ "topic_name": "Cryptography and Residue Arithmetic",
+ "total_score": 20.513338,
+ "lexical_score": 0.0,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 20.513338,
+ "matched_keywords": [
+ {
+ "keyword": "Hardware Implementations",
+ "score": 0.8205335
+ }
+ ]
+ },
+ {
+ "query": "operating systems",
+ "field": "Computer Science",
+ "rank": 3,
+ "topic_name": "Numerical Methods and Algorithms",
+ "total_score": 20.484293,
+ "lexical_score": 0.0,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 20.484293,
+ "matched_keywords": [
+ {
+ "keyword": "Hardware Implementation",
+ "score": 0.8193717
+ }
+ ]
+ },
+ {
+ "query": "distributed ledgers",
+ "field": "Computer Science",
+ "rank": 1,
+ "topic_name": "Distributed systems and fault tolerance",
+ "total_score": 41.214874,
+ "lexical_score": 37.478102,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 21.389442,
+ "matched_keywords": [
+ {
+ "keyword": "Distributed Systems",
+ "score": 0.8555777
+ }
+ ]
+ },
+ {
+ "query": "distributed ledgers",
+ "field": "Computer Science",
+ "rank": 2,
+ "topic_name": "Mobile Agent-Based Network Management",
+ "total_score": 31.939396,
+ "lexical_score": 15.298686199999999,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 21.397776,
+ "matched_keywords": [
+ {
+ "keyword": "Distributed Systems",
+ "score": 0.855911
+ }
+ ]
+ },
+ {
+ "query": "distributed ledgers",
+ "field": "Computer Science",
+ "rank": 3,
+ "topic_name": "Software System Performance and Reliability",
+ "total_score": 31.535007,
+ "lexical_score": 15.698443,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 21.422363,
+ "matched_keywords": [
+ {
+ "keyword": "Distributed Systems",
+ "score": 0.8568945
+ }
+ ]
+ },
+ {
+ "query": "compiler design",
+ "field": "Computer Science",
+ "rank": 1,
+ "topic_name": "Architecture and Computational Design",
+ "total_score": 62.247948,
+ "lexical_score": 29.611094,
+ "title_vector_score": 25.50579,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 21.604067,
+ "matched_keywords": [
+ {
+ "keyword": "Computational Design",
+ "score": 0.8641627
+ }
+ ]
+ },
+ {
+ "query": "compiler design",
+ "field": "Computer Science",
+ "rank": 2,
+ "topic_name": "Qualitative Research Methods and Applications",
+ "total_score": 27.414812,
+ "lexical_score": 6.7831,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 20.631712,
+ "matched_keywords": [
+ {
+ "keyword": "Coding Process",
+ "score": 0.8252685
+ }
+ ]
+ },
+ {
+ "query": "compiler design",
+ "field": "Computer Science",
+ "rank": 3,
+ "topic_name": "Optimization and Variational Analysis",
+ "total_score": 20.501501,
+ "lexical_score": 0.0,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 20.501501,
+ "matched_keywords": [
+ {
+ "keyword": "Bilevel Programming",
+ "score": 0.82006
+ }
+ ]
+ },
+ {
+ "query": "data mining techniques",
+ "field": "Computer Science",
+ "rank": 1,
+ "topic_name": "Data Stream Mining Techniques",
+ "total_score": 71.490814,
+ "lexical_score": 56.29404099999999,
+ "title_vector_score": 27.674253,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "data mining techniques",
+ "field": "Computer Science",
+ "rank": 2,
+ "topic_name": "Data Mining Algorithms and Applications",
+ "total_score": 70.8836,
+ "lexical_score": 62.461057999999994,
+ "title_vector_score": 28.630157,
+ "description_vector_score": 12.307559,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Data Mining",
+ "score": 0.9796717
+ },
+ {
+ "keyword": "Temporal Data Mining",
+ "score": 0.8675723
+ }
+ ]
+ },
+ {
+ "query": "data mining techniques",
+ "field": "Computer Science",
+ "rank": 3,
+ "topic_name": "Information Retrieval and Data Mining",
+ "total_score": 57.729084,
+ "lexical_score": 57.4922423,
+ "title_vector_score": 27.783201,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Data Mining",
+ "score": 0.9796293
+ },
+ {
+ "keyword": "Big Data",
+ "score": 0.8210273
+ }
+ ]
+ },
+ {
+ "query": "cryptographic keys",
+ "field": "Computer Science",
+ "rank": 1,
+ "topic_name": "Cryptographic Implementations and Security",
+ "total_score": 51.847057,
+ "lexical_score": 25.166224,
+ "title_vector_score": 26.680834,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Authenticated Encryption",
+ "score": 0.8914871
+ },
+ {
+ "keyword": "Cryptanalysis",
+ "score": 0.8625548
+ }
+ ]
+ },
+ {
+ "query": "cryptographic keys",
+ "field": "Computer Science",
+ "rank": 2,
+ "topic_name": "Cryptography and Data Security",
+ "total_score": 46.614357,
+ "lexical_score": 7.6211386,
+ "title_vector_score": 26.463976,
+ "description_vector_score": 12.529242,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Lattice-based Cryptography",
+ "score": 0.8751006
+ },
+ {
+ "keyword": "Identity-Based Encryption",
+ "score": 0.86685777
+ }
+ ]
+ },
+ {
+ "query": "cryptographic keys",
+ "field": "Computer Science",
+ "rank": 3,
+ "topic_name": "Coding theory and cryptography",
+ "total_score": 32.002853,
+ "lexical_score": 6.6889133,
+ "title_vector_score": 25.313938,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Cryptography",
+ "score": 0.9076941
+ },
+ {
+ "keyword": "McEliece Cryptosystem",
+ "score": 0.8152635
+ }
+ ]
+ },
+ {
+ "query": "quantum computing algorithms",
+ "field": "Computer Science",
+ "rank": 1,
+ "topic_name": "Quantum Computing Algorithms and Architecture",
+ "total_score": 113.33767,
+ "lexical_score": 91.49520659999999,
+ "title_vector_score": 29.071463,
+ "description_vector_score": 13.166803,
+ "keywords_vector_score": 24.594223,
+ "matched_keywords": [
+ {
+ "keyword": "Quantum Algorithms",
+ "score": 0.98376894
+ },
+ {
+ "keyword": "Quantum Computation",
+ "score": 0.95346093
+ }
+ ]
+ },
+ {
+ "query": "quantum computing algorithms",
+ "field": "Computer Science",
+ "rank": 2,
+ "topic_name": "Diamond and Carbon-based Materials Research",
+ "total_score": 45.262806,
+ "lexical_score": 31.2394117,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.93005,
+ "matched_keywords": [
+ {
+ "keyword": "Quantum Computing",
+ "score": 0.95720196
+ },
+ {
+ "keyword": "Quantum Sensing",
+ "score": 0.85712767
+ }
+ ]
+ },
+ {
+ "query": "quantum computing algorithms",
+ "field": "Computer Science",
+ "rank": 3,
+ "topic_name": "Scientific Research and Discoveries",
+ "total_score": 44.92365,
+ "lexical_score": 31.256331700000004,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.93005,
+ "matched_keywords": [
+ {
+ "keyword": "Quantum Computing",
+ "score": 0.95720196
+ },
+ {
+ "keyword": "Quantum Mechanics",
+ "score": 0.8619523
+ }
+ ]
+ },
+ {
+ "query": "web development frameworks",
+ "field": "Computer Science",
+ "rank": 1,
+ "topic_name": "Web Applications and Data Management",
+ "total_score": 55.430084,
+ "lexical_score": 43.30219459999999,
+ "title_vector_score": 24.78713,
+ "description_vector_score": 12.64183,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Adaptive Web Applications",
+ "score": 0.84774756
+ },
+ {
+ "keyword": "WebML",
+ "score": 0.8192439
+ }
+ ]
+ },
+ {
+ "query": "web development frameworks",
+ "field": "Computer Science",
+ "rank": 2,
+ "topic_name": "Web Application Security Vulnerabilities",
+ "total_score": 41.582287,
+ "lexical_score": 36.605047299999995,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 21.865828,
+ "matched_keywords": [
+ {
+ "keyword": "Web Application",
+ "score": 0.8746331
+ }
+ ]
+ },
+ {
+ "query": "web development frameworks",
+ "field": "Computer Science",
+ "rank": 3,
+ "topic_name": "Engineering and Information Technology",
+ "total_score": 36.916443,
+ "lexical_score": 22.078860300000002,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.208303,
+ "matched_keywords": [
+ {
+ "keyword": "Web-Based Applications",
+ "score": 0.8883321
+ },
+ {
+ "keyword": "Software Development",
+ "score": 0.82254577
+ }
+ ]
+ },
+ {
+ "query": "reinforcement learning",
+ "field": "Computer Science",
+ "rank": 1,
+ "topic_name": "Reinforcement Learning in Robotics",
+ "total_score": 89.24872,
+ "lexical_score": 66.22691760000001,
+ "title_vector_score": 26.534851,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.907524,
+ "matched_keywords": [
+ {
+ "keyword": "Reinforcement Learning",
+ "score": 0.99630094
+ }
+ ]
+ },
+ {
+ "query": "reinforcement learning",
+ "field": "Computer Science",
+ "rank": 2,
+ "topic_name": "Adaptive Dynamic Programming Control",
+ "total_score": 42.249504,
+ "lexical_score": 26.043045999999997,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.908102,
+ "matched_keywords": [
+ {
+ "keyword": "Reinforcement Learning",
+ "score": 0.99632406
+ }
+ ]
+ },
+ {
+ "query": "reinforcement learning",
+ "field": "Computer Science",
+ "rank": 3,
+ "topic_name": "Speech and dialogue systems",
+ "total_score": 40.077785,
+ "lexical_score": 23.1807273,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.907053,
+ "matched_keywords": [
+ {
+ "keyword": "Reinforcement Learning",
+ "score": 0.9962821
+ }
+ ]
+ },
+ {
+ "query": "graph databases",
+ "field": "Computer Science",
+ "rank": 1,
+ "topic_name": "Graph Theory and Algorithms",
+ "total_score": 84.07813,
+ "lexical_score": 47.388583,
+ "title_vector_score": 26.722198,
+ "description_vector_score": 12.464697,
+ "keywords_vector_score": 24.781544,
+ "matched_keywords": [
+ {
+ "keyword": "Graph Database",
+ "score": 0.9912617
+ },
+ {
+ "keyword": "Graph Analytics",
+ "score": 0.92737365
+ }
+ ]
+ },
+ {
+ "query": "graph databases",
+ "field": "Computer Science",
+ "rank": 2,
+ "topic_name": "Advanced Graph Theory Research",
+ "total_score": 58.928978,
+ "lexical_score": 38.31446029999999,
+ "title_vector_score": 26.632504,
+ "description_vector_score": 12.186777,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Graph Theory",
+ "score": 0.8857963
+ }
+ ]
+ },
+ {
+ "query": "graph databases",
+ "field": "Computer Science",
+ "rank": 3,
+ "topic_name": "Advanced Text Analysis Techniques",
+ "total_score": 34.70043,
+ "lexical_score": 17.095357999999997,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.258703,
+ "matched_keywords": [
+ {
+ "keyword": "Graph-Based",
+ "score": 0.93034816
+ }
+ ]
+ },
+ {
+ "query": "art history",
+ "field": "Arts and Humanities",
+ "rank": 1,
+ "topic_name": "Art History and Market Analysis",
+ "total_score": 54.647675,
+ "lexical_score": 44.325482,
+ "title_vector_score": 27.625616,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Art Market",
+ "score": 0.84989285
+ }
+ ]
+ },
+ {
+ "query": "art history",
+ "field": "Arts and Humanities",
+ "rank": 2,
+ "topic_name": "Historical Art and Architecture Studies",
+ "total_score": 46.9578,
+ "lexical_score": 48.3021193,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.97831,
+ "matched_keywords": [
+ {
+ "keyword": "Art History",
+ "score": 0.9991324
+ },
+ {
+ "keyword": "Colonial Art",
+ "score": 0.9066088
+ }
+ ]
+ },
+ {
+ "query": "art history",
+ "field": "Arts and Humanities",
+ "rank": 3,
+ "topic_name": "Cultural History and Identity Formation",
+ "total_score": 46.296104,
+ "lexical_score": 41.697079599999995,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.978537,
+ "matched_keywords": [
+ {
+ "keyword": "Art History",
+ "score": 0.99914145
+ },
+ {
+ "keyword": "Cultural History",
+ "score": 0.8418889
+ }
+ ]
+ },
+ {
+ "query": "literary criticism",
+ "field": "Arts and Humanities",
+ "rank": 1,
+ "topic_name": "Comparative Literary Analysis and Criticism",
+ "total_score": 62.57602,
+ "lexical_score": 38.6617326,
+ "title_vector_score": 28.964224,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Literature",
+ "score": 0.88551354
+ },
+ {
+ "keyword": "Poetry",
+ "score": 0.85097027
+ }
+ ]
+ },
+ {
+ "query": "literary criticism",
+ "field": "Arts and Humanities",
+ "rank": 2,
+ "topic_name": "Contemporary Literature and Criticism",
+ "total_score": 48.35617,
+ "lexical_score": 34.1353943,
+ "title_vector_score": 28.989159,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Literary Culture",
+ "score": 0.90869236
+ },
+ {
+ "keyword": "Contemporary Fiction",
+ "score": 0.8410473
+ }
+ ]
+ },
+ {
+ "query": "literary criticism",
+ "field": "Arts and Humanities",
+ "rank": 3,
+ "topic_name": "Literature Analysis and Criticism",
+ "total_score": 48.35011,
+ "lexical_score": 19.36701,
+ "title_vector_score": 28.983099,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "philosophy of mind",
+ "field": "Arts and Humanities",
+ "rank": 1,
+ "topic_name": "Philosophy and Theoretical Science",
+ "total_score": 65.72992,
+ "lexical_score": 53.9440538903,
+ "title_vector_score": 0.0,
+ "description_vector_score": 12.446573,
+ "keywords_vector_score": 24.952984,
+ "matched_keywords": [
+ {
+ "keyword": "Philosophy of Mind",
+ "score": 0.99811935
+ },
+ {
+ "keyword": "Consciousness",
+ "score": 0.8437121
+ }
+ ]
+ },
+ {
+ "query": "philosophy of mind",
+ "field": "Arts and Humanities",
+ "rank": 2,
+ "topic_name": "Cybernetics and Technology in Society",
+ "total_score": 52.95786,
+ "lexical_score": 38.471745327709996,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.952984,
+ "matched_keywords": [
+ {
+ "keyword": "Philosophy of Mind",
+ "score": 0.99811935
+ }
+ ]
+ },
+ {
+ "query": "philosophy of mind",
+ "field": "Arts and Humanities",
+ "rank": 3,
+ "topic_name": "Cognitive Science and Education Research",
+ "total_score": 42.254898,
+ "lexical_score": 42.627705584139996,
+ "title_vector_score": 0.0,
+ "description_vector_score": 12.547899,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Physics of Mind",
+ "score": 0.8959365
+ },
+ {
+ "keyword": "Consciousness",
+ "score": 0.8437121
+ }
+ ]
+ },
+ {
+ "query": "renaissance architecture",
+ "field": "Arts and Humanities",
+ "rank": 1,
+ "topic_name": "Renaissance and Early Modern Studies",
+ "total_score": 55.704994,
+ "lexical_score": 64.1561051,
+ "title_vector_score": 26.83091,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Italian Renaissance",
+ "score": 0.8865409
+ },
+ {
+ "keyword": "Art and Architecture",
+ "score": 0.8728502
+ }
+ ]
+ },
+ {
+ "query": "renaissance architecture",
+ "field": "Arts and Humanities",
+ "rank": 2,
+ "topic_name": "Architecture and Art History Studies",
+ "total_score": 45.758316,
+ "lexical_score": 50.6052326,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.143213,
+ "matched_keywords": [
+ {
+ "keyword": "Renaissance Art",
+ "score": 0.92572856
+ },
+ {
+ "keyword": "Gothic Architecture",
+ "score": 0.8661001
+ }
+ ]
+ },
+ {
+ "query": "renaissance architecture",
+ "field": "Arts and Humanities",
+ "rank": 3,
+ "topic_name": "Medieval Architecture and Archaeology",
+ "total_score": 45.193893,
+ "lexical_score": 26.851512999999997,
+ "title_vector_score": 26.930902,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Medieval Architecture",
+ "score": 0.9152174
+ },
+ {
+ "keyword": "Early Medieval Churches",
+ "score": 0.82022
+ }
+ ]
+ },
+ {
+ "query": "linguistics morphology",
+ "field": "Arts and Humanities",
+ "rank": 1,
+ "topic_name": "Linguistic Variation and Morphology",
+ "total_score": 53.994446,
+ "lexical_score": 25.166224,
+ "title_vector_score": 28.828224,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Dialects",
+ "score": 0.9067383
+ },
+ {
+ "keyword": "Linguistic Identity",
+ "score": 0.883775
+ }
+ ]
+ },
+ {
+ "query": "linguistics morphology",
+ "field": "Arts and Humanities",
+ "rank": 2,
+ "topic_name": "linguistics and terminology studies",
+ "total_score": 46.788338,
+ "lexical_score": 40.9480213,
+ "title_vector_score": 28.28355,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Lexical Semantics",
+ "score": 0.87534285
+ },
+ {
+ "keyword": "Corpus Linguistics",
+ "score": 0.870234
+ }
+ ]
+ },
+ {
+ "query": "linguistics morphology",
+ "field": "Arts and Humanities",
+ "rank": 3,
+ "topic_name": "Linguistics and Language Analysis",
+ "total_score": 46.645363,
+ "lexical_score": 34.5845975,
+ "title_vector_score": 28.14058,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Linguistics",
+ "score": 0.9569204
+ },
+ {
+ "keyword": "Language Acquisition",
+ "score": 0.82486725
+ }
+ ]
+ },
+ {
+ "query": "creative writing",
+ "field": "Arts and Humanities",
+ "rank": 1,
+ "topic_name": "Artistic and Creative Research",
+ "total_score": 73.96821,
+ "lexical_score": 63.4647583,
+ "title_vector_score": 25.380142,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.916666,
+ "matched_keywords": [
+ {
+ "keyword": "Creative Writing",
+ "score": 0.99666667
+ },
+ {
+ "keyword": "Screenwriting",
+ "score": 0.8341434
+ }
+ ]
+ },
+ {
+ "query": "creative writing",
+ "field": "Arts and Humanities",
+ "rank": 2,
+ "topic_name": "Mental Health via Writing",
+ "total_score": 68.49069,
+ "lexical_score": 37.5356766,
+ "title_vector_score": 24.7439,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.662651,
+ "matched_keywords": [
+ {
+ "keyword": "Expressive Writing",
+ "score": 0.90650606
+ }
+ ]
+ },
+ {
+ "query": "creative writing",
+ "field": "Arts and Humanities",
+ "rank": 3,
+ "topic_name": "Writing and Handwriting Education",
+ "total_score": 46.787548,
+ "lexical_score": 41.045925,
+ "title_vector_score": 25.70341,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Handwriting Development",
+ "score": 0.8384018
+ }
+ ]
+ },
+ {
+ "query": "musical composition",
+ "field": "Arts and Humanities",
+ "rank": 1,
+ "topic_name": "Musicology and Musical Analysis",
+ "total_score": 75.083496,
+ "lexical_score": 57.7744713,
+ "title_vector_score": 27.170319,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.74695,
+ "matched_keywords": [
+ {
+ "keyword": "Musical Theory",
+ "score": 0.909878
+ },
+ {
+ "keyword": "Musicology",
+ "score": 0.9074855
+ }
+ ]
+ },
+ {
+ "query": "musical composition",
+ "field": "Arts and Humanities",
+ "rank": 2,
+ "topic_name": "Music Technology and Sound Studies",
+ "total_score": 42.68964,
+ "lexical_score": 26.7509535,
+ "title_vector_score": 25.125353,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Musical Performance",
+ "score": 0.86375165
+ },
+ {
+ "keyword": "Digital Musical Instruments",
+ "score": 0.8245609
+ }
+ ]
+ },
+ {
+ "query": "musical composition",
+ "field": "Arts and Humanities",
+ "rank": 3,
+ "topic_name": "Diverse Music Education Insights",
+ "total_score": 35.73487,
+ "lexical_score": 18.501637,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.726362,
+ "matched_keywords": [
+ {
+ "keyword": "Musical Development",
+ "score": 0.9090545
+ },
+ {
+ "keyword": "Music Performance",
+ "score": 0.85525155
+ }
+ ]
+ },
+ {
+ "query": "theater history",
+ "field": "Arts and Humanities",
+ "rank": 1,
+ "topic_name": "Theater, Performance, and Music History",
+ "total_score": 73.47578,
+ "lexical_score": 32.603820999999996,
+ "title_vector_score": 28.28109,
+ "description_vector_score": 12.590868,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "American Musical Theatre",
+ "score": 0.89478517
+ },
+ {
+ "keyword": "Broadway",
+ "score": 0.8509898
+ }
+ ]
+ },
+ {
+ "query": "theater history",
+ "field": "Arts and Humanities",
+ "rank": 2,
+ "topic_name": "Historical and Modern Theater Studies",
+ "total_score": 50.45633,
+ "lexical_score": 21.511477,
+ "title_vector_score": 28.944855,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "theater history",
+ "field": "Arts and Humanities",
+ "rank": 3,
+ "topic_name": "Early Modern Spanish Literature",
+ "total_score": 47.242805,
+ "lexical_score": 33.9013221,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.422497,
+ "matched_keywords": [
+ {
+ "keyword": "Theater",
+ "score": 0.9368999
+ }
+ ]
+ },
+ {
+ "query": "postmodern literature",
+ "field": "Arts and Humanities",
+ "rank": 1,
+ "topic_name": "Contemporary Literature and Criticism",
+ "total_score": 78.80078,
+ "lexical_score": 24.155859200000002,
+ "title_vector_score": 27.783852,
+ "description_vector_score": 13.334151,
+ "keywords_vector_score": 23.501873,
+ "matched_keywords": [
+ {
+ "keyword": "Postmodernism",
+ "score": 0.9400749
+ },
+ {
+ "keyword": "Metamodernism",
+ "score": 0.88246346
+ }
+ ]
+ },
+ {
+ "query": "postmodern literature",
+ "field": "Arts and Humanities",
+ "rank": 2,
+ "topic_name": "Postmodernism in Literature and Education",
+ "total_score": 54.946854,
+ "lexical_score": 20.5683066,
+ "title_vector_score": 28.844017,
+ "description_vector_score": 13.155666,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Postmodernism",
+ "score": 0.9395113
+ }
+ ]
+ },
+ {
+ "query": "postmodern literature",
+ "field": "Arts and Humanities",
+ "rank": 3,
+ "topic_name": "Modernist Literature and Criticism",
+ "total_score": 41.841606,
+ "lexical_score": 27.2676418,
+ "title_vector_score": 27.660698,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Modernism",
+ "score": 0.84885645
+ },
+ {
+ "keyword": "Literature",
+ "score": 0.8451781
+ }
+ ]
+ },
+ {
+ "query": "ethics and morality",
+ "field": "Arts and Humanities",
+ "rank": 1,
+ "topic_name": "Philosophical Ethics and Theory",
+ "total_score": 57.803406,
+ "lexical_score": 42.72006920744,
+ "title_vector_score": 27.870892,
+ "description_vector_score": 12.929782,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Ethics",
+ "score": 0.9598141
+ },
+ {
+ "keyword": "Virtue Ethics",
+ "score": 0.9506197
+ }
+ ]
+ },
+ {
+ "query": "ethics and morality",
+ "field": "Arts and Humanities",
+ "rank": 2,
+ "topic_name": "War, Ethics, and Justification",
+ "total_score": 49.029335,
+ "lexical_score": 49.18545550289001,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.112165,
+ "matched_keywords": [
+ {
+ "keyword": "Morality",
+ "score": 0.9644866
+ },
+ {
+ "keyword": "Ethics",
+ "score": 0.95984197
+ }
+ ]
+ },
+ {
+ "query": "ethics and morality",
+ "field": "Arts and Humanities",
+ "rank": 3,
+ "topic_name": "Political Philosophy and Ethics",
+ "total_score": 44.162865,
+ "lexical_score": 17.00286779979,
+ "title_vector_score": 27.160133,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "historical archives",
+ "field": "Arts and Humanities",
+ "rank": 1,
+ "topic_name": "Biographical and Historical Analysis",
+ "total_score": 39.402473,
+ "lexical_score": 26.698639,
+ "title_vector_score": 26.149113,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Historical Research",
+ "score": 0.91425705
+ }
+ ]
+ },
+ {
+ "query": "historical archives",
+ "field": "Arts and Humanities",
+ "rank": 2,
+ "topic_name": "Archaeology and Historical Studies",
+ "total_score": 38.367416,
+ "lexical_score": 13.253359,
+ "title_vector_score": 25.11406,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "historical archives",
+ "field": "Arts and Humanities",
+ "rank": 3,
+ "topic_name": "Digital and Traditional Archives Management",
+ "total_score": 35.672867,
+ "lexical_score": 55.939272,
+ "title_vector_score": 0.0,
+ "description_vector_score": 12.696108,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Archives",
+ "score": 0.91834736
+ },
+ {
+ "keyword": "Postcolonial Archive",
+ "score": 0.88707495
+ }
+ ]
+ },
+ {
+ "query": "film analysis",
+ "field": "Arts and Humanities",
+ "rank": 1,
+ "topic_name": "Cinema History and Criticism",
+ "total_score": 53.518215,
+ "lexical_score": 6.6454396,
+ "title_vector_score": 25.087374,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 21.785402,
+ "matched_keywords": [
+ {
+ "keyword": "Cinema",
+ "score": 0.8714161
+ }
+ ]
+ },
+ {
+ "query": "film analysis",
+ "field": "Arts and Humanities",
+ "rank": 2,
+ "topic_name": "Cinema and Media Studies",
+ "total_score": 40.353237,
+ "lexical_score": 19.88762,
+ "title_vector_score": 25.127192,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Film Industry",
+ "score": 0.8665807
+ },
+ {
+ "keyword": "Movie Critics",
+ "score": 0.82071686
+ }
+ ]
+ },
+ {
+ "query": "film analysis",
+ "field": "Arts and Humanities",
+ "rank": 3,
+ "topic_name": "Surface Roughness and Optical Measurements",
+ "total_score": 38.501053,
+ "lexical_score": 24.4950951,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.208637,
+ "matched_keywords": [
+ {
+ "keyword": "Thin Film Analysis",
+ "score": 0.8883455
+ }
+ ]
+ },
+ {
+ "query": "religious studies",
+ "field": "Arts and Humanities",
+ "rank": 1,
+ "topic_name": "Religious Studies and Spiritual Practices",
+ "total_score": 76.98021,
+ "lexical_score": 40.499081000000004,
+ "title_vector_score": 28.471313,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.94312,
+ "matched_keywords": [
+ {
+ "keyword": "Religious Studies",
+ "score": 0.9977248
+ },
+ {
+ "keyword": "New Religions",
+ "score": 0.8352375
+ }
+ ]
+ },
+ {
+ "query": "religious studies",
+ "field": "Arts and Humanities",
+ "rank": 2,
+ "topic_name": "Religious and Theological Studies",
+ "total_score": 67.42197,
+ "lexical_score": 29.937609600000002,
+ "title_vector_score": 28.94562,
+ "description_vector_score": 12.664984,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Religion",
+ "score": 0.89223456
+ },
+ {
+ "keyword": "Theology",
+ "score": 0.866235
+ }
+ ]
+ },
+ {
+ "query": "religious studies",
+ "field": "Arts and Humanities",
+ "rank": 3,
+ "topic_name": "Religious, Philosophical, and Educational Studies",
+ "total_score": 51.953384,
+ "lexical_score": 28.727284,
+ "title_vector_score": 28.387606,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Religion",
+ "score": 0.89226246
+ },
+ {
+ "keyword": "Spirituality",
+ "score": 0.83096457
+ }
+ ]
+ },
+ {
+ "query": "classical archaeology",
+ "field": "Arts and Humanities",
+ "rank": 1,
+ "topic_name": "Classical Antiquity Studies",
+ "total_score": 75.64961,
+ "lexical_score": 42.8612294,
+ "title_vector_score": 28.94255,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.982323,
+ "matched_keywords": [
+ {
+ "keyword": "Classical Antiquity",
+ "score": 0.9592929
+ },
+ {
+ "keyword": "Late Antiquity",
+ "score": 0.9246857
+ }
+ ]
+ },
+ {
+ "query": "classical archaeology",
+ "field": "Arts and Humanities",
+ "rank": 2,
+ "topic_name": "Archaeology and Historical Studies",
+ "total_score": 46.372112,
+ "lexical_score": 24.8391514,
+ "title_vector_score": 28.109121,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Archaeological Evidence",
+ "score": 0.8921101
+ }
+ ]
+ },
+ {
+ "query": "classical archaeology",
+ "field": "Arts and Humanities",
+ "rank": 3,
+ "topic_name": "Ancient and Medieval Archaeology Studies",
+ "total_score": 45.139442,
+ "lexical_score": 16.674109,
+ "title_vector_score": 28.465332,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Archaeological Materials",
+ "score": 0.9015999
+ },
+ {
+ "keyword": "Archaeological Finds",
+ "score": 0.89218545
+ }
+ ]
+ },
+ {
+ "query": "metaphysics",
+ "field": "Arts and Humanities",
+ "rank": 1,
+ "topic_name": "Epistemology, Ethics, and Metaphysics",
+ "total_score": 51.112938,
+ "lexical_score": 25.166224,
+ "title_vector_score": 25.946716,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "metaphysics",
+ "field": "Arts and Humanities",
+ "rank": 2,
+ "topic_name": "Philosophy and Historical Thought",
+ "total_score": 40.833847,
+ "lexical_score": 23.197806999999997,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.909199,
+ "matched_keywords": [
+ {
+ "keyword": "Metaphysics",
+ "score": 0.99636793
+ },
+ {
+ "keyword": "Philosophy",
+ "score": 0.83871746
+ }
+ ]
+ },
+ {
+ "query": "metaphysics",
+ "field": "Arts and Humanities",
+ "rank": 3,
+ "topic_name": "Classical Philosophy and Thought",
+ "total_score": 39.72629,
+ "lexical_score": 22.554257999999997,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.90886,
+ "matched_keywords": [
+ {
+ "keyword": "Metaphysics",
+ "score": 0.99635434
+ }
+ ]
+ },
+ {
+ "query": "cultural heritage preservation",
+ "field": "Arts and Humanities",
+ "rank": 1,
+ "topic_name": "Cultural Heritage Management and Preservation",
+ "total_score": 117.749,
+ "lexical_score": 81.7756646,
+ "title_vector_score": 29.250204,
+ "description_vector_score": 12.220326,
+ "keywords_vector_score": 24.020077,
+ "matched_keywords": [
+ {
+ "keyword": "Heritage Conservation",
+ "score": 0.96080303
+ },
+ {
+ "keyword": "UNESCO World Heritage",
+ "score": 0.8944676
+ }
+ ]
+ },
+ {
+ "query": "cultural heritage preservation",
+ "field": "Arts and Humanities",
+ "rank": 2,
+ "topic_name": "Museums and Cultural Heritage",
+ "total_score": 59.84533,
+ "lexical_score": 38.9593617,
+ "title_vector_score": 27.773438,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Cultural Sustainability",
+ "score": 0.8172934
+ }
+ ]
+ },
+ {
+ "query": "cultural heritage preservation",
+ "field": "Arts and Humanities",
+ "rank": 3,
+ "topic_name": "Cultural Heritage Materials Analysis",
+ "total_score": 59.77153,
+ "lexical_score": 50.9780039,
+ "title_vector_score": 27.699638,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Cultural Heritage",
+ "score": 0.95155334
+ }
+ ]
+ },
+ {
+ "query": "comparative literature",
+ "field": "Arts and Humanities",
+ "rank": 1,
+ "topic_name": "Comparative and World Literature",
+ "total_score": 99.9097,
+ "lexical_score": 67.9149521,
+ "title_vector_score": 28.47109,
+ "description_vector_score": 12.405632,
+ "keywords_vector_score": 24.74237,
+ "matched_keywords": [
+ {
+ "keyword": "Comparative Literature",
+ "score": 0.98969483
+ },
+ {
+ "keyword": "World Literature",
+ "score": 0.8481462
+ }
+ ]
+ },
+ {
+ "query": "comparative literature",
+ "field": "Arts and Humanities",
+ "rank": 2,
+ "topic_name": "Comparative Literary Analysis and Criticism",
+ "total_score": 45.65371,
+ "lexical_score": 33.897036299999996,
+ "title_vector_score": 27.293558,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Literature",
+ "score": 0.889467
+ }
+ ]
+ },
+ {
+ "query": "comparative literature",
+ "field": "Arts and Humanities",
+ "rank": 3,
+ "topic_name": "History, Culture, and Diplomacy",
+ "total_score": 44.213478,
+ "lexical_score": 30.878297,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.74237,
+ "matched_keywords": [
+ {
+ "keyword": "Comparative Literature",
+ "score": 0.98969483
+ }
+ ]
+ },
+ {
+ "query": "linguistic semantics",
+ "field": "Arts and Humanities",
+ "rank": 1,
+ "topic_name": "Syntax, Semantics, Linguistic Variation",
+ "total_score": 84.181915,
+ "lexical_score": 69.62987179999999,
+ "title_vector_score": 28.357323,
+ "description_vector_score": 12.153583,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Semantics",
+ "score": 0.9241955
+ },
+ {
+ "keyword": "Language Typology",
+ "score": 0.89470005
+ }
+ ]
+ },
+ {
+ "query": "linguistic semantics",
+ "field": "Arts and Humanities",
+ "rank": 2,
+ "topic_name": "linguistics and terminology studies",
+ "total_score": 78.54447,
+ "lexical_score": 19.7010975,
+ "title_vector_score": 28.508877,
+ "description_vector_score": 12.354158,
+ "keywords_vector_score": 24.174881,
+ "matched_keywords": [
+ {
+ "keyword": "Lexical Semantics",
+ "score": 0.96699524
+ },
+ {
+ "keyword": "Cognitive Linguistics",
+ "score": 0.89917636
+ }
+ ]
+ },
+ {
+ "query": "linguistic semantics",
+ "field": "Arts and Humanities",
+ "rank": 3,
+ "topic_name": "Discourse Analysis and Cultural Communication",
+ "total_score": 29.64208,
+ "lexical_score": 5.6992226,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.942858,
+ "matched_keywords": [
+ {
+ "keyword": "Linguistics",
+ "score": 0.9577143
+ },
+ {
+ "keyword": "Phraseology",
+ "score": 0.91377735
+ }
+ ]
+ },
+ {
+ "query": "medieval art",
+ "field": "Arts and Humanities",
+ "rank": 1,
+ "topic_name": "Medieval Literature and History",
+ "total_score": 68.40883,
+ "lexical_score": 40.144694,
+ "title_vector_score": 26.867903,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.03614,
+ "matched_keywords": [
+ {
+ "keyword": "Medieval",
+ "score": 0.9214456
+ }
+ ]
+ },
+ {
+ "query": "medieval art",
+ "field": "Arts and Humanities",
+ "rank": 2,
+ "topic_name": "Medieval European History and Architecture",
+ "total_score": 51.400238,
+ "lexical_score": 53.0933785,
+ "title_vector_score": 27.438248,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Medieval Architecture",
+ "score": 0.9166343
+ },
+ {
+ "keyword": "Gothic Art",
+ "score": 0.881408
+ }
+ ]
+ },
+ {
+ "query": "medieval art",
+ "field": "Arts and Humanities",
+ "rank": 3,
+ "topic_name": "Medieval Architecture and Archaeology",
+ "total_score": 45.57685,
+ "lexical_score": 39.7736082,
+ "title_vector_score": 27.072065,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Medieval Architecture",
+ "score": 0.9163511
+ },
+ {
+ "keyword": "Early Medieval Churches",
+ "score": 0.85788226
+ }
+ ]
+ },
+ {
+ "query": "epistemology",
+ "field": "Arts and Humanities",
+ "rank": 1,
+ "topic_name": "Epistemology, Ethics, and Metaphysics",
+ "total_score": 64.64177,
+ "lexical_score": 31.819223,
+ "title_vector_score": 28.094337,
+ "description_vector_score": 12.986118,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Epistemic Intuitions",
+ "score": 0.88170505
+ }
+ ]
+ },
+ {
+ "query": "epistemology",
+ "field": "Arts and Humanities",
+ "rank": 2,
+ "topic_name": "Academic and Historical Perspectives in Psychology",
+ "total_score": 41.309864,
+ "lexical_score": 16.400833,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.90903,
+ "matched_keywords": [
+ {
+ "keyword": "Epistemology",
+ "score": 0.99636126
+ }
+ ]
+ },
+ {
+ "query": "epistemology",
+ "field": "Arts and Humanities",
+ "rank": 3,
+ "topic_name": "Bach Studies and Logistics Development",
+ "total_score": 40.9123,
+ "lexical_score": 24.997449,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.910051,
+ "matched_keywords": [
+ {
+ "keyword": "Epistemology",
+ "score": 0.996402
+ }
+ ]
+ },
+ {
+ "query": "dna replication",
+ "field": "Biochemistry, Genetics and Molecular Biology",
+ "rank": 1,
+ "topic_name": "DNA Repair Mechanisms",
+ "total_score": 48.292336,
+ "lexical_score": 37.964512,
+ "title_vector_score": 25.567596,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Homologous Recombination",
+ "score": 0.8517997
+ }
+ ]
+ },
+ {
+ "query": "dna replication",
+ "field": "Biochemistry, Genetics and Molecular Biology",
+ "rank": 2,
+ "topic_name": "DNA and Biological Computing",
+ "total_score": 45.606766,
+ "lexical_score": 35.851885,
+ "title_vector_score": 25.047476,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "DNA Computing",
+ "score": 0.8330662
+ }
+ ]
+ },
+ {
+ "query": "dna replication",
+ "field": "Biochemistry, Genetics and Molecular Biology",
+ "rank": 3,
+ "topic_name": "Brucella: diagnosis, epidemiology, treatment",
+ "total_score": 37.855568,
+ "lexical_score": 15.815408,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.04016,
+ "matched_keywords": [
+ {
+ "keyword": "Intracellular Replication",
+ "score": 0.88160634
+ }
+ ]
+ },
+ {
+ "query": "crispr gene editing",
+ "field": "Biochemistry, Genetics and Molecular Biology",
+ "rank": 1,
+ "topic_name": "CRISPR and Genetic Engineering",
+ "total_score": 107.25279,
+ "lexical_score": 97.002091,
+ "title_vector_score": 26.41026,
+ "description_vector_score": 12.460975,
+ "keywords_vector_score": 23.964733,
+ "matched_keywords": [
+ {
+ "keyword": "Gene Editing",
+ "score": 0.9585893
+ },
+ {
+ "keyword": "Multiplex Genome Editing",
+ "score": 0.89776564
+ }
+ ]
+ },
+ {
+ "query": "crispr gene editing",
+ "field": "Biochemistry, Genetics and Molecular Biology",
+ "rank": 2,
+ "topic_name": "RNA Interference and Gene Delivery",
+ "total_score": 39.812332,
+ "lexical_score": 34.041159,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.13025,
+ "matched_keywords": [
+ {
+ "keyword": "Gene Silencing",
+ "score": 0.88521004
+ },
+ {
+ "keyword": "Gene Therapy",
+ "score": 0.83608985
+ }
+ ]
+ },
+ {
+ "query": "crispr gene editing",
+ "field": "Biochemistry, Genetics and Molecular Biology",
+ "rank": 3,
+ "topic_name": "Plant Virus Research Studies",
+ "total_score": 32.552513,
+ "lexical_score": 16.70997,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.13025,
+ "matched_keywords": [
+ {
+ "keyword": "Gene Silencing",
+ "score": 0.88521004
+ }
+ ]
+ },
+ {
+ "query": "protein folding",
+ "field": "Biochemistry, Genetics and Molecular Biology",
+ "rank": 1,
+ "topic_name": "Endoplasmic Reticulum Stress and Disease",
+ "total_score": 51.984657,
+ "lexical_score": 38.825288400000005,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.890507,
+ "matched_keywords": [
+ {
+ "keyword": "Protein Folding",
+ "score": 0.99562025
+ },
+ {
+ "keyword": "Unfolded Protein Response",
+ "score": 0.90650797
+ }
+ ]
+ },
+ {
+ "query": "protein folding",
+ "field": "Biochemistry, Genetics and Molecular Biology",
+ "rank": 2,
+ "topic_name": "Heat shock proteins research",
+ "total_score": 50.105026,
+ "lexical_score": 39.303454,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.8927,
+ "matched_keywords": [
+ {
+ "keyword": "Protein Folding",
+ "score": 0.995708
+ }
+ ]
+ },
+ {
+ "query": "protein folding",
+ "field": "Biochemistry, Genetics and Molecular Biology",
+ "rank": 3,
+ "topic_name": "Protein Structure and Dynamics",
+ "total_score": 45.758667,
+ "lexical_score": 33.3289263,
+ "title_vector_score": 26.991913,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Protein",
+ "score": 0.89543843
+ },
+ {
+ "keyword": "Intrinsically Disordered Proteins",
+ "score": 0.8823395
+ }
+ ]
+ },
+ {
+ "query": "rna sequencing",
+ "field": "Biochemistry, Genetics and Molecular Biology",
+ "rank": 1,
+ "topic_name": "RNA Research and Splicing",
+ "total_score": 46.47089,
+ "lexical_score": 44.23468,
+ "title_vector_score": 25.386751,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "RNA Phase Transitions",
+ "score": 0.82593083
+ },
+ {
+ "keyword": "mRNA Decay",
+ "score": 0.82236195
+ }
+ ]
+ },
+ {
+ "query": "rna sequencing",
+ "field": "Biochemistry, Genetics and Molecular Biology",
+ "rank": 2,
+ "topic_name": "RNA modifications and cancer",
+ "total_score": 45.956787,
+ "lexical_score": 37.2677025,
+ "title_vector_score": 24.872646,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "mRNA modification",
+ "score": 0.82901883
+ },
+ {
+ "keyword": "RNA methylation",
+ "score": 0.82221365
+ }
+ ]
+ },
+ {
+ "query": "rna sequencing",
+ "field": "Biochemistry, Genetics and Molecular Biology",
+ "rank": 3,
+ "topic_name": "Genomics and Phylogenetic Studies",
+ "total_score": 45.851143,
+ "lexical_score": 21.938184200000002,
+ "title_vector_score": 0.0,
+ "description_vector_score": 12.29197,
+ "keywords_vector_score": 22.202122,
+ "matched_keywords": [
+ {
+ "keyword": "RNA-seq",
+ "score": 0.8880849
+ },
+ {
+ "keyword": "genome annotation",
+ "score": 0.83731246
+ }
+ ]
+ },
+ {
+ "query": "enzyme kinetics",
+ "field": "Biochemistry, Genetics and Molecular Biology",
+ "rank": 1,
+ "topic_name": "Enzyme Production and Characterization",
+ "total_score": 47.98733,
+ "lexical_score": 30.952709,
+ "title_vector_score": 27.877636,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Enzyme Production",
+ "score": 0.92368054
+ },
+ {
+ "keyword": "Thermostable Enzymes",
+ "score": 0.8752196
+ }
+ ]
+ },
+ {
+ "query": "enzyme kinetics",
+ "field": "Biochemistry, Genetics and Molecular Biology",
+ "rank": 2,
+ "topic_name": "Enzyme Structure and Function",
+ "total_score": 47.87686,
+ "lexical_score": 34.911674399999995,
+ "title_vector_score": 27.767164,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Enzyme Structure",
+ "score": 0.9127083
+ }
+ ]
+ },
+ {
+ "query": "enzyme kinetics",
+ "field": "Biochemistry, Genetics and Molecular Biology",
+ "rank": 3,
+ "topic_name": "Enzyme Catalysis and Immobilization",
+ "total_score": 47.419327,
+ "lexical_score": 42.26862,
+ "title_vector_score": 27.30963,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Enzyme Immobilization",
+ "score": 0.8965001
+ },
+ {
+ "keyword": "Enzyme Stability",
+ "score": 0.8743005
+ }
+ ]
+ },
+ {
+ "query": "cellular signaling pathways",
+ "field": "Biochemistry, Genetics and Molecular Biology",
+ "rank": 1,
+ "topic_name": "Signaling Pathways in Disease",
+ "total_score": 64.465195,
+ "lexical_score": 42.807796,
+ "title_vector_score": 27.11621,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Transcriptional Regulation",
+ "score": 0.8226249
+ }
+ ]
+ },
+ {
+ "query": "cellular signaling pathways",
+ "field": "Biochemistry, Genetics and Molecular Biology",
+ "rank": 2,
+ "topic_name": "Cytokine Signaling Pathways and Interactions",
+ "total_score": 60.36429,
+ "lexical_score": 46.3100932,
+ "title_vector_score": 26.26467,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "cytokine signaling",
+ "score": 0.8542352
+ }
+ ]
+ },
+ {
+ "query": "cellular signaling pathways",
+ "field": "Biochemistry, Genetics and Molecular Biology",
+ "rank": 3,
+ "topic_name": "Receptor Mechanisms and Signaling",
+ "total_score": 44.28868,
+ "lexical_score": 38.2029094,
+ "title_vector_score": 26.656158,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Cell Signaling",
+ "score": 0.93056273
+ },
+ {
+ "keyword": "Receptor Activation",
+ "score": 0.82816005
+ }
+ ]
+ },
+ {
+ "query": "metabolic pathways",
+ "field": "Biochemistry, Genetics and Molecular Biology",
+ "rank": 1,
+ "topic_name": "Plant Gene Expression Analysis",
+ "total_score": 45.440445,
+ "lexical_score": 24.3322042,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.79593,
+ "matched_keywords": [
+ {
+ "keyword": "Metabolic Pathways",
+ "score": 0.99183726
+ }
+ ]
+ },
+ {
+ "query": "metabolic pathways",
+ "field": "Biochemistry, Genetics and Molecular Biology",
+ "rank": 2,
+ "topic_name": "Cassava research and cyanide",
+ "total_score": 44.546593,
+ "lexical_score": 19.749800999999998,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.79679,
+ "matched_keywords": [
+ {
+ "keyword": "Metabolic Pathways",
+ "score": 0.9918716
+ }
+ ]
+ },
+ {
+ "query": "metabolic pathways",
+ "field": "Biochemistry, Genetics and Molecular Biology",
+ "rank": 3,
+ "topic_name": "Nitrogen and Sulfur Effects on Brassica",
+ "total_score": 43.726204,
+ "lexical_score": 26.955116599999997,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.79679,
+ "matched_keywords": [
+ {
+ "keyword": "Metabolic Pathways",
+ "score": 0.9918716
+ }
+ ]
+ },
+ {
+ "query": "genomic sequencing",
+ "field": "Biochemistry, Genetics and Molecular Biology",
+ "rank": 1,
+ "topic_name": "Bioinformatics and Genomic Networks",
+ "total_score": 49.507195,
+ "lexical_score": 34.6042526,
+ "title_vector_score": 25.94588,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Genomic Data Integration",
+ "score": 0.89577985
+ },
+ {
+ "keyword": "Gene Set Enrichment Analysis",
+ "score": 0.82740617
+ }
+ ]
+ },
+ {
+ "query": "genomic sequencing",
+ "field": "Biochemistry, Genetics and Molecular Biology",
+ "rank": 2,
+ "topic_name": "Actinomycetales infections and treatment",
+ "total_score": 45.489975,
+ "lexical_score": 30.4790604,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.810076,
+ "matched_keywords": [
+ {
+ "keyword": "Genomic Sequencing",
+ "score": 0.99240303
+ }
+ ]
+ },
+ {
+ "query": "genomic sequencing",
+ "field": "Biochemistry, Genetics and Molecular Biology",
+ "rank": 3,
+ "topic_name": "Genomics and Phylogenetic Studies",
+ "total_score": 44.849716,
+ "lexical_score": 5.6107,
+ "title_vector_score": 27.05434,
+ "description_vector_score": 12.184675,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "functional genomics",
+ "score": 0.9126241
+ },
+ {
+ "keyword": "genome annotation",
+ "score": 0.9077115
+ }
+ ]
+ },
+ {
+ "query": "molecular cloning",
+ "field": "Biochemistry, Genetics and Molecular Biology",
+ "rank": 1,
+ "topic_name": "Leptospirosis research and findings",
+ "total_score": 28.57037,
+ "lexical_score": 10.7856271,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 20.905441,
+ "matched_keywords": [
+ {
+ "keyword": "Molecular Genetics",
+ "score": 0.83621764
+ }
+ ]
+ },
+ {
+ "query": "molecular cloning",
+ "field": "Biochemistry, Genetics and Molecular Biology",
+ "rank": 2,
+ "topic_name": "Cancer Genomics and Diagnostics",
+ "total_score": 22.132032,
+ "lexical_score": 0.0,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.132032,
+ "matched_keywords": [
+ {
+ "keyword": "Clonal Evolution",
+ "score": 0.8852813
+ }
+ ]
+ },
+ {
+ "query": "molecular cloning",
+ "field": "Biochemistry, Genetics and Molecular Biology",
+ "rank": 3,
+ "topic_name": "Artificial Immune Systems Applications",
+ "total_score": 21.444965,
+ "lexical_score": 0.0,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 21.444965,
+ "matched_keywords": [
+ {
+ "keyword": "Clonal Selection",
+ "score": 0.8577986
+ }
+ ]
+ },
+ {
+ "query": "apoptosis mechanism",
+ "field": "Biochemistry, Genetics and Molecular Biology",
+ "rank": 1,
+ "topic_name": "Cell death mechanisms and regulation",
+ "total_score": 47.963135,
+ "lexical_score": 15.5002466,
+ "title_vector_score": 25.480556,
+ "description_vector_score": 12.316228,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Apoptosis",
+ "score": 0.94198895
+ }
+ ]
+ },
+ {
+ "query": "apoptosis mechanism",
+ "field": "Biochemistry, Genetics and Molecular Biology",
+ "rank": 2,
+ "topic_name": "Medicinal Plant Pharmacodynamics Research",
+ "total_score": 34.367237,
+ "lexical_score": 15.897161,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.980587,
+ "matched_keywords": [
+ {
+ "keyword": "Apoptosis Induction",
+ "score": 0.9592235
+ }
+ ]
+ },
+ {
+ "query": "apoptosis mechanism",
+ "field": "Biochemistry, Genetics and Molecular Biology",
+ "rank": 3,
+ "topic_name": "Natural Compound Pharmacology Studies",
+ "total_score": 34.365353,
+ "lexical_score": 10.386649,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.978704,
+ "matched_keywords": [
+ {
+ "keyword": "Apoptosis Induction",
+ "score": 0.95914817
+ }
+ ]
+ },
+ {
+ "query": "mitochondrial DNA",
+ "field": "Biochemistry, Genetics and Molecular Biology",
+ "rank": 1,
+ "topic_name": "Mitochondrial Function and Pathology",
+ "total_score": 51.078117,
+ "lexical_score": 47.739074,
+ "title_vector_score": 25.911892,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Mitochondria",
+ "score": 0.9128773
+ },
+ {
+ "keyword": "Mitochondrial Fusion",
+ "score": 0.871619
+ }
+ ]
+ },
+ {
+ "query": "mitochondrial DNA",
+ "field": "Biochemistry, Genetics and Molecular Biology",
+ "rank": 2,
+ "topic_name": "DNA Repair Mechanisms",
+ "total_score": 47.8927,
+ "lexical_score": 37.964512,
+ "title_vector_score": 25.167961,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "DNA Damage",
+ "score": 0.8167434
+ }
+ ]
+ },
+ {
+ "query": "mitochondrial DNA",
+ "field": "Biochemistry, Genetics and Molecular Biology",
+ "rank": 3,
+ "topic_name": "Livestock and Poultry Management",
+ "total_score": 46.69661,
+ "lexical_score": 32.9844012,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.437374,
+ "matched_keywords": [
+ {
+ "keyword": "Mitochondrial DNA",
+ "score": 0.97749496
+ },
+ {
+ "keyword": "Ancient DNA",
+ "score": 0.82682014
+ }
+ ]
+ },
+ {
+ "query": "epigenetic modifications",
+ "field": "Biochemistry, Genetics and Molecular Biology",
+ "rank": 1,
+ "topic_name": "Epigenetics and DNA Methylation",
+ "total_score": 58.096878,
+ "lexical_score": 32.9701509,
+ "title_vector_score": 27.588472,
+ "description_vector_score": 13.406263,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Epigenetic Reprogramming",
+ "score": 0.95917416
+ },
+ {
+ "keyword": "Epigenetic Therapy",
+ "score": 0.9202049
+ }
+ ]
+ },
+ {
+ "query": "epigenetic modifications",
+ "field": "Biochemistry, Genetics and Molecular Biology",
+ "rank": 2,
+ "topic_name": "Genomics and Chromatin Dynamics",
+ "total_score": 40.98967,
+ "lexical_score": 29.9515693,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.08693,
+ "matched_keywords": [
+ {
+ "keyword": "Epigenetics",
+ "score": 0.96347713
+ },
+ {
+ "keyword": "Gene Regulation",
+ "score": 0.85586977
+ }
+ ]
+ },
+ {
+ "query": "epigenetic modifications",
+ "field": "Biochemistry, Genetics and Molecular Biology",
+ "rank": 3,
+ "topic_name": "Pluripotent Stem Cells Research",
+ "total_score": 35.436817,
+ "lexical_score": 16.659565,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.168903,
+ "matched_keywords": [
+ {
+ "keyword": "Epigenetic Remodeling",
+ "score": 0.9667561
+ }
+ ]
+ },
+ {
+ "query": "proteomics analysis",
+ "field": "Biochemistry, Genetics and Molecular Biology",
+ "rank": 1,
+ "topic_name": "Advanced Proteomics Techniques and Applications",
+ "total_score": 50.64035,
+ "lexical_score": 50.2030914,
+ "title_vector_score": 27.66359,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Proteomics",
+ "score": 0.92345333
+ }
+ ]
+ },
+ {
+ "query": "proteomics analysis",
+ "field": "Biochemistry, Genetics and Molecular Biology",
+ "rank": 2,
+ "topic_name": "Mass Spectrometry Techniques and Applications",
+ "total_score": 38.708916,
+ "lexical_score": 25.0635312,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.086334,
+ "matched_keywords": [
+ {
+ "keyword": "Proteomics",
+ "score": 0.92345333
+ }
+ ]
+ },
+ {
+ "query": "proteomics analysis",
+ "field": "Biochemistry, Genetics and Molecular Biology",
+ "rank": 3,
+ "topic_name": "Venomous Animal Envenomation and Studies",
+ "total_score": 38.351654,
+ "lexical_score": 22.270996099999998,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.091143,
+ "matched_keywords": [
+ {
+ "keyword": "Proteomics",
+ "score": 0.92364573
+ }
+ ]
+ },
+ {
+ "query": "gene expression regulation",
+ "field": "Biochemistry, Genetics and Molecular Biology",
+ "rank": 1,
+ "topic_name": "Cancer-related gene regulation",
+ "total_score": 62.088043,
+ "lexical_score": 48.824546,
+ "title_vector_score": 26.577044,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Transcriptional Regulation",
+ "score": 0.9063544
+ },
+ {
+ "keyword": "Epigenetic Regulation",
+ "score": 0.877836
+ }
+ ]
+ },
+ {
+ "query": "gene expression regulation",
+ "field": "Biochemistry, Genetics and Molecular Biology",
+ "rank": 2,
+ "topic_name": "Developmental Biology and Gene Regulation",
+ "total_score": 60.256912,
+ "lexical_score": 56.4021212,
+ "title_vector_score": 27.835371,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Gene Regulation",
+ "score": 0.97377706
+ }
+ ]
+ },
+ {
+ "query": "gene expression regulation",
+ "field": "Biochemistry, Genetics and Molecular Biology",
+ "rank": 3,
+ "topic_name": "RNA modifications and cancer",
+ "total_score": 49.257397,
+ "lexical_score": 32.969521400000005,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.995636,
+ "matched_keywords": [
+ {
+ "keyword": "gene expression regulation",
+ "score": 0.9998255
+ },
+ {
+ "keyword": "mRNA modification",
+ "score": 0.8552587
+ }
+ ]
+ },
+ {
+ "query": "chromatin remodeling",
+ "field": "Biochemistry, Genetics and Molecular Biology",
+ "rank": 1,
+ "topic_name": "Chromatin Remodeling and Cancer",
+ "total_score": 98.65711,
+ "lexical_score": 89.10690249999999,
+ "title_vector_score": 27.227833,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.306656,
+ "matched_keywords": [
+ {
+ "keyword": "Chromatin Remodeling",
+ "score": 0.9722662
+ }
+ ]
+ },
+ {
+ "query": "chromatin remodeling",
+ "field": "Biochemistry, Genetics and Molecular Biology",
+ "rank": 2,
+ "topic_name": "Cancer-related molecular mechanisms research",
+ "total_score": 35.768616,
+ "lexical_score": 18.3338,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.579931,
+ "matched_keywords": [
+ {
+ "keyword": "Chromatin Modification",
+ "score": 0.94319725
+ }
+ ]
+ },
+ {
+ "query": "chromatin remodeling",
+ "field": "Biochemistry, Genetics and Molecular Biology",
+ "rank": 3,
+ "topic_name": "Nuclear Structure and Function",
+ "total_score": 34.46248,
+ "lexical_score": 19.975974,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.030735,
+ "matched_keywords": [
+ {
+ "keyword": "Chromatin Organization",
+ "score": 0.8812294
+ }
+ ]
+ },
+ {
+ "query": "amino acid synthesis",
+ "field": "Biochemistry, Genetics and Molecular Biology",
+ "rank": 1,
+ "topic_name": "Amino Acid Enzymes and Metabolism",
+ "total_score": 68.18137,
+ "lexical_score": 78.2161565,
+ "title_vector_score": 26.433985,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Amino Acid Transporters",
+ "score": 0.8620336
+ }
+ ]
+ },
+ {
+ "query": "amino acid synthesis",
+ "field": "Biochemistry, Genetics and Molecular Biology",
+ "rank": 2,
+ "topic_name": "Machine Learning in Bioinformatics",
+ "total_score": 44.899166,
+ "lexical_score": 31.760400600000004,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.384047,
+ "matched_keywords": [
+ {
+ "keyword": "Amino Acid Composition",
+ "score": 0.93536186
+ }
+ ]
+ },
+ {
+ "query": "amino acid synthesis",
+ "field": "Biochemistry, Genetics and Molecular Biology",
+ "rank": 3,
+ "topic_name": "Synthesis of Organic Compounds",
+ "total_score": 38.931824,
+ "lexical_score": 28.722672499999998,
+ "title_vector_score": 25.582523,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "nucleic acids",
+ "field": "Biochemistry, Genetics and Molecular Biology",
+ "rank": 1,
+ "topic_name": "DNA and Nucleic Acid Chemistry",
+ "total_score": 75.930374,
+ "lexical_score": 47.078707,
+ "title_vector_score": 27.172565,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.65586,
+ "matched_keywords": [
+ {
+ "keyword": "Nucleic Acids",
+ "score": 0.9862344
+ }
+ ]
+ },
+ {
+ "query": "nucleic acids",
+ "field": "Biochemistry, Genetics and Molecular Biology",
+ "rank": 2,
+ "topic_name": "Origins and Evolution of Life",
+ "total_score": 50.99494,
+ "lexical_score": 33.4871184,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.658632,
+ "matched_keywords": [
+ {
+ "keyword": "Nucleic Acids",
+ "score": 0.9863453
+ }
+ ]
+ },
+ {
+ "query": "nucleic acids",
+ "field": "Biochemistry, Genetics and Molecular Biology",
+ "rank": 3,
+ "topic_name": "RNA Interference and Gene Delivery",
+ "total_score": 34.780163,
+ "lexical_score": 12.4998455,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.280317,
+ "matched_keywords": [
+ {
+ "keyword": "Nucleic Acid Delivery",
+ "score": 0.8912127
+ }
+ ]
+ },
+ {
+ "query": "cellular differentiation",
+ "field": "Biochemistry, Genetics and Molecular Biology",
+ "rank": 1,
+ "topic_name": "Single-cell and spatial transcriptomics",
+ "total_score": 47.76984,
+ "lexical_score": 0.0,
+ "title_vector_score": 24.861439,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.908401,
+ "matched_keywords": [
+ {
+ "keyword": "Cell Heterogeneity",
+ "score": 0.91633606
+ },
+ {
+ "keyword": "Cell Types",
+ "score": 0.8804276
+ }
+ ]
+ },
+ {
+ "query": "cellular differentiation",
+ "field": "Biochemistry, Genetics and Molecular Biology",
+ "rank": 2,
+ "topic_name": "Cellular and Composite Structures",
+ "total_score": 44.490036,
+ "lexical_score": 34.3888315,
+ "title_vector_score": 24.773577,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "cellular differentiation",
+ "field": "Biochemistry, Genetics and Molecular Biology",
+ "rank": 3,
+ "topic_name": "Cellular Mechanics and Interactions",
+ "total_score": 44.309525,
+ "lexical_score": 19.71646,
+ "title_vector_score": 24.593067,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Cell Migration",
+ "score": 0.8529897
+ },
+ {
+ "keyword": "Extracellular Matrix",
+ "score": 0.85066485
+ }
+ ]
+ },
+ {
+ "query": "lipid metabolism",
+ "field": "Biochemistry, Genetics and Molecular Biology",
+ "rank": 1,
+ "topic_name": "Lipid metabolism and biosynthesis",
+ "total_score": 79.360825,
+ "lexical_score": 74.448386,
+ "title_vector_score": 28.401726,
+ "description_vector_score": 12.72303,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Phospholipid Metabolism",
+ "score": 0.8283353
+ },
+ {
+ "keyword": "Adipose Tissue Lipolysis",
+ "score": 0.8258014
+ }
+ ]
+ },
+ {
+ "query": "lipid metabolism",
+ "field": "Biochemistry, Genetics and Molecular Biology",
+ "rank": 2,
+ "topic_name": "Lipid metabolism and disorders",
+ "total_score": 79.20459,
+ "lexical_score": 58.236255500000006,
+ "title_vector_score": 28.472958,
+ "description_vector_score": 12.495561,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Lipoprotein Lipase",
+ "score": 0.9032693
+ },
+ {
+ "keyword": "Triglyceride Metabolism",
+ "score": 0.87463784
+ }
+ ]
+ },
+ {
+ "query": "lipid metabolism",
+ "field": "Biochemistry, Genetics and Molecular Biology",
+ "rank": 3,
+ "topic_name": "Cholesterol and Lipid Metabolism",
+ "total_score": 66.61253,
+ "lexical_score": 57.38696160000001,
+ "title_vector_score": 28.376463,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Metabolism",
+ "score": 0.89415836
+ },
+ {
+ "keyword": "Cholesterol",
+ "score": 0.85172653
+ }
+ ]
+ },
+ {
+ "query": "transcription factors",
+ "field": "Biochemistry, Genetics and Molecular Biology",
+ "rank": 1,
+ "topic_name": "FOXO transcription factor regulation",
+ "total_score": 51.275955,
+ "lexical_score": 55.5009572,
+ "title_vector_score": 26.109732,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "FoxO transcription factors",
+ "score": 0.8866761
+ }
+ ]
+ },
+ {
+ "query": "transcription factors",
+ "field": "Biochemistry, Genetics and Molecular Biology",
+ "rank": 2,
+ "topic_name": "Genomics and Chromatin Dynamics",
+ "total_score": 49.549213,
+ "lexical_score": 24.7027437,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.84647,
+ "matched_keywords": [
+ {
+ "keyword": "Transcription Factors",
+ "score": 0.9938588
+ },
+ {
+ "keyword": "Gene Regulation",
+ "score": 0.904377
+ }
+ ]
+ },
+ {
+ "query": "transcription factors",
+ "field": "Biochemistry, Genetics and Molecular Biology",
+ "rank": 3,
+ "topic_name": "NF-κB Signaling Pathways",
+ "total_score": 47.23581,
+ "lexical_score": 22.239708,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.996101,
+ "matched_keywords": [
+ {
+ "keyword": "transcription factors",
+ "score": 0.9998441
+ }
+ ]
+ },
+ {
+ "query": "crop yield optimization",
+ "field": "Agricultural and Biological Sciences",
+ "rank": 1,
+ "topic_name": "Soil Management and Crop Yield",
+ "total_score": 65.64881,
+ "lexical_score": 58.57537750000001,
+ "title_vector_score": 26.331861,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "No-till Crop Production",
+ "score": 0.8136282
+ }
+ ]
+ },
+ {
+ "query": "crop yield optimization",
+ "field": "Agricultural and Biological Sciences",
+ "rank": 2,
+ "topic_name": "Crop Yield and Soil Fertility",
+ "total_score": 64.93532,
+ "lexical_score": 72.9192433,
+ "title_vector_score": 25.618372,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Crop Management",
+ "score": 0.8786926
+ },
+ {
+ "keyword": "Maize Yield",
+ "score": 0.85146785
+ }
+ ]
+ },
+ {
+ "query": "crop yield optimization",
+ "field": "Agricultural and Biological Sciences",
+ "rank": 3,
+ "topic_name": "Agricultural Productivity and Crop Improvement",
+ "total_score": 45.439304,
+ "lexical_score": 34.066742,
+ "title_vector_score": 26.668674,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Crop Adaptation",
+ "score": 0.84349513
+ },
+ {
+ "keyword": "Forage Production",
+ "score": 0.81945205
+ }
+ ]
+ },
+ {
+ "query": "plant physiology",
+ "field": "Agricultural and Biological Sciences",
+ "rank": 1,
+ "topic_name": "Plant Physiology and Cultivation Studies",
+ "total_score": 57.325756,
+ "lexical_score": 35.1453246,
+ "title_vector_score": 28.242981,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "plant physiology",
+ "field": "Agricultural and Biological Sciences",
+ "rank": 2,
+ "topic_name": "Magnesium in Health and Disease",
+ "total_score": 46.32208,
+ "lexical_score": 32.233620099999996,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.609207,
+ "matched_keywords": [
+ {
+ "keyword": "Plant Physiology",
+ "score": 0.9843683
+ }
+ ]
+ },
+ {
+ "query": "plant physiology",
+ "field": "Agricultural and Biological Sciences",
+ "rank": 3,
+ "topic_name": "Agriculture and Social Issues",
+ "total_score": 43.229565,
+ "lexical_score": 27.8766294,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.609207,
+ "matched_keywords": [
+ {
+ "keyword": "Plant Physiology",
+ "score": 0.9843683
+ }
+ ]
+ },
+ {
+ "query": "marine biology",
+ "field": "Agricultural and Biological Sciences",
+ "rank": 1,
+ "topic_name": "Marine Biology and Ecology Research",
+ "total_score": 70.40528,
+ "lexical_score": 45.8688277,
+ "title_vector_score": 28.875439,
+ "description_vector_score": 12.232915,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Marine Biodiversity",
+ "score": 0.91718245
+ },
+ {
+ "keyword": "Deep-Sea Ecology",
+ "score": 0.8760171
+ }
+ ]
+ },
+ {
+ "query": "marine biology",
+ "field": "Agricultural and Biological Sciences",
+ "rank": 2,
+ "topic_name": "Marine Biology and Environmental Chemistry",
+ "total_score": 57.121674,
+ "lexical_score": 43.796364999999994,
+ "title_vector_score": 27.824749,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Marine Environment",
+ "score": 0.90754175
+ }
+ ]
+ },
+ {
+ "query": "marine biology",
+ "field": "Agricultural and Biological Sciences",
+ "rank": 3,
+ "topic_name": "Heavy Metal Pollution Remediation",
+ "total_score": 45.2069,
+ "lexical_score": 29.2282149,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.965042,
+ "matched_keywords": [
+ {
+ "keyword": "Marine Biology",
+ "score": 0.9986017
+ },
+ {
+ "keyword": "Aquatic Ecosystems",
+ "score": 0.83899975
+ }
+ ]
+ },
+ {
+ "query": "soil microbiology",
+ "field": "Agricultural and Biological Sciences",
+ "rank": 1,
+ "topic_name": "Biocrusts and Microbial Ecology",
+ "total_score": 50.19174,
+ "lexical_score": 17.204594,
+ "title_vector_score": 26.470634,
+ "description_vector_score": 12.526531,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Biological Soil Crusts",
+ "score": 0.8516085
+ },
+ {
+ "keyword": "Microbial Diversity",
+ "score": 0.84240746
+ }
+ ]
+ },
+ {
+ "query": "soil microbiology",
+ "field": "Agricultural and Biological Sciences",
+ "rank": 2,
+ "topic_name": "Plant and soil sciences",
+ "total_score": 43.161663,
+ "lexical_score": 29.342834200000006,
+ "title_vector_score": 26.50358,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Soil Management",
+ "score": 0.83223605
+ },
+ {
+ "keyword": "Agroecology",
+ "score": 0.8151562
+ }
+ ]
+ },
+ {
+ "query": "soil microbiology",
+ "field": "Agricultural and Biological Sciences",
+ "rank": 3,
+ "topic_name": "Plant Ecology and Soil Science",
+ "total_score": 41.709732,
+ "lexical_score": 28.6267106,
+ "title_vector_score": 26.500904,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Soil Properties",
+ "score": 0.8293452
+ }
+ ]
+ },
+ {
+ "query": "entomology study",
+ "field": "Agricultural and Biological Sciences",
+ "rank": 1,
+ "topic_name": "Forensic Entomology and Diptera Studies",
+ "total_score": 74.02468,
+ "lexical_score": 48.948952000000006,
+ "title_vector_score": 27.408607,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.639315,
+ "matched_keywords": [
+ {
+ "keyword": "Forensic Entomology",
+ "score": 0.9455726
+ },
+ {
+ "keyword": "Entomological Evidence",
+ "score": 0.9453094
+ }
+ ]
+ },
+ {
+ "query": "entomology study",
+ "field": "Agricultural and Biological Sciences",
+ "rank": 2,
+ "topic_name": "Entomopathogenic Microorganisms in Pest Control",
+ "total_score": 34.45723,
+ "lexical_score": 0.0,
+ "title_vector_score": 0.0,
+ "description_vector_score": 12.454512,
+ "keywords_vector_score": 22.00272,
+ "matched_keywords": [
+ {
+ "keyword": "Entomopathogenic Fungi",
+ "score": 0.88010883
+ },
+ {
+ "keyword": "Insect Pathogens",
+ "score": 0.81138206
+ }
+ ]
+ },
+ {
+ "query": "entomology study",
+ "field": "Agricultural and Biological Sciences",
+ "rank": 3,
+ "topic_name": "Entomological Studies and Ecology",
+ "total_score": 28.868673,
+ "lexical_score": 0.0,
+ "title_vector_score": 28.868673,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "botany research",
+ "field": "Agricultural and Biological Sciences",
+ "rank": 1,
+ "topic_name": "Botany and Plant Ecology Studies",
+ "total_score": 48.143135,
+ "lexical_score": 21.188026,
+ "title_vector_score": 28.317703,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Flora",
+ "score": 0.89000463
+ },
+ {
+ "keyword": "Vegetation",
+ "score": 0.8444741
+ }
+ ]
+ },
+ {
+ "query": "botany research",
+ "field": "Agricultural and Biological Sciences",
+ "rank": 2,
+ "topic_name": "Botanical Research and Applications",
+ "total_score": 36.855133,
+ "lexical_score": 9.0594305,
+ "title_vector_score": 29.081963,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "botany research",
+ "field": "Agricultural and Biological Sciences",
+ "rank": 3,
+ "topic_name": "Botanical Studies and Applications",
+ "total_score": 28.666735,
+ "lexical_score": 0.0,
+ "title_vector_score": 28.666735,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "sustainable agriculture",
+ "field": "Agricultural and Biological Sciences",
+ "rank": 1,
+ "topic_name": "Sustainable Agricultural Systems Analysis",
+ "total_score": 46.50844,
+ "lexical_score": 26.3341604,
+ "title_vector_score": 28.469954,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Agricultural Sustainability",
+ "score": 0.97464633
+ },
+ {
+ "keyword": "Agri-environmental Systems",
+ "score": 0.90223885
+ }
+ ]
+ },
+ {
+ "query": "sustainable agriculture",
+ "field": "Agricultural and Biological Sciences",
+ "rank": 2,
+ "topic_name": "Agriculture Sustainability and Environmental Impact",
+ "total_score": 43.399033,
+ "lexical_score": 24.1868849,
+ "title_vector_score": 28.434477,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Sustainable Diets",
+ "score": 0.8175864
+ }
+ ]
+ },
+ {
+ "query": "sustainable agriculture",
+ "field": "Agricultural and Biological Sciences",
+ "rank": 3,
+ "topic_name": "Agricultural economics and policies",
+ "total_score": 39.67564,
+ "lexical_score": 22.4403774,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.9394,
+ "matched_keywords": [
+ {
+ "keyword": "Sustainable Agriculture",
+ "score": 0.997576
+ },
+ {
+ "keyword": "Agribusiness",
+ "score": 0.88482356
+ }
+ ]
+ },
+ {
+ "query": "animal behavior",
+ "field": "Agricultural and Biological Sciences",
+ "rank": 1,
+ "topic_name": "Animal Behavior and Reproduction",
+ "total_score": 57.274834,
+ "lexical_score": 39.604575000000004,
+ "title_vector_score": 26.297436,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "animal behavior",
+ "field": "Agricultural and Biological Sciences",
+ "rank": 2,
+ "topic_name": "Animal Behavior and Welfare Studies",
+ "total_score": 56.32148,
+ "lexical_score": 50.249048,
+ "title_vector_score": 28.03912,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Lameness in Animals",
+ "score": 0.850332
+ },
+ {
+ "keyword": "Animal Welfare",
+ "score": 0.84737325
+ }
+ ]
+ },
+ {
+ "query": "animal behavior",
+ "field": "Agricultural and Biological Sciences",
+ "rank": 3,
+ "topic_name": "Animal Ecology and Behavior Studies",
+ "total_score": 55.87207,
+ "lexical_score": 28.282362,
+ "title_vector_score": 27.58971,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "ecology systems",
+ "field": "Agricultural and Biological Sciences",
+ "rank": 1,
+ "topic_name": "Ecology and Conservation Studies",
+ "total_score": 41.278965,
+ "lexical_score": 14.310485,
+ "title_vector_score": 26.968481,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Ecological Characteristics",
+ "score": 0.926728
+ },
+ {
+ "keyword": "Habitat Environment",
+ "score": 0.8770964
+ }
+ ]
+ },
+ {
+ "query": "ecology systems",
+ "field": "Agricultural and Biological Sciences",
+ "rank": 2,
+ "topic_name": "Plant Ecology and Soil Science",
+ "total_score": 37.012924,
+ "lexical_score": 13.065472,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.947453,
+ "matched_keywords": [
+ {
+ "keyword": "Ecosystem",
+ "score": 0.95789814
+ },
+ {
+ "keyword": "Biodiversity",
+ "score": 0.8444786
+ }
+ ]
+ },
+ {
+ "query": "ecology systems",
+ "field": "Agricultural and Biological Sciences",
+ "rank": 3,
+ "topic_name": "Sustainability and Ecological Systems Analysis",
+ "total_score": 36.6493,
+ "lexical_score": 9.433411,
+ "title_vector_score": 27.215889,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Ecosystem Dynamics",
+ "score": 0.8945751
+ },
+ {
+ "keyword": "Ecological Network Analysis",
+ "score": 0.88327336
+ }
+ ]
+ },
+ {
+ "query": "pest management",
+ "field": "Agricultural and Biological Sciences",
+ "rank": 1,
+ "topic_name": "Insect Pest Control Strategies",
+ "total_score": 62.913708,
+ "lexical_score": 48.34588170000001,
+ "title_vector_score": 28.095781,
+ "description_vector_score": 12.313739,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Pest Management",
+ "score": 0.9957123
+ },
+ {
+ "keyword": "Botanical Insecticides",
+ "score": 0.8958056
+ }
+ ]
+ },
+ {
+ "query": "pest management",
+ "field": "Agricultural and Biological Sciences",
+ "rank": 2,
+ "topic_name": "Agricultural pest management studies",
+ "total_score": 61.579575,
+ "lexical_score": 32.708629,
+ "title_vector_score": 28.870947,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "pest management",
+ "field": "Agricultural and Biological Sciences",
+ "rank": 3,
+ "topic_name": "Insects and Parasite Interactions",
+ "total_score": 42.745316,
+ "lexical_score": 25.8159693,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.893974,
+ "matched_keywords": [
+ {
+ "keyword": "Pest Management",
+ "score": 0.995759
+ },
+ {
+ "keyword": "Insecticide Resistance",
+ "score": 0.8660052
+ }
+ ]
+ },
+ {
+ "query": "forestry conservation",
+ "field": "Agricultural and Biological Sciences",
+ "rank": 1,
+ "topic_name": "Forest Management and Policy",
+ "total_score": 47.699883,
+ "lexical_score": 23.8183433,
+ "title_vector_score": 27.825607,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Sustainable Forest Management",
+ "score": 0.92776155
+ },
+ {
+ "keyword": "European Forestry",
+ "score": 0.8933852
+ }
+ ]
+ },
+ {
+ "query": "forestry conservation",
+ "field": "Agricultural and Biological Sciences",
+ "rank": 2,
+ "topic_name": "Forest Ecology and Conservation",
+ "total_score": 46.877678,
+ "lexical_score": 33.279505,
+ "title_vector_score": 29.245155,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Forest Health",
+ "score": 0.9092486
+ },
+ {
+ "keyword": "Biodiversity Conservation",
+ "score": 0.88027763
+ }
+ ]
+ },
+ {
+ "query": "forestry conservation",
+ "field": "Agricultural and Biological Sciences",
+ "rank": 3,
+ "topic_name": "Bioeconomy and Sustainability Development",
+ "total_score": 39.54448,
+ "lexical_score": 16.00225,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.54223,
+ "matched_keywords": [
+ {
+ "keyword": "Forestry",
+ "score": 0.94168925
+ }
+ ]
+ },
+ {
+ "query": "photosynthesis mechanism",
+ "field": "Agricultural and Biological Sciences",
+ "rank": 1,
+ "topic_name": "Photosynthetic Processes and Mechanisms",
+ "total_score": 50.28442,
+ "lexical_score": 7.242616,
+ "title_vector_score": 29.671333,
+ "description_vector_score": 13.370472,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Photosynthetic Acclimation",
+ "score": 0.92295265
+ }
+ ]
+ },
+ {
+ "query": "photosynthesis mechanism",
+ "field": "Agricultural and Biological Sciences",
+ "rank": 2,
+ "topic_name": "Spectroscopy and Quantum Chemical Studies",
+ "total_score": 38.326015,
+ "lexical_score": 13.965813,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.360203,
+ "matched_keywords": [
+ {
+ "keyword": "Photosynthesis",
+ "score": 0.97440815
+ }
+ ]
+ },
+ {
+ "query": "photosynthesis mechanism",
+ "field": "Agricultural and Biological Sciences",
+ "rank": 3,
+ "topic_name": "Plant responses to elevated CO2",
+ "total_score": 38.324955,
+ "lexical_score": 20.9762996,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.359142,
+ "matched_keywords": [
+ {
+ "keyword": "Photosynthesis",
+ "score": 0.9743657
+ }
+ ]
+ },
+ {
+ "query": "biodiversity preservation",
+ "field": "Agricultural and Biological Sciences",
+ "rank": 1,
+ "topic_name": "Ecology and biodiversity studies",
+ "total_score": 48.393417,
+ "lexical_score": 32.477825,
+ "title_vector_score": 27.834127,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Biodiversity",
+ "score": 0.9439273
+ },
+ {
+ "keyword": "Habitat Restoration",
+ "score": 0.86267614
+ }
+ ]
+ },
+ {
+ "query": "biodiversity preservation",
+ "field": "Agricultural and Biological Sciences",
+ "rank": 2,
+ "topic_name": "Conservation, Biodiversity, and Resource Management",
+ "total_score": 46.924774,
+ "lexical_score": 29.889650500000002,
+ "title_vector_score": 28.154146,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Biodiversity Conservation",
+ "score": 0.97495866
+ },
+ {
+ "keyword": "Community-Based Conservation",
+ "score": 0.8445618
+ }
+ ]
+ },
+ {
+ "query": "biodiversity preservation",
+ "field": "Agricultural and Biological Sciences",
+ "rank": 3,
+ "topic_name": "Geography and Environmental Studies",
+ "total_score": 44.870384,
+ "lexical_score": 30.261714,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.856043,
+ "matched_keywords": [
+ {
+ "keyword": "Biodiversity Preservation",
+ "score": 0.9942417
+ },
+ {
+ "keyword": "Environmental Conservation",
+ "score": 0.87034273
+ }
+ ]
+ },
+ {
+ "query": "aquaculture techniques",
+ "field": "Agricultural and Biological Sciences",
+ "rank": 1,
+ "topic_name": "Aquaculture disease management and microbiota",
+ "total_score": 70.22331,
+ "lexical_score": 38.987125500000005,
+ "title_vector_score": 26.269955,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.127924,
+ "matched_keywords": [
+ {
+ "keyword": "Aquaculture",
+ "score": 0.965117
+ }
+ ]
+ },
+ {
+ "query": "aquaculture techniques",
+ "field": "Agricultural and Biological Sciences",
+ "rank": 2,
+ "topic_name": "Aquaculture Nutrition and Growth",
+ "total_score": 48.945667,
+ "lexical_score": 40.3245135,
+ "title_vector_score": 27.23106,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Aquaculture",
+ "score": 0.965117
+ }
+ ]
+ },
+ {
+ "query": "aquaculture techniques",
+ "field": "Agricultural and Biological Sciences",
+ "rank": 3,
+ "topic_name": "Fisheries and Aquaculture Studies",
+ "total_score": 48.65633,
+ "lexical_score": 21.714607,
+ "title_vector_score": 26.941723,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Fisheries",
+ "score": 0.8227482
+ }
+ ]
+ },
+ {
+ "query": "agronomy practices",
+ "field": "Agricultural and Biological Sciences",
+ "rank": 1,
+ "topic_name": "Agronomic Practices and Intercropping Systems",
+ "total_score": 49.908062,
+ "lexical_score": 23.6469733,
+ "title_vector_score": 0.0,
+ "description_vector_score": 12.343655,
+ "keywords_vector_score": 24.558699,
+ "matched_keywords": [
+ {
+ "keyword": "Agroecological Practices",
+ "score": 0.98234797
+ },
+ {
+ "keyword": "Sustainable Agriculture",
+ "score": 0.89086366
+ }
+ ]
+ },
+ {
+ "query": "agronomy practices",
+ "field": "Agricultural and Biological Sciences",
+ "rank": 2,
+ "topic_name": "Agricultural Research and Practices",
+ "total_score": 42.07663,
+ "lexical_score": 17.3531907,
+ "title_vector_score": 27.831602,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Agricultural Sustainability",
+ "score": 0.8678727
+ },
+ {
+ "keyword": "Smallholder Farming",
+ "score": 0.8406222
+ }
+ ]
+ },
+ {
+ "query": "agronomy practices",
+ "field": "Agricultural and Biological Sciences",
+ "rank": 3,
+ "topic_name": "Agroforestry and silvopastoral systems",
+ "total_score": 36.278694,
+ "lexical_score": 0.0,
+ "title_vector_score": 0.0,
+ "description_vector_score": 12.30012,
+ "keywords_vector_score": 23.978573,
+ "matched_keywords": [
+ {
+ "keyword": "Agroforestry",
+ "score": 0.9591429
+ },
+ {
+ "keyword": "Sustainable Agriculture",
+ "score": 0.89074683
+ }
+ ]
+ },
+ {
+ "query": "seed germination",
+ "field": "Agricultural and Biological Sciences",
+ "rank": 1,
+ "topic_name": "Seed Germination and Physiology",
+ "total_score": 101.24085,
+ "lexical_score": 97.81537800000001,
+ "title_vector_score": 28.692598,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.820717,
+ "matched_keywords": [
+ {
+ "keyword": "Germination",
+ "score": 0.95282865
+ },
+ {
+ "keyword": "Seed Dormancy",
+ "score": 0.87651896
+ }
+ ]
+ },
+ {
+ "query": "seed germination",
+ "field": "Agricultural and Biological Sciences",
+ "rank": 2,
+ "topic_name": "Magnetic and Electromagnetic Effects",
+ "total_score": 50.632957,
+ "lexical_score": 40.7897367,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.799234,
+ "matched_keywords": [
+ {
+ "keyword": "Seed Germination",
+ "score": 0.99196935
+ },
+ {
+ "keyword": "Plant Growth",
+ "score": 0.8728926
+ }
+ ]
+ },
+ {
+ "query": "seed germination",
+ "field": "Agricultural and Biological Sciences",
+ "rank": 3,
+ "topic_name": "Agriculture, Plant Science, Crop Management",
+ "total_score": 35.034794,
+ "lexical_score": 19.3736727,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.578842,
+ "matched_keywords": [
+ {
+ "keyword": "Seed Yield",
+ "score": 0.90315366
+ },
+ {
+ "keyword": "Plant Growth",
+ "score": 0.8728926
+ }
+ ]
+ },
+ {
+ "query": "horticulture science",
+ "field": "Agricultural and Biological Sciences",
+ "rank": 1,
+ "topic_name": "Plant Growth and Agriculture Techniques",
+ "total_score": 41.44113,
+ "lexical_score": 27.9734862,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.155521,
+ "matched_keywords": [
+ {
+ "keyword": "Horticulture",
+ "score": 0.96622086
+ },
+ {
+ "keyword": "Crop Production",
+ "score": 0.832041
+ }
+ ]
+ },
+ {
+ "query": "horticulture science",
+ "field": "Agricultural and Biological Sciences",
+ "rank": 2,
+ "topic_name": "Agriculture, Soil, Plant Science",
+ "total_score": 40.317223,
+ "lexical_score": 13.498936,
+ "title_vector_score": 26.818285,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "horticulture science",
+ "field": "Agricultural and Biological Sciences",
+ "rank": 3,
+ "topic_name": "Agriculture, Plant Science, Crop Management",
+ "total_score": 38.8957,
+ "lexical_score": 12.324528,
+ "title_vector_score": 26.57117,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Plant Growth",
+ "score": 0.8100059
+ }
+ ]
+ },
+ {
+ "query": "wildlife ecology",
+ "field": "Agricultural and Biological Sciences",
+ "rank": 1,
+ "topic_name": "Wildlife Ecology and Conservation",
+ "total_score": 76.973236,
+ "lexical_score": 60.891601,
+ "title_vector_score": 29.0567,
+ "description_vector_score": 12.5219145,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Global Biodiversity Loss",
+ "score": 0.8410716
+ },
+ {
+ "keyword": "Habitat Selection",
+ "score": 0.8218653
+ }
+ ]
+ },
+ {
+ "query": "wildlife ecology",
+ "field": "Agricultural and Biological Sciences",
+ "rank": 2,
+ "topic_name": "Rangeland and Wildlife Management",
+ "total_score": 44.880516,
+ "lexical_score": 47.0901586,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.79638,
+ "matched_keywords": [
+ {
+ "keyword": "Wildlife Habitat",
+ "score": 0.9518552
+ },
+ {
+ "keyword": "Ecosystem",
+ "score": 0.9196098
+ }
+ ]
+ },
+ {
+ "query": "wildlife ecology",
+ "field": "Agricultural and Biological Sciences",
+ "rank": 3,
+ "topic_name": "Ecology and biodiversity studies",
+ "total_score": 42.533318,
+ "lexical_score": 23.886983999999998,
+ "title_vector_score": 28.222832,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Biodiversity",
+ "score": 0.90142584
+ },
+ {
+ "keyword": "Stream Ecology",
+ "score": 0.8539996
+ }
+ ]
+ },
+ {
+ "query": "plant pathology",
+ "field": "Agricultural and Biological Sciences",
+ "rank": 1,
+ "topic_name": "Plant Pathogens and Fungal Diseases",
+ "total_score": 63.209824,
+ "lexical_score": 24.705723,
+ "title_vector_score": 27.175777,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.846138,
+ "matched_keywords": [
+ {
+ "keyword": "Plant Pathogenesis",
+ "score": 0.9538455
+ },
+ {
+ "keyword": "Endophytic Fungi",
+ "score": 0.823663
+ }
+ ]
+ },
+ {
+ "query": "plant pathology",
+ "field": "Agricultural and Biological Sciences",
+ "rank": 2,
+ "topic_name": "Plant Pathogenic Bacteria Studies",
+ "total_score": 39.89509,
+ "lexical_score": 24.325587499999997,
+ "title_vector_score": 26.545788,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Plant Pathogenic Bacteria",
+ "score": 0.8834522
+ },
+ {
+ "keyword": "Phyllosphere Pathogens",
+ "score": 0.8139961
+ }
+ ]
+ },
+ {
+ "query": "plant pathology",
+ "field": "Agricultural and Biological Sciences",
+ "rank": 3,
+ "topic_name": "Plant Physiology and Cultivation Studies",
+ "total_score": 38.445675,
+ "lexical_score": 12.187908,
+ "title_vector_score": 26.257767,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Flowering",
+ "score": 0.8293514
+ }
+ ]
+ },
+ {
+ "query": "livestock breeding",
+ "field": "Agricultural and Biological Sciences",
+ "rank": 1,
+ "topic_name": "Genetic and phenotypic traits in livestock",
+ "total_score": 49.547867,
+ "lexical_score": 55.1522737,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.788393,
+ "matched_keywords": [
+ {
+ "keyword": "Animal Breeding",
+ "score": 0.9515357
+ },
+ {
+ "keyword": "Livestock Domestication",
+ "score": 0.9339354
+ }
+ ]
+ },
+ {
+ "query": "livestock breeding",
+ "field": "Agricultural and Biological Sciences",
+ "rank": 2,
+ "topic_name": "Agriculture and Biological Studies",
+ "total_score": 47.91575,
+ "lexical_score": 35.9635524,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.792826,
+ "matched_keywords": [
+ {
+ "keyword": "Livestock Breeding",
+ "score": 0.99171305
+ }
+ ]
+ },
+ {
+ "query": "livestock breeding",
+ "field": "Agricultural and Biological Sciences",
+ "rank": 3,
+ "topic_name": "Livestock Farming and Management",
+ "total_score": 47.421104,
+ "lexical_score": 36.327276,
+ "title_vector_score": 27.31141,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Livestock Production",
+ "score": 0.92769694
+ },
+ {
+ "keyword": "Beef Cattle",
+ "score": 0.83809257
+ }
+ ]
+ },
+ {
+ "query": "climate change mitigation",
+ "field": "Environmental Science",
+ "rank": 1,
+ "topic_name": "Climate Change and Sustainable Development",
+ "total_score": 72.05617,
+ "lexical_score": 52.0330637,
+ "title_vector_score": 27.63593,
+ "description_vector_score": 12.392035,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Climate Change",
+ "score": 0.93136096
+ },
+ {
+ "keyword": "Environmental Policy",
+ "score": 0.84467196
+ }
+ ]
+ },
+ {
+ "query": "climate change mitigation",
+ "field": "Environmental Science",
+ "rank": 2,
+ "topic_name": "Climate Change and Environmental Impact",
+ "total_score": 60.150436,
+ "lexical_score": 49.5296604,
+ "title_vector_score": 28.122232,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Climate Change",
+ "score": 0.93150115
+ },
+ {
+ "keyword": "Global Warming",
+ "score": 0.87748694
+ }
+ ]
+ },
+ {
+ "query": "climate change mitigation",
+ "field": "Environmental Science",
+ "rank": 3,
+ "topic_name": "Sustainability and Climate Change Governance",
+ "total_score": 58.874973,
+ "lexical_score": 50.74958149999999,
+ "title_vector_score": 26.846767,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Climate Change Adaptation",
+ "score": 0.9223981
+ },
+ {
+ "keyword": "Sustainability Transitions",
+ "score": 0.81632423
+ }
+ ]
+ },
+ {
+ "query": "renewable resource management",
+ "field": "Environmental Science",
+ "rank": 1,
+ "topic_name": "Power Systems and Renewable Energy",
+ "total_score": 57.540092,
+ "lexical_score": 31.003373500000002,
+ "title_vector_score": 26.043606,
+ "description_vector_score": 12.24667,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Renewable Energy",
+ "score": 0.91387296
+ }
+ ]
+ },
+ {
+ "query": "renewable resource management",
+ "field": "Environmental Science",
+ "rank": 2,
+ "topic_name": "Renewable energy and sustainable power systems",
+ "total_score": 56.717278,
+ "lexical_score": 28.8679193,
+ "title_vector_score": 26.800396,
+ "description_vector_score": 12.20776,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Renewable Energy Sources",
+ "score": 0.90328956
+ },
+ {
+ "keyword": "Biomass Utilization",
+ "score": 0.82685995
+ }
+ ]
+ },
+ {
+ "query": "renewable resource management",
+ "field": "Environmental Science",
+ "rank": 3,
+ "topic_name": "Renewable Energy and Sustainability",
+ "total_score": 48.427673,
+ "lexical_score": 33.2528924,
+ "title_vector_score": 27.343533,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Renewable Energy",
+ "score": 0.91400313
+ }
+ ]
+ },
+ {
+ "query": "air pollution monitoring",
+ "field": "Environmental Science",
+ "rank": 1,
+ "topic_name": "Air Quality Monitoring and Forecasting",
+ "total_score": 100.56191,
+ "lexical_score": 67.7668803,
+ "title_vector_score": 28.193865,
+ "description_vector_score": 13.103246,
+ "keywords_vector_score": 24.36881,
+ "matched_keywords": [
+ {
+ "keyword": "Air Quality Monitoring",
+ "score": 0.9747524
+ },
+ {
+ "keyword": "Environmental Monitoring",
+ "score": 0.92441607
+ }
+ ]
+ },
+ {
+ "query": "air pollution monitoring",
+ "field": "Environmental Science",
+ "rank": 2,
+ "topic_name": "Environmental and Industrial Safety",
+ "total_score": 49.349895,
+ "lexical_score": 41.267375,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.252964,
+ "matched_keywords": [
+ {
+ "keyword": "Air Pollution",
+ "score": 0.93011856
+ },
+ {
+ "keyword": "Environmental Risk Analysis",
+ "score": 0.831105
+ }
+ ]
+ },
+ {
+ "query": "air pollution monitoring",
+ "field": "Environmental Science",
+ "rank": 3,
+ "topic_name": "Environmental and Air Quality Management",
+ "total_score": 45.127693,
+ "lexical_score": 35.245582999999996,
+ "title_vector_score": 27.126568,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Air Quality Management",
+ "score": 0.9022186
+ }
+ ]
+ },
+ {
+ "query": "microplastics in oceans",
+ "field": "Environmental Science",
+ "rank": 1,
+ "topic_name": "Microplastics and Plastic Pollution",
+ "total_score": 85.798676,
+ "lexical_score": 51.16721636,
+ "title_vector_score": 25.955479,
+ "description_vector_score": 12.760284,
+ "keywords_vector_score": 21.916693,
+ "matched_keywords": [
+ {
+ "keyword": "Microplastics",
+ "score": 0.87666774
+ },
+ {
+ "keyword": "Marine Environment",
+ "score": 0.811028
+ }
+ ]
+ },
+ {
+ "query": "microplastics in oceans",
+ "field": "Environmental Science",
+ "rank": 2,
+ "topic_name": "Surfactants and Colloidal Systems",
+ "total_score": 36.94306,
+ "lexical_score": 0.0,
+ "title_vector_score": 24.767475,
+ "description_vector_score": 12.175588,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Surfactants",
+ "score": 0.8125391
+ }
+ ]
+ },
+ {
+ "query": "microplastics in oceans",
+ "field": "Environmental Science",
+ "rank": 3,
+ "topic_name": "Marine Sponges and Natural Products",
+ "total_score": 25.197083,
+ "lexical_score": 0.37231487,
+ "title_vector_score": 24.824768,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "deforestation rates",
+ "field": "Environmental Science",
+ "rank": 1,
+ "topic_name": "Conservation, Biodiversity, and Resource Management",
+ "total_score": 49.191746,
+ "lexical_score": 23.523704,
+ "title_vector_score": 0.0,
+ "description_vector_score": 12.484864,
+ "keywords_vector_score": 23.264074,
+ "matched_keywords": [
+ {
+ "keyword": "Tropical Deforestation",
+ "score": 0.930563
+ },
+ {
+ "keyword": "Global Forest Transition",
+ "score": 0.853497
+ }
+ ]
+ },
+ {
+ "query": "deforestation rates",
+ "field": "Environmental Science",
+ "rank": 2,
+ "topic_name": "Oil Palm Production and Sustainability",
+ "total_score": 38.78682,
+ "lexical_score": 22.2092619,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.948019,
+ "matched_keywords": [
+ {
+ "keyword": "Deforestation",
+ "score": 0.9579208
+ }
+ ]
+ },
+ {
+ "query": "deforestation rates",
+ "field": "Environmental Science",
+ "rank": 3,
+ "topic_name": "Forest ecology and management",
+ "total_score": 24.78545,
+ "lexical_score": 0.0,
+ "title_vector_score": 24.78545,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Forest Site Productivity",
+ "score": 0.8211057
+ },
+ {
+ "keyword": "Tropical Forests",
+ "score": 0.8179474
+ }
+ ]
+ },
+ {
+ "query": "waste management systems",
+ "field": "Environmental Science",
+ "rank": 1,
+ "topic_name": "Recycling and Waste Management Techniques",
+ "total_score": 79.92094,
+ "lexical_score": 55.271630800000004,
+ "title_vector_score": 27.99578,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.24835,
+ "matched_keywords": [
+ {
+ "keyword": "Waste Management",
+ "score": 0.969934
+ },
+ {
+ "keyword": "E-Waste",
+ "score": 0.85056186
+ }
+ ]
+ },
+ {
+ "query": "waste management systems",
+ "field": "Environmental Science",
+ "rank": 2,
+ "topic_name": "Waste Management and Recycling",
+ "total_score": 70.909325,
+ "lexical_score": 60.2795578,
+ "title_vector_score": 28.245571,
+ "description_vector_score": 12.349616,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Waste Management",
+ "score": 0.96975875
+ },
+ {
+ "keyword": "Household Waste",
+ "score": 0.86876225
+ }
+ ]
+ },
+ {
+ "query": "waste management systems",
+ "field": "Environmental Science",
+ "rank": 3,
+ "topic_name": "Waste Management and Environmental Impact",
+ "total_score": 55.507706,
+ "lexical_score": 55.438098000000004,
+ "title_vector_score": 27.830902,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Waste Management",
+ "score": 0.969738
+ }
+ ]
+ },
+ {
+ "query": "carbon footprint reduction",
+ "field": "Environmental Science",
+ "rank": 1,
+ "topic_name": "Environmental Impact and Sustainability",
+ "total_score": 76.97389,
+ "lexical_score": 31.7666327,
+ "title_vector_score": 26.601841,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.79526,
+ "matched_keywords": [
+ {
+ "keyword": "Carbon Footprint",
+ "score": 0.95181036
+ },
+ {
+ "keyword": "Greenhouse Gas Emissions",
+ "score": 0.8858094
+ }
+ ]
+ },
+ {
+ "query": "carbon footprint reduction",
+ "field": "Environmental Science",
+ "rank": 2,
+ "topic_name": "Conferences and Exhibitions Management",
+ "total_score": 46.76757,
+ "lexical_score": 38.4654915,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.80016,
+ "matched_keywords": [
+ {
+ "keyword": "Carbon Footprint",
+ "score": 0.95200634
+ },
+ {
+ "keyword": "Sustainability",
+ "score": 0.84582186
+ }
+ ]
+ },
+ {
+ "query": "carbon footprint reduction",
+ "field": "Environmental Science",
+ "rank": 3,
+ "topic_name": "Climate Change and Sustainable Development",
+ "total_score": 46.285965,
+ "lexical_score": 33.4763802,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.795574,
+ "matched_keywords": [
+ {
+ "keyword": "Carbon Footprint",
+ "score": 0.951823
+ },
+ {
+ "keyword": "Emissions Trading",
+ "score": 0.86681986
+ }
+ ]
+ },
+ {
+ "query": "biodiversity loss",
+ "field": "Environmental Science",
+ "rank": 1,
+ "topic_name": "Ecology and biodiversity studies",
+ "total_score": 47.83123,
+ "lexical_score": 32.477825,
+ "title_vector_score": 27.271942,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Biodiversity",
+ "score": 0.9236903
+ },
+ {
+ "keyword": "Habitat Restoration",
+ "score": 0.8175373
+ }
+ ]
+ },
+ {
+ "query": "biodiversity loss",
+ "field": "Environmental Science",
+ "rank": 2,
+ "topic_name": "Conservation, Biodiversity, and Resource Management",
+ "total_score": 45.729748,
+ "lexical_score": 29.889650500000002,
+ "title_vector_score": 26.959118,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Biodiversity Conservation",
+ "score": 0.92893577
+ }
+ ]
+ },
+ {
+ "query": "biodiversity loss",
+ "field": "Environmental Science",
+ "rank": 3,
+ "topic_name": "Aquatic Ecosystems and Biodiversity",
+ "total_score": 45.493477,
+ "lexical_score": 48.0904558,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.934185,
+ "matched_keywords": [
+ {
+ "keyword": "Biodiversity Loss",
+ "score": 0.9973674
+ },
+ {
+ "keyword": "Wetland Conservation",
+ "score": 0.81217957
+ }
+ ]
+ },
+ {
+ "query": "global warming impacts",
+ "field": "Environmental Science",
+ "rank": 1,
+ "topic_name": "Climate Change and Health Impacts",
+ "total_score": 56.669254,
+ "lexical_score": 32.841727,
+ "title_vector_score": 26.881592,
+ "description_vector_score": 12.285168,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Global Warming",
+ "score": 0.9636922
+ },
+ {
+ "keyword": "Climate Change",
+ "score": 0.9317653
+ }
+ ]
+ },
+ {
+ "query": "global warming impacts",
+ "field": "Environmental Science",
+ "rank": 2,
+ "topic_name": "Climate Change and Environmental Impact",
+ "total_score": 44.46255,
+ "lexical_score": 19.7803447,
+ "title_vector_score": 28.384537,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Global Warming",
+ "score": 0.96371436
+ },
+ {
+ "keyword": "Climate Change",
+ "score": 0.9318719
+ }
+ ]
+ },
+ {
+ "query": "global warming impacts",
+ "field": "Environmental Science",
+ "rank": 3,
+ "topic_name": "Hydrology and Drought Analysis",
+ "total_score": 43.299522,
+ "lexical_score": 31.0907313,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.0956,
+ "matched_keywords": [
+ {
+ "keyword": "Global Warming",
+ "score": 0.96382403
+ },
+ {
+ "keyword": "Climate Change",
+ "score": 0.9319253
+ }
+ ]
+ },
+ {
+ "query": "ecosystem restoration",
+ "field": "Environmental Science",
+ "rank": 1,
+ "topic_name": "Seedling growth and survival studies",
+ "total_score": 56.069626,
+ "lexical_score": 26.1330485,
+ "title_vector_score": 0.0,
+ "description_vector_score": 12.281248,
+ "keywords_vector_score": 23.726833,
+ "matched_keywords": [
+ {
+ "keyword": "Ecosystem Recovery",
+ "score": 0.9490733
+ },
+ {
+ "keyword": "Forest Restoration",
+ "score": 0.91806245
+ }
+ ]
+ },
+ {
+ "query": "ecosystem restoration",
+ "field": "Environmental Science",
+ "rank": 2,
+ "topic_name": "Animal Ecology and Behavior Studies",
+ "total_score": 44.175377,
+ "lexical_score": 19.261449499999998,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.913925,
+ "matched_keywords": [
+ {
+ "keyword": "Ecosystem Restoration",
+ "score": 0.996557
+ },
+ {
+ "keyword": "Conservation Biology",
+ "score": 0.84311175
+ }
+ ]
+ },
+ {
+ "query": "ecosystem restoration",
+ "field": "Environmental Science",
+ "rank": 3,
+ "topic_name": "Environmental Philosophy and Ethics",
+ "total_score": 36.668365,
+ "lexical_score": 19.9120774,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.50906,
+ "matched_keywords": [
+ {
+ "keyword": "Restoration Ecology",
+ "score": 0.9803624
+ },
+ {
+ "keyword": "Biodiversity Management",
+ "score": 0.8474417
+ }
+ ]
+ },
+ {
+ "query": "water quality analysis",
+ "field": "Environmental Science",
+ "rank": 1,
+ "topic_name": "Water Quality Monitoring and Analysis",
+ "total_score": 79.488884,
+ "lexical_score": 61.7766112,
+ "title_vector_score": 29.346542,
+ "description_vector_score": 12.698068,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Water Quality",
+ "score": 0.9774976
+ },
+ {
+ "keyword": "Wastewater",
+ "score": 0.86489487
+ }
+ ]
+ },
+ {
+ "query": "water quality analysis",
+ "field": "Environmental Science",
+ "rank": 2,
+ "topic_name": "Water Quality and Pollution Assessment",
+ "total_score": 70.169495,
+ "lexical_score": 62.779350099999995,
+ "title_vector_score": 28.988886,
+ "description_vector_score": 12.848017,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Water Quality Index",
+ "score": 0.97383547
+ },
+ {
+ "keyword": "Groundwater Quality Assessment",
+ "score": 0.93458676
+ }
+ ]
+ },
+ {
+ "query": "water quality analysis",
+ "field": "Environmental Science",
+ "rank": 3,
+ "topic_name": "Water Quality and Resources Studies",
+ "total_score": 56.922546,
+ "lexical_score": 62.530158699999994,
+ "title_vector_score": 28.589952,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Water Quality",
+ "score": 0.9774833
+ },
+ {
+ "keyword": "Surface Water",
+ "score": 0.8322127
+ }
+ ]
+ },
+ {
+ "query": "urban sustainability",
+ "field": "Environmental Science",
+ "rank": 1,
+ "topic_name": "Sustainable Urban and Rural Development",
+ "total_score": 66.9206,
+ "lexical_score": 35.0356325,
+ "title_vector_score": 27.435629,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.954218,
+ "matched_keywords": [
+ {
+ "keyword": "Urban Sustainability",
+ "score": 0.9981687
+ },
+ {
+ "keyword": "Sustainable Development",
+ "score": 0.85871506
+ }
+ ]
+ },
+ {
+ "query": "urban sustainability",
+ "field": "Environmental Science",
+ "rank": 2,
+ "topic_name": "Urban Agriculture and Sustainability",
+ "total_score": 58.330086,
+ "lexical_score": 52.91098409999999,
+ "title_vector_score": 27.2766,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Sustainability",
+ "score": 0.89485407
+ },
+ {
+ "keyword": "Urban Agriculture",
+ "score": 0.8158529
+ }
+ ]
+ },
+ {
+ "query": "urban sustainability",
+ "field": "Environmental Science",
+ "rank": 3,
+ "topic_name": "Urban Arborization and Environmental Studies",
+ "total_score": 42.411095,
+ "lexical_score": 30.0356033,
+ "title_vector_score": 27.88034,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Sustainable Urban Planning",
+ "score": 0.9426627
+ },
+ {
+ "keyword": "Environmental Quality",
+ "score": 0.8399167
+ }
+ ]
+ },
+ {
+ "query": "environmental impact assessment",
+ "field": "Environmental Science",
+ "rank": 1,
+ "topic_name": "Environmental and Social Impact Assessments",
+ "total_score": 93.50203,
+ "lexical_score": 60.266536,
+ "title_vector_score": 29.007704,
+ "description_vector_score": 12.390539,
+ "keywords_vector_score": 24.950588,
+ "matched_keywords": [
+ {
+ "keyword": "Environmental Impact Assessment",
+ "score": 0.9980235
+ },
+ {
+ "keyword": "Strategic Environmental Assessment",
+ "score": 0.91224885
+ }
+ ]
+ },
+ {
+ "query": "environmental impact assessment",
+ "field": "Environmental Science",
+ "rank": 2,
+ "topic_name": "Environmental Impact and Sustainability",
+ "total_score": 67.96459,
+ "lexical_score": 53.2012435,
+ "title_vector_score": 27.872343,
+ "description_vector_score": 12.461053,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Environmental Impact",
+ "score": 0.9602573
+ },
+ {
+ "keyword": "Sustainability Assessment",
+ "score": 0.88465405
+ }
+ ]
+ },
+ {
+ "query": "environmental impact assessment",
+ "field": "Environmental Science",
+ "rank": 3,
+ "topic_name": "Chemical Analysis and Environmental Impact",
+ "total_score": 52.126022,
+ "lexical_score": 35.328896900000004,
+ "title_vector_score": 26.898737,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Environmental",
+ "score": 0.8932824
+ }
+ ]
+ },
+ {
+ "query": "glacier melting",
+ "field": "Environmental Science",
+ "rank": 1,
+ "topic_name": "Cryospheric studies and observations",
+ "total_score": 40.44541,
+ "lexical_score": 28.274067000000002,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.542667,
+ "matched_keywords": [
+ {
+ "keyword": "Glacier",
+ "score": 0.94170666
+ },
+ {
+ "keyword": "Ice Sheet",
+ "score": 0.84324646
+ }
+ ]
+ },
+ {
+ "query": "glacier melting",
+ "field": "Environmental Science",
+ "rank": 2,
+ "topic_name": "Arctic and Antarctic ice dynamics",
+ "total_score": 25.453884,
+ "lexical_score": 0.0,
+ "title_vector_score": 25.453884,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Sea Ice",
+ "score": 0.8185482
+ }
+ ]
+ },
+ {
+ "query": "glacier melting",
+ "field": "Environmental Science",
+ "rank": 3,
+ "topic_name": "Polar Research and Ecology",
+ "total_score": 23.569042,
+ "lexical_score": 0.0,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.569042,
+ "matched_keywords": [
+ {
+ "keyword": "glaciers",
+ "score": 0.94276166
+ },
+ {
+ "keyword": "permafrost",
+ "score": 0.8140862
+ }
+ ]
+ },
+ {
+ "query": "conservation biology",
+ "field": "Environmental Science",
+ "rank": 1,
+ "topic_name": "Conservation, Ecology, Wildlife Education",
+ "total_score": 46.195866,
+ "lexical_score": 45.5199705,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.97313,
+ "matched_keywords": [
+ {
+ "keyword": "Conservation Biology",
+ "score": 0.9989252
+ },
+ {
+ "keyword": "Biodiversity Conservation",
+ "score": 0.93557334
+ }
+ ]
+ },
+ {
+ "query": "conservation biology",
+ "field": "Environmental Science",
+ "rank": 2,
+ "topic_name": "Ecology and Conservation Studies",
+ "total_score": 45.452854,
+ "lexical_score": 29.8970106,
+ "title_vector_score": 27.82033,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Conservation",
+ "score": 0.9173713
+ },
+ {
+ "keyword": "Ecological Characteristics",
+ "score": 0.8465133
+ }
+ ]
+ },
+ {
+ "query": "conservation biology",
+ "field": "Environmental Science",
+ "rank": 3,
+ "topic_name": "Conservation Techniques and Studies",
+ "total_score": 45.236095,
+ "lexical_score": 29.08559,
+ "title_vector_score": 27.60357,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Conservation",
+ "score": 0.9173713
+ }
+ ]
+ },
+ {
+ "query": "greenhouse gas emissions",
+ "field": "Environmental Science",
+ "rank": 1,
+ "topic_name": "Scientific Research and Studies",
+ "total_score": 53.245556,
+ "lexical_score": 42.4278481,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.984573,
+ "matched_keywords": [
+ {
+ "keyword": "Greenhouse Gas Emissions",
+ "score": 0.999383
+ },
+ {
+ "keyword": "Global Warming",
+ "score": 0.8595407
+ }
+ ]
+ },
+ {
+ "query": "greenhouse gas emissions",
+ "field": "Environmental Science",
+ "rank": 2,
+ "topic_name": "Environmental Impact and Sustainability",
+ "total_score": 53.245552,
+ "lexical_score": 44.102153799999996,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.984568,
+ "matched_keywords": [
+ {
+ "keyword": "Greenhouse Gas Emissions",
+ "score": 0.99938273
+ },
+ {
+ "keyword": "Carbon Footprint",
+ "score": 0.92883086
+ }
+ ]
+ },
+ {
+ "query": "greenhouse gas emissions",
+ "field": "Environmental Science",
+ "rank": 3,
+ "topic_name": "Photovoltaic Systems and Sustainability",
+ "total_score": 52.703606,
+ "lexical_score": 43.2702528,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.984568,
+ "matched_keywords": [
+ {
+ "keyword": "Greenhouse Gas Emissions",
+ "score": 0.99938273
+ }
+ ]
+ },
+ {
+ "query": "soil erosion control",
+ "field": "Environmental Science",
+ "rank": 1,
+ "topic_name": "Soil erosion and sediment transport",
+ "total_score": 61.658,
+ "lexical_score": 79.95788870000001,
+ "title_vector_score": 25.902851,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Soil Erosion",
+ "score": 0.91818404
+ },
+ {
+ "keyword": "Soil Degradation",
+ "score": 0.86560893
+ }
+ ]
+ },
+ {
+ "query": "soil erosion control",
+ "field": "Environmental Science",
+ "rank": 2,
+ "topic_name": "Water and Land Management",
+ "total_score": 50.276764,
+ "lexical_score": 40.539634799999995,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.443413,
+ "matched_keywords": [
+ {
+ "keyword": "Erosion Control",
+ "score": 0.9377365
+ },
+ {
+ "keyword": "Soil Health",
+ "score": 0.83665085
+ }
+ ]
+ },
+ {
+ "query": "soil erosion control",
+ "field": "Environmental Science",
+ "rank": 3,
+ "topic_name": "Environmental and Agricultural Sciences",
+ "total_score": 50.276764,
+ "lexical_score": 40.3127168,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.443413,
+ "matched_keywords": [
+ {
+ "keyword": "Erosion Control",
+ "score": 0.9377365
+ },
+ {
+ "keyword": "Soil Moisture",
+ "score": 0.8402877
+ }
+ ]
+ },
+ {
+ "query": "renewable energy transition",
+ "field": "Environmental Science",
+ "rank": 1,
+ "topic_name": "Power Systems and Renewable Energy",
+ "total_score": 73.29265,
+ "lexical_score": 57.800087500000004,
+ "title_vector_score": 27.877615,
+ "description_vector_score": 12.344145,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Renewable Energy",
+ "score": 0.9652972
+ },
+ {
+ "keyword": "Energy Storage",
+ "score": 0.8110645
+ }
+ ]
+ },
+ {
+ "query": "renewable energy transition",
+ "field": "Environmental Science",
+ "rank": 2,
+ "topic_name": "Renewable energy and sustainable power systems",
+ "total_score": 71.9865,
+ "lexical_score": 59.8760876,
+ "title_vector_score": 28.53816,
+ "description_vector_score": 13.024339,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Renewable Energy Sources",
+ "score": 0.95669603
+ },
+ {
+ "keyword": "Energy Efficiency",
+ "score": 0.8560438
+ }
+ ]
+ },
+ {
+ "query": "renewable energy transition",
+ "field": "Environmental Science",
+ "rank": 3,
+ "topic_name": "Renewable Energy and Sustainability",
+ "total_score": 64.704346,
+ "lexical_score": 62.8159272,
+ "title_vector_score": 28.48212,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Renewable Energy",
+ "score": 0.96541023
+ },
+ {
+ "keyword": "Energy Efficiency",
+ "score": 0.8567095
+ }
+ ]
+ },
+ {
+ "query": "climate adaptation strategies",
+ "field": "Environmental Science",
+ "rank": 1,
+ "topic_name": "demographic modeling and climate adaptation",
+ "total_score": 61.740383,
+ "lexical_score": 43.687800499999994,
+ "title_vector_score": 27.040043,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Climate Change",
+ "score": 0.9097464
+ }
+ ]
+ },
+ {
+ "query": "climate adaptation strategies",
+ "field": "Environmental Science",
+ "rank": 2,
+ "topic_name": "Climate Change, Adaptation, Migration",
+ "total_score": 50.40854,
+ "lexical_score": 64.9706221,
+ "title_vector_score": 0.0,
+ "description_vector_score": 12.40159,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Climate Change",
+ "score": 0.9097464
+ }
+ ]
+ },
+ {
+ "query": "climate adaptation strategies",
+ "field": "Environmental Science",
+ "rank": 3,
+ "topic_name": "Climate Change and Environmental Impact",
+ "total_score": 49.7754,
+ "lexical_score": 49.00480580000001,
+ "title_vector_score": 26.72277,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Climate Change",
+ "score": 0.90955424
+ },
+ {
+ "keyword": "Adaptation Strategies",
+ "score": 0.8539636
+ }
+ ]
+ },
+ {
+ "query": "acid rain causes",
+ "field": "Environmental Science",
+ "rank": 1,
+ "topic_name": "Ocean Acidification Effects and Responses",
+ "total_score": 24.366796,
+ "lexical_score": 0.0,
+ "title_vector_score": 24.366796,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "acid rain causes",
+ "field": "Environmental Science",
+ "rank": 2,
+ "topic_name": "Biochemical Acid Research Studies",
+ "total_score": 20.55929,
+ "lexical_score": 36.9578938,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "acid rain causes",
+ "field": "Environmental Science",
+ "rank": 3,
+ "topic_name": "Gout, Hyperuricemia, Uric Acid",
+ "total_score": 20.55929,
+ "lexical_score": 36.9194886,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "corporate strategy",
+ "field": "Business, Management and Accounting",
+ "rank": 1,
+ "topic_name": "Corporate Management and Leadership",
+ "total_score": 44.063377,
+ "lexical_score": 18.038483,
+ "title_vector_score": 26.024895,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "corporate strategy",
+ "field": "Business, Management and Accounting",
+ "rank": 2,
+ "topic_name": "Corporate Governance and Management",
+ "total_score": 44.039574,
+ "lexical_score": 18.038483,
+ "title_vector_score": 26.001091,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Strategic Marketing",
+ "score": 0.86245537
+ }
+ ]
+ },
+ {
+ "query": "corporate strategy",
+ "field": "Business, Management and Accounting",
+ "rank": 3,
+ "topic_name": "Globalization, Economics, and Policies",
+ "total_score": 43.789856,
+ "lexical_score": 23.2927027,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.885405,
+ "matched_keywords": [
+ {
+ "keyword": "Corporate Strategy",
+ "score": 0.99541616
+ },
+ {
+ "keyword": "Transnational Corporations",
+ "score": 0.82157636
+ }
+ ]
+ },
+ {
+ "query": "supply chain logistics",
+ "field": "Business, Management and Accounting",
+ "rank": 1,
+ "topic_name": "Sustainable Supply Chain Management",
+ "total_score": 68.44754,
+ "lexical_score": 77.239848,
+ "title_vector_score": 26.804108,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Sustainable Supply Chain Management",
+ "score": 0.89420104
+ },
+ {
+ "keyword": "Supply Chain Network Design",
+ "score": 0.87947655
+ }
+ ]
+ },
+ {
+ "query": "supply chain logistics",
+ "field": "Business, Management and Accounting",
+ "rank": 2,
+ "topic_name": "Supply Chain and Inventory Management",
+ "total_score": 65.87053,
+ "lexical_score": 63.519496000000004,
+ "title_vector_score": 27.850084,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Supply Chain Coordination",
+ "score": 0.9164002
+ }
+ ]
+ },
+ {
+ "query": "supply chain logistics",
+ "field": "Business, Management and Accounting",
+ "rank": 3,
+ "topic_name": "activated carbon and charcoal",
+ "total_score": 54.410095,
+ "lexical_score": 41.9152975,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.53769,
+ "matched_keywords": [
+ {
+ "keyword": "Supply Chain Logistics",
+ "score": 0.98150754
+ }
+ ]
+ },
+ {
+ "query": "financial auditing",
+ "field": "Business, Management and Accounting",
+ "rank": 1,
+ "topic_name": "Auditing, Earnings Management, Governance",
+ "total_score": 49.80967,
+ "lexical_score": 39.349220700000004,
+ "title_vector_score": 26.248356,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Financial Reporting",
+ "score": 0.90646553
+ },
+ {
+ "keyword": "Audit Committee",
+ "score": 0.87431574
+ }
+ ]
+ },
+ {
+ "query": "financial auditing",
+ "field": "Business, Management and Accounting",
+ "rank": 2,
+ "topic_name": "Accounting and Financial Management",
+ "total_score": 43.66591,
+ "lexical_score": 31.549735599999998,
+ "title_vector_score": 27.401068,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "International Financial Reporting Standards",
+ "score": 0.87186193
+ },
+ {
+ "keyword": "Financial Information",
+ "score": 0.84242344
+ }
+ ]
+ },
+ {
+ "query": "financial auditing",
+ "field": "Business, Management and Accounting",
+ "rank": 3,
+ "topic_name": "Accounting Theory and Financial Reporting",
+ "total_score": 41.78616,
+ "lexical_score": 30.119734,
+ "title_vector_score": 26.93636,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Financial Reporting",
+ "score": 0.906605
+ },
+ {
+ "keyword": "International Accounting Standards",
+ "score": 0.85391545
+ }
+ ]
+ },
+ {
+ "query": "marketing analytics",
+ "field": "Business, Management and Accounting",
+ "rank": 1,
+ "topic_name": "Digital Marketing and Social Media",
+ "total_score": 71.38304,
+ "lexical_score": 52.42081340000001,
+ "title_vector_score": 24.541355,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.722279,
+ "matched_keywords": [
+ {
+ "keyword": "Marketing Analytics",
+ "score": 0.9888911
+ },
+ {
+ "keyword": "Influencer Marketing",
+ "score": 0.85511947
+ }
+ ]
+ },
+ {
+ "query": "marketing analytics",
+ "field": "Business, Management and Accounting",
+ "rank": 2,
+ "topic_name": "Marketing and Advertising Strategies",
+ "total_score": 47.15386,
+ "lexical_score": 43.167637,
+ "title_vector_score": 26.06972,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Marketing Communications",
+ "score": 0.8542206
+ },
+ {
+ "keyword": "Integrated Marketing Communication",
+ "score": 0.85351205
+ }
+ ]
+ },
+ {
+ "query": "marketing analytics",
+ "field": "Business, Management and Accounting",
+ "rank": 3,
+ "topic_name": "Customer churn and segmentation",
+ "total_score": 31.678488,
+ "lexical_score": 14.391234,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.152508,
+ "matched_keywords": [
+ {
+ "keyword": "Marketing Strategy",
+ "score": 0.8861003
+ }
+ ]
+ },
+ {
+ "query": "human resource management",
+ "field": "Business, Management and Accounting",
+ "rank": 1,
+ "topic_name": "Human Resource and Talent Management",
+ "total_score": 68.787476,
+ "lexical_score": 48.720533399999994,
+ "title_vector_score": 27.402607,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "HR",
+ "score": 0.8364699
+ }
+ ]
+ },
+ {
+ "query": "human resource management",
+ "field": "Business, Management and Accounting",
+ "rank": 2,
+ "topic_name": "Human Resource Development and Performance Evaluation",
+ "total_score": 57.24567,
+ "lexical_score": 43.602118,
+ "title_vector_score": 27.744091,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Human Resource Development",
+ "score": 0.9223089
+ },
+ {
+ "keyword": "Employee Development",
+ "score": 0.8360455
+ }
+ ]
+ },
+ {
+ "query": "human resource management",
+ "field": "Business, Management and Accounting",
+ "rank": 3,
+ "topic_name": "Education, Management, Technology, Human Resources",
+ "total_score": 48.348686,
+ "lexical_score": 50.763418900000005,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.964941,
+ "matched_keywords": [
+ {
+ "keyword": "Human Resource Management",
+ "score": 0.9985976
+ }
+ ]
+ },
+ {
+ "query": "organizational behavior",
+ "field": "Business, Management and Accounting",
+ "rank": 1,
+ "topic_name": "Job Satisfaction and Organizational Behavior",
+ "total_score": 54.2976,
+ "lexical_score": 51.3873294,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.881298,
+ "matched_keywords": [
+ {
+ "keyword": "Organizational Behavior",
+ "score": 0.9952519
+ }
+ ]
+ },
+ {
+ "query": "organizational behavior",
+ "field": "Business, Management and Accounting",
+ "rank": 2,
+ "topic_name": "Management and Organizational Practices",
+ "total_score": 45.122536,
+ "lexical_score": 31.472358,
+ "title_vector_score": 27.49001,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Organizational Culture",
+ "score": 0.9260416
+ }
+ ]
+ },
+ {
+ "query": "organizational behavior",
+ "field": "Business, Management and Accounting",
+ "rank": 3,
+ "topic_name": "Organizational Strategy and Culture",
+ "total_score": 44.455414,
+ "lexical_score": 28.9341713,
+ "title_vector_score": 26.822891,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Organizational Performance",
+ "score": 0.9215872
+ }
+ ]
+ },
+ {
+ "query": "consumer behavior trends",
+ "field": "Business, Management and Accounting",
+ "rank": 1,
+ "topic_name": "Consumer Retail Behavior Studies",
+ "total_score": 73.779106,
+ "lexical_score": 57.778047,
+ "title_vector_score": 28.03314,
+ "description_vector_score": 12.654315,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Consumer Shopping Behavior",
+ "score": 0.9217756
+ },
+ {
+ "keyword": "Compulsive Buying",
+ "score": 0.82629204
+ }
+ ]
+ },
+ {
+ "query": "consumer behavior trends",
+ "field": "Business, Management and Accounting",
+ "rank": 2,
+ "topic_name": "Consumer Behavior and Market Dynamics",
+ "total_score": 58.192554,
+ "lexical_score": 59.88602780000001,
+ "title_vector_score": 27.979881,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Consumer Behavior",
+ "score": 0.9461801
+ }
+ ]
+ },
+ {
+ "query": "consumer behavior trends",
+ "field": "Business, Management and Accounting",
+ "rank": 3,
+ "topic_name": "Consumer Perception and Purchasing Behavior",
+ "total_score": 57.600903,
+ "lexical_score": 57.1016909,
+ "title_vector_score": 27.38823,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Consumer Behavior",
+ "score": 0.9464841
+ },
+ {
+ "keyword": "Purchase Behavior",
+ "score": 0.8284378
+ }
+ ]
+ },
+ {
+ "query": "risk assessment framework",
+ "field": "Business, Management and Accounting",
+ "rank": 1,
+ "topic_name": "Risk and Safety Analysis",
+ "total_score": 57.13472,
+ "lexical_score": 35.8365553,
+ "title_vector_score": 27.249527,
+ "description_vector_score": 12.612123,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Quantitative Risk Assessment",
+ "score": 0.938889
+ },
+ {
+ "keyword": "Dynamic Safety Analysis",
+ "score": 0.8380077
+ }
+ ]
+ },
+ {
+ "query": "risk assessment framework",
+ "field": "Business, Management and Accounting",
+ "rank": 2,
+ "topic_name": "Risk Perception and Management",
+ "total_score": 43.964798,
+ "lexical_score": 31.204098000000002,
+ "title_vector_score": 26.691727,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Risk Perception",
+ "score": 0.8867812
+ },
+ {
+ "keyword": "Social Amplification of Risk",
+ "score": 0.83034205
+ }
+ ]
+ },
+ {
+ "query": "risk assessment framework",
+ "field": "Business, Management and Accounting",
+ "rank": 3,
+ "topic_name": "Safety and Risk Management",
+ "total_score": 43.803802,
+ "lexical_score": 36.6784617,
+ "title_vector_score": 26.530731,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Risk Assessment",
+ "score": 0.9689474
+ }
+ ]
+ },
+ {
+ "query": "entrepreneurship ecosystems",
+ "field": "Business, Management and Accounting",
+ "rank": 1,
+ "topic_name": "Entrepreneurship Studies and Influences",
+ "total_score": 52.259575,
+ "lexical_score": 48.502587,
+ "title_vector_score": 27.093351,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Sustainable Entrepreneurship",
+ "score": 0.9044461
+ },
+ {
+ "keyword": "Entrepreneurial Orientation",
+ "score": 0.88765264
+ }
+ ]
+ },
+ {
+ "query": "entrepreneurship ecosystems",
+ "field": "Business, Management and Accounting",
+ "rank": 2,
+ "topic_name": "Business, Innovation, and Economy",
+ "total_score": 36.12197,
+ "lexical_score": 14.923962999999999,
+ "title_vector_score": 25.872353,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Innovation Ecosystems",
+ "score": 0.89131093
+ },
+ {
+ "keyword": "Small and Medium Enterprises",
+ "score": 0.8102565
+ }
+ ]
+ },
+ {
+ "query": "entrepreneurship ecosystems",
+ "field": "Business, Management and Accounting",
+ "rank": 3,
+ "topic_name": "Sustainability and Innovation in Business",
+ "total_score": 35.692997,
+ "lexical_score": 10.34839,
+ "title_vector_score": 25.344608,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Entrepreneurship",
+ "score": 0.92964697
+ }
+ ]
+ },
+ {
+ "query": "project management methodologies",
+ "field": "Business, Management and Accounting",
+ "rank": 1,
+ "topic_name": "Construction Project Management and Performance",
+ "total_score": 69.926254,
+ "lexical_score": 63.621262900000005,
+ "title_vector_score": 27.013908,
+ "description_vector_score": 13.049373,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Construction Projects",
+ "score": 0.84941936
+ },
+ {
+ "keyword": "Project Success",
+ "score": 0.84580564
+ }
+ ]
+ },
+ {
+ "query": "project management methodologies",
+ "field": "Business, Management and Accounting",
+ "rank": 2,
+ "topic_name": "Problem and Project Based Learning",
+ "total_score": 45.310055,
+ "lexical_score": 36.738156200000006,
+ "title_vector_score": 24.763735,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Project-Based Learning",
+ "score": 0.82565665
+ }
+ ]
+ },
+ {
+ "query": "project management methodologies",
+ "field": "Business, Management and Accounting",
+ "rank": 3,
+ "topic_name": "Economic and Technological Systems Analysis",
+ "total_score": 42.966545,
+ "lexical_score": 27.6026795,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.486399,
+ "matched_keywords": [
+ {
+ "keyword": "Project Management",
+ "score": 0.97945595
+ }
+ ]
+ },
+ {
+ "query": "accounting principles",
+ "field": "Business, Management and Accounting",
+ "rank": 1,
+ "topic_name": "Accounting and Financial Management",
+ "total_score": 48.913208,
+ "lexical_score": 48.968927,
+ "title_vector_score": 27.1986,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Ethics in Accounting",
+ "score": 0.88144207
+ },
+ {
+ "keyword": "Education in Accounting",
+ "score": 0.8711021
+ }
+ ]
+ },
+ {
+ "query": "accounting principles",
+ "field": "Business, Management and Accounting",
+ "rank": 2,
+ "topic_name": "Accounting and Organizational Management",
+ "total_score": 47.8668,
+ "lexical_score": 37.3799876,
+ "title_vector_score": 26.15219,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Accounting Change",
+ "score": 0.88157773
+ }
+ ]
+ },
+ {
+ "query": "accounting principles",
+ "field": "Business, Management and Accounting",
+ "rank": 3,
+ "topic_name": "Accounting Theory and Financial Reporting",
+ "total_score": 47.705254,
+ "lexical_score": 43.902978000000004,
+ "title_vector_score": 27.879818,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "International Accounting Standards",
+ "score": 0.88468933
+ },
+ {
+ "keyword": "Management Accounting",
+ "score": 0.873894
+ }
+ ]
+ },
+ {
+ "query": "brand equity",
+ "field": "Business, Management and Accounting",
+ "rank": 1,
+ "topic_name": "Consumer Behavior in Brand Consumption and Identification",
+ "total_score": 56.504288,
+ "lexical_score": 61.52655,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.836147,
+ "matched_keywords": [
+ {
+ "keyword": "Brand Equity",
+ "score": 0.9934459
+ },
+ {
+ "keyword": "Brand Trust",
+ "score": 0.86934185
+ }
+ ]
+ },
+ {
+ "query": "brand equity",
+ "field": "Business, Management and Accounting",
+ "rank": 2,
+ "topic_name": "Marketing and Advertising Strategies",
+ "total_score": 52.15473,
+ "lexical_score": 41.051882400000004,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.836302,
+ "matched_keywords": [
+ {
+ "keyword": "Brand Equity",
+ "score": 0.9934521
+ }
+ ]
+ },
+ {
+ "query": "brand equity",
+ "field": "Business, Management and Accounting",
+ "rank": 3,
+ "topic_name": "Management, Economics, and Public Policy",
+ "total_score": 47.06294,
+ "lexical_score": 34.8694327,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.836147,
+ "matched_keywords": [
+ {
+ "keyword": "Brand Equity",
+ "score": 0.9934459
+ }
+ ]
+ },
+ {
+ "query": "leadership styles",
+ "field": "Business, Management and Accounting",
+ "rank": 1,
+ "topic_name": "Leadership, Behavior, and Decision-Making Studies",
+ "total_score": 47.853065,
+ "lexical_score": 47.51969869999999,
+ "title_vector_score": 27.590282,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Leadership Styles",
+ "score": 0.9971826
+ }
+ ]
+ },
+ {
+ "query": "leadership styles",
+ "field": "Business, Management and Accounting",
+ "rank": 2,
+ "topic_name": "Interdisciplinary Studies and Sociocultural Dynamics",
+ "total_score": 46.05396,
+ "lexical_score": 31.3185743,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.931633,
+ "matched_keywords": [
+ {
+ "keyword": "Leadership Styles",
+ "score": 0.99726534
+ }
+ ]
+ },
+ {
+ "query": "leadership styles",
+ "field": "Business, Management and Accounting",
+ "rank": 3,
+ "topic_name": "Healthcare during COVID-19 Pandemic",
+ "total_score": 45.61526,
+ "lexical_score": 31.9841308,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.931633,
+ "matched_keywords": [
+ {
+ "keyword": "Leadership Styles",
+ "score": 0.99726534
+ }
+ ]
+ },
+ {
+ "query": "business ethics",
+ "field": "Business, Management and Accounting",
+ "rank": 1,
+ "topic_name": "Ethics in Business and Education",
+ "total_score": 95.91432,
+ "lexical_score": 59.446872299999995,
+ "title_vector_score": 27.931652,
+ "description_vector_score": 12.672108,
+ "keywords_vector_score": 24.98491,
+ "matched_keywords": [
+ {
+ "keyword": "Business Ethics",
+ "score": 0.9993963
+ },
+ {
+ "keyword": "Corporate Ethics",
+ "score": 0.9520819
+ }
+ ]
+ },
+ {
+ "query": "business ethics",
+ "field": "Business, Management and Accounting",
+ "rank": 2,
+ "topic_name": "Business Law and Ethics",
+ "total_score": 62.26755,
+ "lexical_score": 37.2979245,
+ "title_vector_score": 29.052158,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Ethical Implications",
+ "score": 0.8893049
+ },
+ {
+ "keyword": "Corporate Social Responsibility",
+ "score": 0.8223791
+ }
+ ]
+ },
+ {
+ "query": "business ethics",
+ "field": "Business, Management and Accounting",
+ "rank": 3,
+ "topic_name": "Corporate Social Responsibility and Sustainability",
+ "total_score": 41.70846,
+ "lexical_score": 25.100044999999998,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.98491,
+ "matched_keywords": [
+ {
+ "keyword": "Business Ethics",
+ "score": 0.9993963
+ },
+ {
+ "keyword": "Corporate Social Responsibility",
+ "score": 0.8219874
+ }
+ ]
+ },
+ {
+ "query": "digital transformation strategy",
+ "field": "Business, Management and Accounting",
+ "rank": 1,
+ "topic_name": "Digital Transformation in Industry",
+ "total_score": 75.2932,
+ "lexical_score": 47.744735799999994,
+ "title_vector_score": 28.316431,
+ "description_vector_score": 12.207134,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "digital transformation strategy",
+ "field": "Business, Management and Accounting",
+ "rank": 2,
+ "topic_name": "Digital Economy and Transformation",
+ "total_score": 62.317318,
+ "lexical_score": 55.593357,
+ "title_vector_score": 27.547688,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Digital Transformation",
+ "score": 0.96447945
+ }
+ ]
+ },
+ {
+ "query": "digital transformation strategy",
+ "field": "Business, Management and Accounting",
+ "rank": 3,
+ "topic_name": "Economic Development and Digital Transformation",
+ "total_score": 58.798058,
+ "lexical_score": 52.5323987,
+ "title_vector_score": 27.05339,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Digital Transformation",
+ "score": 0.9643941
+ }
+ ]
+ },
+ {
+ "query": "operations management",
+ "field": "Business, Management and Accounting",
+ "rank": 1,
+ "topic_name": "Operations Management Techniques",
+ "total_score": 91.42699,
+ "lexical_score": 62.71620370000001,
+ "title_vector_score": 29.189987,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.9148,
+ "matched_keywords": [
+ {
+ "keyword": "Operations Management",
+ "score": 0.99659204
+ }
+ ]
+ },
+ {
+ "query": "operations management",
+ "field": "Business, Management and Accounting",
+ "rank": 2,
+ "topic_name": "Management and Organizational Practices",
+ "total_score": 37.22095,
+ "lexical_score": 20.0791197,
+ "title_vector_score": 27.01651,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Strategic Management",
+ "score": 0.8516817
+ },
+ {
+ "keyword": "Business Strategy",
+ "score": 0.816808
+ }
+ ]
+ },
+ {
+ "query": "operations management",
+ "field": "Business, Management and Accounting",
+ "rank": 3,
+ "topic_name": "Management Theory and Practice",
+ "total_score": 36.543026,
+ "lexical_score": 19.2899722,
+ "title_vector_score": 26.338585,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Organizational Behavior",
+ "score": 0.81875515
+ }
+ ]
+ },
+ {
+ "query": "corporate governance",
+ "field": "Business, Management and Accounting",
+ "rank": 1,
+ "topic_name": "Corporate Governance and Financial Management",
+ "total_score": 70.81609,
+ "lexical_score": 54.146588,
+ "title_vector_score": 28.194908,
+ "description_vector_score": 12.1693325,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Corporate Governance",
+ "score": 0.9982405
+ }
+ ]
+ },
+ {
+ "query": "corporate governance",
+ "field": "Business, Management and Accounting",
+ "rank": 2,
+ "topic_name": "Corporate Governance and Management",
+ "total_score": 62.865974,
+ "lexical_score": 33.353621,
+ "title_vector_score": 29.512352,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "corporate governance",
+ "field": "Business, Management and Accounting",
+ "rank": 3,
+ "topic_name": "Corporate Governance and Law",
+ "total_score": 62.210556,
+ "lexical_score": 59.7724213,
+ "title_vector_score": 28.856936,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Company Governance",
+ "score": 0.9834113
+ }
+ ]
+ },
+ {
+ "query": "market segmentation",
+ "field": "Business, Management and Accounting",
+ "rank": 1,
+ "topic_name": "Customer churn and segmentation",
+ "total_score": 50.347305,
+ "lexical_score": 41.1793093,
+ "title_vector_score": 26.785992,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Segmentation",
+ "score": 0.8332007
+ }
+ ]
+ },
+ {
+ "query": "market segmentation",
+ "field": "Business, Management and Accounting",
+ "rank": 2,
+ "topic_name": "Wine Industry and Tourism",
+ "total_score": 43.8402,
+ "lexical_score": 28.104346999999997,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.508583,
+ "matched_keywords": [
+ {
+ "keyword": "Market Segmentation",
+ "score": 0.98034334
+ }
+ ]
+ },
+ {
+ "query": "market segmentation",
+ "field": "Business, Management and Accounting",
+ "rank": 3,
+ "topic_name": "Marketing and Advertising Strategies",
+ "total_score": 30.07915,
+ "lexical_score": 11.5027262,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.509586,
+ "matched_keywords": [
+ {
+ "keyword": "Market Orientation",
+ "score": 0.9003835
+ }
+ ]
+ },
+ {
+ "query": "strategic planning",
+ "field": "Business, Management and Accounting",
+ "rank": 1,
+ "topic_name": "Strategic Planning and Analysis",
+ "total_score": 73.159256,
+ "lexical_score": 74.70437559999999,
+ "title_vector_score": 29.488249,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Strategic Planning",
+ "score": 0.9963534
+ },
+ {
+ "keyword": "Strategic Management Tools",
+ "score": 0.87044454
+ }
+ ]
+ },
+ {
+ "query": "strategic planning",
+ "field": "Business, Management and Accounting",
+ "rank": 2,
+ "topic_name": "Mining Techniques and Economics",
+ "total_score": 43.662872,
+ "lexical_score": 28.899949600000003,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.909615,
+ "matched_keywords": [
+ {
+ "keyword": "Strategic Planning",
+ "score": 0.9963846
+ }
+ ]
+ },
+ {
+ "query": "strategic planning",
+ "field": "Business, Management and Accounting",
+ "rank": 3,
+ "topic_name": "Urban and spatial planning",
+ "total_score": 43.657394,
+ "lexical_score": 18.504786,
+ "title_vector_score": 25.15261,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "financial reporting standards",
+ "field": "Business, Management and Accounting",
+ "rank": 1,
+ "topic_name": "Accounting Theory and Financial Reporting",
+ "total_score": 73.84157,
+ "lexical_score": 80.5015805,
+ "title_vector_score": 27.56446,
+ "description_vector_score": 12.177494,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Financial Reporting",
+ "score": 0.95966744
+ },
+ {
+ "keyword": "International Accounting Standards",
+ "score": 0.8935454
+ }
+ ]
+ },
+ {
+ "query": "financial reporting standards",
+ "field": "Business, Management and Accounting",
+ "rank": 2,
+ "topic_name": "Auditing, Earnings Management, Governance",
+ "total_score": 70.9367,
+ "lexical_score": 53.3636287,
+ "title_vector_score": 0.0,
+ "description_vector_score": 12.785726,
+ "keywords_vector_score": 23.99993,
+ "matched_keywords": [
+ {
+ "keyword": "Financial Reporting",
+ "score": 0.9599972
+ },
+ {
+ "keyword": "International Financial Reporting Standards",
+ "score": 0.9586251
+ }
+ ]
+ },
+ {
+ "query": "financial reporting standards",
+ "field": "Business, Management and Accounting",
+ "rank": 3,
+ "topic_name": "Accounting and Financial Management",
+ "total_score": 67.99387,
+ "lexical_score": 60.5578437,
+ "title_vector_score": 26.71119,
+ "description_vector_score": 12.206515,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "International Financial Reporting Standards",
+ "score": 0.95867634
+ },
+ {
+ "keyword": "Financial Information",
+ "score": 0.8743503
+ }
+ ]
+ },
+ {
+ "query": "cognitive behavioral therapy",
+ "field": "Psychology",
+ "rank": 1,
+ "topic_name": "Psychological Treatments and Assessments",
+ "total_score": 74.0625,
+ "lexical_score": 33.955219199999995,
+ "title_vector_score": 26.3648,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.85749,
+ "matched_keywords": [
+ {
+ "keyword": "Cognitive Behavioral Therapy",
+ "score": 0.99429965
+ },
+ {
+ "keyword": "Rational Emotive Behavior Therapy",
+ "score": 0.8905864
+ }
+ ]
+ },
+ {
+ "query": "cognitive behavioral therapy",
+ "field": "Psychology",
+ "rank": 2,
+ "topic_name": "Attention Economy in Education and Business",
+ "total_score": 50.243687,
+ "lexical_score": 38.961250199999995,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.85749,
+ "matched_keywords": [
+ {
+ "keyword": "Cognitive Behavioral Therapy",
+ "score": 0.99429965
+ }
+ ]
+ },
+ {
+ "query": "cognitive behavioral therapy",
+ "field": "Psychology",
+ "rank": 3,
+ "topic_name": "Anxiety, Depression, Psychometrics, Treatment, Cognitive Processes",
+ "total_score": 48.733494,
+ "lexical_score": 49.733021199999996,
+ "title_vector_score": 26.137611,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Cognitive-Behavioral Therapy",
+ "score": 0.99277616
+ }
+ ]
+ },
+ {
+ "query": "developmental psychology",
+ "field": "Psychology",
+ "rank": 1,
+ "topic_name": "Developmental and Educational Neuropsychology",
+ "total_score": 61.946636,
+ "lexical_score": 36.450251300000005,
+ "title_vector_score": 27.147139,
+ "description_vector_score": 12.295311,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Child Development",
+ "score": 0.8638172
+ },
+ {
+ "keyword": "Cognitive Development",
+ "score": 0.85995317
+ }
+ ]
+ },
+ {
+ "query": "developmental psychology",
+ "field": "Psychology",
+ "rank": 2,
+ "topic_name": "Child and Adolescent Psychosocial and Emotional Development",
+ "total_score": 52.049316,
+ "lexical_score": 17.605947,
+ "title_vector_score": 26.888502,
+ "description_vector_score": 13.021709,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Developmental Trajectories",
+ "score": 0.83963037
+ }
+ ]
+ },
+ {
+ "query": "developmental psychology",
+ "field": "Psychology",
+ "rank": 3,
+ "topic_name": "Psychology of Development and Education",
+ "total_score": 42.29886,
+ "lexical_score": 26.541922300000003,
+ "title_vector_score": 26.679554,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Adolescent Development",
+ "score": 0.83619165
+ }
+ ]
+ },
+ {
+ "query": "social anxiety disorder",
+ "field": "Psychology",
+ "rank": 1,
+ "topic_name": "Anxiety, Depression, Psychometrics, Treatment, Cognitive Processes",
+ "total_score": 89.72552,
+ "lexical_score": 61.8664581,
+ "title_vector_score": 25.83769,
+ "description_vector_score": 12.423212,
+ "keywords_vector_score": 23.327309,
+ "matched_keywords": [
+ {
+ "keyword": "Anxiety Disorders",
+ "score": 0.93309236
+ },
+ {
+ "keyword": "Generalized Anxiety Disorder",
+ "score": 0.9090867
+ }
+ ]
+ },
+ {
+ "query": "social anxiety disorder",
+ "field": "Psychology",
+ "rank": 2,
+ "topic_name": "Death Anxiety and Social Exclusion",
+ "total_score": 68.17135,
+ "lexical_score": 37.2471395,
+ "title_vector_score": 25.394304,
+ "description_vector_score": 12.228985,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "social anxiety disorder",
+ "field": "Psychology",
+ "rank": 3,
+ "topic_name": "Body Image and Dysmorphia Studies",
+ "total_score": 47.99255,
+ "lexical_score": 35.4722015,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.723484,
+ "matched_keywords": [
+ {
+ "keyword": "Social Anxiety",
+ "score": 0.9489393
+ },
+ {
+ "keyword": "Psychosocial Outcomes",
+ "score": 0.81540084
+ }
+ ]
+ },
+ {
+ "query": "memory retention techniques",
+ "field": "Psychology",
+ "rank": 1,
+ "topic_name": "Memory Processes and Influences",
+ "total_score": 69.687225,
+ "lexical_score": 37.9348917,
+ "title_vector_score": 27.586742,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.837488,
+ "matched_keywords": [
+ {
+ "keyword": "Memory Retrieval",
+ "score": 0.95349956
+ },
+ {
+ "keyword": "False Memory",
+ "score": 0.8669636
+ }
+ ]
+ },
+ {
+ "query": "memory retention techniques",
+ "field": "Psychology",
+ "rank": 2,
+ "topic_name": "Cognitive Functions and Memory",
+ "total_score": 44.405968,
+ "lexical_score": 32.0608234,
+ "title_vector_score": 26.142977,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Prospective Memory",
+ "score": 0.8952539
+ }
+ ]
+ },
+ {
+ "query": "memory retention techniques",
+ "field": "Psychology",
+ "rank": 3,
+ "topic_name": "Memory and Neural Mechanisms",
+ "total_score": 44.343796,
+ "lexical_score": 32.71462,
+ "title_vector_score": 26.080807,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Memory",
+ "score": 0.9507654
+ }
+ ]
+ },
+ {
+ "query": "neuropsychology assessment",
+ "field": "Psychology",
+ "rank": 1,
+ "topic_name": "Developmental and Educational Neuropsychology",
+ "total_score": 76.80675,
+ "lexical_score": 42.629178499999995,
+ "title_vector_score": 26.73229,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.908234,
+ "matched_keywords": [
+ {
+ "keyword": "Neuropsychological Assessment",
+ "score": 0.9963293
+ },
+ {
+ "keyword": "Cognitive Neuroscience",
+ "score": 0.86172795
+ }
+ ]
+ },
+ {
+ "query": "neuropsychology assessment",
+ "field": "Psychology",
+ "rank": 2,
+ "topic_name": "Neurological disorders and treatments",
+ "total_score": 38.757477,
+ "lexical_score": 0.0,
+ "title_vector_score": 26.538113,
+ "description_vector_score": 12.219364,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Neurological Disorders",
+ "score": 0.88868165
+ }
+ ]
+ },
+ {
+ "query": "neuropsychology assessment",
+ "field": "Psychology",
+ "rank": 3,
+ "topic_name": "Medical Case Reports and Studies",
+ "total_score": 32.055927,
+ "lexical_score": 7.1486793,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.90725,
+ "matched_keywords": [
+ {
+ "keyword": "Neuropsychological Assessment",
+ "score": 0.99628997
+ },
+ {
+ "keyword": "Neurological Disorders",
+ "score": 0.8889141
+ }
+ ]
+ },
+ {
+ "query": "human behavior analysis",
+ "field": "Psychology",
+ "rank": 1,
+ "topic_name": "Human Behavior and Motivation",
+ "total_score": 55.857117,
+ "lexical_score": 38.734938299999996,
+ "title_vector_score": 25.862703,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "human behavior analysis",
+ "field": "Psychology",
+ "rank": 2,
+ "topic_name": "Evolutionary Psychology and Human Behavior",
+ "total_score": 51.156105,
+ "lexical_score": 46.558106699999996,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.771208,
+ "matched_keywords": [
+ {
+ "keyword": "Human Behavior",
+ "score": 0.95084834
+ }
+ ]
+ },
+ {
+ "query": "human behavior analysis",
+ "field": "Psychology",
+ "rank": 3,
+ "topic_name": "Evacuation and Crowd Dynamics",
+ "total_score": 38.800766,
+ "lexical_score": 17.9213216,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.76942,
+ "matched_keywords": [
+ {
+ "keyword": "Human Behavior",
+ "score": 0.9507768
+ }
+ ]
+ },
+ {
+ "query": "mental health counseling",
+ "field": "Psychology",
+ "rank": 1,
+ "topic_name": "Psychiatric care and mental health services",
+ "total_score": 86.688805,
+ "lexical_score": 41.1258655,
+ "title_vector_score": 27.58228,
+ "description_vector_score": 12.448683,
+ "keywords_vector_score": 23.179853,
+ "matched_keywords": [
+ {
+ "keyword": "Mental Health Care",
+ "score": 0.9271941
+ },
+ {
+ "keyword": "Psychiatric Admission",
+ "score": 0.83072114
+ }
+ ]
+ },
+ {
+ "query": "mental health counseling",
+ "field": "Psychology",
+ "rank": 2,
+ "topic_name": "Mental Health and Psychiatry",
+ "total_score": 55.555,
+ "lexical_score": 35.9395745,
+ "title_vector_score": 27.602556,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Psychiatric Disorders",
+ "score": 0.8626137
+ }
+ ]
+ },
+ {
+ "query": "mental health counseling",
+ "field": "Psychology",
+ "rank": 3,
+ "topic_name": "Psychological Treatments and Disorders",
+ "total_score": 42.087738,
+ "lexical_score": 24.4529799,
+ "title_vector_score": 27.093937,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Mental Health",
+ "score": 0.921509
+ },
+ {
+ "keyword": "Cognitive Therapy",
+ "score": 0.8394644
+ }
+ ]
+ },
+ {
+ "query": "personality traits theory",
+ "field": "Psychology",
+ "rank": 1,
+ "topic_name": "Personality Traits and Psychology",
+ "total_score": 87.91931,
+ "lexical_score": 85.16322740000001,
+ "title_vector_score": 28.999657,
+ "description_vector_score": 12.854155,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Personality Traits",
+ "score": 0.9733212
+ }
+ ]
+ },
+ {
+ "query": "personality traits theory",
+ "field": "Psychology",
+ "rank": 2,
+ "topic_name": "Personality Disorders and Psychopathology",
+ "total_score": 52.516617,
+ "lexical_score": 63.7069605,
+ "title_vector_score": 25.621883,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Personality Traits",
+ "score": 0.9733212
+ }
+ ]
+ },
+ {
+ "query": "personality traits theory",
+ "field": "Psychology",
+ "rank": 3,
+ "topic_name": "Creativity in Education and Neuroscience",
+ "total_score": 50.357407,
+ "lexical_score": 39.441793700000005,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.33378,
+ "matched_keywords": [
+ {
+ "keyword": "Personality Traits",
+ "score": 0.97335124
+ },
+ {
+ "keyword": "Psychology",
+ "score": 0.8186252
+ }
+ ]
+ },
+ {
+ "query": "child development stages",
+ "field": "Psychology",
+ "rank": 1,
+ "topic_name": "Child Nutrition and Water Access",
+ "total_score": 40.019455,
+ "lexical_score": 40.0575448,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.550325,
+ "matched_keywords": [
+ {
+ "keyword": "Child Development",
+ "score": 0.942013
+ },
+ {
+ "keyword": "Early Childhood Stimulation",
+ "score": 0.8243153
+ }
+ ]
+ },
+ {
+ "query": "child development stages",
+ "field": "Psychology",
+ "rank": 2,
+ "topic_name": "Developmental and Educational Neuropsychology",
+ "total_score": 39.029358,
+ "lexical_score": 22.4029826,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.547178,
+ "matched_keywords": [
+ {
+ "keyword": "Child Development",
+ "score": 0.94188714
+ }
+ ]
+ },
+ {
+ "query": "child development stages",
+ "field": "Psychology",
+ "rank": 3,
+ "topic_name": "Early Childhood Education and Development",
+ "total_score": 38.884995,
+ "lexical_score": 24.975309799999998,
+ "title_vector_score": 26.087536,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Child Development",
+ "score": 0.94188666
+ },
+ {
+ "keyword": "Early Childhood Education",
+ "score": 0.81594086
+ }
+ ]
+ },
+ {
+ "query": "addiction recovery mechanisms",
+ "field": "Psychology",
+ "rank": 1,
+ "topic_name": "Opioid Use Disorder Treatment",
+ "total_score": 60.39795,
+ "lexical_score": 18.475611999999998,
+ "title_vector_score": 25.17464,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.493296,
+ "matched_keywords": [
+ {
+ "keyword": "Addiction Treatment",
+ "score": 0.93973184
+ },
+ {
+ "keyword": "Substance Use Disorders",
+ "score": 0.8429754
+ }
+ ]
+ },
+ {
+ "query": "addiction recovery mechanisms",
+ "field": "Psychology",
+ "rank": 2,
+ "topic_name": "Impact of Technology on Adolescents",
+ "total_score": 41.01863,
+ "lexical_score": 18.122818,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.895813,
+ "matched_keywords": [
+ {
+ "keyword": "Addiction",
+ "score": 0.9158325
+ }
+ ]
+ },
+ {
+ "query": "addiction recovery mechanisms",
+ "field": "Psychology",
+ "rank": 3,
+ "topic_name": "Historical and Modern Theater Studies",
+ "total_score": 35.308834,
+ "lexical_score": 19.0177196,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.624147,
+ "matched_keywords": [
+ {
+ "keyword": "Substance Addiction",
+ "score": 0.9049659
+ }
+ ]
+ },
+ {
+ "query": "emotional intelligence",
+ "field": "Psychology",
+ "rank": 1,
+ "topic_name": "Emotional Intelligence and Performance",
+ "total_score": 80.627045,
+ "lexical_score": 81.2533248,
+ "title_vector_score": 27.879904,
+ "description_vector_score": 12.769539,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Emotional Intelligence",
+ "score": 0.99779797
+ },
+ {
+ "keyword": "Trait Emotional Intelligence",
+ "score": 0.9822655
+ }
+ ]
+ },
+ {
+ "query": "emotional intelligence",
+ "field": "Psychology",
+ "rank": 2,
+ "topic_name": "Italian Literature and Culture",
+ "total_score": 43.86426,
+ "lexical_score": 28.923686999999997,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.946678,
+ "matched_keywords": [
+ {
+ "keyword": "Emotional Intelligence",
+ "score": 0.9978671
+ }
+ ]
+ },
+ {
+ "query": "emotional intelligence",
+ "field": "Psychology",
+ "rank": 3,
+ "topic_name": "Physical education and sports games research",
+ "total_score": 43.060055,
+ "lexical_score": 29.1102299,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.94495,
+ "matched_keywords": [
+ {
+ "keyword": "Emotional Intelligence",
+ "score": 0.99779797
+ },
+ {
+ "keyword": "Emotions",
+ "score": 0.85521317
+ }
+ ]
+ },
+ {
+ "query": "perception and sensation",
+ "field": "Psychology",
+ "rank": 1,
+ "topic_name": "Visual perception and processing mechanisms",
+ "total_score": 43.648857,
+ "lexical_score": 31.00748450778,
+ "title_vector_score": 26.301056,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Visual Perception",
+ "score": 0.874032
+ },
+ {
+ "keyword": "Sensory Integration",
+ "score": 0.82839704
+ }
+ ]
+ },
+ {
+ "query": "perception and sensation",
+ "field": "Psychology",
+ "rank": 2,
+ "topic_name": "Human auditory perception and evaluation",
+ "total_score": 42.845093,
+ "lexical_score": 29.99067624256,
+ "title_vector_score": 25.497293,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "perception and sensation",
+ "field": "Psychology",
+ "rank": 3,
+ "topic_name": "Tactile and Sensory Interactions",
+ "total_score": 33.83101,
+ "lexical_score": 15.39032438764,
+ "title_vector_score": 25.605698,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Tactile Perception",
+ "score": 0.87734556
+ },
+ {
+ "keyword": "Sensory Substitution",
+ "score": 0.8269172
+ }
+ ]
+ },
+ {
+ "query": "group dynamics psychology",
+ "field": "Psychology",
+ "rank": 1,
+ "topic_name": "Social and Intergroup Psychology",
+ "total_score": 69.21144,
+ "lexical_score": 46.018088899999995,
+ "title_vector_score": 27.464754,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.588516,
+ "matched_keywords": [
+ {
+ "keyword": "Group Dynamics",
+ "score": 0.9035406
+ }
+ ]
+ },
+ {
+ "query": "group dynamics psychology",
+ "field": "Psychology",
+ "rank": 2,
+ "topic_name": "Psychology of Social Influence",
+ "total_score": 42.05896,
+ "lexical_score": 23.6897177,
+ "title_vector_score": 24.951288,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "group dynamics psychology",
+ "field": "Psychology",
+ "rank": 3,
+ "topic_name": "Transactional Analysis in Psychotherapy",
+ "total_score": 40.32863,
+ "lexical_score": 25.2189704,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.595686,
+ "matched_keywords": [
+ {
+ "keyword": "Group Dynamics",
+ "score": 0.9038274
+ }
+ ]
+ },
+ {
+ "query": "depression treatment outcomes",
+ "field": "Psychology",
+ "rank": 1,
+ "topic_name": "Treatment of Major Depression",
+ "total_score": 99.8713,
+ "lexical_score": 69.3653104,
+ "title_vector_score": 28.518541,
+ "description_vector_score": 12.2131815,
+ "keywords_vector_score": 22.925163,
+ "matched_keywords": [
+ {
+ "keyword": "Treatment-Resistant Depression",
+ "score": 0.9170065
+ },
+ {
+ "keyword": "Depression",
+ "score": 0.8875427
+ }
+ ]
+ },
+ {
+ "query": "depression treatment outcomes",
+ "field": "Psychology",
+ "rank": 2,
+ "topic_name": "Medicinal Plants and Bioactive Compounds",
+ "total_score": 40.720196,
+ "lexical_score": 20.762375,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.303509,
+ "matched_keywords": [
+ {
+ "keyword": "Depression Treatment",
+ "score": 0.9721403
+ }
+ ]
+ },
+ {
+ "query": "depression treatment outcomes",
+ "field": "Psychology",
+ "rank": 3,
+ "topic_name": "Neurological disorders and treatments",
+ "total_score": 39.34195,
+ "lexical_score": 27.9161864,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.925264,
+ "matched_keywords": [
+ {
+ "keyword": "Treatment-Resistant Depression",
+ "score": 0.91701055
+ }
+ ]
+ },
+ {
+ "query": "stress management interventions",
+ "field": "Psychology",
+ "rank": 1,
+ "topic_name": "Psychological Treatments and Assessments",
+ "total_score": 59.02195,
+ "lexical_score": 15.212848200000002,
+ "title_vector_score": 24.954544,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.988718,
+ "matched_keywords": [
+ {
+ "keyword": "Stress Management",
+ "score": 0.9595487
+ }
+ ]
+ },
+ {
+ "query": "stress management interventions",
+ "field": "Psychology",
+ "rank": 2,
+ "topic_name": "Stress and Burnout Research",
+ "total_score": 55.94059,
+ "lexical_score": 33.36309,
+ "title_vector_score": 25.642912,
+ "description_vector_score": 12.468728,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Coping Strategies",
+ "score": 0.85019016
+ },
+ {
+ "keyword": "Work Stress",
+ "score": 0.83773446
+ }
+ ]
+ },
+ {
+ "query": "stress management interventions",
+ "field": "Psychology",
+ "rank": 3,
+ "topic_name": "Healthcare professionals’ stress and burnout",
+ "total_score": 41.173935,
+ "lexical_score": 30.542342,
+ "title_vector_score": 24.896107,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "motivation theories",
+ "field": "Psychology",
+ "rank": 1,
+ "topic_name": "Motivation and Self-Concept in Sports",
+ "total_score": 55.41385,
+ "lexical_score": 37.4874428,
+ "title_vector_score": 24.98605,
+ "description_vector_score": 12.7186775,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Intrinsic Motivation",
+ "score": 0.9573176
+ },
+ {
+ "keyword": "Motivational Climate",
+ "score": 0.8906357
+ }
+ ]
+ },
+ {
+ "query": "motivation theories",
+ "field": "Psychology",
+ "rank": 2,
+ "topic_name": "Human Behavior and Motivation",
+ "total_score": 48.568806,
+ "lexical_score": 37.1763975,
+ "title_vector_score": 27.484667,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Human Motivation",
+ "score": 0.93672585
+ }
+ ]
+ },
+ {
+ "query": "motivation theories",
+ "field": "Psychology",
+ "rank": 3,
+ "topic_name": "Employee Performance and Motivation",
+ "total_score": 45.52537,
+ "lexical_score": 21.084139,
+ "title_vector_score": 24.441233,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "cognitive dissonance",
+ "field": "Psychology",
+ "rank": 1,
+ "topic_name": "Cognitive and psychological constructs research",
+ "total_score": 63.265327,
+ "lexical_score": 27.161053,
+ "title_vector_score": 24.76533,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.570288,
+ "matched_keywords": [
+ {
+ "keyword": "Cognitive Conflicts",
+ "score": 0.9028115
+ }
+ ]
+ },
+ {
+ "query": "cognitive dissonance",
+ "field": "Psychology",
+ "rank": 2,
+ "topic_name": "Gambling Behavior and Treatments",
+ "total_score": 30.081497,
+ "lexical_score": 11.4310034,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.06148,
+ "matched_keywords": [
+ {
+ "keyword": "Cognitive Distortions",
+ "score": 0.88245916
+ }
+ ]
+ },
+ {
+ "query": "cognitive dissonance",
+ "field": "Psychology",
+ "rank": 3,
+ "topic_name": "Ethics, Aesthetics, and Art",
+ "total_score": 25.805405,
+ "lexical_score": 3.569879,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.235525,
+ "matched_keywords": [
+ {
+ "keyword": "Cognitivism",
+ "score": 0.889421
+ }
+ ]
+ },
+ {
+ "query": "behavioral psychology",
+ "field": "Psychology",
+ "rank": 1,
+ "topic_name": "Neural and Behavioral Psychology Studies",
+ "total_score": 62.20592,
+ "lexical_score": 33.979455,
+ "title_vector_score": 28.226467,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "behavioral psychology",
+ "field": "Psychology",
+ "rank": 2,
+ "topic_name": "Behavioral and Psychological Studies",
+ "total_score": 49.36548,
+ "lexical_score": 35.8471595,
+ "title_vector_score": 29.255783,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Behavioral Interventions",
+ "score": 0.8814337
+ },
+ {
+ "keyword": "Positive Behavior Support",
+ "score": 0.81255484
+ }
+ ]
+ },
+ {
+ "query": "behavioral psychology",
+ "field": "Psychology",
+ "rank": 3,
+ "topic_name": "Psycholinguistics and Behavioral Studies",
+ "total_score": 47.449493,
+ "lexical_score": 20.109695,
+ "title_vector_score": 27.3398,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "mindfulness practices",
+ "field": "Psychology",
+ "rank": 1,
+ "topic_name": "Mindfulness and Compassion Interventions",
+ "total_score": 86.74523,
+ "lexical_score": 52.353169,
+ "title_vector_score": 25.826347,
+ "description_vector_score": 12.869206,
+ "keywords_vector_score": 22.883457,
+ "matched_keywords": [
+ {
+ "keyword": "Mindfulness",
+ "score": 0.9153383
+ },
+ {
+ "keyword": "Meditation",
+ "score": 0.8885231
+ }
+ ]
+ },
+ {
+ "query": "mindfulness practices",
+ "field": "Psychology",
+ "rank": 2,
+ "topic_name": "Biofield Effects and Biophysics",
+ "total_score": 20.882147,
+ "lexical_score": 0.0,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 20.882147,
+ "matched_keywords": [
+ {
+ "keyword": "Mind-Body Intervention",
+ "score": 0.8352859
+ }
+ ]
+ },
+ {
+ "query": "mindfulness practices",
+ "field": "Psychology",
+ "rank": 3,
+ "topic_name": "Philosophy and Theoretical Science",
+ "total_score": 20.605898,
+ "lexical_score": 0.0,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 20.605898,
+ "matched_keywords": [
+ {
+ "keyword": "Philosophy of Mind",
+ "score": 0.8242359
+ }
+ ]
+ },
+ {
+ "query": "sleep disorders psychology",
+ "field": "Psychology",
+ "rank": 1,
+ "topic_name": "Sleep and related disorders",
+ "total_score": 75.0732,
+ "lexical_score": 61.969163,
+ "title_vector_score": 28.944748,
+ "description_vector_score": 12.312165,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Insomnia",
+ "score": 0.88331413
+ },
+ {
+ "keyword": "Chronic Insomnia",
+ "score": 0.87649465
+ }
+ ]
+ },
+ {
+ "query": "sleep disorders psychology",
+ "field": "Psychology",
+ "rank": 2,
+ "topic_name": "Sleep and Wakefulness Research",
+ "total_score": 60.460934,
+ "lexical_score": 46.125673,
+ "title_vector_score": 26.965199,
+ "description_vector_score": 12.411596,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Sleep",
+ "score": 0.8680854
+ }
+ ]
+ },
+ {
+ "query": "sleep disorders psychology",
+ "field": "Psychology",
+ "rank": 3,
+ "topic_name": "Sleep and Work-Related Fatigue",
+ "total_score": 59.001057,
+ "lexical_score": 52.790096,
+ "title_vector_score": 25.023724,
+ "description_vector_score": 12.549348,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Sleep Deprivation",
+ "score": 0.8976865
+ }
+ ]
+ },
+ {
+ "query": "nanomaterials synthesis",
+ "field": "Materials Science",
+ "rank": 1,
+ "topic_name": "Nanoparticles: synthesis and applications",
+ "total_score": 51.419273,
+ "lexical_score": 41.6579822,
+ "title_vector_score": 28.119572,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Nanomaterials",
+ "score": 0.9592912
+ },
+ {
+ "keyword": "Nanoparticles",
+ "score": 0.90167665
+ }
+ ]
+ },
+ {
+ "query": "nanomaterials synthesis",
+ "field": "Materials Science",
+ "rank": 2,
+ "topic_name": "Advanced Nanomaterials in Catalysis",
+ "total_score": 47.21579,
+ "lexical_score": 24.345673,
+ "title_vector_score": 27.848782,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Nanozymes",
+ "score": 0.8922827
+ }
+ ]
+ },
+ {
+ "query": "nanomaterials synthesis",
+ "field": "Materials Science",
+ "rank": 3,
+ "topic_name": "Microwave-Assisted Synthesis and Applications",
+ "total_score": 45.32867,
+ "lexical_score": 43.2092843,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.906181,
+ "matched_keywords": [
+ {
+ "keyword": "Nanomaterials Synthesis",
+ "score": 0.9962473
+ }
+ ]
+ },
+ {
+ "query": "graphene applications",
+ "field": "Materials Science",
+ "rank": 1,
+ "topic_name": "Graphene research and applications",
+ "total_score": 76.1649,
+ "lexical_score": 59.0918457,
+ "title_vector_score": 29.001896,
+ "description_vector_score": 13.269367,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Graphene",
+ "score": 0.9413378
+ },
+ {
+ "keyword": "Graphene Oxide",
+ "score": 0.93135667
+ }
+ ]
+ },
+ {
+ "query": "graphene applications",
+ "field": "Materials Science",
+ "rank": 2,
+ "topic_name": "Advanced Graph Theory Research",
+ "total_score": 46.869843,
+ "lexical_score": 9.4172393,
+ "title_vector_score": 27.409637,
+ "description_vector_score": 12.187132,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Graph Theory",
+ "score": 0.9034083
+ }
+ ]
+ },
+ {
+ "query": "graphene applications",
+ "field": "Materials Science",
+ "rank": 3,
+ "topic_name": "Graphene and Nanomaterials Applications",
+ "total_score": 46.50267,
+ "lexical_score": 63.827391999999996,
+ "title_vector_score": 0.0,
+ "description_vector_score": 12.6090355,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Graphene",
+ "score": 0.9413378
+ }
+ ]
+ },
+ {
+ "query": "polymers characterization",
+ "field": "Materials Science",
+ "rank": 1,
+ "topic_name": "Polymer Synthesis and Characterization",
+ "total_score": 59.633686,
+ "lexical_score": 32.736272400000004,
+ "title_vector_score": 28.8464,
+ "description_vector_score": 12.524296,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Polymer Resins",
+ "score": 0.9454093
+ },
+ {
+ "keyword": "Terpolymer",
+ "score": 0.86314297
+ }
+ ]
+ },
+ {
+ "query": "polymers characterization",
+ "field": "Materials Science",
+ "rank": 2,
+ "topic_name": "Synthesis and properties of polymers",
+ "total_score": 49.25683,
+ "lexical_score": 35.6791747,
+ "title_vector_score": 28.710508,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Fluorinated Polymers",
+ "score": 0.86232805
+ },
+ {
+ "keyword": "Polyimides",
+ "score": 0.83050704
+ }
+ ]
+ },
+ {
+ "query": "polymers characterization",
+ "field": "Materials Science",
+ "rank": 3,
+ "topic_name": "Advanced Polymer Synthesis and Characterization",
+ "total_score": 44.988235,
+ "lexical_score": 31.9748155,
+ "title_vector_score": 28.314129,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Functional Polymers",
+ "score": 0.94210744
+ },
+ {
+ "keyword": "Controlled Polymerization",
+ "score": 0.89090943
+ }
+ ]
+ },
+ {
+ "query": "metallurgy engineering",
+ "field": "Materials Science",
+ "rank": 1,
+ "topic_name": "Metallurgy and Material Science",
+ "total_score": 50.179325,
+ "lexical_score": 21.714607,
+ "title_vector_score": 28.464718,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Nickel-Aluminium Bronze",
+ "score": 0.82007194
+ }
+ ]
+ },
+ {
+ "query": "metallurgy engineering",
+ "field": "Materials Science",
+ "rank": 2,
+ "topic_name": "Metallurgy and Material Forming",
+ "total_score": 49.65611,
+ "lexical_score": 21.714607,
+ "title_vector_score": 27.941502,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Metallic Materials",
+ "score": 0.90315914
+ }
+ ]
+ },
+ {
+ "query": "metallurgy engineering",
+ "field": "Materials Science",
+ "rank": 3,
+ "topic_name": "Metallurgical Processes and Thermodynamics",
+ "total_score": 38.35343,
+ "lexical_score": 14.161036,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.192398,
+ "matched_keywords": [
+ {
+ "keyword": "Metallurgy",
+ "score": 0.96769595
+ },
+ {
+ "keyword": "Steel Casting",
+ "score": 0.83425045
+ }
+ ]
+ },
+ {
+ "query": "semiconductor fabrication",
+ "field": "Materials Science",
+ "rank": 1,
+ "topic_name": "Semiconductor materials and devices",
+ "total_score": 46.964973,
+ "lexical_score": 33.4986836,
+ "title_vector_score": 28.198221,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Semiconductor Devices",
+ "score": 0.9341514
+ },
+ {
+ "keyword": "Nanoelectronics",
+ "score": 0.81872153
+ }
+ ]
+ },
+ {
+ "query": "semiconductor fabrication",
+ "field": "Materials Science",
+ "rank": 2,
+ "topic_name": "Advanced Materials and Semiconductor Technologies",
+ "total_score": 45.11552,
+ "lexical_score": 32.1106426,
+ "title_vector_score": 27.981476,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Semiconductor Devices",
+ "score": 0.93437624
+ }
+ ]
+ },
+ {
+ "query": "semiconductor fabrication",
+ "field": "Materials Science",
+ "rank": 3,
+ "topic_name": "Advancements in Semiconductor Devices and Circuit Design",
+ "total_score": 42.018833,
+ "lexical_score": 14.5945835,
+ "title_vector_score": 27.42425,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "High-Performance Nanoscale Devices",
+ "score": 0.8171506
+ },
+ {
+ "keyword": "Strained-Silicon Technology",
+ "score": 0.81528974
+ }
+ ]
+ },
+ {
+ "query": "composite materials design",
+ "field": "Materials Science",
+ "rank": 1,
+ "topic_name": "Structural Analysis of Composite Materials",
+ "total_score": 59.713467,
+ "lexical_score": 34.134713000000005,
+ "title_vector_score": 28.22681,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Structural Adhesives",
+ "score": 0.8124678
+ }
+ ]
+ },
+ {
+ "query": "composite materials design",
+ "field": "Materials Science",
+ "rank": 2,
+ "topic_name": "Composite Material Mechanics",
+ "total_score": 52.001343,
+ "lexical_score": 53.6168346,
+ "title_vector_score": 27.999601,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Composite Materials",
+ "score": 0.9649768
+ },
+ {
+ "keyword": "Heterogeneous Materials",
+ "score": 0.8169756
+ }
+ ]
+ },
+ {
+ "query": "composite materials design",
+ "field": "Materials Science",
+ "rank": 3,
+ "topic_name": "Electrophoretic Deposition in Materials Science",
+ "total_score": 45.222084,
+ "lexical_score": 44.379938100000004,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.125063,
+ "matched_keywords": [
+ {
+ "keyword": "Composite Materials",
+ "score": 0.96500254
+ },
+ {
+ "keyword": "Ceramic Materials",
+ "score": 0.81827116
+ }
+ ]
+ },
+ {
+ "query": "biomaterials tissue engineering",
+ "field": "Materials Science",
+ "rank": 1,
+ "topic_name": "Silk-based biomaterials and applications",
+ "total_score": 78.674866,
+ "lexical_score": 68.7342184,
+ "title_vector_score": 26.022713,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.183554,
+ "matched_keywords": [
+ {
+ "keyword": "Tissue Engineering",
+ "score": 0.9273422
+ },
+ {
+ "keyword": "Biomaterials",
+ "score": 0.92105865
+ }
+ ]
+ },
+ {
+ "query": "biomaterials tissue engineering",
+ "field": "Materials Science",
+ "rank": 2,
+ "topic_name": "Bone Tissue Engineering Materials",
+ "total_score": 70.80289,
+ "lexical_score": 84.5024163,
+ "title_vector_score": 26.278353,
+ "description_vector_score": 12.656783,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Tissue Engineering",
+ "score": 0.92683625
+ },
+ {
+ "keyword": "Biomaterials",
+ "score": 0.9209013
+ }
+ ]
+ },
+ {
+ "query": "biomaterials tissue engineering",
+ "field": "Materials Science",
+ "rank": 3,
+ "topic_name": "Tissue Engineering and Regenerative Medicine",
+ "total_score": 41.70638,
+ "lexical_score": 63.446709899999995,
+ "title_vector_score": 0.0,
+ "description_vector_score": 12.611121,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Tissue-Specific Coatings",
+ "score": 0.8679173
+ },
+ {
+ "keyword": "Bioartificial Organs",
+ "score": 0.85202837
+ }
+ ]
+ },
+ {
+ "query": "thin film deposition",
+ "field": "Materials Science",
+ "rank": 1,
+ "topic_name": "Surface and Thin Film Phenomena",
+ "total_score": 65.364426,
+ "lexical_score": 53.0308445,
+ "title_vector_score": 27.343983,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Thin Films",
+ "score": 0.946615
+ }
+ ]
+ },
+ {
+ "query": "thin film deposition",
+ "field": "Materials Science",
+ "rank": 2,
+ "topic_name": "Metal and Thin Film Mechanics",
+ "total_score": 64.375336,
+ "lexical_score": 59.915408400000004,
+ "title_vector_score": 26.354885,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Thin Films",
+ "score": 0.946615
+ }
+ ]
+ },
+ {
+ "query": "thin film deposition",
+ "field": "Materials Science",
+ "rank": 3,
+ "topic_name": "Advanced Materials and Semiconductor Technologies",
+ "total_score": 55.230278,
+ "lexical_score": 46.995557899999994,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.702639,
+ "matched_keywords": [
+ {
+ "keyword": "Thin-Film Deposition",
+ "score": 0.98810554
+ }
+ ]
+ },
+ {
+ "query": "corrosion resistance",
+ "field": "Materials Science",
+ "rank": 1,
+ "topic_name": "Corrosion Behavior and Inhibition",
+ "total_score": 61.707756,
+ "lexical_score": 44.864388000000005,
+ "title_vector_score": 26.860535,
+ "description_vector_score": 12.343036,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Corrosion Inhibitors",
+ "score": 0.9069731
+ },
+ {
+ "keyword": "Metal Corrosion",
+ "score": 0.86930895
+ }
+ ]
+ },
+ {
+ "query": "corrosion resistance",
+ "field": "Materials Science",
+ "rank": 2,
+ "topic_name": "Concrete Corrosion and Durability",
+ "total_score": 47.84777,
+ "lexical_score": 46.191041,
+ "title_vector_score": 25.343586,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Corrosion",
+ "score": 0.88507676
+ },
+ {
+ "keyword": "Corrosion Rate Measurement",
+ "score": 0.8530748
+ }
+ ]
+ },
+ {
+ "query": "corrosion resistance",
+ "field": "Materials Science",
+ "rank": 3,
+ "topic_name": "Electrodeposition and Electroless Coatings",
+ "total_score": 43.34903,
+ "lexical_score": 28.321426700000004,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.447935,
+ "matched_keywords": [
+ {
+ "keyword": "Corrosion Resistance",
+ "score": 0.97791743
+ }
+ ]
+ },
+ {
+ "query": "superconductors properties",
+ "field": "Materials Science",
+ "rank": 1,
+ "topic_name": "Iron-based superconductors research",
+ "total_score": 65.98413,
+ "lexical_score": 25.166224,
+ "title_vector_score": 27.57738,
+ "description_vector_score": 13.240528,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Superconductivity",
+ "score": 0.95889235
+ }
+ ]
+ },
+ {
+ "query": "superconductors properties",
+ "field": "Materials Science",
+ "rank": 2,
+ "topic_name": "Physics of Superconductivity and Magnetism",
+ "total_score": 53.660416,
+ "lexical_score": 22.780268,
+ "title_vector_score": 27.15748,
+ "description_vector_score": 13.778386,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "High-Temperature Superconductivity",
+ "score": 0.9454093
+ },
+ {
+ "keyword": "Cuprate Superconductors",
+ "score": 0.92497563
+ }
+ ]
+ },
+ {
+ "query": "superconductors properties",
+ "field": "Materials Science",
+ "rank": 3,
+ "topic_name": "Topological Materials and Phenomena",
+ "total_score": 37.983505,
+ "lexical_score": 23.7922523,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.540699,
+ "matched_keywords": [
+ {
+ "keyword": "Superconductors",
+ "score": 0.98162794
+ }
+ ]
+ },
+ {
+ "query": "ceramic engineering",
+ "field": "Materials Science",
+ "rank": 1,
+ "topic_name": "Advanced ceramic materials synthesis",
+ "total_score": 65.45503,
+ "lexical_score": 45.29559,
+ "title_vector_score": 27.908176,
+ "description_vector_score": 12.380633,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Ceramic Materials",
+ "score": 0.9320862
+ },
+ {
+ "keyword": "Porous Ceramics",
+ "score": 0.8927932
+ }
+ ]
+ },
+ {
+ "query": "ceramic engineering",
+ "field": "Materials Science",
+ "rank": 2,
+ "topic_name": "Advancements in Materials Engineering",
+ "total_score": 37.64866,
+ "lexical_score": 12.500742,
+ "title_vector_score": 25.147919,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "ceramic engineering",
+ "field": "Materials Science",
+ "rank": 3,
+ "topic_name": "Additive Manufacturing and 3D Printing Technologies",
+ "total_score": 31.54305,
+ "lexical_score": 11.684473800000001,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.574436,
+ "matched_keywords": [
+ {
+ "keyword": "Ceramics",
+ "score": 0.9429774
+ }
+ ]
+ },
+ {
+ "query": "alloy development",
+ "field": "Materials Science",
+ "rank": 1,
+ "topic_name": "Metallurgical and Alloy Processes",
+ "total_score": 48.8169,
+ "lexical_score": 21.714607,
+ "title_vector_score": 27.102291,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "alloy development",
+ "field": "Materials Science",
+ "rank": 2,
+ "topic_name": "Aluminum Alloy Microstructure Properties",
+ "total_score": 34.299152,
+ "lexical_score": 21.714607,
+ "title_vector_score": 0.0,
+ "description_vector_score": 12.584545,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Aluminium Alloys",
+ "score": 0.8582635
+ }
+ ]
+ },
+ {
+ "query": "alloy development",
+ "field": "Materials Science",
+ "rank": 3,
+ "topic_name": "Surface Treatment and Coatings",
+ "total_score": 27.071587,
+ "lexical_score": 14.536877,
+ "title_vector_score": 0.0,
+ "description_vector_score": 12.53471,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Titanium Alloy",
+ "score": 0.8436487
+ }
+ ]
+ },
+ {
+ "query": "material degradation",
+ "field": "Materials Science",
+ "rank": 1,
+ "topic_name": "Material Properties and Failure Mechanisms",
+ "total_score": 73.86594,
+ "lexical_score": 46.2244743,
+ "title_vector_score": 24.452934,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.750507,
+ "matched_keywords": [
+ {
+ "keyword": "Material Degradation",
+ "score": 0.9900203
+ },
+ {
+ "keyword": "Corrosion",
+ "score": 0.902164
+ }
+ ]
+ },
+ {
+ "query": "material degradation",
+ "field": "Materials Science",
+ "rank": 2,
+ "topic_name": "Pesticide and Herbicide Environmental Studies",
+ "total_score": 34.90634,
+ "lexical_score": 17.511556,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.01997,
+ "matched_keywords": [
+ {
+ "keyword": "Degradation",
+ "score": 0.9207988
+ }
+ ]
+ },
+ {
+ "query": "material degradation",
+ "field": "Materials Science",
+ "rank": 3,
+ "topic_name": "Corrosion Behavior and Inhibition",
+ "total_score": 25.045216,
+ "lexical_score": 0.0,
+ "title_vector_score": 25.045216,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Metal Corrosion",
+ "score": 0.88141966
+ },
+ {
+ "keyword": "Corrosion Inhibitors",
+ "score": 0.81332827
+ }
+ ]
+ },
+ {
+ "query": "photovoltaic materials",
+ "field": "Materials Science",
+ "rank": 1,
+ "topic_name": "Photovoltaic Systems and Sustainability",
+ "total_score": 49.1582,
+ "lexical_score": 41.577397000000005,
+ "title_vector_score": 26.654013,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Photovoltaic Systems",
+ "score": 0.9247737
+ },
+ {
+ "keyword": "Solar Energy",
+ "score": 0.84679294
+ }
+ ]
+ },
+ {
+ "query": "photovoltaic materials",
+ "field": "Materials Science",
+ "rank": 2,
+ "topic_name": "Solar Radiation and Photovoltaics",
+ "total_score": 38.21859,
+ "lexical_score": 17.3400063,
+ "title_vector_score": 26.870756,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Photovoltaic Power",
+ "score": 0.93493986
+ },
+ {
+ "keyword": "Solar Energy",
+ "score": 0.8466358
+ }
+ ]
+ },
+ {
+ "query": "photovoltaic materials",
+ "field": "Materials Science",
+ "rank": 3,
+ "topic_name": "Nanowire Synthesis and Applications",
+ "total_score": 37.545822,
+ "lexical_score": 20.0834717,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.044073,
+ "matched_keywords": [
+ {
+ "keyword": "Photovoltaic",
+ "score": 0.9617629
+ },
+ {
+ "keyword": "Solar Cells",
+ "score": 0.8804574
+ }
+ ]
+ },
+ {
+ "query": "mechanical testing of alloys",
+ "field": "Materials Science",
+ "rank": 1,
+ "topic_name": "Metallurgical and Alloy Processes",
+ "total_score": 45.743988,
+ "lexical_score": 30.74454088012,
+ "title_vector_score": 25.622341,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Mechanical Properties",
+ "score": 0.81528497
+ }
+ ]
+ },
+ {
+ "query": "mechanical testing of alloys",
+ "field": "Materials Science",
+ "rank": 2,
+ "topic_name": "High Temperature Alloys and Creep",
+ "total_score": 38.65178,
+ "lexical_score": 28.00425948526,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 21.756912,
+ "matched_keywords": [
+ {
+ "keyword": "Physical Metallurgy",
+ "score": 0.87027645
+ }
+ ]
+ },
+ {
+ "query": "mechanical testing of alloys",
+ "field": "Materials Science",
+ "rank": 3,
+ "topic_name": "Advanced Materials and Mechanics",
+ "total_score": 34.288506,
+ "lexical_score": 12.473312277200002,
+ "title_vector_score": 25.702866,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "smart materials technology",
+ "field": "Materials Science",
+ "rank": 1,
+ "topic_name": "Smart Materials for Construction",
+ "total_score": 60.02964,
+ "lexical_score": 39.970384700000004,
+ "title_vector_score": 27.890203,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Smart Structures",
+ "score": 0.83180404
+ }
+ ]
+ },
+ {
+ "query": "smart materials technology",
+ "field": "Materials Science",
+ "rank": 2,
+ "topic_name": "Advancements in Materials Engineering",
+ "total_score": 38.913906,
+ "lexical_score": 12.772424,
+ "title_vector_score": 26.141481,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "smart materials technology",
+ "field": "Materials Science",
+ "rank": 3,
+ "topic_name": "Materials Engineering and Processing",
+ "total_score": 38.26541,
+ "lexical_score": 17.2193463,
+ "title_vector_score": 25.492989,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "crystal structure analysis",
+ "field": "Materials Science",
+ "rank": 1,
+ "topic_name": "Crystal structures of chemical compounds",
+ "total_score": 69.25444,
+ "lexical_score": 64.95372520000001,
+ "title_vector_score": 26.929451,
+ "description_vector_score": 12.920805,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Crystal Structure Validation",
+ "score": 0.9378731
+ },
+ {
+ "keyword": "Crystal Structure Refinement",
+ "score": 0.9285393
+ }
+ ]
+ },
+ {
+ "query": "crystal structure analysis",
+ "field": "Materials Science",
+ "rank": 2,
+ "topic_name": "Crystal Structures and Properties",
+ "total_score": 49.759235,
+ "lexical_score": 40.3345587,
+ "title_vector_score": 28.675097,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Inorganic Crystal Structures",
+ "score": 0.93194675
+ },
+ {
+ "keyword": "Crystallographic Computing",
+ "score": 0.875196
+ }
+ ]
+ },
+ {
+ "query": "crystal structure analysis",
+ "field": "Materials Science",
+ "rank": 3,
+ "topic_name": "Protein Interaction Studies and Fluorescence Analysis",
+ "total_score": 44.496048,
+ "lexical_score": 29.736559999999994,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.869335,
+ "matched_keywords": [
+ {
+ "keyword": "Crystal Structure Analysis",
+ "score": 0.9947734
+ }
+ ]
+ },
+ {
+ "query": "carbon nanotubes research",
+ "field": "Materials Science",
+ "rank": 1,
+ "topic_name": "Carbon Nanotubes in Composites",
+ "total_score": 86.160835,
+ "lexical_score": 81.2043901,
+ "title_vector_score": 28.420221,
+ "description_vector_score": 13.52182,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Nanotubes",
+ "score": 0.92829585
+ }
+ ]
+ },
+ {
+ "query": "carbon nanotubes research",
+ "field": "Materials Science",
+ "rank": 2,
+ "topic_name": "Boron and Carbon Nanomaterials Research",
+ "total_score": 50.282555,
+ "lexical_score": 41.9017507,
+ "title_vector_score": 25.790655,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Boron Nitride Nanotubes",
+ "score": 0.848212
+ },
+ {
+ "keyword": "Nanostructures",
+ "score": 0.8411174
+ }
+ ]
+ },
+ {
+ "query": "carbon nanotubes research",
+ "field": "Materials Science",
+ "rank": 3,
+ "topic_name": "Electrochemical sensors and biosensors",
+ "total_score": 44.37568,
+ "lexical_score": 31.3939572,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.41516,
+ "matched_keywords": [
+ {
+ "keyword": "Carbon Nanotubes",
+ "score": 0.97660637
+ },
+ {
+ "keyword": "Nanomaterials",
+ "score": 0.84421635
+ }
+ ]
+ },
+ {
+ "query": "thermal conductivity materials",
+ "field": "Materials Science",
+ "rank": 1,
+ "topic_name": "Thermal properties of materials",
+ "total_score": 82.5912,
+ "lexical_score": 79.8625075,
+ "title_vector_score": 27.31028,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.61136,
+ "matched_keywords": [
+ {
+ "keyword": "Thermal Conductivity",
+ "score": 0.94445443
+ },
+ {
+ "keyword": "Thermal Interface Materials",
+ "score": 0.92361426
+ }
+ ]
+ },
+ {
+ "query": "thermal conductivity materials",
+ "field": "Materials Science",
+ "rank": 2,
+ "topic_name": "Electrical and Thermal Properties of Materials",
+ "total_score": 65.68289,
+ "lexical_score": 26.27055,
+ "title_vector_score": 27.162888,
+ "description_vector_score": 12.249452,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Thermistors",
+ "score": 0.8274307
+ }
+ ]
+ },
+ {
+ "query": "thermal conductivity materials",
+ "field": "Materials Science",
+ "rank": 3,
+ "topic_name": "Thermal Expansion and Ionic Conductivity",
+ "total_score": 65.64907,
+ "lexical_score": 62.8991206,
+ "title_vector_score": 25.777445,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "magnetic materials applications",
+ "field": "Materials Science",
+ "rank": 1,
+ "topic_name": "Magnetic Properties and Applications",
+ "total_score": 94.97833,
+ "lexical_score": 54.3508262,
+ "title_vector_score": 28.87843,
+ "description_vector_score": 12.696991,
+ "keywords_vector_score": 24.565804,
+ "matched_keywords": [
+ {
+ "keyword": "Magnetic Materials",
+ "score": 0.98263216
+ },
+ {
+ "keyword": "Magnetostriction",
+ "score": 0.9017415
+ }
+ ]
+ },
+ {
+ "query": "magnetic materials applications",
+ "field": "Materials Science",
+ "rank": 2,
+ "topic_name": "Magnetic Properties of Alloys",
+ "total_score": 60.5303,
+ "lexical_score": 38.1601783,
+ "title_vector_score": 28.519062,
+ "description_vector_score": 13.506453,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Permanent Magnets",
+ "score": 0.8831954
+ },
+ {
+ "keyword": "Magnetic Nanoparticles",
+ "score": 0.86743355
+ }
+ ]
+ },
+ {
+ "query": "magnetic materials applications",
+ "field": "Materials Science",
+ "rank": 3,
+ "topic_name": "Magnetic properties of thin films",
+ "total_score": 55.982513,
+ "lexical_score": 44.1045062,
+ "title_vector_score": 26.233385,
+ "description_vector_score": 12.854261,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Ferromagnetic Materials",
+ "score": 0.89600825
+ },
+ {
+ "keyword": "Magnetic Tunnel Junctions",
+ "score": 0.83471465
+ }
+ ]
+ },
+ {
+ "query": "macroeconomic policy",
+ "field": "Economics, Econometrics and Finance",
+ "rank": 1,
+ "topic_name": "Monetary Policy and Economic Impact",
+ "total_score": 54.100014,
+ "lexical_score": 33.605173,
+ "title_vector_score": 27.960127,
+ "description_vector_score": 12.75537,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Monetary Policy",
+ "score": 0.925863
+ },
+ {
+ "keyword": "Fiscal Policy",
+ "score": 0.87187195
+ }
+ ]
+ },
+ {
+ "query": "macroeconomic policy",
+ "field": "Economics, Econometrics and Finance",
+ "rank": 2,
+ "topic_name": "Politics, Economics, and Education Policy",
+ "total_score": 49.80293,
+ "lexical_score": 27.569382,
+ "title_vector_score": 0.0,
+ "description_vector_score": 12.8710375,
+ "keywords_vector_score": 23.547375,
+ "matched_keywords": [
+ {
+ "keyword": "economic policy",
+ "score": 0.941895
+ },
+ {
+ "keyword": "monetary policy",
+ "score": 0.91847754
+ }
+ ]
+ },
+ {
+ "query": "macroeconomic policy",
+ "field": "Economics, Econometrics and Finance",
+ "rank": 3,
+ "topic_name": "Economic Analysis and Policy",
+ "total_score": 42.357628,
+ "lexical_score": 23.1493587,
+ "title_vector_score": 27.697693,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Economic Policy",
+ "score": 0.9370105
+ }
+ ]
+ },
+ {
+ "query": "econometric modeling",
+ "field": "Economics, Econometrics and Finance",
+ "rank": 1,
+ "topic_name": "Innovation Policy and R&D",
+ "total_score": 38.406914,
+ "lexical_score": 15.849564,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.557348,
+ "matched_keywords": [
+ {
+ "keyword": "Econometric Evidence",
+ "score": 0.9022939
+ }
+ ]
+ },
+ {
+ "query": "econometric modeling",
+ "field": "Economics, Econometrics and Finance",
+ "rank": 2,
+ "topic_name": "Complex Systems and Time Series Analysis",
+ "total_score": 28.613914,
+ "lexical_score": 9.451486599999999,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.350824,
+ "matched_keywords": [
+ {
+ "keyword": "Econophysics",
+ "score": 0.89403296
+ }
+ ]
+ },
+ {
+ "query": "econometric modeling",
+ "field": "Economics, Econometrics and Finance",
+ "rank": 3,
+ "topic_name": "Economic theories and models",
+ "total_score": 26.316126,
+ "lexical_score": 0.0,
+ "title_vector_score": 26.316126,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "financial market analysis",
+ "field": "Economics, Econometrics and Finance",
+ "rank": 1,
+ "topic_name": "Financial Markets and Investment Strategies",
+ "total_score": 55.36612,
+ "lexical_score": 31.194599,
+ "title_vector_score": 27.79333,
+ "description_vector_score": 12.72299,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "financial market analysis",
+ "field": "Economics, Econometrics and Finance",
+ "rank": 2,
+ "topic_name": "finance, banking, and market dynamics",
+ "total_score": 44.253807,
+ "lexical_score": 29.294987700000004,
+ "title_vector_score": 27.35894,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Financial Crisis",
+ "score": 0.81727433
+ }
+ ]
+ },
+ {
+ "query": "financial market analysis",
+ "field": "Economics, Econometrics and Finance",
+ "rank": 3,
+ "topic_name": "Securities Regulation and Market Practices",
+ "total_score": 43.56399,
+ "lexical_score": 28.181541000000003,
+ "title_vector_score": 26.669125,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "monetary theory",
+ "field": "Economics, Econometrics and Finance",
+ "rank": 1,
+ "topic_name": "Economic theories and models",
+ "total_score": 59.106018,
+ "lexical_score": 17.660052,
+ "title_vector_score": 25.447805,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.167946,
+ "matched_keywords": [
+ {
+ "keyword": "Monetary Equilibrium",
+ "score": 0.8867178
+ }
+ ]
+ },
+ {
+ "query": "monetary theory",
+ "field": "Economics, Econometrics and Finance",
+ "rank": 2,
+ "topic_name": "Monetary Policy and Economic Impact",
+ "total_score": 47.051674,
+ "lexical_score": 37.3873366,
+ "title_vector_score": 25.540195,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Monetary Policy",
+ "score": 0.87952423
+ },
+ {
+ "keyword": "Inflation Dynamics",
+ "score": 0.81094646
+ }
+ ]
+ },
+ {
+ "query": "monetary theory",
+ "field": "Economics, Econometrics and Finance",
+ "rank": 3,
+ "topic_name": "Economic Theory and Institutions",
+ "total_score": 40.18329,
+ "lexical_score": 14.180908,
+ "title_vector_score": 26.002378,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Macroeconomics",
+ "score": 0.83363366
+ },
+ {
+ "keyword": "Institutional Economics",
+ "score": 0.81342196
+ }
+ ]
+ },
+ {
+ "query": "microeconomics principles",
+ "field": "Economics, Econometrics and Finance",
+ "rank": 1,
+ "topic_name": "Engineering and Environmental Studies",
+ "total_score": 36.63776,
+ "lexical_score": 19.285816,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.516459,
+ "matched_keywords": [
+ {
+ "keyword": "Economic Principles",
+ "score": 0.90065837
+ }
+ ]
+ },
+ {
+ "query": "microeconomics principles",
+ "field": "Economics, Econometrics and Finance",
+ "rank": 2,
+ "topic_name": "Economic theories and models",
+ "total_score": 26.108715,
+ "lexical_score": 0.0,
+ "title_vector_score": 26.108715,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "microeconomics principles",
+ "field": "Economics, Econometrics and Finance",
+ "rank": 3,
+ "topic_name": "Economic Theory and Policy",
+ "total_score": 25.553413,
+ "lexical_score": 0.0,
+ "title_vector_score": 25.553413,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "game theory applications",
+ "field": "Economics, Econometrics and Finance",
+ "rank": 1,
+ "topic_name": "Game Theory and Voting Systems",
+ "total_score": 83.88703,
+ "lexical_score": 63.6153666,
+ "title_vector_score": 25.822027,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.571514,
+ "matched_keywords": [
+ {
+ "keyword": "Game Theory",
+ "score": 0.98286057
+ }
+ ]
+ },
+ {
+ "query": "game theory applications",
+ "field": "Economics, Econometrics and Finance",
+ "rank": 2,
+ "topic_name": "Game Theory and Applications",
+ "total_score": 76.65837,
+ "lexical_score": 71.15752760000001,
+ "title_vector_score": 29.640957,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Game Theory",
+ "score": 0.9827955
+ },
+ {
+ "keyword": "Coordination Games",
+ "score": 0.84570765
+ }
+ ]
+ },
+ {
+ "query": "game theory applications",
+ "field": "Economics, Econometrics and Finance",
+ "rank": 3,
+ "topic_name": "Information and Cyber Security",
+ "total_score": 42.88584,
+ "lexical_score": 26.5243264,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.571514,
+ "matched_keywords": [
+ {
+ "keyword": "Game Theory",
+ "score": 0.98286057
+ }
+ ]
+ },
+ {
+ "query": "inflation rates forecast",
+ "field": "Economics, Econometrics and Finance",
+ "rank": 1,
+ "topic_name": "Monetary Policy and Economic Impact",
+ "total_score": 51.293697,
+ "lexical_score": 42.4372587,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.463566,
+ "matched_keywords": [
+ {
+ "keyword": "Inflation Dynamics",
+ "score": 0.89854264
+ },
+ {
+ "keyword": "Interest Rates",
+ "score": 0.8312795
+ }
+ ]
+ },
+ {
+ "query": "inflation rates forecast",
+ "field": "Economics, Econometrics and Finance",
+ "rank": 2,
+ "topic_name": "Cosmology and Gravitation Theories",
+ "total_score": 37.00553,
+ "lexical_score": 21.647665,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.12088,
+ "matched_keywords": [
+ {
+ "keyword": "Inflation",
+ "score": 0.9248352
+ }
+ ]
+ },
+ {
+ "query": "inflation rates forecast",
+ "field": "Economics, Econometrics and Finance",
+ "rank": 3,
+ "topic_name": "Advanced Statistical Methods and Models",
+ "total_score": 35.56694,
+ "lexical_score": 20.816782699999997,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 21.682293,
+ "matched_keywords": [
+ {
+ "keyword": "Variance Inflation Factor",
+ "score": 0.8672917
+ }
+ ]
+ },
+ {
+ "query": "labor economics",
+ "field": "Economics, Econometrics and Finance",
+ "rank": 1,
+ "topic_name": "Labor market dynamics and wage inequality",
+ "total_score": 55.39061,
+ "lexical_score": 28.8405835,
+ "title_vector_score": 27.212555,
+ "description_vector_score": 12.415366,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Labor Market",
+ "score": 0.9365516
+ },
+ {
+ "keyword": "Unemployment",
+ "score": 0.853863
+ }
+ ]
+ },
+ {
+ "query": "labor economics",
+ "field": "Economics, Econometrics and Finance",
+ "rank": 2,
+ "topic_name": "Labor Market and Education",
+ "total_score": 45.69785,
+ "lexical_score": 32.0363085,
+ "title_vector_score": 26.931095,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Labor Migration",
+ "score": 0.8346
+ }
+ ]
+ },
+ {
+ "query": "labor economics",
+ "field": "Economics, Econometrics and Finance",
+ "rank": 3,
+ "topic_name": "Labor Law and Work Dynamics",
+ "total_score": 44.37014,
+ "lexical_score": 35.796962,
+ "title_vector_score": 27.236095,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Labor Market Reform",
+ "score": 0.90079546
+ },
+ {
+ "keyword": "Labor Rights",
+ "score": 0.8275013
+ }
+ ]
+ },
+ {
+ "query": "behavioral finance",
+ "field": "Economics, Econometrics and Finance",
+ "rank": 1,
+ "topic_name": "Decision-Making and Behavioral Economics",
+ "total_score": 56.652847,
+ "lexical_score": 23.465456,
+ "title_vector_score": 25.99295,
+ "description_vector_score": 12.299748,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "behavioral finance",
+ "field": "Economics, Econometrics and Finance",
+ "rank": 2,
+ "topic_name": "Experimental Behavioral Economics Studies",
+ "total_score": 46.716858,
+ "lexical_score": 24.9695607,
+ "title_vector_score": 26.607162,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "behavioral finance",
+ "field": "Economics, Econometrics and Finance",
+ "rank": 3,
+ "topic_name": "Financial Markets and Investment Strategies",
+ "total_score": 45.47913,
+ "lexical_score": 32.2863732,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.83707,
+ "matched_keywords": [
+ {
+ "keyword": "Behavioral Finance",
+ "score": 0.9934828
+ }
+ ]
+ },
+ {
+ "query": "portfolio optimization",
+ "field": "Economics, Econometrics and Finance",
+ "rank": 1,
+ "topic_name": "Risk and Portfolio Optimization",
+ "total_score": 102.424576,
+ "lexical_score": 77.20224110000001,
+ "title_vector_score": 26.34465,
+ "description_vector_score": 12.208882,
+ "keywords_vector_score": 24.58675,
+ "matched_keywords": [
+ {
+ "keyword": "Portfolio Optimization",
+ "score": 0.98346996
+ },
+ {
+ "keyword": "Robust Optimization",
+ "score": 0.8686242
+ }
+ ]
+ },
+ {
+ "query": "portfolio optimization",
+ "field": "Economics, Econometrics and Finance",
+ "rank": 2,
+ "topic_name": "Management and Optimization Techniques",
+ "total_score": 40.646183,
+ "lexical_score": 14.11807,
+ "title_vector_score": 26.528112,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "portfolio optimization",
+ "field": "Economics, Econometrics and Finance",
+ "rank": 3,
+ "topic_name": "Optimization and Variational Analysis",
+ "total_score": 40.372875,
+ "lexical_score": 25.5217262,
+ "title_vector_score": 26.254807,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Optimization",
+ "score": 0.8964875
+ }
+ ]
+ },
+ {
+ "query": "international trade agreements",
+ "field": "Economics, Econometrics and Finance",
+ "rank": 1,
+ "topic_name": "Law, logistics, and international trade",
+ "total_score": 71.073654,
+ "lexical_score": 64.0759577,
+ "title_vector_score": 25.70911,
+ "description_vector_score": 12.398858,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Trade Contracts",
+ "score": 0.90313816
+ }
+ ]
+ },
+ {
+ "query": "international trade agreements",
+ "field": "Economics, Econometrics and Finance",
+ "rank": 2,
+ "topic_name": "World Trade Organization Law",
+ "total_score": 70.25231,
+ "lexical_score": 50.582592700000006,
+ "title_vector_score": 27.203823,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.33203,
+ "matched_keywords": [
+ {
+ "keyword": "International Trade Law",
+ "score": 0.9332812
+ },
+ {
+ "keyword": "Trade Policy",
+ "score": 0.8922727
+ }
+ ]
+ },
+ {
+ "query": "international trade agreements",
+ "field": "Economics, Econometrics and Finance",
+ "rank": 3,
+ "topic_name": "Global trade and economics",
+ "total_score": 59.083813,
+ "lexical_score": 50.5907307,
+ "title_vector_score": 26.639114,
+ "description_vector_score": 12.165084,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "International Trade",
+ "score": 0.917629
+ },
+ {
+ "keyword": "Trade Liberalization",
+ "score": 0.8419566
+ }
+ ]
+ },
+ {
+ "query": "fiscal policy impact",
+ "field": "Economics, Econometrics and Finance",
+ "rank": 1,
+ "topic_name": "Fiscal Policies and Political Economy",
+ "total_score": 64.51094,
+ "lexical_score": 57.639775,
+ "title_vector_score": 27.547073,
+ "description_vector_score": 13.028855,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Fiscal Policy",
+ "score": 0.9385674
+ },
+ {
+ "keyword": "Procyclical Fiscal Policy",
+ "score": 0.8661859
+ }
+ ]
+ },
+ {
+ "query": "fiscal policy impact",
+ "field": "Economics, Econometrics and Finance",
+ "rank": 2,
+ "topic_name": "Economic and Fiscal Studies",
+ "total_score": 60.896423,
+ "lexical_score": 47.2941968,
+ "title_vector_score": 27.358675,
+ "description_vector_score": 12.453608,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Fiscal Policy",
+ "score": 0.93862987
+ },
+ {
+ "keyword": "Government Spending",
+ "score": 0.84423184
+ }
+ ]
+ },
+ {
+ "query": "fiscal policy impact",
+ "field": "Economics, Econometrics and Finance",
+ "rank": 3,
+ "topic_name": "Monetary Policy and Economic Impact",
+ "total_score": 50.30483,
+ "lexical_score": 54.447348000000005,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.467493,
+ "matched_keywords": [
+ {
+ "keyword": "Fiscal Policy",
+ "score": 0.9386997
+ },
+ {
+ "keyword": "Monetary Policy",
+ "score": 0.8362932
+ }
+ ]
+ },
+ {
+ "query": "time series analysis",
+ "field": "Economics, Econometrics and Finance",
+ "rank": 1,
+ "topic_name": "Time Series Analysis and Forecasting",
+ "total_score": 89.2096,
+ "lexical_score": 84.7731333,
+ "title_vector_score": 28.002691,
+ "description_vector_score": 12.223606,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Time Series",
+ "score": 0.95701647
+ }
+ ]
+ },
+ {
+ "query": "time series analysis",
+ "field": "Economics, Econometrics and Finance",
+ "rank": 2,
+ "topic_name": "Complex Systems and Time Series Analysis",
+ "total_score": 72.9656,
+ "lexical_score": 79.51918429999999,
+ "title_vector_score": 27.902763,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Nonstationary Time Series",
+ "score": 0.89258647
+ }
+ ]
+ },
+ {
+ "query": "time series analysis",
+ "field": "Economics, Econometrics and Finance",
+ "rank": 3,
+ "topic_name": "Data Analysis with R",
+ "total_score": 49.923737,
+ "lexical_score": 48.556881700000005,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.995714,
+ "matched_keywords": [
+ {
+ "keyword": "time series analysis",
+ "score": 0.9998286
+ }
+ ]
+ },
+ {
+ "query": "asset pricing models",
+ "field": "Economics, Econometrics and Finance",
+ "rank": 1,
+ "topic_name": "Financial Markets and Investment Strategies",
+ "total_score": 84.73133,
+ "lexical_score": 43.1318131,
+ "title_vector_score": 25.15764,
+ "description_vector_score": 12.686441,
+ "keywords_vector_score": 23.52749,
+ "matched_keywords": [
+ {
+ "keyword": "Asset Pricing",
+ "score": 0.94109964
+ }
+ ]
+ },
+ {
+ "query": "asset pricing models",
+ "field": "Economics, Econometrics and Finance",
+ "rank": 2,
+ "topic_name": "Diverse Scientific and Economic Studies",
+ "total_score": 52.944324,
+ "lexical_score": 45.0180431,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.51781,
+ "matched_keywords": [
+ {
+ "keyword": "Asset Pricing",
+ "score": 0.94071245
+ },
+ {
+ "keyword": "Financial Analysis",
+ "score": 0.84186864
+ }
+ ]
+ },
+ {
+ "query": "asset pricing models",
+ "field": "Economics, Econometrics and Finance",
+ "rank": 3,
+ "topic_name": "Economic theories and models",
+ "total_score": 48.438828,
+ "lexical_score": 61.252708500000004,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.526848,
+ "matched_keywords": [
+ {
+ "keyword": "Asset Pricing",
+ "score": 0.9410739
+ }
+ ]
+ },
+ {
+ "query": "poverty reduction strategies",
+ "field": "Economics, Econometrics and Finance",
+ "rank": 1,
+ "topic_name": "Poverty, Education, and Child Welfare",
+ "total_score": 84.12334,
+ "lexical_score": 49.3675296,
+ "title_vector_score": 25.929115,
+ "description_vector_score": 12.3304,
+ "keywords_vector_score": 24.352343,
+ "matched_keywords": [
+ {
+ "keyword": "Poverty Reduction",
+ "score": 0.9740937
+ }
+ ]
+ },
+ {
+ "query": "poverty reduction strategies",
+ "field": "Economics, Econometrics and Finance",
+ "rank": 2,
+ "topic_name": "Income, Poverty, and Inequality",
+ "total_score": 48.979805,
+ "lexical_score": 44.5616727,
+ "title_vector_score": 25.418493,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Poverty Measurement",
+ "score": 0.88854337
+ },
+ {
+ "keyword": "Multidimensional Poverty",
+ "score": 0.8755548
+ }
+ ]
+ },
+ {
+ "query": "poverty reduction strategies",
+ "field": "Economics, Econometrics and Finance",
+ "rank": 3,
+ "topic_name": "Microfinance and Financial Inclusion",
+ "total_score": 43.924034,
+ "lexical_score": 28.938948200000006,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.352343,
+ "matched_keywords": [
+ {
+ "keyword": "Poverty Reduction",
+ "score": 0.9740937
+ }
+ ]
+ },
+ {
+ "query": "economic growth models",
+ "field": "Economics, Econometrics and Finance",
+ "rank": 1,
+ "topic_name": "Economic Growth and Development",
+ "total_score": 57.815582,
+ "lexical_score": 36.2712991,
+ "title_vector_score": 27.611675,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "economic growth models",
+ "field": "Economics, Econometrics and Finance",
+ "rank": 2,
+ "topic_name": "Economic Growth and Fiscal Policies",
+ "total_score": 54.99617,
+ "lexical_score": 47.2226539,
+ "title_vector_score": 27.420002,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Economic Growth",
+ "score": 0.9461217
+ }
+ ]
+ },
+ {
+ "query": "economic growth models",
+ "field": "Economics, Econometrics and Finance",
+ "rank": 3,
+ "topic_name": "Fiscal Policy and Economic Growth",
+ "total_score": 54.587677,
+ "lexical_score": 49.3872421,
+ "title_vector_score": 27.01151,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Economic Growth",
+ "score": 0.94634724
+ }
+ ]
+ },
+ {
+ "query": "corporate finance theory",
+ "field": "Economics, Econometrics and Finance",
+ "rank": 1,
+ "topic_name": "Corporate Finance and Governance",
+ "total_score": 77.199844,
+ "lexical_score": 50.558093,
+ "title_vector_score": 27.893814,
+ "description_vector_score": 12.214984,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Institutional Investors",
+ "score": 0.8290405
+ },
+ {
+ "keyword": "Corporate Governance",
+ "score": 0.822382
+ }
+ ]
+ },
+ {
+ "query": "corporate finance theory",
+ "field": "Economics, Econometrics and Finance",
+ "rank": 2,
+ "topic_name": "Financial Analysis and Corporate Governance",
+ "total_score": 74.19885,
+ "lexical_score": 50.06893960000001,
+ "title_vector_score": 27.611431,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.147017,
+ "matched_keywords": [
+ {
+ "keyword": "Corporate Finance",
+ "score": 0.96588063
+ },
+ {
+ "keyword": "Financial Analysis",
+ "score": 0.87972593
+ }
+ ]
+ },
+ {
+ "query": "corporate finance theory",
+ "field": "Economics, Econometrics and Finance",
+ "rank": 3,
+ "topic_name": "Working Capital and Financial Performance",
+ "total_score": 43.523697,
+ "lexical_score": 24.275762999999998,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.147017,
+ "matched_keywords": [
+ {
+ "keyword": "Corporate Finance",
+ "score": 0.96588063
+ },
+ {
+ "keyword": "Financial Performance",
+ "score": 0.8405204
+ }
+ ]
+ },
+ {
+ "query": "cryptocurrency economics",
+ "field": "Economics, Econometrics and Finance",
+ "rank": 1,
+ "topic_name": "Blockchain Technology Applications and Security",
+ "total_score": 48.371597,
+ "lexical_score": 0.0,
+ "title_vector_score": 24.895176,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.476421,
+ "matched_keywords": [
+ {
+ "keyword": "Cryptocurrencies",
+ "score": 0.9390569
+ },
+ {
+ "keyword": "Blockchain",
+ "score": 0.87170935
+ }
+ ]
+ },
+ {
+ "query": "cryptocurrency economics",
+ "field": "Economics, Econometrics and Finance",
+ "rank": 2,
+ "topic_name": "Digital Platforms and Economics",
+ "total_score": 41.813156,
+ "lexical_score": 17.107674,
+ "title_vector_score": 24.705484,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "cryptocurrency economics",
+ "field": "Economics, Econometrics and Finance",
+ "rank": 3,
+ "topic_name": "Security, Politics, and Digital Transformation",
+ "total_score": 40.167194,
+ "lexical_score": 24.53315,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.630726,
+ "matched_keywords": [
+ {
+ "keyword": "Cryptocurrency",
+ "score": 0.94522905
+ }
+ ]
+ },
+ {
+ "query": "market equilibrium",
+ "field": "Economics, Econometrics and Finance",
+ "rank": 1,
+ "topic_name": "Market Dynamics and Volatility",
+ "total_score": 44.50808,
+ "lexical_score": 30.0075122,
+ "title_vector_score": 26.003294,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Commodity Markets",
+ "score": 0.8545294
+ }
+ ]
+ },
+ {
+ "query": "market equilibrium",
+ "field": "Economics, Econometrics and Finance",
+ "rank": 2,
+ "topic_name": "Economic theories and models",
+ "total_score": 31.683605,
+ "lexical_score": 28.867883499999998,
+ "title_vector_score": 0.0,
+ "description_vector_score": 12.541687,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Monetary Equilibrium",
+ "score": 0.8695872
+ }
+ ]
+ },
+ {
+ "query": "market equilibrium",
+ "field": "Economics, Econometrics and Finance",
+ "rank": 3,
+ "topic_name": "Cinema and Media Studies",
+ "total_score": 30.296621,
+ "lexical_score": 11.167510400000001,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.56651,
+ "matched_keywords": [
+ {
+ "keyword": "Market Dynamics",
+ "score": 0.90266037
+ }
+ ]
+ },
+ {
+ "query": "public finance management",
+ "field": "Economics, Econometrics and Finance",
+ "rank": 1,
+ "topic_name": "Management, Economics, and Public Policy",
+ "total_score": 50.700386,
+ "lexical_score": 26.2485878,
+ "title_vector_score": 26.419172,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "public finance management",
+ "field": "Economics, Econometrics and Finance",
+ "rank": 2,
+ "topic_name": "Corporate Finance and Governance",
+ "total_score": 45.771175,
+ "lexical_score": 19.052568,
+ "title_vector_score": 26.718607,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "public finance management",
+ "field": "Economics, Econometrics and Finance",
+ "rank": 3,
+ "topic_name": "Finance, Taxation, and Governance",
+ "total_score": 45.727715,
+ "lexical_score": 33.221057,
+ "title_vector_score": 26.675148,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Public Policies",
+ "score": 0.8128989
+ }
+ ]
+ },
+ {
+ "query": "physical therapy techniques",
+ "field": "Health Professions",
+ "rank": 1,
+ "topic_name": "Physical Education and Training Studies",
+ "total_score": 41.686466,
+ "lexical_score": 34.0993296,
+ "title_vector_score": 25.916155,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Physical Education",
+ "score": 0.85184264
+ },
+ {
+ "keyword": "Athletic Training",
+ "score": 0.83860135
+ }
+ ]
+ },
+ {
+ "query": "physical therapy techniques",
+ "field": "Health Professions",
+ "rank": 2,
+ "topic_name": "Temporomandibular Joint Disorders",
+ "total_score": 39.622826,
+ "lexical_score": 15.283308300000002,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.339516,
+ "matched_keywords": [
+ {
+ "keyword": "Physical Therapy Interventions",
+ "score": 0.9735806
+ }
+ ]
+ },
+ {
+ "query": "physical therapy techniques",
+ "field": "Health Professions",
+ "rank": 3,
+ "topic_name": "Sports Science and Education",
+ "total_score": 32.442177,
+ "lexical_score": 14.1852305,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.693306,
+ "matched_keywords": [
+ {
+ "keyword": "Physical Training",
+ "score": 0.90773225
+ }
+ ]
+ },
+ {
+ "query": "occupational therapy interventions",
+ "field": "Health Professions",
+ "rank": 1,
+ "topic_name": "Occupational Therapy Practice and Research",
+ "total_score": 74.01272,
+ "lexical_score": 67.5047314,
+ "title_vector_score": 28.820793,
+ "description_vector_score": 12.677751,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Therapy Practice",
+ "score": 0.85156345
+ }
+ ]
+ },
+ {
+ "query": "occupational therapy interventions",
+ "field": "Health Professions",
+ "rank": 2,
+ "topic_name": "Writing and Handwriting Education",
+ "total_score": 48.793472,
+ "lexical_score": 29.7106104,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.145842,
+ "matched_keywords": [
+ {
+ "keyword": "Occupational Therapy",
+ "score": 0.96583366
+ }
+ ]
+ },
+ {
+ "query": "occupational therapy interventions",
+ "field": "Health Professions",
+ "rank": 3,
+ "topic_name": "Cystic Fibrosis Research Advances",
+ "total_score": 31.879065,
+ "lexical_score": 13.8963304,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 21.627838,
+ "matched_keywords": [
+ {
+ "keyword": "Therapeutic Interventions",
+ "score": 0.8651135
+ }
+ ]
+ },
+ {
+ "query": "speech language pathology",
+ "field": "Health Professions",
+ "rank": 1,
+ "topic_name": "Language Development and Disorders",
+ "total_score": 74.99988,
+ "lexical_score": 55.5211647,
+ "title_vector_score": 25.855272,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.410643,
+ "matched_keywords": [
+ {
+ "keyword": "Speech and Language Disorder",
+ "score": 0.9364257
+ },
+ {
+ "keyword": "Specific Language Impairment",
+ "score": 0.82904124
+ }
+ ]
+ },
+ {
+ "query": "speech language pathology",
+ "field": "Health Professions",
+ "rank": 2,
+ "topic_name": "Voice and Speech Disorders",
+ "total_score": 70.01905,
+ "lexical_score": 38.283915,
+ "title_vector_score": 27.10345,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 21.831459,
+ "matched_keywords": [
+ {
+ "keyword": "Speech Therapy",
+ "score": 0.87325835
+ },
+ {
+ "keyword": "Voice Disorders",
+ "score": 0.8724549
+ }
+ ]
+ },
+ {
+ "query": "speech language pathology",
+ "field": "Health Professions",
+ "rank": 3,
+ "topic_name": "Spanish Linguistics and Language Studies",
+ "total_score": 35.8335,
+ "lexical_score": 31.9610245,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 21.766407,
+ "matched_keywords": [
+ {
+ "keyword": "Dialectology",
+ "score": 0.87065625
+ }
+ ]
+ },
+ {
+ "query": "radiologic technology",
+ "field": "Health Professions",
+ "rank": 1,
+ "topic_name": "Advanced Radiotherapy Techniques",
+ "total_score": 42.892395,
+ "lexical_score": 2.7579718,
+ "title_vector_score": 27.43314,
+ "description_vector_score": 12.7012825,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Radiotherapy Physics",
+ "score": 0.9019301
+ },
+ {
+ "keyword": "Image-Guided Radiotherapy",
+ "score": 0.8770504
+ }
+ ]
+ },
+ {
+ "query": "radiologic technology",
+ "field": "Health Professions",
+ "rank": 2,
+ "topic_name": "Space Technology and Applications",
+ "total_score": 35.934216,
+ "lexical_score": 12.427246,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.50697,
+ "matched_keywords": [
+ {
+ "keyword": "Radiography",
+ "score": 0.94027877
+ }
+ ]
+ },
+ {
+ "query": "radiologic technology",
+ "field": "Health Professions",
+ "rank": 3,
+ "topic_name": "Radiology practices and education",
+ "total_score": 25.54578,
+ "lexical_score": 0.0,
+ "title_vector_score": 25.54578,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Radiologist Workload",
+ "score": 0.8707359
+ },
+ {
+ "keyword": "Patient-Centered Radiology",
+ "score": 0.8526721
+ }
+ ]
+ },
+ {
+ "query": "emergency medical services",
+ "field": "Health Professions",
+ "rank": 1,
+ "topic_name": "Emergency Medicine Education and Research",
+ "total_score": 70.346725,
+ "lexical_score": 38.195249000000004,
+ "title_vector_score": 26.610016,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.91128,
+ "matched_keywords": [
+ {
+ "keyword": "Emergency Medicine",
+ "score": 0.9564512
+ },
+ {
+ "keyword": "Healthcare",
+ "score": 0.81301785
+ }
+ ]
+ },
+ {
+ "query": "emergency medical services",
+ "field": "Health Professions",
+ "rank": 2,
+ "topic_name": "Emergency and Acute Care Studies",
+ "total_score": 47.83047,
+ "lexical_score": 35.670283,
+ "title_vector_score": 28.005037,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Emergency Department Crowding",
+ "score": 0.8459797
+ },
+ {
+ "keyword": "Ambulance Diversion",
+ "score": 0.8415184
+ }
+ ]
+ },
+ {
+ "query": "emergency medical services",
+ "field": "Health Professions",
+ "rank": 3,
+ "topic_name": "Trauma and Emergency Care Studies",
+ "total_score": 46.00257,
+ "lexical_score": 35.9852137,
+ "title_vector_score": 26.177137,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Emergency Surgery",
+ "score": 0.87678957
+ },
+ {
+ "keyword": "Prehospital Care",
+ "score": 0.8297262
+ }
+ ]
+ },
+ {
+ "query": "healthcare administration",
+ "field": "Health Professions",
+ "rank": 1,
+ "topic_name": "Competency Development and Evaluation",
+ "total_score": 43.7437,
+ "lexical_score": 27.5122675,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.590958,
+ "matched_keywords": [
+ {
+ "keyword": "Healthcare Administration",
+ "score": 0.9836383
+ }
+ ]
+ },
+ {
+ "query": "healthcare administration",
+ "field": "Health Professions",
+ "rank": 2,
+ "topic_name": "Healthcare Policy and Management",
+ "total_score": 41.608162,
+ "lexical_score": 14.445637,
+ "title_vector_score": 27.162523,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Health Care Utilization",
+ "score": 0.8798032
+ },
+ {
+ "keyword": "Accountable Care Organizations",
+ "score": 0.8618882
+ }
+ ]
+ },
+ {
+ "query": "healthcare administration",
+ "field": "Health Professions",
+ "rank": 3,
+ "topic_name": "Healthcare Systems and Practices",
+ "total_score": 41.354923,
+ "lexical_score": 28.922593,
+ "title_vector_score": 26.909286,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Healthcare Management",
+ "score": 0.949131
+ },
+ {
+ "keyword": "Healthcare Policy",
+ "score": 0.86735153
+ }
+ ]
+ },
+ {
+ "query": "audiology assessments",
+ "field": "Health Professions",
+ "rank": 1,
+ "topic_name": "Hearing Loss and Rehabilitation",
+ "total_score": 61.503426,
+ "lexical_score": 0.0,
+ "title_vector_score": 26.784954,
+ "description_vector_score": 12.155167,
+ "keywords_vector_score": 22.563303,
+ "matched_keywords": [
+ {
+ "keyword": "Auditory Processing",
+ "score": 0.9025321
+ },
+ {
+ "keyword": "Hearing Loss",
+ "score": 0.90068054
+ }
+ ]
+ },
+ {
+ "query": "audiology assessments",
+ "field": "Health Professions",
+ "rank": 2,
+ "topic_name": "Hearing, Cochlea, Tinnitus, Genetics",
+ "total_score": 34.82317,
+ "lexical_score": 0.0,
+ "title_vector_score": 0.0,
+ "description_vector_score": 12.283477,
+ "keywords_vector_score": 22.539694,
+ "matched_keywords": [
+ {
+ "keyword": "Auditory System",
+ "score": 0.9015877
+ },
+ {
+ "keyword": "Hearing Loss",
+ "score": 0.90068054
+ }
+ ]
+ },
+ {
+ "query": "audiology assessments",
+ "field": "Health Professions",
+ "rank": 3,
+ "topic_name": "Human auditory perception and evaluation",
+ "total_score": 27.620401,
+ "lexical_score": 0.0,
+ "title_vector_score": 27.620401,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Bone-Conducted Hearing",
+ "score": 0.8628149
+ },
+ {
+ "keyword": "High-Frequency Sounds",
+ "score": 0.8162153
+ }
+ ]
+ },
+ {
+ "query": "rehabilitation sciences",
+ "field": "Health Professions",
+ "rank": 1,
+ "topic_name": "Medical Practices and Rehabilitation",
+ "total_score": 47.006477,
+ "lexical_score": 38.40446970000001,
+ "title_vector_score": 27.290018,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Rehabilitation",
+ "score": 0.9574194
+ }
+ ]
+ },
+ {
+ "query": "rehabilitation sciences",
+ "field": "Health Professions",
+ "rank": 2,
+ "topic_name": "Musculoskeletal Disorders and Rehabilitation",
+ "total_score": 44.781338,
+ "lexical_score": 37.122972000000004,
+ "title_vector_score": 25.064878,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Rehabilitation Medicine",
+ "score": 0.9404247
+ }
+ ]
+ },
+ {
+ "query": "rehabilitation sciences",
+ "field": "Health Professions",
+ "rank": 3,
+ "topic_name": "Nerve Injury and Rehabilitation",
+ "total_score": 44.09031,
+ "lexical_score": 19.71646,
+ "title_vector_score": 24.373848,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "clinical nutrition",
+ "field": "Health Professions",
+ "rank": 1,
+ "topic_name": "Clinical Nutrition and Gastroenterology",
+ "total_score": 75.636116,
+ "lexical_score": 62.5653185,
+ "title_vector_score": 26.93661,
+ "description_vector_score": 12.224818,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Nutrition Support Therapy",
+ "score": 0.9006417
+ },
+ {
+ "keyword": "Enteral Nutrition",
+ "score": 0.8967433
+ }
+ ]
+ },
+ {
+ "query": "clinical nutrition",
+ "field": "Health Professions",
+ "rank": 2,
+ "topic_name": "Nutrition and Health Studies",
+ "total_score": 45.016838,
+ "lexical_score": 33.024702,
+ "title_vector_score": 27.909164,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Nutrition",
+ "score": 0.9312463
+ },
+ {
+ "keyword": "Dietary Supplements",
+ "score": 0.88535404
+ }
+ ]
+ },
+ {
+ "query": "clinical nutrition",
+ "field": "Health Professions",
+ "rank": 3,
+ "topic_name": "Agricultural and Food Production Studies",
+ "total_score": 34.0853,
+ "lexical_score": 16.8848173,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.281883,
+ "matched_keywords": [
+ {
+ "keyword": "Nutrition",
+ "score": 0.93127537
+ }
+ ]
+ },
+ {
+ "query": "paramedic protocols",
+ "field": "Health Professions",
+ "rank": 1,
+ "topic_name": "Collaborative Teaching and Inclusion",
+ "total_score": 22.682404,
+ "lexical_score": 0.0,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.682404,
+ "matched_keywords": [
+ {
+ "keyword": "Paraprofessionals",
+ "score": 0.9072962
+ }
+ ]
+ },
+ {
+ "query": "paramedic protocols",
+ "field": "Health Professions",
+ "rank": 2,
+ "topic_name": "Wireless Networks and Protocols",
+ "total_score": 22.504187,
+ "lexical_score": 27.9283055,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "paramedic protocols",
+ "field": "Health Professions",
+ "rank": 3,
+ "topic_name": "Advanced Authentication Protocols Security",
+ "total_score": 22.504187,
+ "lexical_score": 40.201457000000005,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "respiratory therapy management",
+ "field": "Health Professions",
+ "rank": 1,
+ "topic_name": "Respiratory Support and Mechanisms",
+ "total_score": 59.024788,
+ "lexical_score": 45.5622939,
+ "title_vector_score": 26.433084,
+ "description_vector_score": 12.875243,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Ventilator-induced Lung Injury",
+ "score": 0.8461795
+ },
+ {
+ "keyword": "Acute Respiratory Distress Syndrome",
+ "score": 0.8436699
+ }
+ ]
+ },
+ {
+ "query": "respiratory therapy management",
+ "field": "Health Professions",
+ "rank": 2,
+ "topic_name": "Inhalation and Respiratory Drug Delivery",
+ "total_score": 43.27327,
+ "lexical_score": 43.2173306,
+ "title_vector_score": 25.272144,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Pulmonary Drug Delivery",
+ "score": 0.84844065
+ },
+ {
+ "keyword": "Respiratory Tract Deposition",
+ "score": 0.821898
+ }
+ ]
+ },
+ {
+ "query": "respiratory therapy management",
+ "field": "Health Professions",
+ "rank": 3,
+ "topic_name": "Respiratory and Cough-Related Research",
+ "total_score": 43.193733,
+ "lexical_score": 19.9342278,
+ "title_vector_score": 25.192608,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "health informatics systems",
+ "field": "Health Professions",
+ "rank": 1,
+ "topic_name": "Electronic Health Records Systems",
+ "total_score": 60.37278,
+ "lexical_score": 36.3855634,
+ "title_vector_score": 27.147024,
+ "description_vector_score": 12.388648,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Health Information Exchange",
+ "score": 0.9045341
+ },
+ {
+ "keyword": "Electronic Health Records",
+ "score": 0.8805227
+ }
+ ]
+ },
+ {
+ "query": "health informatics systems",
+ "field": "Health Professions",
+ "rank": 2,
+ "topic_name": "Medical Coding and Health Information",
+ "total_score": 58.63343,
+ "lexical_score": 13.9822964,
+ "title_vector_score": 25.576359,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.466206,
+ "matched_keywords": [
+ {
+ "keyword": "Health Information Management",
+ "score": 0.9386482
+ }
+ ]
+ },
+ {
+ "query": "health informatics systems",
+ "field": "Health Professions",
+ "rank": 3,
+ "topic_name": "Maternal and Neonatal Healthcare",
+ "total_score": 38.16228,
+ "lexical_score": 19.3693268,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.586487,
+ "matched_keywords": [
+ {
+ "keyword": "Health Information Systems",
+ "score": 0.9834595
+ }
+ ]
+ },
+ {
+ "query": "dietetics practice",
+ "field": "Health Professions",
+ "rank": 1,
+ "topic_name": "Dietetics, Nutrition, and Education",
+ "total_score": 78.594086,
+ "lexical_score": 65.7976575,
+ "title_vector_score": 26.816626,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.824448,
+ "matched_keywords": [
+ {
+ "keyword": "Dietetics",
+ "score": 0.9529779
+ },
+ {
+ "keyword": "Nutrition Care Process",
+ "score": 0.85153127
+ }
+ ]
+ },
+ {
+ "query": "dietetics practice",
+ "field": "Health Professions",
+ "rank": 2,
+ "topic_name": "Nutritional Studies and Diet",
+ "total_score": 26.535608,
+ "lexical_score": 0.0,
+ "title_vector_score": 26.535608,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Healthy Eating Index",
+ "score": 0.8739462
+ },
+ {
+ "keyword": "Diet Quality",
+ "score": 0.8662152
+ }
+ ]
+ },
+ {
+ "query": "dietetics practice",
+ "field": "Health Professions",
+ "rank": 3,
+ "topic_name": "Obesity, Physical Activity, Diet",
+ "total_score": 26.460943,
+ "lexical_score": 0.0,
+ "title_vector_score": 26.460943,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Dietary Risks",
+ "score": 0.8217299
+ }
+ ]
+ },
+ {
+ "query": "patient care quality",
+ "field": "Health Professions",
+ "rank": 1,
+ "topic_name": "Hospital Admissions and Outcomes",
+ "total_score": 47.484528,
+ "lexical_score": 35.727228000000004,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.243063,
+ "matched_keywords": [
+ {
+ "keyword": "Quality of Care",
+ "score": 0.9697225
+ },
+ {
+ "keyword": "Continuity of Care",
+ "score": 0.8460798
+ }
+ ]
+ },
+ {
+ "query": "patient care quality",
+ "field": "Health Professions",
+ "rank": 2,
+ "topic_name": "Global Healthcare and Medical Tourism",
+ "total_score": 47.04685,
+ "lexical_score": 33.6500471,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.235905,
+ "matched_keywords": [
+ {
+ "keyword": "Quality of Care",
+ "score": 0.96943617
+ },
+ {
+ "keyword": "Patient Experience",
+ "score": 0.84986305
+ }
+ ]
+ },
+ {
+ "query": "patient care quality",
+ "field": "Health Professions",
+ "rank": 3,
+ "topic_name": "Interpreting and Communication in Healthcare",
+ "total_score": 43.527103,
+ "lexical_score": 30.1289087,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.237299,
+ "matched_keywords": [
+ {
+ "keyword": "Quality of Care",
+ "score": 0.96949196
+ }
+ ]
+ },
+ {
+ "query": "medical laboratory technology",
+ "field": "Health Professions",
+ "rank": 1,
+ "topic_name": "Anatomy and Medical Technology",
+ "total_score": 53.072025,
+ "lexical_score": 43.9119746,
+ "title_vector_score": 25.910038,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Medical Applications",
+ "score": 0.84536386
+ }
+ ]
+ },
+ {
+ "query": "medical laboratory technology",
+ "field": "Health Professions",
+ "rank": 2,
+ "topic_name": "Scientific Research and Technology",
+ "total_score": 37.656017,
+ "lexical_score": 14.8267752,
+ "title_vector_score": 25.228771,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "medical laboratory technology",
+ "field": "Health Professions",
+ "rank": 3,
+ "topic_name": "Healthcare Regulation",
+ "total_score": 30.24812,
+ "lexical_score": 11.6887655,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.41274,
+ "matched_keywords": [
+ {
+ "keyword": "Medical Devices",
+ "score": 0.89650965
+ }
+ ]
+ },
+ {
+ "query": "orthotics and prosthetics",
+ "field": "Health Professions",
+ "rank": 1,
+ "topic_name": "Prosthetics and Rehabilitation Robotics",
+ "total_score": 76.43454,
+ "lexical_score": 45.39763460249,
+ "title_vector_score": 26.84942,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.68101,
+ "matched_keywords": [
+ {
+ "keyword": "Prosthetics",
+ "score": 0.94724035
+ },
+ {
+ "keyword": "Exoskeletons",
+ "score": 0.8412285
+ }
+ ]
+ },
+ {
+ "query": "orthotics and prosthetics",
+ "field": "Health Professions",
+ "rank": 2,
+ "topic_name": "Orthopaedic implants and arthroplasty",
+ "total_score": 27.567976,
+ "lexical_score": 0.73807453575,
+ "title_vector_score": 26.830086,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "orthotics and prosthetics",
+ "field": "Health Professions",
+ "rank": 3,
+ "topic_name": "Orthopedic Surgery and Rehabilitation",
+ "total_score": 27.128445,
+ "lexical_score": 0.73804695022,
+ "title_vector_score": 26.390554,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "interprofessional healthcare collaboration",
+ "field": "Health Professions",
+ "rank": 1,
+ "topic_name": "Interprofessional Education and Collaboration",
+ "total_score": 86.016464,
+ "lexical_score": 104.857174,
+ "title_vector_score": 25.417091,
+ "description_vector_score": 13.718544,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Interdisciplinary Collaboration",
+ "score": 0.89433837
+ },
+ {
+ "keyword": "Collaborative Practice",
+ "score": 0.85810876
+ }
+ ]
+ },
+ {
+ "query": "interprofessional healthcare collaboration",
+ "field": "Health Professions",
+ "rank": 2,
+ "topic_name": "Interdisciplinary Research and Collaboration",
+ "total_score": 60.069664,
+ "lexical_score": 37.4520946,
+ "title_vector_score": 25.988052,
+ "description_vector_score": 12.367004,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Collaboration",
+ "score": 0.83450174
+ },
+ {
+ "keyword": "Interdisciplinary Research",
+ "score": 0.8167274
+ }
+ ]
+ },
+ {
+ "query": "interprofessional healthcare collaboration",
+ "field": "Health Professions",
+ "rank": 3,
+ "topic_name": "Healthcare Systems and Technology",
+ "total_score": 42.88359,
+ "lexical_score": 44.866932999999996,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.937275,
+ "matched_keywords": [
+ {
+ "keyword": "Physician Collaboration",
+ "score": 0.91749096
+ },
+ {
+ "keyword": "Healthcare Networks",
+ "score": 0.8166473
+ }
+ ]
+ },
+ {
+ "query": "community health education",
+ "field": "Health Professions",
+ "rank": 1,
+ "topic_name": "Health and Education Studies",
+ "total_score": 47.667244,
+ "lexical_score": 29.324666699999998,
+ "title_vector_score": 27.881935,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "community health education",
+ "field": "Health Professions",
+ "rank": 2,
+ "topic_name": "Health and Medical Education",
+ "total_score": 47.322197,
+ "lexical_score": 48.7169436,
+ "title_vector_score": 27.536888,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Community Health",
+ "score": 0.92353344
+ },
+ {
+ "keyword": "Public Health",
+ "score": 0.8751352
+ }
+ ]
+ },
+ {
+ "query": "community health education",
+ "field": "Health Professions",
+ "rank": 3,
+ "topic_name": "Health Education and Validation",
+ "total_score": 47.203995,
+ "lexical_score": 33.2945483,
+ "title_vector_score": 27.418686,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Health Research",
+ "score": 0.81717086
+ }
+ ]
+ },
+ {
+ "query": "sports medicine rehabilitation",
+ "field": "Health Professions",
+ "rank": 1,
+ "topic_name": "Musculoskeletal Disorders and Rehabilitation",
+ "total_score": 72.34039,
+ "lexical_score": 53.3795906,
+ "title_vector_score": 26.447983,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.250885,
+ "matched_keywords": [
+ {
+ "keyword": "Rehabilitation Medicine",
+ "score": 0.8900354
+ },
+ {
+ "keyword": "Musculoskeletal Medicine",
+ "score": 0.8444226
+ }
+ ]
+ },
+ {
+ "query": "sports medicine rehabilitation",
+ "field": "Health Professions",
+ "rank": 2,
+ "topic_name": "Knee injuries and reconstruction techniques",
+ "total_score": 46.214252,
+ "lexical_score": 14.867187000000001,
+ "title_vector_score": 0.0,
+ "description_vector_score": 12.159509,
+ "keywords_vector_score": 24.064589,
+ "matched_keywords": [
+ {
+ "keyword": "Athletic Rehabilitation",
+ "score": 0.96258354
+ },
+ {
+ "keyword": "Return to Sport",
+ "score": 0.8357024
+ }
+ ]
+ },
+ {
+ "query": "sports medicine rehabilitation",
+ "field": "Health Professions",
+ "rank": 3,
+ "topic_name": "Sports injuries and prevention",
+ "total_score": 44.997272,
+ "lexical_score": 36.397539,
+ "title_vector_score": 27.168324,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Athletic Training",
+ "score": 0.8885205
+ },
+ {
+ "keyword": "Sports Injury",
+ "score": 0.8693898
+ }
+ ]
+ },
+ {
+ "query": "physician assistant training",
+ "field": "Health Professions",
+ "rank": 1,
+ "topic_name": "Health Services Management and Policy",
+ "total_score": 32.068092,
+ "lexical_score": 12.8923299,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.063261,
+ "matched_keywords": [
+ {
+ "keyword": "medical training",
+ "score": 0.9225304
+ }
+ ]
+ },
+ {
+ "query": "physician assistant training",
+ "field": "Health Professions",
+ "rank": 2,
+ "topic_name": "Public Health and Nutrition",
+ "total_score": 30.531342,
+ "lexical_score": 12.050456700000002,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.625828,
+ "matched_keywords": [
+ {
+ "keyword": "Healthcare Training",
+ "score": 0.9050331
+ }
+ ]
+ },
+ {
+ "query": "physician assistant training",
+ "field": "Health Professions",
+ "rank": 3,
+ "topic_name": "Pharmacy and Medical Practices",
+ "total_score": 29.578808,
+ "lexical_score": 13.005969700000001,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 21.673292,
+ "matched_keywords": [
+ {
+ "keyword": "Pharmacy Training",
+ "score": 0.8669317
+ },
+ {
+ "keyword": "Patient Education",
+ "score": 0.8180804
+ }
+ ]
+ },
+ {
+ "query": "quantum mechanics",
+ "field": "Physics and Astronomy",
+ "rank": 1,
+ "topic_name": "Quantum Mechanics and Non-Hermitian Physics",
+ "total_score": 82.1469,
+ "lexical_score": 59.75153039999999,
+ "title_vector_score": 28.291668,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.839014,
+ "matched_keywords": [
+ {
+ "keyword": "Quantum Mechanics",
+ "score": 0.99356055
+ },
+ {
+ "keyword": "Non-Hermitian Physics",
+ "score": 0.82647634
+ }
+ ]
+ },
+ {
+ "query": "quantum mechanics",
+ "field": "Physics and Astronomy",
+ "rank": 2,
+ "topic_name": "Quantum Mechanics and Applications",
+ "total_score": 76.91701,
+ "lexical_score": 62.6773355,
+ "title_vector_score": 29.480639,
+ "description_vector_score": 12.890228,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Quantum Interpretations",
+ "score": 0.9240358
+ },
+ {
+ "keyword": "Quantum Measurement",
+ "score": 0.9194982
+ }
+ ]
+ },
+ {
+ "query": "quantum mechanics",
+ "field": "Physics and Astronomy",
+ "rank": 3,
+ "topic_name": "Quantum and Classical Electrodynamics",
+ "total_score": 44.36328,
+ "lexical_score": 33.137102,
+ "title_vector_score": 27.09021,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Quantum Field Theory",
+ "score": 0.9041097
+ },
+ {
+ "keyword": "Relativistic Quantum Theory",
+ "score": 0.88632417
+ }
+ ]
+ },
+ {
+ "query": "astrophysics research",
+ "field": "Physics and Astronomy",
+ "rank": 1,
+ "topic_name": "Astrophysics and Cosmic Phenomena",
+ "total_score": 64.69655,
+ "lexical_score": 45.5998594,
+ "title_vector_score": 28.194408,
+ "description_vector_score": 12.940825,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "High-Energy Astrophysics",
+ "score": 0.9299431
+ },
+ {
+ "keyword": "Galactic Cosmic Rays",
+ "score": 0.8717778
+ }
+ ]
+ },
+ {
+ "query": "astrophysics research",
+ "field": "Physics and Astronomy",
+ "rank": 2,
+ "topic_name": "Stellar, planetary, and galactic studies",
+ "total_score": 51.247288,
+ "lexical_score": 21.9173416,
+ "title_vector_score": 0.0,
+ "description_vector_score": 12.569894,
+ "keywords_vector_score": 24.20376,
+ "matched_keywords": [
+ {
+ "keyword": "Astrophysical Spectroscopy",
+ "score": 0.9681504
+ },
+ {
+ "keyword": "Stellar Astrophysics",
+ "score": 0.94559383
+ }
+ ]
+ },
+ {
+ "query": "astrophysics research",
+ "field": "Physics and Astronomy",
+ "rank": 3,
+ "topic_name": "Scientific Research and Discoveries",
+ "total_score": 39.319443,
+ "lexical_score": 30.5897669,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.53217,
+ "matched_keywords": [
+ {
+ "keyword": "Astrophysics",
+ "score": 0.98128676
+ },
+ {
+ "keyword": "Solar Physics",
+ "score": 0.82914877
+ }
+ ]
+ },
+ {
+ "query": "dark matter detection",
+ "field": "Physics and Astronomy",
+ "rank": 1,
+ "topic_name": "Dark Matter and Cosmic Phenomena",
+ "total_score": 106.160835,
+ "lexical_score": 95.05931190000001,
+ "title_vector_score": 27.155092,
+ "description_vector_score": 12.961335,
+ "keywords_vector_score": 23.242218,
+ "matched_keywords": [
+ {
+ "keyword": "Dark Matter",
+ "score": 0.9296887
+ }
+ ]
+ },
+ {
+ "query": "dark matter detection",
+ "field": "Physics and Astronomy",
+ "rank": 2,
+ "topic_name": "Galaxies: Formation, Evolution, Phenomena",
+ "total_score": 46.59787,
+ "lexical_score": 34.8427033,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.24012,
+ "matched_keywords": [
+ {
+ "keyword": "Dark Matter",
+ "score": 0.92960477
+ },
+ {
+ "keyword": "Black Holes",
+ "score": 0.8103852
+ }
+ ]
+ },
+ {
+ "query": "dark matter detection",
+ "field": "Physics and Astronomy",
+ "rank": 3,
+ "topic_name": "Particle physics theoretical and experimental studies",
+ "total_score": 44.77328,
+ "lexical_score": 34.2377856,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.242218,
+ "matched_keywords": [
+ {
+ "keyword": "Dark Matter",
+ "score": 0.9296887
+ }
+ ]
+ },
+ {
+ "query": "particle physics collision",
+ "field": "Physics and Astronomy",
+ "rank": 1,
+ "topic_name": "Particle physics theoretical and experimental studies",
+ "total_score": 79.76288,
+ "lexical_score": 60.644617399999994,
+ "title_vector_score": 26.50888,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.456408,
+ "matched_keywords": [
+ {
+ "keyword": "Particle Physics",
+ "score": 0.8982563
+ },
+ {
+ "keyword": "High-Energy Collider",
+ "score": 0.850687
+ }
+ ]
+ },
+ {
+ "query": "particle physics collision",
+ "field": "Physics and Astronomy",
+ "rank": 2,
+ "topic_name": "High-Energy Particle Collisions Research",
+ "total_score": 46.511433,
+ "lexical_score": 18.001125,
+ "title_vector_score": 28.510307,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Heavy-Ion Collisions",
+ "score": 0.8449969
+ }
+ ]
+ },
+ {
+ "query": "particle physics collision",
+ "field": "Physics and Astronomy",
+ "rank": 3,
+ "topic_name": "Particle Dynamics in Fluid Flows",
+ "total_score": 45.61353,
+ "lexical_score": 54.4381633,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.05943,
+ "matched_keywords": [
+ {
+ "keyword": "Collision",
+ "score": 0.88237715
+ },
+ {
+ "keyword": "Particles",
+ "score": 0.84063053
+ }
+ ]
+ },
+ {
+ "query": "general relativity theory",
+ "field": "Physics and Astronomy",
+ "rank": 1,
+ "topic_name": "Relativity and Gravitational Theory",
+ "total_score": 79.82687,
+ "lexical_score": 97.8729588,
+ "title_vector_score": 27.720901,
+ "description_vector_score": 12.758846,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Relativity",
+ "score": 0.91126084
+ },
+ {
+ "keyword": "Special and General Theory",
+ "score": 0.8509481
+ }
+ ]
+ },
+ {
+ "query": "general relativity theory",
+ "field": "Physics and Astronomy",
+ "rank": 2,
+ "topic_name": "Cosmology and Gravitation Theories",
+ "total_score": 74.24077,
+ "lexical_score": 37.578054300000005,
+ "title_vector_score": 25.41875,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.558609,
+ "matched_keywords": [
+ {
+ "keyword": "General Relativity",
+ "score": 0.9823444
+ }
+ ]
+ },
+ {
+ "query": "general relativity theory",
+ "field": "Physics and Astronomy",
+ "rank": 3,
+ "topic_name": "Advanced Differential Geometry Research",
+ "total_score": 47.426178,
+ "lexical_score": 35.3287292,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.558609,
+ "matched_keywords": [
+ {
+ "keyword": "General Relativity",
+ "score": 0.9823444
+ },
+ {
+ "keyword": "Einstein Gravity",
+ "score": 0.81785345
+ }
+ ]
+ },
+ {
+ "query": "cosmology evolution",
+ "field": "Physics and Astronomy",
+ "rank": 1,
+ "topic_name": "Cosmology and Gravitation Theories",
+ "total_score": 63.70198,
+ "lexical_score": 28.8244595,
+ "title_vector_score": 26.34508,
+ "description_vector_score": 12.190676,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Cosmological Parameters",
+ "score": 0.91926336
+ }
+ ]
+ },
+ {
+ "query": "cosmology evolution",
+ "field": "Physics and Astronomy",
+ "rank": 2,
+ "topic_name": "Galaxies: Formation, Evolution, Phenomena",
+ "total_score": 45.186485,
+ "lexical_score": 45.828631800000004,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.411537,
+ "matched_keywords": [
+ {
+ "keyword": "Cosmology",
+ "score": 0.93646145
+ },
+ {
+ "keyword": "Cosmic Evolution",
+ "score": 0.91890645
+ }
+ ]
+ },
+ {
+ "query": "cosmology evolution",
+ "field": "Physics and Astronomy",
+ "rank": 3,
+ "topic_name": "Earth Systems and Cosmic Evolution",
+ "total_score": 43.68792,
+ "lexical_score": 17.68208,
+ "title_vector_score": 26.00584,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "exoplanet discovery",
+ "field": "Physics and Astronomy",
+ "rank": 1,
+ "topic_name": "Stellar, planetary, and galactic studies",
+ "total_score": 49.331177,
+ "lexical_score": 0.0,
+ "title_vector_score": 25.466043,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.865133,
+ "matched_keywords": [
+ {
+ "keyword": "Exoplanets",
+ "score": 0.95460534
+ },
+ {
+ "keyword": "Planetary Systems",
+ "score": 0.82402873
+ }
+ ]
+ },
+ {
+ "query": "exoplanet discovery",
+ "field": "Physics and Astronomy",
+ "rank": 2,
+ "topic_name": "Planetary Science and Exploration",
+ "total_score": 48.176506,
+ "lexical_score": 0.0,
+ "title_vector_score": 26.298494,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 21.87801,
+ "matched_keywords": [
+ {
+ "keyword": "Planetary Exploration",
+ "score": 0.8751204
+ }
+ ]
+ },
+ {
+ "query": "exoplanet discovery",
+ "field": "Physics and Astronomy",
+ "rank": 3,
+ "topic_name": "Astro and Planetary Science",
+ "total_score": 25.794317,
+ "lexical_score": 0.0,
+ "title_vector_score": 25.794317,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Terrestrial Planets",
+ "score": 0.8461056
+ },
+ {
+ "keyword": "Giant Planets",
+ "score": 0.8282192
+ }
+ ]
+ },
+ {
+ "query": "nuclear fusion energy",
+ "field": "Physics and Astronomy",
+ "rank": 1,
+ "topic_name": "Cold Fusion and Nuclear Reactions",
+ "total_score": 87.43496,
+ "lexical_score": 70.9092596,
+ "title_vector_score": 27.679424,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.310797,
+ "matched_keywords": [
+ {
+ "keyword": "Nuclear Fusion",
+ "score": 0.9724319
+ },
+ {
+ "keyword": "Low Energy Nuclear Reactions",
+ "score": 0.88125753
+ }
+ ]
+ },
+ {
+ "query": "nuclear fusion energy",
+ "field": "Physics and Astronomy",
+ "rank": 2,
+ "topic_name": "Fusion and Plasma Physics Studies",
+ "total_score": 44.65092,
+ "lexical_score": 39.9399857,
+ "title_vector_score": 25.880291,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Thermonuclear Fusion",
+ "score": 0.91589665
+ }
+ ]
+ },
+ {
+ "query": "nuclear fusion energy",
+ "field": "Physics and Astronomy",
+ "rank": 3,
+ "topic_name": "Nuclear Physics and Applications",
+ "total_score": 44.10868,
+ "lexical_score": 18.26299,
+ "title_vector_score": 25.845688,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "condensed matter physics",
+ "field": "Physics and Astronomy",
+ "rank": 1,
+ "topic_name": "Advanced Condensed Matter Physics",
+ "total_score": 93.18706,
+ "lexical_score": 63.831381,
+ "title_vector_score": 29.355677,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Quantum Spin Liquids",
+ "score": 0.8263869
+ }
+ ]
+ },
+ {
+ "query": "condensed matter physics",
+ "field": "Physics and Astronomy",
+ "rank": 2,
+ "topic_name": "Cold Atom Physics and Bose-Einstein Condensates",
+ "total_score": 61.723232,
+ "lexical_score": 18.392451,
+ "title_vector_score": 26.457045,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.084034,
+ "matched_keywords": [
+ {
+ "keyword": "Bose-Einstein Condensation",
+ "score": 0.88336134
+ }
+ ]
+ },
+ {
+ "query": "condensed matter physics",
+ "field": "Physics and Astronomy",
+ "rank": 3,
+ "topic_name": "Particle physics theoretical and experimental studies",
+ "total_score": 44.81266,
+ "lexical_score": 45.040752600000005,
+ "title_vector_score": 25.120733,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Particle Physics",
+ "score": 0.8557184
+ }
+ ]
+ },
+ {
+ "query": "string theory concepts",
+ "field": "Physics and Astronomy",
+ "rank": 1,
+ "topic_name": "advanced mathematical theories",
+ "total_score": 48.75506,
+ "lexical_score": 34.1526214,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.776972,
+ "matched_keywords": [
+ {
+ "keyword": "string theory",
+ "score": 0.99107885
+ }
+ ]
+ },
+ {
+ "query": "string theory concepts",
+ "field": "Physics and Astronomy",
+ "rank": 2,
+ "topic_name": "Black Holes and Theoretical Physics",
+ "total_score": 45.33465,
+ "lexical_score": 31.0674561,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.604774,
+ "matched_keywords": [
+ {
+ "keyword": "String Theory",
+ "score": 0.98419094
+ }
+ ]
+ },
+ {
+ "query": "string theory concepts",
+ "field": "Physics and Astronomy",
+ "rank": 3,
+ "topic_name": "Advanced Mathematical Theories",
+ "total_score": 30.890228,
+ "lexical_score": 9.7440278,
+ "title_vector_score": 24.428802,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "optics and photonics",
+ "field": "Physics and Astronomy",
+ "rank": 1,
+ "topic_name": "Photorefractive and Nonlinear Optics",
+ "total_score": 53.12989,
+ "lexical_score": 65.74254942125,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.179804,
+ "matched_keywords": [
+ {
+ "keyword": "Photonics",
+ "score": 0.9671922
+ },
+ {
+ "keyword": "Integrated Photonics",
+ "score": 0.9286933
+ }
+ ]
+ },
+ {
+ "query": "optics and photonics",
+ "field": "Physics and Astronomy",
+ "rank": 2,
+ "topic_name": "Photonic Crystal and Fiber Optics",
+ "total_score": 47.12384,
+ "lexical_score": 37.52017739595,
+ "title_vector_score": 27.679518,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Nonlinear Optics",
+ "score": 0.8734355
+ },
+ {
+ "keyword": "Microstructured Optical Fibers",
+ "score": 0.8142462
+ }
+ ]
+ },
+ {
+ "query": "optics and photonics",
+ "field": "Physics and Astronomy",
+ "rank": 3,
+ "topic_name": "Photonic and Optical Devices",
+ "total_score": 41.4156,
+ "lexical_score": 20.4110055479,
+ "title_vector_score": 28.99827,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Silicon Photonics",
+ "score": 0.8879888
+ },
+ {
+ "keyword": "Optical Modulators",
+ "score": 0.8777263
+ }
+ ]
+ },
+ {
+ "query": "black hole thermodynamics",
+ "field": "Physics and Astronomy",
+ "rank": 1,
+ "topic_name": "Black Holes and Theoretical Physics",
+ "total_score": 71.93459,
+ "lexical_score": 49.121935900000004,
+ "title_vector_score": 26.970757,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 21.98708,
+ "matched_keywords": [
+ {
+ "keyword": "Black Holes",
+ "score": 0.8794832
+ }
+ ]
+ },
+ {
+ "query": "black hole thermodynamics",
+ "field": "Physics and Astronomy",
+ "rank": 2,
+ "topic_name": "Noncommutative and Quantum Gravity Theories",
+ "total_score": 59.682117,
+ "lexical_score": 56.2314705,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.940205,
+ "matched_keywords": [
+ {
+ "keyword": "Black Hole Thermodynamics",
+ "score": 0.9976082
+ }
+ ]
+ },
+ {
+ "query": "black hole thermodynamics",
+ "field": "Physics and Astronomy",
+ "rank": 3,
+ "topic_name": "Galaxies: Formation, Evolution, Phenomena",
+ "total_score": 33.45382,
+ "lexical_score": 17.159343,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 21.98708,
+ "matched_keywords": [
+ {
+ "keyword": "Black Holes",
+ "score": 0.8794832
+ }
+ ]
+ },
+ {
+ "query": "gravitational waves detection",
+ "field": "Physics and Astronomy",
+ "rank": 1,
+ "topic_name": "Pulsars and Gravitational Waves Research",
+ "total_score": 104.28896,
+ "lexical_score": 78.8400314,
+ "title_vector_score": 27.088467,
+ "description_vector_score": 12.6475525,
+ "keywords_vector_score": 23.216034,
+ "matched_keywords": [
+ {
+ "keyword": "Gravitational Waves",
+ "score": 0.9286413
+ }
+ ]
+ },
+ {
+ "query": "gravitational waves detection",
+ "field": "Physics and Astronomy",
+ "rank": 2,
+ "topic_name": "Gamma-ray bursts and supernovae",
+ "total_score": 49.04328,
+ "lexical_score": 37.3298147,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.216034,
+ "matched_keywords": [
+ {
+ "keyword": "Gravitational Waves",
+ "score": 0.9286413
+ }
+ ]
+ },
+ {
+ "query": "gravitational waves detection",
+ "field": "Physics and Astronomy",
+ "rank": 3,
+ "topic_name": "Ocean Waves and Remote Sensing",
+ "total_score": 44.15011,
+ "lexical_score": 44.956434,
+ "title_vector_score": 24.324675,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "statistical mechanics",
+ "field": "Physics and Astronomy",
+ "rank": 1,
+ "topic_name": "Stochastic processes and statistical mechanics",
+ "total_score": 58.41233,
+ "lexical_score": 59.354937,
+ "title_vector_score": 26.543526,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Nonequilibrium Statistical Mechanics",
+ "score": 0.8890109
+ }
+ ]
+ },
+ {
+ "query": "statistical mechanics",
+ "field": "Physics and Astronomy",
+ "rank": 2,
+ "topic_name": "Statistical Mechanics and Entropy",
+ "total_score": 58.28523,
+ "lexical_score": 62.563218000000006,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.379635,
+ "matched_keywords": [
+ {
+ "keyword": "Nonextensive Statistical Mechanics",
+ "score": 0.93518543
+ }
+ ]
+ },
+ {
+ "query": "statistical mechanics",
+ "field": "Physics and Astronomy",
+ "rank": 3,
+ "topic_name": "Advanced Physical and Chemical Molecular Interactions",
+ "total_score": 46.66672,
+ "lexical_score": 33.142804600000005,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.866116,
+ "matched_keywords": [
+ {
+ "keyword": "Statistical Mechanics",
+ "score": 0.99464464
+ }
+ ]
+ },
+ {
+ "query": "plasma physics applications",
+ "field": "Physics and Astronomy",
+ "rank": 1,
+ "topic_name": "Fusion and Plasma Physics Studies",
+ "total_score": 60.7509,
+ "lexical_score": 33.157931,
+ "title_vector_score": 27.592972,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "plasma physics applications",
+ "field": "Physics and Astronomy",
+ "rank": 2,
+ "topic_name": "Plasma Applications and Diagnostics",
+ "total_score": 52.8747,
+ "lexical_score": 66.4887352,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.175365,
+ "matched_keywords": [
+ {
+ "keyword": "Plasma Chemistry",
+ "score": 0.9270146
+ },
+ {
+ "keyword": "Non-Thermal Plasma",
+ "score": 0.9143822
+ }
+ ]
+ },
+ {
+ "query": "plasma physics applications",
+ "field": "Physics and Astronomy",
+ "rank": 3,
+ "topic_name": "Vacuum and Plasma Arcs",
+ "total_score": 45.98812,
+ "lexical_score": 38.507107999999995,
+ "title_vector_score": 26.62111,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Plasma Modeling",
+ "score": 0.9169109
+ },
+ {
+ "keyword": "Thermal Plasma",
+ "score": 0.9068432
+ }
+ ]
+ },
+ {
+ "query": "stellar evolution models",
+ "field": "Physics and Astronomy",
+ "rank": 1,
+ "topic_name": "Galaxies: Formation, Evolution, Phenomena",
+ "total_score": 71.076454,
+ "lexical_score": 52.635575200000005,
+ "title_vector_score": 26.428556,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.872948,
+ "matched_keywords": [
+ {
+ "keyword": "Cosmic Evolution",
+ "score": 0.91491795
+ },
+ {
+ "keyword": "Astrophysical Simulations",
+ "score": 0.85826373
+ }
+ ]
+ },
+ {
+ "query": "stellar evolution models",
+ "field": "Physics and Astronomy",
+ "rank": 2,
+ "topic_name": "Stellar, planetary, and galactic studies",
+ "total_score": 53.875916,
+ "lexical_score": 64.552869,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.031681,
+ "matched_keywords": [
+ {
+ "keyword": "Stellar Evolution",
+ "score": 0.96126723
+ },
+ {
+ "keyword": "Galactic Evolution",
+ "score": 0.93343496
+ }
+ ]
+ },
+ {
+ "query": "stellar evolution models",
+ "field": "Physics and Astronomy",
+ "rank": 3,
+ "topic_name": "Earth Systems and Cosmic Evolution",
+ "total_score": 43.85327,
+ "lexical_score": 17.68208,
+ "title_vector_score": 26.171192,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "high energy physics",
+ "field": "Physics and Astronomy",
+ "rank": 1,
+ "topic_name": "High-Energy Particle Collisions Research",
+ "total_score": 56.259377,
+ "lexical_score": 31.216070000000002,
+ "title_vector_score": 25.043306,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "high energy physics",
+ "field": "Physics and Astronomy",
+ "rank": 2,
+ "topic_name": "Advanced Mathematical Theories and Applications",
+ "total_score": 51.30828,
+ "lexical_score": 42.1212788,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.55467,
+ "matched_keywords": [
+ {
+ "keyword": "High Energy Particle Physics",
+ "score": 0.94218683
+ },
+ {
+ "keyword": "Dark Energy",
+ "score": 0.8157351
+ }
+ ]
+ },
+ {
+ "query": "high energy physics",
+ "field": "Physics and Astronomy",
+ "rank": 3,
+ "topic_name": "Particle accelerators and beam dynamics",
+ "total_score": 43.46261,
+ "lexical_score": 30.4501499,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.837513,
+ "matched_keywords": [
+ {
+ "keyword": "High Energy Density Physics",
+ "score": 0.9535005
+ }
+ ]
+ },
+ {
+ "query": "quantum entanglement experiments",
+ "field": "Physics and Astronomy",
+ "rank": 1,
+ "topic_name": "Quantum optics and atomic interactions",
+ "total_score": 72.605225,
+ "lexical_score": 51.9700377,
+ "title_vector_score": 25.147755,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.21829,
+ "matched_keywords": [
+ {
+ "keyword": "Quantum Entanglement",
+ "score": 0.96873164
+ }
+ ]
+ },
+ {
+ "query": "quantum entanglement experiments",
+ "field": "Physics and Astronomy",
+ "rank": 2,
+ "topic_name": "Quantum Mechanics and Applications",
+ "total_score": 53.334114,
+ "lexical_score": 59.722128500000004,
+ "title_vector_score": 25.466002,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Quantum Interpretations",
+ "score": 0.85737896
+ },
+ {
+ "keyword": "Quantum Measurement",
+ "score": 0.8526993
+ }
+ ]
+ },
+ {
+ "query": "quantum entanglement experiments",
+ "field": "Physics and Astronomy",
+ "rank": 3,
+ "topic_name": "Black Holes and Theoretical Physics",
+ "total_score": 49.155495,
+ "lexical_score": 35.631249999999994,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.215263,
+ "matched_keywords": [
+ {
+ "keyword": "Quantum Entanglement",
+ "score": 0.9686105
+ }
+ ]
+ },
+ {
+ "query": "spectroscopy techniques",
+ "field": "Physics and Astronomy",
+ "rank": 1,
+ "topic_name": "Spectroscopy and Laser Applications",
+ "total_score": 57.653484,
+ "lexical_score": 38.2792986,
+ "title_vector_score": 26.919235,
+ "description_vector_score": 12.229464,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "High-Temperature Molecular Spectroscopy",
+ "score": 0.9203448
+ },
+ {
+ "keyword": "Photoacoustic Spectroscopy",
+ "score": 0.90667033
+ }
+ ]
+ },
+ {
+ "query": "spectroscopy techniques",
+ "field": "Physics and Astronomy",
+ "rank": 2,
+ "topic_name": "Optical Imaging and Spectroscopy Techniques",
+ "total_score": 53.820587,
+ "lexical_score": 42.807872200000006,
+ "title_vector_score": 26.867086,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Near-Infrared Spectroscopy",
+ "score": 0.9291127
+ }
+ ]
+ },
+ {
+ "query": "spectroscopy techniques",
+ "field": "Physics and Astronomy",
+ "rank": 3,
+ "topic_name": "Spectroscopy Techniques in Biomedical and Chemical Research",
+ "total_score": 50.673756,
+ "lexical_score": 45.6688622,
+ "title_vector_score": 27.715073,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Infrared Spectroscopy",
+ "score": 0.8790798
+ },
+ {
+ "keyword": "Vibrational Spectroscopy",
+ "score": 0.83673286
+ }
+ ]
+ },
+ {
+ "query": "thermodynamics principles",
+ "field": "Physics and Astronomy",
+ "rank": 1,
+ "topic_name": "Advanced Thermodynamics and Statistical Mechanics",
+ "total_score": 60.55279,
+ "lexical_score": 45.510787,
+ "title_vector_score": 28.86283,
+ "description_vector_score": 12.919332,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Stochastic Thermodynamics",
+ "score": 0.9332361
+ },
+ {
+ "keyword": "Thermodynamic Efficiency",
+ "score": 0.9166801
+ }
+ ]
+ },
+ {
+ "query": "thermodynamics principles",
+ "field": "Physics and Astronomy",
+ "rank": 2,
+ "topic_name": "Material Science and Thermodynamics",
+ "total_score": 49.021927,
+ "lexical_score": 20.55929,
+ "title_vector_score": 28.462637,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Thermoelectric Properties",
+ "score": 0.8909385
+ },
+ {
+ "keyword": "Heat Distribution",
+ "score": 0.81680965
+ }
+ ]
+ },
+ {
+ "query": "thermodynamics principles",
+ "field": "Physics and Astronomy",
+ "rank": 3,
+ "topic_name": "Phase Equilibria and Thermodynamics",
+ "total_score": 48.243813,
+ "lexical_score": 20.55929,
+ "title_vector_score": 27.684525,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Thermodynamic Properties",
+ "score": 0.9706142
+ }
+ ]
+ },
+ {
+ "query": "organic synthesis",
+ "field": "Chemistry",
+ "rank": 1,
+ "topic_name": "Organic Chemistry Synthesis Methods",
+ "total_score": 72.093216,
+ "lexical_score": 51.1392127,
+ "title_vector_score": 28.83464,
+ "description_vector_score": 12.801604,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Total Synthesis",
+ "score": 0.8501818
+ }
+ ]
+ },
+ {
+ "query": "organic synthesis",
+ "field": "Chemistry",
+ "rank": 2,
+ "topic_name": "Synthesis of Organic Compounds",
+ "total_score": 59.240654,
+ "lexical_score": 45.8303465,
+ "title_vector_score": 28.78368,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Synthesis",
+ "score": 0.9051628
+ }
+ ]
+ },
+ {
+ "query": "organic synthesis",
+ "field": "Chemistry",
+ "rank": 3,
+ "topic_name": "Advanced Synthetic Organic Chemistry",
+ "total_score": 45.44649,
+ "lexical_score": 33.1576847,
+ "title_vector_score": 28.338818,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Total Synthesis",
+ "score": 0.8490572
+ },
+ {
+ "keyword": "Chemoselective Synthesis",
+ "score": 0.8408351
+ }
+ ]
+ },
+ {
+ "query": "analytical chemistry methods",
+ "field": "Chemistry",
+ "rank": 1,
+ "topic_name": "Analytical chemistry methods development",
+ "total_score": 76.41092,
+ "lexical_score": 80.15799899999999,
+ "title_vector_score": 29.15147,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Green Analytical Chemistry",
+ "score": 0.82956886
+ }
+ ]
+ },
+ {
+ "query": "analytical chemistry methods",
+ "field": "Chemistry",
+ "rank": 2,
+ "topic_name": "Various Chemistry Research Topics",
+ "total_score": 41.795464,
+ "lexical_score": 31.272955,
+ "title_vector_score": 27.418127,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Chemistry Education",
+ "score": 0.8509352
+ },
+ {
+ "keyword": "Laboratory Techniques",
+ "score": 0.8366375
+ }
+ ]
+ },
+ {
+ "query": "analytical chemistry methods",
+ "field": "Chemistry",
+ "rank": 3,
+ "topic_name": "Vanadium and Halogenation Chemistry",
+ "total_score": 37.454926,
+ "lexical_score": 28.150969,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.077589,
+ "matched_keywords": [
+ {
+ "keyword": "Chemistry",
+ "score": 0.9231036
+ },
+ {
+ "keyword": "Biochemistry",
+ "score": 0.84036875
+ }
+ ]
+ },
+ {
+ "query": "inorganic compounds coordination",
+ "field": "Chemistry",
+ "rank": 1,
+ "topic_name": "Coordination Chemistry and Organometallics",
+ "total_score": 50.80468,
+ "lexical_score": 37.267500000000005,
+ "title_vector_score": 27.243368,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Organometallic Chemistry",
+ "score": 0.8232136
+ }
+ ]
+ },
+ {
+ "query": "inorganic compounds coordination",
+ "field": "Chemistry",
+ "rank": 2,
+ "topic_name": "Organic and Inorganic Chemical Reactions",
+ "total_score": 44.830414,
+ "lexical_score": 18.36015,
+ "title_vector_score": 26.470263,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "inorganic compounds coordination",
+ "field": "Chemistry",
+ "rank": 3,
+ "topic_name": "Synthesis and Reactions of Organic Compounds",
+ "total_score": 40.067596,
+ "lexical_score": 13.462015,
+ "title_vector_score": 26.605583,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "physical chemistry thermodynamics",
+ "field": "Chemistry",
+ "rank": 1,
+ "topic_name": "Advanced Thermodynamics and Statistical Mechanics",
+ "total_score": 58.700027,
+ "lexical_score": 45.51078700000001,
+ "title_vector_score": 27.466486,
+ "description_vector_score": 12.462913,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Nanoscale Thermodynamics",
+ "score": 0.90040207
+ },
+ {
+ "keyword": "Stochastic Thermodynamics",
+ "score": 0.8831241
+ }
+ ]
+ },
+ {
+ "query": "physical chemistry thermodynamics",
+ "field": "Chemistry",
+ "rank": 2,
+ "topic_name": "Material Science and Thermodynamics",
+ "total_score": 48.834282,
+ "lexical_score": 20.55929,
+ "title_vector_score": 28.27499,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Thermoelectric Properties",
+ "score": 0.8838763
+ }
+ ]
+ },
+ {
+ "query": "physical chemistry thermodynamics",
+ "field": "Chemistry",
+ "rank": 3,
+ "topic_name": "Chemical Thermodynamics and Molecular Structure",
+ "total_score": 47.423332,
+ "lexical_score": 32.891933,
+ "title_vector_score": 28.652702,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Thermodynamics",
+ "score": 0.95612407
+ }
+ ]
+ },
+ {
+ "query": "spectroscopy chemical analysis",
+ "field": "Chemistry",
+ "rank": 1,
+ "topic_name": "Molecular Spectroscopy and Structure",
+ "total_score": 57.848442,
+ "lexical_score": 36.9386277,
+ "title_vector_score": 27.030937,
+ "description_vector_score": 12.312719,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "spectroscopy chemical analysis",
+ "field": "Chemistry",
+ "rank": 2,
+ "topic_name": "Spectroscopy Techniques in Biomedical and Chemical Research",
+ "total_score": 54.15032,
+ "lexical_score": 65.23356810000001,
+ "title_vector_score": 27.466593,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Chemical Imaging",
+ "score": 0.8452883
+ },
+ {
+ "keyword": "Infrared Spectroscopy",
+ "score": 0.8372226
+ }
+ ]
+ },
+ {
+ "query": "spectroscopy chemical analysis",
+ "field": "Chemistry",
+ "rank": 3,
+ "topic_name": "Advanced Chemical Physics Studies",
+ "total_score": 42.78122,
+ "lexical_score": 15.807047,
+ "title_vector_score": 26.974174,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "catalysis mechanism design",
+ "field": "Chemistry",
+ "rank": 1,
+ "topic_name": "Carbon dioxide utilization in catalysis",
+ "total_score": 65.18287,
+ "lexical_score": 26.597192,
+ "title_vector_score": 25.878624,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.40938,
+ "matched_keywords": [
+ {
+ "keyword": "Catalysis",
+ "score": 0.8963752
+ }
+ ]
+ },
+ {
+ "query": "catalysis mechanism design",
+ "field": "Chemistry",
+ "rank": 2,
+ "topic_name": "Catalysis and Oxidation Reactions",
+ "total_score": 44.15519,
+ "lexical_score": 37.372824800000004,
+ "title_vector_score": 25.650402,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Catalysis",
+ "score": 0.8960631
+ },
+ {
+ "keyword": "Heterogeneous Catalysis",
+ "score": 0.85041475
+ }
+ ]
+ },
+ {
+ "query": "catalysis mechanism design",
+ "field": "Chemistry",
+ "rank": 3,
+ "topic_name": "Advanced Nanomaterials in Catalysis",
+ "total_score": 41.019096,
+ "lexical_score": 18.504786,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.514313,
+ "matched_keywords": [
+ {
+ "keyword": "Catalytic Mechanisms",
+ "score": 0.90057254
+ }
+ ]
+ },
+ {
+ "query": "polymer chemistry polymerization",
+ "field": "Chemistry",
+ "rank": 1,
+ "topic_name": "Advanced Polymer Synthesis and Characterization",
+ "total_score": 69.673134,
+ "lexical_score": 58.4673335,
+ "title_vector_score": 28.864767,
+ "description_vector_score": 12.883644,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Controlled Polymerization",
+ "score": 0.91754556
+ },
+ {
+ "keyword": "Functional Polymers",
+ "score": 0.9083507
+ }
+ ]
+ },
+ {
+ "query": "polymer chemistry polymerization",
+ "field": "Chemistry",
+ "rank": 2,
+ "topic_name": "Polymer Synthesis and Characterization",
+ "total_score": 47.354088,
+ "lexical_score": 33.375466,
+ "title_vector_score": 29.091095,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Polymer Resins",
+ "score": 0.9284501
+ },
+ {
+ "keyword": "Copolymer",
+ "score": 0.85340524
+ }
+ ]
+ },
+ {
+ "query": "polymer chemistry polymerization",
+ "field": "Chemistry",
+ "rank": 3,
+ "topic_name": "Synthetic Organic Chemistry Methods",
+ "total_score": 43.96012,
+ "lexical_score": 44.7483498,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.130709,
+ "matched_keywords": [
+ {
+ "keyword": "Polymerization",
+ "score": 0.9652283
+ }
+ ]
+ },
+ {
+ "query": "electrochemistry batteries",
+ "field": "Chemistry",
+ "rank": 1,
+ "topic_name": "Advancements in Battery Materials",
+ "total_score": 55.333733,
+ "lexical_score": 22.519867,
+ "title_vector_score": 26.880762,
+ "description_vector_score": 12.601966,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Battery Materials",
+ "score": 0.89637446
+ },
+ {
+ "keyword": "Electrochemical Performance",
+ "score": 0.8918159
+ }
+ ]
+ },
+ {
+ "query": "electrochemistry batteries",
+ "field": "Chemistry",
+ "rank": 2,
+ "topic_name": "Advanced Battery Materials and Technologies",
+ "total_score": 50.20911,
+ "lexical_score": 17.0362116,
+ "title_vector_score": 26.740286,
+ "description_vector_score": 12.708539,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Solid-State Electrolytes",
+ "score": 0.8705754
+ },
+ {
+ "keyword": "Electrochemical Stability",
+ "score": 0.86127424
+ }
+ ]
+ },
+ {
+ "query": "electrochemistry batteries",
+ "field": "Chemistry",
+ "rank": 3,
+ "topic_name": "Electrochemical Analysis and Applications",
+ "total_score": 50.140076,
+ "lexical_score": 0.0,
+ "title_vector_score": 27.147625,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.99245,
+ "matched_keywords": [
+ {
+ "keyword": "Electrochemical",
+ "score": 0.919698
+ },
+ {
+ "keyword": "Bismuth-Coated Electrodes",
+ "score": 0.8223269
+ }
+ ]
+ },
+ {
+ "query": "medicinal chemistry design",
+ "field": "Chemistry",
+ "rank": 1,
+ "topic_name": "Fluorine in Organic Chemistry",
+ "total_score": 44.669983,
+ "lexical_score": 45.161745700000004,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.549604,
+ "matched_keywords": [
+ {
+ "keyword": "Medicinal Chemistry",
+ "score": 0.9419842
+ },
+ {
+ "keyword": "Pharmaceuticals",
+ "score": 0.85767436
+ }
+ ]
+ },
+ {
+ "query": "medicinal chemistry design",
+ "field": "Chemistry",
+ "rank": 2,
+ "topic_name": "Synthesis and Catalytic Reactions",
+ "total_score": 42.491768,
+ "lexical_score": 27.725397,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.549604,
+ "matched_keywords": [
+ {
+ "keyword": "Medicinal Chemistry",
+ "score": 0.9419842
+ }
+ ]
+ },
+ {
+ "query": "medicinal chemistry design",
+ "field": "Chemistry",
+ "rank": 3,
+ "topic_name": "Synthesis and Biological Evaluation",
+ "total_score": 42.491768,
+ "lexical_score": 18.942163,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.549604,
+ "matched_keywords": [
+ {
+ "keyword": "Medicinal Chemistry",
+ "score": 0.9419842
+ },
+ {
+ "keyword": "Heterocyclic Compounds",
+ "score": 0.81823707
+ }
+ ]
+ },
+ {
+ "query": "chromatography separation techniques",
+ "field": "Chemistry",
+ "rank": 1,
+ "topic_name": "Chromatography in Natural Products",
+ "total_score": 74.5249,
+ "lexical_score": 60.416120500000005,
+ "title_vector_score": 25.60584,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.420906,
+ "matched_keywords": [
+ {
+ "keyword": "Chromatographic Separation",
+ "score": 0.93683624
+ },
+ {
+ "keyword": "Counter-Current Chromatography",
+ "score": 0.8764422
+ }
+ ]
+ },
+ {
+ "query": "chromatography separation techniques",
+ "field": "Chemistry",
+ "rank": 2,
+ "topic_name": "Analytical Chemistry and Chromatography",
+ "total_score": 70.707596,
+ "lexical_score": 76.2796829,
+ "title_vector_score": 26.296913,
+ "description_vector_score": 13.008775,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Liquid Chromatography",
+ "score": 0.8881798
+ },
+ {
+ "keyword": "Two-Dimensional Chromatography",
+ "score": 0.87323546
+ }
+ ]
+ },
+ {
+ "query": "chromatography separation techniques",
+ "field": "Chemistry",
+ "rank": 3,
+ "topic_name": "Protein purification and stability",
+ "total_score": 36.702858,
+ "lexical_score": 14.132617,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.57024,
+ "matched_keywords": [
+ {
+ "keyword": "Chromatography",
+ "score": 0.9028096
+ }
+ ]
+ },
+ {
+ "query": "chemical kinetics reactions",
+ "field": "Chemistry",
+ "rank": 1,
+ "topic_name": "Chemical Reactions and Mechanisms",
+ "total_score": 61.846855,
+ "lexical_score": 61.67398039999999,
+ "title_vector_score": 28.592148,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Chemical Reactions",
+ "score": 0.9330914
+ },
+ {
+ "keyword": "Computational Chemistry",
+ "score": 0.8282039
+ }
+ ]
+ },
+ {
+ "query": "chemical kinetics reactions",
+ "field": "Chemistry",
+ "rank": 2,
+ "topic_name": "Chemical Reaction Mechanisms",
+ "total_score": 45.77424,
+ "lexical_score": 23.55483,
+ "title_vector_score": 28.302284,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "chemical kinetics reactions",
+ "field": "Chemistry",
+ "rank": 3,
+ "topic_name": "Synthesis and Catalytic Reactions",
+ "total_score": 44.68618,
+ "lexical_score": 21.910982999999998,
+ "title_vector_score": 27.23852,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Catalytic",
+ "score": 0.8639226
+ }
+ ]
+ },
+ {
+ "query": "mass spectrometry profiling",
+ "field": "Chemistry",
+ "rank": 1,
+ "topic_name": "Mass Spectrometry Techniques and Applications",
+ "total_score": 94.830414,
+ "lexical_score": 81.5495631,
+ "title_vector_score": 28.591253,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.18136,
+ "matched_keywords": [
+ {
+ "keyword": "Mass Spectrometry",
+ "score": 0.9672544
+ }
+ ]
+ },
+ {
+ "query": "mass spectrometry profiling",
+ "field": "Chemistry",
+ "rank": 2,
+ "topic_name": "Metabolomics and Mass Spectrometry Studies",
+ "total_score": 68.58267,
+ "lexical_score": 76.71830700000001,
+ "title_vector_score": 26.524872,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Mass Spectrometry",
+ "score": 0.9672456
+ }
+ ]
+ },
+ {
+ "query": "mass spectrometry profiling",
+ "field": "Chemistry",
+ "rank": 3,
+ "topic_name": "Advanced Proteomics Techniques and Applications",
+ "total_score": 65.67684,
+ "lexical_score": 44.470842000000005,
+ "title_vector_score": 0.0,
+ "description_vector_score": 12.602585,
+ "keywords_vector_score": 24.18136,
+ "matched_keywords": [
+ {
+ "keyword": "Mass Spectrometry",
+ "score": 0.9672544
+ },
+ {
+ "keyword": "Tandem Mass Spectrometry",
+ "score": 0.9573171
+ }
+ ]
+ },
+ {
+ "query": "computational chemistry modeling",
+ "field": "Chemistry",
+ "rank": 1,
+ "topic_name": "Advanced Physical and Chemical Molecular Interactions",
+ "total_score": 44.769596,
+ "lexical_score": 31.627102199999996,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.636621,
+ "matched_keywords": [
+ {
+ "keyword": "Computational Chemistry",
+ "score": 0.94546485
+ },
+ {
+ "keyword": "Molecular Simulation",
+ "score": 0.87809277
+ }
+ ]
+ },
+ {
+ "query": "computational chemistry modeling",
+ "field": "Chemistry",
+ "rank": 2,
+ "topic_name": "Chemical Reactions and Mechanisms",
+ "total_score": 43.27053,
+ "lexical_score": 28.532339600000004,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.636621,
+ "matched_keywords": [
+ {
+ "keyword": "Computational Chemistry",
+ "score": 0.94546485
+ }
+ ]
+ },
+ {
+ "query": "computational chemistry modeling",
+ "field": "Chemistry",
+ "rank": 3,
+ "topic_name": "Nonlinear Optical Materials Research",
+ "total_score": 40.679314,
+ "lexical_score": 25.6611951,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.631351,
+ "matched_keywords": [
+ {
+ "keyword": "Computational Chemistry",
+ "score": 0.9452541
+ },
+ {
+ "keyword": "Quantum Chemical Calculations",
+ "score": 0.8170152
+ }
+ ]
+ },
+ {
+ "query": "environmental chemistry monitoring",
+ "field": "Chemistry",
+ "rank": 1,
+ "topic_name": "Environmental Chemistry and Analysis",
+ "total_score": 55.02902,
+ "lexical_score": 35.8743623,
+ "title_vector_score": 27.755226,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "environmental chemistry monitoring",
+ "field": "Chemistry",
+ "rank": 2,
+ "topic_name": "Environmental and Analytical Chemistry Studies",
+ "total_score": 52.39525,
+ "lexical_score": 38.6213821,
+ "title_vector_score": 27.49428,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Chemical Analysis",
+ "score": 0.86228395
+ },
+ {
+ "keyword": "Environmental Contamination",
+ "score": 0.8556855
+ }
+ ]
+ },
+ {
+ "query": "environmental chemistry monitoring",
+ "field": "Chemistry",
+ "rank": 3,
+ "topic_name": "Wireless Sensor Networks for Data Analysis",
+ "total_score": 38.34056,
+ "lexical_score": 23.574488799999997,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.625893,
+ "matched_keywords": [
+ {
+ "keyword": "Environmental Monitoring",
+ "score": 0.90503573
+ }
+ ]
+ },
+ {
+ "query": "photochemistry solar conversion",
+ "field": "Chemistry",
+ "rank": 1,
+ "topic_name": "TiO2 Photocatalysis and Solar Cells",
+ "total_score": 56.727345,
+ "lexical_score": 40.666184799999996,
+ "title_vector_score": 25.905296,
+ "description_vector_score": 12.820923,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Photocatalysis",
+ "score": 0.8781738
+ },
+ {
+ "keyword": "Solar Cells",
+ "score": 0.8515401
+ }
+ ]
+ },
+ {
+ "query": "photochemistry solar conversion",
+ "field": "Chemistry",
+ "rank": 2,
+ "topic_name": "Advanced Photocatalysis Techniques",
+ "total_score": 49.357986,
+ "lexical_score": 19.394455999999998,
+ "title_vector_score": 26.440279,
+ "description_vector_score": 12.666403,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Photocatalyst",
+ "score": 0.8580246
+ },
+ {
+ "keyword": "Solar Energy",
+ "score": 0.83505344
+ }
+ ]
+ },
+ {
+ "query": "photochemistry solar conversion",
+ "field": "Chemistry",
+ "rank": 3,
+ "topic_name": "Solar Radiation and Photovoltaics",
+ "total_score": 46.255775,
+ "lexical_score": 39.91818,
+ "title_vector_score": 26.539314,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Photovoltaic Power",
+ "score": 0.8634341
+ },
+ {
+ "keyword": "Solar Energy",
+ "score": 0.835243
+ }
+ ]
+ },
+ {
+ "query": "biophysical chemistry structure",
+ "field": "Chemistry",
+ "rank": 1,
+ "topic_name": "Molecular Spectroscopy and Structure",
+ "total_score": 45.640923,
+ "lexical_score": 25.579042299999998,
+ "title_vector_score": 26.874168,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Molecular Structure",
+ "score": 0.9074259
+ }
+ ]
+ },
+ {
+ "query": "biophysical chemistry structure",
+ "field": "Chemistry",
+ "rank": 2,
+ "topic_name": "Click Chemistry and Applications",
+ "total_score": 37.616207,
+ "lexical_score": 30.509892999999998,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.238873,
+ "matched_keywords": [
+ {
+ "keyword": "Bioorthogonal Chemistry",
+ "score": 0.92955494
+ },
+ {
+ "keyword": "Chemical Functionality",
+ "score": 0.85202813
+ }
+ ]
+ },
+ {
+ "query": "biophysical chemistry structure",
+ "field": "Chemistry",
+ "rank": 3,
+ "topic_name": "Vanadium and Halogenation Chemistry",
+ "total_score": 37.505714,
+ "lexical_score": 28.150969,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.128378,
+ "matched_keywords": [
+ {
+ "keyword": "Biochemistry",
+ "score": 0.92513514
+ },
+ {
+ "keyword": "Chemistry",
+ "score": 0.8799808
+ }
+ ]
+ },
+ {
+ "query": "green chemistry principles",
+ "field": "Chemistry",
+ "rank": 1,
+ "topic_name": "Various Chemistry Research Topics",
+ "total_score": 44.19676,
+ "lexical_score": 44.442038499999995,
+ "title_vector_score": 24.87153,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Green Chemistry",
+ "score": 0.9804106
+ }
+ ]
+ },
+ {
+ "query": "green chemistry principles",
+ "field": "Chemistry",
+ "rank": 2,
+ "topic_name": "Enzyme Catalysis and Immobilization",
+ "total_score": 42.179733,
+ "lexical_score": 31.0312077,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.510265,
+ "matched_keywords": [
+ {
+ "keyword": "Green Chemistry",
+ "score": 0.9804106
+ }
+ ]
+ },
+ {
+ "query": "green chemistry principles",
+ "field": "Chemistry",
+ "rank": 3,
+ "topic_name": "Phosphorus compounds and reactions",
+ "total_score": 41.480812,
+ "lexical_score": 26.108815000000003,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.545311,
+ "matched_keywords": [
+ {
+ "keyword": "green chemistry",
+ "score": 0.9818125
+ }
+ ]
+ },
+ {
+ "query": "molecular orbital theory",
+ "field": "Chemistry",
+ "rank": 1,
+ "topic_name": "Atomic and Molecular Physics",
+ "total_score": 65.14372,
+ "lexical_score": 17.828949,
+ "title_vector_score": 26.040115,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 21.274656,
+ "matched_keywords": [
+ {
+ "keyword": "Atomic Structure",
+ "score": 0.85098624
+ }
+ ]
+ },
+ {
+ "query": "molecular orbital theory",
+ "field": "Chemistry",
+ "rank": 2,
+ "topic_name": "Orbital Angular Momentum in Optics",
+ "total_score": 47.279167,
+ "lexical_score": 42.331576,
+ "title_vector_score": 24.302408,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Orbital Angular Momentum",
+ "score": 0.8158829
+ },
+ {
+ "keyword": "Spin-Orbit Interaction",
+ "score": 0.8153722
+ }
+ ]
+ },
+ {
+ "query": "molecular orbital theory",
+ "field": "Chemistry",
+ "rank": 3,
+ "topic_name": "Molecular Spectroscopy and Structure",
+ "total_score": 43.68341,
+ "lexical_score": 27.3870332,
+ "title_vector_score": 25.854464,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Molecular Structure",
+ "score": 0.8455119
+ },
+ {
+ "keyword": "Rotational Spectroscopy",
+ "score": 0.8249943
+ }
+ ]
+ },
+ {
+ "query": "supramolecular architecture",
+ "field": "Chemistry",
+ "rank": 1,
+ "topic_name": "Supramolecular Chemistry and Complexes",
+ "total_score": 62.29126,
+ "lexical_score": 41.3069108,
+ "title_vector_score": 26.51697,
+ "description_vector_score": 12.212977,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Supramolecular Chemistry",
+ "score": 0.8887906
+ }
+ ]
+ },
+ {
+ "query": "supramolecular architecture",
+ "field": "Chemistry",
+ "rank": 2,
+ "topic_name": "Supramolecular Self-Assembly in Materials",
+ "total_score": 47.77823,
+ "lexical_score": 40.8613394,
+ "title_vector_score": 26.26675,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Supramolecular",
+ "score": 0.9278784
+ }
+ ]
+ },
+ {
+ "query": "supramolecular architecture",
+ "field": "Chemistry",
+ "rank": 3,
+ "topic_name": "Organometallic Compounds Synthesis and Characterization",
+ "total_score": 36.651398,
+ "lexical_score": 18.513298,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.941248,
+ "matched_keywords": [
+ {
+ "keyword": "Supramolecular Structures",
+ "score": 0.95764995
+ }
+ ]
+ },
+ {
+ "query": "crystallography structure determination",
+ "field": "Chemistry",
+ "rank": 1,
+ "topic_name": "Enzyme Structure and Function",
+ "total_score": 70.5288,
+ "lexical_score": 70.5447604,
+ "title_vector_score": 0.0,
+ "description_vector_score": 12.614776,
+ "keywords_vector_score": 24.273754,
+ "matched_keywords": [
+ {
+ "keyword": "Crystal Structure Determination",
+ "score": 0.9709501
+ },
+ {
+ "keyword": "High-Throughput Crystallization",
+ "score": 0.88436055
+ }
+ ]
+ },
+ {
+ "query": "crystallography structure determination",
+ "field": "Chemistry",
+ "rank": 2,
+ "topic_name": "X-ray Diffraction in Crystallography",
+ "total_score": 57.227184,
+ "lexical_score": 71.933577,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.431736,
+ "matched_keywords": [
+ {
+ "keyword": "Crystallography",
+ "score": 0.93726945
+ },
+ {
+ "keyword": "Crystal Structure",
+ "score": 0.9201422
+ }
+ ]
+ },
+ {
+ "query": "crystallography structure determination",
+ "field": "Chemistry",
+ "rank": 3,
+ "topic_name": "Crystallography and molecular interactions",
+ "total_score": 48.826996,
+ "lexical_score": 21.714607,
+ "title_vector_score": 27.11239,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Crystal Engineering",
+ "score": 0.87612987
+ },
+ {
+ "keyword": "Molecular Crystals",
+ "score": 0.86688185
+ }
+ ]
+ },
+ {
+ "query": "linear algebra",
+ "field": "Mathematics",
+ "rank": 1,
+ "topic_name": "Matrix Theory and Algorithms",
+ "total_score": 51.12666,
+ "lexical_score": 42.725856,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.348248,
+ "matched_keywords": [
+ {
+ "keyword": "Numerical Linear Algebra",
+ "score": 0.9739299
+ }
+ ]
+ },
+ {
+ "query": "linear algebra",
+ "field": "Mathematics",
+ "rank": 2,
+ "topic_name": "Advanced Algebra and Geometry",
+ "total_score": 47.438644,
+ "lexical_score": 21.084139,
+ "title_vector_score": 26.354506,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Algebraic Groups",
+ "score": 0.85431695
+ }
+ ]
+ },
+ {
+ "query": "linear algebra",
+ "field": "Mathematics",
+ "rank": 3,
+ "topic_name": "Advanced Algebra and Logic",
+ "total_score": 47.420616,
+ "lexical_score": 21.084139,
+ "title_vector_score": 26.336475,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "MV-algebras",
+ "score": 0.87039185
+ },
+ {
+ "keyword": "Algebraic Semantics",
+ "score": 0.8541527
+ }
+ ]
+ },
+ {
+ "query": "differential equations solution",
+ "field": "Mathematics",
+ "rank": 1,
+ "topic_name": "Numerical methods for differential equations",
+ "total_score": 100.174484,
+ "lexical_score": 71.4616614,
+ "title_vector_score": 28.608835,
+ "description_vector_score": 12.280605,
+ "keywords_vector_score": 24.207973,
+ "matched_keywords": [
+ {
+ "keyword": "Differential Equations",
+ "score": 0.96831894
+ },
+ {
+ "keyword": "Schrödinger Equation",
+ "score": 0.810616
+ }
+ ]
+ },
+ {
+ "query": "differential equations solution",
+ "field": "Mathematics",
+ "rank": 2,
+ "topic_name": "Fractional Differential Equations Solutions",
+ "total_score": 66.85466,
+ "lexical_score": 54.988964,
+ "title_vector_score": 28.435078,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Nonlinear Equations",
+ "score": 0.89679
+ }
+ ]
+ },
+ {
+ "query": "differential equations solution",
+ "field": "Mathematics",
+ "rank": 3,
+ "topic_name": "Differential Equations and Numerical Methods",
+ "total_score": 63.579563,
+ "lexical_score": 49.6730943,
+ "title_vector_score": 28.502491,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Reaction-Diffusion Equations",
+ "score": 0.8137686
+ }
+ ]
+ },
+ {
+ "query": "algebraic topology",
+ "field": "Mathematics",
+ "rank": 1,
+ "topic_name": "Geometric and Algebraic Topology",
+ "total_score": 94.87563,
+ "lexical_score": 68.47117800000001,
+ "title_vector_score": 29.343645,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.258091,
+ "matched_keywords": [
+ {
+ "keyword": "Symplectic Topology",
+ "score": 0.9303236
+ },
+ {
+ "keyword": "Quantum Topology",
+ "score": 0.8519547
+ }
+ ]
+ },
+ {
+ "query": "algebraic topology",
+ "field": "Mathematics",
+ "rank": 2,
+ "topic_name": "Homotopy and Cohomology in Algebraic Topology",
+ "total_score": 47.98306,
+ "lexical_score": 56.607684000000006,
+ "title_vector_score": 0.0,
+ "description_vector_score": 12.476102,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Symplectic Geometry",
+ "score": 0.8829887
+ },
+ {
+ "keyword": "Higher Algebraic Structures",
+ "score": 0.87763524
+ }
+ ]
+ },
+ {
+ "query": "algebraic topology",
+ "field": "Mathematics",
+ "rank": 3,
+ "topic_name": "Advanced Algebra and Geometry",
+ "total_score": 39.542973,
+ "lexical_score": 19.142407,
+ "title_vector_score": 26.862274,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Algebraic Groups",
+ "score": 0.86005545
+ },
+ {
+ "keyword": "Symmetric Spaces",
+ "score": 0.8148055
+ }
+ ]
+ },
+ {
+ "query": "number theory cryptography",
+ "field": "Mathematics",
+ "rank": 1,
+ "topic_name": "Cryptography and Residue Arithmetic",
+ "total_score": 71.55334,
+ "lexical_score": 40.268685000000005,
+ "title_vector_score": 27.493816,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.344912,
+ "matched_keywords": [
+ {
+ "keyword": "Cryptography",
+ "score": 0.89379644
+ },
+ {
+ "keyword": "Pairing-Based Cryptosystems",
+ "score": 0.81322527
+ }
+ ]
+ },
+ {
+ "query": "number theory cryptography",
+ "field": "Mathematics",
+ "rank": 2,
+ "topic_name": "Coding theory and cryptography",
+ "total_score": 62.771965,
+ "lexical_score": 56.763103,
+ "title_vector_score": 26.87645,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Cryptography",
+ "score": 0.8936386
+ }
+ ]
+ },
+ {
+ "query": "number theory cryptography",
+ "field": "Mathematics",
+ "rank": 3,
+ "topic_name": "Cryptography and Data Security",
+ "total_score": 47.4797,
+ "lexical_score": 46.95996100000001,
+ "title_vector_score": 25.765093,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Pairing-based Cryptography",
+ "score": 0.86563563
+ },
+ {
+ "keyword": "Lattice-based Cryptography",
+ "score": 0.86250234
+ }
+ ]
+ },
+ {
+ "query": "calculus fundamentals",
+ "field": "Mathematics",
+ "rank": 1,
+ "topic_name": "Algebraic and Geometric Analysis",
+ "total_score": 35.612576,
+ "lexical_score": 21.006066,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.664434,
+ "matched_keywords": [
+ {
+ "keyword": "Functional Calculus",
+ "score": 0.90657735
+ },
+ {
+ "keyword": "Geometric Algebra",
+ "score": 0.8684695
+ }
+ ]
+ },
+ {
+ "query": "calculus fundamentals",
+ "field": "Mathematics",
+ "rank": 2,
+ "topic_name": "Mathematics and Applications",
+ "total_score": 26.552631,
+ "lexical_score": 0.0,
+ "title_vector_score": 26.552631,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Algebraic",
+ "score": 0.88375497
+ }
+ ]
+ },
+ {
+ "query": "calculus fundamentals",
+ "field": "Mathematics",
+ "rank": 3,
+ "topic_name": "Advanced Algebra and Logic",
+ "total_score": 26.479769,
+ "lexical_score": 0.0,
+ "title_vector_score": 26.479769,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Algebraic Semantics",
+ "score": 0.8785937
+ },
+ {
+ "keyword": "MV-algebras",
+ "score": 0.8222306
+ }
+ ]
+ },
+ {
+ "query": "probability and statistics",
+ "field": "Mathematics",
+ "rank": 1,
+ "topic_name": "Probability and Statistical Research",
+ "total_score": 77.67239,
+ "lexical_score": 61.30781543212,
+ "title_vector_score": 29.412403,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.960787,
+ "matched_keywords": [
+ {
+ "keyword": "Probability Theory",
+ "score": 0.9584315
+ },
+ {
+ "keyword": "Random Variables",
+ "score": 0.82488513
+ }
+ ]
+ },
+ {
+ "query": "probability and statistics",
+ "field": "Mathematics",
+ "rank": 2,
+ "topic_name": "Probabilistic Statistics in Medicine",
+ "total_score": 75.51628,
+ "lexical_score": 62.98214271166,
+ "title_vector_score": 26.719494,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.070496,
+ "matched_keywords": [
+ {
+ "keyword": "Probability",
+ "score": 0.9628198
+ },
+ {
+ "keyword": "Statistics",
+ "score": 0.818377
+ }
+ ]
+ },
+ {
+ "query": "probability and statistics",
+ "field": "Mathematics",
+ "rank": 3,
+ "topic_name": "Probability and Risk Models",
+ "total_score": 51.332283,
+ "lexical_score": 36.75532952495,
+ "title_vector_score": 27.033083,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Ruin Probability",
+ "score": 0.82426405
+ }
+ ]
+ },
+ {
+ "query": "discrete mathematics structures",
+ "field": "Mathematics",
+ "rank": 1,
+ "topic_name": "Algebraic structures and combinatorial models",
+ "total_score": 43.47911,
+ "lexical_score": 17.134045,
+ "title_vector_score": 26.345064,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "discrete mathematics structures",
+ "field": "Mathematics",
+ "rank": 2,
+ "topic_name": "Mathematical and Theoretical Analysis",
+ "total_score": 42.00207,
+ "lexical_score": 29.8899057,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.095097,
+ "matched_keywords": [
+ {
+ "keyword": "Topological Structures",
+ "score": 0.88380384
+ },
+ {
+ "keyword": "Algebraic Theory",
+ "score": 0.83190775
+ }
+ ]
+ },
+ {
+ "query": "discrete mathematics structures",
+ "field": "Mathematics",
+ "rank": 3,
+ "topic_name": "Digital Image Processing Techniques",
+ "total_score": 35.151962,
+ "lexical_score": 20.347973,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 21.909523,
+ "matched_keywords": [
+ {
+ "keyword": "Discrete Geometry",
+ "score": 0.8763809
+ },
+ {
+ "keyword": "Topology",
+ "score": 0.8402045
+ }
+ ]
+ },
+ {
+ "query": "numerical analysis algorithms",
+ "field": "Mathematics",
+ "rank": 1,
+ "topic_name": "Statistical and numerical algorithms",
+ "total_score": 63.930943,
+ "lexical_score": 47.6394435,
+ "title_vector_score": 28.487843,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Parameter Estimation",
+ "score": 0.8142986
+ }
+ ]
+ },
+ {
+ "query": "numerical analysis algorithms",
+ "field": "Mathematics",
+ "rank": 2,
+ "topic_name": "Numerical Methods and Algorithms",
+ "total_score": 63.927338,
+ "lexical_score": 53.892776,
+ "title_vector_score": 28.484238,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "High-Precision Computation",
+ "score": 0.84698796
+ }
+ ]
+ },
+ {
+ "query": "numerical analysis algorithms",
+ "field": "Mathematics",
+ "rank": 3,
+ "topic_name": "Advanced Numerical Analysis Techniques",
+ "total_score": 57.222904,
+ "lexical_score": 35.852087600000004,
+ "title_vector_score": 28.190403,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "complex analysis functions",
+ "field": "Mathematics",
+ "rank": 1,
+ "topic_name": "Analytic and geometric function theory",
+ "total_score": 89.80713,
+ "lexical_score": 40.3276494,
+ "title_vector_score": 25.385963,
+ "description_vector_score": 12.248225,
+ "keywords_vector_score": 23.575508,
+ "matched_keywords": [
+ {
+ "keyword": "Complex Analysis",
+ "score": 0.94302034
+ },
+ {
+ "keyword": "Analytic Functions",
+ "score": 0.932497
+ }
+ ]
+ },
+ {
+ "query": "complex analysis functions",
+ "field": "Mathematics",
+ "rank": 2,
+ "topic_name": "Mathematical functions and polynomials",
+ "total_score": 45.819477,
+ "lexical_score": 35.442372999999996,
+ "title_vector_score": 24.735338,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "complex analysis functions",
+ "field": "Mathematics",
+ "rank": 3,
+ "topic_name": "Advanced Banach Space Theory",
+ "total_score": 39.3117,
+ "lexical_score": 25.9271889,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.089333,
+ "matched_keywords": [
+ {
+ "keyword": "Functional Analysis",
+ "score": 0.8835733
+ }
+ ]
+ },
+ {
+ "query": "geometry axiom theories",
+ "field": "Mathematics",
+ "rank": 1,
+ "topic_name": "Algebraic Geometry and Number Theory",
+ "total_score": 66.86455,
+ "lexical_score": 46.0824,
+ "title_vector_score": 25.813251,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.28067,
+ "matched_keywords": [
+ {
+ "keyword": "Symplectic Geometry",
+ "score": 0.89122677
+ },
+ {
+ "keyword": "Birational Geometry",
+ "score": 0.8436918
+ }
+ ]
+ },
+ {
+ "query": "geometry axiom theories",
+ "field": "Mathematics",
+ "rank": 2,
+ "topic_name": "Geometric and Algebraic Topology",
+ "total_score": 37.437866,
+ "lexical_score": 17.5830957,
+ "title_vector_score": 26.20928,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Symplectic Topology",
+ "score": 0.83569837
+ }
+ ]
+ },
+ {
+ "query": "geometry axiom theories",
+ "field": "Mathematics",
+ "rank": 3,
+ "topic_name": "Mathematics and Applications",
+ "total_score": 36.573658,
+ "lexical_score": 22.662967000000002,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.40163,
+ "matched_keywords": [
+ {
+ "keyword": "Geometry",
+ "score": 0.89606524
+ },
+ {
+ "keyword": "Algebraic",
+ "score": 0.81211996
+ }
+ ]
+ },
+ {
+ "query": "combinatorics counting techniques",
+ "field": "Mathematics",
+ "rank": 1,
+ "topic_name": "Advanced Combinatorial Mathematics",
+ "total_score": 71.74554,
+ "lexical_score": 35.855732,
+ "title_vector_score": 26.14161,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 21.371984,
+ "matched_keywords": [
+ {
+ "keyword": "Combinatorics",
+ "score": 0.8548794
+ },
+ {
+ "keyword": "Algebraic Combinatorics",
+ "score": 0.82629704
+ }
+ ]
+ },
+ {
+ "query": "combinatorics counting techniques",
+ "field": "Mathematics",
+ "rank": 2,
+ "topic_name": "Heat Transfer and Numerical Methods",
+ "total_score": 20.726181,
+ "lexical_score": 0.0,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 20.726181,
+ "matched_keywords": [
+ {
+ "keyword": "Numerical Methods",
+ "score": 0.8290472
+ }
+ ]
+ },
+ {
+ "query": "combinatorics counting techniques",
+ "field": "Mathematics",
+ "rank": 3,
+ "topic_name": "Differential Equations and Numerical Methods",
+ "total_score": 20.718025,
+ "lexical_score": 0.0,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 20.718025,
+ "matched_keywords": [
+ {
+ "keyword": "Numerical Methods",
+ "score": 0.82872105
+ }
+ ]
+ },
+ {
+ "query": "mathematical modeling simulation",
+ "field": "Mathematics",
+ "rank": 1,
+ "topic_name": "Simulation Techniques and Applications",
+ "total_score": 85.795944,
+ "lexical_score": 50.0998847,
+ "title_vector_score": 28.238096,
+ "description_vector_score": 12.477869,
+ "keywords_vector_score": 24.538565,
+ "matched_keywords": [
+ {
+ "keyword": "Modeling and Simulation",
+ "score": 0.9815426
+ },
+ {
+ "keyword": "Simulation Optimization",
+ "score": 0.8727677
+ }
+ ]
+ },
+ {
+ "query": "mathematical modeling simulation",
+ "field": "Mathematics",
+ "rank": 2,
+ "topic_name": "Modeling and Simulation Systems",
+ "total_score": 76.700356,
+ "lexical_score": 65.19091,
+ "title_vector_score": 28.944004,
+ "description_vector_score": 12.450649,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Simulation",
+ "score": 0.9402952
+ },
+ {
+ "keyword": "Hybrid Modeling",
+ "score": 0.8417182
+ }
+ ]
+ },
+ {
+ "query": "mathematical modeling simulation",
+ "field": "Mathematics",
+ "rank": 3,
+ "topic_name": "Simulation and Modeling Applications",
+ "total_score": 64.294624,
+ "lexical_score": 62.718115,
+ "title_vector_score": 28.988922,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Simulation",
+ "score": 0.94029856
+ },
+ {
+ "keyword": "Modeling",
+ "score": 0.9253619
+ }
+ ]
+ },
+ {
+ "query": "set theory foundations",
+ "field": "Mathematics",
+ "rank": 1,
+ "topic_name": "Advanced Topology and Set Theory",
+ "total_score": 59.416336,
+ "lexical_score": 47.016591,
+ "title_vector_score": 24.957691,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "set theory foundations",
+ "field": "Mathematics",
+ "rank": 2,
+ "topic_name": "Fuzzy and Soft Set Theory",
+ "total_score": 34.458645,
+ "lexical_score": 60.605400499999995,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Soft Set Theory",
+ "score": 0.8474772
+ }
+ ]
+ },
+ {
+ "query": "set theory foundations",
+ "field": "Mathematics",
+ "rank": 3,
+ "topic_name": "Educational Research and Analysis",
+ "total_score": 27.648743,
+ "lexical_score": 8.7903188,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 21.702707,
+ "matched_keywords": [
+ {
+ "keyword": "Grounded Theory Technique",
+ "score": 0.8681083
+ }
+ ]
+ },
+ {
+ "query": "graph theory applications",
+ "field": "Mathematics",
+ "rank": 1,
+ "topic_name": "Advanced Graph Theory Research",
+ "total_score": 100.74854,
+ "lexical_score": 72.4424236,
+ "title_vector_score": 29.077642,
+ "description_vector_score": 12.712766,
+ "keywords_vector_score": 24.667532,
+ "matched_keywords": [
+ {
+ "keyword": "Graph Theory",
+ "score": 0.98670125
+ }
+ ]
+ },
+ {
+ "query": "graph theory applications",
+ "field": "Mathematics",
+ "rank": 2,
+ "topic_name": "Graph Theory and Algorithms",
+ "total_score": 74.94738,
+ "lexical_score": 61.569491,
+ "title_vector_score": 28.490618,
+ "description_vector_score": 12.166161,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Graph Processing",
+ "score": 0.89444685
+ },
+ {
+ "keyword": "Graph Database",
+ "score": 0.88789487
+ }
+ ]
+ },
+ {
+ "query": "graph theory applications",
+ "field": "Mathematics",
+ "rank": 3,
+ "topic_name": "Graph theory and applications",
+ "total_score": 74.45813,
+ "lexical_score": 64.76663239999999,
+ "title_vector_score": 29.835205,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Graph Spectra",
+ "score": 0.90467954
+ }
+ ]
+ },
+ {
+ "query": "real analysis limits",
+ "field": "Mathematics",
+ "rank": 1,
+ "topic_name": "Advancements in Photolithography Techniques",
+ "total_score": 34.095367,
+ "lexical_score": 19.831479,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 21.009487,
+ "matched_keywords": [
+ {
+ "keyword": "Resolution Limits",
+ "score": 0.8403795
+ }
+ ]
+ },
+ {
+ "query": "real analysis limits",
+ "field": "Mathematics",
+ "rank": 2,
+ "topic_name": "Masonry and Concrete Structural Analysis",
+ "total_score": 31.624348,
+ "lexical_score": 17.5446962,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.512669,
+ "matched_keywords": [
+ {
+ "keyword": "Limit Analysis",
+ "score": 0.90050673
+ }
+ ]
+ },
+ {
+ "query": "real analysis limits",
+ "field": "Mathematics",
+ "rank": 3,
+ "topic_name": "Microbial Metabolic Engineering and Bioproduction",
+ "total_score": 25.093792,
+ "lexical_score": 5.7552264,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 21.115786,
+ "matched_keywords": [
+ {
+ "keyword": "Constraint-Based Models",
+ "score": 0.84463143
+ }
+ ]
+ },
+ {
+ "query": "partial differential equations",
+ "field": "Mathematics",
+ "rank": 1,
+ "topic_name": "Nonlinear Partial Differential Equations",
+ "total_score": 92.851875,
+ "lexical_score": 85.1366263,
+ "title_vector_score": 29.266075,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Nonlinear Equations",
+ "score": 0.9072499
+ },
+ {
+ "keyword": "Elliptic Equations",
+ "score": 0.8508153
+ }
+ ]
+ },
+ {
+ "query": "partial differential equations",
+ "field": "Mathematics",
+ "rank": 2,
+ "topic_name": "Numerical methods for differential equations",
+ "total_score": 86.50109,
+ "lexical_score": 65.591034,
+ "title_vector_score": 27.716711,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.707306,
+ "matched_keywords": [
+ {
+ "keyword": "Differential Equations",
+ "score": 0.94829226
+ }
+ ]
+ },
+ {
+ "query": "partial differential equations",
+ "field": "Mathematics",
+ "rank": 3,
+ "topic_name": "Differential Equations and Boundary Problems",
+ "total_score": 81.954384,
+ "lexical_score": 100.78196369999999,
+ "title_vector_score": 0.0,
+ "description_vector_score": 12.605389,
+ "keywords_vector_score": 24.856216,
+ "matched_keywords": [
+ {
+ "keyword": "Partial Differential Equations",
+ "score": 0.9942486
+ },
+ {
+ "keyword": "Integro-Differential Equations",
+ "score": 0.8605385
+ }
+ ]
+ },
+ {
+ "query": "abstract algebra groups",
+ "field": "Mathematics",
+ "rank": 1,
+ "topic_name": "Advanced Algebra and Geometry",
+ "total_score": 70.79669,
+ "lexical_score": 38.311009,
+ "title_vector_score": 25.673748,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.038809,
+ "matched_keywords": [
+ {
+ "keyword": "Algebraic Groups",
+ "score": 0.9615524
+ }
+ ]
+ },
+ {
+ "query": "abstract algebra groups",
+ "field": "Mathematics",
+ "rank": 2,
+ "topic_name": "Advanced Topics in Algebra",
+ "total_score": 46.777596,
+ "lexical_score": 35.205442,
+ "title_vector_score": 25.693459,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Quasi-Lie Algebras",
+ "score": 0.85309577
+ },
+ {
+ "keyword": "Hom-Lie Algebras",
+ "score": 0.82888365
+ }
+ ]
+ },
+ {
+ "query": "abstract algebra groups",
+ "field": "Mathematics",
+ "rank": 3,
+ "topic_name": "Advanced Topology and Set Theory",
+ "total_score": 37.820663,
+ "lexical_score": 40.18338369999999,
+ "title_vector_score": 0.0,
+ "description_vector_score": 12.384238,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Automorphism Groups",
+ "score": 0.8389139
+ },
+ {
+ "keyword": "Abstract Elementary Classes",
+ "score": 0.8147843
+ }
+ ]
+ },
+ {
+ "query": "optimization theory algorithms",
+ "field": "Mathematics",
+ "rank": 1,
+ "topic_name": "Advanced Optimization Algorithms Research",
+ "total_score": 72.28314,
+ "lexical_score": 49.04833,
+ "title_vector_score": 29.221123,
+ "description_vector_score": 12.553421,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Optimization Software",
+ "score": 0.9217546
+ },
+ {
+ "keyword": "Derivative-Free Optimization",
+ "score": 0.91189766
+ }
+ ]
+ },
+ {
+ "query": "optimization theory algorithms",
+ "field": "Mathematics",
+ "rank": 2,
+ "topic_name": "Advanced Multi-Objective Optimization Algorithms",
+ "total_score": 68.73753,
+ "lexical_score": 59.68726149999999,
+ "title_vector_score": 28.526287,
+ "description_vector_score": 12.356897,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Multiobjective Optimization",
+ "score": 0.91011786
+ },
+ {
+ "keyword": "Bayesian Optimization",
+ "score": 0.8696563
+ }
+ ]
+ },
+ {
+ "query": "optimization theory algorithms",
+ "field": "Mathematics",
+ "rank": 3,
+ "topic_name": "Military Defense Systems Analysis",
+ "total_score": 46.254784,
+ "lexical_score": 30.567841299999998,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.783005,
+ "matched_keywords": [
+ {
+ "keyword": "Optimization",
+ "score": 0.9513202
+ },
+ {
+ "keyword": "Heuristic Algorithms",
+ "score": 0.81690335
+ }
+ ]
+ },
+ {
+ "query": "stochastic processes modeling",
+ "field": "Mathematics",
+ "rank": 1,
+ "topic_name": "Stochastic processes and statistical mechanics",
+ "total_score": 61.16403,
+ "lexical_score": 64.62345400000001,
+ "title_vector_score": 28.093136,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Stochastic Loewner Evolution",
+ "score": 0.81903887
+ }
+ ]
+ },
+ {
+ "query": "stochastic processes modeling",
+ "field": "Mathematics",
+ "rank": 2,
+ "topic_name": "Stochastic processes and financial applications",
+ "total_score": 59.98173,
+ "lexical_score": 57.078519400000005,
+ "title_vector_score": 26.91084,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Stochastic Calculus",
+ "score": 0.85673237
+ }
+ ]
+ },
+ {
+ "query": "stochastic processes modeling",
+ "field": "Mathematics",
+ "rank": 3,
+ "topic_name": "Analysis of environmental and stochastic processes",
+ "total_score": 57.43096,
+ "lexical_score": 30.424002,
+ "title_vector_score": 27.006962,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "chaos theory dynamics",
+ "field": "Mathematics",
+ "rank": 1,
+ "topic_name": "Quantum chaos and dynamical systems",
+ "total_score": 64.369064,
+ "lexical_score": 57.3835629,
+ "title_vector_score": 27.71405,
+ "description_vector_score": 12.431935,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Quantum Chaos",
+ "score": 0.8810191
+ }
+ ]
+ },
+ {
+ "query": "chaos theory dynamics",
+ "field": "Mathematics",
+ "rank": 2,
+ "topic_name": "Chaos control and synchronization",
+ "total_score": 56.376892,
+ "lexical_score": 51.6745657,
+ "title_vector_score": 0.0,
+ "description_vector_score": 12.585096,
+ "keywords_vector_score": 22.07719,
+ "matched_keywords": [
+ {
+ "keyword": "Chaos",
+ "score": 0.88308764
+ },
+ {
+ "keyword": "Nonlinear Dynamics",
+ "score": 0.8435955
+ }
+ ]
+ },
+ {
+ "query": "chaos theory dynamics",
+ "field": "Mathematics",
+ "rank": 3,
+ "topic_name": "Chaos-based Image/Signal Encryption",
+ "total_score": 41.902626,
+ "lexical_score": 39.71059,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.07719,
+ "matched_keywords": [
+ {
+ "keyword": "Chaos",
+ "score": 0.88308764
+ }
+ ]
+ },
+ {
+ "query": "synaptic plasticity",
+ "field": "Neuroscience",
+ "rank": 1,
+ "topic_name": "Neuroscience and Neuropharmacology Research",
+ "total_score": 59.89493,
+ "lexical_score": 34.733166,
+ "title_vector_score": 0.0,
+ "description_vector_score": 13.12942,
+ "keywords_vector_score": 24.069792,
+ "matched_keywords": [
+ {
+ "keyword": "Synaptic Plasticity",
+ "score": 0.9627917
+ },
+ {
+ "keyword": "Neuronal Circuits",
+ "score": 0.8298404
+ }
+ ]
+ },
+ {
+ "query": "synaptic plasticity",
+ "field": "Neuroscience",
+ "rank": 2,
+ "topic_name": "Proteoglycans and glycosaminoglycans research",
+ "total_score": 48.871395,
+ "lexical_score": 36.837164,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.071676,
+ "matched_keywords": [
+ {
+ "keyword": "Synaptic Plasticity",
+ "score": 0.962867
+ }
+ ]
+ },
+ {
+ "query": "synaptic plasticity",
+ "field": "Neuroscience",
+ "rank": 3,
+ "topic_name": "Treatment of Major Depression",
+ "total_score": 47.270027,
+ "lexical_score": 33.936592000000005,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.0825,
+ "matched_keywords": [
+ {
+ "keyword": "Synaptic Plasticity",
+ "score": 0.9633
+ }
+ ]
+ },
+ {
+ "query": "neurodegenerative diseases mechanisms",
+ "field": "Neuroscience",
+ "rank": 1,
+ "topic_name": "Genetic Neurodegenerative Diseases",
+ "total_score": 82.44069,
+ "lexical_score": 53.5682652,
+ "title_vector_score": 27.422218,
+ "description_vector_score": 13.698288,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Neuronal Degeneration",
+ "score": 0.9117048
+ }
+ ]
+ },
+ {
+ "query": "neurodegenerative diseases mechanisms",
+ "field": "Neuroscience",
+ "rank": 2,
+ "topic_name": "Neurological Disease Mechanisms and Treatments",
+ "total_score": 70.24223,
+ "lexical_score": 43.2949684,
+ "title_vector_score": 26.740244,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.729992,
+ "matched_keywords": [
+ {
+ "keyword": "Neurodegenerative Diseases",
+ "score": 0.9491997
+ },
+ {
+ "keyword": "Neuroprotective Effects",
+ "score": 0.81679296
+ }
+ ]
+ },
+ {
+ "query": "neurodegenerative diseases mechanisms",
+ "field": "Neuroscience",
+ "rank": 3,
+ "topic_name": "Cholinesterase and Neurodegenerative Diseases",
+ "total_score": 61.10514,
+ "lexical_score": 66.8270305,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.722374,
+ "matched_keywords": [
+ {
+ "keyword": "Neurodegenerative Diseases",
+ "score": 0.948895
+ },
+ {
+ "keyword": "Alzheimer's Disease",
+ "score": 0.82919073
+ }
+ ]
+ },
+ {
+ "query": "brain mapping fmri",
+ "field": "Neuroscience",
+ "rank": 1,
+ "topic_name": "Functional Brain Connectivity Studies",
+ "total_score": 63.529152,
+ "lexical_score": 58.250214299999996,
+ "title_vector_score": 26.059185,
+ "description_vector_score": 12.634048,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Neuroimaging Data Analysis",
+ "score": 0.8752761
+ },
+ {
+ "keyword": "Brain Network Organization",
+ "score": 0.85817194
+ }
+ ]
+ },
+ {
+ "query": "brain mapping fmri",
+ "field": "Neuroscience",
+ "rank": 2,
+ "topic_name": "EEG and Brain-Computer Interfaces",
+ "total_score": 42.799786,
+ "lexical_score": 30.136013300000002,
+ "title_vector_score": 25.117706,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Brain-Computer Interfaces",
+ "score": 0.8468063
+ }
+ ]
+ },
+ {
+ "query": "brain mapping fmri",
+ "field": "Neuroscience",
+ "rank": 3,
+ "topic_name": "Advanced Neuroimaging Techniques and Applications",
+ "total_score": 39.514477,
+ "lexical_score": 20.419534,
+ "title_vector_score": 25.886486,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Neuroimaging",
+ "score": 0.8680258
+ },
+ {
+ "keyword": "Brain Connectivity",
+ "score": 0.86265135
+ }
+ ]
+ },
+ {
+ "query": "cognitive neuroscience memory",
+ "field": "Neuroscience",
+ "rank": 1,
+ "topic_name": "Cognitive Functions and Memory",
+ "total_score": 77.36846,
+ "lexical_score": 60.1066322,
+ "title_vector_score": 28.624413,
+ "description_vector_score": 13.033401,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Prospective Memory",
+ "score": 0.8700447
+ },
+ {
+ "keyword": "Neurocognitive Systems",
+ "score": 0.86821294
+ }
+ ]
+ },
+ {
+ "query": "cognitive neuroscience memory",
+ "field": "Neuroscience",
+ "rank": 2,
+ "topic_name": "Memory and Neural Mechanisms",
+ "total_score": 58.960938,
+ "lexical_score": 32.71462,
+ "title_vector_score": 28.256542,
+ "description_vector_score": 12.441405,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Memory",
+ "score": 0.86838746
+ }
+ ]
+ },
+ {
+ "query": "cognitive neuroscience memory",
+ "field": "Neuroscience",
+ "rank": 3,
+ "topic_name": "Memory Processes and Influences",
+ "total_score": 58.5331,
+ "lexical_score": 37.9348917,
+ "title_vector_score": 26.891212,
+ "description_vector_score": 13.378898,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Episodic Memory",
+ "score": 0.87045693
+ },
+ {
+ "keyword": "Emotional Memory",
+ "score": 0.8564725
+ }
+ ]
+ },
+ {
+ "query": "neurotransmitter receptors pathways",
+ "field": "Neuroscience",
+ "rank": 1,
+ "topic_name": "Neurotransmitter Receptor Influence on Behavior",
+ "total_score": 72.92345,
+ "lexical_score": 48.414665,
+ "title_vector_score": 26.547031,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.399656,
+ "matched_keywords": [
+ {
+ "keyword": "Neurotransmitter Systems",
+ "score": 0.9359863
+ }
+ ]
+ },
+ {
+ "query": "neurotransmitter receptors pathways",
+ "field": "Neuroscience",
+ "rank": 2,
+ "topic_name": "Receptor Mechanisms and Signaling",
+ "total_score": 36.82361,
+ "lexical_score": 18.5690424,
+ "title_vector_score": 26.998207,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Receptor Activation",
+ "score": 0.8878331
+ },
+ {
+ "keyword": "G-Protein-Coupled Receptors",
+ "score": 0.8130448
+ }
+ ]
+ },
+ {
+ "query": "neurotransmitter receptors pathways",
+ "field": "Neuroscience",
+ "rank": 3,
+ "topic_name": "Nicotinic Acetylcholine Receptors Study",
+ "total_score": 33.408737,
+ "lexical_score": 35.992717999999996,
+ "title_vector_score": 0.0,
+ "description_vector_score": 12.3246,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Neuronal Signaling",
+ "score": 0.86643505
+ },
+ {
+ "keyword": "Nicotinic Acetylcholine Receptors",
+ "score": 0.8280039
+ }
+ ]
+ },
+ {
+ "query": "neural network architecture",
+ "field": "Neuroscience",
+ "rank": 1,
+ "topic_name": "Advanced Neural Network Applications",
+ "total_score": 102.33311,
+ "lexical_score": 61.715172100000004,
+ "title_vector_score": 28.61076,
+ "description_vector_score": 12.275863,
+ "keywords_vector_score": 24.90322,
+ "matched_keywords": [
+ {
+ "keyword": "Neural Network Architectures",
+ "score": 0.9961288
+ },
+ {
+ "keyword": "Convolutional Neural Networks",
+ "score": 0.9012821
+ }
+ ]
+ },
+ {
+ "query": "neural network architecture",
+ "field": "Neuroscience",
+ "rank": 2,
+ "topic_name": "Neural Networks and Applications",
+ "total_score": 47.112812,
+ "lexical_score": 33.3228047,
+ "title_vector_score": 28.608027,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Neural Networks",
+ "score": 0.956126
+ },
+ {
+ "keyword": "Artificial Neural Networks",
+ "score": 0.94065404
+ }
+ ]
+ },
+ {
+ "query": "neural network architecture",
+ "field": "Neuroscience",
+ "rank": 3,
+ "topic_name": "Advanced Graph Neural Networks",
+ "total_score": 45.23586,
+ "lexical_score": 38.244734699999995,
+ "title_vector_score": 26.731073,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Graph Neural Networks",
+ "score": 0.89489603
+ }
+ ]
+ },
+ {
+ "query": "behavioral neuroscience addiction",
+ "field": "Neuroscience",
+ "rank": 1,
+ "topic_name": "Neurotransmitter Receptor Influence on Behavior",
+ "total_score": 51.505512,
+ "lexical_score": 22.490359400000003,
+ "title_vector_score": 26.2551,
+ "description_vector_score": 13.172389,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Compulsive Behaviors",
+ "score": 0.85193396
+ }
+ ]
+ },
+ {
+ "query": "behavioral neuroscience addiction",
+ "field": "Neuroscience",
+ "rank": 2,
+ "topic_name": "Behavioral and Psychological Studies",
+ "total_score": 45.910156,
+ "lexical_score": 35.8471595,
+ "title_vector_score": 25.80046,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Behavioral Interventions",
+ "score": 0.81012964
+ }
+ ]
+ },
+ {
+ "query": "behavioral neuroscience addiction",
+ "field": "Neuroscience",
+ "rank": 3,
+ "topic_name": "Neural and Behavioral Psychology Studies",
+ "total_score": 44.728325,
+ "lexical_score": 18.36015,
+ "title_vector_score": 26.368176,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "neurogenesis adult brain",
+ "field": "Neuroscience",
+ "rank": 1,
+ "topic_name": "Neurogenesis and neuroplasticity mechanisms",
+ "total_score": 106.01132,
+ "lexical_score": 88.32923969999999,
+ "title_vector_score": 27.995375,
+ "description_vector_score": 13.348438,
+ "keywords_vector_score": 23.696316,
+ "matched_keywords": [
+ {
+ "keyword": "Neurogenesis",
+ "score": 0.9478526
+ },
+ {
+ "keyword": "Hippocampal Neurogenesis",
+ "score": 0.9148395
+ }
+ ]
+ },
+ {
+ "query": "neurogenesis adult brain",
+ "field": "Neuroscience",
+ "rank": 2,
+ "topic_name": "Neonatal and fetal brain pathology",
+ "total_score": 42.59298,
+ "lexical_score": 31.669328,
+ "title_vector_score": 24.910898,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Neurodevelopmental Outcomes",
+ "score": 0.8431773
+ }
+ ]
+ },
+ {
+ "query": "neurogenesis adult brain",
+ "field": "Neuroscience",
+ "rank": 3,
+ "topic_name": "Neuroinflammation and Neurodegeneration Mechanisms",
+ "total_score": 34.646122,
+ "lexical_score": 14.1693523,
+ "title_vector_score": 24.897251,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Brain Development",
+ "score": 0.89607906
+ },
+ {
+ "keyword": "Neurodegeneration",
+ "score": 0.87447643
+ }
+ ]
+ },
+ {
+ "query": "axon guidance development",
+ "field": "Neuroscience",
+ "rank": 1,
+ "topic_name": "Axon Guidance and Neuronal Signaling",
+ "total_score": 93.76396,
+ "lexical_score": 91.6650332,
+ "title_vector_score": 25.102709,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.173021,
+ "matched_keywords": [
+ {
+ "keyword": "Axon guidance",
+ "score": 0.96692085
+ }
+ ]
+ },
+ {
+ "query": "axon guidance development",
+ "field": "Neuroscience",
+ "rank": 2,
+ "topic_name": "Nerve injury and regeneration",
+ "total_score": 41.213024,
+ "lexical_score": 28.9597028,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 21.274216,
+ "matched_keywords": [
+ {
+ "keyword": "Axon Growth",
+ "score": 0.8509686
+ }
+ ]
+ },
+ {
+ "query": "axon guidance development",
+ "field": "Neuroscience",
+ "rank": 3,
+ "topic_name": "Advanced Neuroimaging Techniques and Applications",
+ "total_score": 25.414444,
+ "lexical_score": 5.972761,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 21.052063,
+ "matched_keywords": [
+ {
+ "keyword": "Axonal Tracking",
+ "score": 0.8420825
+ }
+ ]
+ },
+ {
+ "query": "spinal cord injury",
+ "field": "Neuroscience",
+ "rank": 1,
+ "topic_name": "Spinal Cord Injury Research",
+ "total_score": 131.86089,
+ "lexical_score": 122.623144,
+ "title_vector_score": 29.222137,
+ "description_vector_score": 12.536022,
+ "keywords_vector_score": 24.799793,
+ "matched_keywords": [
+ {
+ "keyword": "Spinal Cord Injury",
+ "score": 0.99199176
+ }
+ ]
+ },
+ {
+ "query": "spinal cord injury",
+ "field": "Neuroscience",
+ "rank": 2,
+ "topic_name": "Nerve injury and regeneration",
+ "total_score": 58.56611,
+ "lexical_score": 69.1761044,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.796885,
+ "matched_keywords": [
+ {
+ "keyword": "Spinal Cord Injury",
+ "score": 0.9918754
+ }
+ ]
+ },
+ {
+ "query": "spinal cord injury",
+ "field": "Neuroscience",
+ "rank": 3,
+ "topic_name": "Veterinary Orthopedics and Neurology",
+ "total_score": 48.90074,
+ "lexical_score": 37.9690976,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.716394,
+ "matched_keywords": [
+ {
+ "keyword": "Spinal Cord Injuries",
+ "score": 0.9886558
+ }
+ ]
+ },
+ {
+ "query": "sensory processing systems",
+ "field": "Neuroscience",
+ "rank": 1,
+ "topic_name": "Sensory Analysis and Statistical Methods",
+ "total_score": 69.82231,
+ "lexical_score": 36.502345500000004,
+ "title_vector_score": 26.73066,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.26622,
+ "matched_keywords": [
+ {
+ "keyword": "Sensory Analysis",
+ "score": 0.9306488
+ }
+ ]
+ },
+ {
+ "query": "sensory processing systems",
+ "field": "Neuroscience",
+ "rank": 2,
+ "topic_name": "Visual perception and processing mechanisms",
+ "total_score": 48.091934,
+ "lexical_score": 48.212036,
+ "title_vector_score": 26.189196,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Sensory Integration",
+ "score": 0.90256214
+ },
+ {
+ "keyword": "Neural Processing",
+ "score": 0.83470654
+ }
+ ]
+ },
+ {
+ "query": "sensory processing systems",
+ "field": "Neuroscience",
+ "rank": 3,
+ "topic_name": "Olfactory and Sensory Function Studies",
+ "total_score": 45.39106,
+ "lexical_score": 31.436794,
+ "title_vector_score": 25.565628,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Neural Processing",
+ "score": 0.83470654
+ },
+ {
+ "keyword": "Olfactory Receptors",
+ "score": 0.82782984
+ }
+ ]
+ },
+ {
+ "query": "motor control pathways",
+ "field": "Neuroscience",
+ "rank": 1,
+ "topic_name": "Motor Control and Adaptation",
+ "total_score": 97.71293,
+ "lexical_score": 72.089542,
+ "title_vector_score": 26.97067,
+ "description_vector_score": 12.310048,
+ "keywords_vector_score": 22.767765,
+ "matched_keywords": [
+ {
+ "keyword": "Motor Control",
+ "score": 0.9107106
+ }
+ ]
+ },
+ {
+ "query": "motor control pathways",
+ "field": "Neuroscience",
+ "rank": 2,
+ "topic_name": "Sports and Physical Education Research",
+ "total_score": 43.376713,
+ "lexical_score": 30.30022,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.767765,
+ "matched_keywords": [
+ {
+ "keyword": "Motor Control",
+ "score": 0.9107106
+ }
+ ]
+ },
+ {
+ "query": "motor control pathways",
+ "field": "Neuroscience",
+ "rank": 3,
+ "topic_name": "Vestibular and auditory disorders",
+ "total_score": 41.28382,
+ "lexical_score": 26.441605,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.768665,
+ "matched_keywords": [
+ {
+ "keyword": "Motor Control",
+ "score": 0.9107466
+ }
+ ]
+ },
+ {
+ "query": "alzheimer disease pathology",
+ "field": "Neuroscience",
+ "rank": 1,
+ "topic_name": "Alzheimer's disease research and treatments",
+ "total_score": 54.208946,
+ "lexical_score": 33.948145,
+ "title_vector_score": 27.86582,
+ "description_vector_score": 13.277657,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Neurodegeneration",
+ "score": 0.85461736
+ },
+ {
+ "keyword": "Amyloid Hypothesis",
+ "score": 0.8190489
+ }
+ ]
+ },
+ {
+ "query": "alzheimer disease pathology",
+ "field": "Neuroscience",
+ "rank": 2,
+ "topic_name": "Dementia and Cognitive Impairment Research",
+ "total_score": 45.16308,
+ "lexical_score": 9.385709,
+ "title_vector_score": 26.32229,
+ "description_vector_score": 12.451265,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Alzheimer's Disease",
+ "score": 0.97426915
+ },
+ {
+ "keyword": "Dementia",
+ "score": 0.8963206
+ }
+ ]
+ },
+ {
+ "query": "alzheimer disease pathology",
+ "field": "Neuroscience",
+ "rank": 3,
+ "topic_name": "Clusterin in disease pathology",
+ "total_score": 33.07724,
+ "lexical_score": 33.077239,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "parkinson motor deficits",
+ "field": "Neuroscience",
+ "rank": 1,
+ "topic_name": "Motor Control and Adaptation",
+ "total_score": 22.504187,
+ "lexical_score": 45.856981000000005,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "parkinson motor deficits",
+ "field": "Neuroscience",
+ "rank": 2,
+ "topic_name": "Electric Motor Design and Analysis",
+ "total_score": 20.54632,
+ "lexical_score": 41.086400600000005,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "parkinson motor deficits",
+ "field": "Neuroscience",
+ "rank": 3,
+ "topic_name": "Children's Physical and Motor Development",
+ "total_score": 20.54632,
+ "lexical_score": 47.177949000000005,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "neuroimmunology inflammation",
+ "field": "Neuroscience",
+ "rank": 1,
+ "topic_name": "Neuroinflammation and Neurodegeneration Mechanisms",
+ "total_score": 39.700706,
+ "lexical_score": 0.0,
+ "title_vector_score": 27.139599,
+ "description_vector_score": 12.561107,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Neuroinflammation",
+ "score": 0.97534204
+ },
+ {
+ "keyword": "Neurodegeneration",
+ "score": 0.8426161
+ }
+ ]
+ },
+ {
+ "query": "neuroimmunology inflammation",
+ "field": "Neuroscience",
+ "rank": 2,
+ "topic_name": "Inflammasome and immune disorders",
+ "total_score": 35.102425,
+ "lexical_score": 8.585497,
+ "title_vector_score": 26.516926,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Inflammation",
+ "score": 0.88129616
+ },
+ {
+ "keyword": "Inflammasome",
+ "score": 0.8591559
+ }
+ ]
+ },
+ {
+ "query": "neuroimmunology inflammation",
+ "field": "Neuroscience",
+ "rank": 3,
+ "topic_name": "Autoimmune Neurological Disorders and Treatments",
+ "total_score": 26.572731,
+ "lexical_score": 0.0,
+ "title_vector_score": 26.572731,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Neurological Disorders",
+ "score": 0.825752
+ },
+ {
+ "keyword": "Anti-NMDA Receptor Encephalitis",
+ "score": 0.8235557
+ }
+ ]
+ },
+ {
+ "query": "sleep neural circuits",
+ "field": "Neuroscience",
+ "rank": 1,
+ "topic_name": "Sleep and Wakefulness Research",
+ "total_score": 59.656853,
+ "lexical_score": 49.5691463,
+ "title_vector_score": 25.583832,
+ "description_vector_score": 12.98888,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Sleep",
+ "score": 0.8487861
+ }
+ ]
+ },
+ {
+ "query": "sleep neural circuits",
+ "field": "Neuroscience",
+ "rank": 2,
+ "topic_name": "Neuroscience of respiration and sleep",
+ "total_score": 45.415745,
+ "lexical_score": 39.4339505,
+ "title_vector_score": 26.165928,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Neural Circuits",
+ "score": 0.86139965
+ }
+ ]
+ },
+ {
+ "query": "sleep neural circuits",
+ "field": "Neuroscience",
+ "rank": 3,
+ "topic_name": "Neural dynamics and brain function",
+ "total_score": 42.23815,
+ "lexical_score": 31.4845426,
+ "title_vector_score": 25.343285,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Neural Activity",
+ "score": 0.85822296
+ }
+ ]
+ },
+ {
+ "query": "epilepsy seizure mechanisms",
+ "field": "Neuroscience",
+ "rank": 1,
+ "topic_name": "Epilepsy research and treatment",
+ "total_score": 89.66354,
+ "lexical_score": 49.19043,
+ "title_vector_score": 27.898943,
+ "description_vector_score": 12.884968,
+ "keywords_vector_score": 23.71341,
+ "matched_keywords": [
+ {
+ "keyword": "Epilepsy",
+ "score": 0.9485364
+ },
+ {
+ "keyword": "Status Epilepticus",
+ "score": 0.90347886
+ }
+ ]
+ },
+ {
+ "query": "epilepsy seizure mechanisms",
+ "field": "Neuroscience",
+ "rank": 2,
+ "topic_name": "Glycogen Storage Diseases and Myoclonus",
+ "total_score": 36.380024,
+ "lexical_score": 18.945693,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.699326,
+ "matched_keywords": [
+ {
+ "keyword": "Epilepsy",
+ "score": 0.947973
+ }
+ ]
+ },
+ {
+ "query": "epilepsy seizure mechanisms",
+ "field": "Neuroscience",
+ "rank": 3,
+ "topic_name": "Tuberous Sclerosis Complex Research",
+ "total_score": 36.130737,
+ "lexical_score": 18.782721000000002,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.71341,
+ "matched_keywords": [
+ {
+ "keyword": "Epilepsy",
+ "score": 0.9485364
+ }
+ ]
+ },
+ {
+ "query": "computational neuroscience models",
+ "field": "Neuroscience",
+ "rank": 1,
+ "topic_name": "Neuroscience and Neural Engineering",
+ "total_score": 45.927116,
+ "lexical_score": 19.36701,
+ "title_vector_score": 26.560106,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Neural Stimulation",
+ "score": 0.81599164
+ },
+ {
+ "keyword": "Neuronal Networks",
+ "score": 0.81415343
+ }
+ ]
+ },
+ {
+ "query": "computational neuroscience models",
+ "field": "Neuroscience",
+ "rank": 2,
+ "topic_name": "Functional Brain Connectivity Studies",
+ "total_score": 34.82864,
+ "lexical_score": 0.0,
+ "title_vector_score": 0.0,
+ "description_vector_score": 12.162073,
+ "keywords_vector_score": 22.666567,
+ "matched_keywords": [
+ {
+ "keyword": "Neuroimaging Data Analysis",
+ "score": 0.9066627
+ },
+ {
+ "keyword": "Brain Network Development",
+ "score": 0.8378515
+ }
+ ]
+ },
+ {
+ "query": "computational neuroscience models",
+ "field": "Neuroscience",
+ "rank": 3,
+ "topic_name": "Advanced Neuroimaging Techniques and Applications",
+ "total_score": 25.828415,
+ "lexical_score": 0.0,
+ "title_vector_score": 25.828415,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Neuroimaging",
+ "score": 0.8758614
+ },
+ {
+ "keyword": "Brain Connectivity",
+ "score": 0.81212735
+ }
+ ]
+ },
+ {
+ "query": "neuropharmacology drugs action",
+ "field": "Neuroscience",
+ "rank": 1,
+ "topic_name": "Neuroscience and Neuropharmacology Research",
+ "total_score": 53.623505,
+ "lexical_score": 25.166224,
+ "title_vector_score": 28.45728,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Neurotransmission",
+ "score": 0.8460767
+ }
+ ]
+ },
+ {
+ "query": "neuropharmacology drugs action",
+ "field": "Neuroscience",
+ "rank": 2,
+ "topic_name": "Alkaloids: synthesis and pharmacology",
+ "total_score": 41.278732,
+ "lexical_score": 17.285608,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.993122,
+ "matched_keywords": [
+ {
+ "keyword": "Neuropharmacology",
+ "score": 0.9597249
+ },
+ {
+ "keyword": "Pharmacological Effects",
+ "score": 0.87272716
+ }
+ ]
+ },
+ {
+ "query": "neuropharmacology drugs action",
+ "field": "Neuroscience",
+ "rank": 3,
+ "topic_name": "Phenothiazines and Benzothiazines Synthesis and Activities",
+ "total_score": 33.596542,
+ "lexical_score": 15.177289000000002,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.74046,
+ "matched_keywords": [
+ {
+ "keyword": "Neuroprotective Agents",
+ "score": 0.9096184
+ },
+ {
+ "keyword": "Phenothiazines",
+ "score": 0.82500196
+ }
+ ]
+ },
+ {
+ "query": "brain computer interface",
+ "field": "Neuroscience",
+ "rank": 1,
+ "topic_name": "EEG and Brain-Computer Interfaces",
+ "total_score": 101.97783,
+ "lexical_score": 65.8617823,
+ "title_vector_score": 26.390034,
+ "description_vector_score": 12.664469,
+ "keywords_vector_score": 24.694925,
+ "matched_keywords": [
+ {
+ "keyword": "Brain-Computer Interfaces",
+ "score": 0.987797
+ }
+ ]
+ },
+ {
+ "query": "brain computer interface",
+ "field": "Neuroscience",
+ "rank": 2,
+ "topic_name": "Functional Brain Connectivity Studies",
+ "total_score": 44.930435,
+ "lexical_score": 36.558771300000004,
+ "title_vector_score": 25.563427,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Brain Network Organization",
+ "score": 0.8501222
+ },
+ {
+ "keyword": "Brain Network Development",
+ "score": 0.8449621
+ }
+ ]
+ },
+ {
+ "query": "brain computer interface",
+ "field": "Neuroscience",
+ "rank": 3,
+ "topic_name": "Cognitive Computing and Networks",
+ "total_score": 32.7799,
+ "lexical_score": 12.52835,
+ "title_vector_score": 24.746447,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Brain-Inspired Systems",
+ "score": 0.84906507
+ },
+ {
+ "keyword": "Cognitive Computing",
+ "score": 0.8403914
+ }
+ ]
+ },
+ {
+ "query": "operations research optimization",
+ "field": "Decision Sciences",
+ "rank": 1,
+ "topic_name": "Management and Optimization Techniques",
+ "total_score": 67.52716,
+ "lexical_score": 38.2684371,
+ "title_vector_score": 27.001575,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.713291,
+ "matched_keywords": [
+ {
+ "keyword": "Operations Research",
+ "score": 0.90853167
+ }
+ ]
+ },
+ {
+ "query": "operations research optimization",
+ "field": "Decision Sciences",
+ "rank": 2,
+ "topic_name": "Advanced Optimization Algorithms Research",
+ "total_score": 49.231995,
+ "lexical_score": 40.4309694,
+ "title_vector_score": 27.340752,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Optimization Software",
+ "score": 0.87715364
+ },
+ {
+ "keyword": "Global Optimization",
+ "score": 0.8363726
+ }
+ ]
+ },
+ {
+ "query": "operations research optimization",
+ "field": "Decision Sciences",
+ "rank": 3,
+ "topic_name": "Evaluation and Optimization Models",
+ "total_score": 41.178226,
+ "lexical_score": 14.11807,
+ "title_vector_score": 27.060156,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "decision analysis models",
+ "field": "Decision Sciences",
+ "rank": 1,
+ "topic_name": "Multi-Criteria Decision Making",
+ "total_score": 58.281292,
+ "lexical_score": 44.1996028,
+ "title_vector_score": 26.581821,
+ "description_vector_score": 12.33246,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "GIS-based Decision Analysis",
+ "score": 0.84926915
+ }
+ ]
+ },
+ {
+ "query": "decision analysis models",
+ "field": "Decision Sciences",
+ "rank": 2,
+ "topic_name": "Advanced Decision-Making Techniques",
+ "total_score": 46.623947,
+ "lexical_score": 22.510361,
+ "title_vector_score": 27.256937,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "decision analysis models",
+ "field": "Decision Sciences",
+ "rank": 3,
+ "topic_name": "Groundwater and Watershed Analysis",
+ "total_score": 44.5568,
+ "lexical_score": 41.9416724,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.896927,
+ "matched_keywords": [
+ {
+ "keyword": "Multi-Criteria Decision Analysis",
+ "score": 0.9158771
+ }
+ ]
+ },
+ {
+ "query": "multi criteria decision making",
+ "field": "Decision Sciences",
+ "rank": 1,
+ "topic_name": "Multi-Criteria Decision Making",
+ "total_score": 127.9148,
+ "lexical_score": 132.7763889,
+ "title_vector_score": 29.113941,
+ "description_vector_score": 12.443325,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Group Decision Making",
+ "score": 0.83732414
+ }
+ ]
+ },
+ {
+ "query": "multi criteria decision making",
+ "field": "Decision Sciences",
+ "rank": 2,
+ "topic_name": "Advanced Decision-Making Techniques",
+ "total_score": 66.58833,
+ "lexical_score": 39.476704999999995,
+ "title_vector_score": 27.111626,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "multi criteria decision making",
+ "field": "Decision Sciences",
+ "rank": 3,
+ "topic_name": "Fuzzy and Soft Set Theory",
+ "total_score": 64.88011,
+ "lexical_score": 62.04687559999999,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.574154,
+ "matched_keywords": [
+ {
+ "keyword": "Multi-criteria Decision Making",
+ "score": 0.9829662
+ },
+ {
+ "keyword": "Decision Making",
+ "score": 0.8889749
+ }
+ ]
+ },
+ {
+ "query": "game theory strategies",
+ "field": "Decision Sciences",
+ "rank": 1,
+ "topic_name": "Game Theory and Applications",
+ "total_score": 89.50664,
+ "lexical_score": 60.82520360000001,
+ "title_vector_score": 28.658846,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.162691,
+ "matched_keywords": [
+ {
+ "keyword": "Game Theory",
+ "score": 0.9665077
+ },
+ {
+ "keyword": "Coordination Games",
+ "score": 0.852885
+ }
+ ]
+ },
+ {
+ "query": "game theory strategies",
+ "field": "Decision Sciences",
+ "rank": 2,
+ "topic_name": "Game Theory and Voting Systems",
+ "total_score": 59.48517,
+ "lexical_score": 63.6153666,
+ "title_vector_score": 25.991678,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Game Theory",
+ "score": 0.96626616
+ }
+ ]
+ },
+ {
+ "query": "game theory strategies",
+ "field": "Decision Sciences",
+ "rank": 3,
+ "topic_name": "Evolutionary Game Theory and Cooperation",
+ "total_score": 58.719612,
+ "lexical_score": 33.493488,
+ "title_vector_score": 25.226126,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Evolutionary Games",
+ "score": 0.8355169
+ }
+ ]
+ },
+ {
+ "query": "risk analysis management",
+ "field": "Decision Sciences",
+ "rank": 1,
+ "topic_name": "Risk Management in Financial Firms",
+ "total_score": 64.432335,
+ "lexical_score": 45.8389224,
+ "title_vector_score": 26.815367,
+ "description_vector_score": 12.530004,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Enterprise Risk Management",
+ "score": 0.9269841
+ },
+ {
+ "keyword": "Risk Measurement",
+ "score": 0.9087837
+ }
+ ]
+ },
+ {
+ "query": "risk analysis management",
+ "field": "Decision Sciences",
+ "rank": 2,
+ "topic_name": "Risk and Portfolio Optimization",
+ "total_score": 57.37362,
+ "lexical_score": 37.5335236,
+ "title_vector_score": 27.262823,
+ "description_vector_score": 12.837725,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Risk Management",
+ "score": 0.9704845
+ },
+ {
+ "keyword": "Coherent Risk Measures",
+ "score": 0.8625767
+ }
+ ]
+ },
+ {
+ "query": "risk analysis management",
+ "field": "Decision Sciences",
+ "rank": 3,
+ "topic_name": "Risk Perception and Management",
+ "total_score": 55.487606,
+ "lexical_score": 41.40854,
+ "title_vector_score": 28.010094,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Risk Perception",
+ "score": 0.88152194
+ },
+ {
+ "keyword": "Social Amplification of Risk",
+ "score": 0.8103876
+ }
+ ]
+ },
+ {
+ "query": "linear programming applications",
+ "field": "Decision Sciences",
+ "rank": 1,
+ "topic_name": "Complexity and Algorithms in Graphs",
+ "total_score": 53.35495,
+ "lexical_score": 45.348588400000004,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.549711,
+ "matched_keywords": [
+ {
+ "keyword": "Linear Programming",
+ "score": 0.98198843
+ }
+ ]
+ },
+ {
+ "query": "linear programming applications",
+ "field": "Decision Sciences",
+ "rank": 2,
+ "topic_name": "Optimization and Mathematical Programming",
+ "total_score": 44.31213,
+ "lexical_score": 55.9300457,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 21.450508,
+ "matched_keywords": [
+ {
+ "keyword": "Linear Fractional Programming",
+ "score": 0.8580203
+ }
+ ]
+ },
+ {
+ "query": "linear programming applications",
+ "field": "Decision Sciences",
+ "rank": 3,
+ "topic_name": "Advanced Optimization Algorithms Research",
+ "total_score": 38.753193,
+ "lexical_score": 22.790296,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.452932,
+ "matched_keywords": [
+ {
+ "keyword": "Nonlinear Programming",
+ "score": 0.93811727
+ },
+ {
+ "keyword": "Mixed-Integer Nonlinear Programs",
+ "score": 0.8222642
+ }
+ ]
+ },
+ {
+ "query": "forecasting methods business",
+ "field": "Decision Sciences",
+ "rank": 1,
+ "topic_name": "Forecasting Techniques and Applications",
+ "total_score": 83.74512,
+ "lexical_score": 46.431188,
+ "title_vector_score": 28.288235,
+ "description_vector_score": 12.152906,
+ "keywords_vector_score": 23.194283,
+ "matched_keywords": [
+ {
+ "keyword": "Forecasting",
+ "score": 0.92777133
+ },
+ {
+ "keyword": "Demand Forecasting",
+ "score": 0.8889427
+ }
+ ]
+ },
+ {
+ "query": "forecasting methods business",
+ "field": "Decision Sciences",
+ "rank": 2,
+ "topic_name": "Stock Market Forecasting Methods",
+ "total_score": 82.93655,
+ "lexical_score": 55.06493570000001,
+ "title_vector_score": 26.768417,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.286009,
+ "matched_keywords": [
+ {
+ "keyword": "Forecasting Models",
+ "score": 0.93144035
+ },
+ {
+ "keyword": "Stock Market Prediction",
+ "score": 0.8399596
+ }
+ ]
+ },
+ {
+ "query": "forecasting methods business",
+ "field": "Decision Sciences",
+ "rank": 3,
+ "topic_name": "Innovation Diffusion and Forecasting",
+ "total_score": 43.400776,
+ "lexical_score": 35.313250999999994,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.29108,
+ "matched_keywords": [
+ {
+ "keyword": "Forecasting Models",
+ "score": 0.93164325
+ }
+ ]
+ },
+ {
+ "query": "supply chain optimization",
+ "field": "Decision Sciences",
+ "rank": 1,
+ "topic_name": "Supply Chain and Inventory Management",
+ "total_score": 64.644485,
+ "lexical_score": 63.519496000000004,
+ "title_vector_score": 26.624043,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Supply Chain Coordination",
+ "score": 0.9032295
+ }
+ ]
+ },
+ {
+ "query": "supply chain optimization",
+ "field": "Decision Sciences",
+ "rank": 2,
+ "topic_name": "Food Supply Chain Traceability",
+ "total_score": 41.64343,
+ "lexical_score": 75.6360402,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Logistics Management",
+ "score": 0.8335428
+ },
+ {
+ "keyword": "Supply Chain Transparency",
+ "score": 0.8144443
+ }
+ ]
+ },
+ {
+ "query": "supply chain optimization",
+ "field": "Decision Sciences",
+ "rank": 3,
+ "topic_name": "Sustainable Supply Chain Management",
+ "total_score": 41.64343,
+ "lexical_score": 77.239848,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Sustainable Supply Chain Management",
+ "score": 0.88758945
+ },
+ {
+ "keyword": "Supply Chain Network Design",
+ "score": 0.88102555
+ }
+ ]
+ },
+ {
+ "query": "stochastic modeling systems",
+ "field": "Decision Sciences",
+ "rank": 1,
+ "topic_name": "Reliability and Maintenance Optimization",
+ "total_score": 47.088417,
+ "lexical_score": 34.5891289,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.485128,
+ "matched_keywords": [
+ {
+ "keyword": "Stochastic Modeling",
+ "score": 0.97940516
+ },
+ {
+ "keyword": "Prognostic Models",
+ "score": 0.85521483
+ }
+ ]
+ },
+ {
+ "query": "stochastic modeling systems",
+ "field": "Decision Sciences",
+ "rank": 2,
+ "topic_name": "Stochastic processes and statistical mechanics",
+ "total_score": 46.673523,
+ "lexical_score": 41.315074,
+ "title_vector_score": 27.423706,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "stochastic modeling systems",
+ "field": "Decision Sciences",
+ "rank": 3,
+ "topic_name": "Stochastic processes and financial applications",
+ "total_score": 45.62731,
+ "lexical_score": 43.2574444,
+ "title_vector_score": 26.377495,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Stochastic Calculus",
+ "score": 0.866241
+ }
+ ]
+ },
+ {
+ "query": "queuing theory performance",
+ "field": "Decision Sciences",
+ "rank": 1,
+ "topic_name": "Advanced Queuing Theory Analysis",
+ "total_score": 91.18285,
+ "lexical_score": 57.653091,
+ "title_vector_score": 28.570711,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.26501,
+ "matched_keywords": [
+ {
+ "keyword": "Queueing Theory",
+ "score": 0.9306004
+ },
+ {
+ "keyword": "Queueing Systems",
+ "score": 0.87206626
+ }
+ ]
+ },
+ {
+ "query": "queuing theory performance",
+ "field": "Decision Sciences",
+ "rank": 2,
+ "topic_name": "Accounting and Organizational Management",
+ "total_score": 29.589596,
+ "lexical_score": 12.676344499999999,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 20.924562,
+ "matched_keywords": [
+ {
+ "keyword": "Performance Implications",
+ "score": 0.8369825
+ }
+ ]
+ },
+ {
+ "query": "queuing theory performance",
+ "field": "Decision Sciences",
+ "rank": 3,
+ "topic_name": "Age of Information Optimization",
+ "total_score": 23.803822,
+ "lexical_score": 2.887954,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 20.915867,
+ "matched_keywords": [
+ {
+ "keyword": "Queue Management",
+ "score": 0.83663464
+ }
+ ]
+ },
+ {
+ "query": "decision tree classification",
+ "field": "Decision Sciences",
+ "rank": 1,
+ "topic_name": "Scientific Research Methodologies and Applications",
+ "total_score": 32.362167,
+ "lexical_score": 12.833763,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.38891,
+ "matched_keywords": [
+ {
+ "keyword": "Decision Trees",
+ "score": 0.9355564
+ }
+ ]
+ },
+ {
+ "query": "decision tree classification",
+ "field": "Decision Sciences",
+ "rank": 2,
+ "topic_name": "Data Mining Algorithms and Applications",
+ "total_score": 31.646423,
+ "lexical_score": 12.597146,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.38891,
+ "matched_keywords": [
+ {
+ "keyword": "Decision Trees",
+ "score": 0.9355564
+ }
+ ]
+ },
+ {
+ "query": "decision tree classification",
+ "field": "Decision Sciences",
+ "rank": 3,
+ "topic_name": "Rough Sets and Fuzzy Logic",
+ "total_score": 28.864233,
+ "lexical_score": 12.474516,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 20.768166,
+ "matched_keywords": [
+ {
+ "keyword": "Decision Analysis",
+ "score": 0.8307266
+ }
+ ]
+ },
+ {
+ "query": "predictive analytics framework",
+ "field": "Decision Sciences",
+ "rank": 1,
+ "topic_name": "AI and HR Technologies",
+ "total_score": 49.140244,
+ "lexical_score": 30.977037000000003,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.181932,
+ "matched_keywords": [
+ {
+ "keyword": "Predictive Analytics",
+ "score": 0.9672773
+ }
+ ]
+ },
+ {
+ "query": "predictive analytics framework",
+ "field": "Decision Sciences",
+ "rank": 2,
+ "topic_name": "Big Data and Business Intelligence",
+ "total_score": 49.136086,
+ "lexical_score": 36.3375469,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.177773,
+ "matched_keywords": [
+ {
+ "keyword": "Predictive Analytics",
+ "score": 0.9671109
+ },
+ {
+ "keyword": "Analytics",
+ "score": 0.88254476
+ }
+ ]
+ },
+ {
+ "query": "predictive analytics framework",
+ "field": "Decision Sciences",
+ "rank": 3,
+ "topic_name": "Online Learning and Analytics",
+ "total_score": 45.899994,
+ "lexical_score": 53.414531700000005,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.395807,
+ "matched_keywords": [
+ {
+ "keyword": "Predictive Analysis",
+ "score": 0.93583226
+ },
+ {
+ "keyword": "Learning Analytics",
+ "score": 0.8544166
+ }
+ ]
+ },
+ {
+ "query": "statistical decision theory",
+ "field": "Decision Sciences",
+ "rank": 1,
+ "topic_name": "Advanced Decision-Making Techniques",
+ "total_score": 45.00717,
+ "lexical_score": 19.36701,
+ "title_vector_score": 25.64016,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "statistical decision theory",
+ "field": "Decision Sciences",
+ "rank": 2,
+ "topic_name": "Statistical Methods and Inference",
+ "total_score": 43.73478,
+ "lexical_score": 17.632524,
+ "title_vector_score": 26.102257,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "statistical decision theory",
+ "field": "Decision Sciences",
+ "rank": 3,
+ "topic_name": "Statistical Methods and Applications",
+ "total_score": 43.145275,
+ "lexical_score": 33.2729027,
+ "title_vector_score": 25.51275,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Statistical Modeling",
+ "score": 0.85673666
+ }
+ ]
+ },
+ {
+ "query": "heuristic search optimization",
+ "field": "Decision Sciences",
+ "rank": 1,
+ "topic_name": "Optimization and Search Problems",
+ "total_score": 63.405216,
+ "lexical_score": 53.4714004,
+ "title_vector_score": 26.782959,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "heuristic search optimization",
+ "field": "Decision Sciences",
+ "rank": 2,
+ "topic_name": "Vehicle Routing Optimization Methods",
+ "total_score": 52.503983,
+ "lexical_score": 61.243859400000005,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 21.965582,
+ "matched_keywords": [
+ {
+ "keyword": "Heuristic Algorithms",
+ "score": 0.87862325
+ },
+ {
+ "keyword": "Large-Scale Optimization",
+ "score": 0.81685495
+ }
+ ]
+ },
+ {
+ "query": "heuristic search optimization",
+ "field": "Decision Sciences",
+ "rank": 3,
+ "topic_name": "AI-based Problem Solving and Planning",
+ "total_score": 45.48415,
+ "lexical_score": 35.3028216,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.301495,
+ "matched_keywords": [
+ {
+ "keyword": "Heuristic Search",
+ "score": 0.93205976
+ }
+ ]
+ },
+ {
+ "query": "inventory control models",
+ "field": "Decision Sciences",
+ "rank": 1,
+ "topic_name": "Supply Chain and Inventory Management",
+ "total_score": 48.197784,
+ "lexical_score": 40.3829947,
+ "title_vector_score": 25.221025,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Inventory Management",
+ "score": 0.83236146
+ }
+ ]
+ },
+ {
+ "query": "inventory control models",
+ "field": "Decision Sciences",
+ "rank": 2,
+ "topic_name": "Mathematical Control Systems and Analysis",
+ "total_score": 36.72504,
+ "lexical_score": 12.015317,
+ "title_vector_score": 24.709724,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "inventory control models",
+ "field": "Decision Sciences",
+ "rank": 3,
+ "topic_name": "Control Systems and Identification",
+ "total_score": 36.67901,
+ "lexical_score": 35.6235026,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 21.618504,
+ "matched_keywords": [
+ {
+ "keyword": "Model-Based Control",
+ "score": 0.86474013
+ }
+ ]
+ },
+ {
+ "query": "simulation optimization methods",
+ "field": "Decision Sciences",
+ "rank": 1,
+ "topic_name": "Modeling, Simulation, and Optimization",
+ "total_score": 84.70622,
+ "lexical_score": 53.764060799999996,
+ "title_vector_score": 28.841192,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.242176,
+ "matched_keywords": [
+ {
+ "keyword": "Simulation Optimization Hybrids",
+ "score": 0.929687
+ }
+ ]
+ },
+ {
+ "query": "simulation optimization methods",
+ "field": "Decision Sciences",
+ "rank": 2,
+ "topic_name": "Simulation Techniques and Applications",
+ "total_score": 56.2638,
+ "lexical_score": 48.162834000000004,
+ "title_vector_score": 0.0,
+ "description_vector_score": 12.286424,
+ "keywords_vector_score": 24.617035,
+ "matched_keywords": [
+ {
+ "keyword": "Simulation Optimization",
+ "score": 0.98468137
+ },
+ {
+ "keyword": "Modeling and Simulation",
+ "score": 0.8650749
+ }
+ ]
+ },
+ {
+ "query": "simulation optimization methods",
+ "field": "Decision Sciences",
+ "rank": 3,
+ "topic_name": "Advanced Optimization Algorithms Research",
+ "total_score": 46.22116,
+ "lexical_score": 41.9509472,
+ "title_vector_score": 27.04527,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Optimization Software",
+ "score": 0.89047956
+ },
+ {
+ "keyword": "Derivative-Free Optimization",
+ "score": 0.857054
+ }
+ ]
+ },
+ {
+ "query": "behavioral decision making",
+ "field": "Decision Sciences",
+ "rank": 1,
+ "topic_name": "Decision-Making and Behavioral Economics",
+ "total_score": 94.18681,
+ "lexical_score": 90.10470570000001,
+ "title_vector_score": 27.586048,
+ "description_vector_score": 12.19839,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Decision Making",
+ "score": 0.878181
+ }
+ ]
+ },
+ {
+ "query": "behavioral decision making",
+ "field": "Decision Sciences",
+ "rank": 2,
+ "topic_name": "Advanced Decision-Making Techniques",
+ "total_score": 65.3826,
+ "lexical_score": 39.476704999999995,
+ "title_vector_score": 25.905891,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "behavioral decision making",
+ "field": "Decision Sciences",
+ "rank": 3,
+ "topic_name": "Behavioral and Psychological Studies",
+ "total_score": 45.52593,
+ "lexical_score": 35.8471595,
+ "title_vector_score": 25.416233,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Behavioral Interventions",
+ "score": 0.85537887
+ }
+ ]
+ },
+ {
+ "query": "utility theory choices",
+ "field": "Decision Sciences",
+ "rank": 1,
+ "topic_name": "Health Systems, Economic Evaluations, Quality of Life",
+ "total_score": 38.061394,
+ "lexical_score": 24.037194,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 20.455568,
+ "matched_keywords": [
+ {
+ "keyword": "Utility Index Scores",
+ "score": 0.81822276
+ }
+ ]
+ },
+ {
+ "query": "utility theory choices",
+ "field": "Decision Sciences",
+ "rank": 2,
+ "topic_name": "Power Systems and Technologies",
+ "total_score": 35.041126,
+ "lexical_score": 21.330081,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 20.456642,
+ "matched_keywords": [
+ {
+ "keyword": "Electric Utility",
+ "score": 0.8182657
+ }
+ ]
+ },
+ {
+ "query": "utility theory choices",
+ "field": "Decision Sciences",
+ "rank": 3,
+ "topic_name": "Evaluation Methods in Various Fields",
+ "total_score": 20.32726,
+ "lexical_score": 0.0,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 20.32726,
+ "matched_keywords": [
+ {
+ "keyword": "Electricity Demand Response",
+ "score": 0.8130903
+ }
+ ]
+ },
+ {
+ "query": "data driven decision support",
+ "field": "Decision Sciences",
+ "rank": 1,
+ "topic_name": "Decision Support System Applications",
+ "total_score": 65.9209,
+ "lexical_score": 62.471836999999994,
+ "title_vector_score": 26.444191,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Decision Support System",
+ "score": 0.8954892
+ }
+ ]
+ },
+ {
+ "query": "data driven decision support",
+ "field": "Decision Sciences",
+ "rank": 2,
+ "topic_name": "Artificial Intelligence and Decision Support Systems",
+ "total_score": 59.222336,
+ "lexical_score": 42.7239254,
+ "title_vector_score": 26.064814,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "data driven decision support",
+ "field": "Decision Sciences",
+ "rank": 3,
+ "topic_name": "Advanced Decision-Making Techniques",
+ "total_score": 45.16175,
+ "lexical_score": 30.4098145,
+ "title_vector_score": 25.794739,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "dynamic programming problems",
+ "field": "Decision Sciences",
+ "rank": 1,
+ "topic_name": "Adaptive Dynamic Programming Control",
+ "total_score": 91.76821,
+ "lexical_score": 74.804451,
+ "title_vector_score": 25.28886,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.260553,
+ "matched_keywords": [
+ {
+ "keyword": "Adaptive Dynamic Programming",
+ "score": 0.8904221
+ }
+ ]
+ },
+ {
+ "query": "dynamic programming problems",
+ "field": "Decision Sciences",
+ "rank": 2,
+ "topic_name": "Vehicle Routing Optimization Methods",
+ "total_score": 41.38945,
+ "lexical_score": 27.478259,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.376757,
+ "matched_keywords": [
+ {
+ "keyword": "Dynamic Programming",
+ "score": 0.9350703
+ }
+ ]
+ },
+ {
+ "query": "dynamic programming problems",
+ "field": "Decision Sciences",
+ "rank": 3,
+ "topic_name": "Mechanical Engineering Research and Applications",
+ "total_score": 28.80784,
+ "lexical_score": 8.101706,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 20.706135,
+ "matched_keywords": [
+ {
+ "keyword": "Dynamic Characteristics",
+ "score": 0.8282454
+ }
+ ]
+ },
+ {
+ "query": "plate tectonics geology",
+ "field": "Earth and Planetary Sciences",
+ "rank": 1,
+ "topic_name": "Geological and Geophysical Studies",
+ "total_score": 76.88058,
+ "lexical_score": 33.516977000000004,
+ "title_vector_score": 25.986364,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.084557,
+ "matched_keywords": [
+ {
+ "keyword": "Plate Tectonics",
+ "score": 0.96338224
+ },
+ {
+ "keyword": "Tectonic Model",
+ "score": 0.8969557
+ }
+ ]
+ },
+ {
+ "query": "plate tectonics geology",
+ "field": "Earth and Planetary Sciences",
+ "rank": 2,
+ "topic_name": "Geological and Geochemical Analysis",
+ "total_score": 56.469772,
+ "lexical_score": 47.1954483,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.08541,
+ "matched_keywords": [
+ {
+ "keyword": "Plate Tectonics",
+ "score": 0.96341634
+ },
+ {
+ "keyword": "Tectonics",
+ "score": 0.94124365
+ }
+ ]
+ },
+ {
+ "query": "plate tectonics geology",
+ "field": "Earth and Planetary Sciences",
+ "rank": 3,
+ "topic_name": "High-pressure geophysics and materials",
+ "total_score": 49.261604,
+ "lexical_score": 39.5018422,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.088419,
+ "matched_keywords": [
+ {
+ "keyword": "Plate Tectonics",
+ "score": 0.96353674
+ }
+ ]
+ },
+ {
+ "query": "seismology earthquake prediction",
+ "field": "Earth and Planetary Sciences",
+ "rank": 1,
+ "topic_name": "Earthquake Detection and Analysis",
+ "total_score": 84.69504,
+ "lexical_score": 58.74820150000001,
+ "title_vector_score": 26.371758,
+ "description_vector_score": 12.222122,
+ "keywords_vector_score": 22.833931,
+ "matched_keywords": [
+ {
+ "keyword": "Earthquake Prediction Models",
+ "score": 0.91335726
+ },
+ {
+ "keyword": "Pre-earthquake Signals",
+ "score": 0.8584311
+ }
+ ]
+ },
+ {
+ "query": "seismology earthquake prediction",
+ "field": "Earth and Planetary Sciences",
+ "rank": 2,
+ "topic_name": "Seismology and Earthquake Studies",
+ "total_score": 74.61635,
+ "lexical_score": 87.44417539999999,
+ "title_vector_score": 28.365984,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Real-Time Seismology",
+ "score": 0.8811817
+ },
+ {
+ "keyword": "Seismic Event Classification",
+ "score": 0.87333775
+ }
+ ]
+ },
+ {
+ "query": "seismology earthquake prediction",
+ "field": "Earth and Planetary Sciences",
+ "rank": 3,
+ "topic_name": "Seismic Performance and Analysis",
+ "total_score": 38.20527,
+ "lexical_score": 18.601836,
+ "title_vector_score": 25.797974,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Seismic Engineering",
+ "score": 0.83272076
+ },
+ {
+ "keyword": "Seismic Retrofit",
+ "score": 0.82135415
+ }
+ ]
+ },
+ {
+ "query": "volcanology eruption monitoring",
+ "field": "Earth and Planetary Sciences",
+ "rank": 1,
+ "topic_name": "Earthquake Detection and Analysis",
+ "total_score": 27.094866,
+ "lexical_score": 10.134912,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 20.586508,
+ "matched_keywords": [
+ {
+ "keyword": "Seismic Activity Monitoring",
+ "score": 0.82346034
+ }
+ ]
+ },
+ {
+ "query": "volcanology eruption monitoring",
+ "field": "Earth and Planetary Sciences",
+ "rank": 2,
+ "topic_name": "Geological Modeling and Analysis",
+ "total_score": 24.537943,
+ "lexical_score": 0.0,
+ "title_vector_score": 24.537943,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Geological Modeling",
+ "score": 0.81668305
+ }
+ ]
+ },
+ {
+ "query": "volcanology eruption monitoring",
+ "field": "Earth and Planetary Sciences",
+ "rank": 3,
+ "topic_name": "Geological Formations and Processes Exploration",
+ "total_score": 24.425713,
+ "lexical_score": 0.0,
+ "title_vector_score": 24.425713,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "paleoclimatology proxy data",
+ "field": "Earth and Planetary Sciences",
+ "rank": 1,
+ "topic_name": "Geology and Paleoclimatology Research",
+ "total_score": 73.26374,
+ "lexical_score": 49.152299,
+ "title_vector_score": 25.24729,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.850227,
+ "matched_keywords": [
+ {
+ "keyword": "Paleoclimatology",
+ "score": 0.9140091
+ }
+ ]
+ },
+ {
+ "query": "paleoclimatology proxy data",
+ "field": "Earth and Planetary Sciences",
+ "rank": 2,
+ "topic_name": "Paleopathology and ancient diseases",
+ "total_score": 47.08105,
+ "lexical_score": 0.0,
+ "title_vector_score": 24.740574,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.340477,
+ "matched_keywords": [
+ {
+ "keyword": "Paleoparasitology",
+ "score": 0.89361906
+ }
+ ]
+ },
+ {
+ "query": "paleoclimatology proxy data",
+ "field": "Earth and Planetary Sciences",
+ "rank": 3,
+ "topic_name": "Tree-ring climate responses",
+ "total_score": 38.003754,
+ "lexical_score": 15.153528,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.850227,
+ "matched_keywords": [
+ {
+ "keyword": "Paleoclimatology",
+ "score": 0.9140091
+ }
+ ]
+ },
+ {
+ "query": "planetary geology mars",
+ "field": "Earth and Planetary Sciences",
+ "rank": 1,
+ "topic_name": "Planetary Science and Exploration",
+ "total_score": 99.18906,
+ "lexical_score": 77.11862430000001,
+ "title_vector_score": 27.453934,
+ "description_vector_score": 12.490274,
+ "keywords_vector_score": 23.317469,
+ "matched_keywords": [
+ {
+ "keyword": "Mars",
+ "score": 0.9326987
+ },
+ {
+ "keyword": "Martian Surface",
+ "score": 0.92565703
+ }
+ ]
+ },
+ {
+ "query": "planetary geology mars",
+ "field": "Earth and Planetary Sciences",
+ "rank": 2,
+ "topic_name": "Astro and Planetary Science",
+ "total_score": 48.530018,
+ "lexical_score": 39.916563,
+ "title_vector_score": 26.025831,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Terrestrial Planets",
+ "score": 0.87412786
+ },
+ {
+ "keyword": "Planetary Chronology",
+ "score": 0.87274814
+ }
+ ]
+ },
+ {
+ "query": "planetary geology mars",
+ "field": "Earth and Planetary Sciences",
+ "rank": 3,
+ "topic_name": "Space Science and Extraterrestrial Life",
+ "total_score": 34.642036,
+ "lexical_score": 19.786231,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 21.961338,
+ "matched_keywords": [
+ {
+ "keyword": "Planetary Biology",
+ "score": 0.8784535
+ }
+ ]
+ },
+ {
+ "query": "mineralogy crystal structures",
+ "field": "Earth and Planetary Sciences",
+ "rank": 1,
+ "topic_name": "Crystal structures of chemical compounds",
+ "total_score": 74.79191,
+ "lexical_score": 59.753926,
+ "title_vector_score": 26.209194,
+ "description_vector_score": 12.198854,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Crystal Structure Refinement",
+ "score": 0.8825419
+ },
+ {
+ "keyword": "Crystal Structure Validation",
+ "score": 0.84930086
+ }
+ ]
+ },
+ {
+ "query": "mineralogy crystal structures",
+ "field": "Earth and Planetary Sciences",
+ "rank": 2,
+ "topic_name": "Crystal Structures and Properties",
+ "total_score": 67.39248,
+ "lexical_score": 71.8490727,
+ "title_vector_score": 27.541588,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Inorganic Crystal Structures",
+ "score": 0.92022085
+ },
+ {
+ "keyword": "Crystal Growth",
+ "score": 0.8407428
+ }
+ ]
+ },
+ {
+ "query": "mineralogy crystal structures",
+ "field": "Earth and Planetary Sciences",
+ "rank": 3,
+ "topic_name": "Solidification and crystal growth phenomena",
+ "total_score": 45.852386,
+ "lexical_score": 33.6861085,
+ "title_vector_score": 26.602571,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Crystal Growth",
+ "score": 0.8407428
+ }
+ ]
+ },
+ {
+ "query": "sedimentology deposition environments",
+ "field": "Earth and Planetary Sciences",
+ "rank": 1,
+ "topic_name": "Geological formations and processes",
+ "total_score": 48.85687,
+ "lexical_score": 17.175191599999998,
+ "title_vector_score": 25.30574,
+ "description_vector_score": 12.322544,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "sedimentology deposition environments",
+ "field": "Earth and Planetary Sciences",
+ "rank": 2,
+ "topic_name": "Soil erosion and sediment transport",
+ "total_score": 25.60085,
+ "lexical_score": 0.0,
+ "title_vector_score": 25.60085,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Soil Erosion",
+ "score": 0.8262446
+ },
+ {
+ "keyword": "Runoff and Erosion",
+ "score": 0.812979
+ }
+ ]
+ },
+ {
+ "query": "sedimentology deposition environments",
+ "field": "Earth and Planetary Sciences",
+ "rank": 3,
+ "topic_name": "Geological Formations and Processes Exploration",
+ "total_score": 25.227148,
+ "lexical_score": 0.0,
+ "title_vector_score": 25.227148,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "stratigraphy rock layers",
+ "field": "Earth and Planetary Sciences",
+ "rank": 1,
+ "topic_name": "Rock Mechanics and Modeling",
+ "total_score": 47.4318,
+ "lexical_score": 41.722090300000005,
+ "title_vector_score": 24.927614,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Rock Mechanics",
+ "score": 0.8349035
+ }
+ ]
+ },
+ {
+ "query": "stratigraphy rock layers",
+ "field": "Earth and Planetary Sciences",
+ "rank": 2,
+ "topic_name": "Geological formations and processes",
+ "total_score": 40.320526,
+ "lexical_score": 22.6973591,
+ "title_vector_score": 25.48173,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "stratigraphy rock layers",
+ "field": "Earth and Planetary Sciences",
+ "rank": 3,
+ "topic_name": "Geological Studies and Exploration",
+ "total_score": 38.205456,
+ "lexical_score": 24.0450434,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 21.647125,
+ "matched_keywords": [
+ {
+ "keyword": "seismic stratigraphy",
+ "score": 0.865885
+ },
+ {
+ "keyword": "geology",
+ "score": 0.835619
+ }
+ ]
+ },
+ {
+ "query": "geomorphology landscape evolution",
+ "field": "Earth and Planetary Sciences",
+ "rank": 1,
+ "topic_name": "Botany and Geology in Latin America and Caribbean",
+ "total_score": 48.68984,
+ "lexical_score": 33.662169000000006,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.15535,
+ "matched_keywords": [
+ {
+ "keyword": "Geomorphology",
+ "score": 0.926214
+ }
+ ]
+ },
+ {
+ "query": "geomorphology landscape evolution",
+ "field": "Earth and Planetary Sciences",
+ "rank": 2,
+ "topic_name": "Computational Physics and Python Applications",
+ "total_score": 38.98012,
+ "lexical_score": 23.3115274,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.155308,
+ "matched_keywords": [
+ {
+ "keyword": "Geomorphology",
+ "score": 0.9262123
+ },
+ {
+ "keyword": "Geospatial Mapping",
+ "score": 0.83381224
+ }
+ ]
+ },
+ {
+ "query": "geomorphology landscape evolution",
+ "field": "Earth and Planetary Sciences",
+ "rank": 3,
+ "topic_name": "Geological and Geophysical Studies",
+ "total_score": 36.9347,
+ "lexical_score": 16.2166147,
+ "title_vector_score": 25.509874,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "hydrology water cycle",
+ "field": "Earth and Planetary Sciences",
+ "rank": 1,
+ "topic_name": "Hydrology and Drought Analysis",
+ "total_score": 48.271675,
+ "lexical_score": 22.504187,
+ "title_vector_score": 25.767488,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Hydrological",
+ "score": 0.9259951
+ }
+ ]
+ },
+ {
+ "query": "hydrology water cycle",
+ "field": "Earth and Planetary Sciences",
+ "rank": 2,
+ "topic_name": "Hydrology and Watershed Management Studies",
+ "total_score": 46.457306,
+ "lexical_score": 51.4622527,
+ "title_vector_score": 25.910984,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Hydrological Modeling",
+ "score": 0.89386845
+ },
+ {
+ "keyword": "Global Hydrology",
+ "score": 0.888402
+ }
+ ]
+ },
+ {
+ "query": "hydrology water cycle",
+ "field": "Earth and Planetary Sciences",
+ "rank": 3,
+ "topic_name": "Hydrology and Sediment Transport Processes",
+ "total_score": 46.29628,
+ "lexical_score": 20.54632,
+ "title_vector_score": 25.749958,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Hydrological Impacts",
+ "score": 0.8620169
+ }
+ ]
+ },
+ {
+ "query": "meteorology weather forecasting",
+ "field": "Earth and Planetary Sciences",
+ "rank": 1,
+ "topic_name": "Meteorological Phenomena and Simulations",
+ "total_score": 52.276245,
+ "lexical_score": 22.928063299999998,
+ "title_vector_score": 27.490662,
+ "description_vector_score": 12.202148,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "meteorology weather forecasting",
+ "field": "Earth and Planetary Sciences",
+ "rank": 2,
+ "topic_name": "Solar Radiation and Photovoltaics",
+ "total_score": 47.25247,
+ "lexical_score": 28.2888254,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.476099,
+ "matched_keywords": [
+ {
+ "keyword": "Weather Forecasts",
+ "score": 0.97904396
+ },
+ {
+ "keyword": "Forecasting",
+ "score": 0.8844745
+ }
+ ]
+ },
+ {
+ "query": "meteorology weather forecasting",
+ "field": "Earth and Planetary Sciences",
+ "rank": 3,
+ "topic_name": "Forecasting Techniques and Applications",
+ "total_score": 46.365883,
+ "lexical_score": 43.428111,
+ "title_vector_score": 26.256187,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Forecasting",
+ "score": 0.88383865
+ },
+ {
+ "keyword": "Forecast Combination",
+ "score": 0.8708837
+ }
+ ]
+ },
+ {
+ "query": "oceanography ocean currents",
+ "field": "Earth and Planetary Sciences",
+ "rank": 1,
+ "topic_name": "Oceanographic and Atmospheric Processes",
+ "total_score": 49.316208,
+ "lexical_score": 18.91653,
+ "title_vector_score": 26.239336,
+ "description_vector_score": 12.249559,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Ocean Circulation",
+ "score": 0.89493227
+ },
+ {
+ "keyword": "Oceanic Modeling",
+ "score": 0.86697054
+ }
+ ]
+ },
+ {
+ "query": "oceanography ocean currents",
+ "field": "Earth and Planetary Sciences",
+ "rank": 2,
+ "topic_name": "Ocean Waves and Remote Sensing",
+ "total_score": 47.332565,
+ "lexical_score": 38.850894999999994,
+ "title_vector_score": 25.82109,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Ocean Waves",
+ "score": 0.883621
+ }
+ ]
+ },
+ {
+ "query": "oceanography ocean currents",
+ "field": "Earth and Planetary Sciences",
+ "rank": 3,
+ "topic_name": "Computational Physics and Python Applications",
+ "total_score": 39.64006,
+ "lexical_score": 24.899423,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.737318,
+ "matched_keywords": [
+ {
+ "keyword": "Oceanography",
+ "score": 0.90949273
+ }
+ ]
+ },
+ {
+ "query": "geochemistry isotopic analysis",
+ "field": "Earth and Planetary Sciences",
+ "rank": 1,
+ "topic_name": "Geochemistry and Elemental Analysis",
+ "total_score": 83.91681,
+ "lexical_score": 56.0018898,
+ "title_vector_score": 28.53733,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.684937,
+ "matched_keywords": [
+ {
+ "keyword": "Geochemistry",
+ "score": 0.9473975
+ }
+ ]
+ },
+ {
+ "query": "geochemistry isotopic analysis",
+ "field": "Earth and Planetary Sciences",
+ "rank": 2,
+ "topic_name": "Geochemistry and Geologic Mapping",
+ "total_score": 49.063942,
+ "lexical_score": 28.155214100000002,
+ "title_vector_score": 27.349335,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Geochemical Anomalies",
+ "score": 0.92225647
+ }
+ ]
+ },
+ {
+ "query": "geochemistry isotopic analysis",
+ "field": "Earth and Planetary Sciences",
+ "rank": 3,
+ "topic_name": "Geological and Geochemical Analysis",
+ "total_score": 44.141205,
+ "lexical_score": 42.66420240000001,
+ "title_vector_score": 27.28175,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Isotopic Composition",
+ "score": 0.8371794
+ },
+ {
+ "keyword": "Geochronology",
+ "score": 0.8268049
+ }
+ ]
+ },
+ {
+ "query": "remote sensing earth",
+ "field": "Earth and Planetary Sciences",
+ "rank": 1,
+ "topic_name": "Remote Sensing and Land Use",
+ "total_score": 61.456657,
+ "lexical_score": 60.7370791,
+ "title_vector_score": 26.627377,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Remote Sensing",
+ "score": 0.90088296
+ }
+ ]
+ },
+ {
+ "query": "remote sensing earth",
+ "field": "Earth and Planetary Sciences",
+ "rank": 2,
+ "topic_name": "Soil Moisture and Remote Sensing",
+ "total_score": 60.777042,
+ "lexical_score": 59.5287266,
+ "title_vector_score": 25.947762,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Remote Sensing",
+ "score": 0.90071225
+ },
+ {
+ "keyword": "Satellite Observations",
+ "score": 0.84046984
+ }
+ ]
+ },
+ {
+ "query": "remote sensing earth",
+ "field": "Earth and Planetary Sciences",
+ "rank": 3,
+ "topic_name": "Remote-Sensing Image Classification",
+ "total_score": 60.676956,
+ "lexical_score": 66.695676,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.52878,
+ "matched_keywords": [
+ {
+ "keyword": "Remote Sensing",
+ "score": 0.9011512
+ }
+ ]
+ },
+ {
+ "query": "petrology rock formation",
+ "field": "Earth and Planetary Sciences",
+ "rank": 1,
+ "topic_name": "Geological and Geochemical Analysis",
+ "total_score": 46.61389,
+ "lexical_score": 0.0,
+ "title_vector_score": 25.2018,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 21.412092,
+ "matched_keywords": [
+ {
+ "keyword": "Granitic Rocks",
+ "score": 0.8564837
+ }
+ ]
+ },
+ {
+ "query": "petrology rock formation",
+ "field": "Earth and Planetary Sciences",
+ "rank": 2,
+ "topic_name": "Geological Formations and Processes Exploration",
+ "total_score": 30.0326,
+ "lexical_score": 3.9468431,
+ "title_vector_score": 26.085756,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "petrology rock formation",
+ "field": "Earth and Planetary Sciences",
+ "rank": 3,
+ "topic_name": "Geological formations and processes",
+ "total_score": 26.511633,
+ "lexical_score": 0.0,
+ "title_vector_score": 26.511633,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "impact cratering planetary",
+ "field": "Earth and Planetary Sciences",
+ "rank": 1,
+ "topic_name": "Planetary Science and Exploration",
+ "total_score": 47.50534,
+ "lexical_score": 41.1130493,
+ "title_vector_score": 25.001156,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Planetary Exploration",
+ "score": 0.8313651
+ },
+ {
+ "keyword": "Martian Surface",
+ "score": 0.81208277
+ }
+ ]
+ },
+ {
+ "query": "impact cratering planetary",
+ "field": "Earth and Planetary Sciences",
+ "rank": 2,
+ "topic_name": "Ukraine: War, Education, Health",
+ "total_score": 28.522934,
+ "lexical_score": 8.2213099,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 21.389336,
+ "matched_keywords": [
+ {
+ "keyword": "geological impact",
+ "score": 0.8555734
+ }
+ ]
+ },
+ {
+ "query": "impact cratering planetary",
+ "field": "Earth and Planetary Sciences",
+ "rank": 3,
+ "topic_name": "Astro and Planetary Science",
+ "total_score": 22.504187,
+ "lexical_score": 39.916563000000004,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Terrestrial Planets",
+ "score": 0.8214867
+ },
+ {
+ "keyword": "Giant Planets",
+ "score": 0.8155837
+ }
+ ]
+ },
+ {
+ "query": "paleontology fossil records",
+ "field": "Earth and Planetary Sciences",
+ "rank": 1,
+ "topic_name": "Paleontology and Evolutionary Biology",
+ "total_score": 59.911736,
+ "lexical_score": 66.091982,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.086958,
+ "matched_keywords": [
+ {
+ "keyword": "Paleontology",
+ "score": 0.9634783
+ },
+ {
+ "keyword": "Fossil",
+ "score": 0.91808534
+ }
+ ]
+ },
+ {
+ "query": "paleontology fossil records",
+ "field": "Earth and Planetary Sciences",
+ "rank": 2,
+ "topic_name": "Evolution and Paleontology Studies",
+ "total_score": 49.970764,
+ "lexical_score": 22.504187,
+ "title_vector_score": 27.46658,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Paleobiology",
+ "score": 0.89044976
+ },
+ {
+ "keyword": "Phylogenetic Comparative Analysis",
+ "score": 0.81667185
+ }
+ ]
+ },
+ {
+ "query": "paleontology fossil records",
+ "field": "Earth and Planetary Sciences",
+ "rank": 3,
+ "topic_name": "Paleontology and Stratigraphy of Fossils",
+ "total_score": 49.412125,
+ "lexical_score": 20.54632,
+ "title_vector_score": 28.865805,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Paleoredox",
+ "score": 0.8181577
+ }
+ ]
+ },
+ {
+ "query": "glaciology ice sheets",
+ "field": "Earth and Planetary Sciences",
+ "rank": 1,
+ "topic_name": "Arctic and Antarctic ice dynamics",
+ "total_score": 48.19886,
+ "lexical_score": 46.409007,
+ "title_vector_score": 25.2221,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Sea Ice",
+ "score": 0.8355572
+ }
+ ]
+ },
+ {
+ "query": "glaciology ice sheets",
+ "field": "Earth and Planetary Sciences",
+ "rank": 2,
+ "topic_name": "Cryospheric studies and observations",
+ "total_score": 36.61238,
+ "lexical_score": 27.6056874,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.249132,
+ "matched_keywords": [
+ {
+ "keyword": "Ice Sheet",
+ "score": 0.8899653
+ },
+ {
+ "keyword": "Glacier",
+ "score": 0.87047744
+ }
+ ]
+ },
+ {
+ "query": "glaciology ice sheets",
+ "field": "Earth and Planetary Sciences",
+ "rank": 3,
+ "topic_name": "Freezing and Crystallization Processes",
+ "total_score": 33.920815,
+ "lexical_score": 11.464857,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.455956,
+ "matched_keywords": [
+ {
+ "keyword": "Ice Morphology",
+ "score": 0.8982382
+ }
+ ]
+ },
+ {
+ "query": "geophysics magnetic fields",
+ "field": "Earth and Planetary Sciences",
+ "rank": 1,
+ "topic_name": "Geomagnetism and Paleomagnetism Studies",
+ "total_score": 71.597595,
+ "lexical_score": 13.299408199999998,
+ "title_vector_score": 26.570127,
+ "description_vector_score": 12.3241,
+ "keywords_vector_score": 23.920435,
+ "matched_keywords": [
+ {
+ "keyword": "Geomagnetic Field",
+ "score": 0.9568174
+ },
+ {
+ "keyword": "Geomagnetic Model",
+ "score": 0.92684865
+ }
+ ]
+ },
+ {
+ "query": "geophysics magnetic fields",
+ "field": "Earth and Planetary Sciences",
+ "rank": 2,
+ "topic_name": "Magnetic Properties and Applications",
+ "total_score": 45.317505,
+ "lexical_score": 31.219727999999996,
+ "title_vector_score": 26.812721,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Magnetic Materials",
+ "score": 0.8727982
+ },
+ {
+ "keyword": "Magnetostriction",
+ "score": 0.8575764
+ }
+ ]
+ },
+ {
+ "query": "geophysics magnetic fields",
+ "field": "Earth and Planetary Sciences",
+ "rank": 3,
+ "topic_name": "Astrophysics and Star Formation Studies",
+ "total_score": 43.978832,
+ "lexical_score": 28.2748216,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.29449,
+ "matched_keywords": [
+ {
+ "keyword": "Magnetic Fields",
+ "score": 0.9317796
+ }
+ ]
+ },
+ {
+ "query": "environmental geology hazards",
+ "field": "Earth and Planetary Sciences",
+ "rank": 1,
+ "topic_name": "Geology and Environmental Impact Studies",
+ "total_score": 60.287598,
+ "lexical_score": 41.1138377,
+ "title_vector_score": 27.966814,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Environmental Protection",
+ "score": 0.8160043
+ }
+ ]
+ },
+ {
+ "query": "environmental geology hazards",
+ "field": "Earth and Planetary Sciences",
+ "rank": 2,
+ "topic_name": "Geological Studies and Exploration",
+ "total_score": 42.53493,
+ "lexical_score": 16.55833,
+ "title_vector_score": 25.9766,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "geology",
+ "score": 0.87914467
+ }
+ ]
+ },
+ {
+ "query": "environmental geology hazards",
+ "field": "Earth and Planetary Sciences",
+ "rank": 3,
+ "topic_name": "Industrial and Mining Safety",
+ "total_score": 40.856285,
+ "lexical_score": 27.86864,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.59165,
+ "matched_keywords": [
+ {
+ "keyword": "Mining Hazards",
+ "score": 0.903666
+ }
+ ]
+ },
+ {
+ "query": "t cell activation",
+ "field": "Immunology and Microbiology",
+ "rank": 1,
+ "topic_name": "T-cell and B-cell Immunology",
+ "total_score": 79.51223,
+ "lexical_score": 58.5910545,
+ "title_vector_score": 26.20737,
+ "description_vector_score": 12.756092,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Memory T Cells",
+ "score": 0.88868856
+ },
+ {
+ "keyword": "TGF-ß",
+ "score": 0.83790565
+ }
+ ]
+ },
+ {
+ "query": "t cell activation",
+ "field": "Immunology and Microbiology",
+ "rank": 2,
+ "topic_name": "CAR-T cell therapy research",
+ "total_score": 75.36009,
+ "lexical_score": 74.619571,
+ "title_vector_score": 25.977953,
+ "description_vector_score": 12.36669,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "CAR T Cells",
+ "score": 0.8977647
+ },
+ {
+ "keyword": "T Cell Therapy",
+ "score": 0.8948736
+ }
+ ]
+ },
+ {
+ "query": "t cell activation",
+ "field": "Immunology and Microbiology",
+ "rank": 3,
+ "topic_name": "Atherosclerosis and Cardiovascular Diseases",
+ "total_score": 55.851776,
+ "lexical_score": 47.3401482,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.908554,
+ "matched_keywords": [
+ {
+ "keyword": "T Cell Activation",
+ "score": 0.9963422
+ },
+ {
+ "keyword": "Regulatory T Cells",
+ "score": 0.9273424
+ }
+ ]
+ },
+ {
+ "query": "antibody response mechanics",
+ "field": "Immunology and Microbiology",
+ "rank": 1,
+ "topic_name": "Invertebrate Immune Response Mechanisms",
+ "total_score": 48.060394,
+ "lexical_score": 32.632440200000005,
+ "title_vector_score": 27.501104,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Immune Response",
+ "score": 0.9162843
+ }
+ ]
+ },
+ {
+ "query": "antibody response mechanics",
+ "field": "Immunology and Microbiology",
+ "rank": 2,
+ "topic_name": "Immune Cell Function and Interaction",
+ "total_score": 27.529263,
+ "lexical_score": 0.0,
+ "title_vector_score": 27.529263,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Immune Inhibitory Receptors",
+ "score": 0.88810945
+ }
+ ]
+ },
+ {
+ "query": "antibody response mechanics",
+ "field": "Immunology and Microbiology",
+ "rank": 3,
+ "topic_name": "Immunotoxicology and immune responses",
+ "total_score": 26.672058,
+ "lexical_score": 0.0,
+ "title_vector_score": 26.672058,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Immune System",
+ "score": 0.8974054
+ },
+ {
+ "keyword": "Immunotoxicity",
+ "score": 0.8460486
+ }
+ ]
+ },
+ {
+ "query": "bacterial resistance antibiotics",
+ "field": "Immunology and Microbiology",
+ "rank": 1,
+ "topic_name": "Infections and bacterial resistance",
+ "total_score": 91.7895,
+ "lexical_score": 54.596600499999994,
+ "title_vector_score": 28.226187,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.686861,
+ "matched_keywords": [
+ {
+ "keyword": "antibiotic resistance",
+ "score": 0.98747444
+ },
+ {
+ "keyword": "multidrug resistance",
+ "score": 0.8686764
+ }
+ ]
+ },
+ {
+ "query": "bacterial resistance antibiotics",
+ "field": "Immunology and Microbiology",
+ "rank": 2,
+ "topic_name": "Antibiotic Use and Resistance",
+ "total_score": 61.930496,
+ "lexical_score": 50.0103929,
+ "title_vector_score": 29.240955,
+ "description_vector_score": 12.460656,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Antibiotic Resistance",
+ "score": 0.98710465
+ },
+ {
+ "keyword": "Antimicrobial Stewardship",
+ "score": 0.8694217
+ }
+ ]
+ },
+ {
+ "query": "bacterial resistance antibiotics",
+ "field": "Immunology and Microbiology",
+ "rank": 3,
+ "topic_name": "Antibiotic Resistance in Bacteria",
+ "total_score": 61.581917,
+ "lexical_score": 34.2999136,
+ "title_vector_score": 29.677828,
+ "description_vector_score": 13.137335,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Antibiotic Resistance",
+ "score": 0.9871402
+ },
+ {
+ "keyword": "Multidrug-Resistant Bacteria",
+ "score": 0.9471772
+ }
+ ]
+ },
+ {
+ "query": "viral replication cycle",
+ "field": "Immunology and Microbiology",
+ "rank": 1,
+ "topic_name": "Viral Infections and Vectors",
+ "total_score": 45.90341,
+ "lexical_score": 34.908955600000006,
+ "title_vector_score": 26.18695,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Hantavirus",
+ "score": 0.81891775
+ }
+ ]
+ },
+ {
+ "query": "viral replication cycle",
+ "field": "Immunology and Microbiology",
+ "rank": 2,
+ "topic_name": "Viral Infections and Outbreaks Research",
+ "total_score": 43.15519,
+ "lexical_score": 18.001125,
+ "title_vector_score": 25.154064,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "viral replication cycle",
+ "field": "Immunology and Microbiology",
+ "rank": 3,
+ "topic_name": "Viral Infections and Immunology Research",
+ "total_score": 42.969624,
+ "lexical_score": 35.062456499999996,
+ "title_vector_score": 24.968498,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Viral Infection",
+ "score": 0.8623531
+ }
+ ]
+ },
+ {
+ "query": "autoimmune disease pathogenesis",
+ "field": "Immunology and Microbiology",
+ "rank": 1,
+ "topic_name": "Parvovirus B19 Infection Studies",
+ "total_score": 50.952183,
+ "lexical_score": 36.7471513,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.136024,
+ "matched_keywords": [
+ {
+ "keyword": "Autoimmune Disease",
+ "score": 0.965441
+ }
+ ]
+ },
+ {
+ "query": "autoimmune disease pathogenesis",
+ "field": "Immunology and Microbiology",
+ "rank": 2,
+ "topic_name": "Autoimmune and Inflammatory Disorders",
+ "total_score": 49.067425,
+ "lexical_score": 26.849047300000002,
+ "title_vector_score": 27.983286,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Autoinflammatory Skin Disorders",
+ "score": 0.8624301
+ }
+ ]
+ },
+ {
+ "query": "autoimmune disease pathogenesis",
+ "field": "Immunology and Microbiology",
+ "rank": 3,
+ "topic_name": "Immunodeficiency and Autoimmune Disorders",
+ "total_score": 48.847115,
+ "lexical_score": 21.084139,
+ "title_vector_score": 27.762974,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Primary Immunodeficiency",
+ "score": 0.8349447
+ },
+ {
+ "keyword": "Immune Dysregulation",
+ "score": 0.81510735
+ }
+ ]
+ },
+ {
+ "query": "innate immunity defense",
+ "field": "Immunology and Microbiology",
+ "rank": 1,
+ "topic_name": "Immune Response and Inflammation",
+ "total_score": 54.779003,
+ "lexical_score": 33.7197947,
+ "title_vector_score": 0.0,
+ "description_vector_score": 12.274404,
+ "keywords_vector_score": 23.231756,
+ "matched_keywords": [
+ {
+ "keyword": "Adaptive Immunity Regulation",
+ "score": 0.92927027
+ },
+ {
+ "keyword": "Innate Antiviral Responses",
+ "score": 0.8178532
+ }
+ ]
+ },
+ {
+ "query": "innate immunity defense",
+ "field": "Immunology and Microbiology",
+ "rank": 2,
+ "topic_name": "Invertebrate Immune Response Mechanisms",
+ "total_score": 49.16066,
+ "lexical_score": 34.613258,
+ "title_vector_score": 27.031559,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Immune Response",
+ "score": 0.9175937
+ },
+ {
+ "keyword": "Invertebrate Immunity",
+ "score": 0.84614086
+ }
+ ]
+ },
+ {
+ "query": "innate immunity defense",
+ "field": "Immunology and Microbiology",
+ "rank": 3,
+ "topic_name": "Immune responses and vaccinations",
+ "total_score": 37.217213,
+ "lexical_score": 35.983352,
+ "title_vector_score": 0.0,
+ "description_vector_score": 12.4959755,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Innate Immune Training",
+ "score": 0.8852458
+ },
+ {
+ "keyword": "Trained Immunity",
+ "score": 0.86591005
+ }
+ ]
+ },
+ {
+ "query": "vaccine development strategies",
+ "field": "Immunology and Microbiology",
+ "rank": 1,
+ "topic_name": "Vaccine Coverage and Hesitancy",
+ "total_score": 52.05722,
+ "lexical_score": 47.3952401,
+ "title_vector_score": 26.890999,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Vaccine Hesitancy",
+ "score": 0.90233994
+ },
+ {
+ "keyword": "Vaccination Intention",
+ "score": 0.8635063
+ }
+ ]
+ },
+ {
+ "query": "vaccine development strategies",
+ "field": "Immunology and Microbiology",
+ "rank": 2,
+ "topic_name": "Burkholderia infections and melioidosis",
+ "total_score": 39.637398,
+ "lexical_score": 21.358082200000002,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.60348,
+ "matched_keywords": [
+ {
+ "keyword": "Vaccine Development",
+ "score": 0.9841392
+ }
+ ]
+ },
+ {
+ "query": "vaccine development strategies",
+ "field": "Immunology and Microbiology",
+ "rank": 3,
+ "topic_name": "Coccidia and coccidiosis research",
+ "total_score": 38.99966,
+ "lexical_score": 23.268847700000002,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.60348,
+ "matched_keywords": [
+ {
+ "keyword": "Vaccine Development",
+ "score": 0.9841392
+ }
+ ]
+ },
+ {
+ "query": "microbiome gut health",
+ "field": "Immunology and Microbiology",
+ "rank": 1,
+ "topic_name": "Gut microbiota and health",
+ "total_score": 78.54754,
+ "lexical_score": 80.592633,
+ "title_vector_score": 29.745728,
+ "description_vector_score": 13.130804,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Gut Microbiota",
+ "score": 0.9542849
+ },
+ {
+ "keyword": "Obesity-associated Microbiome",
+ "score": 0.85911584
+ }
+ ]
+ },
+ {
+ "query": "microbiome gut health",
+ "field": "Immunology and Microbiology",
+ "rank": 2,
+ "topic_name": "Microbial Metabolites in Food Biotechnology",
+ "total_score": 42.930058,
+ "lexical_score": 28.40635,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.868156,
+ "matched_keywords": [
+ {
+ "keyword": "Gut Microbiota",
+ "score": 0.9547262
+ }
+ ]
+ },
+ {
+ "query": "microbiome gut health",
+ "field": "Immunology and Microbiology",
+ "rank": 3,
+ "topic_name": "Biochemical Analysis and Sensing Techniques",
+ "total_score": 40.95054,
+ "lexical_score": 25.763165299999997,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.868156,
+ "matched_keywords": [
+ {
+ "keyword": "Gut Microbiota",
+ "score": 0.9547262
+ }
+ ]
+ },
+ {
+ "query": "macrophage polarization function",
+ "field": "Immunology and Microbiology",
+ "rank": 1,
+ "topic_name": "Macrophage Migration Inhibitory Factor",
+ "total_score": 49.511345,
+ "lexical_score": 31.3339386,
+ "title_vector_score": 24.345123,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "macrophage polarization function",
+ "field": "Immunology and Microbiology",
+ "rank": 2,
+ "topic_name": "Immune cells in cancer",
+ "total_score": 41.619255,
+ "lexical_score": 44.231494,
+ "title_vector_score": 0.0,
+ "description_vector_score": 12.948511,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Macrophage",
+ "score": 0.8312583
+ }
+ ]
+ },
+ {
+ "query": "macrophage polarization function",
+ "field": "Immunology and Microbiology",
+ "rank": 3,
+ "topic_name": "Cardiac Fibrosis and Remodeling",
+ "total_score": 28.439892,
+ "lexical_score": 7.234955,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 21.204937,
+ "matched_keywords": [
+ {
+ "keyword": "Macrophages",
+ "score": 0.84819746
+ }
+ ]
+ },
+ {
+ "query": "pathogen virulence factors",
+ "field": "Immunology and Microbiology",
+ "rank": 1,
+ "topic_name": "Toxoplasma gondii Research Studies",
+ "total_score": 55.059868,
+ "lexical_score": 45.5004195,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.035686,
+ "matched_keywords": [
+ {
+ "keyword": "Virulence Factors",
+ "score": 0.96142745
+ }
+ ]
+ },
+ {
+ "query": "pathogen virulence factors",
+ "field": "Immunology and Microbiology",
+ "rank": 2,
+ "topic_name": "Enterobacteriaceae and Cronobacter Research",
+ "total_score": 53.852417,
+ "lexical_score": 45.467697,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.144274,
+ "matched_keywords": [
+ {
+ "keyword": "virulence factors",
+ "score": 0.96577096
+ },
+ {
+ "keyword": "bacterial pathogen",
+ "score": 0.8536656
+ }
+ ]
+ },
+ {
+ "query": "pathogen virulence factors",
+ "field": "Immunology and Microbiology",
+ "rank": 3,
+ "topic_name": "Yersinia bacterium, plague, ectoparasites research",
+ "total_score": 42.559525,
+ "lexical_score": 27.643355800000002,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.14378,
+ "matched_keywords": [
+ {
+ "keyword": "virulence factors",
+ "score": 0.9657512
+ },
+ {
+ "keyword": "bacterial pathogenesis",
+ "score": 0.8590586
+ }
+ ]
+ },
+ {
+ "query": "cytokine storm response",
+ "field": "Immunology and Microbiology",
+ "rank": 1,
+ "topic_name": "COVID-19 Clinical Research Studies",
+ "total_score": 60.49978,
+ "lexical_score": 55.246630200000006,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.69594,
+ "matched_keywords": [
+ {
+ "keyword": "Cytokine Storm",
+ "score": 0.9478376
+ }
+ ]
+ },
+ {
+ "query": "cytokine storm response",
+ "field": "Immunology and Microbiology",
+ "rank": 2,
+ "topic_name": "Cytokine Signaling Pathways and Interactions",
+ "total_score": 48.789238,
+ "lexical_score": 52.7125597,
+ "title_vector_score": 25.812477,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "cytokine signaling",
+ "score": 0.8731761
+ }
+ ]
+ },
+ {
+ "query": "cytokine storm response",
+ "field": "Immunology and Microbiology",
+ "rank": 3,
+ "topic_name": "Exercise and Physiological Responses",
+ "total_score": 40.58288,
+ "lexical_score": 21.0941175,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.090816,
+ "matched_keywords": [
+ {
+ "keyword": "Cytokine Response",
+ "score": 0.9236326
+ }
+ ]
+ },
+ {
+ "query": "mycology fungal infections",
+ "field": "Immunology and Microbiology",
+ "rank": 1,
+ "topic_name": "Fungal Infections and Studies",
+ "total_score": 75.317764,
+ "lexical_score": 59.070880700000004,
+ "title_vector_score": 27.642202,
+ "description_vector_score": 12.358152,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Fungal Pathogens",
+ "score": 0.8991201
+ }
+ ]
+ },
+ {
+ "query": "mycology fungal infections",
+ "field": "Immunology and Microbiology",
+ "rank": 2,
+ "topic_name": "Infectious Diseases and Mycology",
+ "total_score": 52.089294,
+ "lexical_score": 29.247981,
+ "title_vector_score": 26.923069,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "mycology fungal infections",
+ "field": "Immunology and Microbiology",
+ "rank": 3,
+ "topic_name": "Antifungal resistance and susceptibility",
+ "total_score": 44.309647,
+ "lexical_score": 34.710684,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.841812,
+ "matched_keywords": [
+ {
+ "keyword": "Invasive Fungal Infections",
+ "score": 0.91367245
+ }
+ ]
+ },
+ {
+ "query": "parasitology host interaction",
+ "field": "Immunology and Microbiology",
+ "rank": 1,
+ "topic_name": "Parasite Biology and Host Interactions",
+ "total_score": 72.639175,
+ "lexical_score": 36.1840174,
+ "title_vector_score": 28.249561,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.878134,
+ "matched_keywords": [
+ {
+ "keyword": "Host-Parasite Interactions",
+ "score": 0.91512537
+ },
+ {
+ "keyword": "Parasites",
+ "score": 0.8315799
+ }
+ ]
+ },
+ {
+ "query": "parasitology host interaction",
+ "field": "Immunology and Microbiology",
+ "rank": 2,
+ "topic_name": "Parasites and Host Interactions",
+ "total_score": 51.534607,
+ "lexical_score": 23.561312,
+ "title_vector_score": 27.973293,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "parasitology host interaction",
+ "field": "Immunology and Microbiology",
+ "rank": 3,
+ "topic_name": "Plant Disease Resistance and Genetics",
+ "total_score": 39.475395,
+ "lexical_score": 21.689852199999997,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.808844,
+ "matched_keywords": [
+ {
+ "keyword": "Host-pathogen interaction",
+ "score": 0.91235375
+ },
+ {
+ "keyword": "Pathogenicity mechanisms",
+ "score": 0.8248184
+ }
+ ]
+ },
+ {
+ "query": "adaptive immune system",
+ "field": "Immunology and Microbiology",
+ "rank": 1,
+ "topic_name": "IL-33, ST2, and ILC Pathways",
+ "total_score": 58.533516,
+ "lexical_score": 33.2951705,
+ "title_vector_score": 0.0,
+ "description_vector_score": 12.329425,
+ "keywords_vector_score": 24.905205,
+ "matched_keywords": [
+ {
+ "keyword": "Adaptive Immune System",
+ "score": 0.9962082
+ }
+ ]
+ },
+ {
+ "query": "adaptive immune system",
+ "field": "Immunology and Microbiology",
+ "rank": 2,
+ "topic_name": "Invertebrate Immune Response Mechanisms",
+ "total_score": 58.334087,
+ "lexical_score": 32.404885,
+ "title_vector_score": 27.900145,
+ "description_vector_score": 12.170953,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Immune Response",
+ "score": 0.9419074
+ }
+ ]
+ },
+ {
+ "query": "adaptive immune system",
+ "field": "Immunology and Microbiology",
+ "rank": 3,
+ "topic_name": "Artificial Immune Systems Applications",
+ "total_score": 45.258064,
+ "lexical_score": 44.1389602,
+ "title_vector_score": 26.995075,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Immune System",
+ "score": 0.9573889
+ },
+ {
+ "keyword": "Artificial Immune Systems",
+ "score": 0.9058986
+ }
+ ]
+ },
+ {
+ "query": "antigen presentation pathway",
+ "field": "Immunology and Microbiology",
+ "rank": 1,
+ "topic_name": "Immunotherapy and Immune Responses",
+ "total_score": 61.43759,
+ "lexical_score": 56.58135,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.56537,
+ "matched_keywords": [
+ {
+ "keyword": "Antigen Presentation",
+ "score": 0.9426148
+ },
+ {
+ "keyword": "Tumor Antigen",
+ "score": 0.8243866
+ }
+ ]
+ },
+ {
+ "query": "antigen presentation pathway",
+ "field": "Immunology and Microbiology",
+ "rank": 2,
+ "topic_name": "vaccines and immunoinformatics approaches",
+ "total_score": 48.433662,
+ "lexical_score": 38.686563,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.56453,
+ "matched_keywords": [
+ {
+ "keyword": "Antigen Presentation",
+ "score": 0.9425812
+ },
+ {
+ "keyword": "Immunoinformatics",
+ "score": 0.81380534
+ }
+ ]
+ },
+ {
+ "query": "antigen presentation pathway",
+ "field": "Immunology and Microbiology",
+ "rank": 3,
+ "topic_name": "Signaling Pathways in Disease",
+ "total_score": 31.113518,
+ "lexical_score": 5.420766,
+ "title_vector_score": 25.69275,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "bacteriophage therapy applications",
+ "field": "Immunology and Microbiology",
+ "rank": 1,
+ "topic_name": "Bacteriophages and microbial interactions",
+ "total_score": 75.07334,
+ "lexical_score": 30.274977900000003,
+ "title_vector_score": 25.524874,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 21.82684,
+ "matched_keywords": [
+ {
+ "keyword": "Bacteriophage",
+ "score": 0.8730736
+ }
+ ]
+ },
+ {
+ "query": "bacteriophage therapy applications",
+ "field": "Immunology and Microbiology",
+ "rank": 2,
+ "topic_name": "Cancer Research and Treatments",
+ "total_score": 30.708414,
+ "lexical_score": 12.7433065,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.272945,
+ "matched_keywords": [
+ {
+ "keyword": "Bacterial Therapy",
+ "score": 0.8909178
+ }
+ ]
+ },
+ {
+ "query": "bacteriophage therapy applications",
+ "field": "Immunology and Microbiology",
+ "rank": 3,
+ "topic_name": "Bacillus and Francisella bacterial research",
+ "total_score": 24.323408,
+ "lexical_score": 0.0,
+ "title_vector_score": 24.323408,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "immunotherapy cancer treatment",
+ "field": "Immunology and Microbiology",
+ "rank": 1,
+ "topic_name": "Cancer Immunotherapy and Biomarkers",
+ "total_score": 76.86349,
+ "lexical_score": 61.588961499999996,
+ "title_vector_score": 27.564983,
+ "description_vector_score": 12.387897,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Cancer Immunoediting",
+ "score": 0.95824265
+ },
+ {
+ "keyword": "Biomarkers for Immunotherapy",
+ "score": 0.81098914
+ }
+ ]
+ },
+ {
+ "query": "immunotherapy cancer treatment",
+ "field": "Immunology and Microbiology",
+ "rank": 2,
+ "topic_name": "Immunotherapy and Immune Responses",
+ "total_score": 48.304,
+ "lexical_score": 47.95501,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.742687,
+ "matched_keywords": [
+ {
+ "keyword": "Cancer Immunotherapy",
+ "score": 0.98970747
+ },
+ {
+ "keyword": "Tumor Antigen",
+ "score": 0.8350327
+ }
+ ]
+ },
+ {
+ "query": "immunotherapy cancer treatment",
+ "field": "Immunology and Microbiology",
+ "rank": 3,
+ "topic_name": "CAR-T cell therapy research",
+ "total_score": 44.234856,
+ "lexical_score": 29.0455739,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.742538,
+ "matched_keywords": [
+ {
+ "keyword": "Cancer Immunotherapy",
+ "score": 0.9897015
+ },
+ {
+ "keyword": "Immunotherapy",
+ "score": 0.9029598
+ }
+ ]
+ },
+ {
+ "query": "microbial biofilms formation",
+ "field": "Immunology and Microbiology",
+ "rank": 1,
+ "topic_name": "Bacterial biofilms and quorum sensing",
+ "total_score": 64.32112,
+ "lexical_score": 67.7248381,
+ "title_vector_score": 26.400784,
+ "description_vector_score": 12.959286,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Biofilms",
+ "score": 0.9053409
+ },
+ {
+ "keyword": "Bacteria",
+ "score": 0.8548188
+ }
+ ]
+ },
+ {
+ "query": "microbial biofilms formation",
+ "field": "Immunology and Microbiology",
+ "rank": 2,
+ "topic_name": "Microbial bioremediation and biosurfactants",
+ "total_score": 44.591217,
+ "lexical_score": 32.9073357,
+ "title_vector_score": 26.552732,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Microbial Communities",
+ "score": 0.8412576
+ },
+ {
+ "keyword": "Petroleum Microbiology",
+ "score": 0.8272283
+ }
+ ]
+ },
+ {
+ "query": "microbial biofilms formation",
+ "field": "Immunology and Microbiology",
+ "rank": 3,
+ "topic_name": "Biocrusts and Microbial Ecology",
+ "total_score": 44.418236,
+ "lexical_score": 30.732649000000002,
+ "title_vector_score": 26.379755,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Microbial Diversity",
+ "score": 0.83187914
+ }
+ ]
+ },
+ {
+ "query": "virology host defense",
+ "field": "Immunology and Microbiology",
+ "rank": 1,
+ "topic_name": "Virology and Viral Diseases",
+ "total_score": 50.7082,
+ "lexical_score": 25.166224,
+ "title_vector_score": 25.541975,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "virology host defense",
+ "field": "Immunology and Microbiology",
+ "rank": 2,
+ "topic_name": "Leptospirosis research and findings",
+ "total_score": 32.06324,
+ "lexical_score": 15.1966046,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 21.889936,
+ "matched_keywords": [
+ {
+ "keyword": "Virulence",
+ "score": 0.8755975
+ },
+ {
+ "keyword": "Host Immune Response",
+ "score": 0.8173237
+ }
+ ]
+ },
+ {
+ "query": "virology host defense",
+ "field": "Immunology and Microbiology",
+ "rank": 3,
+ "topic_name": "Burkholderia infections and melioidosis",
+ "total_score": 26.454494,
+ "lexical_score": 4.5624595,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 21.892035,
+ "matched_keywords": [
+ {
+ "keyword": "Virulence",
+ "score": 0.8756814
+ }
+ ]
+ },
+ {
+ "query": "inflammation signaling pathways",
+ "field": "Immunology and Microbiology",
+ "rank": 1,
+ "topic_name": "Inflammation biomarkers and pathways",
+ "total_score": 83.37833,
+ "lexical_score": 50.806144,
+ "title_vector_score": 28.514994,
+ "description_vector_score": 12.642689,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Inflammation",
+ "score": 0.8609061
+ },
+ {
+ "keyword": "Inflammatory Diseases",
+ "score": 0.8475573
+ }
+ ]
+ },
+ {
+ "query": "inflammation signaling pathways",
+ "field": "Immunology and Microbiology",
+ "rank": 2,
+ "topic_name": "Signaling Pathways in Disease",
+ "total_score": 64.26427,
+ "lexical_score": 42.807796,
+ "title_vector_score": 26.915281,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Inflammatory Responses",
+ "score": 0.8802068
+ }
+ ]
+ },
+ {
+ "query": "inflammation signaling pathways",
+ "field": "Immunology and Microbiology",
+ "rank": 3,
+ "topic_name": "Immune Response and Inflammation",
+ "total_score": 48.83892,
+ "lexical_score": 41.236412,
+ "title_vector_score": 26.334736,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Inflammation",
+ "score": 0.8609791
+ }
+ ]
+ },
+ {
+ "query": "solar cell efficiency",
+ "field": "Energy",
+ "rank": 1,
+ "topic_name": "solar cell performance optimization",
+ "total_score": 79.12559,
+ "lexical_score": 69.747856,
+ "title_vector_score": 28.918848,
+ "description_vector_score": 12.4517975,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Energy Conversion Efficiency",
+ "score": 0.86430144
+ },
+ {
+ "keyword": "Multijunction Solar Cells",
+ "score": 0.8636067
+ }
+ ]
+ },
+ {
+ "query": "solar cell efficiency",
+ "field": "Energy",
+ "rank": 2,
+ "topic_name": "Chalcogenide Semiconductor Thin Films",
+ "total_score": 56.666107,
+ "lexical_score": 45.6779638,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.9008,
+ "matched_keywords": [
+ {
+ "keyword": "Solar Cell Efficiency",
+ "score": 0.996032
+ },
+ {
+ "keyword": "Photovoltaics",
+ "score": 0.8850746
+ }
+ ]
+ },
+ {
+ "query": "solar cell efficiency",
+ "field": "Energy",
+ "rank": 3,
+ "topic_name": "Organic Electronics and Photovoltaics",
+ "total_score": 55.26034,
+ "lexical_score": 34.871084499999995,
+ "title_vector_score": 0.0,
+ "description_vector_score": 12.358722,
+ "keywords_vector_score": 24.38038,
+ "matched_keywords": [
+ {
+ "keyword": "High-Efficiency Solar Cells",
+ "score": 0.9752152
+ }
+ ]
+ },
+ {
+ "query": "wind turbine aerodynamics",
+ "field": "Energy",
+ "rank": 1,
+ "topic_name": "Wind Energy Research and Development",
+ "total_score": 104.01838,
+ "lexical_score": 85.0284765,
+ "title_vector_score": 26.70137,
+ "description_vector_score": 12.607652,
+ "keywords_vector_score": 22.98655,
+ "matched_keywords": [
+ {
+ "keyword": "Wind Turbine Wakes",
+ "score": 0.91946197
+ },
+ {
+ "keyword": "Aerodynamics",
+ "score": 0.8746078
+ }
+ ]
+ },
+ {
+ "query": "wind turbine aerodynamics",
+ "field": "Energy",
+ "rank": 2,
+ "topic_name": "Wind Turbine Control Systems",
+ "total_score": 74.364105,
+ "lexical_score": 62.996071,
+ "title_vector_score": 27.483273,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Wind Power",
+ "score": 0.9128165
+ },
+ {
+ "keyword": "Variable Speed Turbines",
+ "score": 0.88444805
+ }
+ ]
+ },
+ {
+ "query": "wind turbine aerodynamics",
+ "field": "Energy",
+ "rank": 3,
+ "topic_name": "Aerospace Engineering and Energy Systems",
+ "total_score": 49.49269,
+ "lexical_score": 20.23292,
+ "title_vector_score": 0.0,
+ "description_vector_score": 12.716027,
+ "keywords_vector_score": 23.307436,
+ "matched_keywords": [
+ {
+ "keyword": "Airborne Wind Energy",
+ "score": 0.93229747
+ },
+ {
+ "keyword": "High Altitude Wind Power",
+ "score": 0.88591933
+ }
+ ]
+ },
+ {
+ "query": "battery energy storage",
+ "field": "Energy",
+ "rank": 1,
+ "topic_name": "Power Systems and Renewable Energy",
+ "total_score": 65.61801,
+ "lexical_score": 60.963861200000004,
+ "title_vector_score": 0.0,
+ "description_vector_score": 12.588662,
+ "keywords_vector_score": 23.466164,
+ "matched_keywords": [
+ {
+ "keyword": "Battery Technology",
+ "score": 0.93864655
+ },
+ {
+ "keyword": "Energy Storage",
+ "score": 0.91155815
+ }
+ ]
+ },
+ {
+ "query": "battery energy storage",
+ "field": "Energy",
+ "rank": 2,
+ "topic_name": "Advanced battery technologies research",
+ "total_score": 61.973877,
+ "lexical_score": 58.8164872,
+ "title_vector_score": 27.347847,
+ "description_vector_score": 12.911425,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Rechargeable Batteries",
+ "score": 0.9346771
+ },
+ {
+ "keyword": "Energy Storage",
+ "score": 0.91155815
+ }
+ ]
+ },
+ {
+ "query": "battery energy storage",
+ "field": "Energy",
+ "rank": 3,
+ "topic_name": "Thermal Analysis in Power Transmission",
+ "total_score": 49.620064,
+ "lexical_score": 36.5322145,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.914772,
+ "matched_keywords": [
+ {
+ "keyword": "Battery Energy Storage",
+ "score": 0.99659085
+ }
+ ]
+ },
+ {
+ "query": "hydrogen fuel cells",
+ "field": "Energy",
+ "rank": 1,
+ "topic_name": "Fuel Cells and Related Materials",
+ "total_score": 101.84247,
+ "lexical_score": 93.0259265,
+ "title_vector_score": 26.88509,
+ "description_vector_score": 12.299205,
+ "keywords_vector_score": 24.83058,
+ "matched_keywords": [
+ {
+ "keyword": "Hydrogen Fuel Cells",
+ "score": 0.9932232
+ },
+ {
+ "keyword": "Fuel Cell Durability",
+ "score": 0.87414265
+ }
+ ]
+ },
+ {
+ "query": "hydrogen fuel cells",
+ "field": "Energy",
+ "rank": 2,
+ "topic_name": "Hydrogen Storage and Materials",
+ "total_score": 62.170822,
+ "lexical_score": 45.734255,
+ "title_vector_score": 26.34523,
+ "description_vector_score": 12.264282,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Hydrogen Generation",
+ "score": 0.92356515
+ },
+ {
+ "keyword": "Hydrogen Storage",
+ "score": 0.8753655
+ }
+ ]
+ },
+ {
+ "query": "hydrogen fuel cells",
+ "field": "Energy",
+ "rank": 3,
+ "topic_name": "Advancements in Solid Oxide Fuel Cells",
+ "total_score": 61.197758,
+ "lexical_score": 65.5850022,
+ "title_vector_score": 26.398716,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Fuel Cell Technology",
+ "score": 0.91219497
+ },
+ {
+ "keyword": "Solid Oxide Fuel Cells",
+ "score": 0.8955195
+ }
+ ]
+ },
+ {
+ "query": "nuclear power generation",
+ "field": "Energy",
+ "rank": 1,
+ "topic_name": "Advanced Power Generation Technologies",
+ "total_score": 89.8127,
+ "lexical_score": 80.6919515,
+ "title_vector_score": 25.953876,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.269897,
+ "matched_keywords": [
+ {
+ "keyword": "Nuclear Power Plants",
+ "score": 0.97079587
+ }
+ ]
+ },
+ {
+ "query": "nuclear power generation",
+ "field": "Energy",
+ "rank": 2,
+ "topic_name": "Nuclear reactor physics and engineering",
+ "total_score": 46.564796,
+ "lexical_score": 47.4223933,
+ "title_vector_score": 26.666565,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Nuclear Reactor",
+ "score": 0.9373236
+ },
+ {
+ "keyword": "Nuclear Data Library",
+ "score": 0.8187299
+ }
+ ]
+ },
+ {
+ "query": "nuclear power generation",
+ "field": "Energy",
+ "rank": 3,
+ "topic_name": "Nuclear Physics and Applications",
+ "total_score": 44.178925,
+ "lexical_score": 18.26299,
+ "title_vector_score": 25.915932,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "biofuel production technologies",
+ "field": "Energy",
+ "rank": 1,
+ "topic_name": "Biofuel production and bioconversion",
+ "total_score": 85.143486,
+ "lexical_score": 60.557296,
+ "title_vector_score": 29.336966,
+ "description_vector_score": 13.192642,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Bioethanol Production",
+ "score": 0.8892143
+ },
+ {
+ "keyword": "Global Bioenergy Potential",
+ "score": 0.88269544
+ }
+ ]
+ },
+ {
+ "query": "biofuel production technologies",
+ "field": "Energy",
+ "rank": 2,
+ "topic_name": "Algal biology and biofuel production",
+ "total_score": 75.78299,
+ "lexical_score": 50.8711592,
+ "title_vector_score": 0.0,
+ "description_vector_score": 12.468746,
+ "keywords_vector_score": 24.407768,
+ "matched_keywords": [
+ {
+ "keyword": "Biofuels",
+ "score": 0.97631073
+ },
+ {
+ "keyword": "Biodiesel",
+ "score": 0.96325755
+ }
+ ]
+ },
+ {
+ "query": "biofuel production technologies",
+ "field": "Energy",
+ "rank": 3,
+ "topic_name": "Biodiesel Production and Applications",
+ "total_score": 60.76809,
+ "lexical_score": 23.803617000000003,
+ "title_vector_score": 28.993942,
+ "description_vector_score": 12.721578,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Biodiesel",
+ "score": 0.9633975
+ }
+ ]
+ },
+ {
+ "query": "geothermal energy extraction",
+ "field": "Energy",
+ "rank": 1,
+ "topic_name": "Geothermal Energy Systems and Applications",
+ "total_score": 102.30519,
+ "lexical_score": 84.3579893,
+ "title_vector_score": 28.660898,
+ "description_vector_score": 12.52593,
+ "keywords_vector_score": 24.320524,
+ "matched_keywords": [
+ {
+ "keyword": "Geothermal Energy",
+ "score": 0.972821
+ },
+ {
+ "keyword": "Enhanced Geothermal Systems",
+ "score": 0.9291923
+ }
+ ]
+ },
+ {
+ "query": "geothermal energy extraction",
+ "field": "Energy",
+ "rank": 2,
+ "topic_name": "Geophysical and Geoelectrical Methods",
+ "total_score": 25.5601,
+ "lexical_score": 0.0,
+ "title_vector_score": 25.5601,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "geothermal energy extraction",
+ "field": "Energy",
+ "rank": 3,
+ "topic_name": "Geoscience and Mining Technology",
+ "total_score": 25.486658,
+ "lexical_score": 0.0,
+ "title_vector_score": 25.486658,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "energy grid optimization",
+ "field": "Energy",
+ "rank": 1,
+ "topic_name": "Integrated Energy Systems Optimization",
+ "total_score": 69.00409,
+ "lexical_score": 60.5688231,
+ "title_vector_score": 27.448168,
+ "description_vector_score": 12.299763,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Power Grid Flexibility",
+ "score": 0.8763299
+ },
+ {
+ "keyword": "Smart Energy Systems",
+ "score": 0.85409117
+ }
+ ]
+ },
+ {
+ "query": "energy grid optimization",
+ "field": "Energy",
+ "rank": 2,
+ "topic_name": "Smart Grid Energy Management",
+ "total_score": 65.51279,
+ "lexical_score": 61.766349,
+ "title_vector_score": 27.870512,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Energy Management",
+ "score": 0.86539865
+ },
+ {
+ "keyword": "Smart Grid",
+ "score": 0.84705186
+ }
+ ]
+ },
+ {
+ "query": "energy grid optimization",
+ "field": "Energy",
+ "rank": 3,
+ "topic_name": "Electric Power System Optimization",
+ "total_score": 54.355774,
+ "lexical_score": 35.0632112,
+ "title_vector_score": 27.992077,
+ "description_vector_score": 12.2456255,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Renewable Energy Integration",
+ "score": 0.851125
+ },
+ {
+ "keyword": "Electricity Market Reform",
+ "score": 0.82445884
+ }
+ ]
+ },
+ {
+ "query": "fossil fuel alternative",
+ "field": "Energy",
+ "rank": 1,
+ "topic_name": "Maritime Transport Emissions and Efficiency",
+ "total_score": 47.330387,
+ "lexical_score": 34.0462593,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.74789,
+ "matched_keywords": [
+ {
+ "keyword": "Alternative Fuels",
+ "score": 0.94991565
+ },
+ {
+ "keyword": "Fuel Consumption",
+ "score": 0.85485387
+ }
+ ]
+ },
+ {
+ "query": "fossil fuel alternative",
+ "field": "Energy",
+ "rank": 2,
+ "topic_name": "Ecocriticism and Environmental Literature",
+ "total_score": 38.559196,
+ "lexical_score": 14.817433,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.741764,
+ "matched_keywords": [
+ {
+ "keyword": "Fossil Fuels",
+ "score": 0.94967055
+ }
+ ]
+ },
+ {
+ "query": "fossil fuel alternative",
+ "field": "Energy",
+ "rank": 3,
+ "topic_name": "Global Energy and Sustainability Research",
+ "total_score": 37.02198,
+ "lexical_score": 25.3000513,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.74329,
+ "matched_keywords": [
+ {
+ "keyword": "Fossil Fuels",
+ "score": 0.9497316
+ },
+ {
+ "keyword": "Renewable Energy",
+ "score": 0.8247204
+ }
+ ]
+ },
+ {
+ "query": "hydroelectric power systems",
+ "field": "Energy",
+ "rank": 1,
+ "topic_name": "Power Systems and Technologies",
+ "total_score": 51.752586,
+ "lexical_score": 37.5871233,
+ "title_vector_score": 25.392645,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Power System",
+ "score": 0.8269634
+ },
+ {
+ "keyword": "Electric Utility",
+ "score": 0.8188603
+ }
+ ]
+ },
+ {
+ "query": "hydroelectric power systems",
+ "field": "Energy",
+ "rank": 2,
+ "topic_name": "Hydropower, Displacement, Environmental Impact",
+ "total_score": 49.202736,
+ "lexical_score": 0.0,
+ "title_vector_score": 25.829458,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.373276,
+ "matched_keywords": [
+ {
+ "keyword": "Hydropower",
+ "score": 0.93493104
+ }
+ ]
+ },
+ {
+ "query": "hydroelectric power systems",
+ "field": "Energy",
+ "rank": 3,
+ "topic_name": "Power Systems and Renewable Energy",
+ "total_score": 48.921135,
+ "lexical_score": 46.7572629,
+ "title_vector_score": 24.854515,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Power Systems",
+ "score": 0.8555398
+ }
+ ]
+ },
+ {
+ "query": "energy efficiency buildings",
+ "field": "Energy",
+ "rank": 1,
+ "topic_name": "Building energy efficiency and sustainability",
+ "total_score": 72.61296,
+ "lexical_score": 72.1893813,
+ "title_vector_score": 28.056356,
+ "description_vector_score": 12.7344055,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Energy Efficiency",
+ "score": 0.91331196
+ },
+ {
+ "keyword": "Sustainable Architecture",
+ "score": 0.8304992
+ }
+ ]
+ },
+ {
+ "query": "energy efficiency buildings",
+ "field": "Energy",
+ "rank": 2,
+ "topic_name": "Building Energy and Comfort Optimization",
+ "total_score": 66.03162,
+ "lexical_score": 56.6716127,
+ "title_vector_score": 25.876171,
+ "description_vector_score": 12.219787,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Energy Efficiency",
+ "score": 0.9134705
+ },
+ {
+ "keyword": "Building Energy Consumption",
+ "score": 0.9035146
+ }
+ ]
+ },
+ {
+ "query": "energy efficiency buildings",
+ "field": "Energy",
+ "rank": 3,
+ "topic_name": "Energy Efficiency and Management",
+ "total_score": 61.878235,
+ "lexical_score": 63.44946370000001,
+ "title_vector_score": 27.023685,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Energy Efficiency",
+ "score": 0.9134705
+ },
+ {
+ "keyword": "Energy Consumption",
+ "score": 0.82992816
+ }
+ ]
+ },
+ {
+ "query": "carbon capture storage",
+ "field": "Energy",
+ "rank": 1,
+ "topic_name": "Carbon Dioxide Capture Technologies",
+ "total_score": 70.821075,
+ "lexical_score": 71.1682843,
+ "title_vector_score": 26.602285,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Carbon Dioxide Capture",
+ "score": 0.89791536
+ },
+ {
+ "keyword": "CO2 Capture Technology",
+ "score": 0.87173223
+ }
+ ]
+ },
+ {
+ "query": "carbon capture storage",
+ "field": "Energy",
+ "rank": 2,
+ "topic_name": "Mining and Gasification Technologies",
+ "total_score": 54.768185,
+ "lexical_score": 43.5710136,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.742239,
+ "matched_keywords": [
+ {
+ "keyword": "Carbon Capture and Storage",
+ "score": 0.9896896
+ }
+ ]
+ },
+ {
+ "query": "carbon capture storage",
+ "field": "Energy",
+ "rank": 3,
+ "topic_name": "Forest, Soil, and Plant Ecology in China",
+ "total_score": 41.513866,
+ "lexical_score": 25.1114855,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.320835,
+ "matched_keywords": [
+ {
+ "keyword": "Carbon Storage",
+ "score": 0.9728334
+ }
+ ]
+ },
+ {
+ "query": "renewable energy policy",
+ "field": "Energy",
+ "rank": 1,
+ "topic_name": "Power Systems and Renewable Energy",
+ "total_score": 73.382164,
+ "lexical_score": 57.800087500000004,
+ "title_vector_score": 27.792027,
+ "description_vector_score": 12.519246,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Renewable Energy",
+ "score": 0.9570937
+ }
+ ]
+ },
+ {
+ "query": "renewable energy policy",
+ "field": "Energy",
+ "rank": 2,
+ "topic_name": "Renewable energy and sustainable power systems",
+ "total_score": 71.7582,
+ "lexical_score": 54.0578379,
+ "title_vector_score": 28.487965,
+ "description_vector_score": 12.846232,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Renewable Energy Sources",
+ "score": 0.9442935
+ },
+ {
+ "keyword": "Energy Efficiency",
+ "score": 0.8355603
+ }
+ ]
+ },
+ {
+ "query": "renewable energy policy",
+ "field": "Energy",
+ "rank": 3,
+ "topic_name": "Renewable Energy and Sustainability",
+ "total_score": 64.76834,
+ "lexical_score": 62.8159272,
+ "title_vector_score": 28.546114,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Renewable Energy",
+ "score": 0.95717597
+ },
+ {
+ "keyword": "Energy Efficiency",
+ "score": 0.8364737
+ }
+ ]
+ },
+ {
+ "query": "smart grid infrastructure",
+ "field": "Energy",
+ "rank": 1,
+ "topic_name": "Smart Grid Energy Management",
+ "total_score": 81.903305,
+ "lexical_score": 68.271038,
+ "title_vector_score": 27.810158,
+ "description_vector_score": 12.221951,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Smart Grid",
+ "score": 0.9556794
+ }
+ ]
+ },
+ {
+ "query": "smart grid infrastructure",
+ "field": "Energy",
+ "rank": 2,
+ "topic_name": "Smart Grid and Power Systems",
+ "total_score": 79.4874,
+ "lexical_score": 70.3093666,
+ "title_vector_score": 28.403643,
+ "description_vector_score": 12.855356,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Smart Grid",
+ "score": 0.9556794
+ }
+ ]
+ },
+ {
+ "query": "smart grid infrastructure",
+ "field": "Energy",
+ "rank": 3,
+ "topic_name": "Smart Grid Security and Resilience",
+ "total_score": 64.536255,
+ "lexical_score": 64.691363,
+ "title_vector_score": 26.30785,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Smart Grid",
+ "score": 0.9558518
+ }
+ ]
+ },
+ {
+ "query": "tidal energy conversion",
+ "field": "Energy",
+ "rank": 1,
+ "topic_name": "Wind Energy Research and Development",
+ "total_score": 44.394154,
+ "lexical_score": 51.3564144,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.863262,
+ "matched_keywords": [
+ {
+ "keyword": "Tidal Energy",
+ "score": 0.9545305
+ }
+ ]
+ },
+ {
+ "query": "tidal energy conversion",
+ "field": "Energy",
+ "rank": 2,
+ "topic_name": "Innovative Energy Harvesting Technologies",
+ "total_score": 41.129745,
+ "lexical_score": 40.066106,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 21.341593,
+ "matched_keywords": [
+ {
+ "keyword": "Energy Conversion",
+ "score": 0.8536637
+ }
+ ]
+ },
+ {
+ "query": "tidal energy conversion",
+ "field": "Energy",
+ "rank": 3,
+ "topic_name": "Electrocatalysts for Energy Conversion",
+ "total_score": 37.642277,
+ "lexical_score": 68.7238925,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Energy Conversion",
+ "score": 0.8532162
+ }
+ ]
+ },
+ {
+ "query": "thermal energy storage",
+ "field": "Energy",
+ "rank": 1,
+ "topic_name": "Geothermal Energy Systems and Applications",
+ "total_score": 53.901764,
+ "lexical_score": 58.774261800000005,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.68161,
+ "matched_keywords": [
+ {
+ "keyword": "Seasonal Thermal Energy Storage",
+ "score": 0.94726443
+ },
+ {
+ "keyword": "Energy Piles",
+ "score": 0.84927773
+ }
+ ]
+ },
+ {
+ "query": "thermal energy storage",
+ "field": "Energy",
+ "rank": 2,
+ "topic_name": "Phase Change Materials Research",
+ "total_score": 53.49027,
+ "lexical_score": 45.479136600000004,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.957317,
+ "matched_keywords": [
+ {
+ "keyword": "Thermal Energy Storage",
+ "score": 0.9982927
+ },
+ {
+ "keyword": "Thermal Conductivity Enhancement",
+ "score": 0.8534441
+ }
+ ]
+ },
+ {
+ "query": "thermal energy storage",
+ "field": "Energy",
+ "rank": 3,
+ "topic_name": "Thermal Analysis in Power Transmission",
+ "total_score": 46.563206,
+ "lexical_score": 48.1922245,
+ "title_vector_score": 25.464005,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Thermal Analysis",
+ "score": 0.86360455
+ },
+ {
+ "keyword": "Battery Energy Storage",
+ "score": 0.83841515
+ }
+ ]
+ },
+ {
+ "query": "power electronics converters",
+ "field": "Energy",
+ "rank": 1,
+ "topic_name": "Multilevel Inverters and Converters",
+ "total_score": 90.951416,
+ "lexical_score": 69.6551848,
+ "title_vector_score": 26.161987,
+ "description_vector_score": 12.728215,
+ "keywords_vector_score": 23.262613,
+ "matched_keywords": [
+ {
+ "keyword": "Power Electronics",
+ "score": 0.93050456
+ },
+ {
+ "keyword": "Voltage Source Inverters",
+ "score": 0.8861942
+ }
+ ]
+ },
+ {
+ "query": "power electronics converters",
+ "field": "Energy",
+ "rank": 2,
+ "topic_name": "Advanced DC-DC Converters",
+ "total_score": 73.09799,
+ "lexical_score": 77.3655819,
+ "title_vector_score": 26.275434,
+ "description_vector_score": 12.795192,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Power Electronics",
+ "score": 0.93019485
+ },
+ {
+ "keyword": "High-Frequency Power Conversion",
+ "score": 0.88460493
+ }
+ ]
+ },
+ {
+ "query": "power electronics converters",
+ "field": "Energy",
+ "rank": 3,
+ "topic_name": "HVDC Systems and Fault Protection",
+ "total_score": 60.547634,
+ "lexical_score": 47.1820845,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.399097,
+ "matched_keywords": [
+ {
+ "keyword": "Voltage Source Converters",
+ "score": 0.93596387
+ },
+ {
+ "keyword": "Power Electronics",
+ "score": 0.93050456
+ }
+ ]
+ },
+ {
+ "query": "microgrid energy systems",
+ "field": "Energy",
+ "rank": 1,
+ "topic_name": "Microgrid Control and Optimization",
+ "total_score": 87.23118,
+ "lexical_score": 62.6251055,
+ "title_vector_score": 26.500605,
+ "description_vector_score": 13.256657,
+ "keywords_vector_score": 22.307693,
+ "matched_keywords": [
+ {
+ "keyword": "Microgrid Control",
+ "score": 0.89230776
+ },
+ {
+ "keyword": "Renewable Energy Integration",
+ "score": 0.826658
+ }
+ ]
+ },
+ {
+ "query": "microgrid energy systems",
+ "field": "Energy",
+ "rank": 2,
+ "topic_name": "Power Systems and Renewable Energy",
+ "total_score": 49.44657,
+ "lexical_score": 43.567515400000005,
+ "title_vector_score": 26.192085,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Power Systems",
+ "score": 0.8267536
+ },
+ {
+ "keyword": "Renewable Energy",
+ "score": 0.82224846
+ }
+ ]
+ },
+ {
+ "query": "microgrid energy systems",
+ "field": "Energy",
+ "rank": 3,
+ "topic_name": "Optimal Power Flow Distribution",
+ "total_score": 48.212566,
+ "lexical_score": 24.375107,
+ "title_vector_score": 0.0,
+ "description_vector_score": 12.380919,
+ "keywords_vector_score": 23.264677,
+ "matched_keywords": [
+ {
+ "keyword": "Microgrids",
+ "score": 0.93058705
+ },
+ {
+ "keyword": "Renewable Energy",
+ "score": 0.82224846
+ }
+ ]
+ },
+ {
+ "query": "biomass combustion processes",
+ "field": "Energy",
+ "rank": 1,
+ "topic_name": "Thermochemical Biomass Conversion Processes",
+ "total_score": 77.27467,
+ "lexical_score": 61.011209,
+ "title_vector_score": 26.867716,
+ "description_vector_score": 12.764679,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Biomass",
+ "score": 0.91209173
+ },
+ {
+ "keyword": "Lignocellulosic Biomass",
+ "score": 0.81577444
+ }
+ ]
+ },
+ {
+ "query": "biomass combustion processes",
+ "field": "Energy",
+ "rank": 2,
+ "topic_name": "Catalysis for Biomass Conversion",
+ "total_score": 61.864807,
+ "lexical_score": 38.96753700000001,
+ "title_vector_score": 26.691814,
+ "description_vector_score": 12.668806,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Biomass",
+ "score": 0.91195583
+ }
+ ]
+ },
+ {
+ "query": "biomass combustion processes",
+ "field": "Energy",
+ "rank": 3,
+ "topic_name": "Energetic Materials and Combustion",
+ "total_score": 47.147644,
+ "lexical_score": 21.084139,
+ "title_vector_score": 26.063503,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "energy consumption forecasting",
+ "field": "Energy",
+ "rank": 1,
+ "topic_name": "Grey System Theory Applications",
+ "total_score": 59.866974,
+ "lexical_score": 52.2945777,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.909622,
+ "matched_keywords": [
+ {
+ "keyword": "Energy Consumption Forecasting",
+ "score": 0.99638486
+ },
+ {
+ "keyword": "Electricity Demand Forecasting",
+ "score": 0.90793633
+ }
+ ]
+ },
+ {
+ "query": "energy consumption forecasting",
+ "field": "Energy",
+ "rank": 2,
+ "topic_name": "Energy Load and Power Forecasting",
+ "total_score": 59.753113,
+ "lexical_score": 67.06294299999999,
+ "title_vector_score": 27.571886,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Electricity Price Forecasting",
+ "score": 0.8798964
+ },
+ {
+ "keyword": "Renewable Energy",
+ "score": 0.811219
+ }
+ ]
+ },
+ {
+ "query": "energy consumption forecasting",
+ "field": "Energy",
+ "rank": 3,
+ "topic_name": "Energy Efficiency and Management",
+ "total_score": 46.66759,
+ "lexical_score": 45.7779467,
+ "title_vector_score": 25.907993,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Energy Consumption",
+ "score": 0.89430165
+ },
+ {
+ "keyword": "Energy Efficiency",
+ "score": 0.8469541
+ }
+ ]
+ },
+ {
+ "query": "drug delivery systems",
+ "field": "Pharmacology, Toxicology and Pharmaceutics",
+ "rank": 1,
+ "topic_name": "Advanced Drug Delivery Systems",
+ "total_score": 77.16292,
+ "lexical_score": 82.70734759999999,
+ "title_vector_score": 29.088379,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Drug Delivery",
+ "score": 0.9569404
+ }
+ ]
+ },
+ {
+ "query": "drug delivery systems",
+ "field": "Pharmacology, Toxicology and Pharmaceutics",
+ "rank": 2,
+ "topic_name": "Drug Solubulity and Delivery Systems",
+ "total_score": 71.035484,
+ "lexical_score": 77.5281694,
+ "title_vector_score": 27.143433,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "drug delivery systems",
+ "field": "Pharmacology, Toxicology and Pharmaceutics",
+ "rank": 3,
+ "topic_name": "Advancements in Transdermal Drug Delivery",
+ "total_score": 59.21065,
+ "lexical_score": 75.2002583,
+ "title_vector_score": 24.75201,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Transdermal Drug Delivery",
+ "score": 0.8478265
+ }
+ ]
+ },
+ {
+ "query": "pharmacokinetics modeling analysis",
+ "field": "Pharmacology, Toxicology and Pharmaceutics",
+ "rank": 1,
+ "topic_name": "Pharmaceutical studies and practices",
+ "total_score": 40.97472,
+ "lexical_score": 14.489859,
+ "title_vector_score": 26.484861,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Drug Development",
+ "score": 0.82205105
+ }
+ ]
+ },
+ {
+ "query": "pharmacokinetics modeling analysis",
+ "field": "Pharmacology, Toxicology and Pharmaceutics",
+ "rank": 2,
+ "topic_name": "Forensic Toxicology and Drug Analysis",
+ "total_score": 31.385128,
+ "lexical_score": 15.8054037,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.27345,
+ "matched_keywords": [
+ {
+ "keyword": "Drug Analysis",
+ "score": 0.89093804
+ },
+ {
+ "keyword": "Clinical Pharmacology",
+ "score": 0.85256696
+ }
+ ]
+ },
+ {
+ "query": "pharmacokinetics modeling analysis",
+ "field": "Pharmacology, Toxicology and Pharmaceutics",
+ "rank": 3,
+ "topic_name": "Analytical Methods in Pharmaceuticals",
+ "total_score": 31.236162,
+ "lexical_score": 6.4010774,
+ "title_vector_score": 27.4827,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Pharmaceutical Analysis",
+ "score": 0.9248972
+ }
+ ]
+ },
+ {
+ "query": "pharmacodynamics receptor binding",
+ "field": "Pharmacology, Toxicology and Pharmaceutics",
+ "rank": 1,
+ "topic_name": "Receptor Mechanisms and Signaling",
+ "total_score": 70.17799,
+ "lexical_score": 36.6061045,
+ "title_vector_score": 26.020746,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 21.653057,
+ "matched_keywords": [
+ {
+ "keyword": "Receptor Activation",
+ "score": 0.86612225
+ },
+ {
+ "keyword": "G-Protein-Coupled Receptors",
+ "score": 0.8231337
+ }
+ ]
+ },
+ {
+ "query": "pharmacodynamics receptor binding",
+ "field": "Pharmacology, Toxicology and Pharmaceutics",
+ "rank": 2,
+ "topic_name": "Pharmacological Receptor Mechanisms and Effects",
+ "total_score": 49.004387,
+ "lexical_score": 35.671534199999996,
+ "title_vector_score": 28.458065,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "pharmacodynamics receptor binding",
+ "field": "Pharmacology, Toxicology and Pharmaceutics",
+ "rank": 3,
+ "topic_name": "Cardiovascular, Neuropeptides, and Oxidative Stress Research",
+ "total_score": 32.154526,
+ "lexical_score": 14.614943,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.725946,
+ "matched_keywords": [
+ {
+ "keyword": "Receptor Antagonist",
+ "score": 0.9090378
+ }
+ ]
+ },
+ {
+ "query": "toxicology safety assessment",
+ "field": "Pharmacology, Toxicology and Pharmaceutics",
+ "rank": 1,
+ "topic_name": "Agricultural safety and regulations",
+ "total_score": 57.396786,
+ "lexical_score": 47.7376251,
+ "title_vector_score": 0.0,
+ "description_vector_score": 12.255897,
+ "keywords_vector_score": 24.044216,
+ "matched_keywords": [
+ {
+ "keyword": "Toxicological Assessment",
+ "score": 0.9617686
+ },
+ {
+ "keyword": "Chemical Safety",
+ "score": 0.9278779
+ }
+ ]
+ },
+ {
+ "query": "toxicology safety assessment",
+ "field": "Pharmacology, Toxicology and Pharmaceutics",
+ "rank": 2,
+ "topic_name": "Environmental Toxicology and Ecotoxicology",
+ "total_score": 49.087467,
+ "lexical_score": 29.34305,
+ "title_vector_score": 26.58328,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Metal Toxicity",
+ "score": 0.87362456
+ },
+ {
+ "keyword": "Environmental Risk Assessment",
+ "score": 0.8546512
+ }
+ ]
+ },
+ {
+ "query": "toxicology safety assessment",
+ "field": "Pharmacology, Toxicology and Pharmaceutics",
+ "rank": 3,
+ "topic_name": "Chemical Safety and Risk Management",
+ "total_score": 46.875626,
+ "lexical_score": 42.6621431,
+ "title_vector_score": 27.680405,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Hazardous Chemicals",
+ "score": 0.91013956
+ },
+ {
+ "keyword": "Laboratory Safety",
+ "score": 0.853127
+ }
+ ]
+ },
+ {
+ "query": "pharmaceutical formulation design",
+ "field": "Pharmacology, Toxicology and Pharmaceutics",
+ "rank": 1,
+ "topic_name": "Pharmaceutical studies and practices",
+ "total_score": 46.670338,
+ "lexical_score": 20.55929,
+ "title_vector_score": 26.111048,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Drug Development",
+ "score": 0.88845277
+ }
+ ]
+ },
+ {
+ "query": "pharmaceutical formulation design",
+ "field": "Pharmacology, Toxicology and Pharmaceutics",
+ "rank": 2,
+ "topic_name": "Analytical Methods in Pharmaceuticals",
+ "total_score": 37.497322,
+ "lexical_score": 17.8896143,
+ "title_vector_score": 27.07745,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Pharmaceutical Analysis",
+ "score": 0.8947122
+ }
+ ]
+ },
+ {
+ "query": "pharmaceutical formulation design",
+ "field": "Pharmacology, Toxicology and Pharmaceutics",
+ "rank": 3,
+ "topic_name": "Synthesis of Tetrazole Derivatives",
+ "total_score": 31.458267,
+ "lexical_score": 10.5232963,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.90694,
+ "matched_keywords": [
+ {
+ "keyword": "Drug Design",
+ "score": 0.9562776
+ },
+ {
+ "keyword": "Medicinal Chemistry",
+ "score": 0.8292935
+ }
+ ]
+ },
+ {
+ "query": "bioavailability drug absorption",
+ "field": "Pharmacology, Toxicology and Pharmaceutics",
+ "rank": 1,
+ "topic_name": "Drug Solubulity and Delivery Systems",
+ "total_score": 46.839546,
+ "lexical_score": 51.995928,
+ "title_vector_score": 24.825195,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Drug Solubility",
+ "score": 0.8729944
+ },
+ {
+ "keyword": "Biopharmaceutics Classification System",
+ "score": 0.8333647
+ }
+ ]
+ },
+ {
+ "query": "bioavailability drug absorption",
+ "field": "Pharmacology, Toxicology and Pharmaceutics",
+ "rank": 2,
+ "topic_name": "Drug Transport and Resistance Mechanisms",
+ "total_score": 40.595963,
+ "lexical_score": 27.377726499999998,
+ "title_vector_score": 24.497467,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Multidrug Resistance",
+ "score": 0.81776595
+ }
+ ]
+ },
+ {
+ "query": "bioavailability drug absorption",
+ "field": "Pharmacology, Toxicology and Pharmaceutics",
+ "rank": 3,
+ "topic_name": "Pharmaceutical studies and practices",
+ "total_score": 36.602577,
+ "lexical_score": 18.029328,
+ "title_vector_score": 24.991909,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "cytotoxicity assays testing",
+ "field": "Pharmacology, Toxicology and Pharmaceutics",
+ "rank": 1,
+ "topic_name": "Animal testing and alternatives",
+ "total_score": 57.122902,
+ "lexical_score": 68.3015113,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.474138,
+ "matched_keywords": [
+ {
+ "keyword": "Cytotoxicity Assays",
+ "score": 0.9789655
+ },
+ {
+ "keyword": "In Vitro Testing",
+ "score": 0.8455639
+ }
+ ]
+ },
+ {
+ "query": "cytotoxicity assays testing",
+ "field": "Pharmacology, Toxicology and Pharmaceutics",
+ "rank": 2,
+ "topic_name": "Traditional and Medicinal Uses of Annonaceae",
+ "total_score": 35.092377,
+ "lexical_score": 18.975144,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.382229,
+ "matched_keywords": [
+ {
+ "keyword": "Cytotoxicity",
+ "score": 0.8952892
+ }
+ ]
+ },
+ {
+ "query": "cytotoxicity assays testing",
+ "field": "Pharmacology, Toxicology and Pharmaceutics",
+ "rank": 3,
+ "topic_name": "Carcinogens and Genotoxicity Assessment",
+ "total_score": 34.845406,
+ "lexical_score": 10.167407,
+ "title_vector_score": 24.677998,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Genotoxicity Testing",
+ "score": 0.86947227
+ }
+ ]
+ },
+ {
+ "query": "clinical pharmacology trials",
+ "field": "Pharmacology, Toxicology and Pharmaceutics",
+ "rank": 1,
+ "topic_name": "Statistical Methods in Clinical Trials",
+ "total_score": 53.05065,
+ "lexical_score": 65.55302800000001,
+ "title_vector_score": 0.0,
+ "description_vector_score": 12.391816,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Pharmacokinetic/Pharmacodynamic Modeling",
+ "score": 0.82983875
+ }
+ ]
+ },
+ {
+ "query": "clinical pharmacology trials",
+ "field": "Pharmacology, Toxicology and Pharmaceutics",
+ "rank": 2,
+ "topic_name": "Pharmaceutical studies and practices",
+ "total_score": 43.86495,
+ "lexical_score": 29.600241099999998,
+ "title_vector_score": 27.846172,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Clinical Trials",
+ "score": 0.9313128
+ },
+ {
+ "keyword": "Drug Development",
+ "score": 0.83920956
+ }
+ ]
+ },
+ {
+ "query": "clinical pharmacology trials",
+ "field": "Pharmacology, Toxicology and Pharmaceutics",
+ "rank": 3,
+ "topic_name": "Spinal Cord Injury Research",
+ "total_score": 42.21637,
+ "lexical_score": 21.9074568,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.294842,
+ "matched_keywords": [
+ {
+ "keyword": "Clinical Trials",
+ "score": 0.9317937
+ }
+ ]
+ },
+ {
+ "query": "neuropharmacology drug effects",
+ "field": "Pharmacology, Toxicology and Pharmaceutics",
+ "rank": 1,
+ "topic_name": "Neuroscience and Neuropharmacology Research",
+ "total_score": 53.635654,
+ "lexical_score": 25.166224,
+ "title_vector_score": 28.46943,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Neurotransmission",
+ "score": 0.8416693
+ }
+ ]
+ },
+ {
+ "query": "neuropharmacology drug effects",
+ "field": "Pharmacology, Toxicology and Pharmaceutics",
+ "rank": 2,
+ "topic_name": "Alkaloids: synthesis and pharmacology",
+ "total_score": 48.73837,
+ "lexical_score": 28.2744319,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.979069,
+ "matched_keywords": [
+ {
+ "keyword": "Neuropharmacology",
+ "score": 0.9591627
+ },
+ {
+ "keyword": "Pharmacological Effects",
+ "score": 0.91548514
+ }
+ ]
+ },
+ {
+ "query": "neuropharmacology drug effects",
+ "field": "Pharmacology, Toxicology and Pharmaceutics",
+ "rank": 3,
+ "topic_name": "Pharmacological Effects and Assays",
+ "total_score": 40.44049,
+ "lexical_score": 24.6295418,
+ "title_vector_score": 26.32242,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "cardiotoxicity drug evaluation",
+ "field": "Pharmacology, Toxicology and Pharmaceutics",
+ "rank": 1,
+ "topic_name": "Chemotherapy-induced cardiotoxicity and mitigation",
+ "total_score": 61.7371,
+ "lexical_score": 29.908892700000003,
+ "title_vector_score": 26.420767,
+ "description_vector_score": 12.339571,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Cardiovascular Complications",
+ "score": 0.8154423
+ },
+ {
+ "keyword": "Cardiomyopathy",
+ "score": 0.81320286
+ }
+ ]
+ },
+ {
+ "query": "cardiotoxicity drug evaluation",
+ "field": "Pharmacology, Toxicology and Pharmaceutics",
+ "rank": 2,
+ "topic_name": "Plant-based Medicinal Research",
+ "total_score": 39.369682,
+ "lexical_score": 23.56699,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.18642,
+ "matched_keywords": [
+ {
+ "keyword": "Cardiotoxicity",
+ "score": 0.92745686
+ }
+ ]
+ },
+ {
+ "query": "cardiotoxicity drug evaluation",
+ "field": "Pharmacology, Toxicology and Pharmaceutics",
+ "rank": 3,
+ "topic_name": "Takotsubo Cardiomyopathy and Associated Phenomena",
+ "total_score": 36.053112,
+ "lexical_score": 20.169243599999998,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.610306,
+ "matched_keywords": [
+ {
+ "keyword": "Catecholamine Cardiotoxicity",
+ "score": 0.90441227
+ }
+ ]
+ },
+ {
+ "query": "nanoparticle drug carriers",
+ "field": "Pharmacology, Toxicology and Pharmaceutics",
+ "rank": 1,
+ "topic_name": "Nanoparticle-Based Drug Delivery",
+ "total_score": 84.067505,
+ "lexical_score": 61.12897,
+ "title_vector_score": 28.166248,
+ "description_vector_score": 13.102512,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Nanoparticles",
+ "score": 0.9052992
+ },
+ {
+ "keyword": "Polymeric Nanoparticles",
+ "score": 0.8947978
+ }
+ ]
+ },
+ {
+ "query": "nanoparticle drug carriers",
+ "field": "Pharmacology, Toxicology and Pharmaceutics",
+ "rank": 2,
+ "topic_name": "Pharmacology and Nanomedicine Research",
+ "total_score": 45.260128,
+ "lexical_score": 29.3256307,
+ "title_vector_score": 27.11272,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Nanoparticle Synthesis",
+ "score": 0.88705254
+ }
+ ]
+ },
+ {
+ "query": "nanoparticle drug carriers",
+ "field": "Pharmacology, Toxicology and Pharmaceutics",
+ "rank": 3,
+ "topic_name": "High-Voltage Power Transmission Systems",
+ "total_score": 33.337746,
+ "lexical_score": 15.3977806,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.97045,
+ "matched_keywords": [
+ {
+ "keyword": "Nanoparticle Applications",
+ "score": 0.918818
+ }
+ ]
+ },
+ {
+ "query": "pharmacogenomics personalized medicine",
+ "field": "Pharmacology, Toxicology and Pharmaceutics",
+ "rank": 1,
+ "topic_name": "Pharmacogenetics and Drug Metabolism",
+ "total_score": 45.51947,
+ "lexical_score": 33.6656205,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.301292,
+ "matched_keywords": [
+ {
+ "keyword": "Personalized Medicine",
+ "score": 0.9035709
+ },
+ {
+ "keyword": "Pharmacogenetics",
+ "score": 0.8920517
+ }
+ ]
+ },
+ {
+ "query": "pharmacogenomics personalized medicine",
+ "field": "Pharmacology, Toxicology and Pharmaceutics",
+ "rank": 2,
+ "topic_name": "Technology and Human Factors in Education and Health",
+ "total_score": 43.496803,
+ "lexical_score": 33.4319162,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.5936,
+ "matched_keywords": [
+ {
+ "keyword": "Personalized Medicine",
+ "score": 0.903744
+ }
+ ]
+ },
+ {
+ "query": "pharmacogenomics personalized medicine",
+ "field": "Pharmacology, Toxicology and Pharmaceutics",
+ "rank": 3,
+ "topic_name": "Acute Lymphoblastic Leukemia research",
+ "total_score": 37.768974,
+ "lexical_score": 23.523758,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.241896,
+ "matched_keywords": [
+ {
+ "keyword": "Pharmacogenomics",
+ "score": 0.88967586
+ }
+ ]
+ },
+ {
+ "query": "drug metabolism enzymes",
+ "field": "Pharmacology, Toxicology and Pharmaceutics",
+ "rank": 1,
+ "topic_name": "Pharmacogenetics and Drug Metabolism",
+ "total_score": 84.87016,
+ "lexical_score": 71.25420869999999,
+ "title_vector_score": 27.342518,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.373657,
+ "matched_keywords": [
+ {
+ "keyword": "Drug Metabolism",
+ "score": 0.9349463
+ },
+ {
+ "keyword": "Enzyme Activities",
+ "score": 0.9071684
+ }
+ ]
+ },
+ {
+ "query": "drug metabolism enzymes",
+ "field": "Pharmacology, Toxicology and Pharmaceutics",
+ "rank": 2,
+ "topic_name": "Amino Acid Enzymes and Metabolism",
+ "total_score": 65.426506,
+ "lexical_score": 42.3787917,
+ "title_vector_score": 27.365656,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "drug metabolism enzymes",
+ "field": "Pharmacology, Toxicology and Pharmaceutics",
+ "rank": 3,
+ "topic_name": "Glutathione Transferases and Polymorphisms",
+ "total_score": 51.833485,
+ "lexical_score": 42.000048199999995,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.373657,
+ "matched_keywords": [
+ {
+ "keyword": "Drug Metabolism",
+ "score": 0.9349463
+ },
+ {
+ "keyword": "Enzyme Structure",
+ "score": 0.8572738
+ }
+ ]
+ },
+ {
+ "query": "adverse drug reactions",
+ "field": "Pharmacology, Toxicology and Pharmaceutics",
+ "rank": 1,
+ "topic_name": "Pharmacovigilance and Adverse Drug Reactions",
+ "total_score": 106.27659,
+ "lexical_score": 98.45590290000001,
+ "title_vector_score": 27.967373,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.769533,
+ "matched_keywords": [
+ {
+ "keyword": "Adverse Drug Reactions",
+ "score": 0.9907813
+ }
+ ]
+ },
+ {
+ "query": "adverse drug reactions",
+ "field": "Pharmacology, Toxicology and Pharmaceutics",
+ "rank": 2,
+ "topic_name": "Drug-Induced Adverse Reactions",
+ "total_score": 88.18956,
+ "lexical_score": 90.95221550000001,
+ "title_vector_score": 29.548065,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Drug Hypersensitivity",
+ "score": 0.86214423
+ },
+ {
+ "keyword": "Immediate Allergic Reactions",
+ "score": 0.8442328
+ }
+ ]
+ },
+ {
+ "query": "adverse drug reactions",
+ "field": "Pharmacology, Toxicology and Pharmaceutics",
+ "rank": 3,
+ "topic_name": "Pharmaceutical studies and practices",
+ "total_score": 54.735252,
+ "lexical_score": 46.0547061,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.769533,
+ "matched_keywords": [
+ {
+ "keyword": "Adverse Drug Reactions",
+ "score": 0.9907813
+ }
+ ]
+ },
+ {
+ "query": "controlled release tablets",
+ "field": "Pharmacology, Toxicology and Pharmaceutics",
+ "rank": 1,
+ "topic_name": "Polymer-Based Agricultural Enhancements",
+ "total_score": 52.329216,
+ "lexical_score": 45.8066695,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.034615,
+ "matched_keywords": [
+ {
+ "keyword": "Controlled Release",
+ "score": 0.8813846
+ }
+ ]
+ },
+ {
+ "query": "controlled release tablets",
+ "field": "Pharmacology, Toxicology and Pharmaceutics",
+ "rank": 2,
+ "topic_name": "Clay minerals and soil interactions",
+ "total_score": 35.217354,
+ "lexical_score": 20.3165958,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 21.914976,
+ "matched_keywords": [
+ {
+ "keyword": "Release Control",
+ "score": 0.8765991
+ }
+ ]
+ },
+ {
+ "query": "controlled release tablets",
+ "field": "Pharmacology, Toxicology and Pharmaceutics",
+ "rank": 3,
+ "topic_name": "Effects of Vibration on Health",
+ "total_score": 13.222769,
+ "lexical_score": 19.92235,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "heavy metal toxicology",
+ "field": "Pharmacology, Toxicology and Pharmaceutics",
+ "rank": 1,
+ "topic_name": "Heavy Metal Exposure and Toxicity",
+ "total_score": 102.40921,
+ "lexical_score": 63.5075933,
+ "title_vector_score": 28.686762,
+ "description_vector_score": 12.628735,
+ "keywords_vector_score": 24.134237,
+ "matched_keywords": [
+ {
+ "keyword": "Metal Toxicity",
+ "score": 0.96536946
+ },
+ {
+ "keyword": "Heavy Metal Poisoning",
+ "score": 0.95530057
+ }
+ ]
+ },
+ {
+ "query": "heavy metal toxicology",
+ "field": "Pharmacology, Toxicology and Pharmaceutics",
+ "rank": 2,
+ "topic_name": "Heavy Metal Pollution Remediation",
+ "total_score": 67.012566,
+ "lexical_score": 74.594269,
+ "title_vector_score": 26.531202,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Heavy Metals",
+ "score": 0.9203255
+ },
+ {
+ "keyword": "Toxicology",
+ "score": 0.9071398
+ }
+ ]
+ },
+ {
+ "query": "heavy metal toxicology",
+ "field": "Pharmacology, Toxicology and Pharmaceutics",
+ "rank": 3,
+ "topic_name": "Heavy metals in environment",
+ "total_score": 62.2158,
+ "lexical_score": 50.02489,
+ "title_vector_score": 27.791904,
+ "description_vector_score": 12.70929,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Heavy Metals",
+ "score": 0.92029977
+ },
+ {
+ "keyword": "Toxicity",
+ "score": 0.8917775
+ }
+ ]
+ },
+ {
+ "query": "target identification drug",
+ "field": "Pharmacology, Toxicology and Pharmaceutics",
+ "rank": 1,
+ "topic_name": "Computational Drug Discovery Methods",
+ "total_score": 80.70354,
+ "lexical_score": 66.0631006,
+ "title_vector_score": 25.375858,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.524885,
+ "matched_keywords": [
+ {
+ "keyword": "Drug Target Identification",
+ "score": 0.9809954
+ },
+ {
+ "keyword": "Pharmacokinetics",
+ "score": 0.8218951
+ }
+ ]
+ },
+ {
+ "query": "target identification drug",
+ "field": "Pharmacology, Toxicology and Pharmaceutics",
+ "rank": 2,
+ "topic_name": "Natural Compounds in Disease Treatment",
+ "total_score": 31.16804,
+ "lexical_score": 10.9391826,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.33266,
+ "matched_keywords": [
+ {
+ "keyword": "Drug Targeting",
+ "score": 0.93330646
+ }
+ ]
+ },
+ {
+ "query": "target identification drug",
+ "field": "Pharmacology, Toxicology and Pharmaceutics",
+ "rank": 3,
+ "topic_name": "Forensic Fingerprint Detection Methods",
+ "total_score": 30.24992,
+ "lexical_score": 8.005168,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.244751,
+ "matched_keywords": [
+ {
+ "keyword": "Drug Detection",
+ "score": 0.88979006
+ }
+ ]
+ },
+ {
+ "query": "natural product pharmacology",
+ "field": "Pharmacology, Toxicology and Pharmaceutics",
+ "rank": 1,
+ "topic_name": "Natural Compound Pharmacology Studies",
+ "total_score": 65.89196,
+ "lexical_score": 47.2058995,
+ "title_vector_score": 28.902426,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "natural product pharmacology",
+ "field": "Pharmacology, Toxicology and Pharmaceutics",
+ "rank": 2,
+ "topic_name": "Natural Products and Applications",
+ "total_score": 44.968666,
+ "lexical_score": 17.273071,
+ "title_vector_score": 27.695597,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "phytomedicine",
+ "score": 0.830163
+ }
+ ]
+ },
+ {
+ "query": "natural product pharmacology",
+ "field": "Pharmacology, Toxicology and Pharmaceutics",
+ "rank": 3,
+ "topic_name": "Biological Stains and Phytochemicals",
+ "total_score": 43.947857,
+ "lexical_score": 12.4651245,
+ "title_vector_score": 0.0,
+ "description_vector_score": 12.217762,
+ "keywords_vector_score": 23.237139,
+ "matched_keywords": [
+ {
+ "keyword": "Medicinal Natural Products",
+ "score": 0.92948556
+ },
+ {
+ "keyword": "Pharmacological Activities",
+ "score": 0.90503216
+ }
+ ]
+ },
+ {
+ "query": "dosage form optimization",
+ "field": "Pharmacology, Toxicology and Pharmaceutics",
+ "rank": 1,
+ "topic_name": "Stochastic Gradient Optimization Techniques",
+ "total_score": 34.848892,
+ "lexical_score": 29.912287,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 20.730824,
+ "matched_keywords": [
+ {
+ "keyword": "Large-Scale Optimization",
+ "score": 0.82923293
+ }
+ ]
+ },
+ {
+ "query": "dosage form optimization",
+ "field": "Pharmacology, Toxicology and Pharmaceutics",
+ "rank": 2,
+ "topic_name": "Assembly Line Balancing Optimization",
+ "total_score": 34.831516,
+ "lexical_score": 30.602638,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 20.713448,
+ "matched_keywords": [
+ {
+ "keyword": "Optimization Methods",
+ "score": 0.82853794
+ }
+ ]
+ },
+ {
+ "query": "dosage form optimization",
+ "field": "Pharmacology, Toxicology and Pharmaceutics",
+ "rank": 3,
+ "topic_name": "Process Optimization and Integration",
+ "total_score": 34.8238,
+ "lexical_score": 27.1770147,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 20.70573,
+ "matched_keywords": [
+ {
+ "keyword": "Optimization",
+ "score": 0.8282292
+ }
+ ]
+ },
+ {
+ "query": "endocrine disruptors toxicology",
+ "field": "Pharmacology, Toxicology and Pharmaceutics",
+ "rank": 1,
+ "topic_name": "Effects and risks of endocrine disrupting chemicals",
+ "total_score": 84.993935,
+ "lexical_score": 40.471168600000006,
+ "title_vector_score": 28.763817,
+ "description_vector_score": 12.714053,
+ "keywords_vector_score": 23.944723,
+ "matched_keywords": [
+ {
+ "keyword": "Endocrine-Disrupting Chemicals",
+ "score": 0.95778894
+ }
+ ]
+ },
+ {
+ "query": "endocrine disruptors toxicology",
+ "field": "Pharmacology, Toxicology and Pharmaceutics",
+ "rank": 2,
+ "topic_name": "Reproductive biology and impacts on aquatic species",
+ "total_score": 38.385246,
+ "lexical_score": 21.717347699999998,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.567814,
+ "matched_keywords": [
+ {
+ "keyword": "Endocrine Disruption",
+ "score": 0.94271255
+ }
+ ]
+ },
+ {
+ "query": "endocrine disruptors toxicology",
+ "field": "Pharmacology, Toxicology and Pharmaceutics",
+ "rank": 3,
+ "topic_name": "Urological Disorders and Treatments",
+ "total_score": 36.844658,
+ "lexical_score": 19.967601300000002,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.565971,
+ "matched_keywords": [
+ {
+ "keyword": "Endocrine Disruption",
+ "score": 0.9426389
+ }
+ ]
+ },
+ {
+ "query": "patient care management",
+ "field": "Nursing",
+ "rank": 1,
+ "topic_name": "Health Services Management and Policy",
+ "total_score": 49.070305,
+ "lexical_score": 44.918022199999996,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.120373,
+ "matched_keywords": [
+ {
+ "keyword": "patient care",
+ "score": 0.9648149
+ },
+ {
+ "keyword": "hospital management",
+ "score": 0.9044399
+ }
+ ]
+ },
+ {
+ "query": "patient care management",
+ "field": "Nursing",
+ "rank": 2,
+ "topic_name": "Interprofessional Education and Collaboration",
+ "total_score": 44.588417,
+ "lexical_score": 30.4305578,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.11517,
+ "matched_keywords": [
+ {
+ "keyword": "Patient Care",
+ "score": 0.96460676
+ },
+ {
+ "keyword": "Integrated Care",
+ "score": 0.8487072
+ }
+ ]
+ },
+ {
+ "query": "patient care management",
+ "field": "Nursing",
+ "rank": 3,
+ "topic_name": "Health, Nursing, Elderly Care",
+ "total_score": 42.628716,
+ "lexical_score": 31.7401197,
+ "title_vector_score": 25.52104,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Primary Care",
+ "score": 0.84699583
+ },
+ {
+ "keyword": "Healthcare Access",
+ "score": 0.8180318
+ }
+ ]
+ },
+ {
+ "query": "nursing education curriculum",
+ "field": "Nursing",
+ "rank": 1,
+ "topic_name": "Nursing Education, Practice, and Leadership",
+ "total_score": 78.50551,
+ "lexical_score": 51.795549099999995,
+ "title_vector_score": 27.608091,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.42317,
+ "matched_keywords": [
+ {
+ "keyword": "Nursing Education",
+ "score": 0.9769268
+ },
+ {
+ "keyword": "Nursing Advocacy",
+ "score": 0.8538389
+ }
+ ]
+ },
+ {
+ "query": "nursing education curriculum",
+ "field": "Nursing",
+ "rank": 2,
+ "topic_name": "Nursing education and management",
+ "total_score": 57.133488,
+ "lexical_score": 45.0824816,
+ "title_vector_score": 28.136501,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Nursing Staffing",
+ "score": 0.85951996
+ }
+ ]
+ },
+ {
+ "query": "nursing education curriculum",
+ "field": "Nursing",
+ "rank": 3,
+ "topic_name": "School Health and Nursing Education",
+ "total_score": 54.22397,
+ "lexical_score": 46.332487,
+ "title_vector_score": 27.74972,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "School Nursing Practice",
+ "score": 0.9301863
+ },
+ {
+ "keyword": "Health Education",
+ "score": 0.8327682
+ }
+ ]
+ },
+ {
+ "query": "clinical nursing practice",
+ "field": "Nursing",
+ "rank": 1,
+ "topic_name": "Nursing Roles and Practices",
+ "total_score": 87.550545,
+ "lexical_score": 47.23605700000001,
+ "title_vector_score": 28.322603,
+ "description_vector_score": 12.8433895,
+ "keywords_vector_score": 24.0919,
+ "matched_keywords": [
+ {
+ "keyword": "Nurse Practitioners",
+ "score": 0.963676
+ },
+ {
+ "keyword": "Advanced Practice Nursing",
+ "score": 0.9611714
+ }
+ ]
+ },
+ {
+ "query": "clinical nursing practice",
+ "field": "Nursing",
+ "rank": 2,
+ "topic_name": "Nursing Diagnosis and Documentation",
+ "total_score": 58.180466,
+ "lexical_score": 65.8568632,
+ "title_vector_score": 26.950342,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Nursing Process",
+ "score": 0.930495
+ },
+ {
+ "keyword": "Nursing Documentation",
+ "score": 0.8933873
+ }
+ ]
+ },
+ {
+ "query": "clinical nursing practice",
+ "field": "Nursing",
+ "rank": 3,
+ "topic_name": "Nursing care and research",
+ "total_score": 47.940002,
+ "lexical_score": 34.704205,
+ "title_vector_score": 28.223541,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Nursing Interventions",
+ "score": 0.93658805
+ }
+ ]
+ },
+ {
+ "query": "geriatric nursing care",
+ "field": "Nursing",
+ "rank": 1,
+ "topic_name": "Geriatric Care and Nursing Homes",
+ "total_score": 85.28464,
+ "lexical_score": 89.4656536,
+ "title_vector_score": 28.687449,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Nursing Home",
+ "score": 0.9087312
+ },
+ {
+ "keyword": "Caregiver Staffing",
+ "score": 0.8594003
+ }
+ ]
+ },
+ {
+ "query": "geriatric nursing care",
+ "field": "Nursing",
+ "rank": 2,
+ "topic_name": "Nursing care and research",
+ "total_score": 74.871796,
+ "lexical_score": 63.96259860000001,
+ "title_vector_score": 25.711348,
+ "description_vector_score": 12.336312,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Nursing Interventions",
+ "score": 0.8346987
+ },
+ {
+ "keyword": "Family Caregivers",
+ "score": 0.82412696
+ }
+ ]
+ },
+ {
+ "query": "geriatric nursing care",
+ "field": "Nursing",
+ "rank": 3,
+ "topic_name": "Health, Nursing, Elderly Care",
+ "total_score": 64.2405,
+ "lexical_score": 51.4565797,
+ "title_vector_score": 27.416367,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "pediatric nursing interventions",
+ "field": "Nursing",
+ "rank": 1,
+ "topic_name": "Nursing care and research",
+ "total_score": 68.367096,
+ "lexical_score": 48.031397,
+ "title_vector_score": 25.656002,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.994637,
+ "matched_keywords": [
+ {
+ "keyword": "Nursing Interventions",
+ "score": 0.9197855
+ }
+ ]
+ },
+ {
+ "query": "pediatric nursing interventions",
+ "field": "Nursing",
+ "rank": 2,
+ "topic_name": "Nursing Roles and Practices",
+ "total_score": 45.772934,
+ "lexical_score": 29.151988000000003,
+ "title_vector_score": 26.056473,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Advanced Practice Nursing",
+ "score": 0.8503361
+ },
+ {
+ "keyword": "Nurse Practitioners",
+ "score": 0.8356898
+ }
+ ]
+ },
+ {
+ "query": "pediatric nursing interventions",
+ "field": "Nursing",
+ "rank": 3,
+ "topic_name": "Family and Patient Care in Intensive Care Units",
+ "total_score": 32.583946,
+ "lexical_score": 18.9737346,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.764456,
+ "matched_keywords": [
+ {
+ "keyword": "Nursing Intervention",
+ "score": 0.91057825
+ }
+ ]
+ },
+ {
+ "query": "critical care nursing",
+ "field": "Nursing",
+ "rank": 1,
+ "topic_name": "Nursing care and research",
+ "total_score": 63.367947,
+ "lexical_score": 63.9625986,
+ "title_vector_score": 26.543812,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Nursing Interventions",
+ "score": 0.905066
+ }
+ ]
+ },
+ {
+ "query": "critical care nursing",
+ "field": "Nursing",
+ "rank": 2,
+ "topic_name": "Nursing Diagnosis and Documentation",
+ "total_score": 45.87729,
+ "lexical_score": 44.893301,
+ "title_vector_score": 26.16083,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Nursing Process",
+ "score": 0.88446355
+ },
+ {
+ "keyword": "Nursing Diagnoses",
+ "score": 0.8758049
+ }
+ ]
+ },
+ {
+ "query": "critical care nursing",
+ "field": "Nursing",
+ "rank": 3,
+ "topic_name": "Nursing Roles and Practices",
+ "total_score": 45.80214,
+ "lexical_score": 43.7690545,
+ "title_vector_score": 26.085678,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Nurse Practitioners",
+ "score": 0.8955314
+ },
+ {
+ "keyword": "Advanced Practice Nursing",
+ "score": 0.88146734
+ }
+ ]
+ },
+ {
+ "query": "palliative nursing care",
+ "field": "Nursing",
+ "rank": 1,
+ "topic_name": "Palliative and Oncologic Care",
+ "total_score": 79.801735,
+ "lexical_score": 91.1076409,
+ "title_vector_score": 26.64756,
+ "description_vector_score": 12.485193,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Palliative Care",
+ "score": 0.96255565
+ }
+ ]
+ },
+ {
+ "query": "palliative nursing care",
+ "field": "Nursing",
+ "rank": 2,
+ "topic_name": "Palliative Care and End-of-Life Issues",
+ "total_score": 72.34864,
+ "lexical_score": 69.9007324,
+ "title_vector_score": 27.906204,
+ "description_vector_score": 12.814861,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Palliative Care",
+ "score": 0.9625242
+ }
+ ]
+ },
+ {
+ "query": "palliative nursing care",
+ "field": "Nursing",
+ "rank": 3,
+ "topic_name": "Geriatric Care and Nursing Homes",
+ "total_score": 59.219612,
+ "lexical_score": 66.4888946,
+ "title_vector_score": 25.599182,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Nursing Home",
+ "score": 0.8675933
+ },
+ {
+ "keyword": "Long-Term Care",
+ "score": 0.8160875
+ }
+ ]
+ },
+ {
+ "query": "nursing leadership styles",
+ "field": "Nursing",
+ "rank": 1,
+ "topic_name": "Nursing Education, Practice, and Leadership",
+ "total_score": 85.66883,
+ "lexical_score": 63.8392714,
+ "title_vector_score": 28.11362,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.078238,
+ "matched_keywords": [
+ {
+ "keyword": "Nurse Leadership",
+ "score": 0.9631295
+ },
+ {
+ "keyword": "Nursing Advocacy",
+ "score": 0.8535876
+ }
+ ]
+ },
+ {
+ "query": "nursing leadership styles",
+ "field": "Nursing",
+ "rank": 2,
+ "topic_name": "Nursing Roles and Practices",
+ "total_score": 46.475407,
+ "lexical_score": 29.151988000000003,
+ "title_vector_score": 26.758947,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Nurse Practitioners",
+ "score": 0.8461759
+ },
+ {
+ "keyword": "Advanced Practice Nursing",
+ "score": 0.8269267
+ }
+ ]
+ },
+ {
+ "query": "nursing leadership styles",
+ "field": "Nursing",
+ "rank": 3,
+ "topic_name": "Nursing education and management",
+ "total_score": 45.5773,
+ "lexical_score": 35.801953600000004,
+ "title_vector_score": 25.860844,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Nursing Staffing",
+ "score": 0.86197853
+ }
+ ]
+ },
+ {
+ "query": "community health nursing",
+ "field": "Nursing",
+ "rank": 1,
+ "topic_name": "Nursing Roles and Practices",
+ "total_score": 59.272312,
+ "lexical_score": 37.3991056,
+ "title_vector_score": 27.028162,
+ "description_vector_score": 12.52769,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Nurse Practitioners",
+ "score": 0.8924341
+ },
+ {
+ "keyword": "Advanced Practice Nursing",
+ "score": 0.8572309
+ }
+ ]
+ },
+ {
+ "query": "community health nursing",
+ "field": "Nursing",
+ "rank": 2,
+ "topic_name": "Health, Nursing, Elderly Care",
+ "total_score": 56.715416,
+ "lexical_score": 50.7213027,
+ "title_vector_score": 26.494175,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Community-Based Care",
+ "score": 0.8725364
+ },
+ {
+ "keyword": "Public Health",
+ "score": 0.8179524
+ }
+ ]
+ },
+ {
+ "query": "community health nursing",
+ "field": "Nursing",
+ "rank": 3,
+ "topic_name": "Nursing care and research",
+ "total_score": 46.674183,
+ "lexical_score": 41.383034699999996,
+ "title_vector_score": 26.957724,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Nursing Interventions",
+ "score": 0.8768723
+ }
+ ]
+ },
+ {
+ "query": "evidence based nursing",
+ "field": "Nursing",
+ "rank": 1,
+ "topic_name": "Nursing Diagnosis and Documentation",
+ "total_score": 79.72495,
+ "lexical_score": 44.893301,
+ "title_vector_score": 26.036776,
+ "description_vector_score": 12.324339,
+ "keywords_vector_score": 21.64738,
+ "matched_keywords": [
+ {
+ "keyword": "Nursing Documentation",
+ "score": 0.8658953
+ },
+ {
+ "keyword": "Nursing Process",
+ "score": 0.8430469
+ }
+ ]
+ },
+ {
+ "query": "evidence based nursing",
+ "field": "Nursing",
+ "rank": 2,
+ "topic_name": "Health Sciences Research and Education",
+ "total_score": 59.119366,
+ "lexical_score": 36.3844062,
+ "title_vector_score": 0.0,
+ "description_vector_score": 12.595893,
+ "keywords_vector_score": 21.603012,
+ "matched_keywords": [
+ {
+ "keyword": "Evidence-Based Practice",
+ "score": 0.8641205
+ },
+ {
+ "keyword": "Nursing Education",
+ "score": 0.8219204
+ }
+ ]
+ },
+ {
+ "query": "evidence based nursing",
+ "field": "Nursing",
+ "rank": 3,
+ "topic_name": "Nursing care and research",
+ "total_score": 46.21228,
+ "lexical_score": 34.704205,
+ "title_vector_score": 26.49582,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Nursing Interventions",
+ "score": 0.84255624
+ }
+ ]
+ },
+ {
+ "query": "mental health nursing",
+ "field": "Nursing",
+ "rank": 1,
+ "topic_name": "Psychiatric care and mental health services",
+ "total_score": 73.18027,
+ "lexical_score": 41.125865499999996,
+ "title_vector_score": 26.809244,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.89303,
+ "matched_keywords": [
+ {
+ "keyword": "Mental Health Care",
+ "score": 0.9157212
+ },
+ {
+ "keyword": "Psychiatric Admission",
+ "score": 0.82172203
+ }
+ ]
+ },
+ {
+ "query": "mental health nursing",
+ "field": "Nursing",
+ "rank": 2,
+ "topic_name": "Mental Health and Psychiatry",
+ "total_score": 54.52446,
+ "lexical_score": 35.939574500000006,
+ "title_vector_score": 26.572016,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Psychiatric Disorders",
+ "score": 0.8279898
+ }
+ ]
+ },
+ {
+ "query": "mental health nursing",
+ "field": "Nursing",
+ "rank": 3,
+ "topic_name": "Mental Health and Patient Involvement",
+ "total_score": 51.55877,
+ "lexical_score": 43.4089887,
+ "title_vector_score": 26.03819,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Mental Health Services",
+ "score": 0.8975284
+ }
+ ]
+ },
+ {
+ "query": "maternal newborn nursing",
+ "field": "Nursing",
+ "rank": 1,
+ "topic_name": "Maternal and Neonatal Healthcare",
+ "total_score": 70.58712,
+ "lexical_score": 38.1473096,
+ "title_vector_score": 27.552366,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.475464,
+ "matched_keywords": [
+ {
+ "keyword": "Prenatal Care",
+ "score": 0.8990185
+ },
+ {
+ "keyword": "Maternal Health",
+ "score": 0.87305355
+ }
+ ]
+ },
+ {
+ "query": "maternal newborn nursing",
+ "field": "Nursing",
+ "rank": 2,
+ "topic_name": "Maternal and fetal healthcare",
+ "total_score": 47.69558,
+ "lexical_score": 37.285181,
+ "title_vector_score": 27.136288,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Prenatal Diagnosis",
+ "score": 0.84135413
+ }
+ ]
+ },
+ {
+ "query": "maternal newborn nursing",
+ "field": "Nursing",
+ "rank": 3,
+ "topic_name": "Breastfeeding Practices and Influences",
+ "total_score": 32.924385,
+ "lexical_score": 16.907581999999998,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.463602,
+ "matched_keywords": [
+ {
+ "keyword": "Breastfeeding",
+ "score": 0.8985441
+ },
+ {
+ "keyword": "Breastfeeding Support",
+ "score": 0.88025546
+ }
+ ]
+ },
+ {
+ "query": "wound care management",
+ "field": "Nursing",
+ "rank": 1,
+ "topic_name": "Surgical site infection prevention",
+ "total_score": 58.544464,
+ "lexical_score": 17.5550761,
+ "title_vector_score": 24.439802,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.323895,
+ "matched_keywords": [
+ {
+ "keyword": "Wound Therapy",
+ "score": 0.93295574
+ }
+ ]
+ },
+ {
+ "query": "wound care management",
+ "field": "Nursing",
+ "rank": 2,
+ "topic_name": "Wound Healing and Treatments",
+ "total_score": 52.97574,
+ "lexical_score": 46.757960499999996,
+ "title_vector_score": 27.809515,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Wound Healing",
+ "score": 0.9182501
+ },
+ {
+ "keyword": "Chronic Wounds",
+ "score": 0.87435746
+ }
+ ]
+ },
+ {
+ "query": "wound care management",
+ "field": "Nursing",
+ "rank": 3,
+ "topic_name": "Trauma Management and Diagnosis",
+ "total_score": 35.071045,
+ "lexical_score": 16.794840999999998,
+ "title_vector_score": 24.866602,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "nurse practitioner roles",
+ "field": "Nursing",
+ "rank": 1,
+ "topic_name": "Nursing Roles and Practices",
+ "total_score": 88.460365,
+ "lexical_score": 44.279913,
+ "title_vector_score": 28.595074,
+ "description_vector_score": 12.880826,
+ "keywords_vector_score": 23.423153,
+ "matched_keywords": [
+ {
+ "keyword": "Nurse Practitioners",
+ "score": 0.9369261
+ },
+ {
+ "keyword": "Advanced Practice Nursing",
+ "score": 0.90006304
+ }
+ ]
+ },
+ {
+ "query": "nurse practitioner roles",
+ "field": "Nursing",
+ "rank": 2,
+ "topic_name": "Nursing Education, Practice, and Leadership",
+ "total_score": 52.332893,
+ "lexical_score": 12.664988,
+ "title_vector_score": 27.018557,
+ "description_vector_score": 12.649351,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Nurse Leadership",
+ "score": 0.89451385
+ },
+ {
+ "keyword": "Nursing Education",
+ "score": 0.8823736
+ }
+ ]
+ },
+ {
+ "query": "nurse practitioner roles",
+ "field": "Nursing",
+ "rank": 3,
+ "topic_name": "Nursing education and management",
+ "total_score": 39.53522,
+ "lexical_score": 20.212674,
+ "title_vector_score": 26.601612,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Nursing Staffing",
+ "score": 0.91286635
+ },
+ {
+ "keyword": "Nurse Turnover",
+ "score": 0.8871064
+ }
+ ]
+ },
+ {
+ "query": "patient safety protocols",
+ "field": "Nursing",
+ "rank": 1,
+ "topic_name": "Patient Safety and Medication Errors",
+ "total_score": 71.96385,
+ "lexical_score": 62.0785481,
+ "title_vector_score": 26.840042,
+ "description_vector_score": 12.879013,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Patient Safety Culture",
+ "score": 0.91548705
+ },
+ {
+ "keyword": "Surgical Safety Checklist",
+ "score": 0.89863753
+ }
+ ]
+ },
+ {
+ "query": "patient safety protocols",
+ "field": "Nursing",
+ "rank": 2,
+ "topic_name": "Quality and Safety in Healthcare",
+ "total_score": 40.836197,
+ "lexical_score": 18.190512599999998,
+ "title_vector_score": 26.59253,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Healthcare",
+ "score": 0.8141353
+ }
+ ]
+ },
+ {
+ "query": "patient safety protocols",
+ "field": "Nursing",
+ "rank": 3,
+ "topic_name": "Pharmaceutical Quality and Counterfeiting",
+ "total_score": 40.33233,
+ "lexical_score": 23.220556600000002,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.231178,
+ "matched_keywords": [
+ {
+ "keyword": "Patient Safety",
+ "score": 0.9692471
+ },
+ {
+ "keyword": "Public Health Risks",
+ "score": 0.81074095
+ }
+ ]
+ },
+ {
+ "query": "nursing burnout prevention",
+ "field": "Nursing",
+ "rank": 1,
+ "topic_name": "Stress and Burnout Research",
+ "total_score": 70.03635,
+ "lexical_score": 40.043901,
+ "title_vector_score": 26.210846,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.110891,
+ "matched_keywords": [
+ {
+ "keyword": "Burnout",
+ "score": 0.88443565
+ }
+ ]
+ },
+ {
+ "query": "nursing burnout prevention",
+ "field": "Nursing",
+ "rank": 2,
+ "topic_name": "Healthcare professionals’ stress and burnout",
+ "total_score": 58.21141,
+ "lexical_score": 41.855937,
+ "title_vector_score": 25.82526,
+ "description_vector_score": 12.560717,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Physician Burnout",
+ "score": 0.8708992
+ }
+ ]
+ },
+ {
+ "query": "nursing burnout prevention",
+ "field": "Nursing",
+ "rank": 3,
+ "topic_name": "Occupational Health and Burnout",
+ "total_score": 48.500946,
+ "lexical_score": 50.279934,
+ "title_vector_score": 26.195019,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Burnout Syndrome",
+ "score": 0.86216617
+ }
+ ]
+ },
+ {
+ "query": "oncology nursing practices",
+ "field": "Nursing",
+ "rank": 1,
+ "topic_name": "Nursing Roles and Practices",
+ "total_score": 59.422375,
+ "lexical_score": 43.3970165,
+ "title_vector_score": 25.460888,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Advanced Practice Nursing",
+ "score": 0.84252477
+ },
+ {
+ "keyword": "Nurse Practitioners",
+ "score": 0.8394685
+ }
+ ]
+ },
+ {
+ "query": "oncology nursing practices",
+ "field": "Nursing",
+ "rank": 2,
+ "topic_name": "Nursing care and research",
+ "total_score": 44.963272,
+ "lexical_score": 34.704205,
+ "title_vector_score": 25.24681,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Nursing Interventions",
+ "score": 0.83814263
+ }
+ ]
+ },
+ {
+ "query": "oncology nursing practices",
+ "field": "Nursing",
+ "rank": 3,
+ "topic_name": "Methemoglobinemia and Tumor Lysis Syndrome",
+ "total_score": 34.616024,
+ "lexical_score": 13.5065565,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 21.109468,
+ "matched_keywords": [
+ {
+ "keyword": "Oncologic Emergencies",
+ "score": 0.8443787
+ },
+ {
+ "keyword": "Pediatric Oncology",
+ "score": 0.8433912
+ }
+ ]
+ },
+ {
+ "query": "chronic disease management",
+ "field": "Nursing",
+ "rank": 1,
+ "topic_name": "Chronic Disease Management Strategies",
+ "total_score": 74.552284,
+ "lexical_score": 58.5314781,
+ "title_vector_score": 29.478064,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Chronic Conditions",
+ "score": 0.8579633
+ }
+ ]
+ },
+ {
+ "query": "chronic disease management",
+ "field": "Nursing",
+ "rank": 2,
+ "topic_name": "Trade Secret Protection Methods",
+ "total_score": 44.784824,
+ "lexical_score": 22.1568156,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.84346,
+ "matched_keywords": [
+ {
+ "keyword": "Chronic Disease Management",
+ "score": 0.9937384
+ }
+ ]
+ },
+ {
+ "query": "chronic disease management",
+ "field": "Nursing",
+ "rank": 3,
+ "topic_name": "Healthcare, Law, Governance, and Management Studies",
+ "total_score": 43.140602,
+ "lexical_score": 35.396106599999996,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.84346,
+ "matched_keywords": [
+ {
+ "keyword": "Chronic Disease Management",
+ "score": 0.9937384
+ }
+ ]
+ },
+ {
+ "query": "telehealth nursing care",
+ "field": "Nursing",
+ "rank": 1,
+ "topic_name": "Telemedicine and Telehealth Implementation",
+ "total_score": 74.03244,
+ "lexical_score": 59.2653453,
+ "title_vector_score": 26.67622,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.189993,
+ "matched_keywords": [
+ {
+ "keyword": "Telehealth",
+ "score": 0.8875997
+ },
+ {
+ "keyword": "Telemedicine",
+ "score": 0.88559246
+ }
+ ]
+ },
+ {
+ "query": "telehealth nursing care",
+ "field": "Nursing",
+ "rank": 2,
+ "topic_name": "Nursing care and research",
+ "total_score": 62.47251,
+ "lexical_score": 63.96259860000001,
+ "title_vector_score": 25.648376,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Nursing Interventions",
+ "score": 0.8587272
+ }
+ ]
+ },
+ {
+ "query": "telehealth nursing care",
+ "field": "Nursing",
+ "rank": 3,
+ "topic_name": "Health, Nursing, Elderly Care",
+ "total_score": 62.446426,
+ "lexical_score": 51.4565797,
+ "title_vector_score": 25.622292,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "infection control nursing",
+ "field": "Nursing",
+ "rank": 1,
+ "topic_name": "Infection Control in Healthcare",
+ "total_score": 97.43201,
+ "lexical_score": 56.9724553,
+ "title_vector_score": 27.89483,
+ "description_vector_score": 12.518931,
+ "keywords_vector_score": 22.773844,
+ "matched_keywords": [
+ {
+ "keyword": "Infection Control",
+ "score": 0.91095376
+ },
+ {
+ "keyword": "Healthcare-Associated Infections",
+ "score": 0.8708358
+ }
+ ]
+ },
+ {
+ "query": "infection control nursing",
+ "field": "Nursing",
+ "rank": 2,
+ "topic_name": "Helminth infection and control",
+ "total_score": 59.426056,
+ "lexical_score": 34.2444,
+ "title_vector_score": 25.181658,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "infection control nursing",
+ "field": "Nursing",
+ "rank": 3,
+ "topic_name": "Healthcare Regulation",
+ "total_score": 48.77903,
+ "lexical_score": 39.1871306,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.775906,
+ "matched_keywords": [
+ {
+ "keyword": "Infection Control",
+ "score": 0.91103625
+ },
+ {
+ "keyword": "Nursing Care",
+ "score": 0.8359108
+ }
+ ]
+ },
+ {
+ "query": "process systems engineering",
+ "field": "Chemical Engineering",
+ "rank": 1,
+ "topic_name": "Control Systems in Engineering",
+ "total_score": 48.030716,
+ "lexical_score": 30.282418,
+ "title_vector_score": 25.19765,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "process systems engineering",
+ "field": "Chemical Engineering",
+ "rank": 2,
+ "topic_name": "Systems Engineering Methodologies and Applications",
+ "total_score": 48.005184,
+ "lexical_score": 46.7856744,
+ "title_vector_score": 27.158596,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Interdisciplinary System Engineering",
+ "score": 0.85657644
+ },
+ {
+ "keyword": "Model-Based Systems Engineering",
+ "score": 0.8462055
+ }
+ ]
+ },
+ {
+ "query": "process systems engineering",
+ "field": "Chemical Engineering",
+ "rank": 3,
+ "topic_name": "Process Optimization and Integration",
+ "total_score": 45.748665,
+ "lexical_score": 35.931411,
+ "title_vector_score": 25.189377,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "chemical reactor design",
+ "field": "Chemical Engineering",
+ "rank": 1,
+ "topic_name": "Nuclear reactor physics and engineering",
+ "total_score": 84.05945,
+ "lexical_score": 48.8294505,
+ "title_vector_score": 26.829342,
+ "description_vector_score": 12.383799,
+ "keywords_vector_score": 21.869547,
+ "matched_keywords": [
+ {
+ "keyword": "Nuclear Reactor",
+ "score": 0.87478185
+ },
+ {
+ "keyword": "Small Modular Reactors",
+ "score": 0.8475914
+ }
+ ]
+ },
+ {
+ "query": "chemical reactor design",
+ "field": "Chemical Engineering",
+ "rank": 2,
+ "topic_name": "Nuclear Engineering Thermal-Hydraulics",
+ "total_score": 25.82853,
+ "lexical_score": 0.0,
+ "title_vector_score": 25.82853,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "chemical reactor design",
+ "field": "Chemical Engineering",
+ "rank": 3,
+ "topic_name": "Nuclear Structure and Function",
+ "total_score": 24.81637,
+ "lexical_score": 0.0,
+ "title_vector_score": 24.81637,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Nuclear Mechanics",
+ "score": 0.8363228
+ }
+ ]
+ },
+ {
+ "query": "transport phenomena fluid",
+ "field": "Chemical Engineering",
+ "rank": 1,
+ "topic_name": "Particle Dynamics in Fluid Flows",
+ "total_score": 42.183304,
+ "lexical_score": 16.469131,
+ "title_vector_score": 25.714172,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Multiphase Flow",
+ "score": 0.8158784
+ }
+ ]
+ },
+ {
+ "query": "transport phenomena fluid",
+ "field": "Chemical Engineering",
+ "rank": 2,
+ "topic_name": "Fluid Dynamics and Turbulent Flows",
+ "total_score": 41.895264,
+ "lexical_score": 25.788974000000003,
+ "title_vector_score": 25.426132,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Fluid Mechanics",
+ "score": 0.8473766
+ }
+ ]
+ },
+ {
+ "query": "transport phenomena fluid",
+ "field": "Chemical Engineering",
+ "rank": 3,
+ "topic_name": "Heat and Mass Transfer in Porous Media",
+ "total_score": 32.13064,
+ "lexical_score": 17.1871047,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 21.82243,
+ "matched_keywords": [
+ {
+ "keyword": "Fluid Flow",
+ "score": 0.87289715
+ }
+ ]
+ },
+ {
+ "query": "separation processes distillation",
+ "field": "Chemical Engineering",
+ "rank": 1,
+ "topic_name": "Extraction and Separation Processes",
+ "total_score": 61.74258,
+ "lexical_score": 47.899849700000004,
+ "title_vector_score": 26.0452,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "separation processes distillation",
+ "field": "Chemical Engineering",
+ "rank": 2,
+ "topic_name": "Membrane Separation Technologies",
+ "total_score": 44.272835,
+ "lexical_score": 45.308879,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 21.548098,
+ "matched_keywords": [
+ {
+ "keyword": "Membrane Distillation",
+ "score": 0.86192393
+ }
+ ]
+ },
+ {
+ "query": "separation processes distillation",
+ "field": "Chemical Engineering",
+ "rank": 3,
+ "topic_name": "Process Optimization and Integration",
+ "total_score": 38.614803,
+ "lexical_score": 25.514604,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.500002,
+ "matched_keywords": [
+ {
+ "keyword": "Distillation",
+ "score": 0.94000006
+ }
+ ]
+ },
+ {
+ "query": "catalytic reaction engineering",
+ "field": "Chemical Engineering",
+ "rank": 1,
+ "topic_name": "Synthesis and Catalytic Reactions",
+ "total_score": 47.369858,
+ "lexical_score": 36.7463955,
+ "title_vector_score": 27.260162,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Catalytic",
+ "score": 0.9022107
+ }
+ ]
+ },
+ {
+ "query": "catalytic reaction engineering",
+ "field": "Chemical Engineering",
+ "rank": 2,
+ "topic_name": "Catalytic Processes in Materials Science",
+ "total_score": 45.90158,
+ "lexical_score": 24.763173700000003,
+ "title_vector_score": 27.54143,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Catalysis",
+ "score": 0.88156056
+ }
+ ]
+ },
+ {
+ "query": "catalytic reaction engineering",
+ "field": "Chemical Engineering",
+ "rank": 3,
+ "topic_name": "Cyclopropane Reaction Mechanisms",
+ "total_score": 38.252403,
+ "lexical_score": 31.246442300000002,
+ "title_vector_score": 0.0,
+ "description_vector_score": 12.209452,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Metal-Catalyzed Reactions",
+ "score": 0.8749299
+ }
+ ]
+ },
+ {
+ "query": "bioprocess engineering fermentation",
+ "field": "Chemical Engineering",
+ "rank": 1,
+ "topic_name": "Microbial Metabolic Engineering and Bioproduction",
+ "total_score": 38.337513,
+ "lexical_score": 21.5552821,
+ "title_vector_score": 26.924335,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Biofuel Production",
+ "score": 0.8399272
+ }
+ ]
+ },
+ {
+ "query": "bioprocess engineering fermentation",
+ "field": "Chemical Engineering",
+ "rank": 2,
+ "topic_name": "Biofuel production and bioconversion",
+ "total_score": 37.306454,
+ "lexical_score": 17.732682500000003,
+ "title_vector_score": 25.727728,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Ethanol Fermentation",
+ "score": 0.86806655
+ },
+ {
+ "keyword": "Bioethanol Production",
+ "score": 0.859375
+ }
+ ]
+ },
+ {
+ "query": "bioprocess engineering fermentation",
+ "field": "Chemical Engineering",
+ "rank": 3,
+ "topic_name": "GABA and Rice Research",
+ "total_score": 35.512787,
+ "lexical_score": 12.604578,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.90821,
+ "matched_keywords": [
+ {
+ "keyword": "Fermentation",
+ "score": 0.91632843
+ }
+ ]
+ },
+ {
+ "query": "thermodynamics chemical mixtures",
+ "field": "Chemical Engineering",
+ "rank": 1,
+ "topic_name": "Thermodynamic properties of mixtures",
+ "total_score": 90.14518,
+ "lexical_score": 48.598212000000004,
+ "title_vector_score": 29.121666,
+ "description_vector_score": 13.122707,
+ "keywords_vector_score": 22.734583,
+ "matched_keywords": [
+ {
+ "keyword": "Thermodynamic Properties",
+ "score": 0.9093833
+ }
+ ]
+ },
+ {
+ "query": "thermodynamics chemical mixtures",
+ "field": "Chemical Engineering",
+ "rank": 2,
+ "topic_name": "Chemical Thermodynamics and Molecular Structure",
+ "total_score": 60.393776,
+ "lexical_score": 47.323766,
+ "title_vector_score": 27.191313,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Thermodynamics",
+ "score": 0.903461
+ }
+ ]
+ },
+ {
+ "query": "thermodynamics chemical mixtures",
+ "field": "Chemical Engineering",
+ "rank": 3,
+ "topic_name": "Metallurgical Processes and Thermodynamics",
+ "total_score": 44.039337,
+ "lexical_score": 20.55929,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.480045,
+ "matched_keywords": [
+ {
+ "keyword": "Thermochemical",
+ "score": 0.93920183
+ }
+ ]
+ },
+ {
+ "query": "heat exchanger network",
+ "field": "Chemical Engineering",
+ "rank": 1,
+ "topic_name": "Heat Transfer and Optimization",
+ "total_score": 68.372444,
+ "lexical_score": 40.554197,
+ "title_vector_score": 26.275042,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.592615,
+ "matched_keywords": [
+ {
+ "keyword": "Heat Exchangers",
+ "score": 0.9437046
+ },
+ {
+ "keyword": "Heat Transfer",
+ "score": 0.89669824
+ }
+ ]
+ },
+ {
+ "query": "heat exchanger network",
+ "field": "Chemical Engineering",
+ "rank": 2,
+ "topic_name": "Heat Transfer Mechanisms",
+ "total_score": 46.691452,
+ "lexical_score": 35.1576587,
+ "title_vector_score": 26.237612,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Heat Transfer",
+ "score": 0.8963759
+ },
+ {
+ "keyword": "Solar Air Heater",
+ "score": 0.8456521
+ }
+ ]
+ },
+ {
+ "query": "heat exchanger network",
+ "field": "Chemical Engineering",
+ "rank": 3,
+ "topic_name": "Heat Transfer and Numerical Methods",
+ "total_score": 45.7273,
+ "lexical_score": 48.9942542,
+ "title_vector_score": 25.372288,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Heat Transfer",
+ "score": 0.8963759
+ },
+ {
+ "keyword": "Conduction Heat Transfer",
+ "score": 0.883219
+ }
+ ]
+ },
+ {
+ "query": "polymer processing extrusion",
+ "field": "Chemical Engineering",
+ "rank": 1,
+ "topic_name": "Conducting polymers and applications",
+ "total_score": 49.236244,
+ "lexical_score": 0.0,
+ "title_vector_score": 26.940865,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.29538,
+ "matched_keywords": [
+ {
+ "keyword": "Conducting Polymers",
+ "score": 0.8918152
+ }
+ ]
+ },
+ {
+ "query": "polymer processing extrusion",
+ "field": "Chemical Engineering",
+ "rank": 2,
+ "topic_name": "Polymer Science and Applications",
+ "total_score": 44.392235,
+ "lexical_score": 36.349867599999996,
+ "title_vector_score": 26.129244,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Polymer Materials",
+ "score": 0.85818124
+ },
+ {
+ "keyword": "Polymer Nanocomposites",
+ "score": 0.81536174
+ }
+ ]
+ },
+ {
+ "query": "polymer processing extrusion",
+ "field": "Chemical Engineering",
+ "rank": 3,
+ "topic_name": "Polymer Synthesis and Characterization",
+ "total_score": 44.252087,
+ "lexical_score": 33.375465999999996,
+ "title_vector_score": 25.989096,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Polymer Resins",
+ "score": 0.86614394
+ }
+ ]
+ },
+ {
+ "query": "mass transfer operations",
+ "field": "Chemical Engineering",
+ "rank": 1,
+ "topic_name": "Fluid Dynamics and Mixing",
+ "total_score": 42.648052,
+ "lexical_score": 32.3133554,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.020357,
+ "matched_keywords": [
+ {
+ "keyword": "Mass Transfer Coefficients",
+ "score": 0.8808143
+ }
+ ]
+ },
+ {
+ "query": "mass transfer operations",
+ "field": "Chemical Engineering",
+ "rank": 2,
+ "topic_name": "Heat and Mass Transfer in Porous Media",
+ "total_score": 31.52934,
+ "lexical_score": 44.427437999999995,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "mass transfer operations",
+ "field": "Chemical Engineering",
+ "rank": 3,
+ "topic_name": "Vehicle Noise and Vibration Control",
+ "total_score": 30.937126,
+ "lexical_score": 16.5068,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 20.444214,
+ "matched_keywords": [
+ {
+ "keyword": "Operational Transfer Path Analysis",
+ "score": 0.8177686
+ }
+ ]
+ },
+ {
+ "query": "process safety management",
+ "field": "Chemical Engineering",
+ "rank": 1,
+ "topic_name": "Safety and Risk Management",
+ "total_score": 52.215126,
+ "lexical_score": 47.755150300000004,
+ "title_vector_score": 26.40973,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "process safety management",
+ "field": "Chemical Engineering",
+ "rank": 2,
+ "topic_name": "Occupational Health and Safety Management",
+ "total_score": 49.229816,
+ "lexical_score": 49.9601747,
+ "title_vector_score": 25.66949,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Safety Behavior",
+ "score": 0.8570154
+ },
+ {
+ "keyword": "Workplace Safety",
+ "score": 0.85220814
+ }
+ ]
+ },
+ {
+ "query": "process safety management",
+ "field": "Chemical Engineering",
+ "rank": 3,
+ "topic_name": "Chemical Safety and Risk Management",
+ "total_score": 48.65167,
+ "lexical_score": 48.5516499,
+ "title_vector_score": 25.091343,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Laboratory Safety",
+ "score": 0.81489134
+ }
+ ]
+ },
+ {
+ "query": "fluidized bed reactor",
+ "field": "Chemical Engineering",
+ "rank": 1,
+ "topic_name": "Granular flow and fluidized beds",
+ "total_score": 44.08323,
+ "lexical_score": 47.492984,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 21.10647,
+ "matched_keywords": [
+ {
+ "keyword": "Fluidized Beds",
+ "score": 0.8442588
+ }
+ ]
+ },
+ {
+ "query": "fluidized bed reactor",
+ "field": "Chemical Engineering",
+ "rank": 2,
+ "topic_name": "Nuclear reactor physics and engineering",
+ "total_score": 22.976759,
+ "lexical_score": 48.82945050000001,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "fluidized bed reactor",
+ "field": "Chemical Engineering",
+ "rank": 3,
+ "topic_name": "Dermatological diseases and infestations",
+ "total_score": 17.686224,
+ "lexical_score": 25.943376999999998,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "chemical plant optimization",
+ "field": "Chemical Engineering",
+ "rank": 1,
+ "topic_name": "Plant chemical constituents analysis",
+ "total_score": 54.067837,
+ "lexical_score": 29.1563455,
+ "title_vector_score": 24.911491,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "chemical plant optimization",
+ "field": "Chemical Engineering",
+ "rank": 2,
+ "topic_name": "Manufacturing Process and Optimization",
+ "total_score": 39.00964,
+ "lexical_score": 17.6523775,
+ "title_vector_score": 24.891571,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "chemical plant optimization",
+ "field": "Chemical Engineering",
+ "rank": 3,
+ "topic_name": "Advanced Manufacturing and Logistics Optimization",
+ "total_score": 37.2603,
+ "lexical_score": 12.889797,
+ "title_vector_score": 24.3705,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "multi phase flow",
+ "field": "Chemical Engineering",
+ "rank": 1,
+ "topic_name": "Flow Measurement and Analysis",
+ "total_score": 46.44575,
+ "lexical_score": 52.8494076,
+ "title_vector_score": 24.458786,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Two-Phase Flow",
+ "score": 0.9232495
+ },
+ {
+ "keyword": "Multiphase Flow Metering",
+ "score": 0.87507725
+ }
+ ]
+ },
+ {
+ "query": "multi phase flow",
+ "field": "Chemical Engineering",
+ "rank": 2,
+ "topic_name": "Flow Experience in Various Fields",
+ "total_score": 41.79379,
+ "lexical_score": 31.374145999999996,
+ "title_vector_score": 24.659744,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Flow Theory",
+ "score": 0.85386825
+ }
+ ]
+ },
+ {
+ "query": "multi phase flow",
+ "field": "Chemical Engineering",
+ "rank": 3,
+ "topic_name": "Fluid Dynamics Simulations and Interactions",
+ "total_score": 39.93093,
+ "lexical_score": 25.0367268,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.776442,
+ "matched_keywords": [
+ {
+ "keyword": "Multi-Phase Flows",
+ "score": 0.9510577
+ }
+ ]
+ },
+ {
+ "query": "computational fluid dynamics",
+ "field": "Chemical Engineering",
+ "rank": 1,
+ "topic_name": "Computational Fluid Dynamics and Aerodynamics",
+ "total_score": 84.2522,
+ "lexical_score": 57.3734374,
+ "title_vector_score": 27.337683,
+ "description_vector_score": 12.427658,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "computational fluid dynamics",
+ "field": "Chemical Engineering",
+ "rank": 2,
+ "topic_name": "Fluid Dynamics and Mixing",
+ "total_score": 57.13716,
+ "lexical_score": 30.221244,
+ "title_vector_score": 26.915916,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "computational fluid dynamics",
+ "field": "Chemical Engineering",
+ "rank": 3,
+ "topic_name": "Fluid Dynamics Simulations and Interactions",
+ "total_score": 55.759,
+ "lexical_score": 45.6373519,
+ "title_vector_score": 28.167007,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Fluid-Structure Interaction",
+ "score": 0.87521935
+ },
+ {
+ "keyword": "Smoothed Particle Hydrodynamics",
+ "score": 0.81596565
+ }
+ ]
+ },
+ {
+ "query": "industrial scale synthesis",
+ "field": "Chemical Engineering",
+ "rank": 1,
+ "topic_name": "Chemical Synthesis and Analysis",
+ "total_score": 38.91664,
+ "lexical_score": 30.5095771,
+ "title_vector_score": 25.567345,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Solid-Phase Synthesis",
+ "score": 0.8354256
+ }
+ ]
+ },
+ {
+ "query": "industrial scale synthesis",
+ "field": "Chemical Engineering",
+ "rank": 2,
+ "topic_name": "Chemical Synthesis and Characterization",
+ "total_score": 38.748024,
+ "lexical_score": 13.3492985,
+ "title_vector_score": 25.398724,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "industrial scale synthesis",
+ "field": "Chemical Engineering",
+ "rank": 3,
+ "topic_name": "Chemical Synthesis and Reactions",
+ "total_score": 37.919777,
+ "lexical_score": 17.0246495,
+ "title_vector_score": 24.57048,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "green chemical engineering",
+ "field": "Chemical Engineering",
+ "rank": 1,
+ "topic_name": "Chemistry and Chemical Engineering",
+ "total_score": 89.18154,
+ "lexical_score": 58.4614407,
+ "title_vector_score": 24.534916,
+ "description_vector_score": 12.695295,
+ "keywords_vector_score": 23.643541,
+ "matched_keywords": [
+ {
+ "keyword": "Green Engineering",
+ "score": 0.94574165
+ },
+ {
+ "keyword": "Sustainable Chemistry",
+ "score": 0.83507776
+ }
+ ]
+ },
+ {
+ "query": "green chemical engineering",
+ "field": "Chemical Engineering",
+ "rank": 2,
+ "topic_name": "Chemical and Environmental Engineering Research",
+ "total_score": 52.24085,
+ "lexical_score": 49.50812689999999,
+ "title_vector_score": 26.39584,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Chemical Engineering",
+ "score": 0.8588226
+ }
+ ]
+ },
+ {
+ "query": "green chemical engineering",
+ "field": "Chemical Engineering",
+ "rank": 3,
+ "topic_name": "Engineering and Environmental Studies",
+ "total_score": 36.96823,
+ "lexical_score": 12.500742,
+ "title_vector_score": 24.46749,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "adsorption separation kinetics",
+ "field": "Chemical Engineering",
+ "rank": 1,
+ "topic_name": "Adsorption and Cooling Systems",
+ "total_score": 47.50189,
+ "lexical_score": 37.720238,
+ "title_vector_score": 24.997702,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Adsorption Refrigeration",
+ "score": 0.850734
+ }
+ ]
+ },
+ {
+ "query": "adsorption separation kinetics",
+ "field": "Chemical Engineering",
+ "rank": 2,
+ "topic_name": "Adsorption, diffusion, and thermodynamic properties of materials",
+ "total_score": 42.537598,
+ "lexical_score": 34.1055513,
+ "title_vector_score": 25.036476,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Adsorption Properties",
+ "score": 0.88211274
+ }
+ ]
+ },
+ {
+ "query": "adsorption separation kinetics",
+ "field": "Chemical Engineering",
+ "rank": 3,
+ "topic_name": "Arsenic contamination and mitigation",
+ "total_score": 35.884438,
+ "lexical_score": 20.0325473,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.074425,
+ "matched_keywords": [
+ {
+ "keyword": "Adsorption",
+ "score": 0.882977
+ }
+ ]
+ },
+ {
+ "query": "process control loops",
+ "field": "Chemical Engineering",
+ "rank": 1,
+ "topic_name": "Injection Molding Process and Properties",
+ "total_score": 40.319176,
+ "lexical_score": 34.753595600000004,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 21.548546,
+ "matched_keywords": [
+ {
+ "keyword": "Process Parameters",
+ "score": 0.8619418
+ }
+ ]
+ },
+ {
+ "query": "process control loops",
+ "field": "Chemical Engineering",
+ "rank": 2,
+ "topic_name": "Industrial Automation and Control Systems",
+ "total_score": 36.85905,
+ "lexical_score": 23.2675185,
+ "title_vector_score": 24.843735,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "process control loops",
+ "field": "Chemical Engineering",
+ "rank": 3,
+ "topic_name": "Advanced Machining and Optimization Techniques",
+ "total_score": 30.34186,
+ "lexical_score": 12.967479,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 21.564556,
+ "matched_keywords": [
+ {
+ "keyword": "Process Parameters",
+ "score": 0.8625822
+ }
+ ]
+ },
+ {
+ "query": "materials processing chemical",
+ "field": "Chemical Engineering",
+ "rank": 1,
+ "topic_name": "Materials Engineering and Processing",
+ "total_score": 57.09815,
+ "lexical_score": 33.7408063,
+ "title_vector_score": 27.804264,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Industrial By-Products",
+ "score": 0.81176734
+ }
+ ]
+ },
+ {
+ "query": "materials processing chemical",
+ "field": "Chemical Engineering",
+ "rank": 2,
+ "topic_name": "Additive Manufacturing Materials and Processes",
+ "total_score": 50.82946,
+ "lexical_score": 11.6612215,
+ "title_vector_score": 26.918821,
+ "description_vector_score": 12.249416,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "materials processing chemical",
+ "field": "Chemical Engineering",
+ "rank": 3,
+ "topic_name": "Ultrasound and Cavitation Phenomena",
+ "total_score": 49.504837,
+ "lexical_score": 37.263982600000006,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.7886,
+ "matched_keywords": [
+ {
+ "keyword": "Chemical Processing",
+ "score": 0.95154405
+ }
+ ]
+ },
+ {
+ "query": "endodontic treatment procedures",
+ "field": "Dentistry",
+ "rank": 1,
+ "topic_name": "Endodontics and Root Canal Treatments",
+ "total_score": 85.05951,
+ "lexical_score": 33.224847600000004,
+ "title_vector_score": 27.337267,
+ "description_vector_score": 12.907287,
+ "keywords_vector_score": 24.743343,
+ "matched_keywords": [
+ {
+ "keyword": "Endodontic Treatment",
+ "score": 0.9897337
+ },
+ {
+ "keyword": "Regenerative Endodontics",
+ "score": 0.9185231
+ }
+ ]
+ },
+ {
+ "query": "endodontic treatment procedures",
+ "field": "Dentistry",
+ "rank": 2,
+ "topic_name": "Dental Erosion and Treatment",
+ "total_score": 39.096584,
+ "lexical_score": 12.653102,
+ "title_vector_score": 26.443483,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Dental Erosion",
+ "score": 0.8257816
+ },
+ {
+ "keyword": "Erosive Tooth Wear",
+ "score": 0.8190863
+ }
+ ]
+ },
+ {
+ "query": "endodontic treatment procedures",
+ "field": "Dentistry",
+ "rank": 3,
+ "topic_name": "Dental Implant Techniques and Outcomes",
+ "total_score": 26.679283,
+ "lexical_score": 0.0,
+ "title_vector_score": 26.679283,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Dental Implants",
+ "score": 0.8718581
+ }
+ ]
+ },
+ {
+ "query": "periodontal disease therapy",
+ "field": "Dentistry",
+ "rank": 1,
+ "topic_name": "Periodontal Regeneration and Treatments",
+ "total_score": 52.3916,
+ "lexical_score": 43.6021617,
+ "title_vector_score": 27.22538,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Periodontal Regeneration",
+ "score": 0.83030915
+ },
+ {
+ "keyword": "Osteoarthritis Treatment",
+ "score": 0.8187034
+ }
+ ]
+ },
+ {
+ "query": "periodontal disease therapy",
+ "field": "Dentistry",
+ "rank": 2,
+ "topic_name": "HIV/AIDS oral health manifestations",
+ "total_score": 49.319,
+ "lexical_score": 39.0566735,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.598087,
+ "matched_keywords": [
+ {
+ "keyword": "periodontal disease",
+ "score": 0.9439235
+ }
+ ]
+ },
+ {
+ "query": "periodontal disease therapy",
+ "field": "Dentistry",
+ "rank": 3,
+ "topic_name": "Dental Radiography and Imaging",
+ "total_score": 40.753174,
+ "lexical_score": 27.7601035,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.068983,
+ "matched_keywords": [
+ {
+ "keyword": "Periodontal Disease",
+ "score": 0.88275933
+ }
+ ]
+ },
+ {
+ "query": "orthodontic alignment techniques",
+ "field": "Dentistry",
+ "rank": 1,
+ "topic_name": "Orthodontics and Dentofacial Orthopedics",
+ "total_score": 78.01521,
+ "lexical_score": 27.294283,
+ "title_vector_score": 27.602806,
+ "description_vector_score": 12.460993,
+ "keywords_vector_score": 22.42434,
+ "matched_keywords": [
+ {
+ "keyword": "Orthodontic Tooth Movement",
+ "score": 0.8969736
+ },
+ {
+ "keyword": "Dental Esthetics",
+ "score": 0.82679534
+ }
+ ]
+ },
+ {
+ "query": "orthodontic alignment techniques",
+ "field": "Dentistry",
+ "rank": 2,
+ "topic_name": "Dental Implant Techniques and Outcomes",
+ "total_score": 35.392097,
+ "lexical_score": 10.058632,
+ "title_vector_score": 25.333464,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Dental Implants",
+ "score": 0.8523166
+ }
+ ]
+ },
+ {
+ "query": "orthodontic alignment techniques",
+ "field": "Dentistry",
+ "rank": 3,
+ "topic_name": "Orthopaedic implants and arthroplasty",
+ "total_score": 28.358498,
+ "lexical_score": 2.1665912,
+ "title_vector_score": 26.191906,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "dental implant surgery",
+ "field": "Dentistry",
+ "rank": 1,
+ "topic_name": "Dental Implant Techniques and Outcomes",
+ "total_score": 104.807526,
+ "lexical_score": 90.144283,
+ "title_vector_score": 28.95522,
+ "description_vector_score": 12.758589,
+ "keywords_vector_score": 24.448198,
+ "matched_keywords": [
+ {
+ "keyword": "Dental Implants",
+ "score": 0.9779279
+ },
+ {
+ "keyword": "Implant Complications",
+ "score": 0.8842237
+ }
+ ]
+ },
+ {
+ "query": "dental implant surgery",
+ "field": "Dentistry",
+ "rank": 2,
+ "topic_name": "Dental Radiography and Imaging",
+ "total_score": 47.683884,
+ "lexical_score": 54.610698,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.570429,
+ "matched_keywords": [
+ {
+ "keyword": "Dental Implantology",
+ "score": 0.9828172
+ },
+ {
+ "keyword": "Dental Imaging",
+ "score": 0.89546895
+ }
+ ]
+ },
+ {
+ "query": "dental implant surgery",
+ "field": "Dentistry",
+ "rank": 3,
+ "topic_name": "Orthopaedic implants and arthroplasty",
+ "total_score": 46.68891,
+ "lexical_score": 31.255608799999997,
+ "title_vector_score": 26.492643,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Implant Failure",
+ "score": 0.84141207
+ }
+ ]
+ },
+ {
+ "query": "prosthodontics crown design",
+ "field": "Dentistry",
+ "rank": 1,
+ "topic_name": "Prosthetics and Rehabilitation Robotics",
+ "total_score": 24.896614,
+ "lexical_score": 3.0657208,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 21.830893,
+ "matched_keywords": [
+ {
+ "keyword": "Prosthetics",
+ "score": 0.8732357
+ }
+ ]
+ },
+ {
+ "query": "prosthodontics crown design",
+ "field": "Dentistry",
+ "rank": 2,
+ "topic_name": "Orthopaedic implants and arthroplasty",
+ "total_score": 24.316442,
+ "lexical_score": 0.0,
+ "title_vector_score": 24.316442,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "prosthodontics crown design",
+ "field": "Dentistry",
+ "rank": 3,
+ "topic_name": "Scientific and Engineering Research Topics",
+ "total_score": 21.455103,
+ "lexical_score": 0.0,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 21.455103,
+ "matched_keywords": [
+ {
+ "keyword": "Implant Prostheses",
+ "score": 0.8582041
+ }
+ ]
+ },
+ {
+ "query": "pediatric dentistry prevention",
+ "field": "Dentistry",
+ "rank": 1,
+ "topic_name": "Occupational health in dentistry",
+ "total_score": 71.230156,
+ "lexical_score": 36.7489767,
+ "title_vector_score": 25.638412,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.030432,
+ "matched_keywords": [
+ {
+ "keyword": "Dentists",
+ "score": 0.88121724
+ },
+ {
+ "keyword": "Dental Students",
+ "score": 0.86000586
+ }
+ ]
+ },
+ {
+ "query": "pediatric dentistry prevention",
+ "field": "Dentistry",
+ "rank": 2,
+ "topic_name": "Medical and Biological Ozone Research",
+ "total_score": 36.284126,
+ "lexical_score": 20.741704,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.03713,
+ "matched_keywords": [
+ {
+ "keyword": "Dentistry",
+ "score": 0.8814852
+ }
+ ]
+ },
+ {
+ "query": "pediatric dentistry prevention",
+ "field": "Dentistry",
+ "rank": 3,
+ "topic_name": "Dental Health and Care Utilization",
+ "total_score": 35.711315,
+ "lexical_score": 8.748561,
+ "title_vector_score": 26.962753,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Dental Caries",
+ "score": 0.843554
+ },
+ {
+ "keyword": "Oral Health",
+ "score": 0.8255031
+ }
+ ]
+ },
+ {
+ "query": "oral maxillofacial surgery",
+ "field": "Dentistry",
+ "rank": 1,
+ "topic_name": "Oral and Maxillofacial Pathology",
+ "total_score": 72.20004,
+ "lexical_score": 44.882684,
+ "title_vector_score": 27.317362,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "oral maxillofacial surgery",
+ "field": "Dentistry",
+ "rank": 2,
+ "topic_name": "Oral and Craniofacial Lesions",
+ "total_score": 44.940575,
+ "lexical_score": 25.0372136,
+ "title_vector_score": 25.224115,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "oral maxillofacial surgery",
+ "field": "Dentistry",
+ "rank": 3,
+ "topic_name": "Dental Radiography and Imaging",
+ "total_score": 43.209686,
+ "lexical_score": 32.941417,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 21.31542,
+ "matched_keywords": [
+ {
+ "keyword": "Dental Implantology",
+ "score": 0.8526168
+ },
+ {
+ "keyword": "Third Molar Surgery",
+ "score": 0.83468986
+ }
+ ]
+ },
+ {
+ "query": "dental caries prevention",
+ "field": "Dentistry",
+ "rank": 1,
+ "topic_name": "Dental Health and Care Utilization",
+ "total_score": 98.830315,
+ "lexical_score": 67.72586,
+ "title_vector_score": 26.671421,
+ "description_vector_score": 12.195826,
+ "keywords_vector_score": 23.546917,
+ "matched_keywords": [
+ {
+ "keyword": "Dental Caries",
+ "score": 0.94187665
+ },
+ {
+ "keyword": "Oral Health",
+ "score": 0.84185505
+ }
+ ]
+ },
+ {
+ "query": "dental caries prevention",
+ "field": "Dentistry",
+ "rank": 2,
+ "topic_name": "Dental Erosion and Treatment",
+ "total_score": 57.718987,
+ "lexical_score": 38.080104999999996,
+ "title_vector_score": 26.377695,
+ "description_vector_score": 12.574535,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Erosive Tooth Wear",
+ "score": 0.8603835
+ },
+ {
+ "keyword": "Dental Erosion",
+ "score": 0.85338974
+ }
+ ]
+ },
+ {
+ "query": "dental caries prevention",
+ "field": "Dentistry",
+ "rank": 3,
+ "topic_name": "Oral microbiology and periodontitis research",
+ "total_score": 49.497852,
+ "lexical_score": 25.943675499999998,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.554176,
+ "matched_keywords": [
+ {
+ "keyword": "Dental Caries",
+ "score": 0.94216704
+ }
+ ]
+ },
+ {
+ "query": "restorative dentistry materials",
+ "field": "Dentistry",
+ "rank": 1,
+ "topic_name": "Dental materials and restorations",
+ "total_score": 100.931046,
+ "lexical_score": 58.3366807,
+ "title_vector_score": 29.353058,
+ "description_vector_score": 13.567042,
+ "keywords_vector_score": 23.765844,
+ "matched_keywords": [
+ {
+ "keyword": "Dental Materials",
+ "score": 0.95063376
+ },
+ {
+ "keyword": "Restorative Dentistry",
+ "score": 0.9495287
+ }
+ ]
+ },
+ {
+ "query": "restorative dentistry materials",
+ "field": "Dentistry",
+ "rank": 2,
+ "topic_name": "Laser Applications in Dentistry and Medicine",
+ "total_score": 42.97725,
+ "lexical_score": 26.5967074,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.187483,
+ "matched_keywords": [
+ {
+ "keyword": "Dental Applications",
+ "score": 0.9274993
+ }
+ ]
+ },
+ {
+ "query": "restorative dentistry materials",
+ "field": "Dentistry",
+ "rank": 3,
+ "topic_name": "Dental Erosion and Treatment",
+ "total_score": 39.747986,
+ "lexical_score": 0.0,
+ "title_vector_score": 27.127304,
+ "description_vector_score": 12.620684,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Erosive Tooth Wear",
+ "score": 0.87946486
+ },
+ {
+ "keyword": "Dental Erosion",
+ "score": 0.86500096
+ }
+ ]
+ },
+ {
+ "query": "oral pathology diagnosis",
+ "field": "Dentistry",
+ "rank": 1,
+ "topic_name": "Oral Health Pathology and Treatment",
+ "total_score": 85.198235,
+ "lexical_score": 61.745979500000004,
+ "title_vector_score": 28.04216,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.020906,
+ "matched_keywords": [
+ {
+ "keyword": "Oral Mucosal Disorders",
+ "score": 0.88083625
+ }
+ ]
+ },
+ {
+ "query": "oral pathology diagnosis",
+ "field": "Dentistry",
+ "rank": 2,
+ "topic_name": "Oral and Maxillofacial Pathology",
+ "total_score": 65.76895,
+ "lexical_score": 55.275419,
+ "title_vector_score": 27.285732,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "oral pathology diagnosis",
+ "field": "Dentistry",
+ "rank": 3,
+ "topic_name": "Oral and Craniofacial Lesions",
+ "total_score": 46.167595,
+ "lexical_score": 25.0372136,
+ "title_vector_score": 26.451138,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "laser dentistry applications",
+ "field": "Dentistry",
+ "rank": 1,
+ "topic_name": "Laser Applications in Dentistry and Medicine",
+ "total_score": 95.63807,
+ "lexical_score": 74.14235529999999,
+ "title_vector_score": 29.645847,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.184504,
+ "matched_keywords": [
+ {
+ "keyword": "Dental Applications",
+ "score": 0.8873801
+ },
+ {
+ "keyword": "Low-Level Laser Therapy",
+ "score": 0.858871
+ }
+ ]
+ },
+ {
+ "query": "laser dentistry applications",
+ "field": "Dentistry",
+ "rank": 2,
+ "topic_name": "Laser Design and Applications",
+ "total_score": 54.322426,
+ "lexical_score": 48.803166399999995,
+ "title_vector_score": 25.727112,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "High Power Laser",
+ "score": 0.8225212
+ }
+ ]
+ },
+ {
+ "query": "laser dentistry applications",
+ "field": "Dentistry",
+ "rank": 3,
+ "topic_name": "Medical and Biological Ozone Research",
+ "total_score": 35.92374,
+ "lexical_score": 20.741704,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 21.676743,
+ "matched_keywords": [
+ {
+ "keyword": "Dentistry",
+ "score": 0.8670697
+ }
+ ]
+ },
+ {
+ "query": "dental biomaterials wear",
+ "field": "Dentistry",
+ "rank": 1,
+ "topic_name": "Dental materials and restorations",
+ "total_score": 81.05603,
+ "lexical_score": 37.796346,
+ "title_vector_score": 26.729193,
+ "description_vector_score": 12.35384,
+ "keywords_vector_score": 23.20624,
+ "matched_keywords": [
+ {
+ "keyword": "Dental Materials",
+ "score": 0.9282496
+ },
+ {
+ "keyword": "Dentin Structure",
+ "score": 0.8351922
+ }
+ ]
+ },
+ {
+ "query": "dental biomaterials wear",
+ "field": "Dentistry",
+ "rank": 2,
+ "topic_name": "Dental Erosion and Treatment",
+ "total_score": 80.83905,
+ "lexical_score": 55.619232,
+ "title_vector_score": 24.50851,
+ "description_vector_score": 12.181999,
+ "keywords_vector_score": 22.140217,
+ "matched_keywords": [
+ {
+ "keyword": "Erosive Tooth Wear",
+ "score": 0.8856087
+ }
+ ]
+ },
+ {
+ "query": "dental biomaterials wear",
+ "field": "Dentistry",
+ "rank": 3,
+ "topic_name": "Dental Implant Techniques and Outcomes",
+ "total_score": 42.63756,
+ "lexical_score": 36.256078,
+ "title_vector_score": 25.503517,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Dental Implants",
+ "score": 0.8677263
+ }
+ ]
+ },
+ {
+ "query": "cone beam ct",
+ "field": "Dentistry",
+ "rank": 1,
+ "topic_name": "Dental Radiography and Imaging",
+ "total_score": 58.98416,
+ "lexical_score": 47.1557073,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.739773,
+ "matched_keywords": [
+ {
+ "keyword": "Cone-Beam CT",
+ "score": 0.9495909
+ }
+ ]
+ },
+ {
+ "query": "cone beam ct",
+ "field": "Dentistry",
+ "rank": 2,
+ "topic_name": "Endodontics and Root Canal Treatments",
+ "total_score": 44.098267,
+ "lexical_score": 33.674424,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 21.361506,
+ "matched_keywords": [
+ {
+ "keyword": "Cone Beam Computed Tomography",
+ "score": 0.85446024
+ }
+ ]
+ },
+ {
+ "query": "cone beam ct",
+ "field": "Dentistry",
+ "rank": 3,
+ "topic_name": "Advanced Antenna and Metasurface Technologies",
+ "total_score": 31.875038,
+ "lexical_score": 17.943500800000002,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 20.29631,
+ "matched_keywords": [
+ {
+ "keyword": "Beam Control",
+ "score": 0.81185246
+ }
+ ]
+ },
+ {
+ "query": "salivary diagnostics biomarkers",
+ "field": "Dentistry",
+ "rank": 1,
+ "topic_name": "Biomarkers in Disease Mechanisms",
+ "total_score": 47.398033,
+ "lexical_score": 21.084139,
+ "title_vector_score": 26.313894,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "salivary diagnostics biomarkers",
+ "field": "Dentistry",
+ "rank": 2,
+ "topic_name": "Inflammatory Biomarkers in Disease Prognosis",
+ "total_score": 45.42478,
+ "lexical_score": 19.249817,
+ "title_vector_score": 26.174963,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "salivary diagnostics biomarkers",
+ "field": "Dentistry",
+ "rank": 3,
+ "topic_name": "Lung Cancer Research Studies",
+ "total_score": 34.38315,
+ "lexical_score": 17.178695,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.437292,
+ "matched_keywords": [
+ {
+ "keyword": "Biomarkers",
+ "score": 0.93749166
+ }
+ ]
+ },
+ {
+ "query": "aesthetic dentistry veneers",
+ "field": "Dentistry",
+ "rank": 1,
+ "topic_name": "Orthodontics and Dentofacial Orthopedics",
+ "total_score": 48.907486,
+ "lexical_score": 0.0,
+ "title_vector_score": 25.36588,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.541605,
+ "matched_keywords": [
+ {
+ "keyword": "Dental Esthetics",
+ "score": 0.9416642
+ },
+ {
+ "keyword": "Orthodontic Tooth Movement",
+ "score": 0.8185034
+ }
+ ]
+ },
+ {
+ "query": "aesthetic dentistry veneers",
+ "field": "Dentistry",
+ "rank": 2,
+ "topic_name": "Dental materials and restorations",
+ "total_score": 41.085594,
+ "lexical_score": 14.536877,
+ "title_vector_score": 26.54872,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Dental Materials",
+ "score": 0.8893616
+ },
+ {
+ "keyword": "Restorative Dentistry",
+ "score": 0.87405014
+ }
+ ]
+ },
+ {
+ "query": "aesthetic dentistry veneers",
+ "field": "Dentistry",
+ "rank": 3,
+ "topic_name": "Medical and Biological Ozone Research",
+ "total_score": 36.512676,
+ "lexical_score": 20.741704,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.265678,
+ "matched_keywords": [
+ {
+ "keyword": "Dentistry",
+ "score": 0.89062715
+ }
+ ]
+ },
+ {
+ "query": "root canal morphology",
+ "field": "Dentistry",
+ "rank": 1,
+ "topic_name": "Endodontics and Root Canal Treatments",
+ "total_score": 91.31943,
+ "lexical_score": 80.938735,
+ "title_vector_score": 25.028944,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 21.802246,
+ "matched_keywords": [
+ {
+ "keyword": "Root Canal Irrigants",
+ "score": 0.87208986
+ }
+ ]
+ },
+ {
+ "query": "root canal morphology",
+ "field": "Dentistry",
+ "rank": 2,
+ "topic_name": "Turfgrass Adaptation and Management",
+ "total_score": 31.885689,
+ "lexical_score": 11.228584,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 20.657104,
+ "matched_keywords": [
+ {
+ "keyword": "Root Physiology",
+ "score": 0.82628417
+ }
+ ]
+ },
+ {
+ "query": "root canal morphology",
+ "field": "Dentistry",
+ "rank": 3,
+ "topic_name": "Plant tissue culture and regeneration",
+ "total_score": 31.32721,
+ "lexical_score": 16.7729368,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 20.546442,
+ "matched_keywords": [
+ {
+ "keyword": "Hairy Root Culture",
+ "score": 0.8218577
+ }
+ ]
+ },
+ {
+ "query": "gingival recession treatment",
+ "field": "Dentistry",
+ "rank": 1,
+ "topic_name": "Oral and gingival health research",
+ "total_score": 48.061966,
+ "lexical_score": 55.237716000000006,
+ "title_vector_score": 25.085205,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "gingival recession treatment",
+ "field": "Dentistry",
+ "rank": 2,
+ "topic_name": "Post-Communist Economic and Political Transition",
+ "total_score": 15.527077,
+ "lexical_score": 23.78423,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "gingival recession treatment",
+ "field": "Dentistry",
+ "rank": 3,
+ "topic_name": "Oral microbiology and periodontitis research",
+ "total_score": 14.8387985,
+ "lexical_score": 21.8812085,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "fluoride treatment efficacy",
+ "field": "Dentistry",
+ "rank": 1,
+ "topic_name": "Fluoride Effects and Removal",
+ "total_score": 65.56195,
+ "lexical_score": 52.110349,
+ "title_vector_score": 27.934383,
+ "description_vector_score": 12.461343,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Fluoride",
+ "score": 0.90696096
+ }
+ ]
+ },
+ {
+ "query": "fluoride treatment efficacy",
+ "field": "Dentistry",
+ "rank": 2,
+ "topic_name": "Fluorine in Organic Chemistry",
+ "total_score": 61.156384,
+ "lexical_score": 0.0,
+ "title_vector_score": 25.940395,
+ "description_vector_score": 12.463059,
+ "keywords_vector_score": 22.75293,
+ "matched_keywords": [
+ {
+ "keyword": "Fluorine",
+ "score": 0.91011715
+ },
+ {
+ "keyword": "Enantioselective Fluorination",
+ "score": 0.86281896
+ }
+ ]
+ },
+ {
+ "query": "fluoride treatment efficacy",
+ "field": "Dentistry",
+ "rank": 3,
+ "topic_name": "Dental Erosion and Treatment",
+ "total_score": 37.610313,
+ "lexical_score": 33.6717356,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 24.21282,
+ "matched_keywords": [
+ {
+ "keyword": "Fluoride Therapy",
+ "score": 0.9685128
+ }
+ ]
+ },
+ {
+ "query": "dental pulp stem cells",
+ "field": "Dentistry",
+ "rank": 1,
+ "topic_name": "Endodontics and Root Canal Treatments",
+ "total_score": 47.294395,
+ "lexical_score": 36.276810299999994,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.875755,
+ "matched_keywords": [
+ {
+ "keyword": "Dental Pulp Regeneration",
+ "score": 0.91503024
+ },
+ {
+ "keyword": "Regenerative Endodontics",
+ "score": 0.8218341
+ }
+ ]
+ },
+ {
+ "query": "dental pulp stem cells",
+ "field": "Dentistry",
+ "rank": 2,
+ "topic_name": "Dental materials and restorations",
+ "total_score": 43.07907,
+ "lexical_score": 37.796346,
+ "title_vector_score": 24.312315,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Dental Materials",
+ "score": 0.82395554
+ },
+ {
+ "keyword": "Tooth Restoration",
+ "score": 0.8153889
+ }
+ ]
+ },
+ {
+ "query": "dental pulp stem cells",
+ "field": "Dentistry",
+ "rank": 3,
+ "topic_name": "Cancer Cells and Metastasis",
+ "total_score": 42.7784,
+ "lexical_score": 54.01068360000001,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 20.949358,
+ "matched_keywords": [
+ {
+ "keyword": "Stem Cell Niches",
+ "score": 0.8379743
+ }
+ ]
+ },
+ {
+ "query": "temporomandibular joint disorders",
+ "field": "Dentistry",
+ "rank": 1,
+ "topic_name": "Temporomandibular Joint Disorders",
+ "total_score": 96.976166,
+ "lexical_score": 127.95693100000001,
+ "title_vector_score": 29.043118,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Temporomandibular Disorders",
+ "score": 0.9036648
+ },
+ {
+ "keyword": "Joint Osteoarthritis",
+ "score": 0.8404074
+ }
+ ]
+ },
+ {
+ "query": "temporomandibular joint disorders",
+ "field": "Dentistry",
+ "rank": 2,
+ "topic_name": "Muscle and Compartmental Disorders",
+ "total_score": 38.6433,
+ "lexical_score": 12.732144,
+ "title_vector_score": 25.911156,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "temporomandibular joint disorders",
+ "field": "Dentistry",
+ "rank": 3,
+ "topic_name": "Restless Legs Syndrome Research",
+ "total_score": 33.602474,
+ "lexical_score": 10.7301893,
+ "title_vector_score": 25.889755,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Restless Legs Syndrome",
+ "score": 0.870512
+ }
+ ]
+ },
+ {
+ "query": "veterinary medicine diagnosis",
+ "field": "Veterinary",
+ "rank": 1,
+ "topic_name": "Veterinary Medicine and Surgery",
+ "total_score": 63.55787,
+ "lexical_score": 36.374538,
+ "title_vector_score": 27.18333,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "veterinary medicine diagnosis",
+ "field": "Veterinary",
+ "rank": 2,
+ "topic_name": "Veterinary medicine and infectious diseases",
+ "total_score": 60.349655,
+ "lexical_score": 33.20995,
+ "title_vector_score": 27.139706,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "veterinary medicine diagnosis",
+ "field": "Veterinary",
+ "rank": 3,
+ "topic_name": "Veterinary Equine Medical Research",
+ "total_score": 46.123646,
+ "lexical_score": 20.109695,
+ "title_vector_score": 26.01395,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "canine parvovirus treatment",
+ "field": "Veterinary",
+ "rank": 1,
+ "topic_name": "Parvovirus B19 Infection Studies",
+ "total_score": 72.798225,
+ "lexical_score": 49.409645,
+ "title_vector_score": 26.040422,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 21.59158,
+ "matched_keywords": [
+ {
+ "keyword": "Parvovirus B19",
+ "score": 0.8636632
+ }
+ ]
+ },
+ {
+ "query": "canine parvovirus treatment",
+ "field": "Veterinary",
+ "rank": 2,
+ "topic_name": "COVID-19 Clinical Research Studies",
+ "total_score": 27.11538,
+ "lexical_score": 9.5022387,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 20.389908,
+ "matched_keywords": [
+ {
+ "keyword": "Antiviral Treatment",
+ "score": 0.81559634
+ }
+ ]
+ },
+ {
+ "query": "canine parvovirus treatment",
+ "field": "Veterinary",
+ "rank": 3,
+ "topic_name": "Animal Virus Infections Studies",
+ "total_score": 24.822708,
+ "lexical_score": 0.0,
+ "title_vector_score": 24.822708,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "feline leukemia virus",
+ "field": "Veterinary",
+ "rank": 1,
+ "topic_name": "Animal Virus Infections Studies",
+ "total_score": 46.28558,
+ "lexical_score": 40.620869600000006,
+ "title_vector_score": 25.72629,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "feline leukemia virus",
+ "field": "Veterinary",
+ "rank": 2,
+ "topic_name": "Vector-Borne Animal Diseases",
+ "total_score": 35.75402,
+ "lexical_score": 18.767147,
+ "title_vector_score": 24.369286,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "feline leukemia virus",
+ "field": "Veterinary",
+ "rank": 3,
+ "topic_name": "T-cell and Retrovirus Studies",
+ "total_score": 34.944824,
+ "lexical_score": 28.087082000000002,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 20.714003,
+ "matched_keywords": [
+ {
+ "keyword": "leukemia",
+ "score": 0.8285601
+ }
+ ]
+ },
+ {
+ "query": "equine sports medicine",
+ "field": "Veterinary",
+ "rank": 1,
+ "topic_name": "Veterinary Equine Medical Research",
+ "total_score": 88.678764,
+ "lexical_score": 59.94269800000001,
+ "title_vector_score": 27.337074,
+ "description_vector_score": 12.190361,
+ "keywords_vector_score": 22.63201,
+ "matched_keywords": [
+ {
+ "keyword": "Equine Health",
+ "score": 0.90528035
+ },
+ {
+ "keyword": "Equine Injuries",
+ "score": 0.8769121
+ }
+ ]
+ },
+ {
+ "query": "equine sports medicine",
+ "field": "Veterinary",
+ "rank": 2,
+ "topic_name": "Animal Disease Management and Epidemiology",
+ "total_score": 24.376717,
+ "lexical_score": 0.0,
+ "title_vector_score": 24.376717,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "equine sports medicine",
+ "field": "Veterinary",
+ "rank": 3,
+ "topic_name": "Human-Animal Interaction Studies",
+ "total_score": 20.563364,
+ "lexical_score": 0.0,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 20.563364,
+ "matched_keywords": [
+ {
+ "keyword": "Animal-Assisted Therapy",
+ "score": 0.82253456
+ }
+ ]
+ },
+ {
+ "query": "bovine mastitis control",
+ "field": "Veterinary",
+ "rank": 1,
+ "topic_name": "Milk Quality and Mastitis in Dairy Cows",
+ "total_score": 67.31478,
+ "lexical_score": 76.784355,
+ "title_vector_score": 0.0,
+ "description_vector_score": 12.192221,
+ "keywords_vector_score": 20.974277,
+ "matched_keywords": [
+ {
+ "keyword": "Bovine Mastitis",
+ "score": 0.83897114
+ }
+ ]
+ },
+ {
+ "query": "bovine mastitis control",
+ "field": "Veterinary",
+ "rank": 2,
+ "topic_name": "Breast Lesions and Carcinomas",
+ "total_score": 16.55833,
+ "lexical_score": 16.55833,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "bovine mastitis control",
+ "field": "Veterinary",
+ "rank": 3,
+ "topic_name": "Microbial infections and disease research",
+ "total_score": 14.8387985,
+ "lexical_score": 22.2092619,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "veterinary surgery techniques",
+ "field": "Veterinary",
+ "rank": 1,
+ "topic_name": "Veterinary Medicine and Surgery",
+ "total_score": 66.041176,
+ "lexical_score": 48.913601799999995,
+ "title_vector_score": 28.980932,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "veterinary surgery techniques",
+ "field": "Veterinary",
+ "rank": 2,
+ "topic_name": "Veterinary Orthopedics and Neurology",
+ "total_score": 45.761856,
+ "lexical_score": 28.225696999999997,
+ "title_vector_score": 25.65216,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "veterinary surgery techniques",
+ "field": "Veterinary",
+ "rank": 3,
+ "topic_name": "Veterinary Pharmacology and Anesthesia",
+ "total_score": 45.213757,
+ "lexical_score": 20.109695,
+ "title_vector_score": 25.104061,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "animal nutrition guidelines",
+ "field": "Veterinary",
+ "rank": 1,
+ "topic_name": "Animal Nutrition and Physiology",
+ "total_score": 73.89832,
+ "lexical_score": 43.5769396,
+ "title_vector_score": 27.902512,
+ "description_vector_score": 12.497606,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Feed Additives",
+ "score": 0.8109274
+ }
+ ]
+ },
+ {
+ "query": "animal nutrition guidelines",
+ "field": "Veterinary",
+ "rank": 2,
+ "topic_name": "Animal Nutrition and Health",
+ "total_score": 62.149693,
+ "lexical_score": 53.598538399999995,
+ "title_vector_score": 28.651485,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Livestock Health",
+ "score": 0.8597231
+ },
+ {
+ "keyword": "Nutritional Programming",
+ "score": 0.8468282
+ }
+ ]
+ },
+ {
+ "query": "animal nutrition guidelines",
+ "field": "Veterinary",
+ "rank": 3,
+ "topic_name": "Nutrition, Health, and Society Studies",
+ "total_score": 42.48503,
+ "lexical_score": 46.664636200000004,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.403543,
+ "matched_keywords": [
+ {
+ "keyword": "Dietary Guidelines",
+ "score": 0.89614177
+ },
+ {
+ "keyword": "Nutrition Science",
+ "score": 0.85744286
+ }
+ ]
+ },
+ {
+ "query": "zoonotic disease transmission",
+ "field": "Veterinary",
+ "rank": 1,
+ "topic_name": "Zoonotic diseases and public health",
+ "total_score": 66.86596,
+ "lexical_score": 64.05649120000001,
+ "title_vector_score": 27.36298,
+ "description_vector_score": 12.462624,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Zoonotic Diseases",
+ "score": 0.9190264
+ },
+ {
+ "keyword": "Pathogen Transmission",
+ "score": 0.873786
+ }
+ ]
+ },
+ {
+ "query": "zoonotic disease transmission",
+ "field": "Veterinary",
+ "rank": 2,
+ "topic_name": "Salmonella and Campylobacter epidemiology",
+ "total_score": 35.96919,
+ "lexical_score": 23.573333,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.134392,
+ "matched_keywords": [
+ {
+ "keyword": "Zoonotic Pathogens",
+ "score": 0.9253757
+ },
+ {
+ "keyword": "Pathogenicity",
+ "score": 0.82202816
+ }
+ ]
+ },
+ {
+ "query": "zoonotic disease transmission",
+ "field": "Veterinary",
+ "rank": 3,
+ "topic_name": "Parasitic Diseases Research and Treatment",
+ "total_score": 35.553944,
+ "lexical_score": 18.3938306,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.009872,
+ "matched_keywords": [
+ {
+ "keyword": "Zoonotic Infections",
+ "score": 0.9203949
+ }
+ ]
+ },
+ {
+ "query": "veterinary oncology treatment",
+ "field": "Veterinary",
+ "rank": 1,
+ "topic_name": "Veterinary Oncology Research",
+ "total_score": 73.41665,
+ "lexical_score": 68.6317707,
+ "title_vector_score": 28.464117,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Canine Cancer",
+ "score": 0.8286116
+ },
+ {
+ "keyword": "Cancer Treatment",
+ "score": 0.81452084
+ }
+ ]
+ },
+ {
+ "query": "veterinary oncology treatment",
+ "field": "Veterinary",
+ "rank": 2,
+ "topic_name": "Veterinary Medicine and Surgery",
+ "total_score": 46.341293,
+ "lexical_score": 20.109695,
+ "title_vector_score": 26.231596,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "veterinary oncology treatment",
+ "field": "Veterinary",
+ "rank": 3,
+ "topic_name": "Advances in Oncology and Radiotherapy",
+ "total_score": 43.417484,
+ "lexical_score": 33.5810738,
+ "title_vector_score": 24.646854,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Cancer Treatment",
+ "score": 0.81452084
+ }
+ ]
+ },
+ {
+ "query": "avian medicine care",
+ "field": "Veterinary",
+ "rank": 1,
+ "topic_name": "Bird parasitology and diseases",
+ "total_score": 37.597733,
+ "lexical_score": 22.398995,
+ "title_vector_score": 24.589226,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "avian medicine care",
+ "field": "Veterinary",
+ "rank": 2,
+ "topic_name": "Avian ecology and behavior",
+ "total_score": 25.166224,
+ "lexical_score": 47.937278,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "avian medicine care",
+ "field": "Veterinary",
+ "rank": 3,
+ "topic_name": "Musculoskeletal Disorders and Rehabilitation",
+ "total_score": 20.223537,
+ "lexical_score": 28.404451,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "small animal internal",
+ "field": "Veterinary",
+ "rank": 1,
+ "topic_name": "Medical Imaging Techniques and Applications",
+ "total_score": 46.29709,
+ "lexical_score": 32.034965,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.740376,
+ "matched_keywords": [
+ {
+ "keyword": "small animal",
+ "score": 0.949615
+ }
+ ]
+ },
+ {
+ "query": "small animal internal",
+ "field": "Veterinary",
+ "rank": 2,
+ "topic_name": "Animal Law and Welfare",
+ "total_score": 17.795807,
+ "lexical_score": 42.853999,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "small animal internal",
+ "field": "Veterinary",
+ "rank": 3,
+ "topic_name": "Plant and animal studies",
+ "total_score": 16.390533,
+ "lexical_score": 32.0017627,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "livestock herd health",
+ "field": "Veterinary",
+ "rank": 1,
+ "topic_name": "Livestock Farming and Management",
+ "total_score": 47.13237,
+ "lexical_score": 36.327276,
+ "title_vector_score": 27.022676,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Livestock Production",
+ "score": 0.872869
+ },
+ {
+ "keyword": "Beef Cattle",
+ "score": 0.8213663
+ }
+ ]
+ },
+ {
+ "query": "livestock herd health",
+ "field": "Veterinary",
+ "rank": 2,
+ "topic_name": "Livestock and Poultry Management",
+ "total_score": 46.84876,
+ "lexical_score": 20.109695,
+ "title_vector_score": 26.739063,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "livestock herd health",
+ "field": "Veterinary",
+ "rank": 3,
+ "topic_name": "Livestock Management and Performance Improvement",
+ "total_score": 45.061134,
+ "lexical_score": 43.265223399999996,
+ "title_vector_score": 26.700983,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Livestock Farming",
+ "score": 0.88946795
+ }
+ ]
+ },
+ {
+ "query": "veterinary pharmacology drugs",
+ "field": "Veterinary",
+ "rank": 1,
+ "topic_name": "Veterinary Pharmacology and Anesthesia",
+ "total_score": 66.46636,
+ "lexical_score": 44.271889,
+ "title_vector_score": 26.640207,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Pharmacokinetics",
+ "score": 0.86946964
+ }
+ ]
+ },
+ {
+ "query": "veterinary pharmacology drugs",
+ "field": "Veterinary",
+ "rank": 2,
+ "topic_name": "Veterinary medicine and infectious diseases",
+ "total_score": 44.524063,
+ "lexical_score": 18.36015,
+ "title_vector_score": 26.163912,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "veterinary pharmacology drugs",
+ "field": "Veterinary",
+ "rank": 3,
+ "topic_name": "Plant-based Medicinal Research",
+ "total_score": 27.210846,
+ "lexical_score": 5.4655924,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 21.745253,
+ "matched_keywords": [
+ {
+ "keyword": "Pharmacokinetics",
+ "score": 0.8698101
+ }
+ ]
+ },
+ {
+ "query": "animal welfare assessment",
+ "field": "Veterinary",
+ "rank": 1,
+ "topic_name": "Animal Behavior and Welfare Studies",
+ "total_score": 98.15086,
+ "lexical_score": 86.52319130000001,
+ "title_vector_score": 27.555943,
+ "description_vector_score": 13.198622,
+ "keywords_vector_score": 23.66112,
+ "matched_keywords": [
+ {
+ "keyword": "Animal Welfare",
+ "score": 0.94644475
+ },
+ {
+ "keyword": "Farm Animal Welfare",
+ "score": 0.902375
+ }
+ ]
+ },
+ {
+ "query": "animal welfare assessment",
+ "field": "Veterinary",
+ "rank": 2,
+ "topic_name": "Animal Law and Welfare",
+ "total_score": 87.88752,
+ "lexical_score": 78.43195650000001,
+ "title_vector_score": 27.276577,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.66112,
+ "matched_keywords": [
+ {
+ "keyword": "Animal Welfare",
+ "score": 0.94644475
+ },
+ {
+ "keyword": "Animal Abuse",
+ "score": 0.83372617
+ }
+ ]
+ },
+ {
+ "query": "animal welfare assessment",
+ "field": "Veterinary",
+ "rank": 3,
+ "topic_name": "Animal Genetics and Reproduction",
+ "total_score": 43.66537,
+ "lexical_score": 47.8941937,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 23.66112,
+ "matched_keywords": [
+ {
+ "keyword": "Animal Welfare",
+ "score": 0.94644475
+ }
+ ]
+ },
+ {
+ "query": "veterinary radiology imaging",
+ "field": "Veterinary",
+ "rank": 1,
+ "topic_name": "Medical Imaging and Analysis",
+ "total_score": 42.368385,
+ "lexical_score": 20.2881794,
+ "title_vector_score": 25.710304,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "veterinary radiology imaging",
+ "field": "Veterinary",
+ "rank": 2,
+ "topic_name": "Medical Imaging Techniques and Applications",
+ "total_score": 40.651024,
+ "lexical_score": 29.642361299999997,
+ "title_vector_score": 25.442198,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "PET/CT",
+ "score": 0.86539626
+ },
+ {
+ "keyword": "imaging",
+ "score": 0.8122933
+ }
+ ]
+ },
+ {
+ "query": "veterinary radiology imaging",
+ "field": "Veterinary",
+ "rank": 3,
+ "topic_name": "Medical Imaging and Pathology Studies",
+ "total_score": 40.50293,
+ "lexical_score": 15.208828,
+ "title_vector_score": 25.294104,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "feline behavior issues",
+ "field": "Veterinary",
+ "rank": 1,
+ "topic_name": "Animal Behavior and Welfare Studies",
+ "total_score": 39.218033,
+ "lexical_score": 13.317806,
+ "title_vector_score": 25.900227,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "feline behavior issues",
+ "field": "Veterinary",
+ "rank": 2,
+ "topic_name": "Hemispheric Asymmetry in Neuroscience",
+ "total_score": 28.235868,
+ "lexical_score": 6.449386,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 21.786482,
+ "matched_keywords": [
+ {
+ "keyword": "Animal Behavior",
+ "score": 0.87145925
+ }
+ ]
+ },
+ {
+ "query": "feline behavior issues",
+ "field": "Veterinary",
+ "rank": 3,
+ "topic_name": "Animal Law and Welfare",
+ "total_score": 23.196878,
+ "lexical_score": 2.9439416,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 20.252937,
+ "matched_keywords": [
+ {
+ "keyword": "Animal Abuse",
+ "score": 0.8101175
+ }
+ ]
+ },
+ {
+ "query": "canine hip dysplasia",
+ "field": "Veterinary",
+ "rank": 1,
+ "topic_name": "Hip disorders and treatments",
+ "total_score": 83.594315,
+ "lexical_score": 69.744269,
+ "title_vector_score": 25.27,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.765541,
+ "matched_keywords": [
+ {
+ "keyword": "Hip Dysplasia",
+ "score": 0.91062164
+ },
+ {
+ "keyword": "Hip Arthroscopy",
+ "score": 0.8284619
+ }
+ ]
+ },
+ {
+ "query": "canine hip dysplasia",
+ "field": "Veterinary",
+ "rank": 2,
+ "topic_name": "Orthopaedic implants and arthroplasty",
+ "total_score": 37.860382,
+ "lexical_score": 26.585307,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 20.296097,
+ "matched_keywords": [
+ {
+ "keyword": "Hip Arthroplasty",
+ "score": 0.8118439
+ }
+ ]
+ },
+ {
+ "query": "canine hip dysplasia",
+ "field": "Veterinary",
+ "rank": 3,
+ "topic_name": "Renal and Vascular Pathologies",
+ "total_score": 33.08759,
+ "lexical_score": 20.283112,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 20.402903,
+ "matched_keywords": [
+ {
+ "keyword": "Fibromuscular Dysplasia",
+ "score": 0.8161161
+ }
+ ]
+ },
+ {
+ "query": "veterinary epidemiology outbreaks",
+ "field": "Veterinary",
+ "rank": 1,
+ "topic_name": "Veterinary medicine and infectious diseases",
+ "total_score": 57.815163,
+ "lexical_score": 18.36015,
+ "title_vector_score": 26.747868,
+ "description_vector_score": 12.707144,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "veterinary epidemiology outbreaks",
+ "field": "Veterinary",
+ "rank": 2,
+ "topic_name": "Animal Disease Management and Epidemiology",
+ "total_score": 55.579353,
+ "lexical_score": 16.27783,
+ "title_vector_score": 27.103722,
+ "description_vector_score": 12.1978,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "veterinary epidemiology outbreaks",
+ "field": "Veterinary",
+ "rank": 3,
+ "topic_name": "Viral Infections and Outbreaks Research",
+ "total_score": 43.14991,
+ "lexical_score": 28.784636,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 21.638435,
+ "matched_keywords": [
+ {
+ "keyword": "Outbreak",
+ "score": 0.8655374
+ }
+ ]
+ },
+ {
+ "query": "companion animal care",
+ "field": "Veterinary",
+ "rank": 1,
+ "topic_name": "Animal Law and Welfare",
+ "total_score": 64.49625,
+ "lexical_score": 42.853999,
+ "title_vector_score": 24.631025,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.069418,
+ "matched_keywords": [
+ {
+ "keyword": "Animal Welfare",
+ "score": 0.88277674
+ }
+ ]
+ },
+ {
+ "query": "companion animal care",
+ "field": "Veterinary",
+ "rank": 2,
+ "topic_name": "Animal Behavior and Welfare Studies",
+ "total_score": 62.536266,
+ "lexical_score": 36.931242,
+ "title_vector_score": 25.502293,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.069418,
+ "matched_keywords": [
+ {
+ "keyword": "Animal Welfare",
+ "score": 0.88277674
+ },
+ {
+ "keyword": "Farm Animal Welfare",
+ "score": 0.8237624
+ }
+ ]
+ },
+ {
+ "query": "companion animal care",
+ "field": "Veterinary",
+ "rank": 3,
+ "topic_name": "Animal Genetics and Reproduction",
+ "total_score": 38.459953,
+ "lexical_score": 33.7361067,
+ "title_vector_score": 0.0,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 22.069418,
+ "matched_keywords": [
+ {
+ "keyword": "Animal Welfare",
+ "score": 0.88277674
+ }
+ ]
+ },
+ {
+ "query": "exotic pet medicine",
+ "field": "Veterinary",
+ "rank": 1,
+ "topic_name": "Herbal Medicine Research Studies",
+ "total_score": 40.890827,
+ "lexical_score": 27.9167622,
+ "title_vector_score": 24.625984,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Medicinal Properties",
+ "score": 0.85681415
+ },
+ {
+ "keyword": "Herbal Medicine",
+ "score": 0.8452623
+ }
+ ]
+ },
+ {
+ "query": "exotic pet medicine",
+ "field": "Veterinary",
+ "rank": 2,
+ "topic_name": "Veterinary medicine and infectious diseases",
+ "total_score": 39.661972,
+ "lexical_score": 14.8498,
+ "title_vector_score": 24.812172,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": []
+ },
+ {
+ "query": "exotic pet medicine",
+ "field": "Veterinary",
+ "rank": 3,
+ "topic_name": "Medicinal Plants and Bioactive Compounds",
+ "total_score": 33.222427,
+ "lexical_score": 12.002782199999999,
+ "title_vector_score": 24.775822,
+ "description_vector_score": 0.0,
+ "keywords_vector_score": 0.0,
+ "matched_keywords": [
+ {
+ "keyword": "Herbal Medicine",
+ "score": 0.8452623
+ },
+ {
+ "keyword": "Medicinal Plants",
+ "score": 0.82357264
+ }
+ ]
+ }
+ ]
+}
diff --git a/llm_evaluations/sentence_transformer/sentence_transformer_eval_all_topics.md b/llm_evaluations/sentence_transformer/sentence_transformer_eval_all_topics.md
new file mode 100644
index 00000000..48ffc99d
--- /dev/null
+++ b/llm_evaluations/sentence_transformer/sentence_transformer_eval_all_topics.md
@@ -0,0 +1,64 @@
+# Approach
+
+**NDCG@10**, **MRR@10**, **Recall@10** :
+
+- Topic: Document
+ - OpenAlex: "display_name": "Impact of Light on Environment and Health",
+- Keyword: Query
+ - OpenAlex: "keywords": [
+ "Nighttime Light Data",
+ "Economic Growth",
+ "Light Pollution",
+ "Remote Sensing",
+ "Population Mapping",
+ "Urbanization Dynamics",
+ "Artificial Light",
+ "Satellite Imagery",
+ "Poverty Prediction",
+ "Ecological Impacts" ]
+
+Each Keyword is searched in the Topic display name Vector space
+
+# Overall Leaderboard
+
+> **Note** First round is invalid
+
+First round (all topics, but included sibling topics messed up metrics)
+| Rank | Model Name | Vector Dim | Params (M) | Query Latency (ms) | Throughput (docs/s) | NDCG@10 | MRR@10 | Recall@10 | Subfield NMI |
+| :--- | :--- | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: |
+| 1 | `intfloat/e5-large-v2` | 1024 | 335.1M | 96.63ms | 5.7 | **0.2304** | 0.5054 | 0.0691 | 0.5917 |
+| 2 | `BAAI/bge-large-en-v1.5` | 1024 | 335.1M | 96.24ms | 5.8 | **0.2292** | 0.4944 | 0.0691 | 0.5921 |
+| 3 | `intfloat/multilingual-e5-large` | 1024 | 559.9M | 104.13ms | 4.8 | **0.2131** | 0.4789 | 0.0636 | 0.5900 |
+| 4 | `google/embeddinggemma-300m` | 768 | 307.6M | 47.11ms | 14.0 | **0.2121** | 0.4479 | 0.0637 | 0.6054 |
+| 5 | `intfloat/multilingual-e5-base` | 768 | 278.0M | 29.11ms | 16.3 | **0.2100** | 0.4641 | 0.0620 | 0.5919 |
+| 6 | `intfloat/multilingual-e5-small` | 384 | 117.7M | 12.15ms | 55.3 | **0.2021** | 0.4446 | 0.0594 | 0.5880 |
+| 7 | `BAAI/bge-m3` | 1024 | 567.8M | 96.92ms | 4.8 | **0.1879** | 0.4219 | 0.0544 | 0.5929 |
+| 8 | `paraphrase-multilingual-mpnet-base-v2` | 768 | 278.0M | 29.65ms | 17.0 | **0.1792** | 0.3565 | 0.0520 | 0.6010 |
+| 9 | `sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2` | 384 | 117.7M | 12.12ms | 58.1 | **0.1748** | 0.3494 | 0.0514 | 0.5940 |
+
+Second adjusted round (500 topics sample size)(seperated clustering into name and description fields)
+| Rank | Model Name | Vector Dim | Params (M) | Query Latency (ms) | Throughput (docs/s) | NDCG@10 | MRR@10 | Recall@10 | Name NMI | Desc NMI |
+| :--- | :--- | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: |
+| 1 | `intfloat/e5-large-v2` | 1024 | 335.1M | 101.71ms | 5.6 | **0.4261** | 0.3797 | 0.5758 | 0.5254 | 0.5947 |
+| 2 | `BAAI/bge-large-en-v1.5` | 1024 | 335.1M | 98.38ms | 5.6 | **0.4084** | 0.3628 | 0.5546 | 0.5591 | 0.5961 |
+| 3 | `intfloat/multilingual-e5-large` | 1024 | 559.9M | 111.27ms | 4.8 | **0.3956** | 0.3501 | 0.5424 | 0.5171 | 0.5845 |
+| 4 | `intfloat/multilingual-e5-base` | 768 | 278.0M | 28.86ms | 17.9 | **0.3807** | 0.3357 | 0.5256 | 0.5374 | 0.5851 |
+| 5 | `google/embeddinggemma-300m` | 768 | 307.6M | 45.55ms | 15.7 | **0.3558** | 0.3121 | 0.4976 | 0.5485 | 0.6148 |
+| 6 | `intfloat/multilingual-e5-small` | 384 | 117.7M | 11.74ms | 57.6 | **0.3531** | 0.3050 | 0.5078 | 0.5450 | 0.5914 |
+| 7 | `sentence-transformers/all-MiniLM-L6-v2` | 384 | 22.7M | 7.07ms | 117.0 | **0.3471** | 0.3034 | 0.4882 | 0.5636 | 0.5936 |
+| 8 | `BAAI/bge-m3` | 1024 | 567.8M | 96.19ms | 4.9 | **0.3221** | 0.2829 | 0.4484 | 0.5246 | 0.5885 |
+| 9 | `sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2` | 384 | 117.7M | 12.63ms | 58.0 | **0.2350** | 0.2005 | 0.3468 | 0.5544 | 0.5984 |
+| 10 | `paraphrase-multilingual-mpnet-base-v2` | 768 | 278.0M | 24.67ms | 22.2 | **0.2347** | 0.1999 | 0.3480 | 0.5638 | 0.6043 |
+Baseline with all topics for second round:
+| Rank | Model Name | Vector Dim | Params (M) | Query Latency (ms) | Throughput (docs/s) | NDCG@10 | MRR@10 | Recall@10 | Name NMI | Desc NMI |
+| 1 | `intfloat/multilingual-e5-base` | 768 | 278.0M | 32.83ms | 16.5 | **0.3751** | 0.3290 | 0.5234 | 0.5374 | 0.5851 |
+
+## Metric Definitions:
+
+- **NDCG@10**: Normalized Discounted Cumulative Gain. Measures how well the query maps to the target topic at the top 10 positions.
+- **MRR@10**: Mean Reciprocal Rank. Looks at the average of `1 / rank` for the first correctly matched topic.
+- **Recall@10**: Percentage of times the target document (excluding sibling topics) was successfully retrieved in the top 10.
+- **Name NMI**: Normalized Mutual Information of K-Means clusters of topic display names against ground truth OpenAlex subfields.
+- **Desc NMI**: Normalized Mutual Information of K-Means clusters of topic descriptions against ground truth OpenAlex subfields.
+- **Query Latency**: Time to encode a single search keyword.
+- **Throughput**: Ingestion batch encoding speed.
diff --git a/service/Dockerfile b/service/Dockerfile
index 6ecf783c..d3ce6d2d 100644
--- a/service/Dockerfile
+++ b/service/Dockerfile
@@ -20,7 +20,9 @@ RUN pip install --root-user-action=ignore --no-cache-dir --disable-pip-version-c
"sqlmodel~=0.0.33" \
"argon2-cffi~=25.1.0" \
"pandas~=2.3.3" \
- "pypdf==6.14.2"
+ "pypdf==6.14.2"\
+ "docker~=7.1.0" \
+ "croniter~=6.0.0"
COPY [ "src/main", "/home" ]
COPY [ "src/data", "/data" ]
diff --git a/service/Dockerfile.base b/service/Dockerfile.base
index b278044a..41b4af31 100644
--- a/service/Dockerfile.base
+++ b/service/Dockerfile.base
@@ -6,5 +6,14 @@ RUN mkdir /test && \
pip install --root-user-action=ignore --no-cache-dir torch --index-url https://download.pytorch.org/whl/cpu && \
pip install --root-user-action=ignore --no-cache-dir "sentence-transformers~=5.5.1"
+ARG MODEL_NAME=intfloat/multilingual-e5-base
+ENV MODEL_NAME=${MODEL_NAME}
ENV SENTENCE_TRANSFORMERS_HOME=/models
-RUN python -c "from sentence_transformers import SentenceTransformer; SentenceTransformer('intfloat/multilingual-e5-base')"
+ENV HF_HOME=/models
+
+RUN python -c "import os, sentence_transformers; sentence_transformers.SentenceTransformer(os.environ['MODEL_NAME'])"
+
+ENV HF_HUB_OFFLINE=1
+ENV TRANSFORMERS_OFFLINE=1
+ENV HF_DATASETS_OFFLINE=1
+
diff --git a/service/build.gradle b/service/build.gradle
index 066a7af3..488753d7 100644
--- a/service/build.gradle
+++ b/service/build.gradle
@@ -61,7 +61,7 @@ task exportOpenApiSpec(type: Exec) {
task runServeContainer(type: Exec) {
dependsOn createImage
- commandLine 'docker', 'run', '--rm', '-v', "${projectDir}/src/main:/home", '-v', "${projectDir}/src/data:/data", '-p', '8000:8000', '-e', "DOCKER_DEFAULT_PLATFORM='${targetPlatform}'", '-e', "INSE_AUTH_STANDALONE=true", '-e', 'INSE_OPENALEX_WORKS_API_KEY', '--name', "${imageName}-service-serve", '--detach', "${imagePrefix}-service:${imageVersion}", 'run', '--reload', '--reload-dir', './inse'
+ commandLine 'docker', 'run', '--rm', '-v', "${projectDir}/src/main:/home", '-v', "${projectDir}/src/data:/data", '-v', '/var/run/docker.sock:/var/run/docker.sock', '-p', '8000:8000', '-e', "DOCKER_DEFAULT_PLATFORM='${targetPlatform}'", '-e', "INSE_AUTH_STANDALONE=true", '-e', 'INSE_OPENALEX_WORKS_API_KEY', '--name', "${imageName}-service-serve", '--detach', "${imagePrefix}-service:${imageVersion}", 'run', '--reload', '--reload-dir', './inse'
}
task stopServeContainer(type: Exec) {
diff --git a/service/scripts/demo/demo.py b/service/scripts/demo/demo.py
new file mode 100644
index 00000000..1b35fc43
--- /dev/null
+++ b/service/scripts/demo/demo.py
@@ -0,0 +1,20 @@
+import logging
+import sys
+import time
+
+logging.basicConfig(level=logging.INFO, format="%(asctime)s %(levelname)s %(message)s")
+logger = logging.getLogger(__name__)
+
+
+def main() -> None:
+ seconds = int(sys.argv[1]) if len(sys.argv) > 1 else 20
+ logger.info(f"Demo job started, running for {seconds} seconds.")
+ for elapsed in range(1, seconds + 1):
+ time.sleep(1)
+ if elapsed % 5 == 0:
+ logger.info(f"Progress: {elapsed}/{seconds} seconds.")
+ logger.info("Demo job finished successfully.")
+
+
+if __name__ == "__main__":
+ main()
diff --git a/service/scripts/jobs-image/Dockerfile b/service/scripts/jobs-image/Dockerfile
new file mode 100644
index 00000000..44a70636
--- /dev/null
+++ b/service/scripts/jobs-image/Dockerfile
@@ -0,0 +1,21 @@
+# Background-jobs worker image. Build from the repo root:
+# docker build -f service/scripts/jobs-image/Dockerfile -t docker.nes.uni-due.de/inse/background-jobs:latest .
+FROM python:3.13-slim
+
+WORKDIR /app
+
+# Headless Chrome for the bund foerderportal crawler (Selenium).
+RUN apt-get update \
+ && apt-get install -y --no-install-recommends chromium chromium-driver \
+ && rm -rf /var/lib/apt/lists/*
+ENV CHROME_BIN=/usr/bin/chromium \
+ CHROMEDRIVER_PATH=/usr/bin/chromedriver
+
+# Install dependencies
+COPY service/scripts/jobs-image/requirements.txt .
+RUN pip install --no-cache-dir -r requirements.txt
+
+# Copy the job code.
+COPY background-jobs/app/ ./
+
+COPY service/scripts/ ./service/scripts/
diff --git a/service/scripts/jobs-image/README.md b/service/scripts/jobs-image/README.md
new file mode 100644
index 00000000..dfe8da7e
--- /dev/null
+++ b/service/scripts/jobs-image/README.md
@@ -0,0 +1,137 @@
+# Job Images
+
+## Anlegen und Bearbeiten eines Jobs (UI)
+
+Ein Job im Frontend ist nur eine **Definition** in der Datenbank, die auf ein
+Image zeigt. Der eigentliche Job-Code steckt im Image. Reihenfolge daher immer:
+**erst das Image nach Nexus pushen, dann den Job in der UI anlegen.**
+
+### 1. Image bauen und pushen
+
+Aus dem Repo-Root (Build-Kontext = Root), Beispiel News-Crawler (jedes
+Dockerfile nennt in seinem Kopf den eigenen Build-Befehl):
+
+```bash
+docker build -f service/scripts/jobs-image/news-crawl/Dockerfile \
+ -t docker.nes.uni-due.de/inse/jobs/news-crawl:latest .
+docker push docker.nes.uni-due.de/inse/jobs/news-crawl:latest
+```
+
+Login zu Nexus vorher, falls nötig: `docker login docker.nes.uni-due.de`
+(Zugangsdaten wie in der Backend-`.env`, `BACKGROUND_JOBS_REGISTRY_*`).
+
+Erst wenn Push erfolgreich war, taucht das Image in der Image-Auswahl der UI auf.
+
+### 2. Job anlegen
+
+1. Als **Superadmin** anmelden und die Seite **Jobs** öffnen.
+2. Oben rechts prüfen, dass die Karten **Docker-Daemon** und **Nexus-Registry**
+ grün („Erreichbar") sind. Ist Nexus rot, bleibt die Image-Auswahl leer —
+ dann Registry/`.env` prüfen, bevor es weitergeht.
+3. Auf **Neuer Job** klicken. Im Dialog:
+ - **Name** – Pflichtfeld, muss eindeutig sein (sonst 409).
+ - **Beschreibung**, **Ziel-Index** – optional, nur zur Anzeige.
+ - **Image** – Pflichtfeld. In das Feld tippen und aus der
+ Nexus-Autovervollständigung den passenden Tag wählen, z. B.
+ `docker.nes.uni-due.de/inse/jobs/news-crawl:latest`. Leer = Fehler.
+ - **Befehl** – optional. Wird an den `ENTRYPOINT` des Images **angehängt**
+ (z. B. `--max-items 50`). Leer lassen, wenn die Image-Defaults reichen.
+ - **Umgebungsvariablen** – optional, `KEY=VALUE` pro Zeile. Bei
+ Nexus-Images werden die INSE-Zugangsdaten (Elasticsearch/LLM) ohnehin
+ automatisch ergänzt; hier nur Zusätzliches/Overrides.
+4. **Speichern**. Der Job erscheint in der Tabelle, zunächst ohne Zeitplan
+ (= nur manuell).
+
+### 3. Job ausführen und beobachten
+
+- **▶ Jetzt ausführen** startet einen Lauf. Das Backend pullt das Image und
+ startet einen Container namens `-run-`.
+- **⏹ Stoppen** bricht einen laufenden Lauf ab.
+- **🗎 Logs** zeigt die Container-Logs (live während des Laufs, danach die in der
+ DB gespeicherten letzten Zeilen) sowie Dauer bzw. „läuft seit".
+- Schlägt der Pull fehl (Image gelöscht/nicht gepusht), wird der Lauf
+ **fehlgeschlagen** mit `failed to pull image …` im Log — dann Image neu pushen.
+
+### 4. Job bearbeiten
+
+- In der **Name**-Spalte erscheint beim Hovern ein **Stift**-Symbol → öffnet den
+ Bearbeiten-Dialog. Dort lassen sich **Name, Beschreibung, Ziel-Index, Image,
+ Befehl und Env** ändern (gleiche Validierung wie beim Anlegen).
+- Das **Kalender**-Symbol in der Aktionsspalte öffnet den **Zeitplan**-Dialog:
+ Cron-Ausdruck setzen (5 Felder) und Job aktiv/inaktiv schalten. Ein Zeitplan
+ macht aus einem manuellen Job einen automatisch laufenden.
+- Bearbeiten ist gesperrt, solange ein Lauf des Jobs läuft.
+
+### 5. Job löschen
+
+Das **Papierkorb**-Symbol entfernt die Job-Definition. Das Image in Nexus bleibt
+davon unberührt (siehe unten zum Image-Löschen).
+
+One Docker image per job script. Each image installs only its own dependencies
+and bakes its script as the `ENTRYPOINT`. Most jobs then run with no `command`
+override — the job definition just points `image` at the matching tag. Where
+several jobs share one script (the demos), they point at the same image and
+differ only by their `command`.
+
+## Images
+
+| Job (DB name) | Image | Entrypoint | Notes |
+| ----------------------- | --------------------- | ---------------------------------------------------------- | ---------------------------------------------------------------------------------- |
+| News-Crawler | `jobs/news-crawl` | `run_pipeline.py` | scrapy<2.13, Twisted<24.7; uploads to `NEWS_UPLOAD_INDEX` |
+| Bund-Crawler | `jobs/bund-crawl` | `gpc.data.py --max-rows 200` | headless Chrome; uploads to `BUND_UPLOAD_INDEX`; capped, full export is ~300k rows |
+| Project-Topic-Mapping | `jobs/project-topics` | `map_project_topics --output-index docker-job_test` | reads projects_bund_v1; needs host backend |
+| News-Topic-Mapping | `jobs/news-topics` | `map_news_topics --output-index aktuell_openalex_topics` | bundles both topic_mapper pkgs; needs host backend |
+| News-Keyword-Extraction | `jobs/news-keywords` | `sync.py --update-keywords --target-index docker-job_test` | ES + LLM creds; writes to test index |
+| Demo-Job A / B / C | `jobs/demo` | `demo.py` (seconds via command: `20` / `25` / `30`) | no dependencies; one image, three job rows |
+
+Each image is its own repository under the `jobs/` path namespace, prefixed
+`docker.nes.uni-due.de/inse/` (e.g. `docker.nes.uni-due.de/inse/jobs/news-crawl:latest`).
+The three demo jobs share the single `jobs/demo` repository.
+
+The entrypoints carry no run limits: anything set in the job's `command` field is
+appended to the entrypoint, so limits (`--max-items`, `--max-docs`, `--limit`) are
+passed per run from the UI. The one exception is the Bund-Crawler, which keeps a
+`--max-rows` cap in the image because its full export is ~300k rows.
+
+## Build
+
+From the repo root (the build context must be the repo root so the Dockerfiles
+can copy `service/scripts/…` and `background-jobs/app/`):
+
+```bash
+docker build -f service/scripts/jobs-image/news-crawl/Dockerfile \
+ -t docker.nes.uni-due.de/inse/jobs/news-crawl:latest .
+docker push docker.nes.uni-due.de/inse/jobs/news-crawl:latest
+```
+
+Each image's Dockerfile header lists its own build command.
+
+## Running locally without pushing
+
+Before each run the backend pulls the job's image from the registry when it is a
+registry image (host `docker.nes.uni-due.de`). **There is no fallback to a local
+copy:** if the pull fails, the run is marked _failed_ and the error is written to
+the run log — a stale local image is never used silently. To run a locally built
+image without pushing it, skip the pull attempt entirely:
+
+```bash
+export BACKGROUND_JOBS_PULL_BEFORE_RUN=false
+```
+
+With the pull disabled the backend uses whatever image with that tag exists on
+the Docker host, so `docker build -t docker.nes.uni-due.de/inse/jobs/:latest .`
+is enough for local runs.
+
+## Env vars
+
+Because every tag lives under the `docker.nes.uni-due.de` registry host, the
+backend treats these as registry images and injects the INSE Elasticsearch / LLM
+credentials automatically (plus any per-job `env`).
+
+Most images write to the test index by default: the crawlers upload into the
+index named by `NEWS_UPLOAD_INDEX` / `BUND_UPLOAD_INDEX` (both baked to
+`docker-job_test` in their Dockerfile), and the project mapper and the keyword
+extraction write to `docker-job_test` via `--output-index` / `--target-index`.
+The exception is News-Topic-Mapping, which writes to `aktuell_openalex_topics`.
+To not contact Elasticsearch at all, pass `--skip-upload` (crawlers) or
+`--dry-run` (mappers) through the job's command field.
diff --git a/service/scripts/jobs-image/bund-crawl/Dockerfile b/service/scripts/jobs-image/bund-crawl/Dockerfile
new file mode 100644
index 00000000..dcbebcbb
--- /dev/null
+++ b/service/scripts/jobs-image/bund-crawl/Dockerfile
@@ -0,0 +1,28 @@
+# Bund-Crawler (foerderportal export via headless Chrome). Build from the repo root:
+# docker build -f service/scripts/jobs-image/bund-crawl/Dockerfile -t docker.nes.uni-due.de/inse/jobs/bund-crawl:latest .
+FROM python:3.13-slim
+
+WORKDIR /app
+ENV PYTHONUNBUFFERED=1
+# Upload the crawled projects into the shared test index (gpc.data.py reads
+# ELASTICSEARCH_INSE_* creds + BUND_UPLOAD_INDEX from the env).
+ENV BUND_UPLOAD_INDEX=docker-job_test
+
+# Headless Chrome for the Selenium crawler.
+RUN apt-get update \
+ && apt-get install -y --no-install-recommends chromium chromium-driver \
+ && rm -rf /var/lib/apt/lists/*
+ENV CHROME_BIN=/usr/bin/chromium \
+ CHROMEDRIVER_PATH=/usr/bin/chromedriver
+
+COPY service/scripts/jobs-image/bund-crawl/requirements.txt .
+RUN pip install --no-cache-dir -r requirements.txt
+
+COPY service/scripts/projects/bund/ ./service/scripts/projects/bund/
+
+WORKDIR /app/service/scripts/projects/bund
+
+# Capped on purpose: the full export is ~300k rows, so an uncapped run would
+# write that entire volume into BUND_UPLOAD_INDEX. Raise or drop the cap by
+# passing --max-rows N through the job's command field.
+ENTRYPOINT ["python", "gpc.data.py", "--max-rows", "200"]
diff --git a/service/scripts/jobs-image/bund-crawl/requirements.txt b/service/scripts/jobs-image/bund-crawl/requirements.txt
new file mode 100644
index 00000000..f660d056
--- /dev/null
+++ b/service/scripts/jobs-image/bund-crawl/requirements.txt
@@ -0,0 +1,3 @@
+selenium~=4.20
+pandas~=2.2
+requests~=2.32
diff --git a/service/scripts/jobs-image/news-crawl/Dockerfile b/service/scripts/jobs-image/news-crawl/Dockerfile
new file mode 100644
index 00000000..86101794
--- /dev/null
+++ b/service/scripts/jobs-image/news-crawl/Dockerfile
@@ -0,0 +1,21 @@
+# News-Crawler (UDE 'aktuell'). Build from the repo root:
+# docker build -f service/scripts/jobs-image/news-crawl/Dockerfile -t docker.nes.uni-due.de/inse/jobs/news-crawl:latest .
+#
+# scrapy<2.13 + Twisted<24.7 are load-bearing: the spiders use the removed
+# start_requests() hook, and newer versions silently crawl 0 items.
+FROM python:3.13-slim
+
+WORKDIR /app
+ENV PYTHONUNBUFFERED=1
+# Upload the crawled articles into the shared test index (see upload_aktuell.py,
+# which reads ELASTICSEARCH_INSE_* creds + NEWS_UPLOAD_INDEX from the env).
+ENV NEWS_UPLOAD_INDEX=docker-job_test
+
+COPY service/scripts/jobs-image/news-crawl/requirements.txt .
+RUN pip install --no-cache-dir -r requirements.txt
+
+COPY service/scripts/news/ude/ ./service/scripts/news/ude/
+
+# Uncapped: crawls every article and uploads to NEWS_UPLOAD_INDEX. Limit a run by
+# passing --max-items N through the job's command field.
+ENTRYPOINT ["python", "service/scripts/news/ude/run_pipeline.py"]
diff --git a/service/scripts/jobs-image/news-crawl/requirements.txt b/service/scripts/jobs-image/news-crawl/requirements.txt
new file mode 100644
index 00000000..394c2a2d
--- /dev/null
+++ b/service/scripts/jobs-image/news-crawl/requirements.txt
@@ -0,0 +1,3 @@
+scrapy>=2.11,<2.13
+Twisted>=22.10,<24.7
+requests~=2.32
diff --git a/service/scripts/jobs-image/news-keywords/Dockerfile b/service/scripts/jobs-image/news-keywords/Dockerfile
new file mode 100644
index 00000000..e8059947
--- /dev/null
+++ b/service/scripts/jobs-image/news-keywords/Dockerfile
@@ -0,0 +1,21 @@
+# News keyword extraction (LLM keyword extraction into docker-job_test).
+# Build from the repo root:
+# docker build -f service/scripts/jobs-image/news-keywords/Dockerfile -t docker.nes.uni-due.de/inse/jobs/news-keywords:latest .
+#
+# Needs Elasticsearch + LLM creds (injected as env vars by the backend for
+# registry images). Calls the LLM once per entry.
+FROM python:3.13-slim
+
+WORKDIR /app
+ENV PYTHONUNBUFFERED=1
+
+COPY service/scripts/jobs-image/news-keywords/requirements.txt .
+RUN pip install --no-cache-dir -r requirements.txt
+
+COPY background-jobs/app/ ./
+
+# Writes into docker-job_test, leaving production aktuell_postproc untouched.
+# A non-postproc target re-extracts entries that already have keywords (real
+# content) and updates them in place, keyed on news_id (re-runs overwrite, no
+# duplicates). Cap a run by appending --limit N via the job's command field.
+ENTRYPOINT ["python", "sync.py", "--update-keywords", "--target-index", "docker-job_test"]
diff --git a/service/scripts/jobs-image/news-keywords/requirements.txt b/service/scripts/jobs-image/news-keywords/requirements.txt
new file mode 100644
index 00000000..d5f8a74c
--- /dev/null
+++ b/service/scripts/jobs-image/news-keywords/requirements.txt
@@ -0,0 +1,3 @@
+requests~=2.32
+openai~=2.41
+python-dotenv~=1.0
diff --git a/service/scripts/jobs-image/news-topics/Dockerfile b/service/scripts/jobs-image/news-topics/Dockerfile
new file mode 100644
index 00000000..916a9d82
--- /dev/null
+++ b/service/scripts/jobs-image/news-topics/Dockerfile
@@ -0,0 +1,24 @@
+# News-Topic-Mapping (news keywords -> OpenAlex topics). Build from the repo root:
+# docker build -f service/scripts/jobs-image/news-topics/Dockerfile -t docker.nes.uni-due.de/inse/jobs/news-topics:latest .
+#
+# map_news_topics imports map_project_topics as its "base", so both topic_mapper
+# packages must be present. Needs a reachable backend and Elasticsearch creds
+# (injected as env vars by the backend for registry images).
+FROM python:3.13-slim
+
+WORKDIR /app
+ENV PYTHONUNBUFFERED=1
+
+COPY service/scripts/jobs-image/news-topics/requirements.txt .
+RUN pip install --no-cache-dir -r requirements.txt
+
+COPY service/scripts/news/topic_mapper/ ./service/scripts/news/topic_mapper/
+COPY service/scripts/projects/topic_mapper/ ./service/scripts/projects/topic_mapper/
+
+# Writes topic mappings into aktuell_openalex_topics. Only maps (article, keyword)
+# pairs not already present in the output index; pass --overwrite to re-map all.
+# Uncapped: limit a run by passing --max-docs N through the job's command field.
+# host.docker.internal reaches the host backend for vector search.
+ENTRYPOINT ["python", "-m", "service.scripts.news.topic_mapper.map_news_topics", \
+ "--output-index", "aktuell_openalex_topics", \
+ "--api-base-url", "http://host.docker.internal:8000"]
diff --git a/service/scripts/jobs-image/news-topics/requirements.txt b/service/scripts/jobs-image/news-topics/requirements.txt
new file mode 100644
index 00000000..7507eb03
--- /dev/null
+++ b/service/scripts/jobs-image/news-topics/requirements.txt
@@ -0,0 +1,2 @@
+httpx>=0.27
+python-dotenv>=1.0
diff --git a/service/scripts/jobs-image/project-topics/Dockerfile b/service/scripts/jobs-image/project-topics/Dockerfile
new file mode 100644
index 00000000..f8a46a05
--- /dev/null
+++ b/service/scripts/jobs-image/project-topics/Dockerfile
@@ -0,0 +1,25 @@
+# Projekt-Topic-Mapping (bund keywords -> OpenAlex topics). Build from the repo root:
+# docker build -f service/scripts/jobs-image/project-topics/Dockerfile -t docker.nes.uni-due.de/inse/jobs/project-topics:latest .
+#
+# Needs a reachable backend (vector search) and Elasticsearch creds. The creds
+# arrive as env vars injected by the backend for registry images.
+FROM python:3.13-slim
+
+WORKDIR /app
+ENV PYTHONUNBUFFERED=1
+
+COPY service/scripts/jobs-image/project-topics/requirements.txt .
+RUN pip install --no-cache-dir -r requirements.txt
+
+COPY service/scripts/projects/topic_mapper/ ./service/scripts/projects/topic_mapper/
+
+# Writes topic mappings into docker-job_test. Only maps (project, keyword) pairs
+# not already present in the output index, so an interrupted run can be resumed.
+# There is no overwrite flag: to re-map all, point --output-index at a fresh index.
+# Uncapped: limit a run by passing --max-docs N through the job's command field.
+# host.docker.internal reaches the host backend for vector search.
+ENTRYPOINT ["python", "-m", "service.scripts.projects.topic_mapper.map_project_topics", \
+ "--source-index", "projects_bund_v1", \
+ "--text-field", "Leistungsplansystematik_fullname", \
+ "--output-index", "docker-job_test", \
+ "--api-base-url", "http://host.docker.internal:8000"]
diff --git a/service/scripts/jobs-image/project-topics/requirements.txt b/service/scripts/jobs-image/project-topics/requirements.txt
new file mode 100644
index 00000000..7507eb03
--- /dev/null
+++ b/service/scripts/jobs-image/project-topics/requirements.txt
@@ -0,0 +1,2 @@
+httpx>=0.27
+python-dotenv>=1.0
diff --git a/service/scripts/jobs-image/requirements.txt b/service/scripts/jobs-image/requirements.txt
new file mode 100644
index 00000000..6d1122cd
--- /dev/null
+++ b/service/scripts/jobs-image/requirements.txt
@@ -0,0 +1,9 @@
+requests~=2.32
+openai~=2.41
+python-dotenv~=1.0
+scrapy>=2.11,<2.13
+Twisted>=22.10,<24.7
+httpx~=0.27
+selenium~=4.20
+pandas~=2.2
+elasticsearch>=7.17,<8
diff --git a/service/scripts/news/topic_mapper/README.md b/service/scripts/news/topic_mapper/README.md
new file mode 100644
index 00000000..048058ec
--- /dev/null
+++ b/service/scripts/news/topic_mapper/README.md
@@ -0,0 +1,80 @@
+# News → OpenAlex topic mapping
+
+Batch counterpart to `news.logic._match_topics_for_keywords`, which matches an
+article's keywords on every detail request without persisting the result. This
+script maps the LLM-extracted `keywords` of the enriched articles in
+`aktuell_postproc` to OpenAlex topics via the backend's
+`/api/topics/vector-search` endpoint, and persists one document per
+(article, keyword) pair into an output index with the explicit mapping from
+`news_mapping.py`:
+
+```json
+{
+ "news_id": "...",
+ "keyword": "",
+ "source_index": "aktuell_postproc",
+ "source_field": "keywords",
+ "topic_matches": [
+ {
+ "rank": 1,
+ "topic_id": "...",
+ "topic_display_name": "...",
+ "subfield": "...",
+ "field": "...",
+ "domain": "...",
+ "match_score": null
+ }
+ ],
+ "match_method": "sentence_transformer",
+ "model_name": "...",
+ "built_at": "..."
+}
+```
+
+`match_score` is `null` because the endpoint does not expose Elasticsearch
+scores; `rank` preserves the search result order.
+
+This script only ever **reads** `aktuell_postproc` and writes into the separate test index. Caching the topics back into `aktuell_postproc` is done by the news detail endpoint (`news/logic.py`), not here.
+
+Keywords are **not** extracted here. `background-jobs/app/sync.py` (job `news`)
+writes them into `aktuell_postproc` first, the same way the bund projects
+already carry their keyword field before `map_project_topics.py` runs.
+
+The Elasticsearch plumbing (point-in-time scan, batched topic search, bulk
+indexing, retries) is imported from
+`service/scripts/projects/topic_mapper/map_project_topics.py` rather than
+duplicated — that directory must stay next to this one.
+
+## Setup
+
+```bash
+pip install -r requirements.txt
+```
+
+Credentials are read from `service/src/main/inse/.env` by default (override
+with `--env-file`), and the backend must be running (e.g. `./gradlew serve`)
+because the topic search goes through its API.
+
+## Usage
+
+```bash
+python map_news_topics.py --output-index docker-job_test
+```
+
+Test run against a few articles without writing anything:
+
+```bash
+python map_news_topics.py --output-index docker-job_test --dry-run --max-docs 50
+```
+
+Runs are resumable: (article, keyword) pairs already present in the output
+index are skipped, and each unique keyword is searched only once across all
+articles that use it. Pairs whose search failed are left unwritten so the next
+run retries them.
+
+## As a background job
+
+Packaged as the `news-topics` registry image (see
+`service/scripts/jobs-image/news-topics/Dockerfile`), writing into
+`aktuell_openalex_topics`. The run is uncapped; limit a run by passing
+`--max-docs N` through the job's command field.
diff --git a/service/scripts/news/topic_mapper/map_news_topics.py b/service/scripts/news/topic_mapper/map_news_topics.py
new file mode 100644
index 00000000..50011f6b
--- /dev/null
+++ b/service/scripts/news/topic_mapper/map_news_topics.py
@@ -0,0 +1,329 @@
+
+"""
+map_news_topics.py — Map news keywords to OpenAlex topics.
+
+Batch counterpart to news.logic._match_topics_for_keywords. This script streams
+the enriched articles from aktuell_postproc, reads their LLM-extracted
+'keywords', matches every unique keyword against OpenAlex topics and persists
+one document per (article, keyword) pair into a separate output index:
+
+ {news_id, keyword, source_index, source_field, topic_matches[],
+ match_method, model_name, built_at}
+
+The source index is only ever read. Writing the topics back into
+aktuell_postproc is the job of the news detail endpoint, not of this script.
+
+Keywords are not extracted here — sync.py (job 'news') writes them into
+aktuell_postproc, the same way the bund projects already carry their keyword
+field before map_project_topics.py runs.
+
+The run is resumable: (article, keyword) pairs already present in the output
+index are skipped, so an interrupted run can simply be restarted. Each unique
+keyword is searched only once, across all articles that use it.
+
+Usage:
+ python map_news_topics.py --output-index docker-job_test
+
+Requires ELASTICSEARCH_INSE_URL/ELASTICSEARCH_INSE_API_KEY in the environment
+or in the service .env, plus a running backend serving
+/api/topics/vector-search (e.g. ./gradlew serve).
+"""
+from __future__ import annotations
+
+import argparse
+import asyncio
+import hashlib
+import json
+import logging
+import os
+import sys
+from datetime import UTC, datetime
+from pathlib import Path
+
+from dotenv import load_dotenv
+
+sys.path.insert(0, str(Path(__file__).resolve().parents[2] / "projects" / "topic_mapper"))
+import map_project_topics as base
+
+sys.path.insert(0, str(Path(__file__).resolve().parent))
+from news_mapping import NEWS_TOPICS_MAPPING
+
+logging.basicConfig(level=logging.INFO, format="%(asctime)s %(levelname)s %(message)s")
+logger = logging.getLogger(__name__)
+
+SOURCE_INDEX = "aktuell_postproc"
+KEYWORD_FIELD = "keywords"
+NEWS_ID_FIELD = "news_id"
+
+
+async def ensure_index(index: str, cluster: str) -> None:
+ """Creates the output index with the explicit mapping if it does not exist."""
+ url, headers = base.es_headers(cluster)
+ client = base.get_http_client()
+
+ response = await client.head(f"{url}/{index}", headers=headers)
+ if response.status_code == 200:
+ logger.info("Output index '%s' already exists.", index)
+ return
+
+ response = await client.put(
+ f"{url}/{index}", json={"mappings": NEWS_TOPICS_MAPPING}, headers=headers
+ )
+ response.raise_for_status()
+ logger.info("Created output index '%s' with explicit mapping.", index)
+
+
+def output_doc_id(news_id: str, keyword: str) -> str:
+ """Stable id per (article, keyword) pair.
+
+ Derived from news_id rather than the aktuell_postproc document id, so a
+ reindex of the postproc index does not duplicate the mappings.
+ """
+ digest = hashlib.sha1(keyword.encode("utf-8")).hexdigest()[:12]
+ return f"{news_id}::{digest}"
+
+
+async def fetch_source_entries(cluster: str, max_docs: int | None) -> dict[str, tuple[str, str]]:
+ """Returns output_doc_id -> (news_id, keyword) for every enriched article."""
+ entries: dict[str, tuple[str, str]] = {}
+ total = 0
+ docs_with_keywords = 0
+
+ async for hit in base.scan(
+ index=SOURCE_INDEX,
+ cluster=cluster,
+ query={"exists": {"field": KEYWORD_FIELD}},
+ source=[NEWS_ID_FIELD, KEYWORD_FIELD],
+ ):
+ total += 1
+ doc_source = hit.get("_source", {})
+ keywords = base.extract_text_values(doc_source, KEYWORD_FIELD)
+ news_id = doc_source.get(NEWS_ID_FIELD)
+ if keywords and news_id:
+ docs_with_keywords += 1
+ for keyword in keywords:
+ entries[output_doc_id(news_id, keyword)] = (news_id, keyword)
+ if total % 50000 == 0:
+ logger.info("Scanned %d source documents...", total)
+ if max_docs and total >= max_docs:
+ logger.info("Stopping scan at --max-docs=%d.", max_docs)
+ break
+
+ logger.info(
+ "Scanned %d documents from '%s', %d with non-empty '%s' (%d article/keyword pairs).",
+ total,
+ SOURCE_INDEX,
+ docs_with_keywords,
+ KEYWORD_FIELD,
+ len(entries),
+ )
+ return entries
+
+
+async def run(args: argparse.Namespace) -> None:
+ built_at = datetime.now(UTC).isoformat()
+ model_name = os.getenv("SENTENCE_TRANSFORMERS_MODEL_NAME")
+
+ await base.check_backend(args.api_base_url)
+
+ if not args.dry_run:
+ await ensure_index(index=args.output_index, cluster=args.output_cluster)
+
+ entries = await fetch_source_entries(cluster=args.source_cluster, max_docs=args.max_docs)
+ if not entries:
+ logger.warning("No keywords in '%s' — run the 'news' job first.", SOURCE_INDEX)
+ return
+
+ if args.overwrite:
+ logger.info("--overwrite: re-mapping every pair, existing documents are replaced.")
+ covered = set()
+ else:
+ covered = await base.fetch_covered_doc_ids(
+ index=args.output_index, cluster=args.output_cluster
+ )
+ pending = {doc_id: entry for doc_id, entry in entries.items() if doc_id not in covered}
+ logger.info(
+ "Coverage: %d/%d pairs already in '%s', %d still to be processed.",
+ len(entries) - len(pending),
+ len(entries),
+ args.output_index,
+ len(pending),
+ )
+ if not pending:
+ logger.info("Nothing left to process.")
+ return
+
+ docs_by_keyword: dict[str, list[tuple[str, str]]] = {}
+ for doc_id, (news_id, keyword) in pending.items():
+ docs_by_keyword.setdefault(keyword, []).append((doc_id, news_id))
+ unique_keywords = sorted(docs_by_keyword)
+ logger.info(
+ "%d unique keywords cover the %d pending pairs.", len(unique_keywords), len(pending)
+ )
+
+ backup_docs: list[dict] = []
+ docs_done = 0
+ keywords_done = 0
+
+ for start in range(0, len(unique_keywords), args.text_batch_size):
+ chunk = unique_keywords[start : start + args.text_batch_size]
+ matches_by_keyword = await base.match_keywords(
+ chunk,
+ api_base_url=args.api_base_url,
+ top_k=args.top_k,
+ search_type=args.search_type,
+ )
+
+ documents = []
+ for keyword in chunk:
+ if keyword not in matches_by_keyword:
+ continue # search failed — left for the next run
+ for doc_id, news_id in docs_by_keyword[keyword]:
+ documents.append(
+ (
+ doc_id,
+ {
+ "news_id": news_id,
+ "keyword": keyword,
+ "source_index": SOURCE_INDEX,
+ "source_field": KEYWORD_FIELD,
+ "topic_matches": matches_by_keyword[keyword],
+ "match_method": base.MATCH_METHOD,
+ "model_name": model_name,
+ "built_at": built_at,
+ },
+ )
+ )
+
+ if documents and not args.dry_run:
+ await base.bulk_index(
+ index=args.output_index, cluster=args.output_cluster, documents=documents
+ )
+ if args.output:
+ backup_docs.extend(doc for _, doc in documents)
+
+ keywords_done += len(chunk)
+ docs_done += len(documents)
+ logger.info(
+ "Progress: %d/%d keywords, %d/%d pending pairs indexed into '%s'.",
+ keywords_done,
+ len(unique_keywords),
+ docs_done,
+ len(pending),
+ args.output_index,
+ )
+
+ skipped = len(pending) - docs_done
+ if skipped:
+ logger.warning(
+ "%d pairs were NOT indexed due to failed searches — rerun the script to retry.",
+ skipped,
+ )
+
+ if args.output:
+ output_path = Path(args.output)
+ output_path.parent.mkdir(parents=True, exist_ok=True)
+ output_path.write_text(
+ json.dumps(backup_docs, indent=2, ensure_ascii=False), encoding="utf-8"
+ )
+ logger.info("Wrote local JSON backup (%d documents) to %s", len(backup_docs), output_path)
+
+ logger.info(
+ "Done. %d documents indexed this run, %d covered in total.",
+ docs_done,
+ len(covered) + docs_done,
+ )
+
+
+def main() -> None:
+ parser = argparse.ArgumentParser(
+ description="Map the keywords of enriched news articles to OpenAlex topics.",
+ formatter_class=argparse.RawDescriptionHelpFormatter,
+ epilog=(
+ "Examples:\n"
+ " python map_news_topics.py --output-index docker-job_test\n"
+ " python map_news_topics.py --output-index docker-job_test --dry-run --max-docs 50"
+ ),
+ )
+ parser.add_argument(
+ "--output-index", required=True, help="Index to persist the topic mappings into"
+ )
+ parser.add_argument(
+ "--source-cluster",
+ default="inse",
+ choices=["inse", "nes"],
+ help=f"Cluster holding '{SOURCE_INDEX}' (default: inse)",
+ )
+ parser.add_argument(
+ "--output-cluster",
+ default="inse",
+ choices=["inse", "nes"],
+ help="Cluster of the output index (default: inse)",
+ )
+ parser.add_argument(
+ "--api-base-url",
+ default=base.DEFAULT_API_BASE_URL,
+ help=f"Base URL of the running backend (default: {base.DEFAULT_API_BASE_URL})",
+ )
+ parser.add_argument(
+ "--top-k",
+ type=int,
+ default=1,
+ help=(
+ "Number of topic matches per keyword (default: 1, matching the single "
+ "match the news detail endpoint shows). Only truncates the result list; "
+ "ranking is unaffected."
+ ),
+ )
+ parser.add_argument(
+ "--search-type",
+ default="hybrid",
+ choices=["hybrid", "semantic"],
+ help="Topic search type, mirrors vector_search_topics (default: hybrid)",
+ )
+ parser.add_argument(
+ "--text-batch-size",
+ type=int,
+ default=base.TEXT_BATCH_SIZE,
+ help=f"Unique keywords searched per chunk (default: {base.TEXT_BATCH_SIZE})",
+ )
+ parser.add_argument(
+ "--env-file",
+ default=str(base.DEFAULT_ENV_FILE),
+ help=f"Path to a .env with Elasticsearch credentials (default: {base.DEFAULT_ENV_FILE})",
+ )
+ parser.add_argument(
+ "--max-docs",
+ type=int,
+ default=None,
+ help=f"Stop scanning '{SOURCE_INDEX}' after N documents (for test runs)",
+ )
+ parser.add_argument(
+ "--output",
+ default=None,
+ help="Optional path for a local JSON backup of the documents built this run",
+ )
+ parser.add_argument(
+ "--overwrite",
+ action="store_true",
+ help=(
+ "Re-map pairs that are already in the output index instead of skipping "
+ "them; document ids are deterministic, so they are replaced in place "
+ "(use after changing --top-k or --search-type)"
+ ),
+ )
+ parser.add_argument(
+ "--dry-run",
+ action="store_true",
+ help="Build the mapping without creating/writing the output index",
+ )
+ args = parser.parse_args()
+
+ if args.env_file and Path(args.env_file).exists():
+ load_dotenv(dotenv_path=args.env_file)
+
+ asyncio.run(run(args))
+
+
+if __name__ == "__main__":
+ main()
diff --git a/service/scripts/news/topic_mapper/news_mapping.py b/service/scripts/news/topic_mapper/news_mapping.py
new file mode 100644
index 00000000..28a6d909
--- /dev/null
+++ b/service/scripts/news/topic_mapper/news_mapping.py
@@ -0,0 +1,30 @@
+"""Elasticsearch mapping for news -> OpenAlex topic mapping indices.
+
+One document per (news article, keyword) pair. Articles in aktuell_postproc
+carry up to KEYWORD_LIMIT keywords each, so an article normally yields
+several documents.
+"""
+
+NEWS_TOPICS_MAPPING = {
+ "properties": {
+ "news_id": {"type": "keyword"},
+ "keyword": {"type": "text", "fields": {"keyword": {"type": "keyword"}}},
+ "source_index": {"type": "keyword"},
+ "source_field": {"type": "keyword"},
+ "topic_matches": {
+ "type": "nested",
+ "properties": {
+ "rank": {"type": "integer"},
+ "topic_id": {"type": "keyword"},
+ "topic_display_name": {"type": "keyword"},
+ "subfield": {"type": "keyword"},
+ "field": {"type": "keyword"},
+ "domain": {"type": "keyword"},
+ "match_score": {"type": "float"},
+ },
+ },
+ "match_method": {"type": "keyword"},
+ "model_name": {"type": "keyword"},
+ "built_at": {"type": "date"},
+ }
+}
diff --git a/service/scripts/news/topic_mapper/requirements.txt b/service/scripts/news/topic_mapper/requirements.txt
new file mode 100644
index 00000000..7507eb03
--- /dev/null
+++ b/service/scripts/news/topic_mapper/requirements.txt
@@ -0,0 +1,2 @@
+httpx>=0.27
+python-dotenv>=1.0
diff --git a/service/scripts/news/ude/aktuell/aktuell/middlewares.py b/service/scripts/news/ude/aktuell/aktuell/middlewares.py
index 46127f51..27804ec8 100644
--- a/service/scripts/news/ude/aktuell/aktuell/middlewares.py
+++ b/service/scripts/news/ude/aktuell/aktuell/middlewares.py
@@ -3,10 +3,8 @@
# 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
+from scrapy import signals
class AktuellSpiderMiddleware:
diff --git a/service/scripts/news/ude/aktuell/aktuell/pipelines.py b/service/scripts/news/ude/aktuell/aktuell/pipelines.py
index 2270b2d0..7095d2e0 100644
--- a/service/scripts/news/ude/aktuell/aktuell/pipelines.py
+++ b/service/scripts/news/ude/aktuell/aktuell/pipelines.py
@@ -5,7 +5,6 @@
# useful for handling different item types with a single interface
-from itemadapter import ItemAdapter
class AktuellPipeline:
diff --git a/service/scripts/news/ude/aktuell/aktuell/spiders/links.py b/service/scripts/news/ude/aktuell/aktuell/spiders/links.py
index 02589ae0..18363493 100644
--- a/service/scripts/news/ude/aktuell/aktuell/spiders/links.py
+++ b/service/scripts/news/ude/aktuell/aktuell/spiders/links.py
@@ -1,5 +1,6 @@
import scrapy
+
class LinksCrawler(scrapy.Spider):
name = "aktuell-links"
diff --git a/service/scripts/news/ude/aktuell/aktuell/spiders/meta.py b/service/scripts/news/ude/aktuell/aktuell/spiders/meta.py
index c29c38cf..b03cff17 100644
--- a/service/scripts/news/ude/aktuell/aktuell/spiders/meta.py
+++ b/service/scripts/news/ude/aktuell/aktuell/spiders/meta.py
@@ -1,8 +1,10 @@
-import scrapy
import json
-from scrapy.linkextractors import LinkExtractor
import os
+import scrapy
+from scrapy.linkextractors import LinkExtractor
+
+
class MetaDataCrawler(scrapy.Spider):
name = "aktuell-metadata"
diff --git a/service/scripts/news/ude/legacy/aktuell_archiv.py b/service/scripts/news/ude/legacy/aktuell_archiv.py
index f302dfe9..25aa6b3b 100644
--- a/service/scripts/news/ude/legacy/aktuell_archiv.py
+++ b/service/scripts/news/ude/legacy/aktuell_archiv.py
@@ -1,11 +1,12 @@
-from selenium import webdriver
-from selenium.webdriver.common.by import By
-from selenium.common.exceptions import NoSuchElementException
-from selenium.webdriver.firefox.options import Options
-from random import randint
-import time
import sys
+import time
+from random import randint
+
from elasticsearch import Elasticsearch
+from selenium import webdriver
+from selenium.common.exceptions import NoSuchElementException
+from selenium.webdriver.common.by import By
+from selenium.webdriver.firefox.options import Options
es = Elasticsearch()
@@ -32,7 +33,7 @@ def getLinks(link, driver):
elem = driver.find_element(By.XPATH, "/html/body/main/div[2]/div/div/div/div/div/div/div[" + str(counter) + "]/b").text
if elem == "Zurück zum Gesamtüberblick":
break
- except NoSuchElementException as nsee:
+ except NoSuchElementException:
break
# get date
@@ -45,7 +46,7 @@ def getLinks(link, driver):
link = ""
try:
link = driver.find_element(By.XPATH, "/html/body/main/div[2]/div/div/div/div/div/div/div[" + str(counter) + "]/b/a").get_attribute('href')
- except NoSuchElementException as nsee:
+ except NoSuchElementException:
continue
links.append(link)
@@ -67,17 +68,17 @@ def getData(driver, link, date, date_year, date_num):
subtitle = ""
try:
subtitle = driver.find_element(By.XPATH, "/html/body/main/div[3]/div/div/div/div[1]/div[1]/div/hgroup/h3").text
- except NoSuchElementException as nsee:
+ except NoSuchElementException:
pass
maintitle = ""
try:
maintitle = driver.find_element(By.XPATH, "/html/body/main/div[3]/div/div/div/div[1]/div[1]/div/hgroup/h2").text
- except NoSuchElementException as nsee:
+ except NoSuchElementException:
pass
redaktion = ""
try:
redaktion = driver.find_element(By.XPATH, "/html/body/main/div[3]/div/div/div/div[1]/div[1]/div/p[2]").text
- except NoSuchElementException as nsee:
+ except NoSuchElementException:
pass
author = ""
if redaktion != "":
@@ -86,7 +87,7 @@ def getData(driver, link, date, date_year, date_num):
main_content = ""
try:
main_content = driver.find_element(By.XPATH, "/html/body/main/div[3]/div/div/div/div[1]/div[1]/div/p[1]").text
- except NoSuchElementException as nsee:
+ except NoSuchElementException:
pass
full_content = main_content
diff --git a/service/scripts/news/ude/run_pipeline.py b/service/scripts/news/ude/run_pipeline.py
index abd86228..b3644c92 100644
--- a/service/scripts/news/ude/run_pipeline.py
+++ b/service/scripts/news/ude/run_pipeline.py
@@ -1,9 +1,15 @@
-import subprocess
-import sys
+import argparse
+import logging
import os
import shutil
+import subprocess
+import sys
import time
+logging.basicConfig(level=logging.INFO, format="%(asctime)s %(levelname)s %(message)s")
+logger = logging.getLogger(__name__)
+
+
def run_command(command, cwd=None):
"""Run a shell command and exit if it fails."""
result = subprocess.run(command,
@@ -12,11 +18,27 @@ def run_command(command, cwd=None):
#capture_output=True, #supresses output from subprocess
text=True)
if result.returncode != 0:
- print(f"Command failed: {command}")
- print("Error output:\n", result.stderr)
+ logger.error(f"Command failed: {command}")
+ logger.error(f"Error output:\n{result.stderr}")
sys.exit(result.returncode)
if __name__ == "__main__":
+ parser = argparse.ArgumentParser(
+ description="Crawl the UDE 'aktuell' news pages and upload the articles to Elasticsearch."
+ )
+ parser.add_argument(
+ "--skip-upload",
+ action="store_true",
+ help="Only crawl into out/*.json and never connect to Elasticsearch",
+ )
+ parser.add_argument(
+ "--max-items",
+ type=int,
+ default=None,
+ help="Stop each spider after N items (for short test runs)",
+ )
+ args = parser.parse_args()
+
start_time = time.time()
base_dir = os.path.dirname(os.path.abspath(__file__))
@@ -31,19 +53,27 @@ if __name__ == "__main__":
output_file_meta = os.path.join(out_dir, "meta.json")
- print("Running Scrapy link crawler...")
- run_command(f"scrapy crawl aktuell-links -O \"{output_file_links}\"", cwd=crawler_dir)
+ limit = f" -s CLOSESPIDER_ITEMCOUNT={args.max_items}" if args.max_items else ""
- print("Running Scrapy meta crawler...")
- run_command(f"scrapy crawl aktuell-metadata -O \"{output_file_meta}\"", cwd=crawler_dir)
+ logger.info("Running Scrapy link crawler...")
+ run_command(f"scrapy crawl aktuell-links -O \"{output_file_links}\"{limit}", cwd=crawler_dir)
- print("Running upload script")
- run_command(f"{sys.executable} upload_aktuell.py {output_file_meta}", cwd=base_dir)
+ logger.info("Running Scrapy meta crawler...")
+ run_command(f"scrapy crawl aktuell-metadata -O \"{output_file_meta}\"{limit}", cwd=crawler_dir)
+
+ if args.skip_upload:
+ logger.info("Skipping upload (--skip-upload): Elasticsearch was not contacted.")
+ else:
+ logger.info("Running upload script")
+ run_command(f"{sys.executable} upload_aktuell.py {output_file_meta}", cwd=base_dir)
end_time = time.time()
runtime_seconds = end_time - start_time
- runtime_hours = runtime_seconds / 3600
-
- print(f"Runtime: {runtime_hours:.2f} hours")
- print("Finished crawling and uploading UDE news articles.")
+ runtime_hours = runtime_seconds / 3600
+
+ logger.info(f"Runtime: {runtime_hours:.2f} hours")
+ if args.skip_upload:
+ logger.info("Finished crawling UDE news articles (no upload).")
+ else:
+ logger.info("Finished crawling and uploading UDE news articles.")
diff --git a/service/scripts/news/ude/upload_aktuell.py b/service/scripts/news/ude/upload_aktuell.py
index 72a9654e..6a8ed207 100644
--- a/service/scripts/news/ude/upload_aktuell.py
+++ b/service/scripts/news/ude/upload_aktuell.py
@@ -1,231 +1,39 @@
-from elasticsearch import Elasticsearch
-import sys
-import os
import json
-from datetime import datetime
+import logging
+import os
+import sys
import time
+from urllib.parse import quote
-# elasticsearch-connection should be adjusted
-# uni-server
-es = Elasticsearch()
+import requests
-index_name = "aktuell-test" #test indices to make sure everything works before uploading to the real index, ps. you lack rights to push to the real index, please contact the admin if you want to push to the real index
+logging.basicConfig(level=logging.INFO, format="%(asctime)s %(levelname)s %(message)s")
+logger = logging.getLogger(__name__)
+# The INSE key is index-scoped and can't hit cluster endpoints (e.g. GET /), so
+# the elasticsearch client's ping/product-check would 403. We talk to the index
+# endpoint directly over HTTP with the ApiKey header, like the other jobs do.
+ES_URL = os.getenv("ELASTICSEARCH_INSE_URL", "http://localhost:9200").rstrip("/")
+ES_API_KEY = os.getenv("ELASTICSEARCH_INSE_API_KEY")
+# Default is a test index — you lack rights to push to the production index;
+# contact the ES admin for that. Override via NEWS_UPLOAD_INDEX.
+# The target index is never created here: an index that doesn't exist yet gets
+# ES dynamic mapping, without the searchabilityAnalyzer the search relies on.
+# Create it with the proper mapping before pointing a run at a new index.
+INDEX_NAME = os.getenv("NEWS_UPLOAD_INDEX", "aktuell-test")
-# checks if elastic is up and creates the index if not already done
-def check_elastic():
- if not es.ping():
- sys.exit("No connection to Elasticsearch")
+_session = requests.Session()
+_session.headers.update({"Content-Type": "application/json"})
+if ES_API_KEY:
+ _session.headers.update({"Authorization": f"ApiKey {ES_API_KEY}"})
- if not es.indices.exists(index=index_name):
- settings = {
- "analysis": {
- "analyzer": {
- "searchabilityAnalyzer": {
- "type": "custom",
- "tokenizer": "standard",
- "filter": [
- "lowercase",
- "asciifolding"
- ]
- }
- }
- }
- }
- mappings = {
- "properties": {
- "subtitle": {
- "type": "text",
- "analyzer": "searchabilityAnalyzer",
- "search_analyzer": "searchabilityAnalyzer",
- "fields": {
- "keyword": {
- "type": "keyword",
- "ignore_above": 256
- }
- }
- },
- "maintitle": {
- "type": "text",
- "analyzer": "searchabilityAnalyzer",
- "search_analyzer": "searchabilityAnalyzer",
- "fields": {
- "keyword": {
- "type": "keyword",
- "ignore_above": 256
- }
- }
- },
- "author": {
- "type": "text",
- "analyzer": "searchabilityAnalyzer",
- "search_analyzer": "searchabilityAnalyzer",
- "fields": {
- "keyword": {
- "type": "keyword",
- "ignore_above": 256
- }
- }
- },
- "date": {
- "type": "text",
- "analyzer": "searchabilityAnalyzer",
- "search_analyzer": "searchabilityAnalyzer",
- "fields": {
- "keyword": {
- "type": "keyword",
- "ignore_above": 256
- }
- }
- },
- "date_year": {
- "type": "long",
- "fields": {
- "keyword": {
- "type": "keyword",
- "ignore_above": 256
- }
- }
- },
- "date_full": {
- "type": "long",
- "fields": {
- "keyword": {
- "type": "keyword",
- "ignore_above": 256
- }
- }
- },
- "intro_content": {
- "type": "text",
- "analyzer": "searchabilityAnalyzer",
- "search_analyzer": "searchabilityAnalyzer",
- "fields": {
- "keyword": {
- "type": "keyword",
- "ignore_above": 256
- }
- }
- },
- "main_content": {
- "type": "text",
- "analyzer": "searchabilityAnalyzer",
- "search_analyzer": "searchabilityAnalyzer",
- "fields": {
- "keyword": {
- "type": "keyword",
- "ignore_above": 256
- }
- }
- },
- "further_content": {
- "type": "text",
- "analyzer": "searchabilityAnalyzer",
- "search_analyzer": "searchabilityAnalyzer",
- "fields": {
- "keyword": {
- "type": "keyword",
- "ignore_above": 256
- }
- }
- },
- "redaktion": {
- "type": "text",
- "analyzer": "searchabilityAnalyzer",
- "search_analyzer": "searchabilityAnalyzer",
- "fields": {
- "keyword": {
- "type": "keyword",
- "ignore_above": 256
- }
- }
- },
- "full_content": {
- "type": "text",
- "analyzer": "searchabilityAnalyzer",
- "search_analyzer": "searchabilityAnalyzer",
- "fields": {
- "keyword": {
- "type": "keyword",
- "ignore_above": 256
- }
- }
- },
- "tags": {
- "type": "text",
- "analyzer": "searchabilityAnalyzer",
- "search_analyzer": "searchabilityAnalyzer",
- "fields": {
- "keyword": {
- "type": "keyword",
- "ignore_above": 256
- }
- }
- },
- "tags_nested": {
- "type": "nested",
- "properties": {
- "tag": {
- "type": "text",
- "analyzer": "searchabilityAnalyzer",
- "search_analyzer": "searchabilityAnalyzer",
- "fields": {
- "keyword": {
- "type": "keyword",
- "ignore_above": 250
- }
- }
- }
- }
- },
- #"links": {
- # "type": "text",
- # "analyzer": "searchabilityAnalyzer",
- # "search_analyzer": "searchabilityAnalyzer",
- # "fields": {
- # "keyword": {
- # "type": "keyword",
- # "ignore_above": 256
- # }
- # }
- #},
- "links_nested": {
- "type": "nested",
- "properties": {
- "url": {
- "type": "text",
- "analyzer": "searchabilityAnalyzer",
- "search_analyzer": "searchabilityAnalyzer",
- "fields": {
- "keyword": {
- "type": "keyword",
- "ignore_above": 250
- }
- }
- },
- "text": {
- "type": "text",
- "analyzer": "searchabilityAnalyzer",
- "search_analyzer": "searchabilityAnalyzer",
- "fields": {
- "keyword": {
- "type": "keyword",
- "ignore_above": 250
- }
- }
- }
- }
- },
- }
- }
- es.indices.create(index=index_name, mappings=mappings, settings=settings)
def upload(path):
- with open(path, "r", encoding='utf-8') as json_file:
-
+ with open(path, "r", encoding="utf-8") as json_file:
try:
json_loaded = json.load(json_file)
+ uploaded = 0
for news in json_loaded:
time.sleep(10 / 1000)
id = (str(news["date"]) + "_" + str(news["author"]) + "_" + str(news["maintitle"])).replace(" ", "").replace("/", "").replace("ö", "").replace("ä", "").replace("ü", "").replace("Ö", "").replace("Ä", "").replace("Ü", "").replace(".", "").replace("?", "")
@@ -241,7 +49,7 @@ def upload(path):
for p in range(len(tags)):
tags_nested.append({"tag": tags[p]})
- dict = {
+ document = {
"subtitle": news["subtitle"],
"maintitle": news["maintitle"],
"tags": news["tags"],
@@ -255,21 +63,25 @@ def upload(path):
"tags_nested": tags_nested,
"date_year": news["date_year"],
"date_full": news["date_full"],
- #"links": news["links"],
"links_nested": links_nested,
"url": news["url"]
}
- es.index(index=index_name, id=id, document=dict)
+ response = _session.put(
+ f"{ES_URL}/{INDEX_NAME}/_doc/{quote(id, safe='')}",
+ json=document,
+ )
+ response.raise_for_status()
+ uploaded += 1
+
+ logger.info(f"Uploaded {uploaded} news articles to '{INDEX_NAME}'.")
except Exception as e:
- print("--- Failed to upload news.")
- print(e)
+ logger.error(f"Failed to upload news: {e}")
+
# main - entry point
if __name__ == '__main__':
- check_elastic()
-
if len(sys.argv) != 2:
sys.exit("No path given.")
upload(sys.argv[1])
diff --git a/service/scripts/patents/build_patents_openalex_keywords.py b/service/scripts/patents/build_patents_openalex_keywords.py
index 606660a3..b49125f1 100644
--- a/service/scripts/patents/build_patents_openalex_keywords.py
+++ b/service/scripts/patents/build_patents_openalex_keywords.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python3
+
"""
build_patents_openalex_keywords.py — Build IPC/CPC → OpenAlex topic/keyword matches.
diff --git a/service/scripts/patents/evaluate_keyword_patent_search.py b/service/scripts/patents/evaluate_keyword_patent_search.py
index 550876db..5c174bbf 100644
--- a/service/scripts/patents/evaluate_keyword_patent_search.py
+++ b/service/scripts/patents/evaluate_keyword_patent_search.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python3
+
"""
evaluate_keyword_patent_search.py — Systematic evaluation for keyword → patent search.
@@ -23,14 +23,14 @@ import asyncio
import json
import logging
import sys
-from datetime import datetime, timezone
+from datetime import UTC, datetime
from pathlib import Path
from typing import Any
current_dir = Path(__file__).resolve().parent
sys.path.insert(0, str(current_dir.parent.parent / "src" / "main"))
-from inse.patents.keywords.eval_metrics import ( # noqa: E402
+from inse.patents.keywords.eval_metrics import (
analyze_family_duplicates_in_top_k,
average_precision,
ipc_prefix_hit_rate,
@@ -43,13 +43,13 @@ from inse.patents.keywords.eval_metrics import ( # noqa: E402
recall_at_k,
unique_family_precision_at_k,
)
-from inse.patents.keywords.logic import ( # noqa: E402
+from inse.patents.keywords.logic import (
_DEFAULT_SCORE_WEIGHTS,
_MAX_PATENTS,
_compute_final_score,
get_patents_by_keywords,
)
-from inse.patents.keywords.model import ( # noqa: E402
+from inse.patents.keywords.model import (
KeywordPatentMatch,
KeywordPatentSearchDiagnostics,
KeywordPatentSearchItem,
@@ -721,9 +721,7 @@ def _load_prior_candidate_grades(
if existing is None:
bucket[patent_id] = dict(candidate)
continue
- if existing.get("grade") is None and grade is not None:
- bucket[patent_id] = dict(candidate)
- elif existing.get("grade") is None:
+ if existing.get("grade") is None and grade is not None or existing.get("grade") is None:
bucket[patent_id] = dict(candidate)
return by_case
@@ -884,7 +882,7 @@ async def cmd_bootstrap(args: argparse.Namespace) -> int:
}
)
- stamp = datetime.now(timezone.utc).strftime("%Y%m%dT%H%M%SZ")
+ stamp = datetime.now(UTC).strftime("%Y%m%dT%H%M%SZ")
labeling_path = out_dir / f"labeling_{stamp}.json"
report_path = out_dir / f"bootstrap_report_{stamp}.json"
@@ -979,7 +977,7 @@ async def cmd_eval(args: argparse.Namespace) -> int:
if presentation
else _aggregate(case_reports, ks)
)
- stamp = datetime.now(timezone.utc).strftime("%Y%m%dT%H%M%SZ")
+ stamp = datetime.now(UTC).strftime("%Y%m%dT%H%M%SZ")
report_name = "presentation_eval_report" if presentation else "eval_report"
report_path = Path(args.out_dir) / f"{report_name}_{stamp}.json"
_write_json(
@@ -1071,7 +1069,7 @@ async def cmd_ablation(args: argparse.Namespace) -> int:
f"P@10={p10}"
)
- stamp = datetime.now(timezone.utc).strftime("%Y%m%dT%H%M%SZ")
+ stamp = datetime.now(UTC).strftime("%Y%m%dT%H%M%SZ")
report_path = Path(args.out_dir) / f"ablation_report_{stamp}.json"
_write_json(
report_path,
diff --git a/service/scripts/patents/index_org_patents.py b/service/scripts/patents/index_org_patents.py
index f7c5b469..d6da7874 100644
--- a/service/scripts/patents/index_org_patents.py
+++ b/service/scripts/patents/index_org_patents.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python3
+
"""
index_org_patents.py — Build the org_patents Elasticsearch index for one institution.
diff --git a/service/scripts/projects/bund/gpc.data.py b/service/scripts/projects/bund/gpc.data.py
index 56b77702..5169a0ae 100644
--- a/service/scripts/projects/bund/gpc.data.py
+++ b/service/scripts/projects/bund/gpc.data.py
@@ -1,25 +1,43 @@
+import argparse
+import hashlib
+import json
+import logging
+import math
+import os
+import time
+from datetime import datetime
+
+import pandas as pd
+import requests
from selenium import webdriver
-from selenium.common.exceptions import NoSuchElementException
from selenium.webdriver.chrome.options import Options
from selenium.webdriver.chrome.service import Service
-from selenium.webdriver.common.by import By
-from selenium.webdriver.support.ui import WebDriverWait
-from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.common.alert import Alert
-from random import randint
-import time
-import pandas as pd
-import json
-from datetime import datetime
-import sys
-from elasticsearch import Elasticsearch, helpers
-from elasticsearch.helpers import bulk,BulkIndexError
-import os
-import hashlib
+from selenium.webdriver.common.by import By
+from selenium.webdriver.support import expected_conditions as EC
+from selenium.webdriver.support.ui import WebDriverWait
+
+logging.basicConfig(level=logging.INFO, format="%(asctime)s %(levelname)s %(message)s")
+logger = logging.getLogger(__name__)
download_path=os.path.abspath(os.getcwd())
-es = Elasticsearch()
+
+# The INSE key is index-scoped and can't hit cluster endpoints (e.g. GET /), so
+# the elasticsearch client's ping/product-check would 403. We POST to _bulk
+# directly over HTTP with the ApiKey header, like the other jobs do.
+ES_URL = os.getenv("ELASTICSEARCH_INSE_URL", "http://localhost:9200").rstrip("/")
+ES_API_KEY = os.getenv("ELASTICSEARCH_INSE_API_KEY")
+# Default is a test index — you lack rights to push to the production index;
+# contact the ES admin for that. Override via BUND_UPLOAD_INDEX.
+# The target index is never created here: an index that doesn't exist yet gets
+# ES dynamic mapping, without the searchabilityAnalyzer the search relies on.
+# Create it with the proper mapping before pointing a run at a new index.
+INDEX_NAME = os.getenv("BUND_UPLOAD_INDEX", "projects_bund_test")
+
+_session = requests.Session()
+if ES_API_KEY:
+ _session.headers.update({"Authorization": f"ApiKey {ES_API_KEY}"})
def crawl_data(link,driver):
driver.get(link)
@@ -41,123 +59,61 @@ def crawl_data(link,driver):
time.sleep(2)
# Switch to the alert and Clicks the "OK" button
Alert(driver).accept()
- print("downloading data")
+ logger.info("downloading data")
else:
# The element is likely a honeypot, do not interact
- print("Honeypot detected, skipping interaction")
+ logger.info("Honeypot detected, skipping interaction")
-def check_elastic_online():
- if not es.ping():
- sys.exit("No connection to Elasticsearch")
- else :
- print("Elasticsearch connection established")
-def check_elastic_index(df, index_name):
-
- if not es.indices.exists(index=index_name):
- print(index_name + " index wasn't found. Creating a new one..")
- settings = {
- "analysis": {
- "analyzer": {
- "searchabilityAnalyzer": {
- "type": "custom",
- "tokenizer": "standard",
- "filter": [
- "lowercase",
- "asciifolding"
- ]
- }
- }
- }
- }
- mappings = {}
- properties = {}
+def _clean(value):
+ # pandas/numpy scalars -> native python; NaN -> None (ES rejects NaN in JSON).
+ if hasattr(value, "item"):
+ value = value.item()
+ if isinstance(value, float) and math.isnan(value):
+ return None
+ return value
- for key in list(df.columns):
- if key in ("funding_start", "funding_end", "datum"):
- properties[key] = {
- "type": "date",
- "format": "dd.MM.yyyy"
- }
- elif key == "Publikationsdatum":
- properties[key] = {
- "type": "date",
- "format": "yyyy"
- }
- elif key == "unix_timestamp":
- properties[key] = {
- "type": "long"
- }
- elif key == "Fördersumme":
- properties[key] = {
- "type": "float"
- }
- elif key == "new":
- properties[key] = {
- "type": "boolean"
- }
- else:
- properties[key] = {
- "type": "text",
- "analyzer": "searchabilityAnalyzer",
- "search_analyzer": "searchabilityAnalyzer",
- "fields": {
- "keyword": {
- "type": "keyword",
- "ignore_above": 256
- }
- }
- }
-
- mappings["properties"] = properties
- es.indices.create(index=index_name, mappings=mappings, settings=settings)
- es.indices.refresh(index=index_name)
- print("The new index '"+index_name+"' has been created")
- else:
- print(index_name + " already exists. Uploading data...")
+def upload_data(df, index_name):
+ logger.info("Uploading data...")
-def upload_data(df,index_name):
- def fill_docs_to_upload(row):
+ docs = []
+ for _, row in df.iterrows():
doc_id = hashlib.sha256(str(row['Förderkennzeichen']).encode('utf-8')).hexdigest()
- doc = {
- "_op_type": "update", # Update existing documents
- "_index": index_name,
- "_id": doc_id,
- "doc": {
- "new":False
- },
- "upsert":{
- **row.to_dict(),
- "new":True
- }
- }
+ source = {key: _clean(val) for key, val in row.to_dict().items()}
+ source["new"] = True
+ docs.append((doc_id, source))
- docs_to_upload.append(doc)
- print("Uploading data...")
-
- try:
- check_elastic_index(df, index_name)
- except Exception as e:
- print("Error while creating index")
- print(e)
-
- docs_to_upload = []
- df.apply(fill_docs_to_upload,axis=1)
- def bulk_docs(docs,data_rate):
- response_sum = 0
- for i in range(0, len(docs), data_rate):
- try:
- response = helpers.bulk(es,docs[i:i + data_rate])
- response_sum = response_sum + response[0]
- except BulkIndexError as e:
- print(f"{len(e.errors)} document(s) failed to index.")
- for error in e.errors:
- print("Error details:", error)
- print ("Upload is completed. "+ str(response_sum) +" documents have been uploaded." )
data_rate = 200
- bulk_docs(docs_to_upload,data_rate)
+ uploaded = 0
+ for i in range(0, len(docs), data_rate):
+ batch = docs[i:i + data_rate]
+ lines = []
+ for doc_id, source in batch:
+ # update + upsert: flag an existing project as not-new, or create an
+ # unseen one from the row (with new=True).
+ lines.append(json.dumps({"update": {"_index": index_name, "_id": doc_id}}))
+ lines.append(json.dumps({"doc": {"new": False}, "upsert": source}, default=str))
+ payload = ("\n".join(lines) + "\n").encode("utf-8")
+ response = _session.post(
+ f"{ES_URL}/_bulk",
+ data=payload,
+ headers={"Content-Type": "application/x-ndjson"},
+ )
+ response.raise_for_status()
+ result = response.json()
+ if result.get("errors"):
+ failed = [item for item in result["items"]
+ if next(iter(item.values())).get("status", 200) >= 300]
+ logger.error(f"{len(failed)} document(s) failed to index.")
+ for item in failed[:5]:
+ logger.error(f"Error details: {item}")
+ uploaded += len(batch) - len(failed)
+ else:
+ uploaded += len(batch)
+
+ logger.info(f"Upload is completed. {uploaded} documents have been uploaded to '{index_name}'.")
@@ -170,7 +126,7 @@ def wait_for_file_complete(download_path,file_name):
fname.endswith(".part") or fname.endswith(".crdownload")
for fname in os.listdir(download_path)
):
- print(f"Download complete: {file_name}")
+ logger.info(f"Download complete: {file_name}")
return True
if any(fname.endswith((".part", ".crdownload")) for fname in os.listdir(download_path)):
time.sleep(1)
@@ -180,7 +136,7 @@ def wait_for_file_complete(download_path,file_name):
def format_data(df):
- print("Formattind data...")
+ logger.info("Formatting data...")
df.drop(list(df.filter(regex='.1|Unnamed')), axis=1, inplace=True)
def clean_format(text):
if isinstance(text, str):
@@ -233,7 +189,10 @@ def setup_chrome_driver(download_path):
"download.directory_upgrade": True,
"plugins.always_open_pdf_externally": True,
})
- chromedriver_path = "/home/inse/miniconda3/envs/airflow/bin/chromedriver"
+ chrome_bin = os.getenv("CHROME_BIN")
+ if chrome_bin:
+ options.binary_location = chrome_bin
+ chromedriver_path = os.getenv("CHROMEDRIVER_PATH", "/usr/bin/chromedriver")
service = Service(executable_path=chromedriver_path)
driver = webdriver.Chrome(service=service, options=options)
return driver
@@ -241,7 +200,23 @@ def setup_chrome_driver(download_path):
# main - entry point
if __name__ == '__main__':
- print("Starting")
+ parser = argparse.ArgumentParser(
+ description="Crawl the bund foerderportal project export and upload it to Elasticsearch."
+ )
+ parser.add_argument(
+ "--skip-upload",
+ action="store_true",
+ help="Only crawl and format the export; never connect to Elasticsearch",
+ )
+ parser.add_argument(
+ "--max-rows",
+ type=int,
+ default=None,
+ help="Keep at most this many rows of the formatted export (e.g. for a smoke test).",
+ )
+ args = parser.parse_args()
+
+ logger.info("Starting")
file_path = os.path.join(os.path.abspath(os.getcwd()), 'Suchliste.csv')
if not os.path.exists(file_path):
driver = setup_chrome_driver(download_path)
@@ -249,14 +224,19 @@ if __name__ == '__main__':
crawl_data(link_to_crawl,driver)
wait_for_file_complete(download_path, "Suchliste.csv")
driver.close()
-
-
+
+
file = pd.read_csv(file_path,encoding = "latin1",sep=";")
df = pd.DataFrame(file)
df_formatted = format_data(df)
-
- index_name = "projects_bund_test" #test indices to make sure everything works before uploading to the real index, ps. you lack rights to push to the real index, please contact the admin if you want to push to the real index
- check_elastic_online()
- upload_data(df_formatted,index_name)
- os.remove(file_path)
+
+ if args.max_rows:
+ df_formatted = df_formatted.head(args.max_rows)
+
+ if args.skip_upload:
+ logger.info(f"Skipping upload (--skip-upload): Elasticsearch was not contacted. "
+ f"Formatted {len(df_formatted)} rows.")
+ else:
+ upload_data(df_formatted, INDEX_NAME)
+ os.remove(file_path)
\ No newline at end of file
diff --git a/service/scripts/projects/topic_mapper/map_project_topics.py b/service/scripts/projects/topic_mapper/map_project_topics.py
index 89c6f099..13125a5c 100644
--- a/service/scripts/projects/topic_mapper/map_project_topics.py
+++ b/service/scripts/projects/topic_mapper/map_project_topics.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python3
+
"""
map_project_topics.py — Map project keywords to OpenAlex topics.
@@ -52,9 +52,10 @@ import json
import logging
import os
import sys
-from datetime import datetime, timezone
+from collections.abc import AsyncIterator
+from datetime import UTC, datetime
from pathlib import Path
-from typing import Any, AsyncIterator
+from typing import Any
import httpx
from dotenv import load_dotenv
@@ -396,7 +397,7 @@ async def bulk_index(index: str, cluster: str, documents: list[tuple[str, dict]]
async def run(args: argparse.Namespace) -> None:
- built_at = datetime.now(timezone.utc).isoformat()
+ built_at = datetime.now(UTC).isoformat()
model_name = os.getenv("SENTENCE_TRANSFORMERS_MODEL_NAME")
await check_backend(args.api_base_url)
diff --git a/service/scripts/test_keywords_matching.py b/service/scripts/test_keywords_matching.py
index dec27c95..61bf501d 100644
--- a/service/scripts/test_keywords_matching.py
+++ b/service/scripts/test_keywords_matching.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python3
+
"""
test_keywords_matching.py
diff --git a/service/sentence_transformer/download_model.py b/service/sentence_transformer/download_model.py
index c4d7722e..77cbd56c 100644
--- a/service/sentence_transformer/download_model.py
+++ b/service/sentence_transformer/download_model.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python3
+
"""
Download the sentence-transformers model to the default cache directory
so it is available for local runs or testing.
@@ -6,9 +6,28 @@ so it is available for local runs or testing.
Usage (run once from project root):
python service/sentence_transformer/download_model.py
"""
+import os
+import sys
+from pathlib import Path
+
+# Ensure service/src/main is in sys.path
+current_dir = Path(__file__).parent.resolve()
+src_main_dir = current_dir.parent / "src" / "main"
+if str(src_main_dir) not in sys.path:
+ sys.path.insert(0, str(src_main_dir))
+
+from inse.config import settings
from sentence_transformers import SentenceTransformer
-MODEL_NAME = "intfloat/multilingual-e5-base"
-print(f"Downloading '{MODEL_NAME}' to default cache directory...")
+MODEL_NAME = settings.sentence_transformers_model_name
+print(f"Downloading '{MODEL_NAME}' to cache directory...")
model = SentenceTransformer(MODEL_NAME)
-print("Done.")
+
+print(f"Verifying offline model loading for '{MODEL_NAME}'...")
+os.environ["HF_HUB_OFFLINE"] = "1"
+os.environ["TRANSFORMERS_OFFLINE"] = "1"
+os.environ["HF_DATASETS_OFFLINE"] = "1"
+
+offline_model = SentenceTransformer(MODEL_NAME, local_files_only=True)
+print("Done. Model downloaded and verified for 100% offline usage.")
+
diff --git a/service/sentence_transformer/index_topics.py b/service/sentence_transformer/index_topics.py
index 12f29a9d..39c6616f 100644
--- a/service/sentence_transformer/index_topics.py
+++ b/service/sentence_transformer/index_topics.py
@@ -1,12 +1,13 @@
-#!/usr/bin/env python3
+
"""
Script to fetch all topics from 'openalex-topics',
vectorize display names, full descriptions, and individual keywords using the sentence-transformers model,
and push them to the 'topicvectors' index with multi-vector mapping.
"""
-import sys
import json
+import sys
from pathlib import Path
+
import httpx
from dotenv import load_dotenv
@@ -26,7 +27,6 @@ API_KEY = settings.elasticsearch_api_key
MODEL_NAME = settings.sentence_transformers_model_name
# Import sentence-transformers
-from sentence_transformers import SentenceTransformer
headers = {
"Authorization": f"ApiKey {API_KEY}",
@@ -169,8 +169,9 @@ def main():
print("No topics found. Exiting.")
return
+ from inse.util import get_model
print(f"Initializing SentenceTransformer model '{MODEL_NAME}'...")
- model = SentenceTransformer(MODEL_NAME)
+ model = get_model()
# 1. Gather all texts to embed
keywords_by_topic = []
diff --git a/service/src/main/inse/.env b/service/src/main/inse/.env
index a5a055f2..a49ebae6 100644
--- a/service/src/main/inse/.env
+++ b/service/src/main/inse/.env
@@ -12,8 +12,17 @@ ELASTICSEARCH_API_KEY=am1wWXBaMEJEVWJoZkE5MnBaUlk6TWlvbW1LRlMzNjdDUHgzYmVkUmI5UQ
ELASTICSEARCH_INSE_URL=https://inse.nes.uni-due.de/elastic
ELASTICSEARCH_INSE_API_KEY=bG1NSWc1NEJPZ3FnTGZCZXRSSEg6VnJXRFd5SnpSTTNWc1VPT01FMEhMZw==
+# Debugging: Log every outgoing Elasticsearch query (index + payload)
+PRINT_ES_QUERIES=false
+# Debugging: Log the duration of every Elasticsearch request
+PRINT_ES_TIMINGS=true
+
# Sentence Transformers Configuration
SENTENCE_TRANSFORMERS_MODEL_NAME=intfloat/multilingual-e5-base
TOKEN_ISSUER_ID=inse
-TOKEN_HMAC_KEY=9dd09c80dd0796fa24bd2007f4cf57fc28c9a38909b7e83bb2d73121c5bc69c7
\ No newline at end of file
+TOKEN_HMAC_KEY=9dd09c80dd0796fa24bd2007f4cf57fc28c9a38909b7e83bb2d73121c5bc69c7
+
+# Docker-Registry-Login für Background-Jobs (Nexus, nes.uni-due.de)
+BACKGROUND_JOBS_REGISTRY_USERNAME=student
+BACKGROUND_JOBS_REGISTRY_PASSWORD=nes-student!
\ No newline at end of file
diff --git a/service/src/main/inse/account_management/model.py b/service/src/main/inse/account_management/model.py
index dd6a11c6..a9c0d9d0 100644
--- a/service/src/main/inse/account_management/model.py
+++ b/service/src/main/inse/account_management/model.py
@@ -1,5 +1,4 @@
import uuid
-from typing import List, Optional
from pydantic import BaseModel, Field, model_validator
@@ -9,14 +8,14 @@ from inse.auth.model import UserRole, normalize_roles
class OrganizationProfile(BaseModel):
id: uuid.UUID
name: str
- openalex_institution_id: Optional[str] = None
+ openalex_institution_id: str | None = None
class AccountProfile(BaseModel):
id: uuid.UUID
email: str
name: str
- roles: List[UserRole]
+ roles: list[UserRole]
organization_id: uuid.UUID
organization_name: str
deleted: bool
@@ -27,7 +26,7 @@ class AccountProfile(BaseModel):
class AccountPage(BaseModel):
- items: List[AccountProfile]
+ items: list[AccountProfile]
total: int
page: int
page_size: int
@@ -43,10 +42,10 @@ class CreateAccountRequest(BaseModel):
email: str = Field(min_length=3)
name: str = Field(min_length=1)
- roles: List[UserRole] = Field(default_factory=lambda: [UserRole.USER])
+ roles: list[UserRole] = Field(default_factory=lambda: [UserRole.USER])
organization_id: uuid.UUID
password: str = Field(min_length=8)
- openalex_person_id: Optional[str] = None
+ openalex_person_id: str | None = None
@model_validator(mode="after")
def _normalize_roles(self):
@@ -62,14 +61,14 @@ class UpdateAccountRequest(BaseModel):
values = {**values, "roles": [values["role"]]}
return values
- email: Optional[str] = Field(default=None, min_length=3)
- name: Optional[str] = Field(default=None, min_length=1)
- roles: Optional[List[UserRole]] = None
- organization_id: Optional[uuid.UUID] = None
- password: Optional[str] = Field(default=None, min_length=8)
- openalex_person_id: Optional[str] = None
- deleted: Optional[bool] = None
- activated: Optional[bool] = None
+ email: str | None = Field(default=None, min_length=3)
+ name: str | None = Field(default=None, min_length=1)
+ roles: list[UserRole] | None = None
+ organization_id: uuid.UUID | None = None
+ password: str | None = Field(default=None, min_length=8)
+ openalex_person_id: str | None = None
+ deleted: bool | None = None
+ activated: bool | None = None
@model_validator(mode="after")
def _normalize_roles(self):
diff --git a/service/src/main/inse/account_management/router.py b/service/src/main/inse/account_management/router.py
index 81b22593..8388ebf2 100644
--- a/service/src/main/inse/account_management/router.py
+++ b/service/src/main/inse/account_management/router.py
@@ -1,5 +1,5 @@
import uuid
-from typing import Annotated, Optional
+from typing import Annotated
from fastapi import APIRouter, Query, Response, status
@@ -40,8 +40,8 @@ async def list_accounts(
page: Annotated[int, Query(ge=0)] = 0,
page_size: Annotated[int, Query(ge=1, le=100)] = 10,
offset: Annotated[int, Query(ge=0)] = 0,
- search: Annotated[Optional[str], Query()] = None,
- organization_id: Annotated[Optional[uuid.UUID], Query()] = None,
+ search: Annotated[str | None, Query()] = None,
+ organization_id: Annotated[uuid.UUID | None, Query()] = None,
access_token: AccessTokenMetadata = auth_service.CurrentUserAccessTokenPayloadDep,
) -> AccountPage:
return service.list_accounts(
diff --git a/service/src/main/inse/account_management/service.py b/service/src/main/inse/account_management/service.py
index 2c4510bd..915ec248 100644
--- a/service/src/main/inse/account_management/service.py
+++ b/service/src/main/inse/account_management/service.py
@@ -1,5 +1,4 @@
import uuid
-from typing import Optional
from fastapi import HTTPException, status
from sqlmodel import Session, func, or_, select
@@ -84,7 +83,7 @@ def _ensure_account_in_editor_scope(account: Account, token: AccessTokenMetadata
def _ensure_email_available(
session: Session,
email: str,
- excluded_account_id: Optional[uuid.UUID] = None,
+ excluded_account_id: uuid.UUID | None = None,
) -> None:
normalized_email = email.lower().strip()
if "@" not in normalized_email or "." not in normalized_email.rsplit("@", 1)[-1]:
@@ -115,9 +114,9 @@ def list_accounts(
access_token: AccessTokenMetadata,
page: int,
page_size: int,
- offset: Optional[int] = None,
- search: Optional[str] = None,
- organization_id: Optional[uuid.UUID] = None,
+ offset: int | None = None,
+ search: str | None = None,
+ organization_id: uuid.UUID | None = None,
) -> AccountPage:
if access_token.effective_role not in {
UserRole.SUPER_ADMIN,
diff --git a/service/src/main/inse/auth/model.py b/service/src/main/inse/auth/model.py
index 3b211935..d78caf5b 100644
--- a/service/src/main/inse/auth/model.py
+++ b/service/src/main/inse/auth/model.py
@@ -1,7 +1,6 @@
import uuid
from datetime import datetime
from enum import StrEnum
-from typing import List
from pydantic import BaseModel, model_validator
from sqlalchemy import JSON, Column, UniqueConstraint
@@ -24,8 +23,8 @@ ROLE_PRIORITY = {
def normalize_roles(
- roles: List[UserRole] | List[str] | UserRole | str | None,
-) -> List[UserRole]:
+ roles: list[UserRole] | list[str] | UserRole | str | None,
+) -> list[UserRole]:
if roles is None:
return [UserRole.USER]
if isinstance(roles, (str, UserRole)):
@@ -43,7 +42,7 @@ def normalize_roles(
def effective_role_for_roles(
- roles: List[UserRole] | List[str] | UserRole | str | None,
+ roles: list[UserRole] | list[str] | UserRole | str | None,
) -> UserRole:
return normalize_roles(roles)[0]
@@ -86,7 +85,7 @@ class Organization(Durable, table=True):
description="The OpenAlex ID of the institution associated with the organization.",
)
- accounts: List["Account"] = Relationship(back_populates="organization")
+ accounts: list["Account"] = Relationship(back_populates="organization")
class Account(Durable, table=True):
@@ -141,7 +140,7 @@ class Account(Durable, table=True):
nullable=False,
description="The unique identifier of the organization strictly associated with this account.",
)
- roles: List[UserRole] = Field(
+ roles: list[UserRole] = Field(
default_factory=lambda: [UserRole.USER],
sa_column=Column(JSON, nullable=False, default=lambda: [UserRole.USER.value]),
description="The roles this account holds within its organization.",
@@ -249,7 +248,7 @@ class AccessTokenMetadata(BaseTokenData):
default=UserRole.USER,
description="The specific role this access token grants within its organization.",
)
- effective_roles: List[UserRole] = Field(
+ effective_roles: list[UserRole] = Field(
default_factory=lambda: [UserRole.USER],
description="The roles this access token grants within its organization.",
)
@@ -300,7 +299,7 @@ class RefreshTokenMetadata(BaseTokenData):
default=UserRole.USER,
description="The specific role this access token grants within its organization.",
)
- effective_roles: List[UserRole] = Field(
+ effective_roles: list[UserRole] = Field(
default_factory=lambda: [UserRole.USER],
description="The roles this access token grants within its organization.",
)
diff --git a/service/src/main/inse/auth/router.py b/service/src/main/inse/auth/router.py
index 581d714b..9bf5d85a 100644
--- a/service/src/main/inse/auth/router.py
+++ b/service/src/main/inse/auth/router.py
@@ -1,14 +1,11 @@
import logging
-from typing import Annotated
import uuid
+from typing import Annotated
from fastapi import APIRouter, Body, Depends, Response, status
from sqlmodel import Session
-from inse.tags import Tags
-
import inse.auth.service as auth_service
-from inse.database import SessionDep, get_session
from inse.auth.model import (
AccessResponse,
AccessToken,
@@ -18,6 +15,8 @@ from inse.auth.model import (
OtkResponse,
RefreshTokenMetadata,
)
+from inse.database import SessionDep, get_session
+from inse.tags import Tags
logger = logging.getLogger(__name__)
diff --git a/service/src/main/inse/auth/service.py b/service/src/main/inse/auth/service.py
index 39855a14..9ce83f9c 100644
--- a/service/src/main/inse/auth/service.py
+++ b/service/src/main/inse/auth/service.py
@@ -4,7 +4,7 @@ import json
import logging
import secrets
import uuid
-from typing import Annotated, Any, Dict, Optional
+from typing import Annotated, Any
import jwt
from argon2 import PasswordHasher
@@ -95,7 +95,7 @@ def create_predefined_accounts(session: Session, file_path: str):
try:
with open(file_path, "r") as file:
- data: Dict[str, Any] = json.loads(file.read())
+ data: dict[str, Any] = json.loads(file.read())
for organization_data in data.get("organizations", []):
organization_id = organization_data.get("id")
if organization_id is not None:
@@ -215,7 +215,7 @@ def request_otk(session: Session, email: str, password: str):
account = session.exec(
select(Account).where(
Account.email == email,
- Account.deleted == False, # noqa: E712
+ Account.deleted == False,
)
).first()
@@ -254,7 +254,7 @@ def request_otk(session: Session, email: str, password: str):
)
).first()
- expires_at = datetime.datetime.now(datetime.timezone.utc) + datetime.timedelta(
+ expires_at = datetime.datetime.now(datetime.UTC) + datetime.timedelta(
minutes=OTK_EXPIRATION_MINUTES
)
@@ -293,19 +293,19 @@ def request_otk(session: Session, email: str, password: str):
return OtkResponse(status="success", account_id=account.id)
-def request_password_reset(session: Session, email: str) -> Dict[str, Any]:
+def request_password_reset(session: Session, email: str) -> dict[str, Any]:
"""Requests a one-time password reset link for the given email address.
For security reasons, this function always returns a successful response and
does not reveal whether the email address belongs to an active account.
"""
email = email.lower().strip()
- now = datetime.datetime.now(datetime.timezone.utc)
+ now = datetime.datetime.now(datetime.UTC)
account = session.exec(
select(Account).where(
Account.email == email,
- Account.deleted == False, # noqa: E712
+ Account.deleted == False,
)
).first()
@@ -328,9 +328,7 @@ def request_password_reset(session: Session, email: str) -> Dict[str, Any]:
if secret.request_window_started_at is not None:
window_started_at = secret.request_window_started_at
if getattr(window_started_at, "tzinfo", None) is None:
- window_started_at = window_started_at.replace(
- tzinfo=datetime.timezone.utc
- )
+ window_started_at = window_started_at.replace(tzinfo=datetime.UTC)
window_ends_at = window_started_at + datetime.timedelta(
minutes=PASSWORD_RESET_RATE_LIMIT_WINDOW_MINUTES
@@ -435,7 +433,7 @@ def reset_password(
session: Session,
reset_token: str,
new_password: str,
-) -> Dict[str, str]:
+) -> dict[str, str]:
"""Resets an account password using a one-time password reset token.
Args:
@@ -449,7 +447,7 @@ def reset_password(
Returns:
Dict[str, str]: A status response.
"""
- now = datetime.datetime.now(datetime.timezone.utc)
+ now = datetime.datetime.now(datetime.UTC)
reset_token_hash = _hash_reset_token(reset_token.strip())
secret = session.exec(
@@ -467,7 +465,7 @@ def reset_password(
secret_expires = secret.expires_at
if getattr(secret_expires, "tzinfo", None) is None:
- secret_expires = secret_expires.replace(tzinfo=datetime.timezone.utc)
+ secret_expires = secret_expires.replace(tzinfo=datetime.UTC)
if secret_expires <= now:
session.delete(secret)
@@ -515,7 +513,7 @@ def login(
Returns:
LoginResponse: The response containing the ID token issued upon successful login.
"""
- now = datetime.datetime.now(datetime.timezone.utc)
+ now = datetime.datetime.now(datetime.UTC)
secret = session.exec(
select(Secret).where(
@@ -536,7 +534,7 @@ def login(
secret_expires = secret.expires_at
if getattr(secret_expires, "tzinfo", None) is None:
- secret_expires = secret_expires.replace(tzinfo=datetime.timezone.utc)
+ secret_expires = secret_expires.replace(tzinfo=datetime.UTC)
if secret_expires <= now:
logger.warning("Login failed: invalid or expired code %s", email_code)
@@ -611,7 +609,7 @@ def _get_current_user_access_token_payload(
real_account_id=uuid.UUID(access_token_payload[REAL_ACCOUNT_ID_KEY]),
effective_account_id=uuid.UUID(access_token_payload[EFFECTIVE_ACCOUNT_ID_KEY]),
expires_at=datetime.datetime.fromtimestamp(
- access_token_payload["exp"], tz=datetime.timezone.utc
+ access_token_payload["exp"], tz=datetime.UTC
),
epoch=access_token_payload[EPOCH_KEY],
effective_role=UserRole(access_token_payload[EFFECTIVE_ROLE_KEY]),
@@ -657,7 +655,7 @@ def _get_current_user_refresh_token_payload(
real_account_id=uuid.UUID(refresh_token_payload[REAL_ACCOUNT_ID_KEY]),
effective_account_id=uuid.UUID(refresh_token_payload[EFFECTIVE_ACCOUNT_ID_KEY]),
expires_at=datetime.datetime.fromtimestamp(
- refresh_token_payload["exp"], tz=datetime.timezone.utc
+ refresh_token_payload["exp"], tz=datetime.UTC
),
epoch=refresh_token_payload[EPOCH_KEY],
effective_role=UserRole(refresh_token_payload[EFFECTIVE_ROLE_KEY]),
@@ -708,7 +706,7 @@ def _get_current_user_id_token_payload(
return IdTokenMetadata(
real_account_id=uuid.UUID(id_token_payload[REAL_ACCOUNT_ID_KEY]),
expires_at=datetime.datetime.fromtimestamp(
- id_token_payload["exp"], tz=datetime.timezone.utc
+ id_token_payload["exp"], tz=datetime.UTC
),
epoch=id_token_payload[EPOCH_KEY],
)
@@ -784,9 +782,7 @@ def _get_account_organization(session: Session, account_id: uuid.UUID) -> uuid.U
return account.organization_id
-def _get_account_institution_id(
- session: Session, account_id: uuid.UUID
-) -> Optional[str]:
+def _get_account_institution_id(session: Session, account_id: uuid.UUID) -> str | None:
"""Retrieves the OpenAlex institution ID for the given account ID.
Args:
@@ -872,7 +868,7 @@ def get_access_token(
session: Session,
id_token: IdTokenMetadata,
real_account_id: uuid.UUID,
- effective_account_id: Optional[uuid.UUID] = None,
+ effective_account_id: uuid.UUID | None = None,
) -> AccessResponse:
# IMPORTANT: The ID token has already been verified by the dependency injection system, so we can trust its payload here.
@@ -1054,7 +1050,7 @@ def _build_id_token(
Returns:
IdToken: The generated ID token object.
"""
- expires_at = datetime.datetime.now(datetime.timezone.utc) + datetime.timedelta(
+ expires_at = datetime.datetime.now(datetime.UTC) + datetime.timedelta(
minutes=ID_TOKEN_EXPIRATION_MINUTES
)
payload = {
@@ -1082,7 +1078,7 @@ def _set_refresh_token(
effective_organization_id: uuid.UUID,
epoch: int,
effective_roles: list[UserRole] | None = None,
- effective_institution_id: Optional[str] = None,
+ effective_institution_id: str | None = None,
) -> RefreshTokenMetadata:
"""Builds a refresh token for the specified account IDs, role, organization ID, epoch, and fingerprint hash.
@@ -1098,7 +1094,7 @@ def _set_refresh_token(
Returns:
RefreshTokenMetadata: The generated refresh token object.
"""
- expires_at = datetime.datetime.now(datetime.timezone.utc) + datetime.timedelta(
+ expires_at = datetime.datetime.now(datetime.UTC) + datetime.timedelta(
minutes=REFRESH_TOKEN_EXPIRATION_MINUTES
)
effective_roles = normalize_roles(effective_roles or effective_role)
@@ -1137,7 +1133,7 @@ def _build_access_token(
epoch: int,
user_fingerprint_hash: str,
effective_roles: list[UserRole] | None = None,
- effective_institution_id: Optional[str] = None,
+ effective_institution_id: str | None = None,
) -> AccessToken:
"""Builds an access token for the specified account IDs, role, organization ID, epoch, and fingerprint hash.
@@ -1153,7 +1149,7 @@ def _build_access_token(
Returns:
AccessToken: The generated access token object.
"""
- expires_at = datetime.datetime.now(datetime.timezone.utc) + datetime.timedelta(
+ expires_at = datetime.datetime.now(datetime.UTC) + datetime.timedelta(
minutes=ACCESS_TOKEN_EXPIRATION_MINUTES
)
effective_roles = normalize_roles(effective_roles or effective_role)
@@ -1189,7 +1185,7 @@ def _build_access_token(
def _build_token(
- payload: Dict[str, Any],
+ payload: dict[str, Any],
expiration_datetime: datetime.datetime,
token_type: TokenType,
) -> str:
@@ -1203,7 +1199,7 @@ def _build_token(
Returns:
str: The encoded JWT token.
"""
- now = datetime.datetime.now(datetime.timezone.utc)
+ now = datetime.datetime.now(datetime.UTC)
payload.update(
{
"exp": expiration_datetime,
@@ -1219,7 +1215,7 @@ def _build_token(
return token
-def _verify_id_token(raw_id_token: str, session: Session) -> Dict[str, Any]:
+def _verify_id_token(raw_id_token: str, session: Session) -> dict[str, Any]:
"""Verifies the provided ID token and returns the decoded payload if valid.
Args:
@@ -1239,7 +1235,7 @@ def _verify_id_token(raw_id_token: str, session: Session) -> Dict[str, Any]:
return payload
-def _verify_refresh_token(raw_refresh_token: str, session: Session) -> Dict[str, Any]:
+def _verify_refresh_token(raw_refresh_token: str, session: Session) -> dict[str, Any]:
"""Verifies the provided refresh token and returns the decoded payload if valid.
Args:
@@ -1263,7 +1259,7 @@ def _verify_access_token_fp(
secure_fgp: str,
raw_access_token: str,
session: Session,
-) -> Dict[str, Any]:
+) -> dict[str, Any]:
"""Verifies the provided accesstoken against the fingerprint stored in the specified cookie and returns the decoded payload if valid.
Args:
@@ -1381,7 +1377,7 @@ def _get_active_account(session: Session, account_id: uuid.UUID) -> Account:
return account
-def logout(session: Session, access_token: AccessTokenMetadata) -> Dict[str, str]:
+def logout(session: Session, access_token: AccessTokenMetadata) -> dict[str, str]:
"""Logout the user by incrementing the epoch of the account associated with the provided access token, effectively invalidating all existing tokens for that account.
Args:
@@ -1408,7 +1404,7 @@ def change_password(
access_token: AccessTokenMetadata,
current_password: str,
new_password: str,
-) -> Dict[str, str]:
+) -> dict[str, str]:
"""Change the password for the user associated with the provided access token.
Args:
diff --git a/service/src/main/inse/auth/test_auth_service.py b/service/src/main/inse/auth/test_auth_service.py
index 17521871..1b5c92cb 100644
--- a/service/src/main/inse/auth/test_auth_service.py
+++ b/service/src/main/inse/auth/test_auth_service.py
@@ -1,24 +1,22 @@
-import inse.config as config_module
-import uuid
-
-import pytest
-from sqlmodel import Session, SQLModel, create_engine, select
-
-
-from fastapi import Response, HTTPException
import datetime as _dt
+import uuid
from datetime import timedelta
+import pytest
+from fastapi import HTTPException, Response
+from sqlmodel import Session, SQLModel, create_engine, select
+
+import inse.config as config_module
from inse.auth import service as auth_service
from inse.auth.model import (
+ AccessToken,
+ AccessTokenMetadata,
Account,
+ IdTokenMetadata,
Organization,
+ RefreshTokenMetadata,
Secret,
SecretPurpose,
- AccessToken,
- IdTokenMetadata,
- AccessTokenMetadata,
- RefreshTokenMetadata,
UserRole,
)
@@ -188,7 +186,7 @@ def test_access_and_refresh_token_flow(in_memory_session, settings_backup):
refresh_payload[auth_service.EFFECTIVE_ACCOUNT_ID_KEY]
),
expires_at=_dt.datetime.fromtimestamp(
- refresh_payload["exp"], tz=_dt.timezone.utc
+ refresh_payload["exp"], tz=_dt.UTC
),
epoch=refresh_payload[auth_service.EPOCH_KEY],
effective_role=UserRole(refresh_payload[auth_service.EFFECTIVE_ROLE_KEY]),
@@ -346,7 +344,7 @@ def test_login_with_expired_secret(in_memory_session, settings_backup):
org, acc = create_org_and_account(in_memory_session, email, password)
assert acc.id is not None
- expired_at = _dt.datetime.now(_dt.timezone.utc) - timedelta(minutes=10)
+ expired_at = _dt.datetime.now(_dt.UTC) - timedelta(minutes=10)
secret = Secret(
account_id=acc.id,
purpose=SecretPurpose.LOGIN_OTK,
@@ -593,7 +591,7 @@ def test_expired_jwt_token_raises(in_memory_session, settings_backup):
assert acc.id is not None
response = Response()
- past = _dt.datetime.now(_dt.timezone.utc) - timedelta(minutes=5)
+ past = _dt.datetime.now(_dt.UTC) - timedelta(minutes=5)
access_fingerprint_hash = auth_service._set_access_fp_cookie(response)
payload = {
auth_service.REAL_ACCOUNT_ID_KEY: str(acc.id),
@@ -624,7 +622,7 @@ def test_missing_hmac_key_raises_value_error(settings_backup):
with pytest.raises(ValueError):
auth_service._build_token(
payload={},
- expiration_datetime=_dt.datetime.now(_dt.timezone.utc),
+ expiration_datetime=_dt.datetime.now(_dt.UTC),
token_type=auth_service.TokenType.ID_TOKEN,
)
config_module.settings.token_hmac_key = saved
@@ -715,7 +713,7 @@ def test_reset_password_changes_password_and_increments_epoch(in_memory_session)
account_id=acc.id,
purpose=SecretPurpose.PASSWORD_RESET,
secret_value=auth_service._hash_reset_token(reset_token),
- expires_at=_dt.datetime.now(_dt.timezone.utc) + timedelta(minutes=5),
+ expires_at=_dt.datetime.now(_dt.UTC) + timedelta(minutes=5),
)
in_memory_session.add(secret)
in_memory_session.commit()
@@ -753,7 +751,7 @@ def test_reset_password_rejects_reused_token(in_memory_session):
account_id=acc.id,
purpose=SecretPurpose.PASSWORD_RESET,
secret_value=auth_service._hash_reset_token(reset_token),
- expires_at=_dt.datetime.now(_dt.timezone.utc) + timedelta(minutes=5),
+ expires_at=_dt.datetime.now(_dt.UTC) + timedelta(minutes=5),
)
in_memory_session.add(secret)
in_memory_session.commit()
@@ -792,7 +790,7 @@ def test_reset_password_rejects_expired_token(in_memory_session):
account_id=acc.id,
purpose=SecretPurpose.PASSWORD_RESET,
secret_value=auth_service._hash_reset_token(reset_token),
- expires_at=_dt.datetime.now(_dt.timezone.utc) - timedelta(minutes=1),
+ expires_at=_dt.datetime.now(_dt.UTC) - timedelta(minutes=1),
)
in_memory_session.add(secret)
in_memory_session.commit()
diff --git a/service/src/main/inse/authors/institution_membership_query.py b/service/src/main/inse/authors/institution_membership_query.py
index 8f4906f1..e10928ae 100644
--- a/service/src/main/inse/authors/institution_membership_query.py
+++ b/service/src/main/inse/authors/institution_membership_query.py
@@ -1,13 +1,12 @@
from __future__ import annotations
from collections.abc import Iterable
-from datetime import datetime, timezone
+from datetime import UTC, datetime
from typing import Any, Literal
-
AFFILIATION_LOOKBACK_YEARS = 2
OPENALEX_ID_PREFIX = "https://openalex.org/"
-AffiliationYearMode = Literal["all", "in", "from"]
+AffiliationYearMode = Literal["all", "in", "from", "between"]
def current_affiliation_year_cutoff(
@@ -21,7 +20,7 @@ def current_affiliation_year_cutoff(
when needed.
"""
- current_time = reference_time or datetime.now(timezone.utc)
+ current_time = reference_time or datetime.now(UTC)
return current_time.year - AFFILIATION_LOOKBACK_YEARS
@@ -29,17 +28,20 @@ def build_institution_affiliation_query(
institution_id: str,
year_mode: AffiliationYearMode = "all",
year: int | None = None,
+ year_to: int | None = None,
) -> dict[str, Any]:
"""Build an affiliation query for an institution and optional year rule.
``all`` accepts an affiliation from any year and requires ``year=None``.
``in`` requires an affiliation in exactly ``year``.
``from`` requires an affiliation in ``year`` or any later year.
+ ``between`` requires an affiliation between ``year`` and ``year_to``,
+ including both boundary years.
Institution IDs are normalized to their full OpenAlex URL.
"""
normalized_institution_id = _normalize_openalex_id(institution_id)
- _validate_year_mode(year_mode, year)
+ _validate_year_mode(year_mode, year, year_to)
affiliation_filters: list[dict[str, Any]] = [
{
@@ -56,6 +58,17 @@ def build_institution_affiliation_query(
affiliation_filters.append(
{"range": {"affiliations.years": {"gte": year}}}
)
+ elif year_mode == "between":
+ affiliation_filters.append(
+ {
+ "range": {
+ "affiliations.years": {
+ "gte": year,
+ "lte": year_to,
+ }
+ }
+ }
+ )
return {
"nested": {
@@ -69,6 +82,7 @@ def build_institution_membership_query(
institution_id: str,
year_mode: AffiliationYearMode = "all",
year: int | None = None,
+ year_to: int | None = None,
author_ids: Iterable[str] | None = None,
) -> dict[str, Any]:
"""Build an institution membership query for the selected year mode.
@@ -83,10 +97,11 @@ def build_institution_membership_query(
last-known institution IDs are available.
``in`` deliberately excludes condition 2 because an exact year requires
- explicit affiliation evidence for that year. When ``author_ids`` are
- supplied, the query is restricted to those authors in the same
- Elasticsearch request. Empty ``author_ids`` produce ``match_none``.
- Institution and author IDs are normalized to full OpenAlex URLs.
+ explicit affiliation evidence for that year. ``between`` applies the same
+ rule to its bounded period. When ``author_ids`` are supplied, the query is
+ restricted to those authors in the same Elasticsearch request. Empty
+ ``author_ids`` produce ``match_none``. Institution and author IDs are
+ normalized to full OpenAlex URLs.
"""
normalized_institution_id = _normalize_openalex_id(institution_id)
@@ -94,6 +109,7 @@ def build_institution_membership_query(
normalized_institution_id,
year_mode=year_mode,
year=year,
+ year_to=year_to,
)
author_filters: list[dict[str, Any]] = []
@@ -158,7 +174,7 @@ def build_institution_membership_query(
}
},
]
- if year_mode != "in":
+ if year_mode in {"all", "from"}:
# Last-known is the fallback only when affiliation IDs are unavailable.
membership_branches.insert(
1,
@@ -213,15 +229,28 @@ def build_active_institution_membership_query(
def _validate_year_mode(
year_mode: AffiliationYearMode,
year: int | None,
+ year_to: int | None,
) -> None:
- if year_mode not in {"all", "in", "from"}:
+ if year_mode not in {"all", "in", "from", "between"}:
raise ValueError(f"Unsupported affiliation year mode: {year_mode}")
if year_mode == "all":
- if year is not None:
- raise ValueError("year must be omitted when year_mode is 'all'")
+ if year is not None or year_to is not None:
+ raise ValueError(
+ "year and year_to must be omitted when year_mode is 'all'"
+ )
return
if isinstance(year, bool) or not isinstance(year, int):
raise ValueError(f"year is required when year_mode is '{year_mode}'")
+ if year_mode != "between":
+ if year_to is not None:
+ raise ValueError(
+ f"year_to must be omitted when year_mode is '{year_mode}'"
+ )
+ return
+ if isinstance(year_to, bool) or not isinstance(year_to, int):
+ raise ValueError("year_to is required when year_mode is 'between'")
+ if year > year_to:
+ raise ValueError("year must be less than or equal to year_to")
def _normalize_openalex_id(raw_id: str) -> str:
diff --git a/service/src/main/inse/authors/v2/collaboration_graph_jobs.py b/service/src/main/inse/authors/v2/collaboration_graph_jobs.py
new file mode 100644
index 00000000..75882772
--- /dev/null
+++ b/service/src/main/inse/authors/v2/collaboration_graph_jobs.py
@@ -0,0 +1,117 @@
+import datetime
+import logging
+from datetime import timedelta
+
+from inse.authors.v2.model import (
+ CollaborationGraph,
+ CollaborationGraphJob,
+ CollaborationGraphStatus,
+)
+from sqlmodel import Session, select
+
+logger = logging.getLogger(__name__)
+
+JOB_RETENTION = timedelta(hours=1)
+
+
+def create_collaboration_graph_job(session: Session, graph_id: str) -> None:
+ """Creates a new collaboration graph job in the database.
+
+ Args:
+ session (Session): The SQLModel session to use for database operations.
+ graph_id (str): The ID of the collaboration graph for which to create a job.
+ """
+ existing = session.get(CollaborationGraphJob, graph_id)
+ if existing:
+ logger.info(f"Job for graph_id {graph_id} already exists.")
+ return
+ job = CollaborationGraphJob(
+ graph_id=graph_id, status=CollaborationGraphStatus.PENDING
+ )
+ session.add(job)
+ session.commit()
+
+
+def get_collaboration_graph_job(
+ session: Session, graph_id: str
+) -> CollaborationGraphJob | None:
+ """Retrieves a collaboration graph job from the database by its graph ID.
+
+ Args:
+ session (Session): The SQLModel session to use for database operations.
+ graph_id (str): The ID of the collaboration graph for which to retrieve the job.
+
+ Returns:
+ CollaborationGraphJob | None: The collaboration graph job if found, otherwise None.
+ """
+ return session.get(CollaborationGraphJob, graph_id)
+
+
+def mark_collaboration_graph_job_completed(
+ session: Session, graph_id: str, result: CollaborationGraph
+) -> None:
+ """Marks a collaboration graph job as completed and stores the result.
+
+ Args:
+ session (Session): The SQLModel session to use for database operations.
+ graph_id (str): The ID of the collaboration graph for which to mark the job as completed.
+ result (CollaborationGraph): The result of the collaboration graph generation.
+ """
+ job = get_collaboration_graph_job(session, graph_id)
+ if not job:
+ logger.warning(
+ f"No job found for graph_id {graph_id}. Cannot mark as completed."
+ )
+ return
+ job.status = CollaborationGraphStatus.COMPLETED
+ job.set_result(result)
+ job.updated_at = datetime.datetime.now(datetime.UTC)
+ session.add(job)
+ session.commit()
+
+
+def mark_collaboration_graph_job_failed(
+ session: Session, graph_id: str, error_message: str
+) -> None:
+ """Marks a collaboration graph job as failed and stores the error message.
+
+ Args:
+ session (Session): The SQLModel session to use for database operations.
+ graph_id (str): The ID of the collaboration graph for which to mark the job as failed.
+ error_message (str): The error message describing the failure.
+ """
+ job = get_collaboration_graph_job(session, graph_id)
+ if not job:
+ logger.warning(f"No job found for graph_id {graph_id}. Cannot mark as failed.")
+ return
+ job.status = CollaborationGraphStatus.FAILED
+ job.error_message = error_message
+ job.updated_at = datetime.datetime.now(datetime.UTC)
+ session.add(job)
+ session.commit()
+
+
+def cleanup_old_collaboration_graph_jobs(
+ session: Session, max_age: timedelta = JOB_RETENTION
+) -> int:
+ """Cleans up old collaboration graph jobs that are older than the retention period.
+
+ Args:
+ session (Session): The SQLModel session to use for database operations.
+ max_age (timedelta): The maximum age of jobs to retain.
+
+ Returns:
+ int: The number of stale jobs that were cleaned up.
+ """
+ cutoff_time = datetime.datetime.now(datetime.UTC) - max_age
+ statement = select(CollaborationGraphJob).where(
+ CollaborationGraphJob.created_at < cutoff_time
+ )
+ stale_jobs = session.exec(statement).all()
+ count = len(stale_jobs)
+ for job in stale_jobs:
+ session.delete(job)
+ session.commit()
+ if count:
+ logger.debug("Cleaned up %d stale collaboration graph jobs", count)
+ return count
diff --git a/service/src/main/inse/authors/v2/model.py b/service/src/main/inse/authors/v2/model.py
index fdb0c63f..09f176ab 100644
--- a/service/src/main/inse/authors/v2/model.py
+++ b/service/src/main/inse/authors/v2/model.py
@@ -1,8 +1,187 @@
+from datetime import datetime
+from enum import StrEnum
+
from inse.model import Page
from inse.models.openalex.author import Author
+from pydantic import BaseModel
+from sqlmodel import Field, SQLModel
class AuthorPage(Page[Author]):
"""A paginated response containing a list of authors."""
- pass
+
+class MatchMode(StrEnum):
+ AND = "and"
+ OR = "or"
+
+
+class GraphFilterType(StrEnum):
+ PUBLICATION_FILTERED = "publication_filtered"
+ COLLABORATOR_FILTERED = "collaborator_filtered"
+
+
+class AuthorNode(BaseModel):
+ id: str = Field(description="The ID of the author.")
+ display_name: str = Field(description="The display name of the author.")
+ institution_ids: list[str] = Field(
+ default_factory=list,
+ description="IDs of institutions this author is affiliated with.",
+ )
+
+
+class WorkNode(BaseModel):
+ id: str = Field(description="The ID of the work.")
+ display_name: str = Field(description="The title of the work.")
+ publication_year: int = Field(description="The publication year of the work.")
+ author_ids: list[str] = Field(
+ default_factory=list,
+ description="IDs of authors who contributed to this work.",
+ )
+
+
+class InstitutionNode(BaseModel):
+ id: str = Field(description="The ID of the institution.")
+ display_name: str = Field(description="The display name of the institution.")
+
+
+class Edge(BaseModel):
+ source: str = Field(description="The ID of the source node.")
+ target: str = Field(description="The ID of the target node.")
+ weight: float = Field(description="The weight of the edge.")
+
+
+class InternalCollaborationGraph(BaseModel):
+ root_author_id: str = Field(description="The ID of the root author.")
+ authors: dict[str, AuthorNode] = Field(default_factory=dict)
+ institutions: dict[str, InstitutionNode] = Field(default_factory=dict)
+ works: dict[str, WorkNode] = Field(default_factory=dict)
+ edges: list[Edge] = Field(
+ default_factory=list,
+ description="Person-to-person collaboration edges only.",
+ )
+
+ def add_author(
+ self, author: AuthorNode, institution_ids: list[str] | None = None
+ ) -> None:
+ existing = self.authors.get(author.id)
+ if existing is None:
+ author.institution_ids = list(dict.fromkeys(institution_ids or []))
+ self.authors[author.id] = author
+ elif institution_ids:
+ merged = dict.fromkeys(existing.institution_ids)
+ merged.update(dict.fromkeys(institution_ids))
+ existing.institution_ids = list(merged)
+
+ def add_institution(self, institution: InstitutionNode) -> None:
+ self.institutions.setdefault(institution.id, institution)
+
+ def add_work(self, work: WorkNode, author_ids: list[str] | None = None) -> None:
+ existing = self.works.get(work.id)
+ if existing is None:
+ work.author_ids = list(dict.fromkeys(author_ids or []))
+ self.works[work.id] = work
+ elif author_ids:
+ merged = dict.fromkeys(existing.author_ids)
+ merged.update(dict.fromkeys(author_ids))
+ existing.author_ids = list(merged)
+
+ def add_edge(self, edge: Edge) -> None:
+ self.edges.append(edge)
+
+
+class CollaborationGraph(BaseModel):
+ root_author_id: str = Field(description="The ID of the root author.")
+ authors: list[AuthorNode] = Field(
+ default_factory=list, description="A list of author nodes."
+ )
+ institutions: list[InstitutionNode] = Field(
+ default_factory=list, description="A list of institution nodes."
+ )
+ works: list[WorkNode] = Field(
+ default_factory=list, description="A list of work nodes."
+ )
+ edges: list[Edge] = Field(
+ default_factory=list, description="A list of edges in the collaboration graph."
+ )
+
+ @classmethod
+ def from_internal_graph(
+ cls, internal_graph: InternalCollaborationGraph, min_edge_weight: float = 2.0
+ ) -> "CollaborationGraph":
+ return cls(
+ root_author_id=internal_graph.root_author_id,
+ authors=list(internal_graph.authors.values()),
+ institutions=list(internal_graph.institutions.values()),
+ works=list(internal_graph.works.values()),
+ edges=_collapse_edges(internal_graph.edges, min_weight=min_edge_weight),
+ )
+
+
+def _collapse_edges(edges: list[Edge], min_weight: float = 2.0) -> list[Edge]:
+ reduced: dict[frozenset[str], Edge] = {}
+
+ for edge in edges:
+ key = frozenset((edge.source, edge.target))
+ existing = reduced.get(key)
+ if existing is None:
+ reduced[key] = Edge(
+ source=edge.source, target=edge.target, weight=edge.weight
+ )
+ else:
+ existing.weight += edge.weight
+
+ return [edge for edge in reduced.values() if edge.weight >= min_weight]
+
+
+class CollaborationGraphStatus(StrEnum):
+ PENDING = "pending"
+ COMPLETED = "completed"
+ FAILED = "failed"
+
+
+class StartCollaborationGraphResponse(BaseModel):
+ graph_id: str = Field(description="The ID of the collaboration graph.")
+
+
+class CollaborationGraphStatusResponse(BaseModel):
+ status: CollaborationGraphStatus = Field(
+ description="The status of the collaboration graph."
+ )
+ result: CollaborationGraph | None = Field(
+ default=None, description="The collaboration graph result if completed."
+ )
+ error_message: str | None = Field(
+ default=None, description="The error message if the graph generation failed."
+ )
+
+
+class CollaborationGraphJob(SQLModel, table=True):
+ __tablename__ = "collaboration_graph_jobs" # type: ignore
+
+ graph_id: str = Field(
+ primary_key=True,
+ description="The ID of the collaboration graph generation task.",
+ )
+ status: CollaborationGraphStatus = Field(
+ default=CollaborationGraphStatus.PENDING,
+ description="The status of the collaboration graph generation task.",
+ )
+ result: str | None = Field(
+ default=None,
+ description="The JSON-serialized result of the collaboration graph generation task.",
+ )
+ error_message: str | None = Field(
+ default=None,
+ description="The error message if the collaboration graph generation failed.",
+ )
+ created_at: datetime = Field(default_factory=datetime.utcnow)
+ updated_at: datetime = Field(default_factory=datetime.utcnow)
+
+ def get_result(self) -> "CollaborationGraph | None":
+ if self.result is None:
+ return None
+ return CollaborationGraph.model_validate_json(self.result)
+
+ def set_result(self, value: BaseModel | None) -> None:
+ self.result = value.model_dump_json() if value is not None else None
diff --git a/service/src/main/inse/authors/v2/router.py b/service/src/main/inse/authors/v2/router.py
index 74fce377..9fd0aa3d 100644
--- a/service/src/main/inse/authors/v2/router.py
+++ b/service/src/main/inse/authors/v2/router.py
@@ -1,20 +1,38 @@
import logging
from typing import Annotated
-from fastapi import APIRouter, Query
-
-from inse.tags import Tags
-from inse.authors.v2.model import AuthorPage
-
import inse.authors.v2.service as authors_service
-
-
-AUTHORS_V2_PREFIX = "/api/v2/authors"
+from fastapi import APIRouter, BackgroundTasks, Path, Query
+from inse.authors.v2.model import (
+ AuthorPage,
+ CollaborationGraphStatusResponse,
+ StartCollaborationGraphResponse,
+)
+from inse.database import SessionDep
+from inse.models.openalex.author import Author
+from inse.router_prefixes import RouterPrefixes
+from inse.tags import Tags
logger = logging.getLogger(__name__)
-router = APIRouter(prefix=AUTHORS_V2_PREFIX, tags=[Tags.AUTHORS_V2])
+router = APIRouter(prefix=RouterPrefixes.AUTHORS_V2, tags=[Tags.AUTHORS_V2])
+
+
+@router.get(
+ "/{raw_oa_author_id}",
+ operation_id="getAuthorById",
+ summary="Returns an author for a given author ID.",
+)
+async def get_author_by_id(
+ raw_oa_author_id: Annotated[
+ str,
+ Path(description="The ID of the author to retrieve."),
+ ],
+) -> Author:
+ return await authors_service.get_author_by_id_strict_or_raise(
+ raw_oa_author_id=raw_oa_author_id
+ )
@router.get(
@@ -24,9 +42,9 @@ router = APIRouter(prefix=AUTHORS_V2_PREFIX, tags=[Tags.AUTHORS_V2])
)
async def get_authors_by_ids(
author_ids: Annotated[
- list[str],
+ list[str] | None,
Query(description="A list of author IDs to retrieve."),
- ] = [],
+ ] = None,
) -> AuthorPage:
return await authors_service.get_authors_by_ids(author_ids=author_ids or [])
@@ -45,3 +63,86 @@ async def autocomplete_authors_for_selector(
] = "",
) -> AuthorPage:
return await authors_service.autocomplete_authors_for_selector(query=query)
+
+
+@router.post(
+ "/collaboration-graph",
+ operation_id="startCollaborationGraph",
+ summary="Returns a collaboration graph for a given author ID.",
+)
+def start_collaboration_graph(
+ session: SessionDep,
+ background_tasks: BackgroundTasks,
+ raw_oa_author_id: Annotated[
+ str,
+ Query(
+ description="The raw OpenAlex author ID for which to retrieve the collaboration graph."
+ ),
+ ],
+ year_from: Annotated[
+ int | None,
+ Query(
+ description="The starting year to filter the works by (optional).",
+ ),
+ ] = None,
+ year_to: Annotated[
+ int | None,
+ Query(
+ description="The ending year to filter the works by (optional).",
+ ),
+ ] = None,
+ min_collaborators: Annotated[
+ int | None,
+ Query(
+ description="The minimum number of collaborators to filter the works by (optional).",
+ ),
+ ] = None,
+ max_collaborators: Annotated[
+ int | None,
+ Query(
+ description="The maximum number of collaborators to filter the works by (optional).",
+ ),
+ ] = None,
+ topic_ids: Annotated[
+ list[str] | None,
+ Query(
+ description="A list of topic IDs to filter the works by (optional).",
+ ),
+ ] = None,
+ institution_ids: Annotated[
+ list[str] | None,
+ Query(
+ description="A list of institution IDs to filter the works by (optional).",
+ ),
+ ] = None,
+) -> StartCollaborationGraphResponse:
+ return authors_service.start_collaboration_graph(
+ session=session,
+ background_tasks=background_tasks,
+ raw_oa_author_id=raw_oa_author_id,
+ year_from=year_from,
+ year_to=year_to,
+ min_collaborators=min_collaborators,
+ max_collaborators=max_collaborators,
+ topic_ids=topic_ids,
+ institution_ids=institution_ids,
+ )
+
+
+@router.get(
+ "/collaboration-graph/{graph_id}/status",
+ operation_id="getCollaborationGraphStatus",
+ summary="Returns the status of a collaboration graph generation task.",
+)
+def get_collaboration_graph_status(
+ session: SessionDep,
+ graph_id: Annotated[
+ str,
+ Path(
+ description="The ID of the collaboration graph generation task.",
+ ),
+ ],
+) -> CollaborationGraphStatusResponse:
+ return authors_service.get_collaboration_graph_status(
+ session=session, graph_id=graph_id
+ )
diff --git a/service/src/main/inse/authors/v2/service.py b/service/src/main/inse/authors/v2/service.py
index b4b8b928..7a49be8e 100644
--- a/service/src/main/inse/authors/v2/service.py
+++ b/service/src/main/inse/authors/v2/service.py
@@ -1,21 +1,40 @@
-from typing import Dict, List, Optional, Set
+import logging
+import inse.works.v2.service as works_service
+from fastapi import BackgroundTasks
from inse.authors.institution_membership_query import (
build_active_institution_membership_query,
)
-from inse.authors.v2.model import AuthorPage
+from inse.authors.v2 import collaboration_graph_jobs
+from inse.authors.v2.model import (
+ AuthorNode,
+ AuthorPage,
+ CollaborationGraph,
+ CollaborationGraphStatus,
+ CollaborationGraphStatusResponse,
+ InstitutionNode,
+ InternalCollaborationGraph,
+ MatchMode,
+ StartCollaborationGraphResponse,
+ WorkNode,
+)
+from inse.exceptions import NotFoundException
from inse.integrations import elasticsearch
from inse.model import ESIndex
from inse.models.openalex.author import Author
+from inse.works.v2.model import WorkPageV2
+from sqlmodel import Session
+
+logger = logging.getLogger(__name__)
async def search_authors(
page: int = 0,
size: int = 10,
- query: Optional[Dict] = None,
- source: Optional[List[str]] = None,
- sort: Optional[List[dict]] = None,
- body: Optional[dict] = None,
+ query: dict | None = None,
+ source: list[str] | None = None,
+ sort: list[dict] | None = None,
+ body: dict | None = None,
) -> AuthorPage:
"""Searches for authors in the OpenAlex Elasticsearch index based on the provided parameters.
@@ -43,28 +62,48 @@ async def search_authors(
hits_block = response.get("hits", {})
hits = hits_block.get("hits", [])
- authors: List[Author] = []
+ authors: list[Author] = []
for hit in hits:
_source = hit.get("_source", {})
authors.append(Author.from_dict(_source)) # type: ignore
return AuthorPage(elements=authors, total=len(authors), page=page, size=size)
-async def get_author_by_id(author_id: str) -> Optional[Author]:
+async def get_author_by_id(raw_oa_author_id: str) -> Author | None:
"""Retrieves an author from the OpenAlex Elasticsearch index based on the provided author ID.
Args:
- author_id (str): The ID of the author to retrieve.
+ raw_oa_author_id (str): The raw OpenAlex author ID of the author to retrieve.
Returns:
Optional[Author]: The retrieved author, or None if not found.
"""
- response = await elasticsearch.get(index=ESIndex.OPENALEX_AUTHORS, doc_id=author_id)
+ response = await elasticsearch.get(
+ index=ESIndex.OPENALEX_AUTHORS, doc_id=raw_oa_author_id
+ )
if not response.get("found"):
return None
return Author.from_dict(response.get("_source", {})) # type: ignore
+async def get_author_by_id_strict_or_raise(raw_oa_author_id: str) -> Author:
+ """Retrieves an author from the OpenAlex Elasticsearch index based on the provided author ID.
+
+ Args:
+ raw_oa_author_id (str): The raw OpenAlex author ID of the author to retrieve.
+
+ Returns:
+ Author: The retrieved author.
+
+ Raises:
+ ValueError: If the author is not found.
+ """
+ author = await get_author_by_id(raw_oa_author_id=raw_oa_author_id)
+ if not author:
+ raise NotFoundException(f"Author with ID {raw_oa_author_id} not found.")
+ return author
+
+
async def autocomplete_authors_for_selector(query: str) -> AuthorPage:
"""Autocompletes authors based on a search term for use in a selector component.
@@ -89,7 +128,7 @@ async def autocomplete_authors_for_selector(query: str) -> AuthorPage:
)
-async def get_authors_by_ids(author_ids: List[str]) -> AuthorPage:
+async def get_authors_by_ids(author_ids: list[str]) -> AuthorPage:
"""Retrieves authors based on a list of author IDs.
Args:
@@ -103,7 +142,7 @@ async def get_authors_by_ids(author_ids: List[str]) -> AuthorPage:
return await search_authors(
page=0,
- size=len(author_ids),
+ size=min(10000, len(author_ids)),
query={"terms": {"id": author_ids}},
source=[
"id",
@@ -137,9 +176,9 @@ async def author_currently_belongs_to_institution(
async def authors_currently_belong_to_institution(
- raw_oa_author_ids: List[str],
+ raw_oa_author_ids: list[str],
raw_oa_institution_id: str,
-) -> Set[str]:
+) -> set[str]:
"""Return active cohort members using one query for all supplied authors."""
author_ids = list(dict.fromkeys(filter(None, raw_oa_author_ids)))
@@ -156,3 +195,524 @@ async def authors_currently_belong_to_institution(
source=["id"],
)
return {author.id for author in authors.elements if author.id}
+
+
+def _build_collaboration_graph_query(
+ raw_oa_author_id: str,
+ year_from: int | None = None,
+ year_to: int | None = None,
+ min_collaborators: int | None = None,
+ max_collaborators: int | None = None,
+ topic_ids: list[str] | None = None,
+ topic_match_mode: MatchMode = MatchMode.OR,
+ institution_ids: list[str] | None = None,
+):
+ """Builds an Elasticsearch query for retrieving a collaboration graph for a given author ID, optionally filtered by year range, collaborator count, topic IDs, and institution IDs.
+
+ Args:
+ raw_oa_author_id (str): The raw OpenAlex author ID for which to build the collaboration graph.
+ year_from (int | None, optional): The starting year to filter the works by (optional). Defaults to None.
+ year_to (int | None, optional): The ending year to filter the works by (optional). Defaults to None.
+ min_collaborators (int | None, optional): The minimum number of collaborators to filter the works by (optional). Defaults to None.
+ max_collaborators (int | None, optional): The maximum number of collaborators to filter the works by (optional). Defaults to None.
+ topic_ids (list[str] | None, optional): A list of topic IDs to filter the works by (optional). Defaults to None.
+ topic_match_mode (MatchMode, optional): The mode for matching topics (optional). Defaults to MatchMode.OR.
+ institution_ids (list[str] | None, optional): A list of institution IDs to filter the works by (optional). Defaults to None.
+
+ Raises:
+ ValueError: If the topic_match_mode is not valid.
+ ValueError: If the topic_ids list is empty.
+ ValueError: If the institution_ids list is empty.
+
+ Returns:
+ _type_: The built Elasticsearch query for the collaboration graph.
+ """
+ author_id = _prefix_id(raw_oa_author_id)
+
+ must: list[dict] = [
+ {
+ "nested": {
+ "path": "authorships",
+ "query": {"term": {"authorships.author.id": author_id}},
+ }
+ }
+ ]
+
+ if year_from is not None or year_to is not None:
+ range_query: dict = {}
+ if year_from is not None:
+ range_query["gte"] = year_from
+ if year_to is not None:
+ range_query["lte"] = year_to
+ must.append({"range": {"publication_year": range_query}})
+
+ if min_collaborators is not None or max_collaborators is not None:
+ range_query: dict = {}
+ if min_collaborators is not None:
+ range_query["gte"] = min_collaborators
+ if max_collaborators is not None:
+ range_query["lte"] = max_collaborators
+ must.append({"range": {"authors_count": range_query}})
+
+ if topic_ids is not None:
+ if not topic_ids:
+ raise ValueError("topic_ids must be a non-empty list if provided")
+ if topic_match_mode not in (MatchMode.OR, MatchMode.AND):
+ raise ValueError('topic_match_mode must be "or" or "and"')
+
+ if topic_match_mode == MatchMode.OR:
+ must.append(
+ {
+ "nested": {
+ "path": "topics",
+ "query": {"terms": {"topics.id": topic_ids}},
+ }
+ }
+ )
+ else:
+ for topic_id in topic_ids:
+ must.append(
+ {
+ "nested": {
+ "path": "topics",
+ "query": {"term": {"topics.id": topic_id}},
+ }
+ }
+ )
+
+ if institution_ids is not None:
+ if not institution_ids:
+ raise ValueError("institution_ids must be a non-empty list if provided")
+ must.append(
+ {
+ "nested": {
+ "path": "authorships",
+ "query": {
+ "nested": {
+ "path": "authorships.institutions",
+ "query": {
+ "terms": {
+ "authorships.institutions.id": institution_ids
+ }
+ },
+ }
+ },
+ }
+ }
+ )
+
+ query = {
+ "bool": {
+ "must": must,
+ }
+ }
+
+ logger.debug("Collaboration graph query for author %s: %s", raw_oa_author_id, query)
+
+ return query
+
+
+COLLABORATION_GRAPH_SOURCE_FIELDS = [
+ "id",
+ "display_name",
+ "publication_year",
+ "authors_count",
+ "authorships.author.id",
+ "authorships.author.display_name",
+ "authorships.institutions.id",
+ "authorships.institutions.display_name",
+]
+
+
+def _get_collaboration_graph_cache_key(
+ raw_oa_author_id: str,
+ year_from: int | None = None,
+ year_to: int | None = None,
+ min_collaborators: int | None = None,
+ max_collaborators: int | None = None,
+ topic_ids: list[str] | None = None,
+ institution_ids: list[str] | None = None,
+) -> str:
+ """Generates a cache key for the collaboration graph based on the provided parameters.
+
+ Args:
+ raw_oa_author_id (str): The raw OpenAlex author ID for which to generate the cache key.
+ year_from (int | None, optional): The starting year to filter the works by (optional). Defaults to None.
+ year_to (int | None, optional): The ending year to filter the works by (optional). Defaults to None.
+ min_collaborators (int | None, optional): The minimum number of collaborators to filter the works by (optional). Defaults to None.
+ max_collaborators (int | None, optional): The maximum number of collaborators to filter the works by (optional). Defaults to None.
+ topic_ids (list[str] | None, optional): A list of topic IDs to filter the works by (optional). Defaults to None.
+ institution_ids (list[str] | None, optional): A list of institution IDs to filter the works by (optional). Defaults to None.
+
+ Returns:
+ str: The generated cache key.
+ """
+
+ return f"collaboration_graph:{raw_oa_author_id}:{year_from}:{year_to}:{min_collaborators}:{max_collaborators}:{':'.join(sorted([_remove_prefix_id(id) for id in topic_ids or []]))}:{':'.join(sorted([_remove_prefix_id(id) for id in institution_ids or []]))}"
+
+
+async def _build_collaboration_graph(
+ raw_oa_author_id: str,
+ year_from: int | None = None,
+ year_to: int | None = None,
+ min_collaborators: int | None = None,
+ max_collaborators: int | None = None,
+ topic_ids: list[str] | None = None,
+ institution_ids: list[str] | None = None,
+) -> CollaborationGraph:
+ """Gets a collaboration graph for a given author ID, optionally filtered by year range, collaborator count, topic IDs, and institution IDs.
+
+ Args:
+ raw_oa_author_id (str): The raw OpenAlex author ID for which to retrieve the collaboration graph.
+ year_from (int | None, optional): The starting year to filter the works by (optional). Defaults to None.
+ year_to (int | None, optional): The ending year to filter the works by (optional). Defaults to None.
+ min_collaborators (int | None, optional): The minimum number of collaborators to filter the works by (optional). Defaults to None.
+ max_collaborators (int | None, optional): The maximum number of collaborators to filter the works by (optional). Defaults to None.
+ topic_ids (list[str] | None, optional): A list of topic IDs to filter the works by (optional). Defaults to None.
+ institution_ids (list[str] | None, optional): A list of institution IDs to filter the works by (optional). Defaults to None.
+
+ Returns:
+ CollaborationGraph: The collaboration graph for the given author ID.
+ """
+
+ query = _build_collaboration_graph_query(
+ raw_oa_author_id=raw_oa_author_id,
+ year_from=year_from,
+ year_to=year_to,
+ min_collaborators=min_collaborators,
+ max_collaborators=max_collaborators,
+ topic_ids=topic_ids,
+ institution_ids=institution_ids,
+ )
+ logger.debug(
+ f"Searching works for collaboration graph of author {raw_oa_author_id} with query: {query}"
+ )
+
+ work_page: WorkPageV2 = await works_service._search_works(
+ query=query,
+ source=COLLABORATION_GRAPH_SOURCE_FIELDS,
+ page=0,
+ size=10000,
+ sort=[{"publication_year": "desc"}, {"id": "asc"}],
+ )
+
+ logger.debug(
+ f"Retrieved {len(work_page.elements)} works for collaboration graph of author {raw_oa_author_id} (total: {work_page.total})"
+ )
+
+ return _build_collaboration_graph_from_works(
+ page=work_page, raw_oa_author_id=raw_oa_author_id
+ )
+
+
+def _build_collaboration_graph_from_works(
+ page: WorkPageV2, raw_oa_author_id: str, min_edge_weight: float = 1.0
+) -> CollaborationGraph:
+ """Builds a collaboration graph from a page of works and a raw OpenAlex author ID.
+
+ Args:
+ page (WorkPageV2): The page of works from which to build the collaboration graph.
+ raw_oa_author_id (str): The raw OpenAlex author ID for which to build the collaboration graph.
+ min_edge_weight (float, optional): Minimum weight for a collaboration edge to be
+ included in the result. Filters out authors who only co-authored a single
+ work together. Defaults to 1.0.
+
+ Returns:
+ CollaborationGraph: The built collaboration graph.
+ """
+ works = page.elements
+ internal_graph = InternalCollaborationGraph(
+ root_author_id=_prefix_id(raw_oa_author_id)
+ )
+
+ for work in works:
+ if not work.id or not work.display_name or not work.publication_year:
+ continue
+
+ work_author_ids: list[str] = []
+
+ for authorship in work.authorships or []:
+ author = authorship.author
+ if not author or not author.id or not author.display_name:
+ continue
+
+ institution_ids: list[str] = []
+ for institution in authorship.institutions or []:
+ if (
+ not institution
+ or not institution.id
+ or not institution.display_name
+ ):
+ continue
+
+ internal_graph.add_institution(
+ InstitutionNode(
+ id=institution.id, display_name=institution.display_name
+ )
+ )
+ institution_ids.append(institution.id)
+
+ internal_graph.add_author(
+ AuthorNode(id=author.id, display_name=author.display_name),
+ institution_ids=institution_ids,
+ )
+ work_author_ids.append(author.id)
+
+ internal_graph.add_work(
+ WorkNode(
+ id=work.id,
+ display_name=work.display_name,
+ publication_year=work.publication_year,
+ ),
+ author_ids=work_author_ids,
+ )
+
+ # Toggle to add edges between all pairs of authors for each work. This can create a dense graph if many authors co-author works together.
+ # for author_a, author_b in combinations(sorted(set(work_author_ids)), 2):
+ # internal_graph.add_edge(Edge(source=author_a, target=author_b, weight=1.0))
+
+ graph = CollaborationGraph.from_internal_graph(
+ internal_graph, min_edge_weight=min_edge_weight
+ )
+
+ logger.debug(
+ f"Built collaboration graph for author {raw_oa_author_id}: "
+ f"{len(graph.authors)} authors, {len(graph.works)} works, "
+ f"{len(graph.institutions)} institutions, {len(graph.edges)} edges"
+ )
+
+ return graph
+
+
+jobs: dict[str, dict] = {}
+
+
+def start_collaboration_graph(
+ session: Session,
+ background_tasks: BackgroundTasks,
+ raw_oa_author_id: str,
+ year_from: int | None = None,
+ year_to: int | None = None,
+ min_collaborators: int | None = None,
+ max_collaborators: int | None = None,
+ topic_ids: list[str] | None = None,
+ institution_ids: list[str] | None = None,
+) -> StartCollaborationGraphResponse:
+ """Starts the process of generating a collaboration graph for a given author ID, optionally filtered by year range, collaborator count, topic IDs, and institution IDs.
+
+ Args:
+ raw_oa_author_id (str): The raw OpenAlex author ID for which to generate the collaboration graph.
+ year_from (int | None, optional): The starting year to filter the works by (optional). Defaults to None.
+ year_to (int | None, optional): The ending year to filter the works by (optional). Defaults to None.
+ min_collaborators (int | None, optional): The minimum number of collaborators to filter the works by (optional). Defaults to None.
+ max_collaborators (int | None, optional): The maximum number of collaborators to filter the works by (optional). Defaults to None.
+ topic_ids (list[str] | None, optional): A list of topic IDs to filter the works by (optional). Defaults to None.
+ institution_ids (list[str] | None, optional): A list of institution IDs to filter the works by (optional). Defaults to None.
+
+ Returns:
+ StartCollaborationGraphResponse: The response containing the cache key for the collaboration graph generation process.
+ """
+ cache_key = _get_collaboration_graph_cache_key(
+ raw_oa_author_id=raw_oa_author_id,
+ year_from=year_from,
+ year_to=year_to,
+ min_collaborators=min_collaborators,
+ max_collaborators=max_collaborators,
+ topic_ids=topic_ids,
+ institution_ids=institution_ids,
+ )
+ logger.debug("Generated cache key for collaboration graph: %s", cache_key)
+
+ existing_job = collaboration_graph_jobs.get_collaboration_graph_job(
+ session, cache_key
+ )
+ if existing_job:
+ logger.debug(
+ "Collaboration graph job already exists for cache key: %s, status: %s",
+ cache_key,
+ existing_job.status,
+ )
+ return StartCollaborationGraphResponse(graph_id=cache_key)
+
+ collaboration_graph_jobs.create_collaboration_graph_job(session, cache_key)
+ background_tasks.add_task(
+ _run_collaboration_graph_job,
+ session,
+ cache_key,
+ raw_oa_author_id,
+ year_from,
+ year_to,
+ min_collaborators,
+ max_collaborators,
+ topic_ids,
+ institution_ids,
+ )
+
+ logger.debug(
+ "Started background task for collaboration graph job with cache key: %s",
+ cache_key,
+ )
+
+ return StartCollaborationGraphResponse(graph_id=cache_key)
+
+
+async def _run_collaboration_graph_job(
+ session: Session,
+ cache_key: str,
+ raw_oa_author_id: str,
+ year_from: int | None = None,
+ year_to: int | None = None,
+ min_collaborators: int | None = None,
+ max_collaborators: int | None = None,
+ topic_ids: list[str] | None = None,
+ institution_ids: list[str] | None = None,
+) -> None:
+ """Runs the collaboration graph generation job in the background and updates the job status in the jobs dictionary.
+
+ Args:
+ cache_key (str): The cache key for the collaboration graph generation process.
+ raw_oa_author_id (str): The raw OpenAlex author ID for which to generate the collaboration graph.
+ year_from (int | None, optional): The starting year to filter the works by (optional). Defaults to None.
+ year_to (int | None, optional): The ending year to filter the works by (optional). Defaults to None.
+ min_collaborators (int | None, optional): The minimum number of collaborators to filter the works by (optional). Defaults to None.
+ max_collaborators (int | None, optional): The maximum number of collaborators to filter the works by (optional). Defaults to None.
+ topic_ids (list[str] | None, optional): A list of topic IDs to filter the works by (optional). Defaults to None.
+ institution_ids (list[str] | None, optional): A list of institution IDs to filter the works by (optional). Defaults to None.
+ """
+ try:
+ result = await _build_collaboration_graph(
+ raw_oa_author_id=raw_oa_author_id,
+ year_from=year_from,
+ year_to=year_to,
+ min_collaborators=min_collaborators,
+ max_collaborators=max_collaborators,
+ topic_ids=topic_ids,
+ institution_ids=institution_ids,
+ )
+ logger.debug(
+ f"Collaboration graph job completed successfully for cache key: {cache_key}"
+ )
+ collaboration_graph_jobs.mark_collaboration_graph_job_completed(
+ session, cache_key, result
+ )
+ logger.debug(
+ f"Collaboration graph job marked as completed for cache key: {cache_key}"
+ )
+ except Exception as e:
+ logger.exception("Collaboration graph job failed: %s", cache_key)
+ collaboration_graph_jobs.mark_collaboration_graph_job_failed(
+ session, cache_key, str(e)
+ )
+ logger.debug(
+ f"Collaboration graph job marked as failed for cache key: {cache_key}, error: {e!s}"
+ )
+
+
+def get_collaboration_graph_status(
+ session: Session,
+ graph_id: str,
+) -> CollaborationGraphStatusResponse:
+ """Retrieves the status of a collaboration graph generation process based on the provided graph ID.
+
+ Args:
+ graph_id (str): The ID of the collaboration graph generation process.
+
+ Returns:
+ CollaborationGraphStatusResponse: The response containing the status and result (if completed) of the collaboration graph generation process.
+ """
+ job = collaboration_graph_jobs.get_collaboration_graph_job(session, graph_id)
+ if not job:
+ logger.debug("No job found for the provided graph ID: %s", graph_id)
+ return CollaborationGraphStatusResponse(
+ status=CollaborationGraphStatus.FAILED,
+ error_message="No job found for the provided graph ID.",
+ )
+ logger.debug(
+ "Retrieved job status for graph ID: %s, status: %s",
+ graph_id,
+ job.status,
+ )
+
+ status = job.status
+ result = (
+ job.get_result() if job.status == CollaborationGraphStatus.COMPLETED else None
+ )
+ error_message = job.error_message
+ if result and job.status == CollaborationGraphStatus.COMPLETED:
+ if _is_graph_empty(result):
+ status = CollaborationGraphStatus.FAILED
+ result = None
+ error_message = "Der generierte Kollaborationsgraph ist leer. Bitte versuchen Sie es mit anderen Filtereinstellungen."
+ logger.debug(
+ "Collaboration graph for graph ID: %s is empty, marking as failed.",
+ graph_id,
+ )
+ elif _is_graph_too_large(result):
+ status = CollaborationGraphStatus.FAILED
+ result = None
+ error_message = "Der generierte Kollaborationsgraph ist zu groß, um ihn anzuzeigen. Bitte versuchen Sie es mit anderen Filtereinstellungen."
+ logger.debug(
+ "Collaboration graph for graph ID: %s is too large, marking as failed.",
+ graph_id,
+ )
+
+ return CollaborationGraphStatusResponse(
+ status=status,
+ result=result,
+ error_message=error_message,
+ )
+
+
+def _is_graph_empty(graph: CollaborationGraph) -> bool:
+ """Returns True if the collaboration graph has no authors, works, or institutions.
+
+ Args:
+ graph (CollaborationGraph): The collaboration graph to check.
+
+ Returns:
+ bool: True if the graph is empty, False otherwise.
+ """
+ return not (graph.authors or graph.works or graph.institutions)
+
+
+def _is_graph_too_large(graph: CollaborationGraph, max_nodes: int = 1000) -> bool:
+ """Returns True if the total number of nodes (authors, works, and institutions) in the graph exceeds the specified max_nodes limit.
+
+ Args:
+ graph (CollaborationGraph): The collaboration graph to check.
+ max_nodes (int, optional): The maximum number of nodes allowed. Defaults to 1000.
+
+ Returns:
+ bool: True if the graph is too large, False otherwise.
+ """
+ return len(graph.authors + graph.works + graph.institutions) > max_nodes
+
+
+def _prefix_id(raw_oa_id: str) -> str:
+ """Prefixes the raw OpenAlex ID with "https://openalex.org/" if it does not already start with that prefix.
+
+ Args:
+ raw_oa_id (str): The raw OpenAlex ID to prefix.
+
+ Returns:
+ str: The prefixed OpenAlex ID.
+ """
+
+ if not raw_oa_id.startswith("https://openalex.org/"):
+ return f"https://openalex.org/{raw_oa_id}"
+ return raw_oa_id
+
+
+def _remove_prefix_id(prefixed_oa_id: str) -> str:
+ """Removes the "https://openalex.org/" prefix from the provided OpenAlex ID if it starts with that prefix.
+
+ Args:
+ prefixed_oa_id (str): The OpenAlex ID with the prefix to remove.
+
+ Returns:
+ str: The OpenAlex ID without the prefix.
+ """
+
+ if prefixed_oa_id.startswith("https://openalex.org/"):
+ return prefixed_oa_id[len("https://openalex.org/") :]
+ return prefixed_oa_id
diff --git a/service/src/main/inse/collaboration_network/__init__.py b/service/src/main/inse/background_jobs/__init__.py
similarity index 100%
rename from service/src/main/inse/collaboration_network/__init__.py
rename to service/src/main/inse/background_jobs/__init__.py
diff --git a/service/src/main/inse/background_jobs/model.py b/service/src/main/inse/background_jobs/model.py
new file mode 100644
index 00000000..5de396de
--- /dev/null
+++ b/service/src/main/inse/background_jobs/model.py
@@ -0,0 +1,145 @@
+"""
+Database tables and API schemas for the background job runner.
+"""
+
+from datetime import UTC, datetime
+from enum import StrEnum
+
+from pydantic import BaseModel
+from sqlmodel import JSON, Column, Field, SQLModel
+
+
+class JobRunStatus(StrEnum):
+ RUNNING = "running"
+ SUCCEEDED = "succeeded"
+ FAILED = "failed"
+ STOPPED = "stopped"
+
+
+class JobTriggeredBy(StrEnum):
+ SCHEDULE = "schedule"
+ MANUAL = "manual"
+
+
+def utcnow() -> datetime:
+ return datetime.now(UTC).replace(tzinfo=None)
+
+
+class JobDefinition(SQLModel, table=True):
+ __tablename__ = "background_job_definition"
+
+ id: int | None = Field(default=None, primary_key=True)
+ name: str = Field(
+ index=True, unique=True, description="Human-readable job name shown in the UI."
+ )
+ description: str = Field(default="", description="What this job does.")
+ target_index: str = Field(
+ default="", description="Elasticsearch index the job writes to (UI info)."
+ )
+ image: str | None = Field(
+ default=None,
+ description="Docker image to run. Null falls back to the configured "
+ "background-jobs image.",
+ )
+ command: str | None = Field(
+ default=None,
+ description="Command passed to the image. Null uses the job name (for "
+ "known jobs) or the image's default entrypoint.",
+ )
+ env: dict[str, str] = Field(
+ default_factory=dict,
+ sa_column=Column(JSON),
+ description="Extra environment variables passed to the container.",
+ )
+ schedule: str | None = Field(
+ default=None,
+ description="Cron expression in UTC (e.g. '0 3 * * *'). Null = manual only.",
+ )
+ enabled: bool = Field(
+ default=True, description="Disabled definitions are never scheduled."
+ )
+ next_run_at: datetime | None = Field(
+ default=None, description="Computed by the scheduler from the cron expression."
+ )
+ created_at: datetime = Field(default_factory=utcnow)
+
+
+class JobRun(SQLModel, table=True):
+ __tablename__ = "background_job_run"
+
+ id: int | None = Field(default=None, primary_key=True)
+ definition_id: int = Field(
+ foreign_key="background_job_definition.id", index=True
+ )
+ container_id: str | None = Field(default=None)
+ status: JobRunStatus = Field(default=JobRunStatus.RUNNING)
+ triggered_by: JobTriggeredBy = Field(
+ description="Whether the scheduler or a superadmin started this run."
+ )
+ started_at: datetime = Field(default_factory=utcnow)
+ finished_at: datetime | None = Field(default=None)
+ exit_code: int | None = Field(default=None)
+ logs: str | None = Field(
+ default=None,
+ description="Captured stdout/stderr, filled in when the run finishes "
+ "(the container itself is removed afterwards).",
+ )
+
+
+class JobDefinitionCreateRequest(BaseModel):
+ name: str
+ image: str | None = None
+ command: str | None = None
+ env: dict[str, str] = {}
+ description: str = ""
+ target_index: str = ""
+ schedule: str | None = None
+ enabled: bool = True
+
+
+class JobDefinitionUpdateRequest(BaseModel):
+ name: str | None = None
+ image: str | None = None
+ command: str | None = None
+ env: dict[str, str] | None = None
+ description: str | None = None
+ target_index: str | None = None
+ schedule: str | None = None
+ enabled: bool | None = None
+
+
+class BackgroundJobTask(BaseModel):
+ id: int
+ name: str
+ description: str
+ target_index: str
+ image: str | None
+ command: str | None
+ env: dict[str, str]
+ schedule: str | None
+ enabled: bool
+ next_run_at: datetime | None
+ last_run: JobRun | None
+ status: str
+
+
+class JobRunLogs(BaseModel):
+ run_id: int
+ status: JobRunStatus
+ logs: str
+
+
+class DockerHealth(BaseModel):
+ reachable: bool
+ detail: str
+
+
+class RegistryHealth(BaseModel):
+ reachable: bool
+ detail: str
+ host: str
+
+
+class AvailableImages(BaseModel):
+ images: list[str]
+ detail: str = ""
diff --git a/service/src/main/inse/background_jobs/router.py b/service/src/main/inse/background_jobs/router.py
new file mode 100644
index 00000000..283214ab
--- /dev/null
+++ b/service/src/main/inse/background_jobs/router.py
@@ -0,0 +1,161 @@
+from fastapi import APIRouter, Depends, Query, Response, status
+from sqlmodel import Session
+
+from inse.auth import service as auth_service
+from inse.auth.model import AccessTokenMetadata
+from inse.database import get_session
+from inse.tags import Tags
+
+from . import service
+from .model import (
+ AvailableImages,
+ BackgroundJobTask,
+ DockerHealth,
+ JobDefinitionCreateRequest,
+ JobDefinitionUpdateRequest,
+ JobRun,
+ JobRunLogs,
+ RegistryHealth,
+)
+
+router = APIRouter(prefix="/api/background-jobs", tags=[Tags.BACKGROUND_JOBS])
+
+
+@router.get(
+ "/tasks",
+ operation_id="getBackgroundJobTasks",
+ response_model=list[BackgroundJobTask],
+)
+async def get_tasks(
+ session: Session = Depends(get_session),
+ access_token: AccessTokenMetadata = auth_service.CurrentUserAccessTokenPayloadDep,
+) -> list[BackgroundJobTask]:
+ return service.get_tasks(session, access_token)
+
+
+@router.post(
+ "/tasks",
+ operation_id="createBackgroundJobTask",
+ response_model=BackgroundJobTask,
+ status_code=status.HTTP_201_CREATED,
+)
+async def create_task(
+ payload: JobDefinitionCreateRequest,
+ session: Session = Depends(get_session),
+ access_token: AccessTokenMetadata = auth_service.CurrentUserAccessTokenPayloadDep,
+) -> BackgroundJobTask:
+ return service.create_task(session, access_token, payload)
+
+
+@router.delete(
+ "/tasks/{task_id}",
+ operation_id="deleteBackgroundJobTask",
+ status_code=status.HTTP_204_NO_CONTENT,
+)
+async def delete_task(
+ task_id: int,
+ session: Session = Depends(get_session),
+ access_token: AccessTokenMetadata = auth_service.CurrentUserAccessTokenPayloadDep,
+) -> Response:
+ service.delete_task(session, access_token, task_id)
+ return Response(status_code=status.HTTP_204_NO_CONTENT)
+
+
+@router.patch(
+ "/tasks/{task_id}",
+ operation_id="updateBackgroundJobTask",
+ response_model=BackgroundJobTask,
+)
+async def update_task(
+ task_id: int,
+ payload: JobDefinitionUpdateRequest,
+ session: Session = Depends(get_session),
+ access_token: AccessTokenMetadata = auth_service.CurrentUserAccessTokenPayloadDep,
+) -> BackgroundJobTask:
+ return service.update_task(session, access_token, task_id, payload)
+
+
+@router.post(
+ "/tasks/{task_id}/run",
+ operation_id="runBackgroundJobTask",
+ response_model=JobRun,
+)
+async def run_task(
+ task_id: int,
+ session: Session = Depends(get_session),
+ access_token: AccessTokenMetadata = auth_service.CurrentUserAccessTokenPayloadDep,
+) -> JobRun:
+ return service.trigger_run(session, access_token, task_id)
+
+
+@router.get(
+ "/tasks/{task_id}/runs",
+ operation_id="getBackgroundJobTaskRuns",
+ response_model=list[JobRun],
+)
+async def get_task_runs(
+ task_id: int,
+ limit: int = Query(default=20, ge=1, le=100),
+ session: Session = Depends(get_session),
+ access_token: AccessTokenMetadata = auth_service.CurrentUserAccessTokenPayloadDep,
+) -> list[JobRun]:
+ return service.get_task_runs(session, access_token, task_id, limit)
+
+
+@router.get(
+ "/runs/{run_id}/logs",
+ operation_id="getBackgroundJobRunLogs",
+ response_model=JobRunLogs,
+)
+async def get_run_logs(
+ run_id: int,
+ session: Session = Depends(get_session),
+ access_token: AccessTokenMetadata = auth_service.CurrentUserAccessTokenPayloadDep,
+) -> JobRunLogs:
+ return service.get_run_logs(session, access_token, run_id)
+
+
+@router.post(
+ "/runs/{run_id}/stop",
+ operation_id="stopBackgroundJobRun",
+ response_model=JobRun,
+)
+async def stop_run(
+ run_id: int,
+ session: Session = Depends(get_session),
+ access_token: AccessTokenMetadata = auth_service.CurrentUserAccessTokenPayloadDep,
+) -> JobRun:
+ return service.stop_run(session, access_token, run_id)
+
+
+@router.get(
+ "/available-images",
+ operation_id="getBackgroundJobAvailableImages",
+ response_model=AvailableImages,
+)
+async def get_available_images(
+ access_token: AccessTokenMetadata = auth_service.CurrentUserAccessTokenPayloadDep,
+) -> AvailableImages:
+ return service.get_available_images(access_token)
+
+
+@router.get(
+ "/docker-health",
+ operation_id="getBackgroundJobsDockerHealth",
+ response_model=DockerHealth,
+)
+async def docker_health(
+ access_token: AccessTokenMetadata = auth_service.CurrentUserAccessTokenPayloadDep,
+) -> DockerHealth:
+ return service.docker_health(access_token)
+
+
+@router.get(
+ "/registry-health",
+ operation_id="getBackgroundJobsRegistryHealth",
+ response_model=RegistryHealth,
+)
+async def registry_health(
+ access_token: AccessTokenMetadata = auth_service.CurrentUserAccessTokenPayloadDep,
+) -> RegistryHealth:
+ return service.registry_health(access_token)
diff --git a/service/src/main/inse/background_jobs/runner.py b/service/src/main/inse/background_jobs/runner.py
new file mode 100644
index 00000000..813417dd
--- /dev/null
+++ b/service/src/main/inse/background_jobs/runner.py
@@ -0,0 +1,375 @@
+"""
+Launches background job containers via the host's Docker daemon and runs the
+periodic schedule/reconcile loop.
+"""
+
+import asyncio
+import logging
+import re
+from datetime import datetime
+from threading import RLock
+
+import docker
+import httpx
+from croniter import croniter
+from docker.errors import NotFound
+from sqlalchemy import update as sa_update
+from sqlmodel import Session, select
+
+from inse import config
+from inse.database import engine
+
+from .model import JobDefinition, JobRun, JobRunStatus, JobTriggeredBy, utcnow
+
+logger = logging.getLogger(__name__)
+
+settings = config.get_settings()
+
+RUN_STATE_LOCK = RLock()
+
+_client: docker.DockerClient | None = None
+
+
+def get_docker_client() -> docker.DockerClient:
+ global _client
+ if _client is None:
+ _client = docker.from_env()
+ return _client
+
+
+def docker_reachable() -> tuple[bool, str]:
+ try:
+ get_docker_client().ping()
+ return True, "ok"
+ except Exception as error:
+ return False, str(error)
+
+
+def registry_reachable() -> tuple[bool, str]:
+ username = settings.background_jobs_registry_username
+ password = settings.background_jobs_registry_password
+ auth = (username, password) if username and password else None
+ host = registry_host()
+ try:
+ with httpx.Client(timeout=8.0, auth=auth) as client:
+ response = client.get(f"https://{host}/v2/")
+ if response.status_code == 200:
+ return True, "ok"
+ if response.status_code == 401:
+ return False, "authentication failed (401)"
+ return False, f"unexpected status {response.status_code}"
+ except Exception as error:
+ return False, str(error)
+
+
+def compute_next_run(schedule: str) -> datetime:
+ return croniter(schedule, utcnow()).get_next(datetime)
+
+
+def job_environment() -> dict[str, str]:
+ environment = {
+ "INSE_ELASTIC_URL": settings.elasticsearch_inse_url,
+ "INSE_ELASTIC_API_KEY": settings.elasticsearch_inse_api_key,
+ "INSE_LLM_BASE_URL": settings.llm_api_url,
+ "INSE_LLM_API_KEY": settings.llm_api_key,
+ "INSE_LLM_MODEL": settings.llm_model,
+ "ELASTICSEARCH_INSE_URL": settings.elasticsearch_inse_url,
+ "ELASTICSEARCH_INSE_API_KEY": settings.elasticsearch_inse_api_key,
+ "SENTENCE_TRANSFORMERS_MODEL_NAME": settings.sentence_transformers_model_name,
+ }
+ return {key: value for key, value in environment.items() if value}
+
+
+def registry_host() -> str:
+ return settings.background_jobs_image.split("/", 1)[0]
+
+
+REGISTRY_IMAGE_LIMIT = 500
+
+
+def list_registry_images() -> tuple[list[str], str]:
+ username = settings.background_jobs_registry_username
+ password = settings.background_jobs_registry_password
+ if not username or not password:
+ return [], "registry credentials are not configured"
+
+ host = registry_host()
+ base = f"https://{host}"
+ try:
+ with httpx.Client(timeout=10.0, auth=(username, password)) as client:
+ catalog = client.get(
+ f"{base}/v2/_catalog", params={"n": REGISTRY_IMAGE_LIMIT}
+ )
+ catalog.raise_for_status()
+ repositories = catalog.json().get("repositories", []) or []
+
+ images: list[str] = []
+ for repository in repositories:
+ try:
+ response = client.get(f"{base}/v2/{repository}/tags/list")
+ response.raise_for_status()
+ tags = response.json().get("tags") or []
+ except Exception:
+ tags = []
+ if tags:
+ images.extend(f"{host}/{repository}:{tag}" for tag in tags)
+ else:
+ images.append(f"{host}/{repository}")
+ return sorted(images), ""
+ except Exception as error:
+ logger.warning("Could not list registry images.", exc_info=True)
+ return [], str(error)
+
+
+def resolve_image(definition: JobDefinition) -> str | None:
+ return definition.image or None
+
+
+def is_registry_image(image: str | None) -> bool:
+ return bool(image) and image.split("/", 1)[0] == registry_host()
+
+
+def container_name(definition: JobDefinition, run: JobRun) -> str:
+ slug = definition.name.lower()
+ slug = (
+ slug.replace("ä", "ae")
+ .replace("ö", "oe")
+ .replace("ü", "ue")
+ .replace("ß", "ss")
+ )
+ slug = re.sub(r"[^a-z0-9]+", "-", slug).strip("-")[:40].strip("-")
+ return f"{slug or 'job'}-run-{run.id}"
+
+
+def resolve_command(definition: JobDefinition):
+ return definition.command or None
+
+
+def resolve_environment(definition: JobDefinition) -> dict[str, str]:
+ base = job_environment() if is_registry_image(resolve_image(definition)) else {}
+ return {**base, **(definition.env or {})}
+
+
+def registry_auth() -> dict[str, str] | None:
+ if (
+ settings.background_jobs_registry_username
+ and settings.background_jobs_registry_password
+ ):
+ return {
+ "username": settings.background_jobs_registry_username,
+ "password": settings.background_jobs_registry_password,
+ }
+ return None
+
+
+def pull_image(image: str) -> None:
+ get_docker_client().images.pull(image, auth_config=registry_auth())
+ logger.info("Pulled image '%s' from the registry.", image)
+
+
+def start_run(
+ session: Session, definition: JobDefinition, triggered_by: JobTriggeredBy
+) -> JobRun:
+ run = JobRun(definition_id=definition.id, triggered_by=triggered_by)
+ session.add(run)
+ session.commit()
+ session.refresh(run)
+
+ image = resolve_image(definition)
+ if not image:
+ run.status = JobRunStatus.FAILED
+ run.finished_at = utcnow()
+ run.logs = "[system] No image configured for this job."
+ session.add(run)
+ session.commit()
+ session.refresh(run)
+ return run
+
+ if settings.background_jobs_pull_before_run and is_registry_image(image):
+ try:
+ pull_image(image)
+ except Exception as error:
+ run.status = JobRunStatus.FAILED
+ run.finished_at = utcnow()
+ run.logs = (
+ f"[system] Failed to pull image '{image}' from the registry.\n"
+ f"[system] {error}"
+ )
+ session.add(run)
+ session.commit()
+ session.refresh(run)
+ return run
+
+ try:
+ container = get_docker_client().containers.run(
+ image=image,
+ command=resolve_command(definition),
+ environment=resolve_environment(definition),
+ detach=True,
+ name=container_name(definition, run),
+ remove=False,
+ )
+ run.container_id = container.id
+ except Exception as error:
+ run.status = JobRunStatus.FAILED
+ run.finished_at = utcnow()
+ run.logs = (
+ f"[system] Failed to start the container for image '{image}'.\n"
+ f"[system] {error}"
+ )
+
+ session.add(run)
+ session.commit()
+ session.refresh(run)
+ return run
+
+
+def has_running_run(session: Session, definition_id: int) -> bool:
+ return (
+ session.exec(
+ select(JobRun).where(
+ JobRun.definition_id == definition_id,
+ JobRun.status == JobRunStatus.RUNNING,
+ )
+ ).first()
+ is not None
+ )
+
+
+def schedule_due_jobs(session: Session) -> None:
+ now = utcnow()
+ scheduled = session.exec(
+ select(JobDefinition).where(
+ JobDefinition.enabled == True,
+ JobDefinition.schedule != None,
+ )
+ ).all()
+
+ for definition in scheduled:
+ if definition.next_run_at is None:
+ definition.next_run_at = compute_next_run(definition.schedule)
+ session.add(definition)
+ continue
+ if definition.next_run_at > now:
+ continue
+
+ if has_running_run(session, definition.id):
+ logger.info(
+ "Skipping '%s': previous run still running.", definition.name
+ )
+ else:
+ run = start_run(session, definition, JobTriggeredBy.SCHEDULE)
+ logger.info(
+ "Started scheduled run %s of '%s'.", run.id, definition.name
+ )
+
+ definition.next_run_at = compute_next_run(definition.schedule)
+ session.add(definition)
+
+ session.commit()
+
+
+def finalize_run(
+ session: Session,
+ run: JobRun,
+ *,
+ new_status: JobRunStatus,
+ expected_status: JobRunStatus = JobRunStatus.RUNNING,
+ exit_code: int | None = None,
+ logs: str | None = None,
+) -> bool:
+ values: dict = {"status": new_status, "finished_at": utcnow()}
+ if exit_code is not None:
+ values["exit_code"] = exit_code
+ if logs is not None:
+ values["logs"] = logs
+ result = session.execute(
+ sa_update(JobRun)
+ .where(JobRun.id == run.id, JobRun.status == expected_status)
+ .values(**values)
+ )
+ return result.rowcount > 0
+
+
+def append_system_log(logs: str, message: str) -> str:
+ base = logs.rstrip()
+ return f"{base}\n[system] {message}" if base else f"[system] {message}"
+
+
+def remove_container(container, run_id: int) -> None:
+ try:
+ container.remove()
+ except Exception:
+ logger.warning(
+ "Could not remove container for run %s.", run_id, exc_info=True
+ )
+
+
+def reconcile_runs(session: Session) -> None:
+ with RUN_STATE_LOCK:
+ _reconcile_runs(session)
+
+
+def _reconcile_runs(session: Session) -> None:
+ running = session.exec(
+ select(JobRun).where(JobRun.status == JobRunStatus.RUNNING)
+ ).all()
+ for run in running:
+ if not run.container_id:
+ continue
+ try:
+ container = get_docker_client().containers.get(run.container_id)
+ except NotFound:
+ applied = finalize_run(
+ session,
+ run,
+ new_status=JobRunStatus.FAILED,
+ logs=(run.logs or "")
+ + "\n[container disappeared before reconciliation]",
+ )
+ if applied:
+ session.commit()
+ logger.info(
+ "Run %s finished: failed (container disappeared).", run.id
+ )
+ continue
+
+ container.reload()
+ if container.status in ("exited", "dead"):
+ exit_code = container.attrs["State"]["ExitCode"]
+ new_status = (
+ JobRunStatus.SUCCEEDED if exit_code == 0 else JobRunStatus.FAILED
+ )
+ applied = finalize_run(
+ session,
+ run,
+ new_status=new_status,
+ exit_code=exit_code,
+ logs=container.logs().decode("utf-8", errors="replace"),
+ )
+ if applied:
+ session.commit()
+ remove_container(container, run.id)
+ logger.info(
+ "Run %s finished: %s (exit %s).", run.id, new_status, exit_code
+ )
+ session.commit()
+
+
+def tick() -> None:
+ with Session(engine) as session:
+ schedule_due_jobs(session)
+ reconcile_runs(session)
+
+
+async def scheduler_loop() -> None:
+ logger.info(
+ "Background job scheduler started (tick every %ss).",
+ settings.background_jobs_tick_seconds,
+ )
+ while True:
+ try:
+ await asyncio.to_thread(tick)
+ except Exception:
+ logger.exception("Background job scheduler tick failed.")
+ await asyncio.sleep(settings.background_jobs_tick_seconds)
diff --git a/service/src/main/inse/background_jobs/service.py b/service/src/main/inse/background_jobs/service.py
new file mode 100644
index 00000000..32049d65
--- /dev/null
+++ b/service/src/main/inse/background_jobs/service.py
@@ -0,0 +1,401 @@
+"""
+Business logic for the superadmin-only background job endpoints.
+"""
+
+import logging
+
+from croniter import croniter
+from docker.errors import APIError, NotFound
+from fastapi import HTTPException, status
+from sqlmodel import Session, col, select
+
+from inse import config
+from inse.auth.model import AccessTokenMetadata, UserRole
+
+from . import runner
+from .model import (
+ AvailableImages,
+ BackgroundJobTask,
+ DockerHealth,
+ JobDefinition,
+ JobDefinitionCreateRequest,
+ JobDefinitionUpdateRequest,
+ JobRun,
+ JobRunLogs,
+ JobRunStatus,
+ JobTriggeredBy,
+ RegistryHealth,
+ utcnow,
+)
+
+logger = logging.getLogger(__name__)
+
+settings = config.get_settings()
+
+
+def _require_super_admin(access_token: AccessTokenMetadata) -> None:
+ if access_token.effective_role != UserRole.SUPER_ADMIN:
+ raise HTTPException(
+ status_code=status.HTTP_403_FORBIDDEN,
+ detail="Only superadmins can manage background jobs.",
+ )
+
+
+def _get_definition(session: Session, definition_id: int) -> JobDefinition:
+ definition = session.get(JobDefinition, definition_id)
+ if not definition:
+ raise HTTPException(
+ status_code=status.HTTP_404_NOT_FOUND,
+ detail=f"Unknown background job task id {definition_id}.",
+ )
+ return definition
+
+
+def _get_run(session: Session, run_id: int) -> JobRun:
+ run = session.get(JobRun, run_id)
+ if not run:
+ raise HTTPException(
+ status_code=status.HTTP_404_NOT_FOUND,
+ detail=f"Unknown background job run id {run_id}.",
+ )
+ return run
+
+
+def _last_run(session: Session, definition_id: int) -> JobRun | None:
+ return session.exec(
+ select(JobRun)
+ .where(JobRun.definition_id == definition_id)
+ .order_by(col(JobRun.id).desc())
+ ).first()
+
+
+def _to_task(session: Session, definition: JobDefinition) -> BackgroundJobTask:
+ last_run = _last_run(session, definition.id)
+ if last_run is None:
+ derived_status = "idle"
+ elif last_run.status == JobRunStatus.RUNNING:
+ derived_status = "running"
+ else:
+ derived_status = last_run.status.value
+ return BackgroundJobTask(
+ id=definition.id,
+ name=definition.name,
+ description=definition.description,
+ target_index=definition.target_index,
+ image=definition.image,
+ command=definition.command,
+ env=definition.env or {},
+ schedule=definition.schedule,
+ enabled=definition.enabled,
+ next_run_at=definition.next_run_at,
+ last_run=last_run,
+ status=derived_status,
+ )
+
+
+def get_tasks(
+ session: Session, access_token: AccessTokenMetadata
+) -> list[BackgroundJobTask]:
+ _require_super_admin(access_token)
+ definitions = session.exec(
+ select(JobDefinition).order_by(col(JobDefinition.id))
+ ).all()
+ return [_to_task(session, definition) for definition in definitions]
+
+
+def create_task(
+ session: Session,
+ access_token: AccessTokenMetadata,
+ payload: JobDefinitionCreateRequest,
+) -> BackgroundJobTask:
+ _require_super_admin(access_token)
+ name = payload.name.strip()
+ if not name:
+ raise HTTPException(
+ status_code=status.HTTP_422_UNPROCESSABLE_ENTITY,
+ detail="Task name must not be empty.",
+ )
+ image = (payload.image or "").strip()
+ if not image:
+ raise HTTPException(
+ status_code=status.HTTP_422_UNPROCESSABLE_ENTITY,
+ detail="An image must be selected.",
+ )
+ if payload.schedule is not None and not croniter.is_valid(payload.schedule):
+ raise HTTPException(
+ status_code=status.HTTP_422_UNPROCESSABLE_ENTITY,
+ detail=f"Invalid cron expression: '{payload.schedule}'.",
+ )
+ if session.exec(select(JobDefinition).where(JobDefinition.name == name)).first():
+ raise HTTPException(
+ status_code=status.HTTP_409_CONFLICT,
+ detail=f"A task named '{name}' already exists.",
+ )
+
+ definition = JobDefinition(
+ name=name,
+ image=image,
+ command=payload.command,
+ env=payload.env or {},
+ description=payload.description,
+ target_index=payload.target_index,
+ schedule=payload.schedule,
+ enabled=payload.enabled,
+ )
+ if definition.enabled and definition.schedule:
+ definition.next_run_at = runner.compute_next_run(definition.schedule)
+ session.add(definition)
+ session.commit()
+ session.refresh(definition)
+ logger.info("Created background job task '%s'.", name)
+ return _to_task(session, definition)
+
+
+def delete_task(
+ session: Session, access_token: AccessTokenMetadata, definition_id: int
+) -> None:
+ _require_super_admin(access_token)
+ definition = _get_definition(session, definition_id)
+ if runner.has_running_run(session, definition.id):
+ raise HTTPException(
+ status_code=status.HTTP_409_CONFLICT,
+ detail=f"'{definition.name}' is running. Stop the run first.",
+ )
+ runs = session.exec(
+ select(JobRun).where(JobRun.definition_id == definition.id)
+ ).all()
+ for run in runs:
+ session.delete(run)
+ session.delete(definition)
+ session.commit()
+ logger.info(
+ "Deleted background job task '%s' (%d runs removed).",
+ definition.name,
+ len(runs),
+ )
+
+
+def update_task(
+ session: Session,
+ access_token: AccessTokenMetadata,
+ definition_id: int,
+ payload: JobDefinitionUpdateRequest,
+) -> BackgroundJobTask:
+ _require_super_admin(access_token)
+ changes = payload.model_dump(exclude_unset=True)
+ if changes.get("schedule") is not None and not croniter.is_valid(
+ changes["schedule"]
+ ):
+ raise HTTPException(
+ status_code=status.HTTP_422_UNPROCESSABLE_ENTITY,
+ detail=f"Invalid cron expression: '{changes['schedule']}'.",
+ )
+
+ if "name" in changes:
+ name = (changes["name"] or "").strip()
+ if not name:
+ raise HTTPException(
+ status_code=status.HTTP_422_UNPROCESSABLE_ENTITY,
+ detail="Task name must not be empty.",
+ )
+ duplicate = session.exec(
+ select(JobDefinition).where(
+ JobDefinition.name == name,
+ JobDefinition.id != definition_id,
+ )
+ ).first()
+ if duplicate:
+ raise HTTPException(
+ status_code=status.HTTP_409_CONFLICT,
+ detail=f"A task named '{name}' already exists.",
+ )
+ changes["name"] = name
+
+ if "image" in changes:
+ image = (changes["image"] or "").strip()
+ if not image:
+ raise HTTPException(
+ status_code=status.HTTP_422_UNPROCESSABLE_ENTITY,
+ detail="An image must be selected.",
+ )
+ changes["image"] = image
+
+ definition = _get_definition(session, definition_id)
+ for key, value in changes.items():
+ setattr(definition, key, value)
+ if "schedule" in changes or "enabled" in changes:
+ definition.next_run_at = (
+ runner.compute_next_run(definition.schedule)
+ if definition.enabled and definition.schedule
+ else None
+ )
+ session.add(definition)
+ session.commit()
+ session.refresh(definition)
+ return _to_task(session, definition)
+
+
+def trigger_run(
+ session: Session, access_token: AccessTokenMetadata, definition_id: int
+) -> JobRun:
+ _require_super_admin(access_token)
+ definition = _get_definition(session, definition_id)
+ if runner.has_running_run(session, definition.id):
+ raise HTTPException(
+ status_code=status.HTTP_409_CONFLICT,
+ detail=f"'{definition.name}' is already running.",
+ )
+ return runner.start_run(session, definition, JobTriggeredBy.MANUAL)
+
+
+def get_task_runs(
+ session: Session,
+ access_token: AccessTokenMetadata,
+ definition_id: int,
+ limit: int,
+) -> list[JobRun]:
+ _require_super_admin(access_token)
+ _get_definition(session, definition_id)
+ return session.exec(
+ select(JobRun)
+ .where(JobRun.definition_id == definition_id)
+ .order_by(col(JobRun.id).desc())
+ .limit(limit)
+ ).all()
+
+
+LOG_TAIL_LINES = 200
+
+
+def _tail_log_lines(text: str, limit: int = LOG_TAIL_LINES) -> str:
+ lines = text.splitlines()
+ if len(lines) <= limit:
+ return text
+ return "\n".join(lines[-limit:])
+
+
+def get_run_logs(
+ session: Session, access_token: AccessTokenMetadata, run_id: int
+) -> JobRunLogs:
+ _require_super_admin(access_token)
+ run = _get_run(session, run_id)
+ if run.status == JobRunStatus.RUNNING and run.container_id:
+ try:
+ container = runner.get_docker_client().containers.get(run.container_id)
+ return JobRunLogs(
+ run_id=run_id,
+ status=run.status,
+ logs=container.logs(tail=LOG_TAIL_LINES).decode(
+ "utf-8", errors="replace"
+ ),
+ )
+ except Exception:
+ pass
+ return JobRunLogs(
+ run_id=run_id, status=run.status, logs=_tail_log_lines(run.logs or "")
+ )
+
+
+def stop_run(
+ session: Session, access_token: AccessTokenMetadata, run_id: int
+) -> JobRun:
+ _require_super_admin(access_token)
+ with runner.RUN_STATE_LOCK:
+ run = _get_run(session, run_id)
+ session.refresh(run)
+ if run.status != JobRunStatus.RUNNING or not run.container_id:
+ raise HTTPException(
+ status_code=status.HTTP_409_CONFLICT,
+ detail=f"Run {run_id} is not running.",
+ )
+
+ requested_at = utcnow().isoformat(timespec="seconds") + "Z"
+ stop_message = f"Stop requested at {requested_at}."
+ try:
+ container = runner.get_docker_client().containers.get(run.container_id)
+ container.reload()
+ except NotFound as error:
+ raise HTTPException(
+ status_code=status.HTTP_409_CONFLICT,
+ detail=f"Container for run {run_id} no longer exists.",
+ ) from error
+ except Exception as error:
+ logger.warning(
+ "Could not inspect run %s before stopping.", run_id, exc_info=True
+ )
+ raise HTTPException(
+ status_code=status.HTTP_502_BAD_GATEWAY,
+ detail=f"Could not inspect container for run {run_id}.",
+ ) from error
+
+ stopped_by_request = False
+ if container.status not in ("exited", "dead"):
+ try:
+ container.stop(timeout=2)
+ stopped_by_request = True
+ except APIError as error:
+ if error.status_code != 304:
+ logger.warning("Could not stop run %s.", run_id, exc_info=True)
+ raise HTTPException(
+ status_code=status.HTTP_502_BAD_GATEWAY,
+ detail=f"Could not stop container for run {run_id}.",
+ ) from error
+ except Exception as error:
+ logger.warning("Could not stop run %s.", run_id, exc_info=True)
+ raise HTTPException(
+ status_code=status.HTTP_502_BAD_GATEWAY,
+ detail=f"Could not stop container for run {run_id}.",
+ ) from error
+
+ container.reload()
+ exit_code = container.attrs["State"]["ExitCode"]
+ logs = container.logs().decode("utf-8", errors="replace")
+ logs = runner.append_system_log(logs, stop_message)
+ if stopped_by_request:
+ new_status = JobRunStatus.STOPPED
+ logs = runner.append_system_log(
+ logs, f"Container stopped (exit {exit_code})."
+ )
+ else:
+ new_status = (
+ JobRunStatus.SUCCEEDED if exit_code == 0 else JobRunStatus.FAILED
+ )
+ logs = runner.append_system_log(
+ logs, "Stop request arrived after the container had exited."
+ )
+
+ applied = runner.finalize_run(
+ session,
+ run,
+ new_status=new_status,
+ exit_code=exit_code,
+ logs=logs,
+ )
+ if not applied:
+ session.rollback()
+ session.refresh(run)
+ return run
+ session.commit()
+ runner.remove_container(container, run.id)
+ session.refresh(run)
+ return run
+
+
+def get_available_images(access_token: AccessTokenMetadata) -> AvailableImages:
+ _require_super_admin(access_token)
+ images, detail = runner.list_registry_images()
+ return AvailableImages(images=images, detail=detail)
+
+
+def docker_health(access_token: AccessTokenMetadata) -> DockerHealth:
+ _require_super_admin(access_token)
+ reachable, detail = runner.docker_reachable()
+ return DockerHealth(reachable=reachable, detail=detail)
+
+
+def registry_health(access_token: AccessTokenMetadata) -> RegistryHealth:
+ _require_super_admin(access_token)
+ reachable, detail = runner.registry_reachable()
+ return RegistryHealth(
+ reachable=reachable, detail=detail, host=runner.registry_host()
+ )
diff --git a/service/src/main/inse/background_jobs/test_stop.py b/service/src/main/inse/background_jobs/test_stop.py
new file mode 100644
index 00000000..edea90f8
--- /dev/null
+++ b/service/src/main/inse/background_jobs/test_stop.py
@@ -0,0 +1,146 @@
+from types import SimpleNamespace
+
+import pytest
+from fastapi import HTTPException
+from sqlmodel import Session, SQLModel, create_engine
+
+from inse.auth.model import UserRole
+
+from . import runner, service
+from .model import JobRun, JobRunStatus, JobTriggeredBy
+
+
+class FakeContainer:
+ def __init__(
+ self, *, status: str, exit_code: int, logs: str, stop_error=None
+ ):
+ self.status = status
+ self.attrs = {"State": {"ExitCode": exit_code}}
+ self._logs = logs
+ self.stop_calls = 0
+ self.removed = False
+ self.stop_error = stop_error
+
+ def reload(self) -> None:
+ pass
+
+ def stop(self, timeout: int) -> None:
+ assert timeout == 2
+ self.stop_calls += 1
+ if self.stop_error:
+ raise self.stop_error
+ self.status = "exited"
+ self.attrs["State"]["ExitCode"] = 143
+
+ def logs(self, tail=None) -> bytes:
+ return self._logs.encode()
+
+ def remove(self) -> None:
+ self.removed = True
+
+
+@pytest.fixture()
+def session():
+ engine = create_engine(
+ "sqlite:///:memory:", connect_args={"check_same_thread": False}
+ )
+ SQLModel.metadata.create_all(engine)
+ with Session(engine) as database_session:
+ yield database_session
+
+
+def _token():
+ return SimpleNamespace(effective_role=UserRole.SUPER_ADMIN)
+
+
+def _run(session: Session, status: JobRunStatus = JobRunStatus.RUNNING) -> JobRun:
+ run = JobRun(
+ definition_id=1,
+ container_id="container-id",
+ status=status,
+ triggered_by=JobTriggeredBy.MANUAL,
+ )
+ session.add(run)
+ session.commit()
+ session.refresh(run)
+ return run
+
+
+def _use_container(monkeypatch, container: FakeContainer) -> None:
+ client = SimpleNamespace(
+ containers=SimpleNamespace(get=lambda container_id: container)
+ )
+ monkeypatch.setattr(runner, "get_docker_client", lambda: client)
+
+
+def test_stop_running_container_records_stopped_and_system_logs(
+ session, monkeypatch
+):
+ run = _run(session)
+ container = FakeContainer(status="running", exit_code=0, logs="Progress: 5/20")
+ _use_container(monkeypatch, container)
+
+ result = service.stop_run(session, _token(), run.id)
+
+ assert result.status == JobRunStatus.STOPPED
+ assert result.exit_code == 143
+ assert container.stop_calls == 1
+ assert container.removed is True
+ assert "Progress: 5/20" in result.logs
+ assert "[system] Stop requested at" in result.logs
+ assert "[system] Container stopped (exit 143)." in result.logs
+
+
+def test_late_stop_preserves_successful_container_result(session, monkeypatch):
+ run = _run(session)
+ container = FakeContainer(
+ status="exited",
+ exit_code=0,
+ logs="Demo job finished successfully.",
+ )
+ _use_container(monkeypatch, container)
+
+ result = service.stop_run(session, _token(), run.id)
+
+ assert result.status == JobRunStatus.SUCCEEDED
+ assert result.exit_code == 0
+ assert container.stop_calls == 0
+ assert container.removed is True
+ assert "Demo job finished successfully." in result.logs
+ assert "Stop request arrived after the container had exited." in result.logs
+
+
+def test_reconciler_keeps_running_container_after_backend_restart(
+ session, monkeypatch
+):
+ run = _run(session)
+ container = FakeContainer(status="running", exit_code=0, logs="Partial output")
+ _use_container(monkeypatch, container)
+
+ runner.reconcile_runs(session)
+ session.refresh(run)
+
+ assert run.status == JobRunStatus.RUNNING
+ assert run.exit_code is None
+ assert container.stop_calls == 0
+ assert container.removed is False
+
+
+def test_failed_docker_stop_leaves_database_run_running(session, monkeypatch):
+ run = _run(session)
+ container = FakeContainer(
+ status="running",
+ exit_code=0,
+ logs="Partial output",
+ stop_error=RuntimeError("Docker unavailable"),
+ )
+ _use_container(monkeypatch, container)
+
+ with pytest.raises(HTTPException) as error:
+ service.stop_run(session, _token(), run.id)
+ session.refresh(run)
+
+ assert run.status == JobRunStatus.RUNNING
+ assert error.value.status_code == 502
+ assert run.finished_at is None
+ assert container.removed is False
diff --git a/service/src/main/inse/bookmarks/model.py b/service/src/main/inse/bookmarks/model.py
index ab1f6846..be49f305 100644
--- a/service/src/main/inse/bookmarks/model.py
+++ b/service/src/main/inse/bookmarks/model.py
@@ -1,7 +1,8 @@
import uuid
-from datetime import datetime, timezone
+from datetime import UTC, datetime
-from pydantic import BaseModel, Field as PydanticField
+from pydantic import BaseModel
+from pydantic import Field as PydanticField
from sqlalchemy import UniqueConstraint
from sqlmodel import Field, SQLModel
@@ -21,7 +22,7 @@ class PersonBookmark(SQLModel, table=True):
person_id: str = Field(nullable=False, index=True)
person_name: str | None = Field(default=None)
created_at: datetime = Field(
- default_factory=lambda: datetime.now(timezone.utc), nullable=False, index=True
+ default_factory=lambda: datetime.now(UTC), nullable=False, index=True
)
diff --git a/service/src/main/inse/bookmarks/router.py b/service/src/main/inse/bookmarks/router.py
index 5f12e547..d0d590f5 100644
--- a/service/src/main/inse/bookmarks/router.py
+++ b/service/src/main/inse/bookmarks/router.py
@@ -7,7 +7,6 @@ from inse.database import SessionDep
from . import service
from .model import CreatePersonBookmark, PersonBookmarkResponse
-
router = APIRouter(prefix="/api/bookmarks", tags=["Bookmarks"])
diff --git a/service/src/main/inse/collaboration_network/router.py b/service/src/main/inse/collaboration_network/router.py
deleted file mode 100644
index 5688c327..00000000
--- a/service/src/main/inse/collaboration_network/router.py
+++ /dev/null
@@ -1,43 +0,0 @@
-from typing import Annotated, Optional
-
-from fastapi import APIRouter, Body, Path, status
-
-from inse.collaboration_network.schemas import (
- CollaborationNetwork,
- FilterProperties,
-)
-from inse.tags import Tags
-import inse.collaboration_network.service as collaboration_network_service
-
-
-router = APIRouter(
- prefix="/api/person/network", tags=[Tags.PERSON_NETWORK]
-)
-
-
-@router.post(
- "/{raw_user_id}",
- summary="Get a person's collaboration network.",
- description="Returns a person's collaboration network based on their works and co-authors.",
- operation_id="getCollaborationNetwork",
- responses={
- status.HTTP_200_OK: {
- "description": "Successful Response",
- "model": CollaborationNetwork,
- },
- status.HTTP_404_NOT_FOUND: {"description": "Person not found"},
- },
-)
-async def get_collaboration_network(
- raw_user_id: Annotated[str, Path(description="The raw user ID of the person.")],
- filter_properties: Annotated[
- Optional[FilterProperties],
- Body(
- description="The filter properties for the collaboration network.",
- ),
- ] = None,
-) -> CollaborationNetwork:
- return await collaboration_network_service.get_collaboration_network(
- raw_user_id=raw_user_id,
- filter_properties=filter_properties,
- )
diff --git a/service/src/main/inse/collaboration_network/schemas.py b/service/src/main/inse/collaboration_network/schemas.py
deleted file mode 100644
index 6830b0f1..00000000
--- a/service/src/main/inse/collaboration_network/schemas.py
+++ /dev/null
@@ -1,273 +0,0 @@
-from enum import Enum
-from typing import List, Optional, Set
-
-from pydantic import BaseModel, Field
-
-from inse.models.openalex.work_topic import WorkTopic
-from inse.utils import extract_raw_topic_id
-
-
-class InstitutionInformation(BaseModel):
- raw_id: str = Field(
- title="Raw Institution ID",
- description="The raw institution ID of the institution.",
- )
- display_name: str = Field(
- title="Institution Display Name",
- description="The display name of the institution.",
- )
-
- def __eq__(self, value: object) -> bool:
- if isinstance(value, InstitutionInformation):
- return self.raw_id == value.raw_id
- return False
-
- def __hash__(self) -> int:
- return hash(self.raw_id)
-
-
-class WorkTopicInformation(BaseModel):
- raw_topic_id: str = Field(
- title="Topic ID",
- description="The ID of the topic.",
- )
- display_name: str = Field(
- title="Topic Name",
- description="The name of the topic.",
- )
-
- def __eq__(self, value: object) -> bool:
- if isinstance(value, WorkTopicInformation):
- return self.raw_topic_id == value.raw_topic_id
- return False
-
- def __hash__(self) -> int:
- return hash(self.raw_topic_id)
-
- @classmethod
- def from_topic(cls, topic: WorkTopic) -> "WorkTopicInformation":
- """Creates a WorkTopicInformation instance from a WorkTopic instance.
-
- Args:
- topic (WorkTopic): The WorkTopic instance to create the WorkTopicInformation from.
- Returns:
- WorkTopicInformation: The created WorkTopicInformation instance.
- """
- return cls(
- raw_topic_id=extract_raw_topic_id(str(topic.id)),
- display_name=str(topic.display_name),
- )
-
-
-class CollaborationNetworkNodeType(str, Enum):
- AUTHOR = "author"
- INSTITUTION = "institution"
- WORK = "work"
-
-
-class FilterInformation(BaseModel):
- min_possible_year: int = Field(
- title="Minimum Year",
- description="The minimum publication year of the works in the collaboration network.",
- )
- max_possible_year: int = Field(
- title="Maximum Year",
- description="The maximum publication year of the works in the collaboration network.",
- )
- institutions: List[InstitutionInformation] = Field(
- title="Institutions",
- description="The list of institutions associated with the works in the collaboration network.",
- )
- topics: List[WorkTopicInformation] = Field(
- title="Topics",
- description="The list of topics associated with the works in the collaboration network.",
- )
-
-
-class WorksFilterProperties(BaseModel):
- start_year: int = Field(
- default=0,
- title="Start Year",
- description="The start publication year for the works to include in the collaboration network.",
- )
- end_year: int = Field(
- default=9999,
- title="End Year",
- description="The end publication year for the works to include in the collaboration network.",
- )
- allowed_topics: List[str] = Field(
- default_factory=list,
- title="Allowed Topics",
- description="The list of raw topic IDs to include in the collaboration network. If empty, all topics will be included.",
- )
- min_contributors: int = Field(
- default=1,
- title="Minimum Contributors",
- description="The minimum number of contributors required for a work to be included in the collaboration network.",
- )
- max_contributors: int = Field(
- default=100,
- title="Maximum Contributors",
- description="The maximum number of contributors allowed for a work to be included in the collaboration network.",
- )
-
-
-class AuthorsFilterProperties(BaseModel):
- allowed_institutions: List[str] = Field(
- default_factory=list,
- title="Allowed Institutions",
- description="The list of raw institution IDs to include in the collaboration network. If empty, all institutions will be included.",
- )
- min_collaborations: int = Field(
- default=1,
- title="Minimum Collaborations",
- description="The minimum number of collaborations required for an author to be included in the collaboration network.",
- )
- max_collaborations: int = Field(
- default=1000,
- title="Maximum Collaborations",
- description="The maximum number of collaborations allowed for an author to be included in the collaboration network.",
- )
-
-
-class FilterProperties(BaseModel):
- filter_by: str = Field(
- default="works",
- title="Filter By",
- description="The type of filter to apply when generating the collaboration network. Can be either 'works' or 'authors'. If 'works', the filter properties in the 'works_filter_properties' field will be used. If 'authors', the filter properties in the 'authors_filter_properties' field will be used.",
- )
- works_filter_properties: Optional[WorksFilterProperties] = Field(
- title="Works Filter Properties",
- description="The filter properties to apply when filtering works for the collaboration network. This field is only applicable if the 'filter_by' field is set to 'works'.",
- )
- authors_filter_properties: Optional[AuthorsFilterProperties] = Field(
- title="Authors Filter Properties",
- description="The filter properties to apply when filtering authors for the collaboration network. This field is only applicable if the 'filter_by' field is set to 'authors'.",
- )
-
-
-class CollaborationNetworkNode(BaseModel):
- raw_id: str = Field(
- title="Raw ID",
- description="The raw ID of the node. For an author node, this is the raw person ID. For an institution node, this is the raw institution ID. For a work node, this is the raw work ID.",
- )
- display_name: str = Field(
- title="Display Name", description="The display name of the node."
- )
- category: CollaborationNetworkNodeType = Field(
- title="Category",
- description="The category of the node, either 'author', 'institution', or 'work'.",
- )
-
- def __eq__(self, value: object) -> bool:
- if isinstance(value, CollaborationNetworkNode):
- return self.raw_id == value.raw_id
- return False
-
- def __hash__(self) -> int:
- return hash(self.raw_id)
-
-
-class WorkNetworkNode(CollaborationNetworkNode):
- publication_year: Optional[int] = Field(
- title="Publication Year",
- description="The publication year of the work represented by this node. This field is only applicable if the category of the node is 'work'.",
- )
- work_topics_information: Optional[Set[WorkTopicInformation]] = Field(
- title="Work Topics Information",
- description="The list of topic information associated with the work represented by this node. This field is only applicable if the category of the node is 'work'.",
- )
-
- def __eq__(self, value: object) -> bool:
- if isinstance(value, WorkNetworkNode):
- return self.raw_id == value.raw_id
- return False
-
- def __hash__(self) -> int:
- return hash(self.raw_id)
-
-
-class AuthorNetworkNode(CollaborationNetworkNode):
- def __eq__(self, value: object) -> bool:
- if isinstance(value, AuthorNetworkNode):
- return self.raw_id == value.raw_id
- return False
-
- def __hash__(self) -> int:
- return hash(self.raw_id)
-
-
-class InstitutionNetworkNode(CollaborationNetworkNode):
- def __eq__(self, value: object) -> bool:
- if isinstance(value, InstitutionNetworkNode):
- return self.raw_id == value.raw_id
- return False
-
- def __hash__(self) -> int:
- return hash(self.raw_id)
-
-
-class CollaborationNetworkEdge(BaseModel):
- raw_source_id: str = Field(
- title="Source Raw ID",
- description="The raw ID of the source node.",
- )
- raw_target_id: str = Field(
- title="Target Raw ID",
- description="The raw ID of the target node.",
- )
-
- def __eq__(self, value: object) -> bool:
- if isinstance(value, CollaborationNetworkEdge):
- return self.same_collaboration(self, value)
- return False
-
- def __hash__(self) -> int:
- return hash((self.raw_source_id, self.raw_target_id))
-
- @classmethod
- def same_collaboration(
- cls, edge1: "CollaborationNetworkEdge", edge2: "CollaborationNetworkEdge"
- ) -> bool:
- """Checks if two edges have the same source and target person IDs, regardless of order.
-
- Args:
- edge1 (CollaborationNetworkEdge): The first collaboration edge.
- edge2 (CollaborationNetworkEdge): The second collaboration edge.
- Returns:
- bool: True if the edges have the same source and target person IDs (undirected), False otherwise.
- """
- return (
- edge1.raw_source_id == edge2.raw_source_id
- and edge1.raw_target_id == edge2.raw_target_id
- ) or (
- edge1.raw_source_id == edge2.raw_target_id
- and edge1.raw_target_id == edge2.raw_source_id
- )
-
-
-class CollaborationNetwork(BaseModel):
- raw_person_id: str = Field(
- title="Raw Person ID",
- description="The raw person ID of the person whose collaboration network this is.",
- )
- work_nodes: List[WorkNetworkNode] = Field(
- title="Collaboration Network Work Nodes",
- description="The work nodes in the collaboration network.",
- )
- author_nodes: List[AuthorNetworkNode] = Field(
- title="Collaboration Network Author Nodes",
- description="The author nodes in the collaboration network.",
- )
- institution_nodes: List[InstitutionNetworkNode] = Field(
- title="Collaboration Network Institution Nodes",
- description="The institution nodes in the collaboration network.",
- )
- collaboration_edges: List[CollaborationNetworkEdge] = Field(
- title="Collaboration Network Edges",
- description="The collaboration edges in the collaboration network. A collaboration edge represents a collaboration between two nodes. A -> W and A -> I",
- )
- filter_information: FilterInformation = Field(
- title="Filter Information",
- description="The filter information for the collaboration network, including the minimum and maximum publication years of the works in the collaboration network.",
- )
diff --git a/service/src/main/inse/collaboration_network/service.py b/service/src/main/inse/collaboration_network/service.py
deleted file mode 100644
index 8122f91f..00000000
--- a/service/src/main/inse/collaboration_network/service.py
+++ /dev/null
@@ -1,708 +0,0 @@
-from collections import defaultdict
-import logging
-from typing import List, Optional, Set, Tuple
-
-from inse.collaboration_network.schemas import (
- AuthorNetworkNode,
- AuthorsFilterProperties,
- CollaborationNetwork,
- CollaborationNetworkEdge,
- CollaborationNetworkNodeType,
- FilterInformation,
- FilterProperties,
- InstitutionInformation,
- InstitutionNetworkNode,
- WorkNetworkNode,
- WorkTopicInformation,
- WorksFilterProperties,
-)
-
-from inse.works import logic as work_logic
-from inse.works.model import Work
-
-from inse.utils import (
- extract_raw_author_id,
- extract_raw_institution_id,
- extract_raw_topic_id,
- extract_raw_work_id,
-)
-from inse.models.openalex.author import Author
-from inse.models.openalex.authorship import Authorship
-from inse.models.openalex.dehydrated_author import DehydratedAuthor
-from inse.models.openalex.dehydrated_institution import DehydratedInstitution
-from inse.models.openalex.institution import Institution
-
-
-logger = logging.getLogger(__name__)
-
-logger.setLevel(logging.INFO)
-
-
-async def get_collaboration_network(
- raw_user_id: str,
- filter_properties: FilterProperties,
-) -> CollaborationNetwork:
- """Generates a collaboration network for a given user ID based on the works associated with that user, and applies filtering to the network based on the specified filter properties, which may include criteria such as publication year range, allowed topics, minimum/maximum number of contributors, and minimum/maximum number of collaborations.
- The function returns a collaboration network that includes the works, authors, and institutions that are relevant to the specified user and meet the filtering criteria defined in the filter properties.
-
- Args:
- raw_user_id (str): The raw user ID for whom to generate the collaboration network.
- filter_properties (FilterProperties): The filter properties for the collaboration network.
-
- Returns:
- CollaborationNetwork: The collaboration network for the given user.
- """
-
- raw_user_id = raw_user_id.strip().upper()
-
- work_page = await work_logic.get_all_author_works(author_id=raw_user_id)
-
- works: List[Work] = work_page.results or []
- collaboration_network = build_collaboration_network(
- raw_user_id=raw_user_id, works=works
- )
- if filter_properties.filter_by == "works":
- if not filter_properties.works_filter_properties:
- filter_properties.works_filter_properties = WorksFilterProperties()
- return filter_collaboration_network_by_works(
- raw_user_id=raw_user_id,
- collaboration_network=collaboration_network,
- works_filter_properties=filter_properties.works_filter_properties,
- )
- elif filter_properties.filter_by == "authors":
- if not filter_properties.authors_filter_properties:
- filter_properties.authors_filter_properties = AuthorsFilterProperties()
- return filter_collaboration_network_by_authors(
- raw_user_id=raw_user_id,
- collaboration_network=collaboration_network,
- filter_properties=filter_properties.authors_filter_properties,
- )
- else:
- logger.warning(
- f"Invalid filter_by value in filter properties: {filter_properties.filter_by}. Expected 'works' or 'authors'. No additional filtering will be applied."
- )
- return collaboration_network
-
-
-def filter_collaboration_network_by_authors(
- raw_user_id: str,
- collaboration_network: CollaborationNetwork,
- filter_properties: AuthorsFilterProperties,
-) -> CollaborationNetwork:
- """Filters the given collaboration network based on the specified author filter properties, which may include criteria such as allowed institutions and minimum/maximum number of collaborations.
- The function returns a new collaboration network that only includes authors that meet the specified criteria, along with their associated works and institutions.
-
- Args:
- raw_user_id (str): The raw user ID for whom to filter the collaboration network.
- collaboration_network (CollaborationNetwork): The collaboration network to filter.
- filter_properties (AuthorsFilterProperties): The filter properties for the author filtering.
-
- Returns:
- CollaborationNetwork: The filtered collaboration network.
- """
- logger.debug(
- f"Filtering collaboration network for user {raw_user_id} with author filter properties: {filter_properties}"
- )
-
- all_author_nodes = set(collaboration_network.author_nodes)
- remaining_author_ids = {node.raw_id for node in all_author_nodes}
- remaining_institution_nodes = set(collaboration_network.institution_nodes)
-
- logger.debug(f"Remaining author IDs before filtering: {remaining_author_ids}")
- # 1. Filter author nodes based on allowed institutions in filter properties
- if len(filter_properties.allowed_institutions) > 0:
- logger.debug(
- f"Filtering author nodes based on allowed institutions: {filter_properties.allowed_institutions}"
- )
- remaining_author_ids = {
- edge.raw_source_id
- for edge in collaboration_network.collaboration_edges
- if edge.raw_target_id in filter_properties.allowed_institutions
- }
- remaining_institution_nodes = {
- node
- for node in collaboration_network.institution_nodes
- if node.raw_id in filter_properties.allowed_institutions
- }
- logger.debug(
- f"Remaining author IDs after filtering by allowed institutions: {remaining_author_ids}"
- )
-
- # 2. Filter out collaboration edges that are associated with author nodes that have been filtered out
- remaining_work_edges = {
- edge
- for edge in collaboration_network.collaboration_edges
- if edge.raw_source_id in remaining_author_ids
- and edge.raw_target_id.lower().startswith("w")
- }
- logger.debug(
- f"Remaining work edges after filtering by allowed institutions: {len(remaining_work_edges)}"
- )
-
- works_per_author = defaultdict(set)
- for edge in remaining_work_edges:
- if (
- edge.raw_source_id in remaining_author_ids
- and edge.raw_target_id.lower().startswith("w")
- ):
- works_per_author[edge.raw_source_id].add(edge.raw_target_id)
-
- logger.debug(
- f"Works per author after filtering by allowed institutions: {dict(works_per_author)}"
- )
-
- # 3. Filter out author that do not have enough collaborations based on the filter properties
- remaining_author_ids = {
- author_id
- for author_id, work_ids in works_per_author.items()
- if filter_properties.min_collaborations
- <= len(work_ids)
- <= filter_properties.max_collaborations
- }
- remaining_author_ids.add(raw_user_id) # main author always included
- remaining_author_nodes = {
- node
- for node in collaboration_network.author_nodes
- if node.raw_id in remaining_author_ids
- }
-
- remaining_institutions_edges = {
- edge
- for edge in collaboration_network.collaboration_edges
- if edge.raw_source_id in remaining_author_ids
- and edge.raw_target_id.lower().startswith("i")
- }
-
- # 4. Remove institution nodes that are not connected to any of the remaining author nodes
- institution_ids_with_remaining_authors = {
- edge.raw_target_id
- for edge in remaining_institutions_edges
- if edge.raw_source_id in remaining_author_ids
- }
- remaining_institution_nodes = {
- node
- for node in remaining_institution_nodes
- if node.raw_id in institution_ids_with_remaining_authors
- }
-
- return CollaborationNetwork(
- raw_person_id=raw_user_id,
- work_nodes=collaboration_network.work_nodes,
- author_nodes=list(remaining_author_nodes),
- institution_nodes=list(remaining_institution_nodes),
- collaboration_edges=list(remaining_work_edges)
- + list(remaining_institutions_edges),
- filter_information=collaboration_network.filter_information,
- )
-
-
-def filter_collaboration_network_by_works(
- raw_user_id: str,
- collaboration_network: CollaborationNetwork,
- works_filter_properties: WorksFilterProperties,
-) -> CollaborationNetwork:
- """Filters the given collaboration network based on the specified works filter properties, which may include criteria such as publication year range, allowed topics, and minimum/maximum number of contributors.
- The function returns a new collaboration network that only includes works that meet the specified criteria, along with their associated authors and institutions.
-
- Args:
- raw_user_id (str): _description_
- collaboration_network (CollaborationNetwork): _description_
- works_filter_properties (WorksFilterProperties): _description_
-
- Returns:
- CollaborationNetwork: The filtered collaboration network.
- """
- if not works_filter_properties:
- return collaboration_network
-
- all_work_nodes = set(collaboration_network.work_nodes)
- valid_work_ids = {node.raw_id for node in all_work_nodes}
-
- # 1. Filter out works that are not in the specified year range or do not have allowed topics, and update valid_work_ids accordingly
- valid_work_ids = filter_works_by_year_and_topic(
- works=all_work_nodes,
- filter_properties=works_filter_properties,
- valid_work_ids=valid_work_ids,
- )
-
- # 2. Filter out works that do not have enough collaborators based on the filter properties, and update valid_work_ids accordingly
- if (
- works_filter_properties.min_contributors
- or works_filter_properties.max_contributors
- ):
- contributors_per_work = defaultdict(set)
- for edge in collaboration_network.collaboration_edges:
- if (
- edge.raw_target_id.lower().startswith("w")
- and edge.raw_target_id in valid_work_ids
- ):
- contributors_per_work[edge.raw_target_id].add(edge.raw_source_id)
-
- valid_work_ids = set()
- for work_id, contributors in contributors_per_work.items():
- contributors_count = len(contributors)
- if has_enough_contributors(
- contributors_count=contributors_count,
- filter_properties=works_filter_properties,
- ):
- valid_work_ids.add(work_id)
-
- # 3. Filter out collaboration edges that are associated with works that have been filtered out
- remaining_work_edges = {
- edge
- for edge in collaboration_network.collaboration_edges
- if edge.raw_target_id in valid_work_ids
- and edge.raw_target_id.lower().startswith("w")
- }
-
- # 4. Identify author nodes that are still valid based on their association with the remaining valid works
- author_ids_with_valid_works = {edge.raw_source_id for edge in remaining_work_edges}
-
- # 5. Identify institution nodes that are still valid based on their association with the remaining valid author nodes
- institution_ids_with_valid_authors = {
- edge.raw_target_id
- for edge in collaboration_network.collaboration_edges
- if edge.raw_source_id in author_ids_with_valid_works
- and edge.raw_target_id.lower().startswith("i")
- }
-
- remaining_collaboration_edges = {
- edge
- for edge in collaboration_network.collaboration_edges
- if (
- edge.raw_target_id in valid_work_ids
- and edge.raw_target_id.lower().startswith("w")
- )
- or (
- edge.raw_source_id in author_ids_with_valid_works
- and edge.raw_target_id.lower().startswith("i")
- )
- or (
- edge.raw_source_id in author_ids_with_valid_works
- and edge.raw_target_id in institution_ids_with_valid_authors
- )
- }
- remaining_work_nodes = {
- node
- for node in collaboration_network.work_nodes
- if node.raw_id in valid_work_ids
- }
- remaining_author_nodes = {
- node
- for node in collaboration_network.author_nodes
- if node.raw_id in author_ids_with_valid_works
- }
- remaining_institution_nodes = {
- node
- for node in collaboration_network.institution_nodes
- if node.raw_id in institution_ids_with_valid_authors
- }
-
- return CollaborationNetwork(
- raw_person_id=raw_user_id,
- work_nodes=list(remaining_work_nodes),
- author_nodes=list(remaining_author_nodes),
- institution_nodes=list(remaining_institution_nodes),
- collaboration_edges=list(remaining_collaboration_edges),
- filter_information=collaboration_network.filter_information,
- )
-
-
-def filter_works_by_year_and_topic(
- works: Set[WorkNetworkNode],
- filter_properties: WorksFilterProperties,
- valid_work_ids: Set[str],
-):
- """Determines the set of valid work IDs by filtering the given set of works based on the specified year range and allowed topics defined in the filter properties.
-
- Args:
- works (Set[WorkNetworkNode]): The set of works to filter.
- filter_properties (WorksFilterProperties): The filter properties containing the year range and allowed topics.
- valid_work_ids (Set[str]): The set of valid work IDs to update.
-
- Returns:
- Set[str]: The updated set of valid work IDs.
- """
- if not any(
- [
- filter_properties.start_year,
- filter_properties.end_year,
- filter_properties.allowed_topics,
- ]
- ):
- return valid_work_ids
-
- for work in works:
- if not is_in_year_range(
- year=work.publication_year or -1,
- works_filter_properties=filter_properties,
- ) or not has_allowed_topic(work, filter_properties):
- valid_work_ids.discard(work.raw_id)
-
- return valid_work_ids
-
-
-def is_in_year_range(year: int, works_filter_properties: WorksFilterProperties) -> bool:
- """Determines whether a given year falls within the specified year range defined in the filter properties.
-
- Args:
- year (int): The year to check.
- works_filter_properties (WorksFilterProperties): The filter properties containing the year range.
-
- Returns:
- bool: True if the year falls within the specified range, False otherwise.
- """
- # no year extracted, excluding work by default
- if year == -1:
- return False
-
- if works_filter_properties.start_year and year < works_filter_properties.start_year:
- return False
-
- if works_filter_properties.end_year and year > works_filter_properties.end_year:
- return False
-
- return True
-
-
-def has_allowed_topic(
- work: WorkNetworkNode, filter_properties: WorksFilterProperties
-) -> bool:
- """Determines whether a given work has at least one topic that is included in the allowed topics specified in the filter properties.
-
- Args:
- work (WorkNetworkNode): The work for which to check the topics.
- filter_properties (WorksFilterProperties): The filter properties containing the allowed topics.
-
- Returns:
- bool: True if the work has at least one allowed topic, False otherwise.
- """
- if len(filter_properties.allowed_topics) == 0:
- return True
- return any(
- topic.raw_topic_id in filter_properties.allowed_topics
- for topic in work.work_topics_information or set()
- )
-
-
-def has_enough_contributors(
- contributors_count: int, filter_properties: WorksFilterProperties
-) -> bool:
- """Determines whether a given number of contributors meets the specified minimum and maximum contributor requirements defined in the filter properties.
-
- Args:
- contributors_count (int): The number of contributors to check.
- filter_properties (WorksFilterProperties): The filter properties containing the contributor requirements.
-
- Returns:
- bool: True if the contributor count meets the requirements, False otherwise.
- """
- if filter_properties and contributors_count < filter_properties.min_contributors:
- return False
- if (
- filter_properties.max_contributors
- and contributors_count > filter_properties.max_contributors
- ):
- return False
- return True
-
-
-def build_collaboration_network(
- raw_user_id: str,
- works: List[Work],
-) -> CollaborationNetwork:
- """Builds a collaboration network for a given user ID based on the provided list of works.
-
- Args:
- raw_user_id (str): The raw ID of the user for whom to build the collaboration network.
- works (List[Work]): The list of works for which to build the collaboration network.
-
- Returns:
- CollaborationNetwork: The built collaboration network.
- """
- min_possible_year = float("inf")
- max_possible_year = float("-inf")
-
- work_nodes: Set[WorkNetworkNode] = set()
- all_author_nodes: Set[AuthorNetworkNode] = set()
- all_institution_nodes: Set[InstitutionNetworkNode] = set()
- all_collaboration_edges: Set[CollaborationNetworkEdge] = set()
-
- work_topics_information: Set[WorkTopicInformation] = set()
- for work in works:
- work_node, author_nodes, institution_nodes, collaboration_edges = process_work(
- work=work
- )
- if not work_node:
- continue
-
- min_possible_year = min(
- min_possible_year, work_node.publication_year or float("inf")
- )
- max_possible_year = max(
- max_possible_year, work_node.publication_year or float("-inf")
- )
- work_topics_information.update(work_node.work_topics_information or set())
- work_nodes.add(work_node)
- all_author_nodes.update(author_nodes)
- all_institution_nodes.update(institution_nodes)
- all_collaboration_edges.update(collaboration_edges)
-
- return CollaborationNetwork(
- raw_person_id=raw_user_id,
- work_nodes=list(work_nodes),
- author_nodes=list(all_author_nodes),
- institution_nodes=list(all_institution_nodes),
- collaboration_edges=list(all_collaboration_edges),
- filter_information=FilterInformation(
- min_possible_year=int(min_possible_year),
- max_possible_year=int(max_possible_year),
- institutions=sorted(
- {
- InstitutionInformation(
- raw_id=institution.raw_id, display_name=institution.display_name
- )
- for institution in all_institution_nodes
- },
- key=lambda inst: inst.display_name,
- ),
- topics=sorted(
- work_topics_information, key=lambda topic: topic.display_name
- ),
- ),
- )
-
-
-def process_work(
- work: Work,
-) -> Tuple[
- Optional[WorkNetworkNode],
- Set[AuthorNetworkNode],
- Set[InstitutionNetworkNode],
- Set[CollaborationNetworkEdge],
-]:
- """Processes a given work to extract the associated work node, author nodes, institution nodes, and collaboration edges for the collaboration network.
-
- Args:
- work (Work): The work to process.
-
- Returns:
- Tuple[ Optional[WorkNetworkNode], Set[AuthorNetworkNode], Set[InstitutionNetworkNode], Set[CollaborationNetworkEdge], ]: A tuple containing the associated work node, author nodes, institution nodes, and collaboration edges.
- """
- year = get_work_year(work)
- topics_information = extract_topics_information(work=work)
-
- work_node = create_work_node(
- work=work, year=year, work_topics_information=topics_information
- )
- if not work_node:
- return None, set(), set(), set()
-
- authorships = work.authorships
- if not authorships:
- return work_node, set(), set(), set()
-
- author_nodes: Set[AuthorNetworkNode] = set()
- institution_nodes: Set[InstitutionNetworkNode] = set()
- collaboration_edges: Set[CollaborationNetworkEdge] = set()
-
- for authorship in authorships:
- author_node, institution_nodes, associated_institution_edges = (
- process_authorship(authorship=authorship)
- )
- if not author_node:
- continue
-
- work_author_edge = CollaborationNetworkEdge(
- raw_source_id=author_node.raw_id,
- raw_target_id=work_node.raw_id,
- )
-
- author_nodes.add(author_node)
- collaboration_edges.add(work_author_edge)
- institution_nodes.update(institution_nodes)
- collaboration_edges.update(associated_institution_edges)
-
- return (
- work_node,
- author_nodes,
- institution_nodes,
- collaboration_edges,
- )
-
-
-def get_work_year(work: Work) -> int:
- """Extracts the publication year from a given work.
-
- Args:
- work (Work): The work from which to extract the publication year.
-
- Returns:
- int: The publication year of the work, or -1 if it cannot be extracted.
- """
- if not work.publication_year:
- return -1
- try:
- return int(work.publication_year)
- except ValueError:
- return -1
-
-
-def create_work_node(
- work: Work, year: int, work_topics_information: Set[WorkTopicInformation]
-) -> Optional[WorkNetworkNode]:
- """Creates a collaboration network node representing a work based on the provided work data, publication year, and topic information.
-
- Args:
- work (Work): The work from which to create the collaboration network node.
- year (int): The publication year of the work.
- work_topics_information (Set[WorkTopicInformation]): The topic information of the work.
-
- Returns:
- Optional[WorkNetworkNode]: The collaboration network node representing the work, or None if the work data is invalid.
- """
- if not work or not work.id or not work.display_name:
- return None
-
- work_id = extract_raw_work_id(work.id)
- display_name = work.display_name
-
- return WorkNetworkNode(
- raw_id=work_id,
- display_name=display_name,
- category=CollaborationNetworkNodeType.WORK,
- publication_year=year,
- work_topics_information=work_topics_information,
- )
-
-
-def extract_topics_information(work: Work) -> Set[WorkTopicInformation]:
- """Extracts the topic information from a given work and returns it as a set of WorkTopicInformation objects.
-
- Args:
- work (Work): The work from which to extract topic information.
-
- Returns:
- Set[WorkTopicInformation]: A set of WorkTopicInformation objects representing the topics of the work.
- """
- topics_information: Set[WorkTopicInformation] = set()
- for topic in work.topics or []:
- if not topic.id or not topic.display_name:
- continue
- raw_topic_id = extract_raw_topic_id(topic.id)
- topics_information.add(
- WorkTopicInformation(
- raw_topic_id=raw_topic_id, display_name=topic.display_name
- )
- )
- return topics_information
-
-
-def process_authorship(
- authorship: Authorship,
-) -> Tuple[
- Optional[AuthorNetworkNode],
- Set[InstitutionNetworkNode],
- Set[CollaborationNetworkEdge],
-]:
- """Processes a given authorship to extract the associated author node, institution nodes, and collaboration edges.
-
- Args:
- authorship (Authorship): The authorship data to process.
-
- Returns:
- Tuple[ Optional[AuthorNetworkNode], Set[InstitutionNetworkNode], Set[CollaborationNetworkEdge], ]: A tuple containing the associated author node, institution nodes, and collaboration edges.
- """
- author = authorship.author
- if not author or not author.id or not author.display_name:
- return None, set(), set()
-
- author_node = create_author_node(author)
- if not author_node:
- return None, set(), set()
-
- institution_nodes: Set[InstitutionNetworkNode] = set()
- for institution in authorship.institutions or []:
- institution_id = extract_raw_institution_id(institution.id or "")
- if not institution_id or not institution.display_name:
- continue
-
- institution_node = create_institution_node(institution)
- if institution_node:
- institution_nodes.add(institution_node)
-
- associated_institution_edges = create_associated_institution_edges(
- author_node=author_node, institution_nodes=institution_nodes
- )
-
- return author_node, institution_nodes, associated_institution_edges
-
-
-def create_associated_institution_edges(
- author_node: AuthorNetworkNode,
- institution_nodes: Set[InstitutionNetworkNode],
-) -> Set[CollaborationNetworkEdge]:
- """Creates a set of collaboration network edges representing the associations between an author and their affiliated institutions.
-
- Args:
- author_node (AuthorNetworkNode): The collaboration network node representing the author.
- institution_nodes (Set[InstitutionNetworkNode]): A set of collaboration network nodes representing the institutions affiliated with the author.
-
- Returns:
- Set[CollaborationNetworkEdge]: A set of collaboration network edges representing the associations between the author and their affiliated institutions.
- """
- return {
- CollaborationNetworkEdge(
- raw_source_id=author_node.raw_id,
- raw_target_id=institution_node.raw_id,
- )
- for institution_node in institution_nodes
- }
-
-
-def create_author_node(
- author: Author | DehydratedAuthor,
-) -> Optional[AuthorNetworkNode]:
- """Creates a collaboration network node representing an author based on the provided author data.
-
- Args:
- author (Author | DehydratedAuthor): The author data from which to create the collaboration network node.
-
- Returns:
- Optional[AuthorNetworkNode]: The collaboration network node representing the author, or None if the author data is invalid.
- """
- if not author or not author.id or not author.display_name:
- return None
-
- author_id = extract_raw_author_id(author.id)
- display_name = author.display_name
-
- return AuthorNetworkNode(
- raw_id=author_id,
- display_name=display_name,
- category=CollaborationNetworkNodeType.AUTHOR,
- )
-
-
-def create_institution_node(
- institution: Institution | DehydratedInstitution,
-) -> Optional[InstitutionNetworkNode]:
- """Creates a collaboration network node representing an institution based on the provided institution data.
-
- Args:
- institution (Institution | DehydratedInstitution): The institution data from which to create the collaboration network node.
-
- Returns:
- Optional[InstitutionNetworkNode]: The collaboration network node representing the institution, or None if the institution data is invalid.
- """
- if not institution or not institution.id or not institution.display_name:
- return None
-
- institution_id = extract_raw_institution_id(institution.id)
- display_name = institution.display_name
-
- return InstitutionNetworkNode(
- raw_id=institution_id,
- display_name=display_name,
- category=CollaborationNetworkNodeType.INSTITUTION,
- )
diff --git a/service/src/main/inse/company_connections/logic.py b/service/src/main/inse/company_connections/logic.py
index 14ccae33..7cb142c5 100644
--- a/service/src/main/inse/company_connections/logic.py
+++ b/service/src/main/inse/company_connections/logic.py
@@ -1,9 +1,10 @@
import logging
from typing import Any
-from . import model
from inse.authors.v2.service import author_currently_belongs_to_institution
from inse.exceptions import NotFoundException
+
+from . import model
from .search_client import CompanyConnectionsSearchClient
logger = logging.getLogger(__name__)
diff --git a/service/src/main/inse/company_connections/search_client.py b/service/src/main/inse/company_connections/search_client.py
index 3e391ac8..43b64f3d 100644
--- a/service/src/main/inse/company_connections/search_client.py
+++ b/service/src/main/inse/company_connections/search_client.py
@@ -1,14 +1,10 @@
from typing import Any
-from .. import config
-
-
+from inse.exceptions import ElasticsearchNotFoundException
from inse.integrations import elasticsearch
from inse.model import ESCluster
-from inse.exceptions import ElasticsearchNotFoundException
-
-from inse.exceptions import MissingApiKeyError
+from .. import config
class CompanyConnectionsSearchClient:
diff --git a/service/src/main/inse/company_connections/service.py b/service/src/main/inse/company_connections/service.py
index 19bef518..de682140 100644
--- a/service/src/main/inse/company_connections/service.py
+++ b/service/src/main/inse/company_connections/service.py
@@ -1,5 +1,4 @@
-#!/usr/bin/env python
-# -*- coding: utf-8 -*-
+
"""
REST API for possible company connections of OpenAlex authors.
"""
diff --git a/service/src/main/inse/config.py b/service/src/main/inse/config.py
index ba0c1765..d63ea508 100644
--- a/service/src/main/inse/config.py
+++ b/service/src/main/inse/config.py
@@ -1,20 +1,23 @@
-#!/usr/bin/env python
-# -*- coding: utf-8 -*-
+
"""
This module contains the configuration properties
that can be adjusted via environment variables.
"""
-from functools import lru_cache
import logging
-from typing import Dict, List, Literal, Optional
-from pydantic_settings import BaseSettings, SettingsConfigDict
-from dotenv import load_dotenv
+from functools import lru_cache
+from pathlib import Path
+from typing import Literal
+from dotenv import load_dotenv
+from pydantic_settings import BaseSettings, SettingsConfigDict
logger = logging.getLogger(__name__)
-load_dotenv()
+# Anchor the .env to this file's directory so it loads regardless of the
+# process working directory.
+ENV_FILE = Path(__file__).resolve().parent / ".env"
+load_dotenv(ENV_FILE)
class Settings(BaseSettings):
@@ -31,32 +34,48 @@ class Settings(BaseSettings):
openalex_works_search_timeout_seconds: float = 30.0
# OpenAlex public API config
openalex_api_base_url: str = "https://api.openalex.org"
- openalex_api_key: Optional[str] = None
+ openalex_api_key: str | None = None
openalex_api_timeout_seconds: float = 30.0
# Patent Elasticsearch config
patent_elasticsearch_url: str = "https://inse.nes.uni-due.de/elastic"
- patent_elasticsearch_api_key: Optional[str] = None
+ patent_elasticsearch_api_key: str | None = None
# LLM config
- llm_api_url: Optional[str] = None
- llm_api_key: Optional[str] = None
- llm_model: Optional[str] = None
+ llm_api_url: str | None = None
+ llm_api_key: str | None = None
+ llm_model: str | None = None
+
+ # Background job runner config (Docker-out-of-Docker)
+ background_jobs_image: str = "docker.nes.uni-due.de/inse/background-jobs:latest"
+ background_jobs_scheduler_enabled: bool = True
+ background_jobs_tick_seconds: int = 5
+ # Pull the job image from the registry before each run so an updated tag
+ # (e.g. :latest) is picked up. Disable for local image development, where
+ # a locally built image would otherwise be overwritten by the registry.
+ background_jobs_pull_before_run: bool = True
+ # Credentials for pulling the job image from a private registry (e.g. the
+ # Nexus at docker.nes.uni-due.de). Needed because the runner pulls via the
+ # Docker SDK inside the service container, which has no `docker login` creds.
+ background_jobs_registry_username: str | None = None
+ background_jobs_registry_password: str | None = None
# Sentence Transformers config
sentence_transformers_model_name: str = "intfloat/multilingual-e5-base"
# Elasticsearch config
elasticsearch_url: str = "https://project.nes.uni-due.de/elastic"
- elasticsearch_api_key: Optional[str] = None
- elasticsearch_inse_url: Optional[str] = None
- elasticsearch_inse_api_key: Optional[str] = None
+ elasticsearch_api_key: str | None = None
+ elasticsearch_inse_url: str | None = None
+ elasticsearch_inse_api_key: str | None = None
+ print_es_queries: bool = False
+ print_es_timings: bool = False
- model_config = SettingsConfigDict(env_file=".env")
+ model_config = SettingsConfigDict(env_file=str(ENV_FILE))
- allowed_origins: List[str] = ["http://localhost:4200"]
+ allowed_origins: list[str] = ["http://localhost:4200"]
- servers: List[Dict[str, str]] = [
+ servers: list[dict[str, str]] = [
{"url": "http://localhost:8000", "description": "Local development server"},
]
@@ -64,8 +83,8 @@ class Settings(BaseSettings):
environment: Literal["dev", "prod"] = "dev"
- token_issuer_id: Optional[str] = None
- token_hmac_key: Optional[str] = None
+ token_issuer_id: str | None = None
+ token_hmac_key: str | None = None
skip_otk_validation: bool = True
# SMTP / email config
@@ -75,8 +94,8 @@ class Settings(BaseSettings):
smtp_server: str = "localhost"
smtp_port: int = 25
smtp_sender: str = "no-reply@smartguide.local"
- smtp_username: Optional[str] = None
- smtp_password: Optional[str] = None
+ smtp_username: str | None = None
+ smtp_password: str | None = None
smtp_use_tls: bool = False
diff --git a/service/src/main/inse/dashboard/institute_helper.py b/service/src/main/inse/dashboard/institute_helper.py
new file mode 100644
index 00000000..87c63d3d
--- /dev/null
+++ b/service/src/main/inse/dashboard/institute_helper.py
@@ -0,0 +1,29 @@
+from inse.exceptions import NotFoundException
+from inse.integrations import elasticsearch
+from inse.model import ESIndex
+from inse.models.openalex.institution import Institution
+
+
+async def get_openalex_institution(institution_id: str) -> Institution:
+ """Load an institution from OpenAlex using the user's institution ID."""
+ raw_institution_id = institution_id.strip().removeprefix(
+ "https://openalex.org/"
+ )
+ normalized_id = f"https://openalex.org/{raw_institution_id.upper()}"
+ response = await elasticsearch.search(
+ index=ESIndex.OPENALEX_INSTITUTIONS,
+ query={"term": {"id": normalized_id}},
+ size=1,
+ )
+ hits = response.get("hits", {}).get("hits", [])
+ if not hits:
+ raise NotFoundException(
+ f"Institution with ID '{raw_institution_id}' not found."
+ )
+
+ institution = Institution.from_dict(hits[0].get("_source", {}))
+ if institution is None:
+ raise NotFoundException(
+ f"Institution with ID '{raw_institution_id}' could not be parsed."
+ )
+ return institution
diff --git a/service/src/main/inse/dashboard/model.py b/service/src/main/inse/dashboard/model.py
index c59f8028..eae2251a 100644
--- a/service/src/main/inse/dashboard/model.py
+++ b/service/src/main/inse/dashboard/model.py
@@ -18,6 +18,53 @@ class DashboardStatisticValue(BaseModel):
value: int
+class EuProjectStatusStatistics(BaseModel):
+ institution_id: str
+ organization_name: str
+ ongoing: int
+ upcoming: int
+ completed: int
+
+
+class BmbfProjectStatusStatistics(BaseModel):
+ institution_id: str
+ organization_name: str
+ ongoing: int
+ upcoming: int
+ completed: int
+
+
+class DfgProjectStatusStatistics(BaseModel):
+ institution_id: str
+ organization_name: str
+ ongoing: int
+ upcoming: int
+ completed: int
+
+
+class DfgProjectKeyword(BaseModel):
+ name: str
+ project_count: int
+
+
+class DfgProjectTopic(BaseModel):
+ id: str
+ name: str
+ subfield: str | None = None
+ field: str | None = None
+ domain: str | None = None
+ project_count: int
+ keywords: list[DfgProjectKeyword]
+
+
+class DfgProjectTopics(BaseModel):
+ institution_id: str
+ organization_name: str
+ project_count: int
+ matched_project_count: int
+ topics: list[DfgProjectTopic]
+
+
class TopAuthor(BaseModel):
id: str | None = None
name: str
@@ -28,6 +75,7 @@ class TopAuthorStatistics(BaseModel):
institution_id: str
works: list[TopAuthor]
projects: list[TopAuthor]
+ eu_projects: list[TopAuthor]
patents: list[TopAuthor]
news: list[TopAuthor]
@@ -38,11 +86,27 @@ class TopicHeatmapValue(BaseModel):
share: float
+class TopicHeatmapTopic(BaseModel):
+ id: str
+ name: str
+ total: int
+ values: list[TopicHeatmapValue]
+
+
+class TopicHeatmapSubfield(BaseModel):
+ id: str
+ name: str
+ total: int
+ values: list[TopicHeatmapValue]
+ topics: list[TopicHeatmapTopic]
+
+
class TopicHeatmapField(BaseModel):
id: str
name: str
total: int
values: list[TopicHeatmapValue]
+ subfields: list[TopicHeatmapSubfield]
class TopicHeatmap(BaseModel):
@@ -50,3 +114,14 @@ class TopicHeatmap(BaseModel):
organization_name: str
years: list[int]
fields: list[TopicHeatmapField]
+
+
+class TopicWordCloudWord(BaseModel):
+ id: str
+ name: str
+ count: int
+
+
+class TopicWordCloud(BaseModel):
+ topic_id: str
+ words: list[TopicWordCloudWord]
diff --git a/service/src/main/inse/dashboard/router.py b/service/src/main/inse/dashboard/router.py
index 0012bff3..bd5ad49b 100644
--- a/service/src/main/inse/dashboard/router.py
+++ b/service/src/main/inse/dashboard/router.py
@@ -9,21 +9,32 @@ from inse.database import get_session
from inse.tags import Tags
from .model import (
- DashboardStatisticValue,
+ BmbfProjectStatusStatistics,
DashboardStatistics,
+ DashboardStatisticValue,
+ DfgProjectStatusStatistics,
+ DfgProjectTopics,
+ EuProjectStatusStatistics,
TopAuthorStatistics,
TopicHeatmap,
+ TopicWordCloud,
)
from .service import (
+ get_dashboard_bmbf_project_statuses,
get_dashboard_bmbf_projects,
+ get_dashboard_dfg_project_statuses,
get_dashboard_dfg_projects,
+ get_dashboard_dfg_topics,
+ get_dashboard_eu_project_statuses,
get_dashboard_eu_projects,
get_dashboard_organization,
+ get_dashboard_patents,
get_dashboard_persons,
get_dashboard_publications,
get_dashboard_statistics,
get_top_authors,
get_topic_heatmap,
+ get_topic_word_cloud,
)
router = APIRouter(prefix="/api/dashboard", tags=[Tags.DASHBOARD])
@@ -51,6 +62,8 @@ async def dashboard_statistics(
response_model=DashboardStatisticValue,
)
async def dashboard_publications(
+ from_year: int | None = Query(default=None, ge=1900, le=2100),
+ to_year: int | None = Query(default=None, ge=1900, le=2100),
session: Session = Depends(get_session),
access_token: AccessToken = auth_service.CurrentUserAccessTokenPayloadDep,
) -> DashboardStatisticValue:
@@ -58,6 +71,8 @@ async def dashboard_publications(
return await get_dashboard_publications(
organization.openalex_institution_id,
organization.name,
+ from_year=from_year,
+ to_year=to_year,
)
@@ -67,6 +82,8 @@ async def dashboard_publications(
response_model=DashboardStatisticValue,
)
async def dashboard_persons(
+ from_year: int | None = Query(default=None, ge=1900, le=2100),
+ to_year: int | None = Query(default=None, ge=1900, le=2100),
session: Session = Depends(get_session),
access_token: AccessToken = auth_service.CurrentUserAccessTokenPayloadDep,
) -> DashboardStatisticValue:
@@ -74,6 +91,28 @@ async def dashboard_persons(
return await get_dashboard_persons(
organization.openalex_institution_id,
organization.name,
+ from_year=from_year,
+ to_year=to_year,
+ )
+
+
+@router.get(
+ "/statistics/patents",
+ operation_id="getDashboardPatents",
+ response_model=DashboardStatisticValue,
+)
+async def dashboard_patents(
+ from_year: int | None = Query(default=None, ge=1900, le=2100),
+ to_year: int | None = Query(default=None, ge=1900, le=2100),
+ session: Session = Depends(get_session),
+ access_token: AccessToken = auth_service.CurrentUserAccessTokenPayloadDep,
+) -> DashboardStatisticValue:
+ organization = get_dashboard_organization(session, access_token)
+ return await get_dashboard_patents(
+ organization.openalex_institution_id,
+ organization.name,
+ from_year=from_year,
+ to_year=to_year,
)
@@ -83,6 +122,8 @@ async def dashboard_persons(
response_model=DashboardStatisticValue,
)
async def dashboard_eu_projects(
+ from_year: int | None = Query(default=None, ge=1900, le=2100),
+ to_year: int | None = Query(default=None, ge=1900, le=2100),
session: Session = Depends(get_session),
access_token: AccessToken = auth_service.CurrentUserAccessTokenPayloadDep,
) -> DashboardStatisticValue:
@@ -90,6 +131,28 @@ async def dashboard_eu_projects(
return await get_dashboard_eu_projects(
organization.openalex_institution_id,
organization.name,
+ from_year=from_year,
+ to_year=to_year,
+ )
+
+
+@router.get(
+ "/projects/eu/status",
+ operation_id="getDashboardEuProjectStatuses",
+ response_model=EuProjectStatusStatistics,
+)
+async def dashboard_eu_project_statuses(
+ from_year: int | None = Query(default=None, ge=1900, le=2100),
+ to_year: int | None = Query(default=None, ge=1900, le=2100),
+ session: Session = Depends(get_session),
+ access_token: AccessToken = auth_service.CurrentUserAccessTokenPayloadDep,
+) -> EuProjectStatusStatistics:
+ organization = get_dashboard_organization(session, access_token)
+ return await get_dashboard_eu_project_statuses(
+ organization.openalex_institution_id,
+ organization.name,
+ from_year=from_year,
+ to_year=to_year,
)
@@ -99,6 +162,8 @@ async def dashboard_eu_projects(
response_model=DashboardStatisticValue,
)
async def dashboard_bmbf_projects(
+ from_year: int | None = Query(default=None, ge=1900, le=2100),
+ to_year: int | None = Query(default=None, ge=1900, le=2100),
session: Session = Depends(get_session),
access_token: AccessToken = auth_service.CurrentUserAccessTokenPayloadDep,
) -> DashboardStatisticValue:
@@ -106,6 +171,28 @@ async def dashboard_bmbf_projects(
return await get_dashboard_bmbf_projects(
organization.openalex_institution_id,
organization.name,
+ from_year=from_year,
+ to_year=to_year,
+ )
+
+
+@router.get(
+ "/projects/bmbf/status",
+ operation_id="getDashboardBmbfProjectStatuses",
+ response_model=BmbfProjectStatusStatistics,
+)
+async def dashboard_bmbf_project_statuses(
+ from_year: int | None = Query(default=None, ge=1900, le=2100),
+ to_year: int | None = Query(default=None, ge=1900, le=2100),
+ session: Session = Depends(get_session),
+ access_token: AccessToken = auth_service.CurrentUserAccessTokenPayloadDep,
+) -> BmbfProjectStatusStatistics:
+ organization = get_dashboard_organization(session, access_token)
+ return await get_dashboard_bmbf_project_statuses(
+ organization.openalex_institution_id,
+ organization.name,
+ from_year=from_year,
+ to_year=to_year,
)
@@ -115,6 +202,8 @@ async def dashboard_bmbf_projects(
response_model=DashboardStatisticValue,
)
async def dashboard_dfg_projects(
+ from_year: int | None = Query(default=None, ge=1900, le=2100),
+ to_year: int | None = Query(default=None, ge=1900, le=2100),
session: Session = Depends(get_session),
access_token: AccessToken = auth_service.CurrentUserAccessTokenPayloadDep,
) -> DashboardStatisticValue:
@@ -122,6 +211,48 @@ async def dashboard_dfg_projects(
return await get_dashboard_dfg_projects(
organization.openalex_institution_id,
organization.name,
+ from_year=from_year,
+ to_year=to_year,
+ )
+
+
+@router.get(
+ "/projects/dfg/status",
+ operation_id="getDashboardDfgProjectStatuses",
+ response_model=DfgProjectStatusStatistics,
+)
+async def dashboard_dfg_project_statuses(
+ from_year: int | None = Query(default=None, ge=1900, le=2100),
+ to_year: int | None = Query(default=None, ge=1900, le=2100),
+ session: Session = Depends(get_session),
+ access_token: AccessToken = auth_service.CurrentUserAccessTokenPayloadDep,
+) -> DfgProjectStatusStatistics:
+ organization = get_dashboard_organization(session, access_token)
+ return await get_dashboard_dfg_project_statuses(
+ organization.openalex_institution_id,
+ organization.name,
+ from_year=from_year,
+ to_year=to_year,
+ )
+
+
+@router.get(
+ "/projects/dfg/topics",
+ operation_id="getDashboardDfgProjectTopics",
+ response_model=DfgProjectTopics,
+)
+async def dashboard_dfg_project_topics(
+ from_year: int | None = Query(default=None, ge=1900, le=2100),
+ to_year: int | None = Query(default=None, ge=1900, le=2100),
+ session: Session = Depends(get_session),
+ access_token: AccessToken = auth_service.CurrentUserAccessTokenPayloadDep,
+) -> DfgProjectTopics:
+ organization = get_dashboard_organization(session, access_token)
+ return await get_dashboard_dfg_topics(
+ organization.openalex_institution_id,
+ organization.name,
+ from_year=from_year,
+ to_year=to_year,
)
@@ -135,6 +266,8 @@ async def dashboard_top_authors(
default="all_time",
pattern="^(all_time|last_5_years)$",
),
+ from_year: int | None = Query(default=None, ge=1900, le=2100),
+ to_year: int | None = Query(default=None, ge=1900, le=2100),
session: Session = Depends(get_session),
access_token: AccessToken = auth_service.CurrentUserAccessTokenPayloadDep,
) -> TopAuthorStatistics:
@@ -143,6 +276,8 @@ async def dashboard_top_authors(
organization.openalex_institution_id,
organization.name,
works_period=works_period,
+ from_year=from_year,
+ to_year=to_year,
)
@@ -166,3 +301,26 @@ async def dashboard_topic_heatmap(
to_year=to_year,
limit=limit,
)
+
+
+@router.get(
+ "/topic-wordcloud",
+ operation_id="getDashboardTopicWordCloud",
+ response_model=TopicWordCloud,
+)
+async def dashboard_topic_word_cloud(
+ topic_id: str = Query(alias="topicId", min_length=1),
+ from_year: int | None = Query(default=None, ge=1900, le=2100),
+ to_year: int | None = Query(default=None, ge=1900, le=2100),
+ limit: int = Query(default=30, ge=1, le=100),
+ session: Session = Depends(get_session),
+ access_token: AccessToken = auth_service.CurrentUserAccessTokenPayloadDep,
+) -> TopicWordCloud:
+ organization = get_dashboard_organization(session, access_token)
+ return await get_topic_word_cloud(
+ institution_id=organization.openalex_institution_id,
+ topic_id=topic_id,
+ from_year=from_year,
+ to_year=to_year,
+ limit=limit,
+ )
diff --git a/service/src/main/inse/dashboard/service.py b/service/src/main/inse/dashboard/service.py
index ce9a9b2b..d2056d48 100644
--- a/service/src/main/inse/dashboard/service.py
+++ b/service/src/main/inse/dashboard/service.py
@@ -1,6 +1,9 @@
import asyncio
import logging
+import re
+from collections import defaultdict
from datetime import datetime
+from types import SimpleNamespace
from typing import Any, Literal
from fastapi import HTTPException, status
@@ -8,37 +11,113 @@ from sqlmodel import Session
from inse import config
from inse.auth.model import AccessToken, Organization
-from inse.integrations import elasticsearch
+from inse.authors.institution_membership_query import (
+ build_institution_membership_query,
+)
from inse.institutions.institutions_search_client import InstitutionsSearchClient
+from inse.integrations import elasticsearch
from inse.model import ESCluster, ESIndex
from inse.patents.org.elastic_search_client import OrgPatentsSearchClient
+from inse.projects.dfg_institutions.service import (
+ autocomplete_institutions_for_selector,
+)
+from inse.projects.eu_cordis_projects_client import (
+ get_eu_project_ids_by_organization_filters,
+)
+from inse.projects.logic import get_person_ids_by_institution_ids
+from inse.projects.model import (
+ EuCordisProjectType,
+ ProjectsFilteringProperties,
+ ProjectType,
+)
+from .institute_helper import get_openalex_institution
from .model import (
- DashboardStatisticValue,
+ BmbfProjectStatusStatistics,
DashboardStatistics,
+ DfgProjectKeyword,
+ DashboardStatisticValue,
+ DfgProjectStatusStatistics,
+ DfgProjectTopic,
+ DfgProjectTopics,
+ EuProjectStatusStatistics,
TopAuthor,
TopAuthorStatistics,
TopicHeatmap,
TopicHeatmapField,
+ TopicHeatmapSubfield,
+ TopicHeatmapTopic,
TopicHeatmapValue,
+ TopicWordCloud,
+ TopicWordCloudWord,
)
TOP_AUTHOR_LIMIT = 10
TOPIC_HEATMAP_LIMIT = 25
-TOPIC_HEATMAP_YEARS = 5
+TOPIC_HEATMAP_SUBFIELD_LIMIT = 100
+TOPIC_HEATMAP_TOPIC_LIMIT = 100
+TOPIC_WORD_CLOUD_LIMIT = 30
WorksPeriod = Literal["all_time", "last_5_years"]
+DashboardPeriod = tuple[int | None, int | None]
logger = logging.getLogger(__name__)
-DFG_INSTITUTION_FIELDS = [
- "Antragstellende Institution",
- "Mitantragstellende Institution",
- "Beteiligte Einrichtung",
- "Beteiligte Hochschule",
- "Beteiligte Institution",
- "IGK-Partnerinstitution",
- "Partnerorganisation",
- "Unternehmen",
-]
+
+async def get_eu_organization_project_contributions(
+ organization_names: list[str],
+ projects_filtering_properties: ProjectsFilteringProperties,
+) -> SimpleNamespace:
+ project_ids_by_type = await get_eu_project_ids_by_organization_filters(
+ project_types=list(EuCordisProjectType),
+ organization_names=organization_names,
+ )
+ project_ids = {
+ str(project_id)
+ for ids in project_ids_by_type.values()
+ for project_id in ids
+ }
+ return SimpleNamespace(
+ elements=[
+ SimpleNamespace(project_id=project_id)
+ for project_id in sorted(project_ids)
+ ],
+ total=len(project_ids),
+ page=projects_filtering_properties.page,
+ size=projects_filtering_properties.size,
+ )
+
+
+ACADEMIC_TITLE_RE = re.compile(
+ r"^(?:(?:professor(?:in)?|prof|dr)(?:\.-[a-z]+)?\.?|rer\.|nat\.|med\.|ing\.)\s+",
+ re.IGNORECASE,
+)
+
+
+def _normalize_person_name(name: str) -> str:
+ normalized = " ".join(name.strip().casefold().split())
+ while True:
+ without_title = ACADEMIC_TITLE_RE.sub("", normalized).strip()
+ if without_title == normalized:
+ return without_title
+ normalized = without_title
+
+
+def _is_initial_surname_match(full_name: str, initial_name: str) -> bool:
+ full_parts = _normalize_person_name(full_name).split()
+ initial_parts = _normalize_person_name(initial_name).replace(".", "").split()
+ if len(full_parts) < 2 or len(initial_parts) < 2:
+ return False
+ return (
+ len(initial_parts[0]) == 1
+ and full_parts[0].startswith(initial_parts[0])
+ and full_parts[-1] == initial_parts[-1]
+ )
+
+
+def _is_supported_name_variant(full_name: str, candidate_name: str) -> bool:
+ return (
+ _normalize_person_name(full_name) == _normalize_person_name(candidate_name)
+ or _is_initial_surname_match(full_name, candidate_name)
+ )
def _total(response: dict[str, Any]) -> int:
@@ -48,6 +127,68 @@ def _total(response: dict[str, Any]) -> int:
return int(total or 0)
+def _dashboard_period(
+ from_year: int | None = None,
+ to_year: int | None = None,
+) -> DashboardPeriod:
+ if from_year is not None and to_year is not None and from_year > to_year:
+ raise HTTPException(
+ status_code=status.HTTP_422_UNPROCESSABLE_ENTITY,
+ detail="from_year must be less than or equal to to_year.",
+ )
+ return from_year, to_year
+
+
+def _publication_year_filter(period: DashboardPeriod) -> dict[str, Any] | None:
+ from_year, to_year = period
+ year_range: dict[str, int] = {}
+ if from_year is not None:
+ year_range["gte"] = from_year
+ if to_year is not None:
+ year_range["lte"] = to_year
+ return {"range": {"publication_year": year_range}} if year_range else None
+
+
+def _project_overlap_filter(
+ start_field: str,
+ end_field: str,
+ period: DashboardPeriod,
+ *,
+ missing_end_is_ongoing: bool = False,
+) -> dict[str, Any] | None:
+ from_year, to_year = period
+ filters: list[dict[str, Any]] = []
+ if to_year is not None:
+ filters.append({"range": {start_field: {"lte": to_year}}})
+ if from_year is not None:
+ end_filter: dict[str, Any] = {"range": {end_field: {"gte": from_year}}}
+ if missing_end_is_ongoing:
+ end_filter = {
+ "bool": {
+ "should": [
+ end_filter,
+ {"bool": {"must_not": {"exists": {"field": end_field}}}},
+ ],
+ "minimum_should_match": 1,
+ }
+ }
+ filters.append(end_filter)
+ return {"bool": {"filter": filters}} if filters else None
+
+
+def _date_period(period: DashboardPeriod, date_format: str) -> DashboardPeriod:
+ from_year, to_year = period
+ if date_format == "iso":
+ return (
+ f"{from_year}-01-01" if from_year is not None else None,
+ f"{to_year}-12-31" if to_year is not None else None,
+ )
+ return (
+ f"01.01.{from_year}" if from_year is not None else None,
+ f"31.12.{to_year}" if to_year is not None else None,
+ )
+
+
def get_dashboard_organization(
session: Session,
access_token: AccessToken,
@@ -95,11 +236,20 @@ async def get_dashboard_statistics(
async def get_dashboard_publications(
institution_id: str,
organization_name: str,
+ from_year: int | None = None,
+ to_year: int | None = None,
) -> DashboardStatisticValue:
normalized_id = _normalize_institution_id(institution_id)
+ period = _dashboard_period(from_year, to_year)
+ filters = []
+ if year_filter := _publication_year_filter(period):
+ filters.append(year_filter)
+ query = _institution_works_query(normalized_id)
+ if filters:
+ query = {"bool": {"must": [query], "filter": filters}}
response = await elasticsearch.search(
index=config.settings.openalex_works_search_index,
- query=_institution_works_query(normalized_id),
+ query=query,
size=0,
track_total_hits=True,
cluster=ESCluster.NES,
@@ -110,16 +260,25 @@ async def get_dashboard_publications(
async def get_dashboard_persons(
institution_id: str,
organization_name: str,
+ from_year: int | None = None,
+ to_year: int | None = None,
) -> DashboardStatisticValue:
normalized_id = _normalize_institution_id(institution_id)
+ period = _dashboard_period(from_year, to_year)
+ if (period[0] is None) != (period[1] is None):
+ raise HTTPException(
+ status_code=status.HTTP_422_UNPROCESSABLE_ENTITY,
+ detail="from_year and to_year must either both be provided or both omitted.",
+ )
+ membership_query = build_institution_membership_query(
+ institution_id=normalized_id,
+ year_mode="between" if period[0] is not None else "all",
+ year=period[0],
+ year_to=period[1],
+ )
response = await elasticsearch.search(
index=ESIndex.OPENALEX_AUTHORS,
- query={
- "nested": {
- "path": "affiliations",
- "query": {"term": {"affiliations.institution.id": normalized_id}},
- }
- },
+ query=membership_query,
size=0,
track_total_hits=True,
cluster=ESCluster.NES,
@@ -127,12 +286,51 @@ async def get_dashboard_persons(
return _dashboard_statistic_value(normalized_id, organization_name, response)
+async def get_dashboard_patents(
+ institution_id: str,
+ organization_name: str,
+ from_year: int | None = None,
+ to_year: int | None = None,
+) -> DashboardStatisticValue:
+ normalized_id = _normalize_institution_id(institution_id)
+ period = _dashboard_period(from_year, to_year)
+ _, total = await OrgPatentsSearchClient().search_by_institution(
+ normalized_id,
+ page=0,
+ size=0,
+ from_year=period[0],
+ to_year=period[1],
+ )
+ return DashboardStatisticValue(
+ institution_id=normalized_id,
+ organization_name=organization_name,
+ value=total,
+ )
+
+
async def get_dashboard_eu_projects(
institution_id: str,
organization_name: str,
+ from_year: int | None = None,
+ to_year: int | None = None,
) -> DashboardStatisticValue:
normalized_id = _normalize_institution_id(institution_id)
aliases = await _institution_aliases(normalized_id, organization_name)
+ period = _dashboard_period(from_year, to_year)
+ period_filter = _project_overlap_filter(
+ "startDate",
+ "endDate",
+ _date_period(period, "iso"),
+ )
+ if period_filter:
+ project_ids = await _eu_project_ids_for_aliases(aliases)
+ value = await _count_eu_projects_in_period(project_ids, period_filter)
+ return DashboardStatisticValue(
+ institution_id=normalized_id,
+ organization_name=organization_name,
+ value=value,
+ )
+
response = await elasticsearch.search(
index=ESIndex.CORDIS_EU_ORGANIZATIONS_WILDCARD,
body={
@@ -159,15 +357,109 @@ async def get_dashboard_eu_projects(
)
+async def get_dashboard_eu_project_statuses(
+ institution_id: str,
+ organization_name: str,
+ from_year: int | None = None,
+ to_year: int | None = None,
+) -> EuProjectStatusStatistics:
+ normalized_id = _normalize_institution_id(institution_id)
+ aliases = await _institution_aliases(normalized_id, organization_name)
+ project_ids = await _eu_project_ids_for_aliases(aliases)
+
+ if not project_ids:
+ return EuProjectStatusStatistics(
+ institution_id=normalized_id,
+ organization_name=organization_name,
+ ongoing=0,
+ upcoming=0,
+ completed=0,
+ )
+
+ today = datetime.now().date().isoformat()
+ period = _dashboard_period(from_year, to_year)
+ filters: list[dict[str, Any]] = [{"terms": {"id": sorted(project_ids)}}]
+ if period_filter := _project_overlap_filter(
+ "startDate",
+ "endDate",
+ _date_period(period, "iso"),
+ ):
+ filters.append(period_filter)
+ query = (
+ {"terms": {"id": sorted(project_ids)}}
+ if len(filters) == 1
+ else {"bool": {"filter": filters}}
+ )
+ response = await elasticsearch.search(
+ index=ESIndex.CORDIS_EU_PROJECTS_WILDCARD,
+ body={
+ "size": 0,
+ "query": query,
+ "aggs": {
+ "ongoing": {
+ "filter": {
+ "bool": {
+ "filter": [
+ {"range": {"startDate": {"lte": today}}},
+ {"range": {"endDate": {"gte": today}}},
+ ]
+ }
+ },
+ "aggs": {
+ "projects": {"cardinality": {"field": "id"}}
+ },
+ },
+ "upcoming": {
+ "filter": {"range": {"startDate": {"gt": today}}},
+ "aggs": {
+ "projects": {"cardinality": {"field": "id"}}
+ },
+ },
+ "completed": {
+ "filter": {"range": {"endDate": {"lt": today}}},
+ "aggs": {
+ "projects": {"cardinality": {"field": "id"}}
+ },
+ },
+ },
+ },
+ cluster=ESCluster.INSE,
+ )
+ aggregations = response.get("aggregations", {})
+ return EuProjectStatusStatistics(
+ institution_id=normalized_id,
+ organization_name=organization_name,
+ ongoing=_project_status_count(aggregations, "ongoing"),
+ upcoming=_project_status_count(aggregations, "upcoming"),
+ completed=_project_status_count(aggregations, "completed"),
+ )
+
+
+def _project_status_count(aggregations: dict[str, Any], status_name: str) -> int:
+ return int(
+ aggregations.get(status_name, {}).get("projects", {}).get("value", 0)
+ )
+
+
async def get_dashboard_bmbf_projects(
institution_id: str,
organization_name: str,
+ from_year: int | None = None,
+ to_year: int | None = None,
) -> DashboardStatisticValue:
normalized_id = _normalize_institution_id(institution_id)
aliases = await _institution_aliases(normalized_id, organization_name)
+ period = _dashboard_period(from_year, to_year)
+ filters = [_alias_match_query("Zuwendungsempfänger", aliases)]
+ if period_filter := _project_overlap_filter(
+ "funding_start",
+ "funding_end",
+ _date_period(period, "de"),
+ ):
+ filters.append(period_filter)
response = await elasticsearch.search(
index=ESIndex.PROJECTS_BUND_V1,
- query=_alias_match_query("Zuwendungsempfänger", aliases),
+ query=filters[0] if len(filters) == 1 else {"bool": {"filter": filters}},
size=0,
track_total_hits=True,
cluster=ESCluster.INSE,
@@ -175,20 +467,447 @@ async def get_dashboard_bmbf_projects(
return _dashboard_statistic_value(normalized_id, organization_name, response)
+async def get_dashboard_bmbf_project_statuses(
+ institution_id: str,
+ organization_name: str,
+ from_year: int | None = None,
+ to_year: int | None = None,
+) -> BmbfProjectStatusStatistics:
+ normalized_id = _normalize_institution_id(institution_id)
+ aliases = await _institution_aliases(normalized_id, organization_name)
+ period = _dashboard_period(from_year, to_year)
+ filters = [_alias_match_query("Zuwendungsempfänger", aliases)]
+ if period_filter := _project_overlap_filter(
+ "funding_start",
+ "funding_end",
+ _date_period(period, "de"),
+ ):
+ filters.append(period_filter)
+ today = datetime.now().strftime("%d.%m.%Y")
+ response = await elasticsearch.search(
+ index=ESIndex.PROJECTS_BUND_V1,
+ body={
+ "size": 0,
+ "query": filters[0] if len(filters) == 1 else {"bool": {"filter": filters}},
+ "aggs": _project_status_filter_aggregations(
+ start_field="funding_start",
+ end_field="funding_end",
+ today=today,
+ ),
+ },
+ cluster=ESCluster.INSE,
+ )
+ aggregations = response.get("aggregations", {})
+ return BmbfProjectStatusStatistics(
+ institution_id=normalized_id,
+ organization_name=organization_name,
+ ongoing=int(aggregations.get("ongoing", {}).get("doc_count", 0)),
+ upcoming=int(aggregations.get("upcoming", {}).get("doc_count", 0)),
+ completed=int(aggregations.get("completed", {}).get("doc_count", 0)),
+ )
+
+
+def _project_status_filter_aggregations(
+ start_field: str,
+ end_field: str,
+ today: str,
+) -> dict[str, Any]:
+ return {
+ "ongoing": {
+ "filter": {
+ "bool": {
+ "filter": [
+ {"range": {start_field: {"lte": today}}},
+ {"range": {end_field: {"gte": today}}},
+ ]
+ }
+ }
+ },
+ "upcoming": {"filter": {"range": {start_field: {"gt": today}}}},
+ "completed": {"filter": {"range": {end_field: {"lt": today}}}},
+ }
+
+
async def get_dashboard_dfg_projects(
institution_id: str,
organization_name: str,
+ from_year: int | None = None,
+ to_year: int | None = None,
) -> DashboardStatisticValue:
normalized_id = _normalize_institution_id(institution_id)
- aliases = await _institution_aliases(normalized_id, organization_name)
+ project_ids = await _get_dfg_project_ids_for_institution(
+ normalized_id,
+ from_year=from_year,
+ to_year=to_year,
+ )
+ return DashboardStatisticValue(
+ institution_id=normalized_id,
+ organization_name=organization_name,
+ value=len(project_ids),
+ )
+
+
+async def get_dashboard_dfg_project_statuses(
+ institution_id: str,
+ organization_name: str,
+ from_year: int | None = None,
+ to_year: int | None = None,
+) -> DfgProjectStatusStatistics:
+ normalized_id = _normalize_institution_id(institution_id)
+ period = _dashboard_period(from_year, to_year)
+ project_ids = await _get_dfg_project_ids_for_institution(
+ normalized_id,
+ )
+ if not project_ids:
+ return DfgProjectStatusStatistics(
+ institution_id=normalized_id,
+ organization_name=organization_name,
+ ongoing=0,
+ upcoming=0,
+ completed=0,
+ )
+
+ selected_project_filters: list[dict[str, Any]] = [
+ {
+ "terms": {
+ "projects.project_id": [
+ int(project_id) for project_id in project_ids
+ ]
+ }
+ }
+ ]
+ if period_filter := _project_overlap_filter(
+ "projects.funding_start",
+ "projects.funding_end",
+ period,
+ missing_end_is_ongoing=True,
+ ):
+ selected_project_filters.append(period_filter)
+
response = await elasticsearch.search(
- index=ESIndex.DFG_PROJECTS,
- query=_dfg_institution_query(aliases),
- size=0,
- track_total_hits=True,
+ index=ESIndex.DFG_INSTITUTES_V2,
+ body={
+ "size": 0,
+ "aggs": {
+ "projects_nested": {
+ "nested": {"path": "projects"},
+ "aggs": {
+ "selected_projects": {
+ "filter": (
+ selected_project_filters[0]
+ if len(selected_project_filters) == 1
+ else {"bool": {"filter": selected_project_filters}}
+ ),
+ "aggs": {
+ "ongoing": {
+ "filter": {
+ "match_phrase": {
+ "projects.status_de": "laufend"
+ }
+ },
+ "aggs": {
+ "projects": {
+ "cardinality": {
+ "field": "projects.project_id"
+ }
+ }
+ },
+ },
+ "completed": {
+ "filter": {
+ "match_phrase": {
+ "projects.status_de": "abgeschlossen"
+ }
+ },
+ "aggs": {
+ "projects": {
+ "cardinality": {
+ "field": "projects.project_id"
+ }
+ }
+ },
+ },
+ },
+ }
+ },
+ }
+ },
+ },
cluster=ESCluster.INSE,
)
- return _dashboard_statistic_value(normalized_id, organization_name, response)
+ aggregations = (
+ response.get("aggregations", {})
+ .get("projects_nested", {})
+ .get("selected_projects", {})
+ )
+ return DfgProjectStatusStatistics(
+ institution_id=normalized_id,
+ organization_name=organization_name,
+ ongoing=_project_status_count(aggregations, "ongoing"),
+ upcoming=0,
+ completed=_project_status_count(aggregations, "completed"),
+ )
+
+
+async def get_dashboard_dfg_topics(
+ institution_id: str,
+ organization_name: str,
+ from_year: int | None = None,
+ to_year: int | None = None,
+) -> DfgProjectTopics:
+ normalized_id = _normalize_institution_id(institution_id)
+ project_ids = await _get_dfg_project_ids_for_institution(
+ normalized_id,
+ from_year=from_year,
+ to_year=to_year,
+ )
+ print(
+ "Dashboard DFG project topics "
+ f"for institution {normalized_id}: "
+ f"{len(project_ids)} project IDs={project_ids}",
+ flush=True,
+ )
+ topics: dict[str, dict[str, Any]] = {}
+ matched_project_ids: set[str] = set()
+
+ if project_ids:
+ async for hit in elasticsearch.scan(
+ index=str(ESIndex.PROJECTS_DFG_OPENALEX_TOPICS),
+ query={"terms": {"project_id": project_ids}},
+ source=["project_id", "keyword", "topic_matches"],
+ page_size=1000,
+ cluster=ESCluster.INSE,
+ ):
+ source = hit.get("_source", {})
+ project_id = str(source.get("project_id") or "")
+ if not project_id:
+ continue
+ keyword = str(source.get("keyword") or "").strip()
+ matched_project_ids.add(project_id)
+ for match in source.get("topic_matches", []):
+ topic_id = str(match.get("topic_id") or "")
+ if not topic_id:
+ continue
+ topic = topics.setdefault(
+ topic_id,
+ {
+ "id": topic_id,
+ "name": str(match.get("topic_display_name") or topic_id),
+ "subfield": match.get("subfield"),
+ "field": match.get("field"),
+ "domain": match.get("domain"),
+ "project_ids": set(),
+ "keywords": {},
+ },
+ )
+ topic["project_ids"].add(project_id)
+ if keyword:
+ topic["keywords"].setdefault(keyword, set()).add(project_id)
+
+ topic_list = [
+ DfgProjectTopic(
+ id=topic["id"],
+ name=topic["name"],
+ subfield=topic["subfield"],
+ field=topic["field"],
+ domain=topic["domain"],
+ project_count=len(topic["project_ids"]),
+ keywords=sorted(
+ [
+ DfgProjectKeyword(
+ name=keyword,
+ project_count=len(keyword_project_ids),
+ )
+ for keyword, keyword_project_ids in topic["keywords"].items()
+ ],
+ key=lambda entry: (-entry.project_count, entry.name),
+ ),
+ )
+ for topic in topics.values()
+ ]
+ topic_list.sort(key=lambda topic: (-topic.project_count, topic.name, topic.id))
+ return DfgProjectTopics(
+ institution_id=normalized_id,
+ organization_name=organization_name,
+ project_count=len(project_ids),
+ matched_project_count=len(matched_project_ids),
+ topics=topic_list,
+ )
+
+
+async def _get_dfg_project_ids_for_institution(
+ institution_id: str,
+ from_year: int | None = None,
+ to_year: int | None = None,
+) -> list[str]:
+ period = _dashboard_period(from_year, to_year)
+ institution = await get_openalex_institution(institution_id)
+ institution_names = _openalex_institution_names(institution)
+
+ institutes_response = await elasticsearch.search(
+ index=ESIndex.DFG_INSTITUTES_V2,
+ body={
+ "size": 0,
+ "query": _dfg_institute_name_query(institution_names),
+ "aggs": {
+ "institute_ids": {
+ "terms": {"field": "institute_id", "size": 1000}
+ }
+ },
+ },
+ cluster=ESCluster.INSE,
+ )
+ institute_ids = [
+ bucket["key"]
+ for bucket in (
+ institutes_response.get("aggregations", {})
+ .get("institute_ids", {})
+ .get("buckets", [])
+ )
+ if bucket.get("key") is not None
+ ]
+ if not institute_ids:
+ return []
+
+ projects_response = await elasticsearch.search(
+ index=ESIndex.DFG_INSTITUTES_V2,
+ body={
+ "size": 0,
+ "query": {"terms": {"institute_id": institute_ids}},
+ "aggs": {
+ "projects_nested": {
+ "nested": {"path": "projects"},
+ "aggs": {
+ "project_ids": {
+ "filter": {
+ "terms": {"projects.institute_ref_id": institute_ids}
+ },
+ "aggs": {
+ "values": {
+ "terms": {
+ "field": "projects.project_id",
+ "size": 10000,
+ }
+ }
+ },
+ }
+ },
+ }
+ },
+ },
+ cluster=ESCluster.INSE,
+ )
+ project_ids = [
+ str(bucket["key"])
+ for bucket in (
+ projects_response.get("aggregations", {})
+ .get("projects_nested", {})
+ .get("project_ids", {})
+ .get("values", {})
+ .get("buckets", [])
+ )
+ if bucket.get("key") is not None
+ ]
+ return await _filter_dfg_project_ids_by_period(project_ids, period)
+
+
+async def _eu_project_ids_for_aliases(aliases: list[str]) -> set[str]:
+ project_ids: set[str] = set()
+ async for hit in elasticsearch.scan(
+ index=str(ESIndex.CORDIS_EU_ORGANIZATIONS_WILDCARD),
+ query=_eu_organization_query(aliases),
+ source=["projectID"],
+ page_size=1000,
+ cluster=ESCluster.INSE,
+ ):
+ project_id = hit.get("_source", {}).get("projectID")
+ if project_id is not None:
+ project_ids.add(str(project_id))
+ return project_ids
+
+
+async def _count_eu_projects_in_period(
+ project_ids: set[str],
+ period_filter: dict[str, Any],
+) -> int:
+ if not project_ids:
+ return 0
+ response = await elasticsearch.search(
+ index=ESIndex.CORDIS_EU_PROJECTS_WILDCARD,
+ body={
+ "size": 0,
+ "query": {
+ "bool": {
+ "filter": [
+ {"terms": {"id": sorted(project_ids)}},
+ period_filter,
+ ]
+ }
+ },
+ "aggs": {"projects": {"cardinality": {"field": "id"}}},
+ },
+ cluster=ESCluster.INSE,
+ )
+ return int(
+ response.get("aggregations", {})
+ .get("projects", {})
+ .get("value", 0)
+ )
+
+
+async def _filter_dfg_project_ids_by_period(
+ project_ids: list[str],
+ period: DashboardPeriod,
+) -> list[str]:
+ period_filter = _project_overlap_filter(
+ "funding_start",
+ "funding_end",
+ period,
+ missing_end_is_ongoing=True,
+ )
+ if not project_ids or not period_filter:
+ return project_ids
+
+ numeric_project_ids = [
+ int(project_id)
+ for project_id in project_ids
+ if str(project_id).isdigit()
+ ]
+ if not numeric_project_ids:
+ return []
+
+ response = await elasticsearch.search(
+ index=ESIndex.DFG_PROJECTS,
+ body={
+ "size": 0,
+ "query": {
+ "bool": {
+ "filter": [
+ {"terms": {"id": numeric_project_ids}},
+ period_filter,
+ ]
+ }
+ },
+ "aggs": {
+ "project_ids": {
+ "terms": {
+ "field": "id",
+ "size": len(numeric_project_ids),
+ }
+ }
+ },
+ },
+ cluster=ESCluster.INSE,
+ )
+ return [
+ str(bucket["key"])
+ for bucket in (
+ response.get("aggregations", {})
+ .get("project_ids", {})
+ .get("buckets", [])
+ )
+ if bucket.get("key") is not None
+ ]
def _dashboard_statistic_value(
@@ -246,12 +965,34 @@ def _alias_match_query(field: str, aliases: list[str]) -> dict[str, Any]:
}
-def _dfg_institution_query(aliases: list[str]) -> dict[str, Any]:
+def _openalex_institution_names(institution: Any) -> list[str]:
+ return sorted(
+ {
+ name.strip()
+ for name in [
+ institution.display_name,
+ *(institution.display_name_alternatives or []),
+ *(institution.display_name_acronyms or []),
+ ]
+ if name and name.strip()
+ }
+ )
+
+
+def _dfg_institute_name_query(institution_names: list[str]) -> dict[str, Any]:
return {
"bool": {
"should": [
- _alias_match_query(field, aliases)
- for field in DFG_INSTITUTION_FIELDS
+ {
+ "terms": {
+ "institute_name_de.keyword": institution_names,
+ }
+ },
+ {
+ "terms": {
+ "institute_name_en.keyword": institution_names,
+ }
+ },
],
"minimum_should_match": 1,
}
@@ -262,27 +1003,50 @@ async def get_top_authors(
institution_id: str,
organization_name: str,
works_period: WorksPeriod = "all_time",
+ from_year: int | None = None,
+ to_year: int | None = None,
) -> TopAuthorStatistics:
normalized_id = _normalize_institution_id(institution_id)
+ if from_year is None and to_year is None and works_period == "last_5_years":
+ from_year = datetime.now().year - 4
+ to_year = datetime.now().year
+ period = _dashboard_period(from_year, to_year)
+ aliases = await _institution_aliases(normalized_id, organization_name)
authors = await _safe_institution_authors(normalized_id)
- works = _top_work_authors(authors, works_period)
- aliases = await _safe_institution_aliases(normalized_id, organization_name)
+ works = _top_work_authors(authors, period)
projects = await _safe_top_authors(
"projects",
- _top_project_authors(authors, aliases),
+ _top_project_authors(
+ authors=authors,
+ organization_name=organization_name,
+ from_year=period[0],
+ to_year=period[1],
+ ),
)
+ eu_projects = await _safe_top_authors(
+ "eu_projects",
+ _top_eu_project_publication_authors(normalized_id, aliases, authors),
+ )
+
patents = await _safe_top_authors(
"patents",
- _top_patent_authors(normalized_id),
+ _top_patent_authors(
+ normalized_id,
+ from_year=period[0],
+ to_year=period[1],
+ ),
)
+
news = await _safe_top_authors(
"news",
_top_news_authors(authors),
)
+
return TopAuthorStatistics(
institution_id=normalized_id,
works=works,
projects=projects,
+ eu_projects=eu_projects,
patents=patents,
news=news,
)
@@ -296,15 +1060,16 @@ async def get_topic_heatmap(
limit: int = TOPIC_HEATMAP_LIMIT,
) -> TopicHeatmap:
normalized_id = _normalize_institution_id(institution_id)
- current_year = datetime.now().year
- effective_to_year = to_year or current_year
- effective_from_year = from_year or (effective_to_year - TOPIC_HEATMAP_YEARS + 1)
- if effective_from_year > effective_to_year:
- raise HTTPException(
- status_code=status.HTTP_422_UNPROCESSABLE_ENTITY,
- detail="from_year must be less than or equal to to_year.",
- )
- years = list(range(effective_from_year, effective_to_year + 1))
+ period = _dashboard_period(from_year, to_year)
+ filters: list[dict[str, Any]] = []
+ if year_filter := _publication_year_filter(period):
+ filters.append(year_filter)
+ years = (
+ list(range(from_year, to_year + 1))
+ if from_year is not None and to_year is not None
+ else []
+ )
+ year_bucket_size = len(years) if years else 300
response = await elasticsearch.search(
index=config.settings.openalex_works_search_index,
@@ -313,23 +1078,14 @@ async def get_topic_heatmap(
"query": {
"bool": {
"must": [_institution_works_query(normalized_id)],
- "filter": [
- {
- "range": {
- "publication_year": {
- "gte": effective_from_year,
- "lte": effective_to_year,
- }
- }
- }
- ],
+ "filter": filters,
}
},
"aggs": {
"publication_years": {
"terms": {
"field": "publication_year",
- "size": len(years),
+ "size": year_bucket_size,
"order": {"_key": "asc"},
}
},
@@ -358,12 +1114,54 @@ async def get_topic_heatmap(
"by_year": {
"terms": {
"field": "publication_year",
- "size": len(years),
+ "size": year_bucket_size,
"order": {"_key": "asc"},
}
}
},
- }
+ },
+ "subfields": {
+ "terms": {
+ "field": "topics.subfield.id",
+ "size": TOPIC_HEATMAP_SUBFIELD_LIMIT,
+ "order": [
+ {"works": "desc"},
+ {"_key": "asc"},
+ ],
+ },
+ "aggs": {
+ "subfield_name": {
+ "terms": {
+ "field": "topics.subfield.display_name.keyword",
+ "size": 1,
+ }
+ },
+ "works": {
+ "reverse_nested": {},
+ },
+ "topics": {
+ "terms": {
+ "field": "topics.id",
+ "size": TOPIC_HEATMAP_TOPIC_LIMIT,
+ "order": [
+ {"works": "desc"},
+ {"_key": "asc"},
+ ],
+ },
+ "aggs": {
+ "topic_name": {
+ "terms": {
+ "field": "topics.display_name.keyword",
+ "size": 1,
+ }
+ },
+ "works": {
+ "reverse_nested": {},
+ },
+ },
+ },
+ },
+ },
},
}
},
@@ -373,6 +1171,8 @@ async def get_topic_heatmap(
cluster=ESCluster.NES,
)
year_totals = _year_totals(response)
+ if not years:
+ years = sorted(year_totals)
buckets = (
response.get("aggregations", {})
.get("topics_nested", {})
@@ -393,6 +1193,83 @@ async def get_topic_heatmap(
)
+async def get_topic_word_cloud(
+ institution_id: str,
+ topic_id: str,
+ from_year: int | None = None,
+ to_year: int | None = None,
+ limit: int = TOPIC_WORD_CLOUD_LIMIT,
+) -> TopicWordCloud:
+ normalized_institution_id = _normalize_institution_id(institution_id)
+ filters: list[dict[str, Any]] = []
+ if year_filter := _publication_year_filter(_dashboard_period(from_year, to_year)):
+ filters.append(year_filter)
+
+ response = await elasticsearch.search(
+ index=config.settings.openalex_works_search_index,
+ body={
+ "size": 0,
+ "query": {
+ "bool": {
+ "must": [
+ _institution_works_query(normalized_institution_id),
+ {
+ "nested": {
+ "path": "topics",
+ "query": {"term": {"topics.id": topic_id}},
+ }
+ },
+ ],
+ "filter": filters,
+ }
+ },
+ "aggs": {
+ "topics_nested": {
+ "nested": {"path": "topics"},
+ "aggs": {
+ "topics": {
+ "terms": {
+ "field": "topics.id",
+ "size": limit + 1,
+ "order": [
+ {"works": "desc"},
+ {"_key": "asc"},
+ ],
+ },
+ "aggs": {
+ "topic_name": {
+ "terms": {
+ "field": "topics.display_name.keyword",
+ "size": 1,
+ }
+ },
+ "works": {"reverse_nested": {}},
+ },
+ }
+ },
+ }
+ },
+ },
+ cluster=ESCluster.NES,
+ )
+ buckets = (
+ response.get("aggregations", {})
+ .get("topics_nested", {})
+ .get("topics", {})
+ .get("buckets", [])
+ )
+ words = [
+ TopicWordCloudWord(
+ id=str(bucket["key"]),
+ name=_aggregation_name(bucket, "topic_name", str(bucket["key"])),
+ count=int(bucket.get("works", {}).get("doc_count", 0)),
+ )
+ for bucket in buckets
+ if bucket.get("key") and str(bucket["key"]) != topic_id
+ ][:limit]
+ return TopicWordCloud(topic_id=topic_id, words=words)
+
+
async def _safe_top_authors(
source: str, operation: Any
) -> list[TopAuthor]:
@@ -489,11 +1366,51 @@ def _topic_heatmap_field(
name=_field_name(bucket, field_names.get(field_id, field_id)),
total=int(bucket.get("works", {}).get("doc_count", 0)),
values=values,
+ subfields=[
+ _topic_heatmap_subfield(subfield)
+ for subfield in bucket.get("subfields", {}).get("buckets", [])
+ if subfield.get("key")
+ ],
+ )
+
+
+def _topic_heatmap_subfield(
+ bucket: dict[str, Any],
+) -> TopicHeatmapSubfield:
+ subfield_id = str(bucket["key"])
+ return TopicHeatmapSubfield(
+ id=subfield_id,
+ name=_aggregation_name(bucket, "subfield_name", subfield_id),
+ total=int(bucket.get("works", {}).get("doc_count", 0)),
+ values=[],
+ topics=[
+ _topic_heatmap_topic(topic)
+ for topic in bucket.get("topics", {}).get("buckets", [])
+ if topic.get("key")
+ ],
+ )
+
+
+def _topic_heatmap_topic(
+ bucket: dict[str, Any],
+) -> TopicHeatmapTopic:
+ topic_id = str(bucket["key"])
+ return TopicHeatmapTopic(
+ id=topic_id,
+ name=_aggregation_name(bucket, "topic_name", topic_id),
+ total=int(bucket.get("works", {}).get("doc_count", 0)),
+ values=[],
)
def _field_name(bucket: dict[str, Any], fallback: str) -> str:
- name_buckets = bucket.get("field_name", {}).get("buckets", [])
+ return _aggregation_name(bucket, "field_name", fallback)
+
+
+def _aggregation_name(
+ bucket: dict[str, Any], aggregation: str, fallback: str
+) -> str:
+ name_buckets = bucket.get(aggregation, {}).get("buckets", [])
if name_buckets and name_buckets[0].get("key"):
return str(name_buckets[0]["key"])
return fallback
@@ -505,15 +1422,14 @@ def _short_author_id(value: str) -> str:
def _top_work_authors(
authors: list[dict[str, Any]],
- works_period: WorksPeriod,
+ period: DashboardPeriod,
) -> list[TopAuthor]:
- if works_period == "last_5_years":
- from_year = datetime.now().year - 4
+ if period != (None, None):
ranked_authors = sorted(
(
{
**author,
- "selected_works_count": _works_count_since(author, from_year),
+ "selected_works_count": _works_count_in_period(author, period),
}
for author in authors
),
@@ -537,11 +1453,15 @@ def _top_work_authors(
]
-def _works_count_since(author: dict[str, Any], from_year: int) -> int:
+def _works_count_in_period(author: dict[str, Any], period: DashboardPeriod) -> int:
+ from_year, to_year = period
return sum(
int(item.get("works_count", 0) or 0)
for item in author.get("counts_by_year", [])
- if int(item.get("year", 0) or 0) >= from_year
+ if (
+ (from_year is None or int(item.get("year", 0) or 0) >= from_year)
+ and (to_year is None or int(item.get("year", 0) or 0) <= to_year)
+ )
)
@@ -553,17 +1473,6 @@ async def _safe_institution_authors(institution_id: str) -> list[dict[str, Any]]
return []
-async def _safe_institution_aliases(
- institution_id: str,
- organization_name: str,
-) -> list[str]:
- try:
- return await _institution_aliases(institution_id, organization_name)
- except Exception:
- logger.exception("Could not load aliases for institution %s.", institution_id)
- return [organization_name]
-
-
async def _institution_authors(institution_id: str) -> list[dict[str, Any]]:
response = await elasticsearch.search(
index=ESIndex.OPENALEX_AUTHORS,
@@ -593,95 +1502,489 @@ async def _institution_authors(institution_id: str) -> list[dict[str, Any]]:
async def _top_project_authors(
authors: list[dict[str, Any]],
- aliases: list[str],
+ organization_name: str,
+ from_year: int | None = None,
+ to_year: int | None = None,
) -> list[TopAuthor]:
- if not aliases:
+ period = _dashboard_period(from_year, to_year)
+ institution_ids = await _dfg_institution_ids_for_organization(
+ organization_name=organization_name,
+ )
+
+ logger.info(
+ "DFG institution IDs for %s: %s",
+ organization_name,
+ institution_ids,
+ )
+
+ if not institution_ids:
+ logger.warning(
+ "No DFG institution IDs found for organization %s.",
+ organization_name,
+ )
return []
- counts: dict[str, int] = {}
- names: dict[str, str] = {}
- for bucket in await _top_dfg_project_author_buckets(aliases):
- key = str(bucket.get("key", "")).strip()
- if key:
- normalized_key = key.casefold()
- names[normalized_key] = key
- counts[normalized_key] = counts.get(normalized_key, 0) + int(
- bucket.get("doc_count", 0)
- )
+
+ selected_person_ids = set(
+ await get_person_ids_by_institution_ids(institution_ids=institution_ids)
+ )
+
+ logger.info(
+ "Found %s DFG persons for organization %s.",
+ len(selected_person_ids),
+ organization_name,
+ )
+
+ if not selected_person_ids:
+ return []
+
+ project_ids_by_person: dict[int, set[str]] = {}
+ names: dict[int, str] = {}
+
+ page = 0
+ size = 10000
+ processed = 0
+
+ while True:
+ project_hits, total = await _dfg_project_author_hits(
+ page=page,
+ size=size,
+ person_ids=selected_person_ids,
+ period=period,
+ )
+
+ if not project_hits:
+ break
+
+ for project in project_hits:
+ project_id = _dfg_project_id(project)
+ if not project_id:
+ continue
+
+ persons = project.get("persons", [])
+ if not isinstance(persons, list):
+ continue
+
+ for person in persons:
+ if not isinstance(person, dict):
+ continue
+
+ person_id = person.get("person_id")
+ full_name = person.get("full_name")
+ if person_id is None or not full_name:
+ continue
+
+ try:
+ normalized_person_id = int(person_id)
+ except (TypeError, ValueError):
+ continue
+
+ if normalized_person_id not in selected_person_ids:
+ continue
+
+ project_ids_by_person.setdefault(normalized_person_id, set()).add(
+ project_id
+ )
+ names[normalized_person_id] = str(full_name).strip()
+
+ processed += len(project_hits)
+ if processed >= total:
+ break
+
+ page += 1
+
+ institution_authors: dict[str, list[dict[str, Any]]] = {}
+ for author in authors:
+ if author.get("name"):
+ institution_authors.setdefault(
+ _normalize_person_name(author["name"]),
+ [],
+ ).append(author)
- institution_authors = {author["name"].casefold(): author for author in authors}
ranked = sorted(
(
- (name, count)
- for name, count in counts.items()
- if count > 0
+ (person_id, project_ids)
+ for person_id, project_ids in project_ids_by_person.items()
+ if project_ids and names.get(person_id)
+ ),
+ key=lambda item: (
+ -len(item[1]),
+ names[item[0]].casefold(),
),
- key=lambda item: (-item[1], names[item[0]].casefold()),
)
- return [
- TopAuthor(
- id=(
- _short_author_id(institution_authors[name]["id"])
- if name in institution_authors
- else None
- ),
- name=(
- institution_authors[name]["name"]
- if name in institution_authors
- else names[name]
- ),
- count=count,
+
+ ranked_person_ids = [person_id for person_id, _ in ranked[:TOP_AUTHOR_LIMIT]]
+ dfg_orcids = await _dfg_person_orcids(ranked_person_ids)
+
+ result: list[TopAuthor] = []
+
+ for person_id, project_ids in ranked[:TOP_AUTHOR_LIMIT]:
+ dfg_name = names[person_id]
+ matched_author = _single_author_match(
+ institution_authors.get(_normalize_person_name(dfg_name), [])
)
- for name, count in ranked[:TOP_AUTHOR_LIMIT]
+
+ if matched_author is None and (orcid := dfg_orcids.get(person_id)):
+ matched_author = await _openalex_author_by_orcid(orcid)
+
+ if matched_author is None:
+ matched_author = await _openalex_author_by_dfg_publication_evidence(
+ dfg_name=dfg_name,
+ project_ids=project_ids,
+ )
+
+ if matched_author is None:
+ logger.info(
+ "No exact OpenAlex match for DFG author '%s' (person_id=%s).",
+ dfg_name,
+ person_id,
+ )
+
+ result.append(
+ TopAuthor(
+ id=(
+ _short_author_id(matched_author["id"])
+ if matched_author
+ else None
+ ),
+ name=matched_author["name"] if matched_author else dfg_name,
+ count=len(project_ids),
+ )
+ )
+
+ logger.info(
+ "DFG top authors for %s: %s",
+ organization_name,
+ [
+ {
+ "name": author.name,
+ "count": author.count,
+ "id": author.id,
+ }
+ for author in result
+ ],
+ )
+
+ return result
+
+
+def _single_author_match(authors: list[dict[str, Any]]) -> dict[str, Any] | None:
+ return authors[0] if len(authors) == 1 else None
+
+
+async def _dfg_person_orcids(person_ids: list[int]) -> dict[int, str]:
+ if not person_ids:
+ return {}
+
+ try:
+ response = await elasticsearch.search(
+ index=ESIndex.DFG_PERSONS,
+ body={
+ "size": len(person_ids),
+ "_source": ["person_id", "orcid_id"],
+ "query": {"terms": {"person_id": person_ids}},
+ },
+ cluster=ESCluster.INSE,
+ )
+ except Exception:
+ logger.exception("Could not load DFG ORCIDs for top project authors.")
+ return {}
+
+ result: dict[int, str] = {}
+ for hit in response.get("hits", {}).get("hits", []):
+ source = hit.get("_source", {})
+ person_id = source.get("person_id")
+ orcid = source.get("orcid_id")
+ if person_id is None or not orcid:
+ continue
+ try:
+ result[int(person_id)] = str(orcid)
+ except (TypeError, ValueError):
+ continue
+ return result
+
+
+async def _openalex_author_by_orcid(orcid: str) -> dict[str, Any] | None:
+ normalized_orcid = orcid.replace("https://orcid.org/", "").strip()
+ if not normalized_orcid:
+ return None
+
+ prefixed_orcid = f"https://orcid.org/{normalized_orcid}"
+ try:
+ response = await elasticsearch.search(
+ index=ESIndex.OPENALEX_AUTHORS,
+ body={
+ "size": 2,
+ "_source": ["id", "display_name"],
+ "query": {
+ "bool": {
+ "should": [
+ {"term": {"orcid.keyword": normalized_orcid}},
+ {"term": {"orcid.keyword": prefixed_orcid}},
+ {"term": {"ids.orcid.keyword": normalized_orcid}},
+ {"term": {"ids.orcid.keyword": prefixed_orcid}},
+ {"term": {"orcid": normalized_orcid}},
+ {"term": {"orcid": prefixed_orcid}},
+ {"term": {"ids.orcid": normalized_orcid}},
+ {"term": {"ids.orcid": prefixed_orcid}},
+ ],
+ "minimum_should_match": 1,
+ }
+ },
+ },
+ cluster=ESCluster.NES,
+ track_total_hits=True,
+ )
+ except Exception:
+ logger.exception("Could not resolve OpenAlex author by ORCID %s.", orcid)
+ return None
+
+ hits = response.get("hits", {}).get("hits", [])
+ if len(hits) != 1:
+ logger.info(
+ "OpenAlex ORCID lookup for %s returned %s hits.",
+ orcid,
+ len(hits),
+ )
+ return None
+
+ source = hits[0].get("_source", {})
+ if not source.get("id") or not source.get("display_name"):
+ return None
+ return {
+ "id": str(source["id"]),
+ "name": str(source["display_name"]),
+ }
+
+
+async def _openalex_author_by_dfg_publication_evidence(
+ dfg_name: str,
+ project_ids: set[str],
+) -> dict[str, Any] | None:
+ dois = await _dfg_project_publication_dois(project_ids)
+ if not dois:
+ return None
+
+ try:
+ response = await elasticsearch.search(
+ index=config.settings.openalex_works_search_index,
+ body={
+ "size": 10000,
+ "_source": [
+ "doi",
+ "authorships.author.id",
+ "authorships.author.display_name",
+ ],
+ "query": {"terms": {"doi": sorted(_doi_variants(dois))}},
+ },
+ cluster=ESCluster.NES,
+ )
+ except Exception:
+ logger.exception(
+ "Could not resolve OpenAlex author from DFG publication DOIs for %s.",
+ dfg_name,
+ )
+ return None
+
+ candidates: dict[str, dict[str, Any]] = {}
+ for hit in response.get("hits", {}).get("hits", []):
+ source = hit.get("_source", {})
+ doi = source.get("doi")
+ if not doi:
+ continue
+ for authorship in source.get("authorships", []) or []:
+ author = authorship.get("author", {}) if isinstance(authorship, dict) else {}
+ author_id = author.get("id")
+ display_name = author.get("display_name")
+ if not author_id or not display_name:
+ continue
+ if not _is_supported_name_variant(dfg_name, str(display_name)):
+ continue
+ candidate = candidates.setdefault(
+ str(author_id),
+ {
+ "id": str(author_id),
+ "name": str(display_name),
+ "dois": set(),
+ },
+ )
+ candidate["dois"].add(str(doi))
+
+ supported_candidates = [
+ candidate
+ for candidate in candidates.values()
+ if len(candidate["dois"]) >= 2
]
+ if len(supported_candidates) != 1:
+ if supported_candidates:
+ logger.info(
+ "DFG publication DOI lookup for %s returned %s candidates.",
+ dfg_name,
+ len(supported_candidates),
+ )
+ return None
+
+ candidate = supported_candidates[0]
+ return {
+ "id": candidate["id"],
+ "name": candidate["name"],
+ }
-async def _top_dfg_project_author_buckets(
- aliases: list[str],
-) -> list[dict[str, Any]]:
+async def _dfg_project_publication_dois(project_ids: set[str]) -> set[str]:
+ if not project_ids:
+ return set()
+
+ numeric_project_ids = [
+ int(project_id)
+ for project_id in project_ids
+ if str(project_id).isdigit()
+ ]
+ if not numeric_project_ids:
+ return set()
+
+ try:
+ response = await elasticsearch.search(
+ index=ESIndex.DFG_PROJECTS,
+ body={
+ "size": len(numeric_project_ids),
+ "_source": ["publications.doi"],
+ "query": {"terms": {"id": numeric_project_ids}},
+ },
+ cluster=ESCluster.INSE,
+ )
+ except Exception:
+ logger.exception("Could not load DFG publication DOIs.")
+ return set()
+
+ dois: set[str] = set()
+ for hit in response.get("hits", {}).get("hits", []):
+ for publication in hit.get("_source", {}).get("publications", []) or []:
+ doi = publication.get("doi") if isinstance(publication, dict) else None
+ if doi:
+ dois.add(str(doi).strip())
+ return {doi for doi in dois if doi}
+
+
+def _doi_variants(dois: set[str]) -> set[str]:
+ variants: set[str] = set()
+ for doi in dois:
+ normalized = doi.strip()
+ if not normalized:
+ continue
+ raw = normalized
+ for prefix in ("https://doi.org/", "http://dx.doi.org/"):
+ if raw.casefold().startswith(prefix):
+ raw = raw[len(prefix):]
+ break
+ variants.update(
+ {
+ normalized,
+ normalized.lower(),
+ f"https://doi.org/{raw}",
+ f"https://doi.org/{raw.lower()}",
+ }
+ )
+ return variants
+
+
+async def _dfg_institution_ids_for_organization(organization_name: str) -> list[int]:
+ page = await autocomplete_institutions_for_selector(
+ query=organization_name,
+ page=0,
+ size=10000,
+ )
+ return [institution.id for institution in page.elements if institution.id is not None]
+
+
+async def _dfg_project_author_hits(
+ page: int,
+ size: int,
+ person_ids: set[int],
+ period: DashboardPeriod = (None, None),
+) -> tuple[list[dict[str, Any]], int]:
+ person_query = {
+ "nested": {
+ "path": "persons",
+ "query": {"terms": {"persons.person_id": sorted(person_ids)}},
+ },
+ }
+ period_filter = _project_overlap_filter(
+ "funding_start",
+ "funding_end",
+ period,
+ missing_end_is_ongoing=True,
+ )
+ query = (
+ {"bool": {"filter": [person_query, period_filter]}}
+ if period_filter
+ else person_query
+ )
response = await elasticsearch.search(
index=ESIndex.DFG_PROJECTS,
body={
- "size": 0,
- "query": _dfg_institution_query(aliases),
- "aggs": {
- "people": {
- "terms": {
- "script": {
- "lang": "painless",
- "source": _dfg_involved_persons_script(),
- },
- "size": 10000,
+ "size": size,
+ "from": page * size,
+ "_source": [
+ "id",
+ "project_id",
+ "persons",
+ ],
+ "query": query,
+ "sort": [
+ {
+ "id": {
+ "order": "asc",
+ "missing": "_last",
}
}
- },
+ ],
},
cluster=ESCluster.INSE,
- )
- return (
- response.get("aggregations", {}).get("people", {}).get("buckets", [])
+ track_total_hits=True,
)
+ hits_block = response.get("hits", {})
+ total_value = hits_block.get("total", 0)
-def _dfg_involved_persons_script() -> str:
- return (
- "def names = new HashSet(); "
- "def value = params['_source'].containsKey('Beteiligte Personen') "
- " ? params['_source']['Beteiligte Personen'] : null; "
- "if (value instanceof String && value.length() > 0) { "
- " for (name in value.splitOnToken(';')) { "
- " def trimmed = name.trim(); "
- " if (trimmed.length() > 0) { names.add(trimmed); } "
- " } "
- "} "
- "return new ArrayList(names);"
+ if isinstance(total_value, dict):
+ total = int(total_value.get("value", 0))
+ else:
+ total = int(total_value or 0)
+
+ hits = [
+ hit.get("_source", {})
+ for hit in hits_block.get("hits", [])
+ if isinstance(hit.get("_source"), dict)
+ ]
+
+ logger.info(
+ "Loaded %s of %s matching DFG projects on page %s.",
+ len(hits),
+ total,
+ page,
)
+ return hits, total
-async def _top_patent_authors(institution_id: str) -> list[TopAuthor]:
+
+def _dfg_project_id(project: dict[str, Any]) -> str | None:
+ project_id = project.get("id")
+ if project_id is None:
+ project_id = project.get("project_id")
+ return str(project_id) if project_id is not None else None
+
+
+async def _top_patent_authors(
+ institution_id: str,
+ from_year: int | None = None,
+ to_year: int | None = None,
+) -> list[TopAuthor]:
client = OrgPatentsSearchClient()
authors = await client.top_authors_by_institution(
institution_id=institution_id,
size=TOP_AUTHOR_LIMIT,
+ from_year=from_year,
+ to_year=to_year,
)
return [
TopAuthor(
@@ -693,6 +1996,170 @@ async def _top_patent_authors(institution_id: str) -> list[TopAuthor]:
]
+async def _top_eu_project_publication_authors(
+ institution_id: str,
+ organization_names: list[str],
+ institution_authors: list[dict[str, Any]],
+) -> list[TopAuthor]:
+ institution_author_ids = {
+ author_id
+ for author in institution_authors
+ if (author_id := _normalize_author_id(author.get("id")))
+ }
+ if not institution_author_ids:
+ return []
+
+ project_page = await get_eu_organization_project_contributions(
+ organization_names=organization_names,
+ projects_filtering_properties=ProjectsFilteringProperties(
+ project_type=ProjectType.EU,
+ page=0,
+ size=10000,
+ ),
+ )
+
+ project_ids = [project.project_id for project in project_page.elements]
+
+ if not project_ids:
+ return []
+
+ publication_response = await elasticsearch.search(
+ index=ESIndex.CORDIS_EU_PUBLICATIONS_WILDCARD,
+ body={
+ "size": 10000,
+ "_source": ["projectID", "qaProcessedDoi"],
+ "query": {
+ "terms": {
+ "projectID": project_ids,
+ }
+ },
+ },
+ cluster=ESCluster.INSE,
+ )
+
+ doi_project_ids = _cordis_publication_doi_project_ids(
+ publication_response,
+ set(project_ids),
+ )
+ if not doi_project_ids:
+ return []
+
+ works_response = await elasticsearch.search(
+ index="openalex-works",
+ body={
+ "size": 10000,
+ "_source": [
+ "doi",
+ "authorships.author.id",
+ "authorships.author.display_name",
+ "authorships.institutions.id",
+ ],
+ "query": {
+ "bool": {
+ "filter": [
+ {"terms": {"doi": sorted(doi_project_ids)}},
+ _institution_works_query(institution_id),
+ ]
+ }
+ },
+ },
+ cluster=ESCluster.NES,
+ )
+
+ return _openalex_work_authors_by_eu_projects(
+ works_response,
+ doi_project_ids,
+ institution_id,
+ institution_author_ids,
+ )
+
+
+def _cordis_publication_doi_project_ids(
+ response: dict[str, Any],
+ allowed_project_ids: set[str],
+) -> dict[str, set[str]]:
+ doi_project_ids: dict[str, set[str]] = defaultdict(set)
+ for hit in response.get("hits", {}).get("hits", []):
+ source = hit.get("_source", {})
+ project_id = str(source.get("projectID") or "").strip()
+ if not project_id or project_id not in allowed_project_ids:
+ continue
+ doi = _normalize_doi(source.get("qaProcessedDoi"))
+ if doi:
+ doi_project_ids[doi].add(project_id)
+ return dict(doi_project_ids)
+
+
+def _normalize_doi(value: Any) -> str | None:
+ if not isinstance(value, str) or not value.strip():
+ return None
+ doi = value.strip().lower()
+ if doi.startswith("https://doi.org/"):
+ return doi
+ if doi.startswith("http://doi.org/"):
+ return "https://" + doi.removeprefix("http://")
+ if doi.startswith("doi.org/"):
+ return f"https://{doi}"
+ return f"https://doi.org/{doi}"
+
+
+def _openalex_work_authors_by_eu_projects(
+ response: dict[str, Any],
+ doi_project_ids: dict[str, set[str]],
+ institution_id: str,
+ institution_author_ids: set[str],
+) -> list[TopAuthor]:
+ # Count unique CORDIS projects per author, not publications. Multiple works
+ # (and therefore multiple DOIs) can belong to the same project ID.
+ author_project_ids: dict[str, set[str]] = defaultdict(set)
+ author_names: dict[str, str] = {}
+
+ for hit in response.get("hits", {}).get("hits", []):
+ source = hit.get("_source", {})
+ project_ids = doi_project_ids.get(_normalize_doi(source.get("doi")) or "")
+ if not project_ids:
+ continue
+
+ for authorship in source.get("authorships") or []:
+ if not any(
+ institution.get("id") == institution_id
+ for institution in authorship.get("institutions") or []
+ ):
+ continue
+ author = authorship.get("author") or {}
+ author_id = _normalize_author_id(author.get("id"))
+ author_name = str(author.get("display_name") or "").strip()
+ if (
+ not author_id
+ or author_id not in institution_author_ids
+ or not author_name
+ ):
+ continue
+ author_project_ids[author_id].update(project_ids)
+ author_names.setdefault(author_id, author_name)
+
+ ranked_authors = sorted(
+ author_project_ids.items(),
+ key=lambda item: (-len(item[1]), author_names.get(item[0], ""), item[0]),
+ )
+
+ return [
+ TopAuthor(
+ id=_short_author_id(author_id),
+ name=author_names[author_id],
+ count=len(project_ids),
+ )
+ for author_id, project_ids in ranked_authors[:TOP_AUTHOR_LIMIT]
+ ]
+
+
+def _normalize_author_id(value: Any) -> str | None:
+ if not isinstance(value, str) or not value.strip():
+ return None
+ short_id = value.replace("https://openalex.org/", "").strip().upper()
+ return f"https://openalex.org/{short_id}"
+
+
async def _top_news_authors(authors: list[dict[str, Any]]) -> list[TopAuthor]:
if not authors:
return []
diff --git a/service/src/main/inse/dashboard/test_institute_helper.py b/service/src/main/inse/dashboard/test_institute_helper.py
new file mode 100644
index 00000000..24fb4fea
--- /dev/null
+++ b/service/src/main/inse/dashboard/test_institute_helper.py
@@ -0,0 +1,40 @@
+from unittest.mock import AsyncMock, patch
+
+import pytest
+
+from inse.dashboard.institute_helper import get_openalex_institution
+from inse.models.openalex.institution import Institution
+
+
+@pytest.fixture
+def anyio_backend():
+ return "asyncio"
+
+
+@pytest.mark.anyio
+@pytest.mark.parametrize(
+ "institution_id",
+ ["I62318514", "https://openalex.org/I62318514"],
+)
+async def test_get_openalex_institution_accepts_short_and_full_id(
+ institution_id: str,
+):
+ institution = Institution(
+ id="https://openalex.org/I62318514",
+ display_name="University of Duisburg-Essen",
+ display_name_alternatives=["Universität Duisburg-Essen"],
+ )
+ with patch(
+ "inse.dashboard.institute_helper.elasticsearch.search",
+ new=AsyncMock(
+ return_value={"hits": {"hits": [{"_source": institution.to_dict()}]}}
+ ),
+ ) as search:
+ result = await get_openalex_institution(institution_id)
+
+ assert result == institution
+ search.assert_awaited_once_with(
+ index="openalex-institutions",
+ query={"term": {"id": "https://openalex.org/I62318514"}},
+ size=1,
+ )
diff --git a/service/src/main/inse/dashboard/test_service.py b/service/src/main/inse/dashboard/test_service.py
index 0d2914c0..2e58db2e 100644
--- a/service/src/main/inse/dashboard/test_service.py
+++ b/service/src/main/inse/dashboard/test_service.py
@@ -1,5 +1,6 @@
-from unittest.mock import AsyncMock, patch
from datetime import datetime
+from types import SimpleNamespace
+from unittest.mock import AsyncMock, patch
import pytest
from fastapi import HTTPException
@@ -8,12 +9,15 @@ from sqlmodel import Session, SQLModel, create_engine
from inse import config
from inse.auth.model import AccessToken, Organization, UserRole
from inse.dashboard.service import (
+ _openalex_work_authors_by_eu_projects,
get_dashboard_organization,
get_dashboard_statistics,
get_top_authors,
get_topic_heatmap,
+ get_topic_word_cloud,
)
from inse.model import ESCluster, ESIndex
+from inse.models.openalex.institution import Institution
ORG_INSTITUTION_ID = "https://openalex.org/I123"
@@ -27,14 +31,42 @@ def anyio_backend():
async def test_dashboard_statistics_counts_organization_data_and_all_projects():
async def search(**kwargs):
index = kwargs["index"]
+
if index == config.settings.openalex_works_search_index:
return {"hits": {"total": {"value": 120}}}
+
if index == ESIndex.OPENALEX_AUTHORS:
return {"hits": {"total": {"value": 35}}}
+
if index == ESIndex.CORDIS_EU_ORGANIZATIONS_WILDCARD:
return {"aggregations": {"projects": {"value": 10}}}
+
if index == ESIndex.PROJECTS_BUND_V1:
return {"hits": {"total": {"value": 5}}}
+
+ if index == ESIndex.DFG_INSTITUTES_V2:
+ if "institute_ids" in kwargs["body"].get("aggs", {}):
+ return {
+ "aggregations": {
+ "institute_ids": {"buckets": [{"key": 10210}]}
+ }
+ }
+ return {
+ "aggregations": {
+ "projects_nested": {
+ "project_ids": {
+ "values": {
+ "buckets": [
+ {"key": 101},
+ {"key": 102},
+ {"key": 103},
+ ]
+ }
+ }
+ }
+ }
+ }
+
return {"hits": {"total": {"value": 3}}}
with patch(
@@ -43,8 +75,20 @@ async def test_dashboard_statistics_counts_organization_data_and_all_projects():
) as mocked_search, patch(
"inse.dashboard.service.InstitutionsSearchClient.get_institution_aliases_by_oa_institution_id",
new=AsyncMock(return_value=["Example University", "Example Uni"]),
+ ), patch(
+ "inse.dashboard.service.get_openalex_institution",
+ new=AsyncMock(
+ return_value=Institution(
+ id=ORG_INSTITUTION_ID,
+ display_name="Example University",
+ display_name_alternatives=["Example Universität"],
+ )
+ ),
):
- result = await get_dashboard_statistics(ORG_INSTITUTION_ID, "Example Org")
+ result = await get_dashboard_statistics(
+ ORG_INSTITUTION_ID,
+ "Example Org",
+ )
assert result.model_dump() == {
"institution_id": ORG_INSTITUTION_ID,
@@ -56,21 +100,35 @@ async def test_dashboard_statistics_counts_organization_data_and_all_projects():
"eu_projects": 10,
"bmbf_projects": 5,
}
- calls = mocked_search.await_args_list
- assert calls[0].kwargs["index"] == config.settings.openalex_works_search_index
- assert calls[0].kwargs["query"]["nested"]["query"]["term"] == {
+
+ publication_call = next(
+ call
+ for call in mocked_search.await_args_list
+ if call.kwargs["index"] == config.settings.openalex_works_search_index
+ )
+ assert publication_call.kwargs["query"]["nested"]["query"]["term"] == {
"authorships.institutions.id": ORG_INSTITUTION_ID
}
- assert calls[1].kwargs["query"]["nested"]["query"]["term"] == {
- "affiliations.institution.id": ORG_INSTITUTION_ID
+
+ person_call = next(
+ call
+ for call in mocked_search.await_args_list
+ if call.kwargs["index"] == ESIndex.OPENALEX_AUTHORS
+ )
+ person_query = person_call.kwargs["query"]
+ affiliation = person_query["bool"]["should"][0]["bool"]["filter"][1]
+
+ assert affiliation["nested"]["path"] == "affiliations"
+ assert affiliation["nested"]["query"]["bool"]["filter"][0] == {
+ "term": {"affiliations.institution.id": ORG_INSTITUTION_ID}
}
- assert all(call.kwargs["cluster"] == ESCluster.INSE for call in calls[2:])
- assert [call.kwargs["index"] for call in calls[2:]] == [
- ESIndex.CORDIS_EU_ORGANIZATIONS_WILDCARD,
- ESIndex.PROJECTS_BUND_V1,
- ESIndex.DFG_PROJECTS,
- ]
- assert calls[2].kwargs["body"]["query"] == {
+ eu_call = next(
+ call
+ for call in mocked_search.await_args_list
+ if call.kwargs["index"] == ESIndex.CORDIS_EU_ORGANIZATIONS_WILDCARD
+ )
+ assert eu_call.kwargs["cluster"] == ESCluster.INSE
+ assert eu_call.kwargs["body"]["query"] == {
"terms": {
"name.keyword": [
"EXAMPLE ORG",
@@ -79,26 +137,32 @@ async def test_dashboard_statistics_counts_organization_data_and_all_projects():
]
}
}
- assert calls[3].kwargs["query"]["bool"]["minimum_should_match"] == 1
- assert calls[3].kwargs["query"]["bool"]["should"][0]["match"] == {
+
+ bund_call = next(
+ call
+ for call in mocked_search.await_args_list
+ if call.kwargs["index"] == ESIndex.PROJECTS_BUND_V1
+ )
+ assert bund_call.kwargs["cluster"] == ESCluster.INSE
+ assert bund_call.kwargs["query"]["bool"]["minimum_should_match"] == 1
+ assert bund_call.kwargs["query"]["bool"]["should"][0]["match"] == {
"Zuwendungsempfänger": {
"query": "Example Org",
"operator": "and",
}
}
- assert calls[4].kwargs["query"]["bool"]["minimum_should_match"] == 1
- assert calls[4].kwargs["query"]["bool"]["should"][0]["bool"]["should"][0][
- "match"
- ] == {
- "Antragstellende Institution": {
- "query": "Example Org",
- "operator": "and",
- }
- }
+
+ dfg_calls = [
+ call
+ for call in mocked_search.await_args_list
+ if call.kwargs["index"] == ESIndex.DFG_INSTITUTES_V2
+ ]
+ assert len(dfg_calls) == 2
+ assert all(call.kwargs["cluster"] == ESCluster.INSE for call in dfg_calls)
@pytest.mark.anyio
-async def test_top_authors_maps_works_and_dfg_project_aggregations():
+async def test_top_authors_maps_works_patents_news_and_eu_projects():
async def search(**kwargs):
if kwargs["index"] == ESIndex.OPENALEX_AUTHORS:
return {
@@ -123,14 +187,37 @@ async def test_top_authors_maps_works_and_dfg_project_aggregations():
]
}
}
+
if kwargs["index"] == "aktuell_postproc":
return {
"aggregations": {
"authors": {
- "buckets": [{"key": "Ada Example", "doc_count": 6}]
+ "buckets": [
+ {"key": "Ada Example", "doc_count": 6}
+ ]
}
}
}
+ if kwargs["index"] == ESIndex.CORDIS_EU_PUBLICATIONS_WILDCARD:
+ return {
+ "hits": {
+ "hits": [
+ {
+ "_source": {
+ "projectID": "P1",
+ "qaProcessedDoi": "10.1234/p1",
+ }
+ },
+ {
+ "_source": {
+ "projectID": "P2",
+ "qaProcessedDoi": "https://doi.org/10.1234/p2",
+ }
+ },
+ ]
+ }
+ }
+
if kwargs["index"] == ESIndex.DFG_PROJECTS:
return {
"aggregations": {
@@ -139,6 +226,50 @@ async def test_top_authors_maps_works_and_dfg_project_aggregations():
}
}
}
+
+ if kwargs["index"] == "openalex-works":
+ return {
+ "hits": {
+ "hits": [
+ {
+ "_source": {
+ "doi": "https://doi.org/10.1234/p1",
+ "authorships": [
+ {
+ "author": {
+ "id": "https://openalex.org/A2",
+ "display_name": "Grace Example",
+ },
+ "institutions": [{"id": ORG_INSTITUTION_ID}],
+ },
+ {
+ "author": {
+ "id": "https://openalex.org/A1",
+ "display_name": "Ada Example",
+ },
+ "institutions": [{"id": ORG_INSTITUTION_ID}],
+ },
+ ],
+ }
+ },
+ {
+ "_source": {
+ "doi": "https://doi.org/10.1234/p2",
+ "authorships": [
+ {
+ "author": {
+ "id": "https://openalex.org/A2",
+ "display_name": "Grace Example",
+ },
+ "institutions": [{"id": ORG_INSTITUTION_ID}],
+ }
+ ],
+ }
+ },
+ ]
+ }
+ }
+
return {"aggregations": {"people": {"buckets": []}}}
with patch(
@@ -147,6 +278,17 @@ async def test_top_authors_maps_works_and_dfg_project_aggregations():
) as mocked_search, patch(
"inse.dashboard.service.InstitutionsSearchClient.get_institution_aliases_by_oa_institution_id",
new=AsyncMock(return_value=["Example University"]),
+ ), patch(
+ "inse.dashboard.service.get_eu_organization_project_contributions",
+ new=AsyncMock(
+ return_value=SimpleNamespace(
+ elements=[
+ SimpleNamespace(project_id="P1"),
+ SimpleNamespace(project_id="P2"),
+ SimpleNamespace(project_id="P3"),
+ ],
+ )
+ ),
), patch(
"inse.dashboard.service.OrgPatentsSearchClient.top_authors_by_institution",
new=AsyncMock(
@@ -155,115 +297,135 @@ async def test_top_authors_maps_works_and_dfg_project_aggregations():
]
),
):
- result = await get_top_authors(ORG_INSTITUTION_ID, "Example Org")
+ result = await get_top_authors(
+ ORG_INSTITUTION_ID,
+ "Example Org",
+ )
assert result.works[0].model_dump() == {
"id": "A1",
"name": "Ada Example",
"count": 42,
}
- assert result.projects[0].model_dump() == {
- "id": "A2",
- "name": "Grace Example",
- "count": 3,
- }
assert result.patents[0].model_dump() == {
"id": "A1",
"name": "Ada Example",
"count": 4,
}
+ assert [author.model_dump() for author in result.eu_projects] == [
+ {"id": "A2", "name": "Grace Example", "count": 2},
+ {"id": "A1", "name": "Ada Example", "count": 1},
+ ]
assert result.news[0].model_dump() == {
"id": "A1",
"name": "Ada Example",
"count": 6,
}
+
project_calls = [
call
for call in mocked_search.await_args_list
if call.kwargs["index"]
in {ESIndex.DFG_PROJECTS, ESIndex.PROJECTS_BUND_V1}
]
- assert len(project_calls) == 1
- assert project_calls[0].kwargs["index"] == ESIndex.DFG_PROJECTS
- assert project_calls[0].kwargs["body"]["query"]["bool"][
- "minimum_should_match"
- ] == 1
- assert "Beteiligte Personen" in project_calls[0].kwargs["body"]["aggs"][
- "people"
- ]["terms"]["script"]["source"]
+ assert project_calls == []
+
+ eu_calls = [
+ call
+ for call in mocked_search.await_args_list
+ if call.kwargs["index"] == ESIndex.CORDIS_EU_PUBLICATIONS_WILDCARD
+ ]
+ assert len(eu_calls) == 1
+
+ eu_body = eu_calls[0].kwargs["body"]
+ assert set(eu_body["query"]["terms"]["projectID"]) == {
+ "P1",
+ "P2",
+ "P3",
+ }
+ assert eu_body["_source"] == ["projectID", "qaProcessedDoi"]
+ assert "aggs" not in eu_body
+
+ works_calls = [
+ call
+ for call in mocked_search.await_args_list
+ if call.kwargs["index"] == "openalex-works"
+ ]
+ assert len(works_calls) == 1
+ works_body = works_calls[0].kwargs["body"]
+ assert works_body["query"]["bool"]["filter"][0]["terms"]["doi"] == [
+ "https://doi.org/10.1234/p1",
+ "https://doi.org/10.1234/p2",
+ ]
+ assert works_body["_source"] == [
+ "doi",
+ "authorships.author.id",
+ "authorships.author.display_name",
+ "authorships.institutions.id",
+ ]
-@pytest.mark.anyio
-async def test_top_authors_keeps_dfg_project_authors_without_openalex_match():
- async def search(**kwargs):
- if kwargs["index"] == ESIndex.OPENALEX_AUTHORS:
- return {"hits": {"hits": []}}
- if kwargs["index"] == ESIndex.DFG_PROJECTS:
- return {
- "aggregations": {
- "people": {
- "buckets": [{"key": "Project Person", "doc_count": 9}]
+def test_eu_author_count_groups_multiple_publications_by_project_id():
+ works_response = {
+ "hits": {
+ "hits": [
+ {
+ "_source": {
+ "doi": "https://doi.org/10.1/marcus-a",
+ "authorships": [
+ {
+ "author": {
+ "id": "https://openalex.org/A5007170803",
+ "display_name": "Marcus Example",
+ },
+ "institutions": [{"id": ORG_INSTITUTION_ID}],
+ },
+ {
+ "author": {
+ "id": "https://openalex.org/A999",
+ "display_name": "External Example",
+ },
+ "institutions": [{"id": ORG_INSTITUTION_ID}],
+ },
+ ],
}
- }
- }
- return {"aggregations": {"people": {"buckets": []}}}
-
- with patch(
- "inse.dashboard.service.elasticsearch.search",
- new=AsyncMock(side_effect=search),
- ), patch(
- "inse.dashboard.service.InstitutionsSearchClient.get_institution_aliases_by_oa_institution_id",
- new=AsyncMock(return_value=["Example University"]),
- ), patch(
- "inse.dashboard.service.OrgPatentsSearchClient.top_authors_by_institution",
- new=AsyncMock(return_value=[]),
- ):
- result = await get_top_authors(ORG_INSTITUTION_ID, "Example Org")
-
- assert result.projects[0].model_dump() == {
- "id": None,
- "name": "Project Person",
- "count": 9,
+ },
+ {
+ "_source": {
+ "doi": "https://doi.org/10.1/marcus-b",
+ "authorships": [
+ {
+ "author": {
+ "id": "https://openalex.org/A5007170803",
+ "display_name": "Marcus Example",
+ },
+ "institutions": [{"id": ORG_INSTITUTION_ID}],
+ }
+ ],
+ }
+ },
+ ]
+ }
+ }
+ doi_project_ids = {
+ "https://doi.org/10.1/marcus-a": {"P1"},
+ "https://doi.org/10.1/marcus-b": {"P1"},
}
+ result = _openalex_work_authors_by_eu_projects(
+ works_response,
+ doi_project_ids,
+ ORG_INSTITUTION_ID,
+ {"https://openalex.org/A5007170803"},
+ )
-@pytest.mark.anyio
-async def test_top_authors_returns_top_ten_dfg_project_people_by_project_count():
- async def search(**kwargs):
- if kwargs["index"] == ESIndex.OPENALEX_AUTHORS:
- return {"hits": {"hits": []}}
- if kwargs["index"] == ESIndex.DFG_PROJECTS:
- return {
- "aggregations": {
- "people": {
- "buckets": [
- {"key": f"Project Person {count}", "doc_count": count}
- for count in range(1, 12)
- ]
- }
- }
- }
- return {"aggregations": {"people": {"buckets": []}}}
-
- with patch(
- "inse.dashboard.service.elasticsearch.search",
- new=AsyncMock(side_effect=search),
- ), patch(
- "inse.dashboard.service.InstitutionsSearchClient.get_institution_aliases_by_oa_institution_id",
- new=AsyncMock(return_value=["Example University"]),
- ), patch(
- "inse.dashboard.service.OrgPatentsSearchClient.top_authors_by_institution",
- new=AsyncMock(return_value=[]),
- ):
- result = await get_top_authors(ORG_INSTITUTION_ID, "Example Org")
-
- assert [author.count for author in result.projects] == list(range(11, 1, -1))
- assert result.projects[0].name == "Project Person 11"
- assert len(result.projects) == 10
+ assert [author.model_dump() for author in result] == [
+ {"id": "A5007170803", "name": "Marcus Example", "count": 1}
+ ]
@pytest.mark.anyio
-async def test_top_authors_combines_dfg_involved_people_case_insensitively():
+async def test_top_eu_project_authors_count_filtered_projects_by_stable_author_id():
async def search(**kwargs):
if kwargs["index"] == ESIndex.OPENALEX_AUTHORS:
return {
@@ -273,10 +435,127 @@ async def test_top_authors_combines_dfg_involved_people_case_insensitively():
"_source": {
"id": "https://openalex.org/A1",
"display_name": "Ada Example",
+ "works_count": 3,
+ "counts_by_year": [],
+ }
+ },
+ {
+ "_source": {
+ "id": "https://openalex.org/A2",
+ "display_name": "Grace Example",
"works_count": 1,
"counts_by_year": [],
}
- }
+ },
+ ]
+ }
+ }
+ if kwargs["index"] == ESIndex.CORDIS_EU_PUBLICATIONS_WILDCARD:
+ assert kwargs["body"]["query"] == {
+ "terms": {"projectID": ["P1", "P2"]}
+ }
+ return {
+ "hits": {
+ "hits": [
+ {
+ "_source": {
+ "projectID": "P1",
+ "qaProcessedDoi": "10.1/P1-A",
+ }
+ },
+ {
+ "_source": {
+ "projectID": "P1",
+ "qaProcessedDoi": "10.1/P1-B",
+ }
+ },
+ {
+ "_source": {
+ "projectID": "P2",
+ "qaProcessedDoi": "10.1/P2",
+ }
+ },
+ {
+ "_source": {
+ "projectID": "OUTSIDE",
+ "qaProcessedDoi": "10.1/OUT",
+ }
+ },
+ ]
+ }
+ }
+
+ if kwargs["index"] == "openalex-works":
+ assert kwargs["body"]["query"]["bool"]["filter"][0]["terms"]["doi"] == [
+ "https://doi.org/10.1/p1-a",
+ "https://doi.org/10.1/p1-b",
+ "https://doi.org/10.1/p2",
+ ]
+ return {
+ "hits": {
+ "hits": [
+ {
+ "_source": {
+ "doi": "https://doi.org/10.1/p1-a",
+ "authorships": [
+ {
+ "author": {
+ "id": "https://openalex.org/A1",
+ "display_name": "Ada Example",
+ },
+ "institutions": [{"id": ORG_INSTITUTION_ID}],
+ },
+ {
+ "author": {
+ "id": "https://openalex.org/A2",
+ "display_name": "Grace Example",
+ },
+ "institutions": [{"id": ORG_INSTITUTION_ID}],
+ },
+ ],
+ }
+ },
+ {
+ "_source": {
+ "doi": "https://doi.org/10.1/p1-b",
+ "authorships": [
+ {
+ "author": {
+ "id": "https://openalex.org/A1",
+ "display_name": "Ada Example",
+ },
+ "institutions": [{"id": ORG_INSTITUTION_ID}],
+ }
+ ],
+ }
+ },
+ {
+ "_source": {
+ "doi": "https://doi.org/10.1/p2",
+ "authorships": [
+ {
+ "author": {
+ "id": "https://openalex.org/A1",
+ "display_name": "Ada Example",
+ },
+ "institutions": [{"id": ORG_INSTITUTION_ID}],
+ }
+ ],
+ }
+ },
+ {
+ "_source": {
+ "doi": "https://doi.org/10.1/not-requested",
+ "authorships": [
+ {
+ "author": {
+ "id": "https://openalex.org/A999",
+ "display_name": "Outside Author",
+ }
+ }
+ ],
+ }
+ },
]
}
}
@@ -300,15 +579,28 @@ async def test_top_authors_combines_dfg_involved_people_case_insensitively():
), patch(
"inse.dashboard.service.InstitutionsSearchClient.get_institution_aliases_by_oa_institution_id",
new=AsyncMock(return_value=["Example University"]),
+ ), patch(
+ "inse.dashboard.service.get_eu_organization_project_contributions",
+ new=AsyncMock(
+ return_value=SimpleNamespace(
+ elements=[
+ SimpleNamespace(project_id="P1"),
+ SimpleNamespace(project_id="P2"),
+ ],
+ )
+ ),
), patch(
"inse.dashboard.service.OrgPatentsSearchClient.top_authors_by_institution",
new=AsyncMock(return_value=[]),
):
- result = await get_top_authors(ORG_INSTITUTION_ID, "Example Org")
+ result = await get_top_authors(
+ ORG_INSTITUTION_ID,
+ "Example Org",
+ )
- assert [author.model_dump() for author in result.projects] == [
- {"id": "A1", "name": "Ada Example", "count": 5},
- {"id": None, "name": "DFG Person", "count": 4},
+ assert [author.model_dump() for author in result.eu_projects] == [
+ {"id": "A1", "name": "Ada Example", "count": 2},
+ {"id": "A2", "name": "Grace Example", "count": 1},
]
@@ -330,6 +622,7 @@ async def test_top_authors_returns_partial_response_when_one_source_fails():
]
}
}
+
raise RuntimeError("projects unavailable")
with patch(
@@ -338,14 +631,26 @@ async def test_top_authors_returns_partial_response_when_one_source_fails():
), patch(
"inse.dashboard.service.InstitutionsSearchClient.get_institution_aliases_by_oa_institution_id",
new=AsyncMock(return_value=["Example University"]),
+ ), patch(
+ "inse.dashboard.service.get_eu_organization_project_contributions",
+ new=AsyncMock(
+ return_value=SimpleNamespace(
+ elements=[
+ SimpleNamespace(project_id="P1"),
+ ],
+ )
+ ),
), patch(
"inse.dashboard.service.OrgPatentsSearchClient.top_authors_by_institution",
new=AsyncMock(return_value=[]),
):
- result = await get_top_authors(ORG_INSTITUTION_ID, "Example Org")
+ result = await get_top_authors(
+ ORG_INSTITUTION_ID,
+ "Example Org",
+ )
assert result.works[0].name == "Ada Example"
- assert result.projects == []
+ assert result.eu_projects == []
assert result.patents == []
assert result.news == []
@@ -392,6 +697,9 @@ async def test_top_authors_can_rank_works_by_last_five_years():
), patch(
"inse.dashboard.service.InstitutionsSearchClient.get_institution_aliases_by_oa_institution_id",
new=AsyncMock(return_value=["Example University"]),
+ ), patch(
+ "inse.dashboard.service.get_eu_organization_project_contributions",
+ new=AsyncMock(return_value=SimpleNamespace(elements=[])),
), patch(
"inse.dashboard.service.OrgPatentsSearchClient.top_authors_by_institution",
new=AsyncMock(return_value=[]),
@@ -448,6 +756,42 @@ async def test_topic_heatmap_maps_field_year_counts_and_shares():
]
},
},
+ "subfields": {
+ "buckets": [
+ {
+ "key": "https://openalex.org/subfields/1702",
+ "subfield_name": {
+ "buckets": [
+ {
+ "key": "Artificial Intelligence",
+ "doc_count": 7,
+ }
+ ]
+ },
+ "works": {
+ "doc_count": 7,
+ },
+ "topics": {
+ "buckets": [
+ {
+ "key": "https://openalex.org/T100",
+ "topic_name": {
+ "buckets": [
+ {
+ "key": "Machine learning",
+ "doc_count": 6,
+ }
+ ]
+ },
+ "works": {
+ "doc_count": 6,
+ },
+ }
+ ]
+ },
+ }
+ ]
+ },
}
]
}
@@ -490,6 +834,22 @@ async def test_topic_heatmap_maps_field_year_counts_and_shares():
{"year": 2023, "count": 4, "share": 0.4},
{"year": 2024, "count": 8, "share": 0.4},
],
+ "subfields": [
+ {
+ "id": "https://openalex.org/subfields/1702",
+ "name": "Artificial Intelligence",
+ "total": 7,
+ "values": [],
+ "topics": [
+ {
+ "id": "https://openalex.org/T100",
+ "name": "Machine learning",
+ "total": 6,
+ "values": [],
+ }
+ ],
+ }
+ ],
}
body = mocked_search.await_args_list[0].kwargs["body"]
assert body["query"]["bool"]["must"][0]["nested"]["query"]["term"] == {
@@ -499,10 +859,28 @@ async def test_topic_heatmap_maps_field_year_counts_and_shares():
body["aggs"]["topics_nested"]["aggs"]["fields"]["terms"]["field"]
== "topics.field.id"
)
+ assert (
+ body["aggs"]["topics_nested"]["aggs"]["fields"]["aggs"]["subfields"]["terms"][
+ "field"
+ ]
+ == "topics.subfield.id"
+ )
+ assert (
+ body["aggs"]["topics_nested"]["aggs"]["fields"]["aggs"]["subfields"][
+ "aggs"
+ ]["topics"]["terms"]["field"]
+ == "topics.id"
+ )
+ subfield_aggs = body["aggs"]["topics_nested"]["aggs"]["fields"]["aggs"]
+ assert "aggs" not in subfield_aggs["subfields"]["aggs"]["works"]
+ assert (
+ "aggs"
+ not in subfield_aggs["subfields"]["aggs"]["topics"]["aggs"]["works"]
+ )
@pytest.mark.anyio
-async def test_topic_heatmap_defaults_to_last_five_years():
+async def test_topic_heatmap_defaults_to_all_time():
async def search(**kwargs):
if kwargs["index"] == config.settings.openalex_works_search_index:
return {
@@ -522,13 +900,61 @@ async def test_topic_heatmap_defaults_to_last_five_years():
organization_name="Example Org",
)
- current_year = datetime.now().year
- assert result.years == list(range(current_year - 4, current_year + 1))
+ assert result.years == []
body = mocked_search.await_args_list[0].kwargs["body"]
- assert body["query"]["bool"]["filter"][0]["range"]["publication_year"] == {
- "gte": current_year - 4,
- "lte": current_year,
+ assert body["query"]["bool"]["filter"] == []
+
+
+@pytest.mark.anyio
+async def test_topic_word_cloud_maps_related_topics_and_excludes_selected_topic():
+ response = {
+ "aggregations": {
+ "topics_nested": {
+ "topics": {
+ "buckets": [
+ {
+ "key": "https://openalex.org/T100",
+ "topic_name": {"buckets": [{"key": "Selected topic"}]},
+ "works": {"doc_count": 9},
+ },
+ {
+ "key": "https://openalex.org/T200",
+ "topic_name": {"buckets": [{"key": "Related topic"}]},
+ "works": {"doc_count": 6},
+ },
+ ]
+ }
+ }
+ }
}
+ with patch(
+ "inse.dashboard.service.elasticsearch.search",
+ new=AsyncMock(return_value=response),
+ ) as mocked_search:
+ result = await get_topic_word_cloud(
+ institution_id=ORG_INSTITUTION_ID,
+ topic_id="https://openalex.org/T100",
+ from_year=2023,
+ to_year=2024,
+ )
+
+ assert result.model_dump() == {
+ "topic_id": "https://openalex.org/T100",
+ "words": [
+ {
+ "id": "https://openalex.org/T200",
+ "name": "Related topic",
+ "count": 6,
+ }
+ ],
+ }
+ body = mocked_search.await_args.kwargs["body"]
+ assert body["query"]["bool"]["must"][1]["nested"]["query"]["term"] == {
+ "topics.id": "https://openalex.org/T100"
+ }
+ assert body["query"]["bool"]["filter"] == [
+ {"range": {"publication_year": {"gte": 2023, "lte": 2024}}}
+ ]
def test_get_dashboard_organization_uses_effective_organization():
diff --git a/service/src/main/inse/database.py b/service/src/main/inse/database.py
index 6ad5da6d..4fd5a269 100644
--- a/service/src/main/inse/database.py
+++ b/service/src/main/inse/database.py
@@ -2,7 +2,7 @@ from typing import Annotated
from fastapi import Depends
from sqlalchemy import inspect, text
-from sqlmodel import SQLModel, Session, create_engine
+from sqlmodel import Session, SQLModel, create_engine
from inse import config
diff --git a/service/src/main/inse/exceptions.py b/service/src/main/inse/exceptions.py
index da51e2de..eea6c9de 100644
--- a/service/src/main/inse/exceptions.py
+++ b/service/src/main/inse/exceptions.py
@@ -10,22 +10,18 @@ class NotFoundException(Exception):
class ElasticsearchException(Exception):
"""Base exception for all Elasticsearch integrations."""
- pass
class ElasticsearchNotFoundException(NotFoundException, ElasticsearchException):
"""Raised when an Elasticsearch document or index is not found."""
- pass
class ElasticsearchConnectionException(ElasticsearchException):
"""Raised when connecting to Elasticsearch fails."""
- pass
class MissingApiKeyError(Exception):
"""Raised when a required API key is missing."""
- pass
class UpstreamAPIException(Exception):
@@ -38,4 +34,3 @@ class UpstreamAPIException(Exception):
class BadRequestException(Exception):
"""Raised when request parameters are invalid or validation fails."""
- pass
diff --git a/service/src/main/inse/funders/__init__.py b/service/src/main/inse/funders/__init__.py
index a12699fd..1235c7c2 100644
--- a/service/src/main/inse/funders/__init__.py
+++ b/service/src/main/inse/funders/__init__.py
@@ -1,5 +1,4 @@
-#!/usr/bin/env python
-# -*- coding: utf-8 -*-
+
"""
Funders domain package.
"""
diff --git a/service/src/main/inse/funders/elastic_search_client.py b/service/src/main/inse/funders/elastic_search_client.py
index 445ae4f0..ccb373fb 100644
--- a/service/src/main/inse/funders/elastic_search_client.py
+++ b/service/src/main/inse/funders/elastic_search_client.py
@@ -1,16 +1,14 @@
-#!/usr/bin/env python
-# -*- coding: utf-8 -*-
+
"""
HTTP client for funded-publication searches in the OpenAlex works index.
"""
from typing import Any
-from .. import config
+from inse.exceptions import MissingApiKeyError
from inse.integrations import elasticsearch
from inse.model import ESCluster
-
-from inse.exceptions import MissingApiKeyError
+from .. import config
class FundedPublicationsSearchClient:
diff --git a/service/src/main/inse/funders/logic.py b/service/src/main/inse/funders/logic.py
index bad9e46e..24069126 100644
--- a/service/src/main/inse/funders/logic.py
+++ b/service/src/main/inse/funders/logic.py
@@ -1,5 +1,4 @@
-#!/usr/bin/env python
-# -*- coding: utf-8 -*-
+
"""
Business logic for author funding based on publication works.
"""
@@ -7,10 +6,14 @@ import logging
from typing import Any
from pydantic import ValidationError
+
+from inse.exceptions import (
+ UpstreamAPIException,
+)
+
from ..persons import logic as person_logic
from . import model
from .elastic_search_client import FundedPublicationsSearchClient
-from inse.exceptions import MissingApiKeyError, ElasticsearchException, UpstreamAPIException
logger = logging.getLogger(__name__)
diff --git a/service/src/main/inse/funders/model.py b/service/src/main/inse/funders/model.py
index 2f0a2b4b..84dee177 100644
--- a/service/src/main/inse/funders/model.py
+++ b/service/src/main/inse/funders/model.py
@@ -1,7 +1,6 @@
from typing import Any
-from pydantic import BaseModel
-from pydantic import Field
+from pydantic import BaseModel, Field
class PublicationsByAuthorResponse(BaseModel):
diff --git a/service/src/main/inse/funders/service.py b/service/src/main/inse/funders/service.py
index b6c8c05f..96f57d5b 100644
--- a/service/src/main/inse/funders/service.py
+++ b/service/src/main/inse/funders/service.py
@@ -1,16 +1,12 @@
-#!/usr/bin/env python
-# -*- coding: utf-8 -*-
+
"""
REST API for author publications and funding.
"""
from typing import Annotated
-from fastapi import APIRouter
-from fastapi import Query
-
-from . import logic
-from . import model
+from fastapi import APIRouter, Query
+from . import logic, model
router = APIRouter(prefix="/api/inse-service/authors", tags=["Funding"])
diff --git a/service/src/main/inse/funders/test_logic.py b/service/src/main/inse/funders/test_logic.py
index 52ff0fdb..700028a2 100644
--- a/service/src/main/inse/funders/test_logic.py
+++ b/service/src/main/inse/funders/test_logic.py
@@ -1,7 +1,8 @@
-import pytest
from unittest.mock import AsyncMock, patch
-from inse.exceptions import MissingApiKeyError
+import pytest
+
+from inse.exceptions import MissingApiKeyError
from inse.funders import logic
from inse.funders.elastic_search_client import FundedPublicationsSearchClient
diff --git a/service/src/main/inse/institutions/institutions_search_client.py b/service/src/main/inse/institutions/institutions_search_client.py
index af18216e..482194d9 100644
--- a/service/src/main/inse/institutions/institutions_search_client.py
+++ b/service/src/main/inse/institutions/institutions_search_client.py
@@ -1,13 +1,10 @@
import logging
-from typing import List, Set
-from typing import Any, Dict, Literal, Optional
+from typing import Any, Literal
-
-from inse.models.openalex.institution import Institution
from inse.exceptions import NotFoundException
-from inse.integrations import elasticsearch
from inse.institutions.model import InstitutionPage
-
+from inse.integrations import elasticsearch
+from inse.models.openalex.institution import Institution
logger = logging.getLogger(__name__)
@@ -18,7 +15,6 @@ class InstitutionsSearchClient:
Initializes the client. Credentials and URLs are handled by the
centralized elasticsearch integration.
"""
- pass
async def get_institution_by_id(self, raw_oa_institution_id: str) -> Institution:
"""Retrieves an institution by its raw OpenAlex institution ID.
@@ -56,7 +52,7 @@ class InstitutionsSearchClient:
async def get_eu_organisation_id_by_oa_institution_id(
self, raw_institution_id: str
- ) -> Optional[str]:
+ ) -> str | None:
"""Retrieves the corresponding EU organisation ID for a given OpenAlex institution ID, if available.
Args:
@@ -99,7 +95,7 @@ class InstitutionsSearchClient:
else:
sort_config.append({"display_name.keyword": {"order": sorting_direction}})
- query: Dict[str, Any] = {"match_all": {}}
+ query: dict[str, Any] = {"match_all": {}}
if len(name) > 0:
query = {
@@ -136,7 +132,7 @@ class InstitutionsSearchClient:
return self.response_to_institution_page(response, page, size)
def response_to_institution_page(
- self, response: Dict[str, Any], page: int, size: int
+ self, response: dict[str, Any], page: int, size: int
) -> InstitutionPage:
hits = response.get("hits", {}).get("hits", [])
@@ -250,7 +246,7 @@ class InstitutionsSearchClient:
async def get_institution_aliases_by_oa_institution_id(
self, raw_oa_institution_id: str
- ) -> List[str]:
+ ) -> list[str]:
"""Get a list of institution aliases for a given institution ID, including both display name alternatives and predefined aliases.
Args:
@@ -273,7 +269,7 @@ class InstitutionsSearchClient:
def get_predefined_institution_aliases(
self, raw_oa_institution_id: str
- ) -> Set[str]:
+ ) -> set[str]:
"""Get predefined aliases for a given institution ID.
Args:
@@ -297,7 +293,7 @@ class InstitutionsSearchClient:
set(predefined_aliases.get(raw_oa_institution_id, []))
)
- def augment_aliases(self, aliases: Set[str]) -> Set[str]:
+ def augment_aliases(self, aliases: set[str]) -> set[str]:
"""Augment a set of aliases by applying the augment_alias function to each alias.
Args:
@@ -311,7 +307,7 @@ class InstitutionsSearchClient:
augmented_aliases.update(self.augment_alias(alias))
return augmented_aliases
- def augment_alias(self, alias: str) -> List[str]:
+ def augment_alias(self, alias: str) -> list[str]:
"""Augment an alias by replacing German umlauts and ß with their alternative spellings.
Args:
@@ -343,7 +339,7 @@ class InstitutionsSearchClient:
aliases.append(alias.replace("-", " "))
return aliases
- def _convert_hit_to_institution(self, hit: Dict[str, Any]) -> Optional[Institution]:
+ def _convert_hit_to_institution(self, hit: dict[str, Any]) -> Institution | None:
"""Convert an Elasticsearch hit to an Institution object, applying necessary data cleaning and validation.
Args:
@@ -388,7 +384,7 @@ class InstitutionsSearchClient:
async def get_cordis_eu_organisation_ids_by_oa_institution_id(
self, raw_oa_institution_id: str
- ) -> Optional[List[str]]:
+ ) -> list[str] | None:
"""Retrieves the corresponding EU organisation IDs for a given OpenAlex institution ID by searching for institution aliases and matching them against the Cordis EU organisations indices.
Args:
diff --git a/service/src/main/inse/institutions/logic.py b/service/src/main/inse/institutions/logic.py
index d001c646..9e7eeb2e 100644
--- a/service/src/main/inse/institutions/logic.py
+++ b/service/src/main/inse/institutions/logic.py
@@ -1,26 +1,26 @@
-#!/usr/bin/env python
-# -*- coding: utf-8 -*-
+
"""
Business logic for OpenAlex institutions.
"""
import logging
from copy import deepcopy
-from typing import Any, Optional
+from typing import Any
import httpx
from pydantic import ValidationError
-from inse.exceptions import UpstreamAPIException, BadRequestException
+from inse.exceptions import BadRequestException, UpstreamAPIException
+from inse.institutions.institutions_search_client import InstitutionsSearchClient
from inse.models.openalex.autocomplete_response import AutocompleteResponse
from inse.models.openalex.autocomplete_response_meta import AutocompleteResponseMeta
from inse.models.openalex.autocomplete_response_results_inner import (
AutocompleteResponseResultsInner,
)
-from inse.models.openalex.institutions_list_response import InstitutionsListResponse
from inse.models.openalex.institution import Institution
+from inse.models.openalex.institutions_list_response import InstitutionsListResponse
+
from .search_client import OpenAlexInstitutionsClient
-from inse.institutions.institutions_search_client import InstitutionsSearchClient
logger = logging.getLogger(__name__)
diff --git a/service/src/main/inse/institutions/model.py b/service/src/main/inse/institutions/model.py
index 0eaf3c61..8ac8f972 100644
--- a/service/src/main/inse/institutions/model.py
+++ b/service/src/main/inse/institutions/model.py
@@ -1,4 +1,3 @@
-from typing import List
from pydantic import BaseModel, Field
@@ -6,7 +5,7 @@ from inse.models.openalex.institution import Institution
class InstitutionPage(BaseModel):
- elements: List[Institution] = Field(
+ elements: list[Institution] = Field(
default_factory=list, description="List of institutions in the current page."
)
page: int = Field(default=0, description="Current page number. (0-indexed)")
diff --git a/service/src/main/inse/institutions/router.py b/service/src/main/inse/institutions/router.py
index 2709e4d9..84c18e8e 100644
--- a/service/src/main/inse/institutions/router.py
+++ b/service/src/main/inse/institutions/router.py
@@ -1,5 +1,4 @@
-#!/usr/bin/env python
-# -*- coding: utf-8 -*-
+
"""
REST API for OpenAlex institutions.
"""
@@ -7,16 +6,16 @@ REST API for OpenAlex institutions.
from functools import lru_cache
from typing import Annotated, Literal
-from fastapi import APIRouter, Depends, status, Query
+from fastapi import APIRouter, Depends, Query, status
+from inse.institutions.institutions_search_client import InstitutionsSearchClient
+from inse.institutions.model import InstitutionPage
from inse.models.openalex.autocomplete_response import AutocompleteResponse
+from inse.models.openalex.institution import Institution
from inse.models.openalex.institutions_list_response import InstitutionsListResponse
from inse.tags import Tags
-from inse.models.openalex.institution import Institution
-from inse.institutions.model import InstitutionPage
-from . import logic
-from inse.institutions.institutions_search_client import InstitutionsSearchClient
+from . import logic
router = APIRouter(prefix="/api/inse-service/institutions", tags=[Tags.INSTITUTIONS])
diff --git a/service/src/main/inse/institutions/search_client.py b/service/src/main/inse/institutions/search_client.py
index 9839e24c..5e9f32f5 100644
--- a/service/src/main/inse/institutions/search_client.py
+++ b/service/src/main/inse/institutions/search_client.py
@@ -1,5 +1,4 @@
-#!/usr/bin/env python
-# -*- coding: utf-8 -*-
+
"""
HTTP client for OpenAlex institutions.
"""
diff --git a/service/src/main/inse/institutions/test_logic.py b/service/src/main/inse/institutions/test_logic.py
index 11544b19..cca61dc9 100644
--- a/service/src/main/inse/institutions/test_logic.py
+++ b/service/src/main/inse/institutions/test_logic.py
@@ -1,7 +1,7 @@
import httpx
import pytest
-from inse.exceptions import BadRequestException
+from inse.exceptions import BadRequestException
from inse.institutions import logic
from inse.institutions.search_client import OpenAlexInstitutionsClient
diff --git a/service/src/main/inse/institutions/v2/model.py b/service/src/main/inse/institutions/v2/model.py
index 8f7572ec..feeec998 100644
--- a/service/src/main/inse/institutions/v2/model.py
+++ b/service/src/main/inse/institutions/v2/model.py
@@ -5,4 +5,3 @@ from inse.models.openalex.institution import Institution
class InstitutionPageV2(Page[Institution]):
"""A paginated response containing a list of institutions."""
- pass
diff --git a/service/src/main/inse/institutions/v2/router.py b/service/src/main/inse/institutions/v2/router.py
index d86074b9..6cd9ad36 100644
--- a/service/src/main/inse/institutions/v2/router.py
+++ b/service/src/main/inse/institutions/v2/router.py
@@ -1,34 +1,58 @@
import logging
from typing import Annotated
-from fastapi import APIRouter, Query
-
+import inse.institutions.v2.service as institutions_service
+from fastapi import APIRouter, Path, Query
from inse.institutions.v2.model import InstitutionPageV2
+from inse.models.openalex.institution import Institution
+from inse.router_prefixes import RouterPrefixes
from inse.tags import Tags
-
logger = logging.getLogger(__name__)
-INSTITUTIONS_v2_PREFIX = "/api/v2/institutions"
-
-router = APIRouter(prefix=INSTITUTIONS_v2_PREFIX, tags=[Tags.INSTITUTIONS_V2])
+router = APIRouter(prefix=RouterPrefixes.INSTITUTIONS_V2, tags=[Tags.INSTITUTIONS_V2])
@router.get(
- "/ids",
+ "/single/{institution_id}",
+ operation_id="getInstitutionById2",
+ summary="Returns an institution based on its ID.",
+)
+async def get_institution_by_id(
+ institution_id: Annotated[
+ str,
+ Path(description="The ID of the institution to retrieve."),
+ ],
+) -> Institution:
+ return await institutions_service.get_institution_by_id_or_raise(
+ raw_oa_institution_id=institution_id,
+ source=[
+ "id",
+ "display_name",
+ "display_name_alternatives",
+ "works_count",
+ "cited_by_count",
+ "geo",
+ "summary_stats",
+ ],
+ )
+
+
+@router.get(
+ "/multiple/ids",
operation_id="getInstitutionsByIds",
summary="Returns a list of institutions based on their IDs.",
)
async def get_institutions_by_ids(
institution_ids: Annotated[
- list[str],
+ list[str] | None,
Query(description="A list of institution IDs to retrieve."),
- ] = [],
+ ] = None,
) -> InstitutionPageV2:
- from inse.institutions.v2.service import get_institutions_by_ids
-
- return await get_institutions_by_ids(institution_ids=institution_ids or [])
+ return await institutions_service.get_institutions_by_ids(
+ institution_ids=institution_ids or []
+ )
@router.get(
@@ -44,6 +68,6 @@ async def get_institution_autocomplete(
),
] = "",
) -> InstitutionPageV2:
- from inse.institutions.v2.service import autocomplete_institutions_for_selector
-
- return await autocomplete_institutions_for_selector(query=query)
+ return await institutions_service.autocomplete_institutions_for_selector(
+ query=query
+ )
diff --git a/service/src/main/inse/institutions/v2/service.py b/service/src/main/inse/institutions/v2/service.py
index 47554ece..7b6876d0 100644
--- a/service/src/main/inse/institutions/v2/service.py
+++ b/service/src/main/inse/institutions/v2/service.py
@@ -1,22 +1,66 @@
import logging
-from typing import Dict, List, Optional
+from inse.exceptions import NotFoundException
+from inse.institutions.v2.model import InstitutionPageV2
from inse.integrations import elasticsearch
from inse.model import ESIndex
from inse.models.openalex.institution import Institution
-from inse.institutions.v2.model import InstitutionPageV2
-
logger = logging.getLogger(__name__)
+async def get_institution_by_id(
+ raw_oa_institution_id: str, source: list[str] | None = None
+) -> Institution | None:
+ """Retrieves an institution by its ID from the OpenAlex Elasticsearch index.
+
+ Args:
+ raw_oa_institution_id (str): The raw OpenAlex ID of the institution to retrieve.
+ source (Optional[List[str]], optional): A list of fields to include in the response. Defaults to None.
+
+ Returns:
+ Institution | None: The institution object if found, otherwise None.
+ """
+ response = await elasticsearch.get(
+ index=ESIndex.OPENALEX_INSTITUTIONS, doc_id=raw_oa_institution_id, source=source
+ )
+ if not response.get("found"):
+ return None
+ return Institution.from_dict(response.get("_source", {})) # type: ignore
+
+
+async def get_institution_by_id_or_raise(
+ raw_oa_institution_id: str, source: list[str] | None = None
+) -> Institution:
+ """Retrieves an institution by its ID from the OpenAlex Elasticsearch index, raising an exception if not found.
+
+ Args:
+ raw_oa_institution_id (str): The raw OpenAlex ID of the institution to retrieve.
+ source (Optional[List[str]], optional): A list of fields to include in the response. Defaults to None.
+
+ Raises:
+ NotFoundException: If the institution is not found.
+
+ Returns:
+ Institution: The institution object if found.
+ """
+ institution = await get_institution_by_id(
+ raw_oa_institution_id=raw_oa_institution_id, source=source
+ )
+ if institution is None:
+ raise NotFoundException(
+ f"Institution with ID {raw_oa_institution_id} not found."
+ )
+ return institution
+
+
async def search_institutions(
page: int = 0,
size: int = 10,
- query: Optional[Dict] = None,
- source: Optional[List[str]] = None,
- sort: Optional[List[Dict]] = None,
- body: Optional[Dict] = None,
+ query: dict | None = None,
+ source: list[str] | None = None,
+ sort: list[dict] | None = None,
+ body: dict | None = None,
) -> InstitutionPageV2:
"""Searches for institutions in the OpenAlex Elasticsearch index based on the provided parameters.
@@ -43,7 +87,7 @@ async def search_institutions(
hits_block = response.get("hits", {})
hits = hits_block.get("hits", [])
- institutions: List[Institution] = []
+ institutions: list[Institution] = []
for hit in hits:
_source = hit.get("_source", {})
institutions.append(Institution.from_dict(_source)) # type: ignore
@@ -52,7 +96,7 @@ async def search_institutions(
)
-async def get_institutions_by_ids(institution_ids: List[str]) -> InstitutionPageV2:
+async def get_institutions_by_ids(institution_ids: list[str]) -> InstitutionPageV2:
"""Retrieves institutions based on a list of institution IDs.
Args:
@@ -81,7 +125,7 @@ async def get_institutions_by_ids(institution_ids: List[str]) -> InstitutionPage
async def autocomplete_institutions(
- query: str, page: int = 0, size: int = 10, source: Optional[List[str]] = None
+ query: str, page: int = 0, size: int = 10, source: list[str] | None = None
) -> InstitutionPageV2:
"""Autocompletes institutions based on a search term.
diff --git a/service/src/main/inse/integrations/elasticsearch.py b/service/src/main/inse/integrations/elasticsearch.py
index 4193f55b..0ad63956 100644
--- a/service/src/main/inse/integrations/elasticsearch.py
+++ b/service/src/main/inse/integrations/elasticsearch.py
@@ -1,21 +1,24 @@
import json
import logging
-from typing import Any, Dict, AsyncIterator, List, Optional, Tuple
+import time
+from collections.abc import AsyncIterator
+from typing import Any
import httpx
from inse.exceptions import (
+ ElasticsearchConnectionException,
ElasticsearchException,
ElasticsearchNotFoundException,
- ElasticsearchConnectionException,
MissingApiKeyError,
)
from inse.model import ESCluster, ESIndex
+
from .. import config
logger = logging.getLogger(__name__)
-_client: Optional[httpx.AsyncClient] = None
+_client: httpx.AsyncClient | None = None
_loop = None
@@ -34,7 +37,7 @@ def get_client() -> httpx.AsyncClient:
return _client
-def _cluster_credentials(cluster: ESCluster) -> Tuple[str, str]:
+def _cluster_credentials(cluster: ESCluster) -> tuple[str, str]:
"""Retrieves the Elasticsearch URL and API key for the specified cluster from the configuration.
Args:
@@ -74,7 +77,7 @@ def _cluster_credentials(cluster: ESCluster) -> Tuple[str, str]:
raise ValueError(f"Unknown cluster: {cluster!r} (allowed: 'nes', 'inse')")
-def _index_to_cluster(index: ESIndex) -> Optional[ESCluster]:
+def _index_to_cluster(index: ESIndex) -> ESCluster | None:
"""Determines the Elasticsearch cluster to use based on the specified index.
Args:
@@ -101,12 +104,19 @@ def _index_to_cluster(index: ESIndex) -> Optional[ESCluster]:
ESIndex.CORDIS_EU_PUBLICATIONS_WILDCARD,
ESIndex.PROJECTS_BUND_V1,
ESIndex.DFG_PROJECTS,
+ ESIndex.DFG_PROJECTS_V2,
+ ESIndex.DFG_INSTITUTES_V2,
+ ESIndex.PROJECTS_DFG_OPENALEX_TOPICS,
}:
return ESCluster.INSE
else:
return None
+def _headers(api_key: str, content_type: str = "application/json") -> dict[str, str]:
+ return {"Authorization": f"ApiKey {api_key}", "Content-Type": content_type}
+
+
def _wrap_exception(e: Exception) -> Exception:
logger.exception(f"Elasticsearch raised an exception: {e}")
if isinstance(e, httpx.HTTPStatusError):
@@ -122,19 +132,76 @@ def _wrap_exception(e: Exception) -> Exception:
return ElasticsearchException(f"Unexpected Elasticsearch error: {e}")
+async def _request(
+ method: str,
+ cluster: ESCluster,
+ path: str,
+ *,
+ json_body: Any | None = None,
+ params: dict[str, Any] | None = None,
+ content: bytes | None = None,
+ content_type: str = "application/json",
+) -> httpx.Response:
+ """Sends an authenticated request to cluster and returns the raw response.
+
+ Args:
+ method: The HTTP method (e.g. "GET", "POST", "PUT", "DELETE").
+ cluster: The Elasticsearch cluster to send the request to.
+ path: The path appended to the cluster URL (without leading slash).
+ json_body: Optional JSON-serialisable request body.
+ params: Optional query parameters.
+ content: Optional raw request body (e.g. ndjson); mutually exclusive with json_body.
+ content_type: The Content-Type header value.
+
+ Returns:
+ httpx.Response: The successful response (status already checked).
+ """
+
+ elasticsearch_url, api_key = _cluster_credentials(cluster)
+ client = get_client()
+
+ start = time.perf_counter()
+ try:
+ response = await client.request(
+ method,
+ f"{elasticsearch_url}/{path}",
+ json=json_body,
+ params=params,
+ content=content,
+ headers=_headers(api_key, content_type=content_type),
+ )
+
+ response.raise_for_status()
+
+ if config.settings.print_es_timings:
+ elapsed_ms = (time.perf_counter() - start) * 1000
+ logger.debug(
+ f"Elasticsearch request {method} {path} on cluster '{cluster}' took {elapsed_ms:.1f} ms"
+ )
+
+ return response
+ except Exception as exc:
+ if config.settings.print_es_timings:
+ elapsed_ms = (time.perf_counter() - start) * 1000
+ logger.debug(
+ f"Elasticsearch request {method} {path} on cluster '{cluster}' failed after {elapsed_ms:.1f} ms"
+ )
+ raise _wrap_exception(exc) from exc
+
+
async def search(
- index: ESIndex | List[ESIndex] | str | List[str],
- query: Optional[Dict] = None,
- source: Optional[List] = None,
- size: Optional[int] = None,
- offset: Optional[int] = None,
- sort: Optional[List] = None,
- aggs: Optional[Dict] = None,
- body: Optional[Dict] = None,
+ index: ESIndex | list[ESIndex] | str | list[str],
+ query: dict | None = None,
+ source: list | None = None,
+ size: int | None = None,
+ offset: int | None = None,
+ sort: list | None = None,
+ aggs: dict | None = None,
+ body: dict | None = None,
track_total_hits=False,
- highlight: Optional[Dict] = None,
+ highlight: dict | None = None,
cluster: ESCluster = ESCluster.NES,
-) -> Dict[str, Any]:
+) -> dict[str, Any]:
"""Searches the specified Elasticsearch index using either a simple query string or a full query body.
Args:
@@ -172,19 +239,19 @@ async def search(
elif len(clusters) == 1:
cluster = clusters.pop()
- elasticsearch_url, api_key = _cluster_credentials(cluster)
-
- headers = {"Authorization": f"ApiKey {api_key}", "Content-Type": "application/json"}
-
- payload: Dict[str, Any] = {}
+ payload: dict[str, Any] = {}
if body is not None:
payload = body
+ if payload.get("size") == 0 and "_source" not in payload:
+ payload["_source"] = False
else:
if query is not None:
payload["query"] = query
if source is not None:
payload["_source"] = source
+ elif size == 0:
+ payload["_source"] = False
if size is not None:
payload["size"] = size
if offset is not None:
@@ -203,104 +270,65 @@ async def search(
"At least one of 'query', 'body', 'source', 'size', 'offset', 'sort', 'aggs' must be provided"
)
- client = get_client()
- logger.debug(
- f"Sending search request to Elasticsearch cluster '{cluster}' at {elasticsearch_url} for {index} with payload: {json.dumps(payload)}"
- )
+ if config.settings.print_es_queries:
+ logger.debug(
+ f"Sending search request to Elasticsearch cluster '{cluster}' for {index} with payload: {json.dumps(payload)}"
+ )
+
if isinstance(index, list):
index_str = ",".join(str(idx) for idx in index)
else:
index_str = str(index)
- try:
- response = await client.post(
- f"{elasticsearch_url}/{index_str}/_search", json=payload, headers=headers
- )
- response.raise_for_status()
- return response.json()
- except Exception as exc:
- raise _wrap_exception(exc) from exc
+ response = await _request("POST", cluster, f"{index_str}/_search", json_body=payload)
+
+ return response.json()
async def open_point_in_time(
index: str, keep_alive: str = "1m", cluster: str = "nes"
) -> str:
"""Opens a point-in-time on the given index and returns its id."""
- elasticsearch_url, api_key = _cluster_credentials(cluster)
- headers = {"Authorization": f"ApiKey {api_key}", "Content-Type": "application/json"}
+ response = await _request("POST", cluster, f"{index}/_pit", params={"keep_alive": keep_alive})
- client = get_client()
- try:
- response = await client.post(
- f"{elasticsearch_url}/{index}/_pit",
- params={"keep_alive": keep_alive},
- headers=headers,
- )
- response.raise_for_status()
- return response.json()["id"]
- except Exception as exc:
- raise _wrap_exception(exc) from exc
+ return response.json()["id"]
async def close_point_in_time(pit_id: str, cluster: str = "nes") -> None:
"""Closes a previously opened point-in-time."""
- elasticsearch_url, api_key = _cluster_credentials(cluster)
- headers = {"Authorization": f"ApiKey {api_key}", "Content-Type": "application/json"}
- client = get_client()
- try:
- response = await client.request(
- "DELETE",
- f"{elasticsearch_url}/_pit",
- json={"id": pit_id},
- headers=headers,
- )
- response.raise_for_status()
- except Exception as exc:
- raise _wrap_exception(exc) from exc
+ await _request("DELETE", cluster, "_pit", json_body={"id": pit_id})
async def scan(
index: str,
- query: Dict,
- source: Optional[List] = None,
+ query: dict,
+ source: list | None = None,
page_size: int = 1000,
keep_alive: str = "1m",
cluster: str = "nes",
-) -> AsyncIterator[Dict[str, Any]]:
+) -> AsyncIterator[dict[str, Any]]:
"""Yields every hit matching ``query`` using a point-in-time + ``search_after``.
Unlike ``from``/``size`` pagination, this is not bounded by
``index.max_result_window``, so it can stream result sets larger than 10k.
"""
- elasticsearch_url, api_key = _cluster_credentials(cluster)
- headers = {"Authorization": f"ApiKey {api_key}", "Content-Type": "application/json"}
-
pit_id = await open_point_in_time(index, keep_alive=keep_alive, cluster=cluster)
- search_after: Optional[List] = None
+ search_after: list | None = None
try:
- client = get_client()
while True:
- payload: Dict[str, Any] = {
+ payload: dict[str, Any] = {
"size": page_size,
"query": query,
"pit": {"id": pit_id, "keep_alive": keep_alive},
"sort": [{"_shard_doc": "asc"}],
"track_total_hits": False,
+ "_source": source if source is not None else False,
}
- if source is not None:
- payload["_source"] = source
if search_after is not None:
payload["search_after"] = search_after
- try:
- response = await client.post(
- f"{elasticsearch_url}/_search", json=payload, headers=headers
- )
- response.raise_for_status()
- except Exception as exc:
- raise _wrap_exception(exc) from exc
-
+ response = await _request("POST", cluster, "_search", json_body=payload)
result = response.json()
hits = result.get("hits", {}).get("hits", [])
@@ -325,71 +353,130 @@ async def scan(
async def get(
index: ESIndex | str,
doc_id: str,
- source: Optional[list] = None,
+ source: list | None = None,
cluster: ESCluster = ESCluster.NES,
) -> dict[str, Any]:
if isinstance(index, ESIndex):
cluster = _index_to_cluster(index) or cluster
- elasticsearch_url, api_key = _cluster_credentials(cluster)
-
- headers = {"Authorization": f"ApiKey {api_key}", "Content-Type": "application/json"}
-
params = {}
if source is not None:
params["_source_includes"] = ",".join(source)
- client = get_client()
- try:
- response = await client.get(
- f"{elasticsearch_url}/{index}/_doc/{doc_id}", params=params, headers=headers
- )
- response.raise_for_status()
- return response.json()
- except Exception as exc:
- raise _wrap_exception(exc) from exc
+ response = await _request("GET", cluster, f"{index}/_doc/{doc_id}", params=params)
+
+ return response.json()
async def update(
index: str,
doc_id: str,
- doc: Dict[str, Any],
+ doc: dict[str, Any],
cluster: ESCluster = ESCluster.NES,
-) -> Dict[str, Any]:
- elasticsearch_url, api_key = _cluster_credentials(cluster)
- headers = {"Authorization": f"ApiKey {api_key}", "Content-Type": "application/json"}
+) -> dict[str, Any]:
+ response = await _request(
+ "POST", cluster, f"{index}/_update/{doc_id}", json_body={"doc": doc}
+ )
- client = get_client()
- try:
- response = await client.post(
- f"{elasticsearch_url}/{index}/_update/{doc_id}",
- json={"doc": doc},
- headers=headers,
- )
- response.raise_for_status()
- return response.json()
- except Exception as exc:
- raise _wrap_exception(exc) from exc
+ return response.json()
async def index_doc(
index: str,
doc_id: str,
- document: Dict[str, Any],
+ document: dict[str, Any],
cluster: ESCluster = ESCluster.NES,
-) -> Dict[str, Any]:
- elasticsearch_url, api_key = _cluster_credentials(cluster)
- headers = {"Authorization": f"ApiKey {api_key}", "Content-Type": "application/json"}
+) -> dict[str, Any]:
+ response = await _request(
+ "PUT", cluster, f"{index}/_doc/{doc_id}", json_body=document
+ )
+
+ return response.json()
+
+
+async def count(
+ index: ESIndex | list[ESIndex] | str | list[str],
+ query: dict[str, Any] | None = None,
+ cluster: ESCluster = ESCluster.NES,
+) -> int:
+ """Performs a count request (_count) on the specified Elasticsearch index.
+
+ Args:
+ index: The index or list of indices to count.
+ query: Optional query body to filter documents.
+ cluster: The Elasticsearch cluster to query.
+
+ Returns:
+ int: The number of matching documents.
+ """
+ clusters = set()
+ if isinstance(index, list):
+ for idx in index:
+ if isinstance(idx, ESIndex):
+ c = _index_to_cluster(idx)
+ if c is not None:
+ clusters.add(c)
+ elif isinstance(index, ESIndex):
+ c = _index_to_cluster(index)
+ if c is not None:
+ clusters.add(c)
+
+ if len(clusters) == 1:
+ cluster = clusters.pop()
+
+ if isinstance(index, list):
+ index_str = ",".join(str(idx) for idx in index)
+ else:
+ index_str = str(index)
+
+ payload = {"query": query} if query else {}
+ response = await _request("POST", cluster, f"{index_str}/_count", json_body=payload)
+
+ return response.json().get("count", 0)
+
+
+async def msearch(
+ searches: list[tuple[ESIndex | str | list[str], dict[str, Any]]],
+ cluster: ESCluster = ESCluster.NES,
+) -> list[dict[str, Any]]:
+ """Performs a multi-search request (_msearch) on Elasticsearch.
+
+ Args:
+ searches: A list of tuples, each containing (index, payload_dict).
+ cluster: The Elasticsearch cluster to execute searches on.
+
+ Returns:
+ List[Dict[str, Any]]: List of response dictionaries for each search in order.
+ """
+ if not searches:
+ return []
+
+ first_idx = searches[0][0]
+ if isinstance(first_idx, ESIndex):
+ c = _index_to_cluster(first_idx)
+ if c is not None:
+ cluster = c
+
+ lines = []
+ for idx, body in searches:
+ if isinstance(idx, list):
+ idx_str = ",".join(str(i) for i in idx)
+ else:
+ idx_str = str(idx)
+ header_obj = {"index": idx_str}
+ lines.append(json.dumps(header_obj))
+ lines.append(json.dumps(body))
+
+ ndjson_payload = "\n".join(lines) + "\n"
+
+ response = await _request(
+ "POST",
+ cluster,
+ "_msearch",
+ content=ndjson_payload.encode("utf-8"),
+ content_type="application/x-ndjson",
+ )
+
+ return response.json().get("responses", [])
- client = get_client()
- try:
- response = await client.put(
- f"{elasticsearch_url}/{index}/_doc/{doc_id}",
- json=document,
- headers=headers,
- )
- response.raise_for_status()
- return response.json()
- except Exception as exc:
- raise _wrap_exception(exc) from exc
diff --git a/service/src/main/inse/integrations/llm.py b/service/src/main/inse/integrations/llm.py
index 101ce92c..7860ad8a 100644
--- a/service/src/main/inse/integrations/llm.py
+++ b/service/src/main/inse/integrations/llm.py
@@ -1,8 +1,11 @@
-from openai import APIConnectionError
-from openai import AsyncOpenAI
-from .. import config
-from typing import Optional, Dict, Any
import asyncio
+from typing import Any
+
+from openai import APIConnectionError, AsyncOpenAI
+
+from .. import config
+
+
async def call(
system_prompt: str,
user_prompt: str,
@@ -45,7 +48,7 @@ async def call(
"Etwas ist schiefgelaufen. Bitte versuche es erneut."
)
-def _get_response_format(schema, schema_name: Optional[str] = None) -> Dict[str, Any]:
+def _get_response_format(schema, schema_name: str | None = None) -> dict[str, Any]:
response_format = {
"type": "json_schema",
"json_schema": {
diff --git a/service/src/main/inse/keywords/extract_text.py b/service/src/main/inse/keywords/extract_text.py
index b96a4d6b..92735312 100644
--- a/service/src/main/inse/keywords/extract_text.py
+++ b/service/src/main/inse/keywords/extract_text.py
@@ -1,10 +1,10 @@
# inse/keywords/file_extraction.py
import base64
-import logging
-import httpx
-from bs4 import BeautifulSoup
+
# import fitz
import io
+import logging
+
from pypdf import PdfReader
from pypdf.errors import PdfReadError
diff --git a/service/src/main/inse/keywords/logic.py b/service/src/main/inse/keywords/logic.py
index b2bdcb2e..f4fbcf32 100644
--- a/service/src/main/inse/keywords/logic.py
+++ b/service/src/main/inse/keywords/logic.py
@@ -1,39 +1,40 @@
-#!/usr/bin/env python
-# -*- coding: utf-8 -*-
+
"""
Business logic for persons / authors.
"""
import asyncio
-from typing import Any, Dict, List
-
-import partial_json_parser
import json
import logging
import time
+from collections.abc import Awaitable, Callable
+from typing import Any
+
import httpx
+import partial_json_parser
from bs4 import BeautifulSoup
from pydantic import ValidationError
-from typing import Awaitable, Callable
-from inse.keywords.prompts import KeywordsPrompt
+
from inse.integrations import llm
+from inse.keywords.extract_text import extract_text_from_upload
from inse.keywords.model import (
ExtractedKeywords,
ExtractedKeywordsLLM,
ExtractedKeywordsResponse,
+ FileUpload,
KeywordEntry,
KeywordEntryWithTopic,
KeywordsWsEvent,
- FileUpload,
)
-from inse.keywords.extract_text import extract_text_from_upload
+from inse.keywords.prompts import KeywordsPrompt
from inse.topics.logic import vector_search_topics_batch
+
logger = logging.getLogger(__name__)
EventCallback = Callable[[dict], Awaitable[None]]
LEVELS = ("broad_keywords", "coarse_grained", "fine_grained")
def _build_enriched_snapshot(
- confirmed: Dict[str, List[KeywordEntryWithTopic]],
+ confirmed: dict[str, list[KeywordEntryWithTopic]],
) -> ExtractedKeywords:
return ExtractedKeywords.model_validate(
{level: [item.model_dump() for item in confirmed.get(level, [])] for level in LEVELS}
@@ -41,13 +42,13 @@ def _build_enriched_snapshot(
async def _enrich_llm_keywords(results: ExtractedKeywordsLLM) -> ExtractedKeywords:
- confirmed: Dict[str, List[KeywordEntryWithTopic]] = {
+ confirmed: dict[str, list[KeywordEntryWithTopic]] = {
level: [KeywordEntryWithTopic(llm_keyword=item) for item in getattr(results, level)]
for level in LEVELS
}
- keywords: List[str] = []
- positions: List[tuple[str, int]] = []
+ keywords: list[str] = []
+ positions: list[tuple[str, int]] = []
for level in LEVELS:
for idx, entry in enumerate(getattr(results, level)):
keywords.append(entry.keyword)
@@ -74,7 +75,7 @@ async def extract_keywords(query: str, mode: str, limit: int) -> ExtractedKeywor
text = query
- user_prompt = f"""
+ user_prompt = """
Now analyze the following text and return ONLY the JSON object.\n"""
if limit:
@@ -105,15 +106,15 @@ async def extract_keywords_stream_enriched(
mode: str,
limit: int,
emit: EventCallback,
- files: List[FileUpload] | None = None,
+ files: list[FileUpload] | None = None,
) -> ExtractedKeywordsResponse:
start_time = time.time()
timeout_seconds = 120
await emit(KeywordsWsEvent(type="status", step="started", message="Starte Keyword-Extraktion").model_dump())
LEVELS = ("broad_keywords", "coarse_grained", "fine_grained")
- confirmed: Dict[str, List[KeywordEntryWithTopic]] = {level: [] for level in LEVELS}
- enrichment_tasks: List[asyncio.Task] = []
+ confirmed: dict[str, list[KeywordEntryWithTopic]] = {level: [] for level in LEVELS}
+ enrichment_tasks: list[asyncio.Task] = []
async def emit_full_results() -> None:
try:
@@ -136,7 +137,7 @@ async def extract_keywords_stream_enriched(
logger.error(f"Error fetching OpenAlex topic for keyword '{item.keyword}': {e}")
await emit_full_results()
- def make_on_chunk(base_offset: Dict[str, int]):
+ def make_on_chunk(base_offset: dict[str, int]):
"""
Builds an on_chunk callback for a single streaming LLM call.
@@ -147,7 +148,7 @@ async def extract_keywords_stream_enriched(
(one per file).
"""
- async def on_chunk(event: Dict[str, Any]) -> None:
+ async def on_chunk(event: dict[str, Any]) -> None:
if event["type"] != "llm_chunk":
await emit(event)
return
@@ -206,7 +207,7 @@ async def extract_keywords_stream_enriched(
on_chunk = make_on_chunk(base_offset)
full_content_holder = {"value": ""}
- async def emit_wrapper(event: Dict[str, Any]) -> None:
+ async def emit_wrapper(event: dict[str, Any]) -> None:
if event["type"] == "llm_chunk":
full_content_holder["value"] += event["content"]
event = {**event, "_full_content": full_content_holder["value"]}
@@ -232,7 +233,7 @@ async def extract_keywords_stream_enriched(
),
timeout=timeout_seconds,
)
- except asyncio.TimeoutError:
+ except TimeoutError:
await emit(KeywordsWsEvent(type="error", message=f"LLM call timed out after {timeout_seconds}s{suffix}").model_dump())
raise RuntimeError(f"LLM streaming call timed out{suffix}")
except asyncio.CancelledError:
@@ -278,8 +279,8 @@ async def extract_keywords_stream_enriched(
).model_dump()
)
- file_texts: List[str] = []
- failed_files: List[str] = []
+ file_texts: list[str] = []
+ failed_files: list[str] = []
for i, f in enumerate(provided_files, start=1):
text = await asyncio.to_thread(
diff --git a/service/src/main/inse/keywords/model.py b/service/src/main/inse/keywords/model.py
index f8607a7a..8c55af2b 100644
--- a/service/src/main/inse/keywords/model.py
+++ b/service/src/main/inse/keywords/model.py
@@ -1,14 +1,13 @@
-#!/usr/bin/env python
-# -*- coding: utf-8 -*-
+
"""
Data models for persons / authors.
"""
-from typing import List, Literal
from pydantic import BaseModel, Field
from inse.topics.model import KeywordTopicMatch
+
class FileUpload(BaseModel):
filename: str = Field(description="The name of the uploaded file.")
content_base64: str = Field(description="The base64-encoded content of the uploaded file.")
@@ -36,14 +35,14 @@ class KeywordEntryWithTopic(BaseModel):
)
class ExtractedKeywords(BaseModel):
- broad_keywords: List[KeywordEntryWithTopic] = Field(description="The extracted broad keywords from text.")
- coarse_grained: List[KeywordEntryWithTopic] = Field(description="The extracted coarse-grained keywords from text.")
- fine_grained: List[KeywordEntryWithTopic] = Field(description="The extracted fine-grained keywords from text.")
+ broad_keywords: list[KeywordEntryWithTopic] = Field(description="The extracted broad keywords from text.")
+ coarse_grained: list[KeywordEntryWithTopic] = Field(description="The extracted coarse-grained keywords from text.")
+ fine_grained: list[KeywordEntryWithTopic] = Field(description="The extracted fine-grained keywords from text.")
class ExtractedKeywordsLLM(BaseModel):
- broad_keywords: List[KeywordEntry] = Field(description="The extracted broad keywords from text.")
- coarse_grained: List[KeywordEntry] = Field(description="The extracted coarse-grained keywords from text.")
- fine_grained: List[KeywordEntry] = Field(description="The extracted fine-grained keywords from text.")
+ broad_keywords: list[KeywordEntry] = Field(description="The extracted broad keywords from text.")
+ coarse_grained: list[KeywordEntry] = Field(description="The extracted coarse-grained keywords from text.")
+ fine_grained: list[KeywordEntry] = Field(description="The extracted fine-grained keywords from text.")
class ExtractedKeywordsResponse(BaseModel):
results_llm: ExtractedKeywordsLLM | None = None
diff --git a/service/src/main/inse/keywords/prompts.py b/service/src/main/inse/keywords/prompts.py
index adcf9a08..02c08117 100644
--- a/service/src/main/inse/keywords/prompts.py
+++ b/service/src/main/inse/keywords/prompts.py
@@ -1,4 +1,6 @@
from enum import StrEnum
+
+
class KeywordsPrompt(StrEnum):
EXTRACT_KEYWORDS_TEXT_PROMPT = """You are an expert scientific, technical, and innovation intelligence analyst.
diff --git a/service/src/main/inse/keywords/service.py b/service/src/main/inse/keywords/service.py
index 0b46fbc3..8f1e03a2 100644
--- a/service/src/main/inse/keywords/service.py
+++ b/service/src/main/inse/keywords/service.py
@@ -1,18 +1,18 @@
-#!/usr/bin/env python
-# -*- coding: utf-8 -*-
+
"""
REST API for persons / authors.
"""
import asyncio
+import logging
from typing import Annotated
from fastapi import APIRouter, Body, WebSocket, WebSocketDisconnect
from uvicorn.protocols.utils import ClientDisconnected
-from . import logic
from inse.keywords.model import ExtractedKeywordsResponse, KeywordsRequest
-import logging
+
+from . import logic
logger = logging.getLogger(__name__)
diff --git a/service/src/main/inse/logic.py b/service/src/main/inse/logic.py
index dbe24899..311ac9f2 100644
--- a/service/src/main/inse/logic.py
+++ b/service/src/main/inse/logic.py
@@ -1,23 +1,17 @@
-#!/usr/bin/env python
-# -*- coding: utf-8 -*-
+
"""
This module defines the business logic for our
web service.
"""
-from typing import List
-import logging
import json
+import logging
-from . import config
from inse.integrations import elasticsearch
-
-
from inse.models.openalex.topic import Topic
-from inse.models.openalex.topic_subfield import TopicSubfield
-from inse.models.openalex.topic_field import TopicField
from inse.models.openalex.topic_domain import TopicDomain
-
+from inse.models.openalex.topic_field import TopicField
+from inse.models.openalex.topic_subfield import TopicSubfield
logger = logging.getLogger(__name__)
@@ -91,7 +85,7 @@ async def build_topic_cache(save_json: bool = True) -> dict:
return taxonomy_cache
-def get_topics_from_cache(topic_names: List[str]) -> List[Topic]:
+def get_topics_from_cache(topic_names: list[str]) -> list[Topic]:
"""
Given a list of topic names, retrieves their hierarchy information from the cache and returns a list of Topic models.
Arguments:
@@ -123,7 +117,7 @@ def get_topics_from_cache(topic_names: List[str]) -> List[Topic]:
return topics
-def count_topic_hierarchy(topic_names: List[str]) -> dict:
+def count_topic_hierarchy(topic_names: list[str]) -> dict:
"""
Given a list of topic names, counts the occurrences of each topic and their hierarchy levels (subfield, field, domain) using the cache.
Arguments:
diff --git a/service/src/main/inse/main.py b/service/src/main/inse/main.py
index 65f076d7..c25144ab 100644
--- a/service/src/main/inse/main.py
+++ b/service/src/main/inse/main.py
@@ -1,68 +1,70 @@
-#!/usr/bin/env python
-# -*- coding: utf-8 -*-
+
"""
This module contains the bootstrapping code
for fastapi that loads the service and the
webapp.
"""
-from contextlib import asynccontextmanager, contextmanager
+import asyncio
import logging
+from contextlib import asynccontextmanager, contextmanager
from fastapi import FastAPI, Request
from fastapi.middleware.cors import CORSMiddleware
from fastapi.responses import JSONResponse, RedirectResponse
-from inse.collaboration_network.router import router as collaboration_network_router
+from inse.account_management.router import router as account_management_router
+from inse.auth.router import router as auth_router
+from inse.auth.service import create_predefined_accounts
+from inse.authors.v2.router import router as authors_v2_router
+from inse.background_jobs.router import router as background_jobs_router
+from inse.background_jobs.runner import scheduler_loop as background_jobs_scheduler_loop
+from inse.bookmarks.router import router as bookmarks_router
from inse.company_connections.service import router as company_connections_router
+from inse.dashboard.router import router as dashboard_router
+from inse.database import create_db_and_tables, get_session
from inse.exceptions import (
- NotFoundException,
+ BadRequestException,
ElasticsearchException,
MissingApiKeyError,
+ NotFoundException,
UpstreamAPIException,
- BadRequestException,
)
from inse.funders.service import router as funders_service_router
-from inse.projects.router import router as projects_router
-from inse.ranking.router import router as ranking_router
-from inse.university_ranking.service import router as university_ranking_router
+from inse.institutions.router import router as institutions_router
+from inse.institutions.v2.router import router as institutions_v2_router
from inse.keywords.service import router as keywords_service_router
-from inse.patents.keywords.service import router as keywords_patents_router
# caching
from inse.middleware.etag_cache import ETagCacheMiddleware
-from inse.persons.service import router as persons_service_router
-from inse.topics.service import router as topics_service_router
-from inse.works.service import router as works_service_router
from inse.news.service import router as news_service_router
-from inse.auth.router import router as auth_router
-from inse.account_management.router import router as account_management_router
from inse.organization_management.router import router as organization_management_router
-from inse.dashboard.router import router as dashboard_router
-from inse.bookmarks.router import router as bookmarks_router
-
-from inse.institutions.router import router as institutions_router
-from inse.database import create_db_and_tables, get_session
-from inse.auth.service import create_predefined_accounts
-from . import config
-
-from .service import router as service_router
+from inse.patents.keywords.service import router as keywords_patents_router
from inse.patents.org.service import router as org_patents_router
from inse.patents.service import (
institution_patents_router,
+)
+from inse.patents.service import (
patents_router as patents_all_router,
+)
+from inse.patents.service import (
router as patents_service_router,
)
-
-from inse.works.v2.router import router as works_v2_router
-from inse.authors.v2.router import router as authors_v2_router
-from inse.institutions.v2.router import router as institutions_v2_router
-from inse.topics.v2.router import router as topics_v2_router
-
+from inse.persons.service import router as persons_service_router
+from inse.projects.bund_institutions.router import router as bund_institutions_router
from inse.projects.dfg_institutions.router import router as dfg_institutions_router
from inse.projects.dfg_persons.router import router as dfg_persons_router
-
from inse.projects.eu_organizations.router import router as eu_organizations_router
+from inse.projects.router import router as projects_router
+from inse.ranking.router import router as ranking_router
+from inse.topics.service import router as topics_service_router
+from inse.topics.v2.router import router as topics_v2_router
+from inse.university_ranking.service import router as university_ranking_router
+from inse.works.service import router as works_service_router
+from inse.works.v2.router import router as works_v2_router
+
+from . import config
+from .service import router as service_router
logger = logging.getLogger(__name__)
@@ -77,7 +79,17 @@ async def lifespan(app: FastAPI):
create_db_and_tables()
with contextmanager(get_session)() as session:
create_predefined_accounts(session, "../data/predefined_accounts.json")
+
+ background_jobs_scheduler_task = None
+ if settings.background_jobs_scheduler_enabled:
+ background_jobs_scheduler_task = asyncio.create_task(
+ background_jobs_scheduler_loop()
+ )
+
yield
+
+ if background_jobs_scheduler_task is not None:
+ background_jobs_scheduler_task.cancel()
logger.info("Shutting down the application...")
@@ -89,10 +101,10 @@ app = FastAPI(
servers=settings.servers,
lifespan=lifespan,
)
-app.include_router(collaboration_network_router)
app.include_router(institution_patents_router)
app.include_router(org_patents_router)
app.include_router(institutions_router)
+app.include_router(bund_institutions_router)
app.include_router(topics_service_router)
app.include_router(works_service_router)
app.include_router(persons_service_router)
@@ -122,11 +134,12 @@ app.include_router(dashboard_router)
app.include_router(dfg_institutions_router)
app.include_router(dfg_persons_router)
app.include_router(bookmarks_router)
+app.include_router(background_jobs_router)
app.include_router(eu_organizations_router)
app.add_middleware(
ETagCacheMiddleware,
- ttl=120, # 2 minutes expiration time
+ ttl=600, # 10 minutes expiration time
)
app.add_middleware(
CORSMiddleware,
diff --git a/service/src/main/inse/middleware/etag_cache.py b/service/src/main/inse/middleware/etag_cache.py
index 47076a63..c19403b5 100644
--- a/service/src/main/inse/middleware/etag_cache.py
+++ b/service/src/main/inse/middleware/etag_cache.py
@@ -8,23 +8,23 @@ from starlette.middleware.base import BaseHTTPMiddleware
from starlette.requests import Request
from starlette.responses import Response
-# Responses whose contents depend on the current account or effective
-# organization must never be reused by the browser.
-NO_STORE_PATH_PREFIXES = (
- "/api/auth/v2",
- "/api/accounts",
- "/api/bookmarks",
- "/api/organizations",
- "/api/dashboard",
- "/api/rank/rank-author",
- "/api/v2/works/classification/",
-)
-
-NO_STORE_PATH_FRAGMENTS = (
- "/company-connections",
- "/primary-category-aggregations",
-)
-
+# Responses whose contents depend on the current account or effective
+# organization must never be reused by the browser.
+NO_STORE_PATH_PREFIXES = (
+ "/api/auth/v2",
+ "/api/accounts",
+ "/api/background-jobs",
+ "/api/bookmarks",
+ "/api/organizations",
+ "/api/rank/orientation-profiles",
+ "/api/works/v2/classification/",
+)
+
+NO_STORE_PATH_FRAGMENTS = (
+ "/company-connections",
+ "/primary-category-aggregations",
+ "/collaboration-graph/",
+)
# POST is opt-out. Add any endpoint here that MUTATES state (create/update/delete/
# trigger side effects), even if it "usually" returns 200.
EXCLUDED_POST_PATHS = (
@@ -41,7 +41,7 @@ class ETagCacheMiddleware(BaseHTTPMiddleware):
self.ttl = ttl
self.maxsize = maxsize
# Insertion-ordered so we can evict the oldest entry in O(1) when over capacity.
- self.cache: "OrderedDict[str, dict]" = OrderedDict()
+ self.cache: OrderedDict[str, dict] = OrderedDict()
def _get(self, key: str) -> dict | None:
entry = self.cache.get(key)
@@ -91,61 +91,61 @@ class ETagCacheMiddleware(BaseHTTPMiddleware):
return f"{user_id}:{base}"
return base
- def _content_type(self, response: Response) -> str | None:
- return response.headers.get("content-type")
-
- def _requires_no_store(self, request: Request) -> bool:
- path = request.url.path
- return path.startswith(NO_STORE_PATH_PREFIXES) or any(
- fragment in path for fragment in NO_STORE_PATH_FRAGMENTS
- )
-
- def _set_no_store_headers(self, response: Response) -> None:
- response.headers["Cache-Control"] = "private, no-store, max-age=0"
- response.headers["Pragma"] = "no-cache"
- response.headers["Expires"] = "0"
- self._append_vary_authorization(response.headers)
-
- @staticmethod
- def _append_vary_authorization(headers) -> None:
- vary_values = [
- value.strip()
- for value in headers.get("Vary", "").split(",")
- if value.strip()
- ]
- if not any(value.lower() == "authorization" for value in vary_values):
- vary_values.append("Authorization")
- headers["Vary"] = ", ".join(vary_values)
-
- def _cache_response_headers(
- self, request: Request, etag: str, content_type: str | None
- ) -> dict[str, str]:
- cache_control = f"max-age={self.ttl}"
- headers = {"ETag": etag, "Cache-Control": cache_control}
- if request.headers.get("authorization"):
- headers["Cache-Control"] = f"private, {cache_control}"
- headers["Vary"] = "Authorization"
- if content_type:
- headers["Content-Type"] = content_type
- return headers
-
- def _is_cacheable_request(self, request: Request) -> bool:
- if self._requires_no_store(request):
- return False
+ def _content_type(self, response: Response) -> str | None:
+ return response.headers.get("content-type")
+
+ def _requires_no_store(self, request: Request) -> bool:
+ path = request.url.path
+ return path.startswith(NO_STORE_PATH_PREFIXES) or any(
+ fragment in path for fragment in NO_STORE_PATH_FRAGMENTS
+ )
+
+ def _set_no_store_headers(self, response: Response) -> None:
+ response.headers["Cache-Control"] = "private, no-store, max-age=0"
+ response.headers["Pragma"] = "no-cache"
+ response.headers["Expires"] = "0"
+ self._append_vary_authorization(response.headers)
+
+ @staticmethod
+ def _append_vary_authorization(headers) -> None:
+ vary_values = [
+ value.strip()
+ for value in headers.get("Vary", "").split(",")
+ if value.strip()
+ ]
+ if not any(value.lower() == "authorization" for value in vary_values):
+ vary_values.append("Authorization")
+ headers["Vary"] = ", ".join(vary_values)
+
+ def _cache_response_headers(
+ self, request: Request, etag: str, content_type: str | None
+ ) -> dict[str, str]:
+ cache_control = f"max-age={self.ttl}"
+ headers = {"ETag": etag, "Cache-Control": cache_control}
+ if request.headers.get("authorization"):
+ headers["Cache-Control"] = f"private, {cache_control}"
+ headers["Vary"] = "Authorization"
+ if content_type:
+ headers["Content-Type"] = content_type
+ return headers
+
+ def _is_cacheable_request(self, request: Request) -> bool:
+ if self._requires_no_store(request):
+ return False
if request.method == "GET":
return True
if request.method == "POST":
return not request.url.path.startswith(EXCLUDED_POST_PATHS)
return False
- async def dispatch(self, request: Request, call_next):
- if self._requires_no_store(request):
- response = await call_next(request)
- self._set_no_store_headers(response)
- return response
-
- if not self._is_cacheable_request(request):
- return await call_next(request)
+ async def dispatch(self, request: Request, call_next):
+ if self._requires_no_store(request):
+ response = await call_next(request)
+ self._set_no_store_headers(response)
+ return response
+
+ if not self._is_cacheable_request(request):
+ return await call_next(request)
body_bytes = b""
if request.method == "POST":
@@ -165,21 +165,21 @@ class ETagCacheMiddleware(BaseHTTPMiddleware):
client_etag = request.headers.get("if-none-match")
# Cache hit + not expired
- if entry:
- if client_etag == entry["etag"]:
- headers = self._cache_response_headers(
- request,
- entry["etag"],
- entry.get("content_type"),
- )
- return Response(status_code=304, headers=headers)
-
- headers = self._cache_response_headers(
- request,
- entry["etag"],
- entry.get("content_type"),
- )
- return Response(
+ if entry:
+ if client_etag == entry["etag"]:
+ headers = self._cache_response_headers(
+ request,
+ entry["etag"],
+ entry.get("content_type"),
+ )
+ return Response(status_code=304, headers=headers)
+
+ headers = self._cache_response_headers(
+ request,
+ entry["etag"],
+ entry.get("content_type"),
+ )
+ return Response(
content=entry["body"],
status_code=entry["status_code"],
headers=headers,
@@ -204,9 +204,9 @@ class ETagCacheMiddleware(BaseHTTPMiddleware):
},
)
- headers = self._cache_response_headers(request, etag, content_type)
- return Response(
+ headers = self._cache_response_headers(request, etag, content_type)
+ return Response(
content=body,
status_code=response.status_code,
headers=headers,
- )
+ )
diff --git a/service/src/main/inse/middleware/test_etag_cache.py b/service/src/main/inse/middleware/test_etag_cache.py
new file mode 100644
index 00000000..2ae09207
--- /dev/null
+++ b/service/src/main/inse/middleware/test_etag_cache.py
@@ -0,0 +1,52 @@
+from fastapi import FastAPI
+from fastapi.testclient import TestClient
+from inse.middleware.etag_cache import ETagCacheMiddleware
+
+
+def _app_with_counter():
+ app = FastAPI()
+ calls = {"get": 0, "post": 0}
+
+ @app.get("/api/background-jobs/tasks")
+ def get_tasks():
+ calls["get"] += 1
+ return {"call": calls["get"]}
+
+ @app.post("/api/background-jobs/tasks/4/run")
+ def run_task():
+ calls["post"] += 1
+ return {"call": calls["post"]}
+
+ app.add_middleware(ETagCacheMiddleware, ttl=120)
+ return app, calls
+
+
+def test_background_job_gets_are_never_cached():
+ app, calls = _app_with_counter()
+
+ with TestClient(app) as client:
+ first = client.get("/api/background-jobs/tasks")
+ second = client.get(
+ "/api/background-jobs/tasks",
+ headers={"If-None-Match": first.headers.get("etag", "")},
+ )
+
+ assert first.status_code == 200
+ assert second.status_code == 200
+ assert first.json() == {"call": 1}
+ assert second.json() == {"call": 2}
+ assert calls["get"] == 2
+
+
+def test_background_job_post_side_effects_are_never_replayed_from_cache():
+ app, calls = _app_with_counter()
+
+ with TestClient(app) as client:
+ first = client.post("/api/background-jobs/tasks/4/run")
+ second = client.post("/api/background-jobs/tasks/4/run")
+
+ assert first.status_code == 200
+ assert second.status_code == 200
+ assert first.json() == {"call": 1}
+ assert second.json() == {"call": 2}
+ assert calls["post"] == 2
diff --git a/service/src/main/inse/model.py b/service/src/main/inse/model.py
index 970ec14f..e1f0d3aa 100644
--- a/service/src/main/inse/model.py
+++ b/service/src/main/inse/model.py
@@ -1,5 +1,4 @@
-#!/usr/bin/env python
-# -*- coding: utf-8 -*-
+
"""
This module defines the model classes returned from
our api using pydantic.
@@ -17,12 +16,9 @@ else:
return self.value
-from pydantic import BaseModel
-from pydantic import Field
-from typing import List
-from typing import TypeVar
-from typing import Generic
+from typing import Generic, TypeVar
+from pydantic import BaseModel, Field
T = TypeVar("T", bound=BaseModel)
@@ -30,7 +26,7 @@ T = TypeVar("T", bound=BaseModel)
class Page(BaseModel, Generic[T]):
"""A generic page model that represents a paginated response containing elements of type T."""
- elements: List[T] = Field(default=[], description="The elements of the page.")
+ elements: list[T] = Field(default=[], description="The elements of the page.")
page: int = Field(default=0, description="The page number. (0-based)")
size: int = Field(default=20, description="The page size in elements.")
total: int = Field(default=0, description="The total number of elements.")
@@ -62,6 +58,14 @@ class ESIndex(StrEnum):
ORG_PATENTS = "org_patents"
PROJECTS_BUND_V1 = "projects_bund_v1"
+ DFG_PROJECTS_V2 = "dfg_projects_2.0"
+ DFG_INSTITUTES_V2 = "dfg_institutes_2.0"
+ PROJECTS_DFG_OPENALEX_TOPICS = "projects_dfg_openalex_topics"
+
+ AKTUELLES = "aktuell"
+ AKTUELLES_POSTPROC = "aktuell_postproc"
+ AKTUELLES_OPENALEX_TOPICS = "aktuell_openalex_topics"
+
CORDIS_EU_ORGANIZATIONS_WILDCARD = "cordis_eu_*_organizations"
CORDIS_EU_PROJECTS_WILDCARD = "cordis_eu_*_projects"
diff --git a/service/src/main/inse/models/bund_project.py b/service/src/main/inse/models/bund_project.py
index 6599ed41..5de9413c 100644
--- a/service/src/main/inse/models/bund_project.py
+++ b/service/src/main/inse/models/bund_project.py
@@ -1,10 +1,10 @@
-from datetime import datetime, date
-from typing import Annotated, Optional
+from datetime import date, datetime
+from typing import Annotated
from pydantic import BaseModel, BeforeValidator, ConfigDict, Field
-def parse_german_date(value: Optional[str]) -> Optional[date]:
+def parse_german_date(value: str | None) -> date | None:
if value is None or isinstance(value, date):
return value
@@ -17,98 +17,98 @@ class BundProject(BaseModel):
extra="ignore",
)
- funding_code: Optional[str] = Field(
+ funding_code: str | None = Field(
default=None,
validation_alias="Förderkennzeichen",
description="The funding code of the project",
examples=["19F2266G"],
)
- department: Optional[str] = Field(
+ department: str | None = Field(
default=None,
validation_alias="Ressort",
description="The department of the project",
examples=["BMDV"],
)
- department_fullname: Optional[str] = Field(
+ department_fullname: str | None = Field(
default=None,
validation_alias="Ressort_fullname",
description="The full name of the department of the project",
examples=["Bundesministerium für Digitales und Verkehr"],
)
- referat: Optional[str] = Field(
+ referat: str | None = Field(
default=None,
validation_alias="Referat",
description="The referat of the project",
examples=["DP20"],
)
- project_sponsor: Optional[str] = Field(
+ project_sponsor: str | None = Field(
default=None,
validation_alias="Projektträger",
description="The project sponsor of the project",
examples=["PT-TÜV"],
)
- project_sponsor_fullname: Optional[str] = Field(
+ project_sponsor_fullname: str | None = Field(
default=None,
validation_alias="Projektträger_fullname",
description="The full name of the project sponsor of the project",
examples=["Projektträger TÜV Rheinland"],
)
- work_unit: Optional[str] = Field(
+ work_unit: str | None = Field(
default=None,
validation_alias="Arb.-Einh.",
description="The work unit of the project",
examples=["mFUND"],
)
- recipient: Optional[str] = Field(
+ recipient: str | None = Field(
default=None,
validation_alias="Zuwendungsempfänger",
description="The recipient of the project",
examples=["Universität Duisburg-Essen"],
)
- municipal_code: Optional[str] = Field(
+ municipal_code: str | None = Field(
default=None,
validation_alias="Gemeindekennziffer",
description="The municipal code of the project",
examples=["05113000"],
)
- municipality: Optional[str] = Field(
+ municipality: str | None = Field(
default=None,
validation_alias="Stadt/Gemeinde",
description="The municipality of the project",
examples=["Essen"],
)
- place: Optional[str] = Field(
+ place: str | None = Field(
default=None,
validation_alias="Ort",
description="The place of the project",
examples=["Essen"],
)
- state: Optional[str] = Field(
+ state: str | None = Field(
default=None,
validation_alias="Bundesland",
description="The state of the project",
examples=["Nordrhein-Westfalen"],
)
- country: Optional[str] = Field(
+ country: str | None = Field(
default=None,
validation_alias="Staat",
description="The country of the project",
examples=["Deutschland"],
)
- implementing_agency: Optional[str] = Field(
+ implementing_agency: str | None = Field(
default=None,
validation_alias="Ausführende Stelle",
description="The implementing agency of the project",
@@ -117,7 +117,7 @@ class BundProject(BaseModel):
],
)
- topic: Optional[str] = Field(
+ topic: str | None = Field(
default=None,
validation_alias="Thema",
description="The topic of the project",
@@ -126,14 +126,14 @@ class BundProject(BaseModel):
],
)
- performance_plan_system: Optional[str] = Field(
+ performance_plan_system: str | None = Field(
default=None,
validation_alias="Leistungsplansystematik",
description="The performance plan system of the project",
examples=["GA6011"],
)
- performance_plan_system_text: Optional[str] = Field(
+ performance_plan_system_text: str | None = Field(
default=None,
validation_alias="Klartext Leistungsplansystematik",
description="The performance plan system text of the project",
@@ -141,7 +141,7 @@ class BundProject(BaseModel):
)
funding_start: Annotated[
- Optional[date],
+ date | None,
Field(
default=None,
validation_alias="Förderbeginn",
@@ -152,7 +152,7 @@ class BundProject(BaseModel):
]
funding_end: Annotated[
- Optional[date],
+ date | None,
Field(
default=None,
validation_alias="Förderende",
@@ -162,63 +162,63 @@ class BundProject(BaseModel):
BeforeValidator(parse_german_date),
]
- grant_amount: Optional[float] = Field(
+ grant_amount: float | None = Field(
default=None,
validation_alias="Fördersumme",
description="The grant amount of the project",
examples=[367651.00],
)
- funding_profile: Optional[str] = Field(
+ funding_profile: str | None = Field(
default=None,
validation_alias="Förderprofil",
description="The funding profile of the project",
examples=["Technologie- und Innovationsförderung"],
)
- joint_project: Optional[str] = Field(
+ joint_project: str | None = Field(
default=None,
validation_alias="Verbundprojekt",
description="Whether the project is a joint project",
examples=["Moby_Dex"],
)
- funding_type: Optional[str] = Field(
+ funding_type: str | None = Field(
default=None,
validation_alias="Förderart",
description="The funding type of the project",
examples=["PDIR"],
)
- publication_date: Optional[str] = Field(
+ publication_date: str | None = Field(
default=None,
validation_alias="Publikationsdatum",
description="The publication date of the project",
examples=["2023"],
)
- unix_timestamp: Optional[int] = Field(
+ unix_timestamp: int | None = Field(
default=None,
validation_alias="Unix-Timestamp",
description="The unix timestamp of the project",
examples=[1737411518],
)
- date: Optional[str] = Field(
+ date: str | None = Field(
default=None,
validation_alias="datum",
description="The date of the project",
examples=["20.01.2025"],
)
- new: Optional[bool] = Field(
+ new: bool | None = Field(
default=None,
validation_alias="neu",
description="Whether the project is new",
examples=[False],
)
- duration: Optional[str] = Field(
+ duration: str | None = Field(
default=None,
validation_alias="Laufzeit",
description="The duration of the project",
diff --git a/service/src/main/inse/models/bund_project_details.py b/service/src/main/inse/models/bund_project_details.py
index d7c4baf1..7889f475 100644
--- a/service/src/main/inse/models/bund_project_details.py
+++ b/service/src/main/inse/models/bund_project_details.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
Bund Project Clean Model
@@ -8,10 +7,12 @@
"""
from datetime import date, datetime
-from typing import Optional, List, Set, Any
+from typing import Any
from pydantic import BaseModel, ConfigDict, Field, field_validator
+from inse.models.openalex.topic import Topic, TopicDomain, TopicField, TopicSubfield
+
class BundProjectDetails(BaseModel):
"""
@@ -26,175 +27,179 @@ class BundProjectDetails(BaseModel):
# Core identifiers
id: str = Field(description="The ID of the Bund project")
- funding_reference: Optional[str] = Field(
+ funding_reference: str | None = Field(
default=None,
description="The funding reference number (Förderkennzeichen)",
)
# Project metadata
- title: Optional[str] = Field(
+ title: str | None = Field(
default=None,
description="The project topic/title",
)
- description: Optional[str] = Field(
+ description: str | None = Field(
default=None,
description="Plain text description of the performance plan classification",
)
- joint_project: Optional[str] = Field(
+ joint_project: str | None = Field(
default=None,
description="Parent joint project if this is a sub-project",
)
# Funding information
- funding_type: Optional[str] = Field(
+ funding_type: str | None = Field(
default=None,
description="Type of funding (Förderart)",
)
- funding_profile: Optional[str] = Field(
+ funding_profile: str | None = Field(
default=None,
description="Funding profile (Förderprofil)",
)
- funding_amount: Optional[float] = Field(
+ funding_amount: float | None = Field(
default=None,
description="Funding amount in EUR",
)
- funding_start_date: Optional[date] = Field(
+ funding_start_date: date | None = Field(
default=None,
description="Funding start date",
)
- funding_end_date: Optional[date] = Field(
+ funding_end_date: date | None = Field(
default=None,
description="Funding end date",
)
- duration: Optional[str] = Field(
+ duration: str | None = Field(
default=None,
description="Project duration (Laufzeit)",
)
# Classification
- performance_plan_code: Optional[str] = Field(
+ performance_plan_code: str | None = Field(
default=None,
description="Performance plan classification code",
)
- performance_plan_fullname: Optional[str] = Field(
+ performance_plan_fullname: str | None = Field(
default=None,
description="Full name of the performance plan classification",
)
# Organizational
- executing_agency: Optional[str] = Field(
+ executing_agency: str | None = Field(
default=None,
description="Executing agency",
)
- funding_recipient: Optional[str] = Field(
+ funding_recipient: str | None = Field(
default=None,
description="Funding recipient",
)
- project_agency: Optional[str] = Field(
+ project_agency: str | None = Field(
default=None,
description="Project management agency",
)
- project_agency_fullname: Optional[str] = Field(
+ project_agency_fullname: str | None = Field(
default=None,
description="Full name of the project management agency",
)
# Government hierarchy
- department: Optional[str] = Field(
+ department: str | None = Field(
default=None,
description="Government department code",
)
- department_fullname: Optional[str] = Field(
+ department_fullname: str | None = Field(
default=None,
description="Full name of the government department",
)
- division: Optional[str] = Field(
+ division: str | None = Field(
default=None,
description="Division/unit reference",
)
# Location
- location: Optional[str] = Field(
+ location: str | None = Field(
default=None,
description="Location/city",
)
- municipality: Optional[str] = Field(
+ municipality: str | None = Field(
default=None,
description="City/Municipality",
)
- state: Optional[str] = Field(
+ state: str | None = Field(
default=None,
description="Federal state",
)
- country: Optional[str] = Field(
+ country: str | None = Field(
default=None,
description="Country",
)
- municipality_code: Optional[str] = Field(
+ municipality_code: str | None = Field(
default=None,
description="Municipality code",
)
# Publication
- publication_date: Optional[str] = Field(
+ publication_date: str | None = Field(
default=None,
description="Publication date",
)
# Additional
- is_new: Optional[bool] = Field(
+ is_new: bool | None = Field(
default=None,
description="Flag indicating if the project is new",
)
- record_date: Optional[str] = Field(
+ record_date: str | None = Field(
default=None,
description="Record date",
)
- unix_timestamp: Optional[int] = Field(
+ unix_timestamp: int | None = Field(
default=None,
description="Unix timestamp of the record",
)
# Unified lists for aggregation
- associated_persons: List[str] = Field(
+ associated_persons: list[str] = Field(
default_factory=list,
description="All persons associated with the Bund project (from nested Arb object)",
)
- institutions: List[str] = Field(
+ institutions: list[str] = Field(
default_factory=list,
description="All institutions associated with the Bund project",
)
+ oa_topics: list[Topic] | None = Field(
+ default_factory=list,
+ description="OpenAlex topics associated with the Bund project",
+ )
# --- Validators for type coercion ---
@field_validator("funding_amount", mode="before")
@classmethod
- def parse_funding_amount(cls, v: Any) -> Optional[float]:
+ def parse_funding_amount(cls, v: Any) -> float | None:
"""Parse funding amount from string or number."""
if v is None:
return None
@@ -211,7 +216,7 @@ class BundProjectDetails(BaseModel):
@field_validator("funding_start_date", "funding_end_date", mode="before")
@classmethod
- def parse_german_date(cls, v: Any) -> Optional[date]:
+ def parse_german_date(cls, v: Any) -> date | None:
"""Parse date from German format (dd.MM.yyyy) or date/datetime object."""
if v is None:
return None
@@ -240,7 +245,7 @@ class BundProjectDetails(BaseModel):
@field_validator("is_new", mode="before")
@classmethod
- def parse_is_new(cls, v: Any) -> Optional[bool]:
+ def parse_is_new(cls, v: Any) -> bool | None:
"""Parse is_new from bool or string."""
if v is None:
return None
@@ -254,7 +259,7 @@ class BundProjectDetails(BaseModel):
@field_validator("unix_timestamp", mode="before")
@classmethod
- def parse_unix_timestamp(cls, v: Any) -> Optional[int]:
+ def parse_unix_timestamp(cls, v: Any) -> int | None:
"""Parse unix timestamp from int, float, or string."""
if v is None:
return None
@@ -275,7 +280,7 @@ class BundProjectDetails(BaseModel):
source = hit.get("_source", {})
# --- Extract persons from nested Arb object ---
- persons: Set[str] = set()
+ persons: set[str] = set()
arb = source.get("Arb")
if arb and isinstance(arb, dict):
for key, value in arb.items():
@@ -286,14 +291,14 @@ class BundProjectDetails(BaseModel):
persons.add(person)
# --- Extract institutions ---
- institutions: Set[str] = set()
+ institutions: set[str] = set()
inst_fields = [
"Ausführende Stelle",
"Zuwendungsempfänger",
"Projektträger",
]
for field in inst_fields:
- if field in source and source[field]:
+ if source.get(field):
for inst in source[field].split(";"):
inst = inst.strip()
if inst:
@@ -301,7 +306,17 @@ class BundProjectDetails(BaseModel):
if source.get("PT_fullname"):
institutions.add(source["PT_fullname"].strip())
+ topics_raw = source.get("oa_topics") or []
+ if not isinstance(source, dict):
+ return cls.model_validate(source)
+ oa_topics = None
+ if isinstance(topics_raw, list) and topics_raw:
+ sorted_topics_raw = sorted(
+ (t for t in topics_raw if isinstance(t, dict)),
+ key=lambda t: t.get("rank") if t.get("rank") is not None else float("inf"),
+ )
+ oa_topics = [cls._topic_from_match(t) for t in sorted_topics_raw]
return cls(
id=hit["_id"],
funding_reference=source.get("Förderkennzeichen"),
@@ -334,4 +349,24 @@ class BundProjectDetails(BaseModel):
unix_timestamp=source.get("unix_timestamp"),
associated_persons=sorted(persons),
institutions=sorted(institutions),
+ oa_topics=oa_topics
+ )
+ @staticmethod
+ def _topic_from_match(match: dict[str, Any]) -> Topic:
+ """Builds a Topic model from a flattened topic_match dict.
+ """
+ domain_name = match.get("domain")
+ field_name = match.get("field")
+ subfield_name = match.get("subfield")
+
+ domain = TopicDomain(display_name=domain_name) if domain_name else None
+ field = TopicField(display_name=field_name) if field_name else None
+ subfield = TopicSubfield(display_name=subfield_name) if subfield_name else None
+
+ return Topic(
+ id=match.get("topic_id"),
+ display_name=match.get("topic_display_name"),
+ domain=domain,
+ field=field,
+ subfield=subfield,
)
\ No newline at end of file
diff --git a/service/src/main/inse/models/cordis_eu_project.py b/service/src/main/inse/models/cordis_eu_project.py
index 557dfd57..66d2f9ed 100644
--- a/service/src/main/inse/models/cordis_eu_project.py
+++ b/service/src/main/inse/models/cordis_eu_project.py
@@ -1,5 +1,5 @@
from datetime import datetime
-from typing import Optional, List, Union
+
from pydantic import BaseModel, Field
@@ -7,54 +7,54 @@ class CordisEuProject(BaseModel):
id: str = Field(
description="Unique identifier for the project, typically the CORDIS ID"
)
- rcn: Optional[str] = Field(
+ rcn: str | None = Field(
None, description="Research and Innovation project number (CORDIS RCN)"
)
- acronym: Optional[str] = Field(None, description="Acronym for the project")
- title: Optional[str] = Field(None, description="Title of the project")
- objective: Optional[str] = Field(None, description="Objective of the project")
+ acronym: str | None = Field(None, description="Acronym for the project")
+ title: str | None = Field(None, description="Title of the project")
+ objective: str | None = Field(None, description="Objective of the project")
- frameworkProgramme: Optional[str] = Field(
+ frameworkProgramme: str | None = Field(
None, description="Framework Programme under which the project was funded"
)
- fundingScheme: Optional[str] = Field(
+ fundingScheme: str | None = Field(
None, description="Funding scheme of the project"
)
- legalBasis: Optional[str] = Field(
+ legalBasis: str | None = Field(
None, description="Legal basis for the project funding"
)
- masterCall: Optional[str] = Field(
+ masterCall: str | None = Field(
None, description="Master call identifier if applicable"
)
- subCall: Optional[str] = Field(
+ subCall: str | None = Field(
None, description="Sub call identifier if applicable"
)
- topics: Optional[Union[str, List[str]]] = (
+ topics: str | list[str] | None = (
None # Elastic keyword can map to a single string or list of strings
)
- nature: Optional[str] = Field(None, description="Nature of the project")
- status: Optional[str] = Field(None, description="Status of the project")
+ nature: str | None = Field(None, description="Nature of the project")
+ status: str | None = Field(None, description="Status of the project")
- ecMaxContribution: Optional[float] = Field(
+ ecMaxContribution: float | None = Field(
None, description="Maximum European Commission contribution"
)
- totalCost: Optional[float] = Field(None, description="Total cost of the project")
+ totalCost: float | None = Field(None, description="Total cost of the project")
- startDate: Optional[datetime] = Field(None, description="Start date of the project")
- endDate: Optional[datetime] = Field(None, description="End date of the project")
- ecSignatureDate: Optional[datetime] = Field(
+ startDate: datetime | None = Field(None, description="Start date of the project")
+ endDate: datetime | None = Field(None, description="End date of the project")
+ ecSignatureDate: datetime | None = Field(
None, description="Date of the European Commission signature"
)
- contentUpdateDate: Optional[datetime] = Field(
+ contentUpdateDate: datetime | None = Field(
None, description="Date when the project content was last updated"
)
- grantDoi: Optional[str] = Field(None, description="DOI for the project grant")
- humanValidated: Optional[bool] = Field(
+ grantDoi: str | None = Field(None, description="DOI for the project grant")
+ humanValidated: bool | None = Field(
None,
description="Indicates if the project information has been human validated",
)
- keywords: Optional[Union[str, List[str]]] = Field(
+ keywords: str | list[str] | None = Field(
None, description="Keywords associated with the project"
)
diff --git a/service/src/main/inse/models/dfg_project.py b/service/src/main/inse/models/dfg_project.py
index 409e0fe5..009dd81d 100644
--- a/service/src/main/inse/models/dfg_project.py
+++ b/service/src/main/inse/models/dfg_project.py
@@ -1,5 +1,3 @@
-from datetime import date
-from typing import Optional, Set
from pydantic import BaseModel, Field
@@ -31,8 +29,8 @@ class DfgProject(BaseModel):
def from_elastic_hit(cls, hit: dict):
source = hit["_source"]
- associated_persons: Set[str] = set()
- institutions: Set[str] = set()
+ associated_persons: set[str] = set()
+ institutions: set[str] = set()
# persons
diff --git a/service/src/main/inse/models/dfg_project_details.py b/service/src/main/inse/models/dfg_project_details.py
index cbf909cb..fe914373 100644
--- a/service/src/main/inse/models/dfg_project_details.py
+++ b/service/src/main/inse/models/dfg_project_details.py
@@ -1,293 +1,433 @@
-# coding: utf-8
"""
- DFG Project Clean Model
+ DFG Project Clean Model (v2)
- Summary model that consolidates all scattered person and institution fields
- from the raw projects_dfg_all index into clean, unified lists.
+ Enriched, consolidated model built on top of the structured
+ projects_dfg_v2 API models (DFGProject / DFGPerson / DFGInstitute),
+ rather than the old flat projects_dfg_all Elasticsearch index.
"""
-from typing import Optional, List, Set
from pydantic import BaseModel, ConfigDict, Field
+from inse.models.projects_dfg_v2.project.dfg_project import DFGProject
+from inse.models.projects_dfg_v2.project.dfg_project_fachgebiete_inner import (
+ DFGProjectFachgebieteInner,
+)
+from inse.models.projects_dfg_v2.project.dfg_project_institutions_inner import (
+ DFGProjectInstitutionsInner,
+)
+from inse.models.projects_dfg_v2.project.dfg_project_persons_inner import (
+ DFGProjectPersonsInner,
+)
+from inse.models.projects_dfg_v2.project.dfg_project_publications_inner import (
+ DFGProjectPublicationsInner,
+)
+from inse.models.projects_dfg_v2.project.dfg_project_subprojects_inner import (
+ DFGProjectSubprojectsInner,
+)
+from inse.topics.model import Topic
+
+
+class DfgProjectPersonRole(BaseModel):
+ """A person associated with the project, together with their role."""
+
+ model_config = ConfigDict(populate_by_name=True)
+
+ person_id: int | None = Field(default=None, description="DFG person ID")
+ full_name: str | None = Field(default=None, description="Full name of the person")
+ orcid_id: str | None = Field(
+ default=None,
+ description=(
+ "ORCID iD, if known. Not present on the project's embedded person "
+ "record (DFGProjectPersonsInner) -- only populated if the caller "
+ "cross-references the full DFGPerson record via person_id and "
+ "calls DfgProjectDetails.enrich_orcids afterwards."
+ ),
+ )
+ role_key: str | None = Field(
+ default=None, description="Machine-readable role key (e.g. 'antragsteller')"
+ )
+ role_label_de: str | None = Field(default=None, description="Role label (German)")
+ role_label_en: str | None = Field(default=None, description="Role label (English)")
+ affiliation_de: str | None = Field(
+ default=None, description="Person's affiliation at time of project (German)"
+ )
+ affiliation_en: str | None = Field(
+ default=None, description="Person's affiliation at time of project (English)"
+ )
+ is_deceased: bool | None = Field(default=None, description="Whether the person is deceased")
+ is_head: bool | None = Field(
+ default=None, description="Whether this person is highlighted as the project head"
+ )
+
+ @classmethod
+ def from_inner(cls, p: DFGProjectPersonsInner) -> "DfgProjectPersonRole":
+ return cls(
+ person_id=p.person_id,
+ full_name=p.full_name,
+ role_key=p.role_key,
+ role_label_de=p.role_label_de,
+ role_label_en=p.role_label_en,
+ affiliation_de=p.affiliation_de,
+ affiliation_en=p.affiliation_en,
+ is_deceased=p.is_deceased,
+ is_head=p.is_head_display,
+ )
+
+
+class DfgProjectInstitutionRole(BaseModel):
+ """An institution associated with the project, together with its role."""
+
+ model_config = ConfigDict(populate_by_name=True)
+
+ institute_id: int | None = Field(default=None, description="DFG institute ID")
+ name_de: str | None = Field(default=None, description="Institution name (German)")
+ name_en: str | None = Field(default=None, description="Institution name (English)")
+ role_key: str | None = Field(default=None, description="Machine-readable role key")
+ role_label_de: str | None = Field(default=None, description="Role label (German)")
+ role_label_en: str | None = Field(default=None, description="Role label (English)")
+ is_dissolved: bool | None = Field(
+ default=None, description="Whether the institution has since been dissolved"
+ )
+ is_head: bool | None = Field(
+ default=None, description="Whether this institution is highlighted as the lead institution"
+ )
+
+ @classmethod
+ def from_inner(cls, i: DFGProjectInstitutionsInner) -> "DfgProjectInstitutionRole":
+ return cls(
+ institute_id=i.institute_id,
+ name_de=i.institute_name_de,
+ name_en=i.institute_name_en,
+ role_key=i.role_key,
+ role_label_de=i.role_label_de,
+ role_label_en=i.role_label_en,
+ is_dissolved=i.is_dissolved,
+ is_head=i.is_head_display,
+ )
+
+
+class DfgProjectSubprojectSummary(BaseModel):
+ """A lightweight reference to a sub-project of this project."""
+
+ model_config = ConfigDict(populate_by_name=True)
+
+ subproject_id: int | None = None
+ title_de: str | None = None
+ title_en: str | None = None
+ short_title: str | None = None
+ role_label_de: str | None = Field(
+ default=None, description="Role of the sub-project lead within the sub-project"
+ )
+ person_full_name: str | None = Field(
+ default=None, description="Sub-project lead, derived from first/last name fields"
+ )
+ status_de: str | None = None
+ funding_start: int | None = None
+ funding_end: int | None = None
+
+ @classmethod
+ def from_inner(cls, s: DFGProjectSubprojectsInner) -> "DfgProjectSubprojectSummary":
+ person_full_name = None
+ if s.person_first_names or s.person_last_name:
+ person_full_name = " ".join(
+ part for part in [s.person_first_names, s.person_last_name] if part
+ ).strip() or None
+
+ return cls(
+ subproject_id=s.subproject_id,
+ title_de=s.title_de,
+ title_en=s.title_en,
+ short_title=s.short_title,
+ role_label_de=s.role_label_de,
+ person_full_name=person_full_name,
+ status_de=s.status_de,
+ funding_start=s.funding_start,
+ funding_end=s.funding_end,
+ )
+
+
+class DfgProjectPublicationSummary(BaseModel):
+ """A lightweight reference to a publication resulting from the project."""
+
+ model_config = ConfigDict(populate_by_name=True)
+
+ publication_id: int | None = None
+ title: str | None = None
+ authors_editors: str | None = None
+ doi: str | None = None
+ publication_year: int | None = None
+
+ @classmethod
+ def from_inner(cls, p: DFGProjectPublicationsInner) -> "DfgProjectPublicationSummary":
+ return cls(
+ publication_id=p.publication_id,
+ title=p.title,
+ authors_editors=p.authors_editors,
+ doi=p.doi,
+ publication_year=p.publication_year,
+ )
+
+
+class DfgProjectSubjectArea(BaseModel):
+ """A single subject-area classification entry (DFG 'Fachsystematik')."""
+
+ model_config = ConfigDict(populate_by_name=True)
+
+ fach: str | None = None
+ fachgebiet: str | None = None
+ fachkollegium: str | None = None
+ wissenschaftsbereich: str | None = None
+
+ @classmethod
+ def from_inner(cls, f: DFGProjectFachgebieteInner) -> "DfgProjectSubjectArea":
+ return cls(
+ fach=f.fach,
+ fachgebiet=f.fachgebiet,
+ fachkollegium=f.fachkollegium,
+ wissenschaftsbereich=f.wissenschaftsbereich,
+ )
+
class DfgProjectDetails(BaseModel):
"""
- Clean summary model for a DFG project, consolidating all person roles
- and institution references into unified lists.
+ Clean, enriched summary model for a DFG project.
"""
- model_config = ConfigDict(
- populate_by_name=True,
- validate_assignment=True,
+
+ model_config = ConfigDict(populate_by_name=True, validate_assignment=True)
+
+ id: int | None = Field(default=None, description="The DFG project ID")
+ link: str | None = Field(default=None, description="Canonical DFG link to the project")
+ page_url: str | None = Field(default=None, description="DFG GEPRIS page URL")
+ external_link: str | None = Field(
+ default=None, description="External project website/link, if provided"
)
- id: str = Field(description="The ID of the DFG project")
- link: Optional[str] = Field(default=None, description="The link to the DFG project")
- title: Optional[str] = Field(
- default=None, description="The title of the DFG project"
+ title_de: str | None = Field(default=None, description="Project title (German)")
+ title_en: str | None = Field(default=None, description="Project title (English)")
+ description_de: str | None = Field(default=None, description="Project abstract (German)")
+ description_en: str | None = Field(default=None, description="Project abstract (English)")
+ final_report_abstract_de: str | None = Field(
+ default=None, description="Final report abstract (German), if the project has concluded"
)
- description: Optional[str] = Field(
- default=None, description="The description of the DFG project"
+ final_report_abstract_en: str | None = Field(
+ default=None, description="Final report abstract (English), if the project has concluded"
)
- project_identifier: Optional[str] = Field(
+ project_identifier_de: str | None = Field(default=None, description="DFG project identifier (German)")
+ project_identifier_en: str | None = Field(default=None, description="DFG project identifier (English)")
+
+ funding_start: int | None = Field(default=None, description="Funding start year")
+ funding_end: int | None = Field(default=None, description="Funding end year")
+ funding_period_de: str | None = Field(default=None, description="Human-readable funding period (German)")
+ funding_period_en: str | None = Field(default=None, description="Human-readable funding period (English)")
+
+ funding_type_de: str | None = Field(default=None, description="Funding type / programme (German)")
+ funding_type_en: str | None = Field(default=None, description="Funding type / programme (English)")
+ funding_type_key: str | None = Field(default=None, description="Machine-readable funding type key")
+
+ dfg_procedure: str | None = Field(
+ default=None, description="DFG procedure / template type (e.g. Sachbeihilfe, SFB, GRK)"
+ )
+
+ is_transfer_project: bool | None = Field(
+ default=None, description="Whether this is a transfer project"
+ )
+
+ website_html_de: str | None = Field(
+ default=None, description="Raw project website HTML content (German), as served by DFG"
+ )
+ website_html_en: str | None = Field(
+ default=None, description="Raw project website HTML content (English), as served by DFG"
+ )
+
+ equipment_group: str | None = Field(
default=None,
- description="The project identifier of the DFG project",
+ description="Large-equipment (Großgerät) group, for equipment-funding projects",
)
-
- funding_start_date: Optional[str] = Field(
- default=None, description="The funding start date of the DFG project"
- )
- funding_end_date: Optional[str] = Field(
- default=None, description="The funding end date of the DFG project"
- )
-
- dfg_procedure: Optional[str] = Field(
- default=None, description="The DFG procedure"
- )
- subject_area: Optional[str] = Field(
+ equipment_name: str | None = Field(
default=None,
- description="The subject area classification",
- )
- funding_type: Optional[str] = Field(
- default=None, description="The type of funding"
- )
- international_reference: Optional[str] = Field(
- default=None,
-
- description="International reference",
+ description="Large-equipment (Großgerät) name, for equipment-funding projects",
)
- website: Optional[str] = Field(
- default=None, description="The project website"
- )
-
- # Unified person list: all person names from any role
- associated_persons: List[str] = Field(
+ subject_area_de: str | None = Field(default=None, description="Subject area, summary text (German)")
+ subject_area_en: str | None = Field(default=None, description="Subject area, summary text (English)")
+ subject_classifications: list[DfgProjectSubjectArea] = Field(
default_factory=list,
- description="All persons associated with the DFG project (any role)",
+ description="Detailed DFG subject-area classification entries (Fachsystematik)",
)
- # Unified institution list: all institutions involved
- institutions: List[str] = Field(
+ international_relation_de: str | None = Field(
+ default=None, description="International reference/cooperation (German)"
+ )
+ international_relation_en: str | None = Field(
+ default=None, description="International reference/cooperation (English)"
+ )
+
+ # Structured, role-aware person and institution lists
+ persons: list[DfgProjectPersonRole] = Field(
default_factory=list,
- description="All institutions associated with the DFG project",
+ description="All persons associated with the project, each with their role",
+ )
+ institutions: list[DfgProjectInstitutionRole] = Field(
+ default_factory=list,
+ description="All institutions associated with the project, each with their role",
)
- # Sub-project reference
- subproject_of: Optional[str] = Field(
- default=None,
- description="Parent project this is a sub-project of",
+ # Convenience flat views, derived from the structured lists above
+ associated_persons: list[str] = Field(
+ default_factory=list,
+ description="Flat, de-duplicated list of all person full names (convenience view)",
)
+ associated_institutions: list[str] = Field(
+ default_factory=list,
+ description="Flat, de-duplicated list of all institution names (convenience view)",
+ )
+
+ # Parent / sub-project structure
+ parent_project_id: int | None = Field(default=None, description="Parent project ID, if this is a sub-project")
+ parent_title_de: str | None = Field(default=None, description="Parent project title (German)")
+ parent_title_en: str | None = Field(default=None, description="Parent project title (English)")
+ subprojects: list[DfgProjectSubprojectSummary] = Field(
+ default_factory=list, description="Sub-projects of this project, if any"
+ )
+
+ publications: list[DfgProjectPublicationSummary] = Field(
+ default_factory=list, description="Publications resulting from the project"
+ )
+
+ topics: list[Topic] | None = Field(
+ default_factory=list, description="OpenAlex topics associated with the project ID"
+ )
+
+ @classmethod
+ def from_dfg_project(cls, project: DFGProject) -> "DfgProjectDetails":
+ """
+ Build a DfgProjectDetails from a fully-typed DFGProject instance
+ (e.g. as returned by the projects_dfg_v2 API client).
+ """
+
+ persons = [DfgProjectPersonRole.from_inner(p) for p in (project.persons or [])]
+ institutions = [
+ DfgProjectInstitutionRole.from_inner(i) for i in (project.institutions or [])
+ ]
+ subprojects = [
+ DfgProjectSubprojectSummary.from_inner(s) for s in (project.subprojects or [])
+ ]
+ publications = [
+ DfgProjectPublicationSummary.from_inner(p) for p in (project.publications or [])
+ ]
+ subject_classifications = [
+ DfgProjectSubjectArea.from_inner(f) for f in (project.fachgebiete or [])
+ ]
+
+ # De-duplicated flat views, order-preserving
+ seen_persons = set()
+ associated_persons = []
+ for p in persons:
+ if p.full_name and p.full_name not in seen_persons:
+ seen_persons.add(p.full_name)
+ associated_persons.append(p.full_name)
+
+ seen_institutions = set()
+ associated_institutions = []
+ for i in institutions:
+ name = i.name_de or i.name_en
+ if name and name not in seen_institutions:
+ seen_institutions.add(name)
+ associated_institutions.append(name)
+
+ return cls(
+ id=project.id or project.project_id,
+ link=project.link,
+ page_url=project.page_url,
+ external_link=project.external_link,
+ title_de=project.title_de,
+ title_en=project.title_en,
+ description_de=project.abstract_de,
+ description_en=project.abstract_en,
+ final_report_abstract_de=project.final_report_abstract_de,
+ final_report_abstract_en=project.final_report_abstract_en,
+ project_identifier_de=project.project_identifier_de,
+ project_identifier_en=project.project_identifier_en,
+ funding_start=project.funding_start,
+ funding_end=project.funding_end,
+ funding_period_de=project.funding_period_de,
+ funding_period_en=project.funding_period_en,
+ funding_type_de=project.funding_type_de,
+ funding_type_en=project.funding_type_en,
+ funding_type_key=project.funding_type_key,
+ dfg_procedure=project.template_type,
+ is_transfer_project=project.is_transfer_project,
+ website_html_de=project.website_html_de,
+ website_html_en=project.website_html_en,
+ equipment_group=project.equipment_group,
+ equipment_name=project.equipment_name,
+ subject_area_de=project.subject_area_de,
+ subject_area_en=project.subject_area_en,
+ subject_classifications=subject_classifications,
+ international_relation_de=project.international_relation_de,
+ international_relation_en=project.international_relation_en,
+ persons=persons,
+ institutions=institutions,
+ associated_persons=associated_persons,
+ associated_institutions=associated_institutions,
+ parent_project_id=project.parent_project_id,
+ parent_title_de=project.parent_title_de,
+ parent_title_en=project.parent_title_en,
+ subprojects=subprojects,
+ publications=publications,
+ topics=project.topics,
+ )
+
+ @classmethod
+ def from_dict(cls, obj: dict) -> "DfgProjectDetails":
+ """Convenience constructor from a raw dict (e.g. a JSON API response body)."""
+ obj = cls._sanitize_raw_project_dict(obj)
+ return cls.from_dfg_project(DFGProject.from_dict(obj))
+
+ @staticmethod
+ def _sanitize_raw_project_dict(obj: dict) -> dict:
+ """
+ Work around known mismatches between the generated DFGProject model
+ and the actual shape of API/index data, before handing off to
+ DFGProject.from_dict (which would otherwise raise a ValidationError
+ and abort the whole parse).
+ """
+ if isinstance(obj.get("subject_classifications"), list):
+ obj = dict(obj)
+ obj.pop("subject_classifications", None)
+ return obj
@classmethod
def from_elastic_hit(cls, hit: dict) -> "DfgProjectDetails":
"""
- Create a DfgProject from an Elasticsearch hit, consolidating all
- person and institution fields into unified lists.
+ Compatibility constructor for callers still reading from an
+ Elasticsearch hit (e.g. `{"_id": ..., "_source": {...}}`), matching
+ the old model's from_elastic_hit signature.
"""
+ source = dict(hit.get("_source", {}))
- source = hit.get("_source", {})
+ if source.get("id") is None and source.get("project_id") is None:
+ raw_id = hit.get("_id")
+ if raw_id is not None:
+ try:
+ source["id"] = int(raw_id)
+ except (TypeError, ValueError):
+ # Non-numeric _id (e.g. a composite/legacy key) - leave
+ # id unset rather than fail the whole parse.
+ pass
- associated_persons: Set[str] = set()
- institutions: Set[str] = set()
+ return cls.from_dict(source)
- # --- Collect all persons and institutions from nested persons array ---
- persons_list = source.get("persons", [])
- if isinstance(persons_list, list):
- for p in persons_list:
- if isinstance(p, dict):
- full_name = p.get("full_name")
- if full_name:
- associated_persons.add(full_name.strip())
-
- aff_de = p.get("affiliation_de")
- if aff_de:
- institutions.add(aff_de.strip())
-
- aff_en = p.get("affiliation_en")
- if aff_en:
- institutions.add(aff_en.strip())
-
- # --- Collect all persons from every person-related field ---
-
- # Applicant fields
- _add_persons(source, associated_persons, "Antragsteller") # semicolon-separated
- _add_person(source, associated_persons, "Antragstellerin")
- _add_persons(
- source, associated_persons, "Antragstellerinnen"
- ) # semicolon-separated
- _add_persons(
- source, associated_persons, "Antragstellerinnen / Antragsteller"
- ) # semicolon-separated
-
- # Co-applicant fields
- _add_persons(source, associated_persons, "Mitantragsteller")
- _add_person(source, associated_persons, "Mitantragstellerin")
- _add_persons(source, associated_persons, "Mitantragstellerinnen")
- _add_persons(
- source, associated_persons, "Mitantragstellerinnen / Mitantragsteller"
- )
-
- # Former applicant fields
- _add_persons(source, associated_persons, "Ehemalige Antragsteller")
- _add_person(source, associated_persons, "Ehemalige Antragstellerin")
- _add_persons(source, associated_persons, "Ehemalige Antragstellerinnen")
- _add_persons(
- source,
- associated_persons,
- "Ehemalige Antragstellerinnen / Ehemalige Antragsteller",
- )
- _add_person(source, associated_persons, "Ehemaliger Antragsteller")
-
- # Speaker / coordinator fields
- _add_person(source, associated_persons, "Sprecher")
- _add_person(source, associated_persons, "Sprecherin")
- _add_persons(source, associated_persons, "Sprecherinnen")
- _add_persons(source, associated_persons, "Sprecherinnen / Sprecher")
- _add_person(source, associated_persons, "Co-Sprecher")
- _add_persons(source, associated_persons, "Co-Sprecherinnen / Co-Sprecher")
-
- # IGK partner speaker fields
- _add_person(source, associated_persons, "Sprecher (IGK-Partner)")
- _add_person(source, associated_persons, "Sprecherin (IGK-Partner)")
- _add_persons(
- source,
- associated_persons,
- "Sprecherinnen (IGK-Partner) / Sprecher (IGK-Partner)",
- )
-
- # Leader fields
- _add_person(source, associated_persons, "Leiter")
- _add_person(source, associated_persons, "Leiterin")
- _add_persons(source, associated_persons, "Leiterinnen")
- _add_persons(source, associated_persons, "Leiterinnen / Leiter")
-
- # Sub-project leader fields
- _add_persons(source, associated_persons, "Teilprojektleiter")
- _add_person(source, associated_persons, "Teilprojektleiterin")
- _add_persons(source, associated_persons, "Teilprojektleiterinnen")
- _add_persons(
- source, associated_persons, "Teilprojektleiterinnen / Teilprojektleiter"
- )
-
- # Participating scientist fields
- _add_persons(source, associated_persons, "beteiligte Wissenschaftler")
- _add_person(source, associated_persons, "beteiligte Wissenschaftlerin")
- _add_persons(source, associated_persons, "beteiligte Wissenschaftlerinnen")
- _add_persons(
- source,
- associated_persons,
- "beteiligte Wissenschaftlerinnen / beteiligte Wissenschaftler",
- )
- _add_person(source, associated_persons, "beteiligter Wissenschaftler")
-
- # Participating person fields
- _add_person(source, associated_persons, "Beteiligte Person")
- _add_persons(source, associated_persons, "Beteiligte Personen")
-
- # Host fields (for guest researchers)
- _add_person(source, associated_persons, "Gastgeber")
- _add_person(source, associated_persons, "Gastgeberin")
- _add_persons(source, associated_persons, "Gastgeberinnen")
- _add_persons(source, associated_persons, "Gastgeberinnen / Gastgeber")
-
- # Cooperation partner fields
- _add_person(source, associated_persons, "Kooperationspartner")
- _add_person(source, associated_persons, "Kooperationspartnerin")
- _add_persons(source, associated_persons, "Kooperationspartnerinnen")
- _add_persons(
- source, associated_persons, "Kooperationspartnerinnen / Kooperationspartner"
- )
-
- # Co-responsible fields
- _add_person(source, associated_persons, "Mitverantwortlich")
- _add_person(source, associated_persons, "Mitverantwortlich(e)")
- _add_persons(source, associated_persons, "Mitverantwortliche")
-
- # Application partner
- _add_person(source, associated_persons, "Anwendungspartner")
-
- # Foreign co-applicant fields
- _add_persons(source, associated_persons, "ausländische Mitantragsteller")
- _add_person(source, associated_persons, "ausländischer Mitantragsteller")
-
- # Person creator (from nested fields)
- if "person_creater_name" in source and source["person_creater_name"]:
- associated_persons.add(source["person_creater_name"].strip())
-
- # Deputy (stellvertr) - nested object
- stellvertr = source.get("stellvertr")
- if stellvertr and isinstance(stellvertr, dict):
- for field in ["stellvertreter", "stellvertreterin"]:
- if field in stellvertr and stellvertr[field]:
- associated_persons.add(stellvertr[field].strip())
-
- # --- Collect all institutions ---
-
- _add_institution(source, institutions, "Antragstellende Institution")
- _add_institution(source, institutions, "Mitantragstellende Institution")
- _add_institution(source, institutions, "Beteiligte Einrichtung")
- _add_institution(source, institutions, "Beteiligte Hochschule")
- _add_institution(source, institutions, "Beteiligte Institution")
- _add_institution(source, institutions, "IGK-Partnerinstitution")
- _add_institution(source, institutions, "Partnerorganisation")
- _add_institution(source, institutions, "Unternehmen")
-
- # Foreign institution (nested object)
- auslaend = source.get("ausländ")
- if auslaend and isinstance(auslaend, dict):
- for field in [
- "auslaendischeInstitution",
- "auslaendischeInstitution2",
- "auslaendischesUnternehmen",
- "auslaendischesUnternehmen2",
- ]:
- if field in auslaend and auslaend[field]:
- institutions.add(auslaend[field].strip())
-
- return cls(
- id=hit["_id"],
- link=source.get("link") or source.get("page_url"),
- title=source.get("title") or source.get("title_de") or source.get("title_en"),
- description=source.get("description") or source.get("abstract_de") or source.get("abstract_en"),
- project_identifier=source.get("Projektkennung") or source.get("project_identifier_de") or source.get("project_identifier_en"),
- funding_start_date=str(source.get("funding_start")) if source.get("funding_start") is not None else None,
- funding_end_date=str(source.get("funding_end")) if source.get("funding_end") is not None else None,
- dfg_procedure=source.get("DFG-Verfahren") or source.get("template_type"),
- subject_area=source.get("Fachliche Zuordnung") or source.get("subject_area_de") or source.get("subject_area_en"),
- funding_type=source.get("Förderung") or source.get("funding_type_sort"),
- international_reference=source.get("Internationaler Bezug") or source.get("international_relation_de") or source.get("international_relation_en"),
- website=source.get("Webseite"),
- associated_persons=sorted(associated_persons), # sorted for consistency
- institutions=sorted(institutions),
- subproject_of=source.get("Teilprojekt zu") or source.get("parent_project_id"),
- )
-
-
-# --- Helper functions for parsing source fields ---
-
-def _add_person(source: dict, persons: Set[str], field: str) -> None:
- """Add a single person value from a field."""
- if field in source and source[field]:
- value = source[field].strip()
- if value:
- persons.add(value)
-
-
-def _add_persons(source: dict, persons: Set[str], field: str) -> None:
- """Add persons from a semicolon-separated field."""
- if field in source and source[field]:
- for person in source[field].split(";"):
- cleaned = person.strip()
- if cleaned:
- persons.add(cleaned)
-
-
-def _add_institution(source: dict, institutions: Set[str], field: str) -> None:
- """Add a single institution value from a field."""
- if field in source and source[field]:
- value = source[field].strip()
- if value:
- institutions.add(value)
\ No newline at end of file
+ def enrich_orcids(self, persons_by_id: dict) -> None:
+ """
+ Fill in orcid_id on each entry in `self.persons`, given a mapping of
+ person_id -> DFGPersonPerson (or DFGPerson) for the persons involved
+ in this project
+ """
+ for person in self.persons:
+ record = persons_by_id.get(person.person_id)
+ if record is not None:
+ person.orcid_id = getattr(record, "orcid_id", None)
\ No newline at end of file
diff --git a/service/src/main/inse/models/eu_project.py b/service/src/main/inse/models/eu_project.py
index a499216a..76763c2d 100644
--- a/service/src/main/inse/models/eu_project.py
+++ b/service/src/main/inse/models/eu_project.py
@@ -1,11 +1,11 @@
-from typing import List, Optional
+
from pydantic import BaseModel, ConfigDict, Field
class DisplayCodeSplittedNested(BaseModel):
model_config = ConfigDict(populate_by_name=True)
- single_display_code: Optional[str] = Field(
+ single_display_code: str | None = Field(
default=None,
validation_alias="singleDisplayCode",
description="A solitary segment or specific component broken out from the main display code.",
@@ -15,25 +15,25 @@ class DisplayCodeSplittedNested(BaseModel):
class CategoryNested(BaseModel):
model_config = ConfigDict(populate_by_name=True)
- category: Optional[str] = Field(
+ category: str | None = Field(
default=None,
description="The descriptive classification title or taxonomy name for the project.",
)
- code: Optional[str] = Field(
+ code: str | None = Field(
default=None, description="The system code representing the specific category."
)
- display_code: Optional[str] = Field(
+ display_code: str | None = Field(
default=None,
validation_alias="displayCode",
description="The alphanumeric code formatted for user interface display purposes.",
)
# REFINED: Mapped to List[str] because the real data provides an array of strings
- display_code_splitted: List[str] = Field(
+ display_code_splitted: list[str] = Field(
default_factory=list,
validation_alias="displayCode_splitted",
description="A tokenized hierarchy breakdown of the display code represented as an array of strings.",
)
- display_code_splitted_nested: List[DisplayCodeSplittedNested] = Field(
+ display_code_splitted_nested: list[DisplayCodeSplittedNested] = Field(
default_factory=list,
validation_alias="displayCode_splitted_nested",
description="Granular, nested breakdowns of the split parts of the display code.",
@@ -43,7 +43,7 @@ class CategoryNested(BaseModel):
class KeywordNested(BaseModel):
model_config = ConfigDict(populate_by_name=True)
- keyword: Optional[str] = Field(
+ keyword: str | None = Field(
default=None,
description="An individual standalone keyword or tag used for granular search index filtering.",
)
@@ -52,30 +52,30 @@ class KeywordNested(BaseModel):
class OrganizationNested(BaseModel):
model_config = ConfigDict(populate_by_name=True)
- ec_contribution: Optional[str] = Field(
+ ec_contribution: str | None = Field(
default=None,
validation_alias="ecContribution",
description="The gross European Commission financial contribution allocated to this specific participant organization.",
)
- id: Optional[str] = Field(
+ id: str | None = Field(
default=None,
description="The unique identifier or Participant Identification Code (PIC) of the organization.",
)
- name: Optional[str] = Field(
+ name: str | None = Field(
default=None,
description="The full legal name of the participating organization or institution.",
)
- net_ec_contribution: Optional[str] = Field(
+ net_ec_contribution: str | None = Field(
default=None,
validation_alias="netEcContribution",
description="The net European Commission financial funding provided to the organization after adjustments.",
)
- total_cost: Optional[str] = Field(
+ total_cost: str | None = Field(
default=None,
validation_alias="totalCost",
description="The overall individual budget or total cost declared by this organization for its share of work.",
)
- organization_type: Optional[str] = Field(
+ organization_type: str | None = Field(
default=None,
validation_alias="type",
description="The legal entity type or role of the organization (e.g., coordinator, participant).",
@@ -85,15 +85,15 @@ class OrganizationNested(BaseModel):
class ProgrammeNested(BaseModel):
model_config = ConfigDict(populate_by_name=True)
- code: Optional[str] = Field(
+ code: str | None = Field(
default=None,
description="The structural code identifying the framework or specific funding sub-programme.",
)
- id: Optional[str] = Field(
+ id: str | None = Field(
default=None,
description="The unique identifier of the funding program within the registry.",
)
- programme: Optional[str] = Field(
+ programme: str | None = Field(
default=None,
description="The official title or description of the EU funding program.",
)
@@ -102,90 +102,90 @@ class ProgrammeNested(BaseModel):
class EuProject(BaseModel):
model_config = ConfigDict(populate_by_name=True)
- acronym: Optional[str] = Field(
+ acronym: str | None = Field(
default=None,
description="The official, short acronym chosen to identify the EU project.",
)
- categories_nested: List[CategoryNested] = Field(
+ categories_nested: list[CategoryNested] = Field(
default_factory=list,
description="Structured lists of classification categories and taxonomy mappings assigned to the project.",
)
- doc_number: Optional[str] = Field(
+ doc_number: str | None = Field(
default=None,
description="The internal administrative document control number or record tracking identifier.",
)
- doi: Optional[str] = Field(
+ doi: str | None = Field(
default=None,
description="The Digital Object Identifier (DOI) linked to the project's official metadata or primary publication.",
)
- ec_max_contribution: Optional[str] = Field(
+ ec_max_contribution: str | None = Field(
default=None,
validation_alias="ecMaxContribution",
description="The maximum authorized limit for the European Commission's financial grant contribution to the project.",
)
- end_date: Optional[str] = Field(
+ end_date: str | None = Field(
default=None,
validation_alias="endDate",
description="The calendar date marking the official structural conclusion of the project execution timeline.",
)
- funding_end: Optional[str] = Field(
+ funding_end: str | None = Field(
default=None,
description="The exact calendar termination year for the project's financial eligibility period.",
)
- funding_start: Optional[str] = Field(
+ funding_start: str | None = Field(
default=None,
description="The exact calendar activation year from which project expenses can be billed against the grant.",
)
- id: Optional[str] = Field(
+ id: str | None = Field(
default=None,
description="The unique global record ID for the project document (typically the Grant Agreement Number).",
)
- keywords: Optional[str] = Field(
+ keywords: str | None = Field(
default=None,
description="A general text string or comma-separated list of keywords applied to the project record.",
)
- keywords_nested: List[KeywordNested] = Field(
+ keywords_nested: list[KeywordNested] = Field(
default_factory=list,
description="Strictly tokenized and isolated keywords nested for targeted search engine aggregations.",
)
- link: Optional[str] = Field(
+ link: str | None = Field(
default=None,
description="The web URL linking directly to the project's public profile page on CORDIS or an equivalent registry.",
)
- objective: Optional[str] = Field(
+ objective: str | None = Field(
default=None,
description="The complete, detailed abstract outlining the goals, methodology, and expected impact of the project.",
)
- organization_nested: List[OrganizationNested] = Field(
+ organization_nested: list[OrganizationNested] = Field(
default_factory=list,
description="The full roster of academic, public, or private organizations participating in the project consortium.",
)
- programme_nested: List[ProgrammeNested] = Field(
+ programme_nested: list[ProgrammeNested] = Field(
default_factory=list,
description="The nested historical line of EU funding frameworks and structural grants supporting this project.",
)
- source: Optional[str] = Field(
+ source: str | None = Field(
default=None,
description="The specific upstream system or database repository from which this document was fetched or synced.",
)
- start_date: Optional[str] = Field(
+ start_date: str | None = Field(
default=None,
validation_alias="startDate",
description="The official calendar date marking the active kickoff and formal initiation of the project.",
)
- status: Optional[str] = Field(
+ status: str | None = Field(
default=None,
description="The lifecycle phase of the project (e.g., 'CLOSED', 'ONGOING').",
)
- teaser: Optional[str] = Field(
+ teaser: str | None = Field(
default=None,
description="A brief, high-level summary or editorial sentence written for general public consumption.",
)
- title: Optional[str] = Field(
+ title: str | None = Field(
default=None,
description="The comprehensive, full legal title describing the scope of the project.",
)
- total_cost: Optional[str] = Field(
+ total_cost: str | None = Field(
default=None,
validation_alias="totalCost",
description="The combined sum total budget estimated for the implementation of the entire project.",
diff --git a/service/src/main/inse/models/news_aktuell/aktuell.py b/service/src/main/inse/models/news_aktuell/aktuell.py
index 8076484c..a0b72a7a 100644
--- a/service/src/main/inse/models/news_aktuell/aktuell.py
+++ b/service/src/main/inse/models/news_aktuell/aktuell.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
Aktuell Index Backend Models
@@ -9,42 +8,42 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
+from typing import Any, ClassVar, Self
-from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
from inse.models.news_aktuell.link_item import LinkItem
from inse.models.news_aktuell.tag_item import TagItem
-from typing import Optional, Set
-from typing_extensions import Self
+from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr
from pydantic_core import to_jsonable_python
+
class Aktuell(BaseModel):
"""
Main document model for the aktuell index.
- """ # noqa: E501
- author: Optional[StrictStr] = None
- var_date: Optional[StrictStr] = Field(default=None, alias="date")
- date_full: Optional[StrictInt] = None
- date_year: Optional[StrictInt] = None
- full_content: Optional[StrictStr] = None
- further_content: Optional[StrictStr] = None
- intro_content: Optional[StrictStr] = None
- links_nested: Optional[List[LinkItem]] = None
- main_content: Optional[StrictStr] = None
- maintitle: Optional[StrictStr] = None
- redaktion: Optional[StrictStr] = None
- subtitle: Optional[StrictStr] = None
- tags: Optional[StrictStr] = None
- tags_nested: Optional[List[TagItem]] = None
- url: Optional[StrictStr] = None
- __properties: ClassVar[List[str]] = ["author", "date", "date_full", "date_year", "full_content", "further_content", "intro_content", "links_nested", "main_content", "maintitle", "redaktion", "subtitle", "tags", "tags_nested", "url"]
+ """
+ author: StrictStr | None = None
+ var_date: StrictStr | None = Field(default=None, alias="date")
+ date_full: StrictInt | None = None
+ date_year: StrictInt | None = None
+ full_content: StrictStr | None = None
+ further_content: StrictStr | None = None
+ intro_content: StrictStr | None = None
+ links_nested: list[LinkItem] | None = None
+ main_content: StrictStr | None = None
+ maintitle: StrictStr | None = None
+ redaktion: StrictStr | None = None
+ subtitle: StrictStr | None = None
+ tags: StrictStr | None = None
+ tags_nested: list[TagItem] | None = None
+ url: StrictStr | None = None
+ __properties: ClassVar[list[str]] = ["author", "date", "date_full", "date_year", "full_content", "further_content", "intro_content", "links_nested", "main_content", "maintitle", "redaktion", "subtitle", "tags", "tags_nested", "url"]
model_config = ConfigDict(
validate_by_name=True,
@@ -63,11 +62,11 @@ class Aktuell(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of Aktuell from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -77,7 +76,7 @@ class Aktuell(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -102,7 +101,7 @@ class Aktuell(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of Aktuell from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/news_aktuell/link_item.py b/service/src/main/inse/models/news_aktuell/link_item.py
index 2b3e07c0..08576bdf 100644
--- a/service/src/main/inse/models/news_aktuell/link_item.py
+++ b/service/src/main/inse/models/news_aktuell/link_item.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
Aktuell Index Backend Models
@@ -9,27 +8,27 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
+from typing import Any, ClassVar, Self
from pydantic import BaseModel, ConfigDict, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
from pydantic_core import to_jsonable_python
+
class LinkItem(BaseModel):
"""
Nested link object within the Aktuell document.
- """ # noqa: E501
- text: Optional[StrictStr] = None
- url: Optional[StrictStr] = None
- __properties: ClassVar[List[str]] = ["text", "url"]
+ """
+ text: StrictStr | None = None
+ url: StrictStr | None = None
+ __properties: ClassVar[list[str]] = ["text", "url"]
model_config = ConfigDict(
validate_by_name=True,
@@ -48,11 +47,11 @@ class LinkItem(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of LinkItem from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -62,7 +61,7 @@ class LinkItem(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -73,7 +72,7 @@ class LinkItem(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of LinkItem from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/news_aktuell/tag_item.py b/service/src/main/inse/models/news_aktuell/tag_item.py
index e7a64e1e..83721dbb 100644
--- a/service/src/main/inse/models/news_aktuell/tag_item.py
+++ b/service/src/main/inse/models/news_aktuell/tag_item.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
Aktuell Index Backend Models
@@ -9,26 +8,26 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
+from typing import Any, ClassVar, Self
from pydantic import BaseModel, ConfigDict, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
from pydantic_core import to_jsonable_python
+
class TagItem(BaseModel):
"""
Nested tag object within the Aktuell document.
- """ # noqa: E501
- tag: Optional[StrictStr] = None
- __properties: ClassVar[List[str]] = ["tag"]
+ """
+ tag: StrictStr | None = None
+ __properties: ClassVar[list[str]] = ["tag"]
model_config = ConfigDict(
validate_by_name=True,
@@ -47,11 +46,11 @@ class TagItem(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of TagItem from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -61,7 +60,7 @@ class TagItem(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -72,7 +71,7 @@ class TagItem(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of TagItem from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/openalex/author.py b/service/src/main/inse/models/openalex/author.py
index f318c85b..6bf010df 100644
--- a/service/src/main/inse/models/openalex/author.py
+++ b/service/src/main/inse/models/openalex/author.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
OpenAlex API
@@ -10,50 +9,51 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
-
from datetime import date, datetime
+from typing import Any, ClassVar, Self
+
from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
+from pydantic_core import to_jsonable_python
+
from inse.models.openalex.author_affiliations_inner import AuthorAffiliationsInner
from inse.models.openalex.author_counts_by_year_inner import AuthorCountsByYearInner
from inse.models.openalex.author_ids import AuthorIds
from inse.models.openalex.author_parsed_longest_name import AuthorParsedLongestName
from inse.models.openalex.author_summary_stats import AuthorSummaryStats
-from inse.models.openalex.work_topic import WorkTopic
from inse.models.openalex.dehydrated_institution import DehydratedInstitution
-from typing import Optional, Set
-from typing_extensions import Self
-from pydantic_core import to_jsonable_python
+from inse.models.openalex.work_topic import WorkTopic
+
class Author(BaseModel):
"""
A person who creates scholarly works
- """ # noqa: E501
- id: Optional[StrictStr] = Field(default=None, description="The OpenAlex ID for this author.")
- orcid: Optional[StrictStr] = Field(default=None, description="The ORCID ID for this author. This is the Canonical External ID for authors.")
- display_name: Optional[StrictStr] = Field(default=None, description="The name of the author as a single string.")
- display_name_alternatives: Optional[List[StrictStr]] = Field(default=None, description="Other ways this author's name has been displayed.")
- longest_name: Optional[StrictStr] = Field(default=None, description="The longest name variant found for this author across all their works.")
- parsed_longest_name: Optional[AuthorParsedLongestName] = None
- works_count: Optional[StrictInt] = Field(default=None, description="The number of works this author has created.")
- cited_by_count: Optional[StrictInt] = Field(default=None, description="The total number of works that cite a work this author has created.")
- summary_stats: Optional[AuthorSummaryStats] = None
- affiliations: Optional[List[AuthorAffiliationsInner]] = Field(default=None, description="List of affiliations this author has claimed in their publications. Each object has:")
- last_known_institutions: Optional[List[DehydratedInstitution]] = Field(default=None, description="This author's last known institutional affiliations. Each item is a dehydrated Institution object.")
- topics: Optional[List[WorkTopic]] = None
- counts_by_year: Optional[List[AuthorCountsByYearInner]] = Field(default=None, description="`works_count` and `cited_by_count` for each of the last ten years.")
- ids: Optional[AuthorIds] = None
- works_api_url: Optional[StrictStr] = Field(default=None, description="A URL that will get you a list of all this author's works.")
- created_date: Optional[date] = Field(default=None, description="When this author was added to OpenAlex (ISO 8601 date).")
- updated_date: Optional[datetime] = Field(default=None, description="When this author was last updated (ISO 8601 datetime).")
- __properties: ClassVar[List[str]] = ["id", "orcid", "display_name", "display_name_alternatives", "longest_name", "parsed_longest_name", "works_count", "cited_by_count", "summary_stats", "affiliations", "last_known_institutions", "topics", "counts_by_year", "ids", "works_api_url", "created_date", "updated_date"]
+ """
+ id: StrictStr | None = Field(default=None, description="The OpenAlex ID for this author.")
+ orcid: StrictStr | None = Field(default=None, description="The ORCID ID for this author. This is the Canonical External ID for authors.")
+ display_name: StrictStr | None = Field(default=None, description="The name of the author as a single string.")
+ display_name_alternatives: list[StrictStr] | None = Field(default=None, description="Other ways this author's name has been displayed.")
+ longest_name: StrictStr | None = Field(default=None, description="The longest name variant found for this author across all their works.")
+ parsed_longest_name: AuthorParsedLongestName | None = None
+ works_count: StrictInt | None = Field(default=None, description="The number of works this author has created.")
+ cited_by_count: StrictInt | None = Field(default=None, description="The total number of works that cite a work this author has created.")
+ summary_stats: AuthorSummaryStats | None = None
+ affiliations: list[AuthorAffiliationsInner] | None = Field(default=None, description="List of affiliations this author has claimed in their publications. Each object has:")
+ last_known_institutions: list[DehydratedInstitution] | None = Field(default=None, description="This author's last known institutional affiliations. Each item is a dehydrated Institution object.")
+ topics: list[WorkTopic] | None = None
+ counts_by_year: list[AuthorCountsByYearInner] | None = Field(default=None, description="`works_count` and `cited_by_count` for each of the last ten years.")
+ ids: AuthorIds | None = None
+ works_api_url: StrictStr | None = Field(default=None, description="A URL that will get you a list of all this author's works.")
+ created_date: date | None = Field(default=None, description="When this author was added to OpenAlex (ISO 8601 date).")
+ updated_date: datetime | None = Field(default=None, description="When this author was last updated (ISO 8601 datetime).")
+ __properties: ClassVar[list[str]] = ["id", "orcid", "display_name", "display_name_alternatives", "longest_name", "parsed_longest_name", "works_count", "cited_by_count", "summary_stats", "affiliations", "last_known_institutions", "topics", "counts_by_year", "ids", "works_api_url", "created_date", "updated_date"]
model_config = ConfigDict(
validate_by_name=True,
@@ -72,11 +72,11 @@ class Author(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of Author from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -86,7 +86,7 @@ class Author(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -134,7 +134,7 @@ class Author(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of Author from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/openalex/author_affiliations_inner.py b/service/src/main/inse/models/openalex/author_affiliations_inner.py
index 33985031..e08e689f 100644
--- a/service/src/main/inse/models/openalex/author_affiliations_inner.py
+++ b/service/src/main/inse/models/openalex/author_affiliations_inner.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
OpenAlex API
@@ -10,32 +9,32 @@ Contact: support@openalex.org
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
+from typing import Any, ClassVar, Self
from pydantic import BaseModel, ConfigDict, Field, StrictInt
-from typing import Any, ClassVar, Dict, List, Optional
-from inse.models.openalex.dehydrated_institution import DehydratedInstitution
-from typing import Optional, Set
-from typing_extensions import Self
from pydantic_core import to_jsonable_python
+from inse.models.openalex.dehydrated_institution import DehydratedInstitution
+
class AuthorAffiliationsInner(BaseModel):
"""
AuthorAffiliationsInner
- """ # noqa: E501
+ """
- institution: Optional[DehydratedInstitution] = Field(
+ institution: DehydratedInstitution | None = Field(
default=None,
description="[Dehydrated institution](/api-reference/institutions#the-dehydratedinstitution-object)",
)
- years: Optional[List[StrictInt]] = None
- __properties: ClassVar[List[str]] = ["institution", "years"]
+ years: list[StrictInt] | None = None
+ __properties: ClassVar[list[str]] = ["institution", "years"]
model_config = ConfigDict(
validate_by_name=True,
@@ -53,11 +52,11 @@ class AuthorAffiliationsInner(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of AuthorAffiliationsInner from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -67,7 +66,7 @@ class AuthorAffiliationsInner(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([])
+ excluded_fields: set[str] = set([])
_dict = self.model_dump(
by_alias=True,
@@ -80,7 +79,7 @@ class AuthorAffiliationsInner(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of AuthorAffiliationsInner from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/openalex/author_counts_by_year_inner.py b/service/src/main/inse/models/openalex/author_counts_by_year_inner.py
index 1c6152f0..bc811891 100644
--- a/service/src/main/inse/models/openalex/author_counts_by_year_inner.py
+++ b/service/src/main/inse/models/openalex/author_counts_by_year_inner.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
OpenAlex API
@@ -10,28 +9,28 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
+from typing import Any, ClassVar, Self
from pydantic import BaseModel, ConfigDict, StrictInt
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
from pydantic_core import to_jsonable_python
+
class AuthorCountsByYearInner(BaseModel):
"""
AuthorCountsByYearInner
- """ # noqa: E501
- year: Optional[StrictInt] = None
- works_count: Optional[StrictInt] = None
- cited_by_count: Optional[StrictInt] = None
- __properties: ClassVar[List[str]] = ["year", "works_count", "cited_by_count"]
+ """
+ year: StrictInt | None = None
+ works_count: StrictInt | None = None
+ cited_by_count: StrictInt | None = None
+ __properties: ClassVar[list[str]] = ["year", "works_count", "cited_by_count"]
model_config = ConfigDict(
validate_by_name=True,
@@ -50,11 +49,11 @@ class AuthorCountsByYearInner(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of AuthorCountsByYearInner from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -64,7 +63,7 @@ class AuthorCountsByYearInner(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -75,7 +74,7 @@ class AuthorCountsByYearInner(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of AuthorCountsByYearInner from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/openalex/author_ids.py b/service/src/main/inse/models/openalex/author_ids.py
index 70853b20..d06f8d06 100644
--- a/service/src/main/inse/models/openalex/author_ids.py
+++ b/service/src/main/inse/models/openalex/author_ids.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
OpenAlex API
@@ -10,28 +9,28 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
+from typing import Any, ClassVar, Self
from pydantic import BaseModel, ConfigDict, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
from pydantic_core import to_jsonable_python
+
class AuthorIds(BaseModel):
"""
External identifiers:
- """ # noqa: E501
- openalex: Optional[StrictStr] = None
- orcid: Optional[StrictStr] = None
- scopus: Optional[StrictStr] = None
- __properties: ClassVar[List[str]] = ["openalex", "orcid", "scopus"]
+ """
+ openalex: StrictStr | None = None
+ orcid: StrictStr | None = None
+ scopus: StrictStr | None = None
+ __properties: ClassVar[list[str]] = ["openalex", "orcid", "scopus"]
model_config = ConfigDict(
validate_by_name=True,
@@ -50,11 +49,11 @@ class AuthorIds(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of AuthorIds from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -64,7 +63,7 @@ class AuthorIds(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -75,7 +74,7 @@ class AuthorIds(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of AuthorIds from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/openalex/author_parsed_longest_name.py b/service/src/main/inse/models/openalex/author_parsed_longest_name.py
index d84b4cd5..e55d7629 100644
--- a/service/src/main/inse/models/openalex/author_parsed_longest_name.py
+++ b/service/src/main/inse/models/openalex/author_parsed_longest_name.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
OpenAlex API
@@ -10,30 +9,30 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
+from typing import Any, ClassVar, Self
from pydantic import BaseModel, ConfigDict, Field, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
from pydantic_core import to_jsonable_python
+
class AuthorParsedLongestName(BaseModel):
"""
The longest name parsed into its component parts.
- """ # noqa: E501
- first: Optional[StrictStr] = Field(default=None, description="First name (lowercased).")
- middle: Optional[StrictStr] = Field(default=None, description="Middle name or initial (lowercased).")
- last: Optional[StrictStr] = Field(default=None, description="Last name (lowercased).")
- suffix: Optional[StrictStr] = Field(default=None, description="Name suffix (e.g., Jr., III).")
- nickname: Optional[StrictStr] = Field(default=None, description="Nickname, if any.")
- __properties: ClassVar[List[str]] = ["first", "middle", "last", "suffix", "nickname"]
+ """
+ first: StrictStr | None = Field(default=None, description="First name (lowercased).")
+ middle: StrictStr | None = Field(default=None, description="Middle name or initial (lowercased).")
+ last: StrictStr | None = Field(default=None, description="Last name (lowercased).")
+ suffix: StrictStr | None = Field(default=None, description="Name suffix (e.g., Jr., III).")
+ nickname: StrictStr | None = Field(default=None, description="Nickname, if any.")
+ __properties: ClassVar[list[str]] = ["first", "middle", "last", "suffix", "nickname"]
model_config = ConfigDict(
validate_by_name=True,
@@ -52,11 +51,11 @@ class AuthorParsedLongestName(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of AuthorParsedLongestName from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -66,7 +65,7 @@ class AuthorParsedLongestName(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -77,7 +76,7 @@ class AuthorParsedLongestName(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of AuthorParsedLongestName from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/openalex/author_summary_stats.py b/service/src/main/inse/models/openalex/author_summary_stats.py
index 4a00d974..f3768097 100644
--- a/service/src/main/inse/models/openalex/author_summary_stats.py
+++ b/service/src/main/inse/models/openalex/author_summary_stats.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
OpenAlex API
@@ -10,28 +9,28 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
+from typing import Any, ClassVar, Self
from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt
-from typing import Any, ClassVar, Dict, List, Optional, Union
-from typing import Optional, Set
-from typing_extensions import Self
from pydantic_core import to_jsonable_python
+
class AuthorSummaryStats(BaseModel):
"""
Citation metrics:
- """ # noqa: E501
- var_2yr_mean_citedness: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="2yr_mean_citedness")
- h_index: Optional[StrictInt] = None
- i10_index: Optional[StrictInt] = None
- __properties: ClassVar[List[str]] = ["2yr_mean_citedness", "h_index", "i10_index"]
+ """
+ var_2yr_mean_citedness: StrictFloat | StrictInt | None = Field(default=None, alias="2yr_mean_citedness")
+ h_index: StrictInt | None = None
+ i10_index: StrictInt | None = None
+ __properties: ClassVar[list[str]] = ["2yr_mean_citedness", "h_index", "i10_index"]
model_config = ConfigDict(
validate_by_name=True,
@@ -50,11 +49,11 @@ class AuthorSummaryStats(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of AuthorSummaryStats from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -64,7 +63,7 @@ class AuthorSummaryStats(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -75,7 +74,7 @@ class AuthorSummaryStats(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of AuthorSummaryStats from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/openalex/author_topics_inner.py b/service/src/main/inse/models/openalex/author_topics_inner.py
index e9471d9f..ce848a48 100644
--- a/service/src/main/inse/models/openalex/author_topics_inner.py
+++ b/service/src/main/inse/models/openalex/author_topics_inner.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
OpenAlex API
@@ -10,28 +9,28 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
+from typing import Any, ClassVar, Self
from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
from pydantic_core import to_jsonable_python
+
class AuthorTopicsInner(BaseModel):
"""
AuthorTopicsInner
- """ # noqa: E501
- id: Optional[StrictStr] = None
- display_name: Optional[StrictStr] = None
- count: Optional[StrictInt] = None
- __properties: ClassVar[List[str]] = ["id", "display_name", "count"]
+ """
+ id: StrictStr | None = None
+ display_name: StrictStr | None = None
+ count: StrictInt | None = None
+ __properties: ClassVar[list[str]] = ["id", "display_name", "count"]
model_config = ConfigDict(
validate_by_name=True,
@@ -50,11 +49,11 @@ class AuthorTopicsInner(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of AuthorTopicsInner from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -64,7 +63,7 @@ class AuthorTopicsInner(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -75,7 +74,7 @@ class AuthorTopicsInner(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of AuthorTopicsInner from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/openalex/authors_list_response.py b/service/src/main/inse/models/openalex/authors_list_response.py
index 8a266d1e..91636889 100644
--- a/service/src/main/inse/models/openalex/authors_list_response.py
+++ b/service/src/main/inse/models/openalex/authors_list_response.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
OpenAlex API
@@ -10,31 +9,32 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
+from typing import Any, ClassVar, Self
from pydantic import BaseModel, ConfigDict
-from typing import Any, ClassVar, Dict, List, Optional
+from pydantic_core import to_jsonable_python
+
from inse.models.openalex.author import Author
from inse.models.openalex.group_by_result import GroupByResult
from inse.models.openalex.meta import Meta
-from typing import Optional, Set
-from typing_extensions import Self
-from pydantic_core import to_jsonable_python
+
class AuthorsListResponse(BaseModel):
"""
AuthorsListResponse
- """ # noqa: E501
- meta: Optional[Meta] = None
- results: Optional[List[Author]] = None
- group_by: Optional[List[GroupByResult]] = None
- __properties: ClassVar[List[str]] = ["meta", "results", "group_by"]
+ """
+ meta: Meta | None = None
+ results: list[Author] | None = None
+ group_by: list[GroupByResult] | None = None
+ __properties: ClassVar[list[str]] = ["meta", "results", "group_by"]
model_config = ConfigDict(
validate_by_name=True,
@@ -53,11 +53,11 @@ class AuthorsListResponse(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of AuthorsListResponse from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -67,7 +67,7 @@ class AuthorsListResponse(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -95,7 +95,7 @@ class AuthorsListResponse(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of AuthorsListResponse from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/openalex/authorship.py b/service/src/main/inse/models/openalex/authorship.py
index 5f112d23..8082f7d0 100644
--- a/service/src/main/inse/models/openalex/authorship.py
+++ b/service/src/main/inse/models/openalex/authorship.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
OpenAlex API
@@ -10,34 +9,42 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
+from typing import Any, ClassVar, Self
+
+from pydantic import (
+ BaseModel,
+ ConfigDict,
+ Field,
+ StrictBool,
+ StrictStr,
+ field_validator,
+)
+from pydantic_core import to_jsonable_python
-from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr, field_validator
-from typing import Any, ClassVar, Dict, List, Optional
from inse.models.openalex.dehydrated_author import DehydratedAuthor
from inse.models.openalex.dehydrated_institution import DehydratedInstitution
-from typing import Optional, Set
-from typing_extensions import Self
-from pydantic_core import to_jsonable_python
+
class Authorship(BaseModel):
"""
Author and their affiliation for a work
- """ # noqa: E501
- author_position: Optional[StrictStr] = Field(default=None, description="Position in author list")
- author: Optional[DehydratedAuthor] = Field(default=None, description="[Dehydrated author](/api-reference/authors#the-dehydratedauthor-object)")
- institutions: Optional[List[DehydratedInstitution]] = Field(default=None, description="[Dehydrated institutions](/api-reference/institutions#the-dehydratedinstitution-object)")
- countries: Optional[List[StrictStr]] = Field(default=None, description="Country codes of affiliations")
- is_corresponding: Optional[StrictBool] = Field(default=None, description="Whether this is the corresponding author")
- raw_author_name: Optional[StrictStr] = Field(default=None, description="Author name as it appears in the work")
- raw_affiliation_strings: Optional[List[StrictStr]] = None
- __properties: ClassVar[List[str]] = ["author_position", "author", "institutions", "countries", "is_corresponding", "raw_author_name", "raw_affiliation_strings"]
+ """
+ author_position: StrictStr | None = Field(default=None, description="Position in author list")
+ author: DehydratedAuthor | None = Field(default=None, description="[Dehydrated author](/api-reference/authors#the-dehydratedauthor-object)")
+ institutions: list[DehydratedInstitution] | None = Field(default=None, description="[Dehydrated institutions](/api-reference/institutions#the-dehydratedinstitution-object)")
+ countries: list[StrictStr] | None = Field(default=None, description="Country codes of affiliations")
+ is_corresponding: StrictBool | None = Field(default=None, description="Whether this is the corresponding author")
+ raw_author_name: StrictStr | None = Field(default=None, description="Author name as it appears in the work")
+ raw_affiliation_strings: list[StrictStr] | None = None
+ __properties: ClassVar[list[str]] = ["author_position", "author", "institutions", "countries", "is_corresponding", "raw_author_name", "raw_affiliation_strings"]
@field_validator('author_position')
def author_position_validate_enum(cls, value):
@@ -66,11 +73,11 @@ class Authorship(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of Authorship from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -80,7 +87,7 @@ class Authorship(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -101,7 +108,7 @@ class Authorship(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of Authorship from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/openalex/autocomplete_response.py b/service/src/main/inse/models/openalex/autocomplete_response.py
index 953a05a3..e3758e08 100644
--- a/service/src/main/inse/models/openalex/autocomplete_response.py
+++ b/service/src/main/inse/models/openalex/autocomplete_response.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
OpenAlex API
@@ -10,29 +9,32 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
+from typing import Any, ClassVar, Self
from pydantic import BaseModel, ConfigDict
-from typing import Any, ClassVar, Dict, List, Optional
-from inse.models.openalex.autocomplete_response_meta import AutocompleteResponseMeta
-from inse.models.openalex.autocomplete_response_results_inner import AutocompleteResponseResultsInner
-from typing import Optional, Set
-from typing_extensions import Self
from pydantic_core import to_jsonable_python
+from inse.models.openalex.autocomplete_response_meta import AutocompleteResponseMeta
+from inse.models.openalex.autocomplete_response_results_inner import (
+ AutocompleteResponseResultsInner,
+)
+
+
class AutocompleteResponse(BaseModel):
"""
AutocompleteResponse
- """ # noqa: E501
- meta: Optional[AutocompleteResponseMeta] = None
- results: Optional[List[AutocompleteResponseResultsInner]] = None
- __properties: ClassVar[List[str]] = ["meta", "results"]
+ """
+ meta: AutocompleteResponseMeta | None = None
+ results: list[AutocompleteResponseResultsInner] | None = None
+ __properties: ClassVar[list[str]] = ["meta", "results"]
model_config = ConfigDict(
validate_by_name=True,
@@ -51,11 +53,11 @@ class AutocompleteResponse(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of AutocompleteResponse from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -65,7 +67,7 @@ class AutocompleteResponse(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -86,7 +88,7 @@ class AutocompleteResponse(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of AutocompleteResponse from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/openalex/autocomplete_response_meta.py b/service/src/main/inse/models/openalex/autocomplete_response_meta.py
index ca195725..945553b0 100644
--- a/service/src/main/inse/models/openalex/autocomplete_response_meta.py
+++ b/service/src/main/inse/models/openalex/autocomplete_response_meta.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
OpenAlex API
@@ -10,27 +9,27 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
+from typing import Any, ClassVar, Self
from pydantic import BaseModel, ConfigDict, StrictInt
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
from pydantic_core import to_jsonable_python
+
class AutocompleteResponseMeta(BaseModel):
"""
AutocompleteResponseMeta
- """ # noqa: E501
- count: Optional[StrictInt] = None
- db_response_time_ms: Optional[StrictInt] = None
- __properties: ClassVar[List[str]] = ["count", "db_response_time_ms"]
+ """
+ count: StrictInt | None = None
+ db_response_time_ms: StrictInt | None = None
+ __properties: ClassVar[list[str]] = ["count", "db_response_time_ms"]
model_config = ConfigDict(
validate_by_name=True,
@@ -49,11 +48,11 @@ class AutocompleteResponseMeta(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of AutocompleteResponseMeta from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -63,7 +62,7 @@ class AutocompleteResponseMeta(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -74,7 +73,7 @@ class AutocompleteResponseMeta(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of AutocompleteResponseMeta from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/openalex/autocomplete_response_results_inner.py b/service/src/main/inse/models/openalex/autocomplete_response_results_inner.py
index ae2d0b35..a1c21a25 100644
--- a/service/src/main/inse/models/openalex/autocomplete_response_results_inner.py
+++ b/service/src/main/inse/models/openalex/autocomplete_response_results_inner.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
OpenAlex API
@@ -10,32 +9,32 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
+from typing import Any, ClassVar, Self
from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
from pydantic_core import to_jsonable_python
+
class AutocompleteResponseResultsInner(BaseModel):
"""
AutocompleteResponseResultsInner
- """ # noqa: E501
- id: Optional[StrictStr] = None
- display_name: Optional[StrictStr] = None
- hint: Optional[StrictStr] = None
- cited_by_count: Optional[StrictInt] = None
- works_count: Optional[StrictInt] = None
- entity_type: Optional[StrictStr] = None
- external_id: Optional[StrictStr] = None
- __properties: ClassVar[List[str]] = ["id", "display_name", "hint", "cited_by_count", "works_count", "entity_type", "external_id"]
+ """
+ id: StrictStr | None = None
+ display_name: StrictStr | None = None
+ hint: StrictStr | None = None
+ cited_by_count: StrictInt | None = None
+ works_count: StrictInt | None = None
+ entity_type: StrictStr | None = None
+ external_id: StrictStr | None = None
+ __properties: ClassVar[list[str]] = ["id", "display_name", "hint", "cited_by_count", "works_count", "entity_type", "external_id"]
model_config = ConfigDict(
validate_by_name=True,
@@ -54,11 +53,11 @@ class AutocompleteResponseResultsInner(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of AutocompleteResponseResultsInner from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -68,7 +67,7 @@ class AutocompleteResponseResultsInner(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -79,7 +78,7 @@ class AutocompleteResponseResultsInner(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of AutocompleteResponseResultsInner from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/openalex/award.py b/service/src/main/inse/models/openalex/award.py
index 7b376d84..ce5a4bf3 100644
--- a/service/src/main/inse/models/openalex/award.py
+++ b/service/src/main/inse/models/openalex/award.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
OpenAlex API
@@ -10,31 +9,31 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
+from typing import Any, ClassVar, Self
from pydantic import BaseModel, ConfigDict, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
from pydantic_core import to_jsonable_python
+
class Award(BaseModel):
"""
Award
- """ # noqa: E501
- id: Optional[StrictStr] = None
- display_name: Optional[StrictStr] = None
- funder_award_id: Optional[StrictStr] = None
- funder_id: Optional[StrictStr] = None
- funder_display_name: Optional[StrictStr] = None
- doi: Optional[StrictStr] = None
- __properties: ClassVar[List[str]] = ["id", "display_name", "funder_award_id", "funder_id", "funder_display_name", "doi"]
+ """
+ id: StrictStr | None = None
+ display_name: StrictStr | None = None
+ funder_award_id: StrictStr | None = None
+ funder_id: StrictStr | None = None
+ funder_display_name: StrictStr | None = None
+ doi: StrictStr | None = None
+ __properties: ClassVar[list[str]] = ["id", "display_name", "funder_award_id", "funder_id", "funder_display_name", "doi"]
model_config = ConfigDict(
validate_by_name=True,
@@ -53,11 +52,11 @@ class Award(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of Award from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -67,7 +66,7 @@ class Award(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -78,7 +77,7 @@ class Award(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of Award from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/openalex/award_full.py b/service/src/main/inse/models/openalex/award_full.py
index 06a86912..cd17562d 100644
--- a/service/src/main/inse/models/openalex/award_full.py
+++ b/service/src/main/inse/models/openalex/award_full.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
OpenAlex API
@@ -10,51 +9,52 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
-
from datetime import date, datetime
+from typing import Any, ClassVar, Self
+
from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional, Union
-from inse.models.openalex.award_full_funder import AwardFullFunder
-from typing import Optional, Set
-from typing_extensions import Self
from pydantic_core import to_jsonable_python
+from inse.models.openalex.award_full_funder import AwardFullFunder
+
+
class AwardFull(BaseModel):
"""
Research grant or funding award
- """ # noqa: E501
- id: Optional[StrictStr] = Field(default=None, description="The OpenAlex ID for this award.")
- display_name: Optional[StrictStr] = Field(default=None, description="The name of the award, if available.")
- description: Optional[StrictStr] = Field(default=None, description="A description of the award, if available.")
- funder_award_id: Optional[StrictStr] = Field(default=None, description="The funder's internal ID for this award.")
- funder: Optional[AwardFullFunder] = None
- funded_outputs: Optional[List[StrictStr]] = Field(default=None, description="OpenAlex IDs of works funded by this award (first 100).")
- funded_outputs_count: Optional[StrictInt] = Field(default=None, description="Total number of works funded by this award.")
- amount: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="The funding amount, if available.")
- currency: Optional[StrictStr] = Field(default=None, description="The currency of the funding amount, if available.")
- funding_type: Optional[StrictStr] = Field(default=None, description="The type of funding, if available.")
- funder_scheme: Optional[StrictStr] = Field(default=None, description="The funder's scheme or program, if available.")
- start_date: Optional[date] = Field(default=None, description="Start date of the award (ISO 8601), if available.")
- end_date: Optional[date] = Field(default=None, description="End date of the award (ISO 8601), if available.")
- start_year: Optional[StrictInt] = Field(default=None, description="Start year of the award, if available.")
- end_year: Optional[StrictInt] = Field(default=None, description="End year of the award, if available.")
- landing_page_url: Optional[StrictStr] = Field(default=None, description="URL to the award's landing page, if available.")
- doi: Optional[StrictStr] = Field(default=None, description="DOI for this award, if available.")
- provenance: Optional[StrictStr] = Field(default=None, description="The source of this award data.")
- lead_investigator: Optional[Dict[str, Any]] = Field(default=None, description="The lead investigator for this award, if available.")
- co_lead_investigator: Optional[Dict[str, Any]] = Field(default=None, description="The co-lead investigator, if available.")
- investigators: Optional[List[Any]] = Field(default=None, description="List of investigators on this award, if available.")
- works_api_url: Optional[StrictStr] = Field(default=None, description="A URL that returns all works funded by this award.")
- created_date: Optional[date] = Field(default=None, description="When this award was added to OpenAlex (ISO 8601 date).")
- updated_date: Optional[datetime] = Field(default=None, description="When this award was last updated (ISO 8601 datetime).")
- __properties: ClassVar[List[str]] = ["id", "display_name", "description", "funder_award_id", "funder", "funded_outputs", "funded_outputs_count", "amount", "currency", "funding_type", "funder_scheme", "start_date", "end_date", "start_year", "end_year", "landing_page_url", "doi", "provenance", "lead_investigator", "co_lead_investigator", "investigators", "works_api_url", "created_date", "updated_date"]
+ """
+ id: StrictStr | None = Field(default=None, description="The OpenAlex ID for this award.")
+ display_name: StrictStr | None = Field(default=None, description="The name of the award, if available.")
+ description: StrictStr | None = Field(default=None, description="A description of the award, if available.")
+ funder_award_id: StrictStr | None = Field(default=None, description="The funder's internal ID for this award.")
+ funder: AwardFullFunder | None = None
+ funded_outputs: list[StrictStr] | None = Field(default=None, description="OpenAlex IDs of works funded by this award (first 100).")
+ funded_outputs_count: StrictInt | None = Field(default=None, description="Total number of works funded by this award.")
+ amount: StrictFloat | StrictInt | None = Field(default=None, description="The funding amount, if available.")
+ currency: StrictStr | None = Field(default=None, description="The currency of the funding amount, if available.")
+ funding_type: StrictStr | None = Field(default=None, description="The type of funding, if available.")
+ funder_scheme: StrictStr | None = Field(default=None, description="The funder's scheme or program, if available.")
+ start_date: date | None = Field(default=None, description="Start date of the award (ISO 8601), if available.")
+ end_date: date | None = Field(default=None, description="End date of the award (ISO 8601), if available.")
+ start_year: StrictInt | None = Field(default=None, description="Start year of the award, if available.")
+ end_year: StrictInt | None = Field(default=None, description="End year of the award, if available.")
+ landing_page_url: StrictStr | None = Field(default=None, description="URL to the award's landing page, if available.")
+ doi: StrictStr | None = Field(default=None, description="DOI for this award, if available.")
+ provenance: StrictStr | None = Field(default=None, description="The source of this award data.")
+ lead_investigator: dict[str, Any] | None = Field(default=None, description="The lead investigator for this award, if available.")
+ co_lead_investigator: dict[str, Any] | None = Field(default=None, description="The co-lead investigator, if available.")
+ investigators: list[Any] | None = Field(default=None, description="List of investigators on this award, if available.")
+ works_api_url: StrictStr | None = Field(default=None, description="A URL that returns all works funded by this award.")
+ created_date: date | None = Field(default=None, description="When this award was added to OpenAlex (ISO 8601 date).")
+ updated_date: datetime | None = Field(default=None, description="When this award was last updated (ISO 8601 datetime).")
+ __properties: ClassVar[list[str]] = ["id", "display_name", "description", "funder_award_id", "funder", "funded_outputs", "funded_outputs_count", "amount", "currency", "funding_type", "funder_scheme", "start_date", "end_date", "start_year", "end_year", "landing_page_url", "doi", "provenance", "lead_investigator", "co_lead_investigator", "investigators", "works_api_url", "created_date", "updated_date"]
model_config = ConfigDict(
validate_by_name=True,
@@ -73,11 +73,11 @@ class AwardFull(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of AwardFull from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -87,7 +87,7 @@ class AwardFull(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -101,7 +101,7 @@ class AwardFull(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of AwardFull from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/openalex/award_full_funder.py b/service/src/main/inse/models/openalex/award_full_funder.py
index d49607a6..a509a212 100644
--- a/service/src/main/inse/models/openalex/award_full_funder.py
+++ b/service/src/main/inse/models/openalex/award_full_funder.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
OpenAlex API
@@ -10,28 +9,28 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
+from typing import Any, ClassVar, Self
from pydantic import BaseModel, ConfigDict, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
from pydantic_core import to_jsonable_python
+
class AwardFullFunder(BaseModel):
"""
The [funder](/api-reference/funders) of this award
- """ # noqa: E501
- id: Optional[StrictStr] = None
- display_name: Optional[StrictStr] = None
- doi: Optional[StrictStr] = None
- __properties: ClassVar[List[str]] = ["id", "display_name", "doi"]
+ """
+ id: StrictStr | None = None
+ display_name: StrictStr | None = None
+ doi: StrictStr | None = None
+ __properties: ClassVar[list[str]] = ["id", "display_name", "doi"]
model_config = ConfigDict(
validate_by_name=True,
@@ -50,11 +49,11 @@ class AwardFullFunder(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of AwardFullFunder from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -64,7 +63,7 @@ class AwardFullFunder(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -75,7 +74,7 @@ class AwardFullFunder(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of AwardFullFunder from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/openalex/awards_list_response.py b/service/src/main/inse/models/openalex/awards_list_response.py
index c28e4f3b..c70d755c 100644
--- a/service/src/main/inse/models/openalex/awards_list_response.py
+++ b/service/src/main/inse/models/openalex/awards_list_response.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
OpenAlex API
@@ -10,29 +9,30 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
+from typing import Any, ClassVar, Self
from pydantic import BaseModel, ConfigDict
-from typing import Any, ClassVar, Dict, List, Optional
+from pydantic_core import to_jsonable_python
+
from inse.models.openalex.award_full import AwardFull
from inse.models.openalex.meta import Meta
-from typing import Optional, Set
-from typing_extensions import Self
-from pydantic_core import to_jsonable_python
+
class AwardsListResponse(BaseModel):
"""
AwardsListResponse
- """ # noqa: E501
- meta: Optional[Meta] = None
- results: Optional[List[AwardFull]] = None
- __properties: ClassVar[List[str]] = ["meta", "results"]
+ """
+ meta: Meta | None = None
+ results: list[AwardFull] | None = None
+ __properties: ClassVar[list[str]] = ["meta", "results"]
model_config = ConfigDict(
validate_by_name=True,
@@ -51,11 +51,11 @@ class AwardsListResponse(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of AwardsListResponse from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -65,7 +65,7 @@ class AwardsListResponse(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -86,7 +86,7 @@ class AwardsListResponse(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of AwardsListResponse from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/openalex/concept.py b/service/src/main/inse/models/openalex/concept.py
index 063f7b5a..7c0bf026 100644
--- a/service/src/main/inse/models/openalex/concept.py
+++ b/service/src/main/inse/models/openalex/concept.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
OpenAlex API
@@ -10,43 +9,44 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
-
from datetime import date, datetime
+from typing import Any, ClassVar, Self
+
from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from inse.models.openalex.concept_ids import ConceptIds
-from typing import Optional, Set
-from typing_extensions import Self
from pydantic_core import to_jsonable_python
+from inse.models.openalex.concept_ids import ConceptIds
+
+
class Concept(BaseModel):
"""
Legacy research area taxonomy (deprecated)
- """ # noqa: E501
- id: Optional[StrictStr] = Field(default=None, description="The OpenAlex ID for this concept.")
- display_name: Optional[StrictStr] = Field(default=None, description="The name of the concept.")
- description: Optional[StrictStr] = Field(default=None, description="A description of this concept.")
- level: Optional[StrictInt] = Field(default=None, description="The hierarchical level (0 = top level, higher = more specific).")
- wikidata: Optional[StrictStr] = Field(default=None, description="The Wikidata ID for this concept.")
- ids: Optional[ConceptIds] = None
- image_url: Optional[StrictStr] = Field(default=None, description="URL for an image representing this concept.")
- image_thumbnail_url: Optional[StrictStr] = Field(default=None, description="Smaller version of `image_url`.")
- works_count: Optional[StrictInt] = Field(default=None, description="The number of works tagged with this concept.")
- cited_by_count: Optional[StrictInt] = Field(default=None, description="Total citations to works tagged with this concept.")
- ancestors: Optional[List[Any]] = Field(default=None, description="Parent concepts in the hierarchy.")
- related_concepts: Optional[List[Any]] = Field(default=None, description="Related concepts with similarity scores.")
- counts_by_year: Optional[List[Any]] = Field(default=None, description="`works_count` and `cited_by_count` for each of the last ten years.")
- works_api_url: Optional[StrictStr] = Field(default=None, description="A URL that returns all works tagged with this concept.")
- created_date: Optional[date] = Field(default=None, description="When this concept was added to OpenAlex (ISO 8601 date).")
- updated_date: Optional[datetime] = Field(default=None, description="When this concept was last updated (ISO 8601 datetime).")
- __properties: ClassVar[List[str]] = ["id", "display_name", "description", "level", "wikidata", "ids", "image_url", "image_thumbnail_url", "works_count", "cited_by_count", "ancestors", "related_concepts", "counts_by_year", "works_api_url", "created_date", "updated_date"]
+ """
+ id: StrictStr | None = Field(default=None, description="The OpenAlex ID for this concept.")
+ display_name: StrictStr | None = Field(default=None, description="The name of the concept.")
+ description: StrictStr | None = Field(default=None, description="A description of this concept.")
+ level: StrictInt | None = Field(default=None, description="The hierarchical level (0 = top level, higher = more specific).")
+ wikidata: StrictStr | None = Field(default=None, description="The Wikidata ID for this concept.")
+ ids: ConceptIds | None = None
+ image_url: StrictStr | None = Field(default=None, description="URL for an image representing this concept.")
+ image_thumbnail_url: StrictStr | None = Field(default=None, description="Smaller version of `image_url`.")
+ works_count: StrictInt | None = Field(default=None, description="The number of works tagged with this concept.")
+ cited_by_count: StrictInt | None = Field(default=None, description="Total citations to works tagged with this concept.")
+ ancestors: list[Any] | None = Field(default=None, description="Parent concepts in the hierarchy.")
+ related_concepts: list[Any] | None = Field(default=None, description="Related concepts with similarity scores.")
+ counts_by_year: list[Any] | None = Field(default=None, description="`works_count` and `cited_by_count` for each of the last ten years.")
+ works_api_url: StrictStr | None = Field(default=None, description="A URL that returns all works tagged with this concept.")
+ created_date: date | None = Field(default=None, description="When this concept was added to OpenAlex (ISO 8601 date).")
+ updated_date: datetime | None = Field(default=None, description="When this concept was last updated (ISO 8601 datetime).")
+ __properties: ClassVar[list[str]] = ["id", "display_name", "description", "level", "wikidata", "ids", "image_url", "image_thumbnail_url", "works_count", "cited_by_count", "ancestors", "related_concepts", "counts_by_year", "works_api_url", "created_date", "updated_date"]
model_config = ConfigDict(
validate_by_name=True,
@@ -65,11 +65,11 @@ class Concept(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of Concept from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -79,7 +79,7 @@ class Concept(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -93,7 +93,7 @@ class Concept(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of Concept from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/openalex/concept_ids.py b/service/src/main/inse/models/openalex/concept_ids.py
index 090a8c3f..d8b24e2b 100644
--- a/service/src/main/inse/models/openalex/concept_ids.py
+++ b/service/src/main/inse/models/openalex/concept_ids.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
OpenAlex API
@@ -10,29 +9,29 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
+from typing import Any, ClassVar, Self
from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
from pydantic_core import to_jsonable_python
+
class ConceptIds(BaseModel):
"""
External identifiers:
- """ # noqa: E501
- openalex: Optional[StrictStr] = None
- wikidata: Optional[StrictStr] = None
- wikipedia: Optional[StrictStr] = None
- mag: Optional[StrictInt] = None
- __properties: ClassVar[List[str]] = ["openalex", "wikidata", "wikipedia", "mag"]
+ """
+ openalex: StrictStr | None = None
+ wikidata: StrictStr | None = None
+ wikipedia: StrictStr | None = None
+ mag: StrictInt | None = None
+ __properties: ClassVar[list[str]] = ["openalex", "wikidata", "wikipedia", "mag"]
model_config = ConfigDict(
validate_by_name=True,
@@ -51,11 +50,11 @@ class ConceptIds(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of ConceptIds from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -65,7 +64,7 @@ class ConceptIds(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -76,7 +75,7 @@ class ConceptIds(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of ConceptIds from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/openalex/concepts_list_response.py b/service/src/main/inse/models/openalex/concepts_list_response.py
index 4425cd6f..477dd726 100644
--- a/service/src/main/inse/models/openalex/concepts_list_response.py
+++ b/service/src/main/inse/models/openalex/concepts_list_response.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
OpenAlex API
@@ -10,29 +9,30 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
+from typing import Any, ClassVar, Self
from pydantic import BaseModel, ConfigDict
-from typing import Any, ClassVar, Dict, List, Optional
+from pydantic_core import to_jsonable_python
+
from inse.models.openalex.concept import Concept
from inse.models.openalex.meta import Meta
-from typing import Optional, Set
-from typing_extensions import Self
-from pydantic_core import to_jsonable_python
+
class ConceptsListResponse(BaseModel):
"""
ConceptsListResponse
- """ # noqa: E501
- meta: Optional[Meta] = None
- results: Optional[List[Concept]] = None
- __properties: ClassVar[List[str]] = ["meta", "results"]
+ """
+ meta: Meta | None = None
+ results: list[Concept] | None = None
+ __properties: ClassVar[list[str]] = ["meta", "results"]
model_config = ConfigDict(
validate_by_name=True,
@@ -51,11 +51,11 @@ class ConceptsListResponse(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of ConceptsListResponse from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -65,7 +65,7 @@ class ConceptsListResponse(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -86,7 +86,7 @@ class ConceptsListResponse(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of ConceptsListResponse from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/openalex/continent.py b/service/src/main/inse/models/openalex/continent.py
index e8fbe4d2..8b89f852 100644
--- a/service/src/main/inse/models/openalex/continent.py
+++ b/service/src/main/inse/models/openalex/continent.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
OpenAlex API
@@ -10,36 +9,37 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
-
from datetime import date, datetime
+from typing import Any, ClassVar, Self
+
from pydantic import BaseModel, ConfigDict, Field, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
+from pydantic_core import to_jsonable_python
+
from inse.models.openalex.continent_ids import ContinentIds
from inse.models.openalex.domain_fields_inner import DomainFieldsInner
-from typing import Optional, Set
-from typing_extensions import Self
-from pydantic_core import to_jsonable_python
+
class Continent(BaseModel):
"""
Geographic continent (7 total)
- """ # noqa: E501
- id: Optional[StrictStr] = Field(default=None, description="The OpenAlex ID for this continent (uses Wikidata Q-IDs).")
- display_name: Optional[StrictStr] = Field(default=None, description="The name of the continent.")
- description: Optional[StrictStr] = Field(default=None, description="A brief description of the continent.")
- display_name_alternatives: Optional[List[StrictStr]] = Field(default=None, description="Alternate names for this continent.")
- countries: Optional[List[DomainFieldsInner]] = Field(default=None, description="The countries within this continent. Each object has `id` and `display_name`.")
- ids: Optional[ContinentIds] = None
- created_date: Optional[date] = Field(default=None, description="When this continent was added to OpenAlex (ISO 8601 date).")
- updated_date: Optional[datetime] = Field(default=None, description="When this continent was last updated (ISO 8601 datetime).")
- __properties: ClassVar[List[str]] = ["id", "display_name", "description", "display_name_alternatives", "countries", "ids", "created_date", "updated_date"]
+ """
+ id: StrictStr | None = Field(default=None, description="The OpenAlex ID for this continent (uses Wikidata Q-IDs).")
+ display_name: StrictStr | None = Field(default=None, description="The name of the continent.")
+ description: StrictStr | None = Field(default=None, description="A brief description of the continent.")
+ display_name_alternatives: list[StrictStr] | None = Field(default=None, description="Alternate names for this continent.")
+ countries: list[DomainFieldsInner] | None = Field(default=None, description="The countries within this continent. Each object has `id` and `display_name`.")
+ ids: ContinentIds | None = None
+ created_date: date | None = Field(default=None, description="When this continent was added to OpenAlex (ISO 8601 date).")
+ updated_date: datetime | None = Field(default=None, description="When this continent was last updated (ISO 8601 datetime).")
+ __properties: ClassVar[list[str]] = ["id", "display_name", "description", "display_name_alternatives", "countries", "ids", "created_date", "updated_date"]
model_config = ConfigDict(
validate_by_name=True,
@@ -58,11 +58,11 @@ class Continent(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of Continent from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -72,7 +72,7 @@ class Continent(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -93,7 +93,7 @@ class Continent(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of Continent from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/openalex/continent_ids.py b/service/src/main/inse/models/openalex/continent_ids.py
index 087bda24..441a4f93 100644
--- a/service/src/main/inse/models/openalex/continent_ids.py
+++ b/service/src/main/inse/models/openalex/continent_ids.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
OpenAlex API
@@ -10,27 +9,27 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
+from typing import Any, ClassVar, Self
from pydantic import BaseModel, ConfigDict, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
from pydantic_core import to_jsonable_python
+
class ContinentIds(BaseModel):
"""
External identifiers:
- """ # noqa: E501
- openalex: Optional[StrictStr] = None
- wikidata: Optional[StrictStr] = None
- __properties: ClassVar[List[str]] = ["openalex", "wikidata"]
+ """
+ openalex: StrictStr | None = None
+ wikidata: StrictStr | None = None
+ __properties: ClassVar[list[str]] = ["openalex", "wikidata"]
model_config = ConfigDict(
validate_by_name=True,
@@ -49,11 +48,11 @@ class ContinentIds(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of ContinentIds from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -63,7 +62,7 @@ class ContinentIds(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -74,7 +73,7 @@ class ContinentIds(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of ContinentIds from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/openalex/continents_list_response.py b/service/src/main/inse/models/openalex/continents_list_response.py
index ceeb4e68..3bd7b2e8 100644
--- a/service/src/main/inse/models/openalex/continents_list_response.py
+++ b/service/src/main/inse/models/openalex/continents_list_response.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
OpenAlex API
@@ -10,29 +9,30 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
+from typing import Any, ClassVar, Self
from pydantic import BaseModel, ConfigDict
-from typing import Any, ClassVar, Dict, List, Optional
+from pydantic_core import to_jsonable_python
+
from inse.models.openalex.continent import Continent
from inse.models.openalex.meta import Meta
-from typing import Optional, Set
-from typing_extensions import Self
-from pydantic_core import to_jsonable_python
+
class ContinentsListResponse(BaseModel):
"""
ContinentsListResponse
- """ # noqa: E501
- meta: Optional[Meta] = None
- results: Optional[List[Continent]] = None
- __properties: ClassVar[List[str]] = ["meta", "results"]
+ """
+ meta: Meta | None = None
+ results: list[Continent] | None = None
+ __properties: ClassVar[list[str]] = ["meta", "results"]
model_config = ConfigDict(
validate_by_name=True,
@@ -51,11 +51,11 @@ class ContinentsListResponse(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of ContinentsListResponse from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -65,7 +65,7 @@ class ContinentsListResponse(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -86,7 +86,7 @@ class ContinentsListResponse(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of ContinentsListResponse from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/openalex/countries_list_response.py b/service/src/main/inse/models/openalex/countries_list_response.py
index ac26b32e..2bb00fda 100644
--- a/service/src/main/inse/models/openalex/countries_list_response.py
+++ b/service/src/main/inse/models/openalex/countries_list_response.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
OpenAlex API
@@ -10,29 +9,30 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
+from typing import Any, ClassVar, Self
from pydantic import BaseModel, ConfigDict
-from typing import Any, ClassVar, Dict, List, Optional
+from pydantic_core import to_jsonable_python
+
from inse.models.openalex.country import Country
from inse.models.openalex.meta import Meta
-from typing import Optional, Set
-from typing_extensions import Self
-from pydantic_core import to_jsonable_python
+
class CountriesListResponse(BaseModel):
"""
CountriesListResponse
- """ # noqa: E501
- meta: Optional[Meta] = None
- results: Optional[List[Country]] = None
- __properties: ClassVar[List[str]] = ["meta", "results"]
+ """
+ meta: Meta | None = None
+ results: list[Country] | None = None
+ __properties: ClassVar[list[str]] = ["meta", "results"]
model_config = ConfigDict(
validate_by_name=True,
@@ -51,11 +51,11 @@ class CountriesListResponse(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of CountriesListResponse from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -65,7 +65,7 @@ class CountriesListResponse(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -86,7 +86,7 @@ class CountriesListResponse(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of CountriesListResponse from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/openalex/country.py b/service/src/main/inse/models/openalex/country.py
index 4d051a60..7918d297 100644
--- a/service/src/main/inse/models/openalex/country.py
+++ b/service/src/main/inse/models/openalex/country.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
OpenAlex API
@@ -10,43 +9,44 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
-
from datetime import date, datetime
+from typing import Any, ClassVar, Self
+
from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
+from pydantic_core import to_jsonable_python
+
from inse.models.openalex.country_continent import CountryContinent
from inse.models.openalex.country_ids import CountryIds
-from typing import Optional, Set
-from typing_extensions import Self
-from pydantic_core import to_jsonable_python
+
class Country(BaseModel):
"""
Geographic country
- """ # noqa: E501
- id: Optional[StrictStr] = Field(default=None, description="The OpenAlex ID for this country.")
- display_name: Optional[StrictStr] = Field(default=None, description="The full name of the country.")
- country_code: Optional[StrictStr] = Field(default=None, description="ISO 3166-1 alpha-2 country code.")
- description: Optional[StrictStr] = Field(default=None, description="A brief description of the country.")
- display_name_alternatives: Optional[List[StrictStr]] = Field(default=None, description="Alternate names for this country.")
- continent: Optional[CountryContinent] = None
- is_global_south: Optional[StrictBool] = Field(default=None, description="Whether this country is part of the Global South.")
- ids: Optional[CountryIds] = None
- works_count: Optional[StrictInt] = Field(default=None, description="The number of works with authors affiliated with institutions in this country.")
- cited_by_count: Optional[StrictInt] = Field(default=None, description="Total citations to works from this country.")
- works_api_url: Optional[StrictStr] = Field(default=None, description="A URL that returns all works from authors in this country.")
- authors_api_url: Optional[StrictStr] = Field(default=None, description="A URL that returns all authors with affiliations in this country.")
- institutions_api_url: Optional[StrictStr] = Field(default=None, description="A URL that returns all institutions in this country.")
- created_date: Optional[date] = Field(default=None, description="When this country was added to OpenAlex (ISO 8601 date).")
- updated_date: Optional[datetime] = Field(default=None, description="When this country was last updated (ISO 8601 datetime).")
- __properties: ClassVar[List[str]] = ["id", "display_name", "country_code", "description", "display_name_alternatives", "continent", "is_global_south", "ids", "works_count", "cited_by_count", "works_api_url", "authors_api_url", "institutions_api_url", "created_date", "updated_date"]
+ """
+ id: StrictStr | None = Field(default=None, description="The OpenAlex ID for this country.")
+ display_name: StrictStr | None = Field(default=None, description="The full name of the country.")
+ country_code: StrictStr | None = Field(default=None, description="ISO 3166-1 alpha-2 country code.")
+ description: StrictStr | None = Field(default=None, description="A brief description of the country.")
+ display_name_alternatives: list[StrictStr] | None = Field(default=None, description="Alternate names for this country.")
+ continent: CountryContinent | None = None
+ is_global_south: StrictBool | None = Field(default=None, description="Whether this country is part of the Global South.")
+ ids: CountryIds | None = None
+ works_count: StrictInt | None = Field(default=None, description="The number of works with authors affiliated with institutions in this country.")
+ cited_by_count: StrictInt | None = Field(default=None, description="Total citations to works from this country.")
+ works_api_url: StrictStr | None = Field(default=None, description="A URL that returns all works from authors in this country.")
+ authors_api_url: StrictStr | None = Field(default=None, description="A URL that returns all authors with affiliations in this country.")
+ institutions_api_url: StrictStr | None = Field(default=None, description="A URL that returns all institutions in this country.")
+ created_date: date | None = Field(default=None, description="When this country was added to OpenAlex (ISO 8601 date).")
+ updated_date: datetime | None = Field(default=None, description="When this country was last updated (ISO 8601 datetime).")
+ __properties: ClassVar[list[str]] = ["id", "display_name", "country_code", "description", "display_name_alternatives", "continent", "is_global_south", "ids", "works_count", "cited_by_count", "works_api_url", "authors_api_url", "institutions_api_url", "created_date", "updated_date"]
model_config = ConfigDict(
validate_by_name=True,
@@ -65,11 +65,11 @@ class Country(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of Country from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -79,7 +79,7 @@ class Country(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -96,7 +96,7 @@ class Country(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of Country from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/openalex/country_continent.py b/service/src/main/inse/models/openalex/country_continent.py
index 80f1319c..6aa443fe 100644
--- a/service/src/main/inse/models/openalex/country_continent.py
+++ b/service/src/main/inse/models/openalex/country_continent.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
OpenAlex API
@@ -10,27 +9,27 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
+from typing import Any, ClassVar, Self
from pydantic import BaseModel, ConfigDict, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
from pydantic_core import to_jsonable_python
+
class CountryContinent(BaseModel):
"""
The [continent](/api-reference/continents)
- """ # noqa: E501
- id: Optional[StrictStr] = None
- display_name: Optional[StrictStr] = None
- __properties: ClassVar[List[str]] = ["id", "display_name"]
+ """
+ id: StrictStr | None = None
+ display_name: StrictStr | None = None
+ __properties: ClassVar[list[str]] = ["id", "display_name"]
model_config = ConfigDict(
validate_by_name=True,
@@ -49,11 +48,11 @@ class CountryContinent(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of CountryContinent from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -63,7 +62,7 @@ class CountryContinent(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -74,7 +73,7 @@ class CountryContinent(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of CountryContinent from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/openalex/country_ids.py b/service/src/main/inse/models/openalex/country_ids.py
index 0f1b3998..28f32396 100644
--- a/service/src/main/inse/models/openalex/country_ids.py
+++ b/service/src/main/inse/models/openalex/country_ids.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
OpenAlex API
@@ -10,29 +9,29 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
+from typing import Any, ClassVar, Self
from pydantic import BaseModel, ConfigDict, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
from pydantic_core import to_jsonable_python
+
class CountryIds(BaseModel):
"""
External identifiers:
- """ # noqa: E501
- openalex: Optional[StrictStr] = None
- iso: Optional[StrictStr] = None
- wikidata: Optional[StrictStr] = None
- wikipedia: Optional[StrictStr] = None
- __properties: ClassVar[List[str]] = ["openalex", "iso", "wikidata", "wikipedia"]
+ """
+ openalex: StrictStr | None = None
+ iso: StrictStr | None = None
+ wikidata: StrictStr | None = None
+ wikipedia: StrictStr | None = None
+ __properties: ClassVar[list[str]] = ["openalex", "iso", "wikidata", "wikipedia"]
model_config = ConfigDict(
validate_by_name=True,
@@ -51,11 +50,11 @@ class CountryIds(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of CountryIds from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -65,7 +64,7 @@ class CountryIds(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -76,7 +75,7 @@ class CountryIds(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of CountryIds from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/openalex/dehydrated_author.py b/service/src/main/inse/models/openalex/dehydrated_author.py
index 9749c67e..4d8b3348 100644
--- a/service/src/main/inse/models/openalex/dehydrated_author.py
+++ b/service/src/main/inse/models/openalex/dehydrated_author.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
OpenAlex API
@@ -10,28 +9,28 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
+from typing import Any, ClassVar, Self
from pydantic import BaseModel, ConfigDict, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
from pydantic_core import to_jsonable_python
+
class DehydratedAuthor(BaseModel):
"""
[Dehydrated Author](/api-reference/authors#the-dehydratedauthor-object) — reduced-field version used in nested contexts
- """ # noqa: E501
- id: Optional[StrictStr] = None
- display_name: Optional[StrictStr] = None
- orcid: Optional[StrictStr] = None
- __properties: ClassVar[List[str]] = ["id", "display_name", "orcid"]
+ """
+ id: StrictStr | None = None
+ display_name: StrictStr | None = None
+ orcid: StrictStr | None = None
+ __properties: ClassVar[list[str]] = ["id", "display_name", "orcid"]
model_config = ConfigDict(
validate_by_name=True,
@@ -50,11 +49,11 @@ class DehydratedAuthor(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of DehydratedAuthor from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -64,7 +63,7 @@ class DehydratedAuthor(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -75,7 +74,7 @@ class DehydratedAuthor(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of DehydratedAuthor from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/openalex/dehydrated_funder.py b/service/src/main/inse/models/openalex/dehydrated_funder.py
index 4a43cd35..e59d9f6a 100644
--- a/service/src/main/inse/models/openalex/dehydrated_funder.py
+++ b/service/src/main/inse/models/openalex/dehydrated_funder.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
OpenAlex API
@@ -10,28 +9,28 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
+from typing import Any, ClassVar, Self
from pydantic import BaseModel, ConfigDict, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
from pydantic_core import to_jsonable_python
+
class DehydratedFunder(BaseModel):
"""
[Dehydrated Funder](/api-reference/funders) — reduced-field version used in nested contexts
- """ # noqa: E501
- id: Optional[StrictStr] = None
- display_name: Optional[StrictStr] = None
- ror: Optional[StrictStr] = None
- __properties: ClassVar[List[str]] = ["id", "display_name", "ror"]
+ """
+ id: StrictStr | None = None
+ display_name: StrictStr | None = None
+ ror: StrictStr | None = None
+ __properties: ClassVar[list[str]] = ["id", "display_name", "ror"]
model_config = ConfigDict(
validate_by_name=True,
@@ -50,11 +49,11 @@ class DehydratedFunder(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of DehydratedFunder from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -64,7 +63,7 @@ class DehydratedFunder(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -75,7 +74,7 @@ class DehydratedFunder(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of DehydratedFunder from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/openalex/dehydrated_institution.py b/service/src/main/inse/models/openalex/dehydrated_institution.py
index 8ecf0b25..0b43e839 100644
--- a/service/src/main/inse/models/openalex/dehydrated_institution.py
+++ b/service/src/main/inse/models/openalex/dehydrated_institution.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
OpenAlex API
@@ -10,31 +9,31 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
+from typing import Any, ClassVar, Self
from pydantic import BaseModel, ConfigDict, Field, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
from pydantic_core import to_jsonable_python
+
class DehydratedInstitution(BaseModel):
"""
[Dehydrated Institution](/api-reference/institutions#the-dehydratedinstitution-object) — reduced-field version used in nested contexts
- """ # noqa: E501
- id: Optional[StrictStr] = None
- display_name: Optional[StrictStr] = None
- ror: Optional[StrictStr] = None
- country_code: Optional[StrictStr] = Field(default=None, description="[Country](/api-reference/countries) code")
- type: Optional[StrictStr] = Field(default=None, description="The [institution type](/api-reference/institution-types)")
- lineage: Optional[List[StrictStr]] = None
- __properties: ClassVar[List[str]] = ["id", "display_name", "ror", "country_code", "type", "lineage"]
+ """
+ id: StrictStr | None = None
+ display_name: StrictStr | None = None
+ ror: StrictStr | None = None
+ country_code: StrictStr | None = Field(default=None, description="[Country](/api-reference/countries) code")
+ type: StrictStr | None = Field(default=None, description="The [institution type](/api-reference/institution-types)")
+ lineage: list[StrictStr] | None = None
+ __properties: ClassVar[list[str]] = ["id", "display_name", "ror", "country_code", "type", "lineage"]
model_config = ConfigDict(
validate_by_name=True,
@@ -53,11 +52,11 @@ class DehydratedInstitution(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of DehydratedInstitution from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -67,7 +66,7 @@ class DehydratedInstitution(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -78,7 +77,7 @@ class DehydratedInstitution(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of DehydratedInstitution from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/openalex/dehydrated_source.py b/service/src/main/inse/models/openalex/dehydrated_source.py
index 1174194f..084ae3df 100644
--- a/service/src/main/inse/models/openalex/dehydrated_source.py
+++ b/service/src/main/inse/models/openalex/dehydrated_source.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
OpenAlex API
@@ -10,36 +9,36 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
+from typing import Any, ClassVar, Self
from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
from pydantic_core import to_jsonable_python
+
class DehydratedSource(BaseModel):
"""
[Dehydrated Source](/api-reference/sources#the-dehydratedsource-object) — reduced-field version used in nested contexts
- """ # noqa: E501
- id: Optional[StrictStr] = None
- display_name: Optional[StrictStr] = None
- issn_l: Optional[StrictStr] = None
- issn: Optional[List[StrictStr]] = None
- is_oa: Optional[StrictBool] = None
- is_in_doaj: Optional[StrictBool] = None
- is_core: Optional[StrictBool] = None
- host_organization: Optional[StrictStr] = None
- host_organization_name: Optional[StrictStr] = None
- host_organization_lineage: Optional[List[StrictStr]] = None
- type: Optional[StrictStr] = Field(default=None, description="The [source type](/api-reference/source-types)")
- __properties: ClassVar[List[str]] = ["id", "display_name", "issn_l", "issn", "is_oa", "is_in_doaj", "is_core", "host_organization", "host_organization_name", "host_organization_lineage", "type"]
+ """
+ id: StrictStr | None = None
+ display_name: StrictStr | None = None
+ issn_l: StrictStr | None = None
+ issn: list[StrictStr] | None = None
+ is_oa: StrictBool | None = None
+ is_in_doaj: StrictBool | None = None
+ is_core: StrictBool | None = None
+ host_organization: StrictStr | None = None
+ host_organization_name: StrictStr | None = None
+ host_organization_lineage: list[StrictStr] | None = None
+ type: StrictStr | None = Field(default=None, description="The [source type](/api-reference/source-types)")
+ __properties: ClassVar[list[str]] = ["id", "display_name", "issn_l", "issn", "is_oa", "is_in_doaj", "is_core", "host_organization", "host_organization_name", "host_organization_lineage", "type"]
model_config = ConfigDict(
validate_by_name=True,
@@ -58,11 +57,11 @@ class DehydratedSource(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of DehydratedSource from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -72,7 +71,7 @@ class DehydratedSource(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -83,7 +82,7 @@ class DehydratedSource(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of DehydratedSource from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/openalex/domain.py b/service/src/main/inse/models/openalex/domain.py
index 16cec7ff..0ffd03d8 100644
--- a/service/src/main/inse/models/openalex/domain.py
+++ b/service/src/main/inse/models/openalex/domain.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
OpenAlex API
@@ -10,40 +9,41 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
-
from datetime import date, datetime
+from typing import Any, ClassVar, Self
+
from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
+from pydantic_core import to_jsonable_python
+
from inse.models.openalex.domain_fields_inner import DomainFieldsInner
from inse.models.openalex.domain_ids import DomainIds
-from typing import Optional, Set
-from typing_extensions import Self
-from pydantic_core import to_jsonable_python
+
class Domain(BaseModel):
"""
Top-level category in the topic hierarchy (4 total)
- """ # noqa: E501
- id: Optional[StrictStr] = Field(default=None, description="The OpenAlex ID for this domain.")
- display_name: Optional[StrictStr] = Field(default=None, description="The English-language label of the domain.")
- description: Optional[StrictStr] = Field(default=None, description="A description of this domain.")
- display_name_alternatives: Optional[List[StrictStr]] = Field(default=None, description="Alternate names for this domain.")
- fields: Optional[List[DomainFieldsInner]] = Field(default=None, description="The fields within this domain. Each object has `id` and `display_name`.")
- siblings: Optional[List[DomainFieldsInner]] = Field(default=None, description="Other domains at the same level. Each object has `id` and `display_name`.")
- ids: Optional[DomainIds] = None
- works_count: Optional[StrictInt] = Field(default=None, description="The number of works tagged with topics in this domain.")
- cited_by_count: Optional[StrictInt] = Field(default=None, description="Total citations to works in this domain.")
- works_api_url: Optional[StrictStr] = Field(default=None, description="A URL that returns all works tagged with this domain.")
- created_date: Optional[date] = Field(default=None, description="When this domain was added to OpenAlex (ISO 8601 date).")
- updated_date: Optional[datetime] = Field(default=None, description="When this domain was last updated (ISO 8601 datetime).")
- __properties: ClassVar[List[str]] = ["id", "display_name", "description", "display_name_alternatives", "fields", "siblings", "ids", "works_count", "cited_by_count", "works_api_url", "created_date", "updated_date"]
+ """
+ id: StrictStr | None = Field(default=None, description="The OpenAlex ID for this domain.")
+ display_name: StrictStr | None = Field(default=None, description="The English-language label of the domain.")
+ description: StrictStr | None = Field(default=None, description="A description of this domain.")
+ display_name_alternatives: list[StrictStr] | None = Field(default=None, description="Alternate names for this domain.")
+ fields: list[DomainFieldsInner] | None = Field(default=None, description="The fields within this domain. Each object has `id` and `display_name`.")
+ siblings: list[DomainFieldsInner] | None = Field(default=None, description="Other domains at the same level. Each object has `id` and `display_name`.")
+ ids: DomainIds | None = None
+ works_count: StrictInt | None = Field(default=None, description="The number of works tagged with topics in this domain.")
+ cited_by_count: StrictInt | None = Field(default=None, description="Total citations to works in this domain.")
+ works_api_url: StrictStr | None = Field(default=None, description="A URL that returns all works tagged with this domain.")
+ created_date: date | None = Field(default=None, description="When this domain was added to OpenAlex (ISO 8601 date).")
+ updated_date: datetime | None = Field(default=None, description="When this domain was last updated (ISO 8601 datetime).")
+ __properties: ClassVar[list[str]] = ["id", "display_name", "description", "display_name_alternatives", "fields", "siblings", "ids", "works_count", "cited_by_count", "works_api_url", "created_date", "updated_date"]
model_config = ConfigDict(
validate_by_name=True,
@@ -62,11 +62,11 @@ class Domain(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of Domain from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -76,7 +76,7 @@ class Domain(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -104,7 +104,7 @@ class Domain(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of Domain from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/openalex/domain_fields_inner.py b/service/src/main/inse/models/openalex/domain_fields_inner.py
index 5f5db6c6..1943ff49 100644
--- a/service/src/main/inse/models/openalex/domain_fields_inner.py
+++ b/service/src/main/inse/models/openalex/domain_fields_inner.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
OpenAlex API
@@ -10,27 +9,27 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
+from typing import Any, ClassVar, Self
from pydantic import BaseModel, ConfigDict, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
from pydantic_core import to_jsonable_python
+
class DomainFieldsInner(BaseModel):
"""
DomainFieldsInner
- """ # noqa: E501
- id: Optional[StrictStr] = None
- display_name: Optional[StrictStr] = None
- __properties: ClassVar[List[str]] = ["id", "display_name"]
+ """
+ id: StrictStr | None = None
+ display_name: StrictStr | None = None
+ __properties: ClassVar[list[str]] = ["id", "display_name"]
model_config = ConfigDict(
validate_by_name=True,
@@ -49,11 +48,11 @@ class DomainFieldsInner(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of DomainFieldsInner from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -63,7 +62,7 @@ class DomainFieldsInner(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -74,7 +73,7 @@ class DomainFieldsInner(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of DomainFieldsInner from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/openalex/domain_ids.py b/service/src/main/inse/models/openalex/domain_ids.py
index 30aba687..0e14c700 100644
--- a/service/src/main/inse/models/openalex/domain_ids.py
+++ b/service/src/main/inse/models/openalex/domain_ids.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
OpenAlex API
@@ -10,28 +9,28 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
+from typing import Any, ClassVar, Self
from pydantic import BaseModel, ConfigDict, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
from pydantic_core import to_jsonable_python
+
class DomainIds(BaseModel):
"""
External identifiers:
- """ # noqa: E501
- openalex: Optional[StrictStr] = None
- wikidata: Optional[StrictStr] = None
- wikipedia: Optional[StrictStr] = None
- __properties: ClassVar[List[str]] = ["openalex", "wikidata", "wikipedia"]
+ """
+ openalex: StrictStr | None = None
+ wikidata: StrictStr | None = None
+ wikipedia: StrictStr | None = None
+ __properties: ClassVar[list[str]] = ["openalex", "wikidata", "wikipedia"]
model_config = ConfigDict(
validate_by_name=True,
@@ -50,11 +49,11 @@ class DomainIds(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of DomainIds from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -64,7 +63,7 @@ class DomainIds(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -75,7 +74,7 @@ class DomainIds(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of DomainIds from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/openalex/domains_list_response.py b/service/src/main/inse/models/openalex/domains_list_response.py
index 3ea8e07c..ffa09da8 100644
--- a/service/src/main/inse/models/openalex/domains_list_response.py
+++ b/service/src/main/inse/models/openalex/domains_list_response.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
OpenAlex API
@@ -10,29 +9,30 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
+from typing import Any, ClassVar, Self
from pydantic import BaseModel, ConfigDict
-from typing import Any, ClassVar, Dict, List, Optional
+from pydantic_core import to_jsonable_python
+
from inse.models.openalex.domain import Domain
from inse.models.openalex.meta import Meta
-from typing import Optional, Set
-from typing_extensions import Self
-from pydantic_core import to_jsonable_python
+
class DomainsListResponse(BaseModel):
"""
DomainsListResponse
- """ # noqa: E501
- meta: Optional[Meta] = None
- results: Optional[List[Domain]] = None
- __properties: ClassVar[List[str]] = ["meta", "results"]
+ """
+ meta: Meta | None = None
+ results: list[Domain] | None = None
+ __properties: ClassVar[list[str]] = ["meta", "results"]
model_config = ConfigDict(
validate_by_name=True,
@@ -51,11 +51,11 @@ class DomainsListResponse(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of DomainsListResponse from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -65,7 +65,7 @@ class DomainsListResponse(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -86,7 +86,7 @@ class DomainsListResponse(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of DomainsListResponse from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/openalex/error.py b/service/src/main/inse/models/openalex/error.py
index bbde186c..cbc6c163 100644
--- a/service/src/main/inse/models/openalex/error.py
+++ b/service/src/main/inse/models/openalex/error.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
OpenAlex API
@@ -10,27 +9,27 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
+from typing import Any, ClassVar, Self
from pydantic import BaseModel, ConfigDict, Field, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
from pydantic_core import to_jsonable_python
+
class Error(BaseModel):
"""
Error
- """ # noqa: E501
- error: Optional[StrictStr] = Field(default=None, description="Error type")
- message: Optional[StrictStr] = Field(default=None, description="Human-readable error message")
- __properties: ClassVar[List[str]] = ["error", "message"]
+ """
+ error: StrictStr | None = Field(default=None, description="Error type")
+ message: StrictStr | None = Field(default=None, description="Human-readable error message")
+ __properties: ClassVar[list[str]] = ["error", "message"]
model_config = ConfigDict(
validate_by_name=True,
@@ -49,11 +48,11 @@ class Error(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of Error from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -63,7 +62,7 @@ class Error(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -74,7 +73,7 @@ class Error(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of Error from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/openalex/fields_list_response.py b/service/src/main/inse/models/openalex/fields_list_response.py
index cc02907e..4013b349 100644
--- a/service/src/main/inse/models/openalex/fields_list_response.py
+++ b/service/src/main/inse/models/openalex/fields_list_response.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
OpenAlex API
@@ -10,29 +9,30 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
+from typing import Any, ClassVar, Self
from pydantic import BaseModel, ConfigDict
-from typing import Any, ClassVar, Dict, List, Optional
+from pydantic_core import to_jsonable_python
+
from inse.models.openalex.meta import Meta
from inse.models.openalex.model_field import ModelField
-from typing import Optional, Set
-from typing_extensions import Self
-from pydantic_core import to_jsonable_python
+
class FieldsListResponse(BaseModel):
"""
FieldsListResponse
- """ # noqa: E501
- meta: Optional[Meta] = None
- results: Optional[List[ModelField]] = None
- __properties: ClassVar[List[str]] = ["meta", "results"]
+ """
+ meta: Meta | None = None
+ results: list[ModelField] | None = None
+ __properties: ClassVar[list[str]] = ["meta", "results"]
model_config = ConfigDict(
validate_by_name=True,
@@ -51,11 +51,11 @@ class FieldsListResponse(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of FieldsListResponse from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -65,7 +65,7 @@ class FieldsListResponse(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -86,7 +86,7 @@ class FieldsListResponse(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of FieldsListResponse from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/openalex/funder.py b/service/src/main/inse/models/openalex/funder.py
index ef860bf1..aec40b4c 100644
--- a/service/src/main/inse/models/openalex/funder.py
+++ b/service/src/main/inse/models/openalex/funder.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
OpenAlex API
@@ -10,44 +9,45 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
-
from datetime import date, datetime
+from typing import Any, ClassVar, Self
+
from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
+from pydantic_core import to_jsonable_python
+
from inse.models.openalex.author_counts_by_year_inner import AuthorCountsByYearInner
from inse.models.openalex.funder_ids import FunderIds
-from typing import Optional, Set
-from typing_extensions import Self
-from pydantic_core import to_jsonable_python
+
class Funder(BaseModel):
"""
An organization that funds research
- """ # noqa: E501
- id: Optional[StrictStr] = Field(default=None, description="The OpenAlex ID for this funder.")
- display_name: Optional[StrictStr] = Field(default=None, description="The primary name of the funder.")
- alternate_titles: Optional[List[StrictStr]] = Field(default=None, description="A list of alternate titles for this funder.")
- country_code: Optional[StrictStr] = Field(default=None, description="ISO two-letter country code where this funder is located.")
- description: Optional[StrictStr] = Field(default=None, description="A short description from Wikidata.")
- homepage_url: Optional[StrictStr] = Field(default=None, description="URL for this funder's primary homepage.")
- image_url: Optional[StrictStr] = Field(default=None, description="URL for an image representing this funder (usually from Wikimedia).")
- image_thumbnail_url: Optional[StrictStr] = Field(default=None, description="Smaller version of `image_url`.")
- grants_count: Optional[StrictInt] = Field(default=None, description="The number of grants linked to this funder.")
- works_count: Optional[StrictInt] = Field(default=None, description="The number of works linked to this funder.")
- cited_by_count: Optional[StrictInt] = Field(default=None, description="Total citations to works linked to this funder.")
- ids: Optional[FunderIds] = None
- counts_by_year: Optional[List[AuthorCountsByYearInner]] = Field(default=None, description="`works_count` and `cited_by_count` for each of the last ten years.")
- works_api_url: Optional[StrictStr] = None
- created_date: Optional[date] = Field(default=None, description="When this funder was added to OpenAlex (ISO 8601 date).")
- updated_date: Optional[datetime] = Field(default=None, description="When this funder was last updated (ISO 8601 datetime).")
- __properties: ClassVar[List[str]] = ["id", "display_name", "alternate_titles", "country_code", "description", "homepage_url", "image_url", "image_thumbnail_url", "grants_count", "works_count", "cited_by_count", "ids", "counts_by_year", "works_api_url", "created_date", "updated_date"]
+ """
+ id: StrictStr | None = Field(default=None, description="The OpenAlex ID for this funder.")
+ display_name: StrictStr | None = Field(default=None, description="The primary name of the funder.")
+ alternate_titles: list[StrictStr] | None = Field(default=None, description="A list of alternate titles for this funder.")
+ country_code: StrictStr | None = Field(default=None, description="ISO two-letter country code where this funder is located.")
+ description: StrictStr | None = Field(default=None, description="A short description from Wikidata.")
+ homepage_url: StrictStr | None = Field(default=None, description="URL for this funder's primary homepage.")
+ image_url: StrictStr | None = Field(default=None, description="URL for an image representing this funder (usually from Wikimedia).")
+ image_thumbnail_url: StrictStr | None = Field(default=None, description="Smaller version of `image_url`.")
+ grants_count: StrictInt | None = Field(default=None, description="The number of grants linked to this funder.")
+ works_count: StrictInt | None = Field(default=None, description="The number of works linked to this funder.")
+ cited_by_count: StrictInt | None = Field(default=None, description="Total citations to works linked to this funder.")
+ ids: FunderIds | None = None
+ counts_by_year: list[AuthorCountsByYearInner] | None = Field(default=None, description="`works_count` and `cited_by_count` for each of the last ten years.")
+ works_api_url: StrictStr | None = None
+ created_date: date | None = Field(default=None, description="When this funder was added to OpenAlex (ISO 8601 date).")
+ updated_date: datetime | None = Field(default=None, description="When this funder was last updated (ISO 8601 datetime).")
+ __properties: ClassVar[list[str]] = ["id", "display_name", "alternate_titles", "country_code", "description", "homepage_url", "image_url", "image_thumbnail_url", "grants_count", "works_count", "cited_by_count", "ids", "counts_by_year", "works_api_url", "created_date", "updated_date"]
model_config = ConfigDict(
validate_by_name=True,
@@ -66,11 +66,11 @@ class Funder(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of Funder from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -80,7 +80,7 @@ class Funder(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -101,7 +101,7 @@ class Funder(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of Funder from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/openalex/funder_ids.py b/service/src/main/inse/models/openalex/funder_ids.py
index 96bbb040..054722b3 100644
--- a/service/src/main/inse/models/openalex/funder_ids.py
+++ b/service/src/main/inse/models/openalex/funder_ids.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
OpenAlex API
@@ -10,30 +9,30 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
+from typing import Any, ClassVar, Self
from pydantic import BaseModel, ConfigDict, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
from pydantic_core import to_jsonable_python
+
class FunderIds(BaseModel):
"""
External identifiers for this funder:
- """ # noqa: E501
- openalex: Optional[StrictStr] = None
- ror: Optional[StrictStr] = None
- wikidata: Optional[StrictStr] = None
- crossref: Optional[StrictStr] = None
- doi: Optional[StrictStr] = None
- __properties: ClassVar[List[str]] = ["openalex", "ror", "wikidata", "crossref", "doi"]
+ """
+ openalex: StrictStr | None = None
+ ror: StrictStr | None = None
+ wikidata: StrictStr | None = None
+ crossref: StrictStr | None = None
+ doi: StrictStr | None = None
+ __properties: ClassVar[list[str]] = ["openalex", "ror", "wikidata", "crossref", "doi"]
model_config = ConfigDict(
validate_by_name=True,
@@ -52,11 +51,11 @@ class FunderIds(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of FunderIds from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -66,7 +65,7 @@ class FunderIds(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -77,7 +76,7 @@ class FunderIds(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of FunderIds from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/openalex/funders_list_response.py b/service/src/main/inse/models/openalex/funders_list_response.py
index c856665c..0fc9bd8a 100644
--- a/service/src/main/inse/models/openalex/funders_list_response.py
+++ b/service/src/main/inse/models/openalex/funders_list_response.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
OpenAlex API
@@ -10,31 +9,32 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
+from typing import Any, ClassVar, Self
from pydantic import BaseModel, ConfigDict
-from typing import Any, ClassVar, Dict, List, Optional
+from pydantic_core import to_jsonable_python
+
from inse.models.openalex.funder import Funder
from inse.models.openalex.group_by_result import GroupByResult
from inse.models.openalex.meta import Meta
-from typing import Optional, Set
-from typing_extensions import Self
-from pydantic_core import to_jsonable_python
+
class FundersListResponse(BaseModel):
"""
FundersListResponse
- """ # noqa: E501
- meta: Optional[Meta] = None
- results: Optional[List[Funder]] = None
- group_by: Optional[List[GroupByResult]] = None
- __properties: ClassVar[List[str]] = ["meta", "results", "group_by"]
+ """
+ meta: Meta | None = None
+ results: list[Funder] | None = None
+ group_by: list[GroupByResult] | None = None
+ __properties: ClassVar[list[str]] = ["meta", "results", "group_by"]
model_config = ConfigDict(
validate_by_name=True,
@@ -53,11 +53,11 @@ class FundersListResponse(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of FundersListResponse from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -67,7 +67,7 @@ class FundersListResponse(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -95,7 +95,7 @@ class FundersListResponse(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of FundersListResponse from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/openalex/get_changefile200_response.py b/service/src/main/inse/models/openalex/get_changefile200_response.py
index cd801766..5c409eef 100644
--- a/service/src/main/inse/models/openalex/get_changefile200_response.py
+++ b/service/src/main/inse/models/openalex/get_changefile200_response.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
OpenAlex API
@@ -10,29 +9,34 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
+from typing import Any, ClassVar, Self
from pydantic import BaseModel, ConfigDict
-from typing import Any, ClassVar, Dict, List, Optional
-from inse.models.openalex.get_changefile200_response_meta import GetChangefile200ResponseMeta
-from inse.models.openalex.get_changefile200_response_results_inner import GetChangefile200ResponseResultsInner
-from typing import Optional, Set
-from typing_extensions import Self
from pydantic_core import to_jsonable_python
+from inse.models.openalex.get_changefile200_response_meta import (
+ GetChangefile200ResponseMeta,
+)
+from inse.models.openalex.get_changefile200_response_results_inner import (
+ GetChangefile200ResponseResultsInner,
+)
+
+
class GetChangefile200Response(BaseModel):
"""
GetChangefile200Response
- """ # noqa: E501
- meta: Optional[GetChangefile200ResponseMeta] = None
- results: Optional[List[GetChangefile200ResponseResultsInner]] = None
- __properties: ClassVar[List[str]] = ["meta", "results"]
+ """
+ meta: GetChangefile200ResponseMeta | None = None
+ results: list[GetChangefile200ResponseResultsInner] | None = None
+ __properties: ClassVar[list[str]] = ["meta", "results"]
model_config = ConfigDict(
validate_by_name=True,
@@ -51,11 +55,11 @@ class GetChangefile200Response(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of GetChangefile200Response from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -65,7 +69,7 @@ class GetChangefile200Response(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -86,7 +90,7 @@ class GetChangefile200Response(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of GetChangefile200Response from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/openalex/get_changefile200_response_meta.py b/service/src/main/inse/models/openalex/get_changefile200_response_meta.py
index 2fce5545..75c052c5 100644
--- a/service/src/main/inse/models/openalex/get_changefile200_response_meta.py
+++ b/service/src/main/inse/models/openalex/get_changefile200_response_meta.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
OpenAlex API
@@ -10,28 +9,28 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
-
from datetime import date
+from typing import Any, ClassVar, Self
+
from pydantic import BaseModel, ConfigDict, Field, StrictInt
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
from pydantic_core import to_jsonable_python
+
class GetChangefile200ResponseMeta(BaseModel):
"""
GetChangefile200ResponseMeta
- """ # noqa: E501
- count: Optional[StrictInt] = Field(default=None, description="Number of entity types with changes")
- var_date: Optional[date] = Field(default=None, description="The changefile date", alias="date")
- __properties: ClassVar[List[str]] = ["count", "date"]
+ """
+ count: StrictInt | None = Field(default=None, description="Number of entity types with changes")
+ var_date: date | None = Field(default=None, description="The changefile date", alias="date")
+ __properties: ClassVar[list[str]] = ["count", "date"]
model_config = ConfigDict(
validate_by_name=True,
@@ -50,11 +49,11 @@ class GetChangefile200ResponseMeta(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of GetChangefile200ResponseMeta from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -64,7 +63,7 @@ class GetChangefile200ResponseMeta(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -75,7 +74,7 @@ class GetChangefile200ResponseMeta(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of GetChangefile200ResponseMeta from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/openalex/get_changefile200_response_results_inner.py b/service/src/main/inse/models/openalex/get_changefile200_response_results_inner.py
index 39639cf2..ed7403e3 100644
--- a/service/src/main/inse/models/openalex/get_changefile200_response_results_inner.py
+++ b/service/src/main/inse/models/openalex/get_changefile200_response_results_inner.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
OpenAlex API
@@ -10,29 +9,32 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
+from typing import Any, ClassVar, Self
from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from inse.models.openalex.get_changefile200_response_results_inner_formats import GetChangefile200ResponseResultsInnerFormats
-from typing import Optional, Set
-from typing_extensions import Self
from pydantic_core import to_jsonable_python
+from inse.models.openalex.get_changefile200_response_results_inner_formats import (
+ GetChangefile200ResponseResultsInnerFormats,
+)
+
+
class GetChangefile200ResponseResultsInner(BaseModel):
"""
GetChangefile200ResponseResultsInner
- """ # noqa: E501
- entity: Optional[StrictStr] = Field(default=None, description="The entity type (e.g., works, authors, institutions)")
- records: Optional[StrictInt] = Field(default=None, description="Number of created or modified records")
- formats: Optional[GetChangefile200ResponseResultsInnerFormats] = None
- __properties: ClassVar[List[str]] = ["entity", "records", "formats"]
+ """
+ entity: StrictStr | None = Field(default=None, description="The entity type (e.g., works, authors, institutions)")
+ records: StrictInt | None = Field(default=None, description="Number of created or modified records")
+ formats: GetChangefile200ResponseResultsInnerFormats | None = None
+ __properties: ClassVar[list[str]] = ["entity", "records", "formats"]
model_config = ConfigDict(
validate_by_name=True,
@@ -51,11 +53,11 @@ class GetChangefile200ResponseResultsInner(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of GetChangefile200ResponseResultsInner from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -65,7 +67,7 @@ class GetChangefile200ResponseResultsInner(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -79,7 +81,7 @@ class GetChangefile200ResponseResultsInner(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of GetChangefile200ResponseResultsInner from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/openalex/get_changefile200_response_results_inner_formats.py b/service/src/main/inse/models/openalex/get_changefile200_response_results_inner_formats.py
index a78c2bac..25ef67e7 100644
--- a/service/src/main/inse/models/openalex/get_changefile200_response_results_inner_formats.py
+++ b/service/src/main/inse/models/openalex/get_changefile200_response_results_inner_formats.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
OpenAlex API
@@ -10,29 +9,34 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
+from typing import Any, ClassVar, Self
from pydantic import BaseModel, ConfigDict
-from typing import Any, ClassVar, Dict, List, Optional
-from inse.models.openalex.get_changefile200_response_results_inner_formats_jsonl import GetChangefile200ResponseResultsInnerFormatsJsonl
-from inse.models.openalex.get_changefile200_response_results_inner_formats_parquet import GetChangefile200ResponseResultsInnerFormatsParquet
-from typing import Optional, Set
-from typing_extensions import Self
from pydantic_core import to_jsonable_python
+from inse.models.openalex.get_changefile200_response_results_inner_formats_jsonl import (
+ GetChangefile200ResponseResultsInnerFormatsJsonl,
+)
+from inse.models.openalex.get_changefile200_response_results_inner_formats_parquet import (
+ GetChangefile200ResponseResultsInnerFormatsParquet,
+)
+
+
class GetChangefile200ResponseResultsInnerFormats(BaseModel):
"""
GetChangefile200ResponseResultsInnerFormats
- """ # noqa: E501
- jsonl: Optional[GetChangefile200ResponseResultsInnerFormatsJsonl] = None
- parquet: Optional[GetChangefile200ResponseResultsInnerFormatsParquet] = None
- __properties: ClassVar[List[str]] = ["jsonl", "parquet"]
+ """
+ jsonl: GetChangefile200ResponseResultsInnerFormatsJsonl | None = None
+ parquet: GetChangefile200ResponseResultsInnerFormatsParquet | None = None
+ __properties: ClassVar[list[str]] = ["jsonl", "parquet"]
model_config = ConfigDict(
validate_by_name=True,
@@ -51,11 +55,11 @@ class GetChangefile200ResponseResultsInnerFormats(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of GetChangefile200ResponseResultsInnerFormats from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -65,7 +69,7 @@ class GetChangefile200ResponseResultsInnerFormats(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -82,7 +86,7 @@ class GetChangefile200ResponseResultsInnerFormats(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of GetChangefile200ResponseResultsInnerFormats from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/openalex/get_changefile200_response_results_inner_formats_jsonl.py b/service/src/main/inse/models/openalex/get_changefile200_response_results_inner_formats_jsonl.py
index 09f3ceed..84eecb6e 100644
--- a/service/src/main/inse/models/openalex/get_changefile200_response_results_inner_formats_jsonl.py
+++ b/service/src/main/inse/models/openalex/get_changefile200_response_results_inner_formats_jsonl.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
OpenAlex API
@@ -10,28 +9,28 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
+from typing import Any, ClassVar, Self
from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
from pydantic_core import to_jsonable_python
+
class GetChangefile200ResponseResultsInnerFormatsJsonl(BaseModel):
"""
GetChangefile200ResponseResultsInnerFormatsJsonl
- """ # noqa: E501
- size_bytes: Optional[StrictInt] = Field(default=None, description="File size in bytes")
- size_display: Optional[StrictStr] = Field(default=None, description="Human-readable file size")
- url: Optional[StrictStr] = Field(default=None, description="Download URL for gzipped JSONL file")
- __properties: ClassVar[List[str]] = ["size_bytes", "size_display", "url"]
+ """
+ size_bytes: StrictInt | None = Field(default=None, description="File size in bytes")
+ size_display: StrictStr | None = Field(default=None, description="Human-readable file size")
+ url: StrictStr | None = Field(default=None, description="Download URL for gzipped JSONL file")
+ __properties: ClassVar[list[str]] = ["size_bytes", "size_display", "url"]
model_config = ConfigDict(
validate_by_name=True,
@@ -50,11 +49,11 @@ class GetChangefile200ResponseResultsInnerFormatsJsonl(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of GetChangefile200ResponseResultsInnerFormatsJsonl from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -64,7 +63,7 @@ class GetChangefile200ResponseResultsInnerFormatsJsonl(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -75,7 +74,7 @@ class GetChangefile200ResponseResultsInnerFormatsJsonl(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of GetChangefile200ResponseResultsInnerFormatsJsonl from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/openalex/get_changefile200_response_results_inner_formats_parquet.py b/service/src/main/inse/models/openalex/get_changefile200_response_results_inner_formats_parquet.py
index fc295753..e1041c5a 100644
--- a/service/src/main/inse/models/openalex/get_changefile200_response_results_inner_formats_parquet.py
+++ b/service/src/main/inse/models/openalex/get_changefile200_response_results_inner_formats_parquet.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
OpenAlex API
@@ -10,28 +9,28 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
+from typing import Any, ClassVar, Self
from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
from pydantic_core import to_jsonable_python
+
class GetChangefile200ResponseResultsInnerFormatsParquet(BaseModel):
"""
GetChangefile200ResponseResultsInnerFormatsParquet
- """ # noqa: E501
- size_bytes: Optional[StrictInt] = Field(default=None, description="File size in bytes")
- size_display: Optional[StrictStr] = Field(default=None, description="Human-readable file size")
- url: Optional[StrictStr] = Field(default=None, description="Download URL for Parquet file")
- __properties: ClassVar[List[str]] = ["size_bytes", "size_display", "url"]
+ """
+ size_bytes: StrictInt | None = Field(default=None, description="File size in bytes")
+ size_display: StrictStr | None = Field(default=None, description="Human-readable file size")
+ url: StrictStr | None = Field(default=None, description="Download URL for Parquet file")
+ __properties: ClassVar[list[str]] = ["size_bytes", "size_display", "url"]
model_config = ConfigDict(
validate_by_name=True,
@@ -50,11 +49,11 @@ class GetChangefile200ResponseResultsInnerFormatsParquet(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of GetChangefile200ResponseResultsInnerFormatsParquet from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -64,7 +63,7 @@ class GetChangefile200ResponseResultsInnerFormatsParquet(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -75,7 +74,7 @@ class GetChangefile200ResponseResultsInnerFormatsParquet(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of GetChangefile200ResponseResultsInnerFormatsParquet from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/openalex/group_by_result.py b/service/src/main/inse/models/openalex/group_by_result.py
index a41bfff4..4c7578f8 100644
--- a/service/src/main/inse/models/openalex/group_by_result.py
+++ b/service/src/main/inse/models/openalex/group_by_result.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
OpenAlex API
@@ -10,28 +9,28 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
+from typing import Any, ClassVar, Self
from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
from pydantic_core import to_jsonable_python
+
class GroupByResult(BaseModel):
"""
GroupByResult
- """ # noqa: E501
- key: Optional[StrictStr] = Field(default=None, description="The group key value")
- key_display_name: Optional[StrictStr] = Field(default=None, description="Human-readable name for the key")
- count: Optional[StrictInt] = Field(default=None, description="Number of results in this group")
- __properties: ClassVar[List[str]] = ["key", "key_display_name", "count"]
+ """
+ key: StrictStr | None = Field(default=None, description="The group key value")
+ key_display_name: StrictStr | None = Field(default=None, description="Human-readable name for the key")
+ count: StrictInt | None = Field(default=None, description="Number of results in this group")
+ __properties: ClassVar[list[str]] = ["key", "key_display_name", "count"]
model_config = ConfigDict(
validate_by_name=True,
@@ -50,11 +49,11 @@ class GroupByResult(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of GroupByResult from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -64,7 +63,7 @@ class GroupByResult(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -75,7 +74,7 @@ class GroupByResult(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of GroupByResult from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/openalex/institution.py b/service/src/main/inse/models/openalex/institution.py
index 1d1062b5..deede4f7 100644
--- a/service/src/main/inse/models/openalex/institution.py
+++ b/service/src/main/inse/models/openalex/institution.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
OpenAlex API
@@ -10,50 +9,51 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
-
from datetime import date, datetime
+from typing import Any, ClassVar, Self
+
from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator
-from typing import Any, ClassVar, Dict, List, Optional
+from pydantic_core import to_jsonable_python
+
from inse.models.openalex.author_counts_by_year_inner import AuthorCountsByYearInner
from inse.models.openalex.author_summary_stats import AuthorSummaryStats
from inse.models.openalex.institution_geo import InstitutionGeo
from inse.models.openalex.institution_ids import InstitutionIds
-from typing import Optional, Set
-from typing_extensions import Self
-from pydantic_core import to_jsonable_python
+
class Institution(BaseModel):
"""
A university, research organization, or other affiliation
- """ # noqa: E501
- id: Optional[StrictStr] = Field(default=None, description="The OpenAlex ID for this institution.", json_schema_extra={"examples": ["https://openalex.org/I27837315"]})
- ror: Optional[StrictStr] = Field(default=None, description="The ROR ID for this institution. This is the Canonical External ID for institutions.")
- display_name: Optional[StrictStr] = Field(default=None, description="The primary name of the institution.")
- country_code: Optional[StrictStr] = Field(default=None, description="ISO two-letter country code where this institution is located.")
- type: Optional[StrictStr] = Field(default=None, description="The institution's primary type (ROR vocabulary): `Education`, `Healthcare`, `Company`, `Archive`, `Nonprofit`, `Government`, `Facility`, `Other`.")
- homepage_url: Optional[StrictStr] = Field(default=None, description="URL for the institution's primary homepage.")
- image_url: Optional[StrictStr] = Field(default=None, description="URL for an image representing this institution (usually from Wikimedia).")
- image_thumbnail_url: Optional[StrictStr] = Field(default=None, description="Smaller version of `image_url`.")
- display_name_acronyms: Optional[List[StrictStr]] = Field(default=None, description="Acronyms or initialisms for this institution.")
- display_name_alternatives: Optional[List[StrictStr]] = Field(default=None, description="Other names people may use for this institution.")
- works_count: Optional[StrictInt] = Field(default=None, description="The number of works created by authors affiliated with this institution.")
- cited_by_count: Optional[StrictInt] = Field(default=None, description="Total citations to works from authors affiliated with this institution.")
- summary_stats: Optional[AuthorSummaryStats] = None
- geo: Optional[InstitutionGeo] = None
- lineage: Optional[List[StrictStr]] = Field(default=None, description="OpenAlex IDs including this institution and any parent institutions.")
- ids: Optional[InstitutionIds] = None
- counts_by_year: Optional[List[AuthorCountsByYearInner]] = Field(default=None, description="`works_count` and `cited_by_count` for each of the last ten years.")
- works_api_url: Optional[StrictStr] = Field(default=None, description="A URL that will get you a list of all works affiliated with this institution.")
- created_date: Optional[date] = Field(default=None, description="When this institution was added to OpenAlex (ISO 8601 date).")
- updated_date: Optional[datetime] = Field(default=None, description="When this institution was last updated (ISO 8601 datetime).")
- __properties: ClassVar[List[str]] = ["id", "ror", "display_name", "country_code", "type", "homepage_url", "image_url", "image_thumbnail_url", "display_name_acronyms", "display_name_alternatives", "works_count", "cited_by_count", "summary_stats", "geo", "lineage", "ids", "counts_by_year", "works_api_url", "created_date", "updated_date"]
+ """
+ id: StrictStr | None = Field(default=None, description="The OpenAlex ID for this institution.", json_schema_extra={"examples": ["https://openalex.org/I27837315"]})
+ ror: StrictStr | None = Field(default=None, description="The ROR ID for this institution. This is the Canonical External ID for institutions.")
+ display_name: StrictStr | None = Field(default=None, description="The primary name of the institution.")
+ country_code: StrictStr | None = Field(default=None, description="ISO two-letter country code where this institution is located.")
+ type: StrictStr | None = Field(default=None, description="The institution's primary type (ROR vocabulary): `Education`, `Healthcare`, `Company`, `Archive`, `Nonprofit`, `Government`, `Facility`, `Other`.")
+ homepage_url: StrictStr | None = Field(default=None, description="URL for the institution's primary homepage.")
+ image_url: StrictStr | None = Field(default=None, description="URL for an image representing this institution (usually from Wikimedia).")
+ image_thumbnail_url: StrictStr | None = Field(default=None, description="Smaller version of `image_url`.")
+ display_name_acronyms: list[StrictStr] | None = Field(default=None, description="Acronyms or initialisms for this institution.")
+ display_name_alternatives: list[StrictStr] | None = Field(default=None, description="Other names people may use for this institution.")
+ works_count: StrictInt | None = Field(default=None, description="The number of works created by authors affiliated with this institution.")
+ cited_by_count: StrictInt | None = Field(default=None, description="Total citations to works from authors affiliated with this institution.")
+ summary_stats: AuthorSummaryStats | None = None
+ geo: InstitutionGeo | None = None
+ lineage: list[StrictStr] | None = Field(default=None, description="OpenAlex IDs including this institution and any parent institutions.")
+ ids: InstitutionIds | None = None
+ counts_by_year: list[AuthorCountsByYearInner] | None = Field(default=None, description="`works_count` and `cited_by_count` for each of the last ten years.")
+ works_api_url: StrictStr | None = Field(default=None, description="A URL that will get you a list of all works affiliated with this institution.")
+ created_date: date | None = Field(default=None, description="When this institution was added to OpenAlex (ISO 8601 date).")
+ updated_date: datetime | None = Field(default=None, description="When this institution was last updated (ISO 8601 datetime).")
+ __properties: ClassVar[list[str]] = ["id", "ror", "display_name", "country_code", "type", "homepage_url", "image_url", "image_thumbnail_url", "display_name_acronyms", "display_name_alternatives", "works_count", "cited_by_count", "summary_stats", "geo", "lineage", "ids", "counts_by_year", "works_api_url", "created_date", "updated_date"]
@field_validator('type')
def type_validate_enum(cls, value):
@@ -82,11 +82,11 @@ class Institution(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of Institution from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -96,7 +96,7 @@ class Institution(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -123,7 +123,7 @@ class Institution(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of Institution from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/openalex/institution_geo.py b/service/src/main/inse/models/openalex/institution_geo.py
index 5b2b7781..8748c87a 100644
--- a/service/src/main/inse/models/openalex/institution_geo.py
+++ b/service/src/main/inse/models/openalex/institution_geo.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
OpenAlex API
@@ -10,32 +9,32 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
+from typing import Any, ClassVar, Self
from pydantic import BaseModel, ConfigDict, StrictFloat, StrictInt, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional, Union
-from typing import Optional, Set
-from typing_extensions import Self
from pydantic_core import to_jsonable_python
+
class InstitutionGeo(BaseModel):
"""
Location information:
- """ # noqa: E501
- city: Optional[StrictStr] = None
- geonames_city_id: Optional[StrictStr] = None
- region: Optional[StrictStr] = None
- country_code: Optional[StrictStr] = None
- country: Optional[StrictStr] = None
- latitude: Optional[Union[StrictFloat, StrictInt]] = None
- longitude: Optional[Union[StrictFloat, StrictInt]] = None
- __properties: ClassVar[List[str]] = ["city", "geonames_city_id", "region", "country_code", "country", "latitude", "longitude"]
+ """
+ city: StrictStr | None = None
+ geonames_city_id: StrictStr | None = None
+ region: StrictStr | None = None
+ country_code: StrictStr | None = None
+ country: StrictStr | None = None
+ latitude: StrictFloat | StrictInt | None = None
+ longitude: StrictFloat | StrictInt | None = None
+ __properties: ClassVar[list[str]] = ["city", "geonames_city_id", "region", "country_code", "country", "latitude", "longitude"]
model_config = ConfigDict(
validate_by_name=True,
@@ -54,11 +53,11 @@ class InstitutionGeo(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of InstitutionGeo from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -68,7 +67,7 @@ class InstitutionGeo(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -79,7 +78,7 @@ class InstitutionGeo(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of InstitutionGeo from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/openalex/institution_ids.py b/service/src/main/inse/models/openalex/institution_ids.py
index 4e4f363d..6350e226 100644
--- a/service/src/main/inse/models/openalex/institution_ids.py
+++ b/service/src/main/inse/models/openalex/institution_ids.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
OpenAlex API
@@ -10,31 +9,31 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
+from typing import Any, ClassVar, Self
from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
from pydantic_core import to_jsonable_python
+
class InstitutionIds(BaseModel):
"""
External identifiers:
- """ # noqa: E501
- openalex: Optional[StrictStr] = None
- ror: Optional[StrictStr] = None
- mag: Optional[StrictInt] = None
- grid: Optional[StrictStr] = None
- wikipedia: Optional[StrictStr] = None
- wikidata: Optional[StrictStr] = None
- __properties: ClassVar[List[str]] = ["openalex", "ror", "mag", "grid", "wikipedia", "wikidata"]
+ """
+ openalex: StrictStr | None = None
+ ror: StrictStr | None = None
+ mag: StrictInt | None = None
+ grid: StrictStr | None = None
+ wikipedia: StrictStr | None = None
+ wikidata: StrictStr | None = None
+ __properties: ClassVar[list[str]] = ["openalex", "ror", "mag", "grid", "wikipedia", "wikidata"]
model_config = ConfigDict(
validate_by_name=True,
@@ -53,11 +52,11 @@ class InstitutionIds(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of InstitutionIds from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -67,7 +66,7 @@ class InstitutionIds(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -78,7 +77,7 @@ class InstitutionIds(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of InstitutionIds from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/openalex/institution_type.py b/service/src/main/inse/models/openalex/institution_type.py
index 0a2e4291..bb6035a2 100644
--- a/service/src/main/inse/models/openalex/institution_type.py
+++ b/service/src/main/inse/models/openalex/institution_type.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
OpenAlex API
@@ -10,33 +9,33 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
-
from datetime import date, datetime
+from typing import Any, ClassVar, Self
+
from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
from pydantic_core import to_jsonable_python
+
class InstitutionType(BaseModel):
"""
Type of institution
- """ # noqa: E501
- id: Optional[StrictStr] = None
- display_name: Optional[StrictStr] = None
- works_count: Optional[StrictInt] = None
- cited_by_count: Optional[StrictInt] = None
- works_api_url: Optional[StrictStr] = None
- created_date: Optional[date] = None
- updated_date: Optional[datetime] = None
- __properties: ClassVar[List[str]] = ["id", "display_name", "works_count", "cited_by_count", "works_api_url", "created_date", "updated_date"]
+ """
+ id: StrictStr | None = None
+ display_name: StrictStr | None = None
+ works_count: StrictInt | None = None
+ cited_by_count: StrictInt | None = None
+ works_api_url: StrictStr | None = None
+ created_date: date | None = None
+ updated_date: datetime | None = None
+ __properties: ClassVar[list[str]] = ["id", "display_name", "works_count", "cited_by_count", "works_api_url", "created_date", "updated_date"]
model_config = ConfigDict(
validate_by_name=True,
@@ -55,11 +54,11 @@ class InstitutionType(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of InstitutionType from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -69,7 +68,7 @@ class InstitutionType(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -80,7 +79,7 @@ class InstitutionType(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of InstitutionType from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/openalex/institution_types_list_response.py b/service/src/main/inse/models/openalex/institution_types_list_response.py
index c06b2e4b..15f513e1 100644
--- a/service/src/main/inse/models/openalex/institution_types_list_response.py
+++ b/service/src/main/inse/models/openalex/institution_types_list_response.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
OpenAlex API
@@ -10,29 +9,30 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
+from typing import Any, ClassVar, Self
from pydantic import BaseModel, ConfigDict
-from typing import Any, ClassVar, Dict, List, Optional
+from pydantic_core import to_jsonable_python
+
from inse.models.openalex.institution_type import InstitutionType
from inse.models.openalex.meta import Meta
-from typing import Optional, Set
-from typing_extensions import Self
-from pydantic_core import to_jsonable_python
+
class InstitutionTypesListResponse(BaseModel):
"""
InstitutionTypesListResponse
- """ # noqa: E501
- meta: Optional[Meta] = None
- results: Optional[List[InstitutionType]] = None
- __properties: ClassVar[List[str]] = ["meta", "results"]
+ """
+ meta: Meta | None = None
+ results: list[InstitutionType] | None = None
+ __properties: ClassVar[list[str]] = ["meta", "results"]
model_config = ConfigDict(
validate_by_name=True,
@@ -51,11 +51,11 @@ class InstitutionTypesListResponse(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of InstitutionTypesListResponse from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -65,7 +65,7 @@ class InstitutionTypesListResponse(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -86,7 +86,7 @@ class InstitutionTypesListResponse(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of InstitutionTypesListResponse from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/openalex/institutions_list_response.py b/service/src/main/inse/models/openalex/institutions_list_response.py
index f3313a74..8d8c6297 100644
--- a/service/src/main/inse/models/openalex/institutions_list_response.py
+++ b/service/src/main/inse/models/openalex/institutions_list_response.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
OpenAlex API
@@ -10,31 +9,32 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
+from typing import Any, ClassVar, Self
from pydantic import BaseModel, ConfigDict
-from typing import Any, ClassVar, Dict, List, Optional
+from pydantic_core import to_jsonable_python
+
from inse.models.openalex.group_by_result import GroupByResult
from inse.models.openalex.institution import Institution
from inse.models.openalex.meta import Meta
-from typing import Optional, Set
-from typing_extensions import Self
-from pydantic_core import to_jsonable_python
+
class InstitutionsListResponse(BaseModel):
"""
InstitutionsListResponse
- """ # noqa: E501
- meta: Optional[Meta] = None
- results: Optional[List[Institution]] = None
- group_by: Optional[List[GroupByResult]] = None
- __properties: ClassVar[List[str]] = ["meta", "results", "group_by"]
+ """
+ meta: Meta | None = None
+ results: list[Institution] | None = None
+ group_by: list[GroupByResult] | None = None
+ __properties: ClassVar[list[str]] = ["meta", "results", "group_by"]
model_config = ConfigDict(
validate_by_name=True,
@@ -53,11 +53,11 @@ class InstitutionsListResponse(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of InstitutionsListResponse from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -67,7 +67,7 @@ class InstitutionsListResponse(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -95,7 +95,7 @@ class InstitutionsListResponse(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of InstitutionsListResponse from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/openalex/keyword.py b/service/src/main/inse/models/openalex/keyword.py
index a436b4b6..9ca7decf 100644
--- a/service/src/main/inse/models/openalex/keyword.py
+++ b/service/src/main/inse/models/openalex/keyword.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
OpenAlex API
@@ -10,33 +9,33 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
-
from datetime import date, datetime
+from typing import Any, ClassVar, Self
+
from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
from pydantic_core import to_jsonable_python
+
class Keyword(BaseModel):
"""
A keyword identified from works' topics
- """ # noqa: E501
- id: Optional[StrictStr] = Field(default=None, description="The OpenAlex ID for this keyword.")
- display_name: Optional[StrictStr] = Field(default=None, description="The English-language label of the keyword.")
- works_count: Optional[StrictInt] = Field(default=None, description="The number of works tagged with this keyword.")
- cited_by_count: Optional[StrictInt] = Field(default=None, description="The total citations to works tagged with this keyword.")
- works_api_url: Optional[StrictStr] = None
- created_date: Optional[date] = Field(default=None, description="When this keyword was added to OpenAlex (ISO 8601 date).")
- updated_date: Optional[datetime] = Field(default=None, description="When this keyword was last updated (ISO 8601 datetime).")
- __properties: ClassVar[List[str]] = ["id", "display_name", "works_count", "cited_by_count", "works_api_url", "created_date", "updated_date"]
+ """
+ id: StrictStr | None = Field(default=None, description="The OpenAlex ID for this keyword.")
+ display_name: StrictStr | None = Field(default=None, description="The English-language label of the keyword.")
+ works_count: StrictInt | None = Field(default=None, description="The number of works tagged with this keyword.")
+ cited_by_count: StrictInt | None = Field(default=None, description="The total citations to works tagged with this keyword.")
+ works_api_url: StrictStr | None = None
+ created_date: date | None = Field(default=None, description="When this keyword was added to OpenAlex (ISO 8601 date).")
+ updated_date: datetime | None = Field(default=None, description="When this keyword was last updated (ISO 8601 datetime).")
+ __properties: ClassVar[list[str]] = ["id", "display_name", "works_count", "cited_by_count", "works_api_url", "created_date", "updated_date"]
model_config = ConfigDict(
validate_by_name=True,
@@ -55,11 +54,11 @@ class Keyword(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of Keyword from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -69,7 +68,7 @@ class Keyword(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -80,7 +79,7 @@ class Keyword(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of Keyword from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/openalex/keywords_list_response.py b/service/src/main/inse/models/openalex/keywords_list_response.py
index ef7676a2..fc554fe3 100644
--- a/service/src/main/inse/models/openalex/keywords_list_response.py
+++ b/service/src/main/inse/models/openalex/keywords_list_response.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
OpenAlex API
@@ -10,31 +9,32 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
+from typing import Any, ClassVar, Self
from pydantic import BaseModel, ConfigDict
-from typing import Any, ClassVar, Dict, List, Optional
+from pydantic_core import to_jsonable_python
+
from inse.models.openalex.group_by_result import GroupByResult
from inse.models.openalex.keyword import Keyword
from inse.models.openalex.meta import Meta
-from typing import Optional, Set
-from typing_extensions import Self
-from pydantic_core import to_jsonable_python
+
class KeywordsListResponse(BaseModel):
"""
KeywordsListResponse
- """ # noqa: E501
- meta: Optional[Meta] = None
- results: Optional[List[Keyword]] = None
- group_by: Optional[List[GroupByResult]] = None
- __properties: ClassVar[List[str]] = ["meta", "results", "group_by"]
+ """
+ meta: Meta | None = None
+ results: list[Keyword] | None = None
+ group_by: list[GroupByResult] | None = None
+ __properties: ClassVar[list[str]] = ["meta", "results", "group_by"]
model_config = ConfigDict(
validate_by_name=True,
@@ -53,11 +53,11 @@ class KeywordsListResponse(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of KeywordsListResponse from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -67,7 +67,7 @@ class KeywordsListResponse(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -95,7 +95,7 @@ class KeywordsListResponse(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of KeywordsListResponse from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/openalex/language.py b/service/src/main/inse/models/openalex/language.py
index a983c074..d1e4a002 100644
--- a/service/src/main/inse/models/openalex/language.py
+++ b/service/src/main/inse/models/openalex/language.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
OpenAlex API
@@ -10,33 +9,33 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
-
from datetime import date, datetime
+from typing import Any, ClassVar, Self
+
from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
from pydantic_core import to_jsonable_python
+
class Language(BaseModel):
"""
Language of scholarly works
- """ # noqa: E501
- id: Optional[StrictStr] = Field(default=None, description="The OpenAlex ID for this language (uses ISO 639-1 codes).")
- display_name: Optional[StrictStr] = Field(default=None, description="The name of the language.")
- works_count: Optional[StrictInt] = Field(default=None, description="The number of works written in this language.")
- cited_by_count: Optional[StrictInt] = Field(default=None, description="Total citations to works in this language.")
- works_api_url: Optional[StrictStr] = Field(default=None, description="A URL that returns all works in this language.")
- created_date: Optional[date] = Field(default=None, description="When this language was added to OpenAlex (ISO 8601 date).")
- updated_date: Optional[datetime] = Field(default=None, description="When this language was last updated (ISO 8601 datetime).")
- __properties: ClassVar[List[str]] = ["id", "display_name", "works_count", "cited_by_count", "works_api_url", "created_date", "updated_date"]
+ """
+ id: StrictStr | None = Field(default=None, description="The OpenAlex ID for this language (uses ISO 639-1 codes).")
+ display_name: StrictStr | None = Field(default=None, description="The name of the language.")
+ works_count: StrictInt | None = Field(default=None, description="The number of works written in this language.")
+ cited_by_count: StrictInt | None = Field(default=None, description="Total citations to works in this language.")
+ works_api_url: StrictStr | None = Field(default=None, description="A URL that returns all works in this language.")
+ created_date: date | None = Field(default=None, description="When this language was added to OpenAlex (ISO 8601 date).")
+ updated_date: datetime | None = Field(default=None, description="When this language was last updated (ISO 8601 datetime).")
+ __properties: ClassVar[list[str]] = ["id", "display_name", "works_count", "cited_by_count", "works_api_url", "created_date", "updated_date"]
model_config = ConfigDict(
validate_by_name=True,
@@ -55,11 +54,11 @@ class Language(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of Language from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -69,7 +68,7 @@ class Language(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -80,7 +79,7 @@ class Language(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of Language from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/openalex/languages_list_response.py b/service/src/main/inse/models/openalex/languages_list_response.py
index 6c4cc2c1..9b4ae530 100644
--- a/service/src/main/inse/models/openalex/languages_list_response.py
+++ b/service/src/main/inse/models/openalex/languages_list_response.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
OpenAlex API
@@ -10,29 +9,30 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
+from typing import Any, ClassVar, Self
from pydantic import BaseModel, ConfigDict
-from typing import Any, ClassVar, Dict, List, Optional
+from pydantic_core import to_jsonable_python
+
from inse.models.openalex.language import Language
from inse.models.openalex.meta import Meta
-from typing import Optional, Set
-from typing_extensions import Self
-from pydantic_core import to_jsonable_python
+
class LanguagesListResponse(BaseModel):
"""
LanguagesListResponse
- """ # noqa: E501
- meta: Optional[Meta] = None
- results: Optional[List[Language]] = None
- __properties: ClassVar[List[str]] = ["meta", "results"]
+ """
+ meta: Meta | None = None
+ results: list[Language] | None = None
+ __properties: ClassVar[list[str]] = ["meta", "results"]
model_config = ConfigDict(
validate_by_name=True,
@@ -51,11 +51,11 @@ class LanguagesListResponse(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of LanguagesListResponse from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -65,7 +65,7 @@ class LanguagesListResponse(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -86,7 +86,7 @@ class LanguagesListResponse(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of LanguagesListResponse from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/openalex/license.py b/service/src/main/inse/models/openalex/license.py
index 7083e2ec..61c35b0d 100644
--- a/service/src/main/inse/models/openalex/license.py
+++ b/service/src/main/inse/models/openalex/license.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
OpenAlex API
@@ -10,35 +9,35 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
-
from datetime import date, datetime
+from typing import Any, ClassVar, Self
+
from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
from pydantic_core import to_jsonable_python
+
class License(BaseModel):
"""
Open access license
- """ # noqa: E501
- id: Optional[StrictStr] = None
- display_name: Optional[StrictStr] = None
- url: Optional[StrictStr] = None
- description: Optional[StrictStr] = None
- works_count: Optional[StrictInt] = None
- cited_by_count: Optional[StrictInt] = None
- works_api_url: Optional[StrictStr] = None
- created_date: Optional[date] = None
- updated_date: Optional[datetime] = None
- __properties: ClassVar[List[str]] = ["id", "display_name", "url", "description", "works_count", "cited_by_count", "works_api_url", "created_date", "updated_date"]
+ """
+ id: StrictStr | None = None
+ display_name: StrictStr | None = None
+ url: StrictStr | None = None
+ description: StrictStr | None = None
+ works_count: StrictInt | None = None
+ cited_by_count: StrictInt | None = None
+ works_api_url: StrictStr | None = None
+ created_date: date | None = None
+ updated_date: datetime | None = None
+ __properties: ClassVar[list[str]] = ["id", "display_name", "url", "description", "works_count", "cited_by_count", "works_api_url", "created_date", "updated_date"]
model_config = ConfigDict(
validate_by_name=True,
@@ -57,11 +56,11 @@ class License(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of License from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -71,7 +70,7 @@ class License(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -82,7 +81,7 @@ class License(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of License from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/openalex/licenses_list_response.py b/service/src/main/inse/models/openalex/licenses_list_response.py
index d94b15c0..d262414d 100644
--- a/service/src/main/inse/models/openalex/licenses_list_response.py
+++ b/service/src/main/inse/models/openalex/licenses_list_response.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
OpenAlex API
@@ -10,29 +9,30 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
+from typing import Any, ClassVar, Self
from pydantic import BaseModel, ConfigDict
-from typing import Any, ClassVar, Dict, List, Optional
+from pydantic_core import to_jsonable_python
+
from inse.models.openalex.license import License
from inse.models.openalex.meta import Meta
-from typing import Optional, Set
-from typing_extensions import Self
-from pydantic_core import to_jsonable_python
+
class LicensesListResponse(BaseModel):
"""
LicensesListResponse
- """ # noqa: E501
- meta: Optional[Meta] = None
- results: Optional[List[License]] = None
- __properties: ClassVar[List[str]] = ["meta", "results"]
+ """
+ meta: Meta | None = None
+ results: list[License] | None = None
+ __properties: ClassVar[list[str]] = ["meta", "results"]
model_config = ConfigDict(
validate_by_name=True,
@@ -51,11 +51,11 @@ class LicensesListResponse(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of LicensesListResponse from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -65,7 +65,7 @@ class LicensesListResponse(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -86,7 +86,7 @@ class LicensesListResponse(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of LicensesListResponse from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/openalex/list_changefiles200_response.py b/service/src/main/inse/models/openalex/list_changefiles200_response.py
index a183d821..87be1dbf 100644
--- a/service/src/main/inse/models/openalex/list_changefiles200_response.py
+++ b/service/src/main/inse/models/openalex/list_changefiles200_response.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
OpenAlex API
@@ -10,29 +9,34 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
+from typing import Any, ClassVar, Self
from pydantic import BaseModel, ConfigDict
-from typing import Any, ClassVar, Dict, List, Optional
-from inse.models.openalex.list_changefiles200_response_meta import ListChangefiles200ResponseMeta
-from inse.models.openalex.list_changefiles200_response_results_inner import ListChangefiles200ResponseResultsInner
-from typing import Optional, Set
-from typing_extensions import Self
from pydantic_core import to_jsonable_python
+from inse.models.openalex.list_changefiles200_response_meta import (
+ ListChangefiles200ResponseMeta,
+)
+from inse.models.openalex.list_changefiles200_response_results_inner import (
+ ListChangefiles200ResponseResultsInner,
+)
+
+
class ListChangefiles200Response(BaseModel):
"""
ListChangefiles200Response
- """ # noqa: E501
- meta: Optional[ListChangefiles200ResponseMeta] = None
- results: Optional[List[ListChangefiles200ResponseResultsInner]] = None
- __properties: ClassVar[List[str]] = ["meta", "results"]
+ """
+ meta: ListChangefiles200ResponseMeta | None = None
+ results: list[ListChangefiles200ResponseResultsInner] | None = None
+ __properties: ClassVar[list[str]] = ["meta", "results"]
model_config = ConfigDict(
validate_by_name=True,
@@ -51,11 +55,11 @@ class ListChangefiles200Response(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of ListChangefiles200Response from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -65,7 +69,7 @@ class ListChangefiles200Response(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -86,7 +90,7 @@ class ListChangefiles200Response(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of ListChangefiles200Response from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/openalex/list_changefiles200_response_meta.py b/service/src/main/inse/models/openalex/list_changefiles200_response_meta.py
index 53a11886..f81d4439 100644
--- a/service/src/main/inse/models/openalex/list_changefiles200_response_meta.py
+++ b/service/src/main/inse/models/openalex/list_changefiles200_response_meta.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
OpenAlex API
@@ -10,26 +9,26 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
+from typing import Any, ClassVar, Self
from pydantic import BaseModel, ConfigDict, Field, StrictInt
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
from pydantic_core import to_jsonable_python
+
class ListChangefiles200ResponseMeta(BaseModel):
"""
ListChangefiles200ResponseMeta
- """ # noqa: E501
- count: Optional[StrictInt] = Field(default=None, description="Number of available changefile dates")
- __properties: ClassVar[List[str]] = ["count"]
+ """
+ count: StrictInt | None = Field(default=None, description="Number of available changefile dates")
+ __properties: ClassVar[list[str]] = ["count"]
model_config = ConfigDict(
validate_by_name=True,
@@ -48,11 +47,11 @@ class ListChangefiles200ResponseMeta(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of ListChangefiles200ResponseMeta from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -62,7 +61,7 @@ class ListChangefiles200ResponseMeta(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -73,7 +72,7 @@ class ListChangefiles200ResponseMeta(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of ListChangefiles200ResponseMeta from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/openalex/list_changefiles200_response_results_inner.py b/service/src/main/inse/models/openalex/list_changefiles200_response_results_inner.py
index 2f25c3e7..62f12de9 100644
--- a/service/src/main/inse/models/openalex/list_changefiles200_response_results_inner.py
+++ b/service/src/main/inse/models/openalex/list_changefiles200_response_results_inner.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
OpenAlex API
@@ -10,28 +9,28 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
-
from datetime import date
+from typing import Any, ClassVar, Self
+
from pydantic import BaseModel, ConfigDict, Field, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
from pydantic_core import to_jsonable_python
+
class ListChangefiles200ResponseResultsInner(BaseModel):
"""
ListChangefiles200ResponseResultsInner
- """ # noqa: E501
- var_date: Optional[date] = Field(default=None, description="The changefile date (YYYY-MM-DD)", alias="date")
- url: Optional[StrictStr] = Field(default=None, description="URL to get details and download links for this date")
- __properties: ClassVar[List[str]] = ["date", "url"]
+ """
+ var_date: date | None = Field(default=None, description="The changefile date (YYYY-MM-DD)", alias="date")
+ url: StrictStr | None = Field(default=None, description="URL to get details and download links for this date")
+ __properties: ClassVar[list[str]] = ["date", "url"]
model_config = ConfigDict(
validate_by_name=True,
@@ -50,11 +49,11 @@ class ListChangefiles200ResponseResultsInner(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of ListChangefiles200ResponseResultsInner from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -64,7 +63,7 @@ class ListChangefiles200ResponseResultsInner(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -75,7 +74,7 @@ class ListChangefiles200ResponseResultsInner(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of ListChangefiles200ResponseResultsInner from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/openalex/location.py b/service/src/main/inse/models/openalex/location.py
index a2b88732..01c291df 100644
--- a/service/src/main/inse/models/openalex/location.py
+++ b/service/src/main/inse/models/openalex/location.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
OpenAlex API
@@ -10,35 +9,43 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
+from typing import Any, ClassVar, Self
-from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr, field_validator
-from typing import Any, ClassVar, Dict, List, Optional
-from inse.models.openalex.dehydrated_source import DehydratedSource
-from typing import Optional, Set
-from typing_extensions import Self
+from pydantic import (
+ BaseModel,
+ ConfigDict,
+ Field,
+ StrictBool,
+ StrictStr,
+ field_validator,
+)
from pydantic_core import to_jsonable_python
+from inse.models.openalex.dehydrated_source import DehydratedSource
+
+
class Location(BaseModel):
"""
Where a work is hosted
- """ # noqa: E501
- is_oa: Optional[StrictBool] = Field(default=None, description="Whether this location provides open access")
- landing_page_url: Optional[StrictStr] = Field(default=None, description="URL to the landing page")
- pdf_url: Optional[StrictStr] = Field(default=None, description="Direct URL to PDF")
- source: Optional[DehydratedSource] = Field(default=None, description="[Dehydrated source](/api-reference/sources#the-dehydratedsource-object)")
- license: Optional[StrictStr] = Field(default=None, description="The [license](/api-reference/licenses) (e.g., cc-by)")
- license_id: Optional[StrictStr] = None
- version: Optional[StrictStr] = Field(default=None, description="Version of the work at this location")
- is_accepted: Optional[StrictBool] = None
- is_published: Optional[StrictBool] = None
- __properties: ClassVar[List[str]] = ["is_oa", "landing_page_url", "pdf_url", "source", "license", "license_id", "version", "is_accepted", "is_published"]
+ """
+ is_oa: StrictBool | None = Field(default=None, description="Whether this location provides open access")
+ landing_page_url: StrictStr | None = Field(default=None, description="URL to the landing page")
+ pdf_url: StrictStr | None = Field(default=None, description="Direct URL to PDF")
+ source: DehydratedSource | None = Field(default=None, description="[Dehydrated source](/api-reference/sources#the-dehydratedsource-object)")
+ license: StrictStr | None = Field(default=None, description="The [license](/api-reference/licenses) (e.g., cc-by)")
+ license_id: StrictStr | None = None
+ version: StrictStr | None = Field(default=None, description="Version of the work at this location")
+ is_accepted: StrictBool | None = None
+ is_published: StrictBool | None = None
+ __properties: ClassVar[list[str]] = ["is_oa", "landing_page_url", "pdf_url", "source", "license", "license_id", "version", "is_accepted", "is_published"]
@field_validator('version')
def version_validate_enum(cls, value):
@@ -67,11 +74,11 @@ class Location(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of Location from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -81,7 +88,7 @@ class Location(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -95,7 +102,7 @@ class Location(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of Location from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/openalex/lsf_person.py b/service/src/main/inse/models/openalex/lsf_person.py
index 2820d56c..41fc6b06 100644
--- a/service/src/main/inse/models/openalex/lsf_person.py
+++ b/service/src/main/inse/models/openalex/lsf_person.py
@@ -1,4 +1,3 @@
-from typing import List, Optional
from pydantic import BaseModel, Field, StrictStr
@@ -13,40 +12,40 @@ class LsfPerson(BaseModel):
name: StrictStr = Field(description="The name of the person.")
firstname: StrictStr = Field(description="The first name of the person.")
surname: StrictStr = Field(description="The last name of the person.")
- title: Optional[StrictStr] = Field(
+ title: StrictStr | None = Field(
default=None, description="The title of the person."
)
- location: Optional[StrictStr] = Field(
+ location: StrictStr | None = Field(
default=None, description="The location of the person."
)
- room: Optional[StrictStr] = Field(
+ room: StrictStr | None = Field(
default=None, description="The room of the person."
)
- telefon: Optional[StrictStr] = Field(
+ telefon: StrictStr | None = Field(
default=None, description="The telephone number of the person."
)
- telefax: Optional[StrictStr] = Field(
+ telefax: StrictStr | None = Field(
default=None, description="The telefax number of the person."
)
- mail: Optional[StrictStr] = Field(
+ mail: StrictStr | None = Field(
default=None, description="The email address of the person."
)
- website: Optional[StrictStr] = Field(
+ website: StrictStr | None = Field(
default=None, description="The website of the person."
)
- affiliation_university: Optional[StrictStr] = Field(
+ affiliation_university: StrictStr | None = Field(
default=None, description="The university affiliation of the person."
)
- affiliation_faculty: Optional[StrictStr] = Field(
+ affiliation_faculty: StrictStr | None = Field(
default=None, description="The faculty affiliation of the person."
)
- affiliation_institute: Optional[StrictStr] = Field(
+ affiliation_institute: StrictStr | None = Field(
default=None, description="The institute affiliation of the person."
)
- affiliation_chair: Optional[StrictStr] = Field(
+ affiliation_chair: StrictStr | None = Field(
default=None, description="The chair affiliation of the person."
)
- functions: List[Function] = Field(description="The functions of the person.")
+ functions: list[Function] = Field(description="The functions of the person.")
@classmethod
def from_dict(cls, data: dict) -> "LsfPerson":
diff --git a/service/src/main/inse/models/openalex/meta.py b/service/src/main/inse/models/openalex/meta.py
index 833e3d79..3939ba4a 100644
--- a/service/src/main/inse/models/openalex/meta.py
+++ b/service/src/main/inse/models/openalex/meta.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
OpenAlex API
@@ -10,32 +9,32 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
+from typing import Any, ClassVar, Self
from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional, Union
-from typing import Optional, Set
-from typing_extensions import Self
from pydantic_core import to_jsonable_python
+
class Meta(BaseModel):
"""
Metadata about the query results
- """ # noqa: E501
- count: Optional[StrictInt] = Field(default=None, description="Total number of results matching the query")
- db_response_time_ms: Optional[StrictInt] = Field(default=None, description="Database response time in milliseconds")
- page: Optional[StrictInt] = Field(default=None, description="Current page number")
- per_page: Optional[StrictInt] = Field(default=None, description="Number of results per page")
- next_cursor: Optional[StrictStr] = Field(default=None, description="Cursor for the next page (when using cursor pagination)")
- groups_count: Optional[StrictInt] = Field(default=None, description="Number of groups when using group_by")
- cost_usd: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Cost of this request in USD")
- __properties: ClassVar[List[str]] = ["count", "db_response_time_ms", "page", "per_page", "next_cursor", "groups_count", "cost_usd"]
+ """
+ count: StrictInt | None = Field(default=None, description="Total number of results matching the query")
+ db_response_time_ms: StrictInt | None = Field(default=None, description="Database response time in milliseconds")
+ page: StrictInt | None = Field(default=None, description="Current page number")
+ per_page: StrictInt | None = Field(default=None, description="Number of results per page")
+ next_cursor: StrictStr | None = Field(default=None, description="Cursor for the next page (when using cursor pagination)")
+ groups_count: StrictInt | None = Field(default=None, description="Number of groups when using group_by")
+ cost_usd: StrictFloat | StrictInt | None = Field(default=None, description="Cost of this request in USD")
+ __properties: ClassVar[list[str]] = ["count", "db_response_time_ms", "page", "per_page", "next_cursor", "groups_count", "cost_usd"]
model_config = ConfigDict(
validate_by_name=True,
@@ -54,11 +53,11 @@ class Meta(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of Meta from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -68,7 +67,7 @@ class Meta(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -79,7 +78,7 @@ class Meta(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of Meta from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/openalex/model_field.py b/service/src/main/inse/models/openalex/model_field.py
index ce3c8afc..da24f3b3 100644
--- a/service/src/main/inse/models/openalex/model_field.py
+++ b/service/src/main/inse/models/openalex/model_field.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
OpenAlex API
@@ -10,42 +9,43 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
-
from datetime import date, datetime
+from typing import Any, ClassVar, Self
+
from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
+from pydantic_core import to_jsonable_python
+
from inse.models.openalex.domain_fields_inner import DomainFieldsInner
from inse.models.openalex.domain_ids import DomainIds
from inse.models.openalex.work_topic_domain import WorkTopicDomain
-from typing import Optional, Set
-from typing_extensions import Self
-from pydantic_core import to_jsonable_python
+
class ModelField(BaseModel):
"""
Second-level category in the topic hierarchy (26 total)
- """ # noqa: E501
- id: Optional[StrictStr] = Field(default=None, description="The OpenAlex ID for this field.")
- display_name: Optional[StrictStr] = Field(default=None, description="The English-language label of the field.")
- description: Optional[StrictStr] = Field(default=None, description="A description of this field.")
- display_name_alternatives: Optional[List[StrictStr]] = Field(default=None, description="Alternate names for this field.")
- domain: Optional[WorkTopicDomain] = None
- subfields: Optional[List[DomainFieldsInner]] = Field(default=None, description="The subfields within this field. Each object has `id` and `display_name`.")
- siblings: Optional[List[DomainFieldsInner]] = Field(default=None, description="Other fields at the same level. Each object has `id` and `display_name`.")
- ids: Optional[DomainIds] = None
- works_count: Optional[StrictInt] = Field(default=None, description="The number of works tagged with topics in this field.")
- cited_by_count: Optional[StrictInt] = Field(default=None, description="Total citations to works in this field.")
- works_api_url: Optional[StrictStr] = Field(default=None, description="A URL that returns all works tagged with this field.")
- created_date: Optional[date] = Field(default=None, description="When this field was added to OpenAlex (ISO 8601 date).")
- updated_date: Optional[datetime] = Field(default=None, description="When this field was last updated (ISO 8601 datetime).")
- __properties: ClassVar[List[str]] = ["id", "display_name", "description", "display_name_alternatives", "domain", "subfields", "siblings", "ids", "works_count", "cited_by_count", "works_api_url", "created_date", "updated_date"]
+ """
+ id: StrictStr | None = Field(default=None, description="The OpenAlex ID for this field.")
+ display_name: StrictStr | None = Field(default=None, description="The English-language label of the field.")
+ description: StrictStr | None = Field(default=None, description="A description of this field.")
+ display_name_alternatives: list[StrictStr] | None = Field(default=None, description="Alternate names for this field.")
+ domain: WorkTopicDomain | None = None
+ subfields: list[DomainFieldsInner] | None = Field(default=None, description="The subfields within this field. Each object has `id` and `display_name`.")
+ siblings: list[DomainFieldsInner] | None = Field(default=None, description="Other fields at the same level. Each object has `id` and `display_name`.")
+ ids: DomainIds | None = None
+ works_count: StrictInt | None = Field(default=None, description="The number of works tagged with topics in this field.")
+ cited_by_count: StrictInt | None = Field(default=None, description="Total citations to works in this field.")
+ works_api_url: StrictStr | None = Field(default=None, description="A URL that returns all works tagged with this field.")
+ created_date: date | None = Field(default=None, description="When this field was added to OpenAlex (ISO 8601 date).")
+ updated_date: datetime | None = Field(default=None, description="When this field was last updated (ISO 8601 datetime).")
+ __properties: ClassVar[list[str]] = ["id", "display_name", "description", "display_name_alternatives", "domain", "subfields", "siblings", "ids", "works_count", "cited_by_count", "works_api_url", "created_date", "updated_date"]
model_config = ConfigDict(
validate_by_name=True,
@@ -64,11 +64,11 @@ class ModelField(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of ModelField from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -78,7 +78,7 @@ class ModelField(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -109,7 +109,7 @@ class ModelField(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of ModelField from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/openalex/open_access.py b/service/src/main/inse/models/openalex/open_access.py
index 740c89b2..2f9496ab 100644
--- a/service/src/main/inse/models/openalex/open_access.py
+++ b/service/src/main/inse/models/openalex/open_access.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
OpenAlex API
@@ -10,29 +9,36 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
+from typing import Any, ClassVar, Self
-from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr, field_validator
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
+from pydantic import (
+ BaseModel,
+ ConfigDict,
+ Field,
+ StrictBool,
+ StrictStr,
+ field_validator,
+)
from pydantic_core import to_jsonable_python
+
class OpenAccess(BaseModel):
"""
Open access information
- """ # noqa: E501
- is_oa: Optional[StrictBool] = Field(default=None, description="Whether this work is open access")
- oa_status: Optional[StrictStr] = Field(default=None, description="Open access status")
- oa_url: Optional[StrictStr] = Field(default=None, description="Best open access URL")
- any_repository_has_fulltext: Optional[StrictBool] = Field(default=None, description="Whether any repository has the full text")
- __properties: ClassVar[List[str]] = ["is_oa", "oa_status", "oa_url", "any_repository_has_fulltext"]
+ """
+ is_oa: StrictBool | None = Field(default=None, description="Whether this work is open access")
+ oa_status: StrictStr | None = Field(default=None, description="Open access status")
+ oa_url: StrictStr | None = Field(default=None, description="Best open access URL")
+ any_repository_has_fulltext: StrictBool | None = Field(default=None, description="Whether any repository has the full text")
+ __properties: ClassVar[list[str]] = ["is_oa", "oa_status", "oa_url", "any_repository_has_fulltext"]
@field_validator('oa_status')
def oa_status_validate_enum(cls, value):
@@ -61,11 +67,11 @@ class OpenAccess(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of OpenAccess from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -75,7 +81,7 @@ class OpenAccess(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -86,7 +92,7 @@ class OpenAccess(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of OpenAccess from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/openalex/publisher.py b/service/src/main/inse/models/openalex/publisher.py
index 57e477c8..5afdd235 100644
--- a/service/src/main/inse/models/openalex/publisher.py
+++ b/service/src/main/inse/models/openalex/publisher.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
OpenAlex API
@@ -10,43 +9,44 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
-
from datetime import date, datetime
+from typing import Any, ClassVar, Self
+
from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
+from pydantic_core import to_jsonable_python
+
from inse.models.openalex.author_counts_by_year_inner import AuthorCountsByYearInner
from inse.models.openalex.publisher_ids import PublisherIds
from inse.models.openalex.publisher_parent_publisher import PublisherParentPublisher
-from typing import Optional, Set
-from typing_extensions import Self
-from pydantic_core import to_jsonable_python
+
class Publisher(BaseModel):
"""
An organization that publishes scholarly works
- """ # noqa: E501
- id: Optional[StrictStr] = Field(default=None, description="The OpenAlex ID for this publisher.")
- display_name: Optional[StrictStr] = Field(default=None, description="The primary name of the publisher.")
- alternate_titles: Optional[List[StrictStr]] = Field(default=None, description="Alternate titles for this publisher (including translations).")
- country_codes: Optional[List[StrictStr]] = Field(default=None, description="ISO two-letter country codes where the publisher is primarily located.")
- hierarchy_level: Optional[StrictInt] = Field(default=None, description="The hierarchy level for this publisher. Level 0 has no parent publishers.")
- parent_publisher: Optional[PublisherParentPublisher] = None
- lineage: Optional[List[StrictStr]] = Field(default=None, description="OpenAlex IDs including this publisher and any parent publishers.")
- works_count: Optional[StrictInt] = Field(default=None, description="The number of works published by this publisher.")
- cited_by_count: Optional[StrictInt] = Field(default=None, description="Total citations to works linked to this publisher.")
- sources_api_url: Optional[StrictStr] = Field(default=None, description="A URL that will get you a list of all sources published by this publisher.")
- ids: Optional[PublisherIds] = None
- counts_by_year: Optional[List[AuthorCountsByYearInner]] = Field(default=None, description="`works_count` and `cited_by_count` for each of the last ten years.")
- created_date: Optional[date] = Field(default=None, description="When this publisher was added to OpenAlex (ISO 8601 date).")
- updated_date: Optional[datetime] = Field(default=None, description="When this publisher was last updated (ISO 8601 datetime).")
- __properties: ClassVar[List[str]] = ["id", "display_name", "alternate_titles", "country_codes", "hierarchy_level", "parent_publisher", "lineage", "works_count", "cited_by_count", "sources_api_url", "ids", "counts_by_year", "created_date", "updated_date"]
+ """
+ id: StrictStr | None = Field(default=None, description="The OpenAlex ID for this publisher.")
+ display_name: StrictStr | None = Field(default=None, description="The primary name of the publisher.")
+ alternate_titles: list[StrictStr] | None = Field(default=None, description="Alternate titles for this publisher (including translations).")
+ country_codes: list[StrictStr] | None = Field(default=None, description="ISO two-letter country codes where the publisher is primarily located.")
+ hierarchy_level: StrictInt | None = Field(default=None, description="The hierarchy level for this publisher. Level 0 has no parent publishers.")
+ parent_publisher: PublisherParentPublisher | None = None
+ lineage: list[StrictStr] | None = Field(default=None, description="OpenAlex IDs including this publisher and any parent publishers.")
+ works_count: StrictInt | None = Field(default=None, description="The number of works published by this publisher.")
+ cited_by_count: StrictInt | None = Field(default=None, description="Total citations to works linked to this publisher.")
+ sources_api_url: StrictStr | None = Field(default=None, description="A URL that will get you a list of all sources published by this publisher.")
+ ids: PublisherIds | None = None
+ counts_by_year: list[AuthorCountsByYearInner] | None = Field(default=None, description="`works_count` and `cited_by_count` for each of the last ten years.")
+ created_date: date | None = Field(default=None, description="When this publisher was added to OpenAlex (ISO 8601 date).")
+ updated_date: datetime | None = Field(default=None, description="When this publisher was last updated (ISO 8601 datetime).")
+ __properties: ClassVar[list[str]] = ["id", "display_name", "alternate_titles", "country_codes", "hierarchy_level", "parent_publisher", "lineage", "works_count", "cited_by_count", "sources_api_url", "ids", "counts_by_year", "created_date", "updated_date"]
model_config = ConfigDict(
validate_by_name=True,
@@ -65,11 +65,11 @@ class Publisher(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of Publisher from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -79,7 +79,7 @@ class Publisher(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -103,7 +103,7 @@ class Publisher(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of Publisher from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/openalex/publisher_ids.py b/service/src/main/inse/models/openalex/publisher_ids.py
index 57c2f8b5..e5bfba29 100644
--- a/service/src/main/inse/models/openalex/publisher_ids.py
+++ b/service/src/main/inse/models/openalex/publisher_ids.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
OpenAlex API
@@ -10,28 +9,28 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
+from typing import Any, ClassVar, Self
from pydantic import BaseModel, ConfigDict, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
from pydantic_core import to_jsonable_python
+
class PublisherIds(BaseModel):
"""
External identifiers:
- """ # noqa: E501
- openalex: Optional[StrictStr] = None
- ror: Optional[StrictStr] = None
- wikidata: Optional[StrictStr] = None
- __properties: ClassVar[List[str]] = ["openalex", "ror", "wikidata"]
+ """
+ openalex: StrictStr | None = None
+ ror: StrictStr | None = None
+ wikidata: StrictStr | None = None
+ __properties: ClassVar[list[str]] = ["openalex", "ror", "wikidata"]
model_config = ConfigDict(
validate_by_name=True,
@@ -50,11 +49,11 @@ class PublisherIds(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of PublisherIds from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -64,7 +63,7 @@ class PublisherIds(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -75,7 +74,7 @@ class PublisherIds(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of PublisherIds from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/openalex/publisher_parent_publisher.py b/service/src/main/inse/models/openalex/publisher_parent_publisher.py
index 14412f61..3fa0ba02 100644
--- a/service/src/main/inse/models/openalex/publisher_parent_publisher.py
+++ b/service/src/main/inse/models/openalex/publisher_parent_publisher.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
OpenAlex API
@@ -10,27 +9,27 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
+from typing import Any, ClassVar, Self
from pydantic import BaseModel, ConfigDict, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
from pydantic_core import to_jsonable_python
+
class PublisherParentPublisher(BaseModel):
"""
OpenAlex ID of the direct parent publisher. Null if `hierarchy_level` is 0.
- """ # noqa: E501
- id: Optional[StrictStr] = None
- display_name: Optional[StrictStr] = None
- __properties: ClassVar[List[str]] = ["id", "display_name"]
+ """
+ id: StrictStr | None = None
+ display_name: StrictStr | None = None
+ __properties: ClassVar[list[str]] = ["id", "display_name"]
model_config = ConfigDict(
validate_by_name=True,
@@ -49,11 +48,11 @@ class PublisherParentPublisher(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of PublisherParentPublisher from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -63,7 +62,7 @@ class PublisherParentPublisher(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -74,7 +73,7 @@ class PublisherParentPublisher(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of PublisherParentPublisher from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/openalex/publishers_list_response.py b/service/src/main/inse/models/openalex/publishers_list_response.py
index 1dc91eab..8940efc6 100644
--- a/service/src/main/inse/models/openalex/publishers_list_response.py
+++ b/service/src/main/inse/models/openalex/publishers_list_response.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
OpenAlex API
@@ -10,31 +9,32 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
+from typing import Any, ClassVar, Self
from pydantic import BaseModel, ConfigDict
-from typing import Any, ClassVar, Dict, List, Optional
+from pydantic_core import to_jsonable_python
+
from inse.models.openalex.group_by_result import GroupByResult
from inse.models.openalex.meta import Meta
from inse.models.openalex.publisher import Publisher
-from typing import Optional, Set
-from typing_extensions import Self
-from pydantic_core import to_jsonable_python
+
class PublishersListResponse(BaseModel):
"""
PublishersListResponse
- """ # noqa: E501
- meta: Optional[Meta] = None
- results: Optional[List[Publisher]] = None
- group_by: Optional[List[GroupByResult]] = None
- __properties: ClassVar[List[str]] = ["meta", "results", "group_by"]
+ """
+ meta: Meta | None = None
+ results: list[Publisher] | None = None
+ group_by: list[GroupByResult] | None = None
+ __properties: ClassVar[list[str]] = ["meta", "results", "group_by"]
model_config = ConfigDict(
validate_by_name=True,
@@ -53,11 +53,11 @@ class PublishersListResponse(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of PublishersListResponse from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -67,7 +67,7 @@ class PublishersListResponse(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -95,7 +95,7 @@ class PublishersListResponse(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of PublishersListResponse from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/openalex/rate_limit_response.py b/service/src/main/inse/models/openalex/rate_limit_response.py
index 2508594b..9c3f73c3 100644
--- a/service/src/main/inse/models/openalex/rate_limit_response.py
+++ b/service/src/main/inse/models/openalex/rate_limit_response.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
OpenAlex API
@@ -10,28 +9,31 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
+from typing import Any, ClassVar, Self
from pydantic import BaseModel, ConfigDict, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from inse.models.openalex.rate_limit_response_rate_limit import RateLimitResponseRateLimit
-from typing import Optional, Set
-from typing_extensions import Self
from pydantic_core import to_jsonable_python
+from inse.models.openalex.rate_limit_response_rate_limit import (
+ RateLimitResponseRateLimit,
+)
+
+
class RateLimitResponse(BaseModel):
"""
RateLimitResponse
- """ # noqa: E501
- api_key: Optional[StrictStr] = None
- rate_limit: Optional[RateLimitResponseRateLimit] = None
- __properties: ClassVar[List[str]] = ["api_key", "rate_limit"]
+ """
+ api_key: StrictStr | None = None
+ rate_limit: RateLimitResponseRateLimit | None = None
+ __properties: ClassVar[list[str]] = ["api_key", "rate_limit"]
model_config = ConfigDict(
validate_by_name=True,
@@ -50,11 +52,11 @@ class RateLimitResponse(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of RateLimitResponse from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -64,7 +66,7 @@ class RateLimitResponse(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -78,7 +80,7 @@ class RateLimitResponse(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of RateLimitResponse from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/openalex/rate_limit_response_rate_limit.py b/service/src/main/inse/models/openalex/rate_limit_response_rate_limit.py
index 324aee1d..0e0df1b6 100644
--- a/service/src/main/inse/models/openalex/rate_limit_response_rate_limit.py
+++ b/service/src/main/inse/models/openalex/rate_limit_response_rate_limit.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
OpenAlex API
@@ -10,40 +9,43 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
-
from datetime import datetime
+from typing import Any, ClassVar, Self
+
from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt
-from typing import Any, ClassVar, Dict, List, Optional, Union
-from inse.models.openalex.rate_limit_response_rate_limit_endpoint_costs_usd import RateLimitResponseRateLimitEndpointCostsUsd
-from typing import Optional, Set
-from typing_extensions import Self
from pydantic_core import to_jsonable_python
+from inse.models.openalex.rate_limit_response_rate_limit_endpoint_costs_usd import (
+ RateLimitResponseRateLimitEndpointCostsUsd,
+)
+
+
class RateLimitResponseRateLimit(BaseModel):
"""
RateLimitResponseRateLimit
- """ # noqa: E501
- daily_budget_usd: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Your daily usage allowance in USD")
- daily_used_usd: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Amount used today in USD")
- daily_remaining_usd: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Remaining daily allowance in USD")
- prepaid_balance_usd: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Total prepaid balance in USD")
- prepaid_remaining_usd: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Remaining prepaid balance in USD")
- prepaid_expires_at: Optional[datetime] = Field(default=None, description="When prepaid balance expires")
- resets_at: Optional[datetime] = None
- resets_in_seconds: Optional[StrictInt] = None
- endpoint_costs_usd: Optional[RateLimitResponseRateLimitEndpointCostsUsd] = None
- credits_limit: Optional[StrictInt] = Field(default=None, description="Deprecated. Use daily_budget_usd instead.")
- credits_used: Optional[StrictInt] = Field(default=None, description="Deprecated. Use daily_used_usd instead.")
- credits_remaining: Optional[StrictInt] = Field(default=None, description="Deprecated. Use daily_remaining_usd instead.")
- credit_costs: Optional[Dict[str, Any]] = Field(default=None, description="Deprecated. Use endpoint_costs_usd instead.")
- __properties: ClassVar[List[str]] = ["daily_budget_usd", "daily_used_usd", "daily_remaining_usd", "prepaid_balance_usd", "prepaid_remaining_usd", "prepaid_expires_at", "resets_at", "resets_in_seconds", "endpoint_costs_usd", "credits_limit", "credits_used", "credits_remaining", "credit_costs"]
+ """
+ daily_budget_usd: StrictFloat | StrictInt | None = Field(default=None, description="Your daily usage allowance in USD")
+ daily_used_usd: StrictFloat | StrictInt | None = Field(default=None, description="Amount used today in USD")
+ daily_remaining_usd: StrictFloat | StrictInt | None = Field(default=None, description="Remaining daily allowance in USD")
+ prepaid_balance_usd: StrictFloat | StrictInt | None = Field(default=None, description="Total prepaid balance in USD")
+ prepaid_remaining_usd: StrictFloat | StrictInt | None = Field(default=None, description="Remaining prepaid balance in USD")
+ prepaid_expires_at: datetime | None = Field(default=None, description="When prepaid balance expires")
+ resets_at: datetime | None = None
+ resets_in_seconds: StrictInt | None = None
+ endpoint_costs_usd: RateLimitResponseRateLimitEndpointCostsUsd | None = None
+ credits_limit: StrictInt | None = Field(default=None, description="Deprecated. Use daily_budget_usd instead.")
+ credits_used: StrictInt | None = Field(default=None, description="Deprecated. Use daily_used_usd instead.")
+ credits_remaining: StrictInt | None = Field(default=None, description="Deprecated. Use daily_remaining_usd instead.")
+ credit_costs: dict[str, Any] | None = Field(default=None, description="Deprecated. Use endpoint_costs_usd instead.")
+ __properties: ClassVar[list[str]] = ["daily_budget_usd", "daily_used_usd", "daily_remaining_usd", "prepaid_balance_usd", "prepaid_remaining_usd", "prepaid_expires_at", "resets_at", "resets_in_seconds", "endpoint_costs_usd", "credits_limit", "credits_used", "credits_remaining", "credit_costs"]
model_config = ConfigDict(
validate_by_name=True,
@@ -62,11 +64,11 @@ class RateLimitResponseRateLimit(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of RateLimitResponseRateLimit from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -76,7 +78,7 @@ class RateLimitResponseRateLimit(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -90,7 +92,7 @@ class RateLimitResponseRateLimit(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of RateLimitResponseRateLimit from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/openalex/rate_limit_response_rate_limit_endpoint_costs_usd.py b/service/src/main/inse/models/openalex/rate_limit_response_rate_limit_endpoint_costs_usd.py
index 432d9b0c..8e70bfed 100644
--- a/service/src/main/inse/models/openalex/rate_limit_response_rate_limit_endpoint_costs_usd.py
+++ b/service/src/main/inse/models/openalex/rate_limit_response_rate_limit_endpoint_costs_usd.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
OpenAlex API
@@ -10,31 +9,32 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import builtins
+import json
import pprint
import re # noqa: F401
-import json
+from typing import Any, ClassVar, Self
from pydantic import BaseModel, ConfigDict, StrictFloat, StrictInt
-from typing import Any, ClassVar, Dict, List, Optional, Union
-from typing import Optional, Set
-from typing_extensions import Self
from pydantic_core import to_jsonable_python
+
class RateLimitResponseRateLimitEndpointCostsUsd(BaseModel):
"""
Cost per request in USD for each endpoint type
- """ # noqa: E501
- singleton: Optional[Union[StrictFloat, StrictInt]] = None
- list: Optional[Union[StrictFloat, StrictInt]] = None
- search: Optional[Union[StrictFloat, StrictInt]] = None
- content: Optional[Union[StrictFloat, StrictInt]] = None
- semantic: Optional[Union[StrictFloat, StrictInt]] = None
- text: Optional[Union[StrictFloat, StrictInt]] = None
- __properties: ClassVar[List[str]] = ["singleton", "list", "search", "content", "semantic", "text"]
+ """
+ singleton: StrictFloat | StrictInt | None = None
+ list: StrictFloat | StrictInt | None = None
+ search: StrictFloat | StrictInt | None = None
+ content: StrictFloat | StrictInt | None = None
+ semantic: StrictFloat | StrictInt | None = None
+ text: StrictFloat | StrictInt | None = None
+ __properties: ClassVar[builtins.list[str]] = ["singleton", "list", "search", "content", "semantic", "text"]
model_config = ConfigDict(
validate_by_name=True,
@@ -53,11 +53,11 @@ class RateLimitResponseRateLimitEndpointCostsUsd(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of RateLimitResponseRateLimitEndpointCostsUsd from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -67,7 +67,7 @@ class RateLimitResponseRateLimitEndpointCostsUsd(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -78,7 +78,7 @@ class RateLimitResponseRateLimitEndpointCostsUsd(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of RateLimitResponseRateLimitEndpointCostsUsd from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/openalex/sdg.py b/service/src/main/inse/models/openalex/sdg.py
index 64180e96..b5c3e09d 100644
--- a/service/src/main/inse/models/openalex/sdg.py
+++ b/service/src/main/inse/models/openalex/sdg.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
OpenAlex API
@@ -10,38 +9,39 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
-
from datetime import date, datetime
+from typing import Any, ClassVar, Self
+
from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from inse.models.openalex.sdg_ids import SdgIds
-from typing import Optional, Set
-from typing_extensions import Self
from pydantic_core import to_jsonable_python
+from inse.models.openalex.sdg_ids import SdgIds
+
+
class Sdg(BaseModel):
"""
UN Sustainable Development Goal (17 total)
- """ # noqa: E501
- id: Optional[StrictStr] = Field(default=None, description="The OpenAlex ID for this SDG.")
- display_name: Optional[StrictStr] = Field(default=None, description="The name of the SDG.")
- description: Optional[StrictStr] = Field(default=None, description="The official UN description of this goal.")
- ids: Optional[SdgIds] = None
- works_count: Optional[StrictInt] = Field(default=None, description="The number of works tagged with this SDG.")
- cited_by_count: Optional[StrictInt] = Field(default=None, description="Total citations to works tagged with this SDG.")
- image_url: Optional[StrictStr] = Field(default=None, description="URL to the official SDG icon image.")
- image_thumbnail_url: Optional[StrictStr] = Field(default=None, description="Smaller version of `image_url`.")
- works_api_url: Optional[StrictStr] = Field(default=None, description="A URL that returns all works tagged with this SDG.")
- created_date: Optional[date] = Field(default=None, description="When this SDG was added to OpenAlex (ISO 8601 date).")
- updated_date: Optional[datetime] = Field(default=None, description="When this SDG was last updated (ISO 8601 datetime).")
- __properties: ClassVar[List[str]] = ["id", "display_name", "description", "ids", "works_count", "cited_by_count", "image_url", "image_thumbnail_url", "works_api_url", "created_date", "updated_date"]
+ """
+ id: StrictStr | None = Field(default=None, description="The OpenAlex ID for this SDG.")
+ display_name: StrictStr | None = Field(default=None, description="The name of the SDG.")
+ description: StrictStr | None = Field(default=None, description="The official UN description of this goal.")
+ ids: SdgIds | None = None
+ works_count: StrictInt | None = Field(default=None, description="The number of works tagged with this SDG.")
+ cited_by_count: StrictInt | None = Field(default=None, description="Total citations to works tagged with this SDG.")
+ image_url: StrictStr | None = Field(default=None, description="URL to the official SDG icon image.")
+ image_thumbnail_url: StrictStr | None = Field(default=None, description="Smaller version of `image_url`.")
+ works_api_url: StrictStr | None = Field(default=None, description="A URL that returns all works tagged with this SDG.")
+ created_date: date | None = Field(default=None, description="When this SDG was added to OpenAlex (ISO 8601 date).")
+ updated_date: datetime | None = Field(default=None, description="When this SDG was last updated (ISO 8601 datetime).")
+ __properties: ClassVar[list[str]] = ["id", "display_name", "description", "ids", "works_count", "cited_by_count", "image_url", "image_thumbnail_url", "works_api_url", "created_date", "updated_date"]
model_config = ConfigDict(
validate_by_name=True,
@@ -60,11 +60,11 @@ class Sdg(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of Sdg from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -74,7 +74,7 @@ class Sdg(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -88,7 +88,7 @@ class Sdg(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of Sdg from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/openalex/sdg_ids.py b/service/src/main/inse/models/openalex/sdg_ids.py
index 103d4ccd..4b387cab 100644
--- a/service/src/main/inse/models/openalex/sdg_ids.py
+++ b/service/src/main/inse/models/openalex/sdg_ids.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
OpenAlex API
@@ -10,28 +9,28 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
+from typing import Any, ClassVar, Self
from pydantic import BaseModel, ConfigDict, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
from pydantic_core import to_jsonable_python
+
class SdgIds(BaseModel):
"""
External identifiers:
- """ # noqa: E501
- openalex: Optional[StrictStr] = None
- un: Optional[StrictStr] = None
- wikidata: Optional[StrictStr] = None
- __properties: ClassVar[List[str]] = ["openalex", "un", "wikidata"]
+ """
+ openalex: StrictStr | None = None
+ un: StrictStr | None = None
+ wikidata: StrictStr | None = None
+ __properties: ClassVar[list[str]] = ["openalex", "un", "wikidata"]
model_config = ConfigDict(
validate_by_name=True,
@@ -50,11 +49,11 @@ class SdgIds(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of SdgIds from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -64,7 +63,7 @@ class SdgIds(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -75,7 +74,7 @@ class SdgIds(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of SdgIds from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/openalex/sdgs_list_response.py b/service/src/main/inse/models/openalex/sdgs_list_response.py
index f2b680b2..1368e3d4 100644
--- a/service/src/main/inse/models/openalex/sdgs_list_response.py
+++ b/service/src/main/inse/models/openalex/sdgs_list_response.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
OpenAlex API
@@ -10,29 +9,30 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
+from typing import Any, ClassVar, Self
from pydantic import BaseModel, ConfigDict
-from typing import Any, ClassVar, Dict, List, Optional
+from pydantic_core import to_jsonable_python
+
from inse.models.openalex.meta import Meta
from inse.models.openalex.sdg import Sdg
-from typing import Optional, Set
-from typing_extensions import Self
-from pydantic_core import to_jsonable_python
+
class SdgsListResponse(BaseModel):
"""
SdgsListResponse
- """ # noqa: E501
- meta: Optional[Meta] = None
- results: Optional[List[Sdg]] = None
- __properties: ClassVar[List[str]] = ["meta", "results"]
+ """
+ meta: Meta | None = None
+ results: list[Sdg] | None = None
+ __properties: ClassVar[list[str]] = ["meta", "results"]
model_config = ConfigDict(
validate_by_name=True,
@@ -51,11 +51,11 @@ class SdgsListResponse(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of SdgsListResponse from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -65,7 +65,7 @@ class SdgsListResponse(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -86,7 +86,7 @@ class SdgsListResponse(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of SdgsListResponse from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/openalex/source.py b/service/src/main/inse/models/openalex/source.py
index bdfefdf3..82e241eb 100644
--- a/service/src/main/inse/models/openalex/source.py
+++ b/service/src/main/inse/models/openalex/source.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
OpenAlex API
@@ -10,49 +9,58 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
-
from datetime import date, datetime
-from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr, field_validator
-from typing import Any, ClassVar, Dict, List, Optional
+from typing import Any, ClassVar, Self
+
+from pydantic import (
+ BaseModel,
+ ConfigDict,
+ Field,
+ StrictBool,
+ StrictInt,
+ StrictStr,
+ field_validator,
+)
+from pydantic_core import to_jsonable_python
+
from inse.models.openalex.author_counts_by_year_inner import AuthorCountsByYearInner
from inse.models.openalex.author_summary_stats import AuthorSummaryStats
from inse.models.openalex.source_ids import SourceIds
-from typing import Optional, Set
-from typing_extensions import Self
-from pydantic_core import to_jsonable_python
+
class Source(BaseModel):
"""
A journal, repository, or other venue for scholarly works
- """ # noqa: E501
- id: Optional[StrictStr] = Field(default=None, description="The OpenAlex ID for this source.")
- issn_l: Optional[StrictStr] = Field(default=None, description="The ISSN-L (linking ISSN) for this source. This is the Canonical External ID for sources.")
- issn: Optional[List[StrictStr]] = Field(default=None, description="All ISSNs used by this source. Many publications have multiple ISSNs.")
- display_name: Optional[StrictStr] = Field(default=None, description="The name of the source.")
- type: Optional[StrictStr] = Field(default=None, description="The type of source: `journal`, `repository`, `conference`, `ebook platform`, `book series`, `metadata`, or `other`.")
- host_organization: Optional[StrictStr] = Field(default=None, description="The host organization as an OpenAlex ID. This will be an Institution ID if the source is a repository, or a Publisher ID if it's a journal/conference.")
- host_organization_name: Optional[StrictStr] = Field(default=None, description="The display_name of the host organization.")
- host_organization_lineage: Optional[List[StrictStr]] = Field(default=None, description="OpenAlex IDs of parent publishers (only for publisher-hosted sources).")
- is_oa: Optional[StrictBool] = Field(default=None, description="Whether this is currently a fully open-access source.")
- is_in_doaj: Optional[StrictBool] = Field(default=None, description="Whether this journal is listed in the Directory of Open Access Journals.")
- works_count: Optional[StrictInt] = Field(default=None, description="The number of works this source hosts.")
- cited_by_count: Optional[StrictInt] = Field(default=None, description="Total citations to works hosted in this source.")
- summary_stats: Optional[AuthorSummaryStats] = None
- apc_usd: Optional[StrictInt] = Field(default=None, description="The source's article processing charge in USD.")
- homepage_url: Optional[StrictStr] = Field(default=None, description="The homepage URL for this source.")
- ids: Optional[SourceIds] = None
- counts_by_year: Optional[List[AuthorCountsByYearInner]] = Field(default=None, description="`works_count` and `cited_by_count` for each of the last ten years.")
- works_api_url: Optional[StrictStr] = Field(default=None, description="A URL that will get you a list of all this source's works.")
- created_date: Optional[date] = Field(default=None, description="When this source was added to OpenAlex (ISO 8601 date).")
- updated_date: Optional[datetime] = Field(default=None, description="When this source was last updated (ISO 8601 datetime).")
- __properties: ClassVar[List[str]] = ["id", "issn_l", "issn", "display_name", "type", "host_organization", "host_organization_name", "host_organization_lineage", "is_oa", "is_in_doaj", "works_count", "cited_by_count", "summary_stats", "apc_usd", "homepage_url", "ids", "counts_by_year", "works_api_url", "created_date", "updated_date"]
+ """
+ id: StrictStr | None = Field(default=None, description="The OpenAlex ID for this source.")
+ issn_l: StrictStr | None = Field(default=None, description="The ISSN-L (linking ISSN) for this source. This is the Canonical External ID for sources.")
+ issn: list[StrictStr] | None = Field(default=None, description="All ISSNs used by this source. Many publications have multiple ISSNs.")
+ display_name: StrictStr | None = Field(default=None, description="The name of the source.")
+ type: StrictStr | None = Field(default=None, description="The type of source: `journal`, `repository`, `conference`, `ebook platform`, `book series`, `metadata`, or `other`.")
+ host_organization: StrictStr | None = Field(default=None, description="The host organization as an OpenAlex ID. This will be an Institution ID if the source is a repository, or a Publisher ID if it's a journal/conference.")
+ host_organization_name: StrictStr | None = Field(default=None, description="The display_name of the host organization.")
+ host_organization_lineage: list[StrictStr] | None = Field(default=None, description="OpenAlex IDs of parent publishers (only for publisher-hosted sources).")
+ is_oa: StrictBool | None = Field(default=None, description="Whether this is currently a fully open-access source.")
+ is_in_doaj: StrictBool | None = Field(default=None, description="Whether this journal is listed in the Directory of Open Access Journals.")
+ works_count: StrictInt | None = Field(default=None, description="The number of works this source hosts.")
+ cited_by_count: StrictInt | None = Field(default=None, description="Total citations to works hosted in this source.")
+ summary_stats: AuthorSummaryStats | None = None
+ apc_usd: StrictInt | None = Field(default=None, description="The source's article processing charge in USD.")
+ homepage_url: StrictStr | None = Field(default=None, description="The homepage URL for this source.")
+ ids: SourceIds | None = None
+ counts_by_year: list[AuthorCountsByYearInner] | None = Field(default=None, description="`works_count` and `cited_by_count` for each of the last ten years.")
+ works_api_url: StrictStr | None = Field(default=None, description="A URL that will get you a list of all this source's works.")
+ created_date: date | None = Field(default=None, description="When this source was added to OpenAlex (ISO 8601 date).")
+ updated_date: datetime | None = Field(default=None, description="When this source was last updated (ISO 8601 datetime).")
+ __properties: ClassVar[list[str]] = ["id", "issn_l", "issn", "display_name", "type", "host_organization", "host_organization_name", "host_organization_lineage", "is_oa", "is_in_doaj", "works_count", "cited_by_count", "summary_stats", "apc_usd", "homepage_url", "ids", "counts_by_year", "works_api_url", "created_date", "updated_date"]
@field_validator('type')
def type_validate_enum(cls, value):
@@ -81,11 +89,11 @@ class Source(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of Source from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -95,7 +103,7 @@ class Source(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -119,7 +127,7 @@ class Source(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of Source from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/openalex/source_ids.py b/service/src/main/inse/models/openalex/source_ids.py
index b8c7c185..765ba273 100644
--- a/service/src/main/inse/models/openalex/source_ids.py
+++ b/service/src/main/inse/models/openalex/source_ids.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
OpenAlex API
@@ -10,31 +9,31 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
+from typing import Any, ClassVar, Self
from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
from pydantic_core import to_jsonable_python
+
class SourceIds(BaseModel):
"""
External identifiers:
- """ # noqa: E501
- openalex: Optional[StrictStr] = None
- issn_l: Optional[StrictStr] = None
- issn: Optional[List[StrictStr]] = None
- mag: Optional[StrictInt] = None
- wikidata: Optional[StrictStr] = None
- fatcat: Optional[StrictStr] = None
- __properties: ClassVar[List[str]] = ["openalex", "issn_l", "issn", "mag", "wikidata", "fatcat"]
+ """
+ openalex: StrictStr | None = None
+ issn_l: StrictStr | None = None
+ issn: list[StrictStr] | None = None
+ mag: StrictInt | None = None
+ wikidata: StrictStr | None = None
+ fatcat: StrictStr | None = None
+ __properties: ClassVar[list[str]] = ["openalex", "issn_l", "issn", "mag", "wikidata", "fatcat"]
model_config = ConfigDict(
validate_by_name=True,
@@ -53,11 +52,11 @@ class SourceIds(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of SourceIds from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -67,7 +66,7 @@ class SourceIds(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -78,7 +77,7 @@ class SourceIds(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of SourceIds from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/openalex/source_type.py b/service/src/main/inse/models/openalex/source_type.py
index 8811321b..804d465f 100644
--- a/service/src/main/inse/models/openalex/source_type.py
+++ b/service/src/main/inse/models/openalex/source_type.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
OpenAlex API
@@ -10,33 +9,33 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
-
from datetime import date, datetime
+from typing import Any, ClassVar, Self
+
from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
from pydantic_core import to_jsonable_python
+
class SourceType(BaseModel):
"""
Type of source
- """ # noqa: E501
- id: Optional[StrictStr] = None
- display_name: Optional[StrictStr] = None
- works_count: Optional[StrictInt] = None
- cited_by_count: Optional[StrictInt] = None
- works_api_url: Optional[StrictStr] = None
- created_date: Optional[date] = None
- updated_date: Optional[datetime] = None
- __properties: ClassVar[List[str]] = ["id", "display_name", "works_count", "cited_by_count", "works_api_url", "created_date", "updated_date"]
+ """
+ id: StrictStr | None = None
+ display_name: StrictStr | None = None
+ works_count: StrictInt | None = None
+ cited_by_count: StrictInt | None = None
+ works_api_url: StrictStr | None = None
+ created_date: date | None = None
+ updated_date: datetime | None = None
+ __properties: ClassVar[list[str]] = ["id", "display_name", "works_count", "cited_by_count", "works_api_url", "created_date", "updated_date"]
model_config = ConfigDict(
validate_by_name=True,
@@ -55,11 +54,11 @@ class SourceType(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of SourceType from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -69,7 +68,7 @@ class SourceType(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -80,7 +79,7 @@ class SourceType(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of SourceType from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/openalex/source_types_list_response.py b/service/src/main/inse/models/openalex/source_types_list_response.py
index 9f2f552c..ff98a416 100644
--- a/service/src/main/inse/models/openalex/source_types_list_response.py
+++ b/service/src/main/inse/models/openalex/source_types_list_response.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
OpenAlex API
@@ -10,29 +9,30 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
+from typing import Any, ClassVar, Self
from pydantic import BaseModel, ConfigDict
-from typing import Any, ClassVar, Dict, List, Optional
+from pydantic_core import to_jsonable_python
+
from inse.models.openalex.meta import Meta
from inse.models.openalex.source_type import SourceType
-from typing import Optional, Set
-from typing_extensions import Self
-from pydantic_core import to_jsonable_python
+
class SourceTypesListResponse(BaseModel):
"""
SourceTypesListResponse
- """ # noqa: E501
- meta: Optional[Meta] = None
- results: Optional[List[SourceType]] = None
- __properties: ClassVar[List[str]] = ["meta", "results"]
+ """
+ meta: Meta | None = None
+ results: list[SourceType] | None = None
+ __properties: ClassVar[list[str]] = ["meta", "results"]
model_config = ConfigDict(
validate_by_name=True,
@@ -51,11 +51,11 @@ class SourceTypesListResponse(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of SourceTypesListResponse from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -65,7 +65,7 @@ class SourceTypesListResponse(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -86,7 +86,7 @@ class SourceTypesListResponse(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of SourceTypesListResponse from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/openalex/sources_list_response.py b/service/src/main/inse/models/openalex/sources_list_response.py
index a9d1710e..d1ac5a60 100644
--- a/service/src/main/inse/models/openalex/sources_list_response.py
+++ b/service/src/main/inse/models/openalex/sources_list_response.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
OpenAlex API
@@ -10,31 +9,32 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
+from typing import Any, ClassVar, Self
from pydantic import BaseModel, ConfigDict
-from typing import Any, ClassVar, Dict, List, Optional
+from pydantic_core import to_jsonable_python
+
from inse.models.openalex.group_by_result import GroupByResult
from inse.models.openalex.meta import Meta
from inse.models.openalex.source import Source
-from typing import Optional, Set
-from typing_extensions import Self
-from pydantic_core import to_jsonable_python
+
class SourcesListResponse(BaseModel):
"""
SourcesListResponse
- """ # noqa: E501
- meta: Optional[Meta] = None
- results: Optional[List[Source]] = None
- group_by: Optional[List[GroupByResult]] = None
- __properties: ClassVar[List[str]] = ["meta", "results", "group_by"]
+ """
+ meta: Meta | None = None
+ results: list[Source] | None = None
+ group_by: list[GroupByResult] | None = None
+ __properties: ClassVar[list[str]] = ["meta", "results", "group_by"]
model_config = ConfigDict(
validate_by_name=True,
@@ -53,11 +53,11 @@ class SourcesListResponse(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of SourcesListResponse from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -67,7 +67,7 @@ class SourcesListResponse(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -95,7 +95,7 @@ class SourcesListResponse(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of SourcesListResponse from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/openalex/subfield.py b/service/src/main/inse/models/openalex/subfield.py
index b4edd67c..337e9a17 100644
--- a/service/src/main/inse/models/openalex/subfield.py
+++ b/service/src/main/inse/models/openalex/subfield.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
OpenAlex API
@@ -10,44 +9,45 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
-
from datetime import date, datetime
+from typing import Any, ClassVar, Self
+
from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
+from pydantic_core import to_jsonable_python
+
from inse.models.openalex.domain_fields_inner import DomainFieldsInner
from inse.models.openalex.domain_ids import DomainIds
from inse.models.openalex.subfield_domain import SubfieldDomain
from inse.models.openalex.subfield_field import SubfieldField
-from typing import Optional, Set
-from typing_extensions import Self
-from pydantic_core import to_jsonable_python
+
class Subfield(BaseModel):
"""
Third-level category in the topic hierarchy (254 total)
- """ # noqa: E501
- id: Optional[StrictStr] = Field(default=None, description="The OpenAlex ID for this subfield.")
- display_name: Optional[StrictStr] = Field(default=None, description="The English-language label of the subfield.")
- description: Optional[StrictStr] = Field(default=None, description="A description of this subfield.")
- display_name_alternatives: Optional[List[StrictStr]] = Field(default=None, description="Alternate names for this subfield.")
- var_field: Optional[SubfieldField] = Field(default=None, alias="field")
- domain: Optional[SubfieldDomain] = None
- topics: Optional[List[DomainFieldsInner]] = Field(default=None, description="The topics within this subfield. Each object has `id` and `display_name`.")
- siblings: Optional[List[DomainFieldsInner]] = Field(default=None, description="Other subfields at the same level (across all fields). Each object has `id` and `display_name`.")
- ids: Optional[DomainIds] = None
- works_count: Optional[StrictInt] = Field(default=None, description="The number of works tagged with topics in this subfield.")
- cited_by_count: Optional[StrictInt] = Field(default=None, description="Total citations to works in this subfield.")
- works_api_url: Optional[StrictStr] = Field(default=None, description="A URL that returns all works tagged with this subfield.")
- created_date: Optional[date] = Field(default=None, description="When this subfield was added to OpenAlex (ISO 8601 date).")
- updated_date: Optional[datetime] = Field(default=None, description="When this subfield was last updated (ISO 8601 datetime).")
- __properties: ClassVar[List[str]] = ["id", "display_name", "description", "display_name_alternatives", "field", "domain", "topics", "siblings", "ids", "works_count", "cited_by_count", "works_api_url", "created_date", "updated_date"]
+ """
+ id: StrictStr | None = Field(default=None, description="The OpenAlex ID for this subfield.")
+ display_name: StrictStr | None = Field(default=None, description="The English-language label of the subfield.")
+ description: StrictStr | None = Field(default=None, description="A description of this subfield.")
+ display_name_alternatives: list[StrictStr] | None = Field(default=None, description="Alternate names for this subfield.")
+ var_field: SubfieldField | None = Field(default=None, alias="field")
+ domain: SubfieldDomain | None = None
+ topics: list[DomainFieldsInner] | None = Field(default=None, description="The topics within this subfield. Each object has `id` and `display_name`.")
+ siblings: list[DomainFieldsInner] | None = Field(default=None, description="Other subfields at the same level (across all fields). Each object has `id` and `display_name`.")
+ ids: DomainIds | None = None
+ works_count: StrictInt | None = Field(default=None, description="The number of works tagged with topics in this subfield.")
+ cited_by_count: StrictInt | None = Field(default=None, description="Total citations to works in this subfield.")
+ works_api_url: StrictStr | None = Field(default=None, description="A URL that returns all works tagged with this subfield.")
+ created_date: date | None = Field(default=None, description="When this subfield was added to OpenAlex (ISO 8601 date).")
+ updated_date: datetime | None = Field(default=None, description="When this subfield was last updated (ISO 8601 datetime).")
+ __properties: ClassVar[list[str]] = ["id", "display_name", "description", "display_name_alternatives", "field", "domain", "topics", "siblings", "ids", "works_count", "cited_by_count", "works_api_url", "created_date", "updated_date"]
model_config = ConfigDict(
validate_by_name=True,
@@ -66,11 +66,11 @@ class Subfield(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of Subfield from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -80,7 +80,7 @@ class Subfield(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -114,7 +114,7 @@ class Subfield(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of Subfield from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/openalex/subfield_domain.py b/service/src/main/inse/models/openalex/subfield_domain.py
index e3997b3e..7d85a6d4 100644
--- a/service/src/main/inse/models/openalex/subfield_domain.py
+++ b/service/src/main/inse/models/openalex/subfield_domain.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
OpenAlex API
@@ -10,27 +9,27 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
+from typing import Any, ClassVar, Self
from pydantic import BaseModel, ConfigDict, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
from pydantic_core import to_jsonable_python
+
class SubfieldDomain(BaseModel):
"""
The domain containing this subfield (top level of hierarchy).
- """ # noqa: E501
- id: Optional[StrictStr] = None
- display_name: Optional[StrictStr] = None
- __properties: ClassVar[List[str]] = ["id", "display_name"]
+ """
+ id: StrictStr | None = None
+ display_name: StrictStr | None = None
+ __properties: ClassVar[list[str]] = ["id", "display_name"]
model_config = ConfigDict(
validate_by_name=True,
@@ -49,11 +48,11 @@ class SubfieldDomain(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of SubfieldDomain from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -63,7 +62,7 @@ class SubfieldDomain(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -74,7 +73,7 @@ class SubfieldDomain(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of SubfieldDomain from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/openalex/subfield_field.py b/service/src/main/inse/models/openalex/subfield_field.py
index 8d8d1c23..b2d20233 100644
--- a/service/src/main/inse/models/openalex/subfield_field.py
+++ b/service/src/main/inse/models/openalex/subfield_field.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
OpenAlex API
@@ -10,27 +9,27 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
+from typing import Any, ClassVar, Self
from pydantic import BaseModel, ConfigDict, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
from pydantic_core import to_jsonable_python
+
class SubfieldField(BaseModel):
"""
The field containing this subfield (parent level).
- """ # noqa: E501
- id: Optional[StrictStr] = None
- display_name: Optional[StrictStr] = None
- __properties: ClassVar[List[str]] = ["id", "display_name"]
+ """
+ id: StrictStr | None = None
+ display_name: StrictStr | None = None
+ __properties: ClassVar[list[str]] = ["id", "display_name"]
model_config = ConfigDict(
validate_by_name=True,
@@ -49,11 +48,11 @@ class SubfieldField(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of SubfieldField from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -63,7 +62,7 @@ class SubfieldField(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -74,7 +73,7 @@ class SubfieldField(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of SubfieldField from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/openalex/subfields_list_response.py b/service/src/main/inse/models/openalex/subfields_list_response.py
index d3721a4d..3a179da0 100644
--- a/service/src/main/inse/models/openalex/subfields_list_response.py
+++ b/service/src/main/inse/models/openalex/subfields_list_response.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
OpenAlex API
@@ -10,29 +9,30 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
+from typing import Any, ClassVar, Self
from pydantic import BaseModel, ConfigDict
-from typing import Any, ClassVar, Dict, List, Optional
+from pydantic_core import to_jsonable_python
+
from inse.models.openalex.meta import Meta
from inse.models.openalex.subfield import Subfield
-from typing import Optional, Set
-from typing_extensions import Self
-from pydantic_core import to_jsonable_python
+
class SubfieldsListResponse(BaseModel):
"""
SubfieldsListResponse
- """ # noqa: E501
- meta: Optional[Meta] = None
- results: Optional[List[Subfield]] = None
- __properties: ClassVar[List[str]] = ["meta", "results"]
+ """
+ meta: Meta | None = None
+ results: list[Subfield] | None = None
+ __properties: ClassVar[list[str]] = ["meta", "results"]
model_config = ConfigDict(
validate_by_name=True,
@@ -51,11 +51,11 @@ class SubfieldsListResponse(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of SubfieldsListResponse from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -65,7 +65,7 @@ class SubfieldsListResponse(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -86,7 +86,7 @@ class SubfieldsListResponse(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of SubfieldsListResponse from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/openalex/text_classification_response.py b/service/src/main/inse/models/openalex/text_classification_response.py
index e72b2ba6..16485b95 100644
--- a/service/src/main/inse/models/openalex/text_classification_response.py
+++ b/service/src/main/inse/models/openalex/text_classification_response.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
OpenAlex API
@@ -10,29 +9,32 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
+from typing import Any, ClassVar, Self
from pydantic import BaseModel, ConfigDict
-from typing import Any, ClassVar, Dict, List, Optional
-from inse.models.openalex.text_classification_response_meta import TextClassificationResponseMeta
-from inse.models.openalex.work_topic import WorkTopic
-from typing import Optional, Set
-from typing_extensions import Self
from pydantic_core import to_jsonable_python
+from inse.models.openalex.text_classification_response_meta import (
+ TextClassificationResponseMeta,
+)
+from inse.models.openalex.work_topic import WorkTopic
+
+
class TextClassificationResponse(BaseModel):
"""
TextClassificationResponse
- """ # noqa: E501
- meta: Optional[TextClassificationResponseMeta] = None
- results: Optional[List[WorkTopic]] = None
- __properties: ClassVar[List[str]] = ["meta", "results"]
+ """
+ meta: TextClassificationResponseMeta | None = None
+ results: list[WorkTopic] | None = None
+ __properties: ClassVar[list[str]] = ["meta", "results"]
model_config = ConfigDict(
validate_by_name=True,
@@ -51,11 +53,11 @@ class TextClassificationResponse(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of TextClassificationResponse from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -65,7 +67,7 @@ class TextClassificationResponse(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -86,7 +88,7 @@ class TextClassificationResponse(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of TextClassificationResponse from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/openalex/text_classification_response_meta.py b/service/src/main/inse/models/openalex/text_classification_response_meta.py
index 86c76ee1..65048451 100644
--- a/service/src/main/inse/models/openalex/text_classification_response_meta.py
+++ b/service/src/main/inse/models/openalex/text_classification_response_meta.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
OpenAlex API
@@ -10,26 +9,26 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
+from typing import Any, ClassVar, Self
from pydantic import BaseModel, ConfigDict, StrictInt
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
from pydantic_core import to_jsonable_python
+
class TextClassificationResponseMeta(BaseModel):
"""
TextClassificationResponseMeta
- """ # noqa: E501
- count: Optional[StrictInt] = None
- __properties: ClassVar[List[str]] = ["count"]
+ """
+ count: StrictInt | None = None
+ __properties: ClassVar[list[str]] = ["count"]
model_config = ConfigDict(
validate_by_name=True,
@@ -48,11 +47,11 @@ class TextClassificationResponseMeta(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of TextClassificationResponseMeta from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -62,7 +61,7 @@ class TextClassificationResponseMeta(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -73,7 +72,7 @@ class TextClassificationResponseMeta(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of TextClassificationResponseMeta from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/openalex/topic.py b/service/src/main/inse/models/openalex/topic.py
index 2085a784..3527d9b2 100644
--- a/service/src/main/inse/models/openalex/topic.py
+++ b/service/src/main/inse/models/openalex/topic.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
OpenAlex API
@@ -10,44 +9,45 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
-
from datetime import date, datetime
+from typing import Any, ClassVar, Self
+
from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
+from pydantic_core import to_jsonable_python
+
from inse.models.openalex.topic_domain import TopicDomain
from inse.models.openalex.topic_field import TopicField
from inse.models.openalex.topic_ids import TopicIds
from inse.models.openalex.topic_subfield import TopicSubfield
-from typing import Optional, Set
-from typing_extensions import Self
-from pydantic_core import to_jsonable_python
+
class Topic(BaseModel):
"""
A research topic automatically assigned to works
- """ # noqa: E501
- id: Optional[StrictStr] = Field(default=None, description="The OpenAlex ID for this topic.")
- display_name: Optional[StrictStr] = Field(default=None, description="The English-language label of the topic.")
- description: Optional[StrictStr] = Field(default=None, description="A description of this topic, generated by AI.")
- keywords: Optional[List[StrictStr]] = Field(default=None, description="Keywords representing the content of papers in the topic.")
- subfield: Optional[TopicSubfield] = None
- var_field: Optional[TopicField] = Field(default=None, alias="field")
- field: Optional[TopicField] = Field(default=None)
- domain: Optional[TopicDomain] = None
- works_count: Optional[StrictInt] = Field(default=None, description="The number of works tagged with this topic.")
- cited_by_count: Optional[StrictInt] = None
- ids: Optional[TopicIds] = None
- works_api_url: Optional[StrictStr] = None
- created_date: Optional[date] = None
- updated_date: Optional[datetime] = Field(default=None, description="When this topic was last updated (ISO 8601 datetime).")
- __properties: ClassVar[List[str]] = ["id", "display_name", "description", "keywords", "subfield", "field", "domain", "works_count", "cited_by_count", "ids", "works_api_url", "created_date", "updated_date"]
+ """
+ id: StrictStr | None = Field(default=None, description="The OpenAlex ID for this topic.")
+ display_name: StrictStr | None = Field(default=None, description="The English-language label of the topic.")
+ description: StrictStr | None = Field(default=None, description="A description of this topic, generated by AI.")
+ keywords: list[StrictStr] | None = Field(default=None, description="Keywords representing the content of papers in the topic.")
+ subfield: TopicSubfield | None = None
+ var_field: TopicField | None = Field(default=None, alias="field")
+ field: TopicField | None = Field(default=None)
+ domain: TopicDomain | None = None
+ works_count: StrictInt | None = Field(default=None, description="The number of works tagged with this topic.")
+ cited_by_count: StrictInt | None = None
+ ids: TopicIds | None = None
+ works_api_url: StrictStr | None = None
+ created_date: date | None = None
+ updated_date: datetime | None = Field(default=None, description="When this topic was last updated (ISO 8601 datetime).")
+ __properties: ClassVar[list[str]] = ["id", "display_name", "description", "keywords", "subfield", "field", "domain", "works_count", "cited_by_count", "ids", "works_api_url", "created_date", "updated_date"]
model_config = ConfigDict(
validate_by_name=True,
@@ -66,11 +66,11 @@ class Topic(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of Topic from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -80,7 +80,7 @@ class Topic(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -103,7 +103,7 @@ class Topic(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of Topic from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/openalex/topic_count.py b/service/src/main/inse/models/openalex/topic_count.py
index 8d6be897..dc53212f 100644
--- a/service/src/main/inse/models/openalex/topic_count.py
+++ b/service/src/main/inse/models/openalex/topic_count.py
@@ -1,46 +1,45 @@
-from typing import Optional
from pydantic import BaseModel, Field
class TopicCount(BaseModel):
- id: Optional[str] = Field(default=None, description="The topic id.")
+ id: str | None = Field(default=None, description="The topic id.")
name: str = Field(description="The topic display name.")
count: int = Field(default=0, description="The number of occurrences.")
- description: Optional[str] = Field(default=None, description="The topic description.")
- subfield_id: Optional[str] = Field(
+ description: str | None = Field(default=None, description="The topic description.")
+ subfield_id: str | None = Field(
default=None,
description="The topic subfield id.",
)
- subfield_name: Optional[str] = Field(
+ subfield_name: str | None = Field(
default=None,
description="The topic subfield display name.",
)
- subfield_description: Optional[str] = Field(
+ subfield_description: str | None = Field(
default=None,
description="The topic subfield description.",
)
- field_id: Optional[str] = Field(
+ field_id: str | None = Field(
default=None,
description="The topic field id.",
)
- field_name: Optional[str] = Field(
+ field_name: str | None = Field(
default=None,
description="The topic field display name.",
)
- field_description: Optional[str] = Field(
+ field_description: str | None = Field(
default=None,
description="The topic field description.",
)
- domain_id: Optional[str] = Field(
+ domain_id: str | None = Field(
default=None,
description="The topic domain id.",
)
- domain_name: Optional[str] = Field(
+ domain_name: str | None = Field(
default=None,
description="The topic domain display name.",
)
- domain_description: Optional[str] = Field(
+ domain_description: str | None = Field(
default=None,
description="The topic domain description.",
)
diff --git a/service/src/main/inse/models/openalex/topic_domain.py b/service/src/main/inse/models/openalex/topic_domain.py
index 75546c88..080323db 100644
--- a/service/src/main/inse/models/openalex/topic_domain.py
+++ b/service/src/main/inse/models/openalex/topic_domain.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
OpenAlex API
@@ -10,27 +9,27 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
+from typing import Any, ClassVar, Self
from pydantic import BaseModel, ConfigDict, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
from pydantic_core import to_jsonable_python
+
class TopicDomain(BaseModel):
"""
The domain (highest level) containing this topic:
- """ # noqa: E501
- id: Optional[StrictStr] = None
- display_name: Optional[StrictStr] = None
- __properties: ClassVar[List[str]] = ["id", "display_name"]
+ """
+ id: StrictStr | None = None
+ display_name: StrictStr | None = None
+ __properties: ClassVar[list[str]] = ["id", "display_name"]
model_config = ConfigDict(
validate_by_name=True,
@@ -49,11 +48,11 @@ class TopicDomain(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of TopicDomain from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -63,7 +62,7 @@ class TopicDomain(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -74,7 +73,7 @@ class TopicDomain(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of TopicDomain from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/openalex/topic_field.py b/service/src/main/inse/models/openalex/topic_field.py
index 939f5016..f0f090c6 100644
--- a/service/src/main/inse/models/openalex/topic_field.py
+++ b/service/src/main/inse/models/openalex/topic_field.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
OpenAlex API
@@ -10,27 +9,27 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
+from typing import Any, ClassVar, Self
from pydantic import BaseModel, ConfigDict, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
from pydantic_core import to_jsonable_python
+
class TopicField(BaseModel):
"""
The field (second level) containing this topic:
- """ # noqa: E501
- id: Optional[StrictStr] = None
- display_name: Optional[StrictStr] = None
- __properties: ClassVar[List[str]] = ["id", "display_name"]
+ """
+ id: StrictStr | None = None
+ display_name: StrictStr | None = None
+ __properties: ClassVar[list[str]] = ["id", "display_name"]
model_config = ConfigDict(
validate_by_name=True,
@@ -49,11 +48,11 @@ class TopicField(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of TopicField from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -63,7 +62,7 @@ class TopicField(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -74,7 +73,7 @@ class TopicField(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of TopicField from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/openalex/topic_ids.py b/service/src/main/inse/models/openalex/topic_ids.py
index b4de5f84..d6250f81 100644
--- a/service/src/main/inse/models/openalex/topic_ids.py
+++ b/service/src/main/inse/models/openalex/topic_ids.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
OpenAlex API
@@ -10,27 +9,27 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
+from typing import Any, ClassVar, Self
from pydantic import BaseModel, ConfigDict, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
from pydantic_core import to_jsonable_python
+
class TopicIds(BaseModel):
"""
External identifiers:
- """ # noqa: E501
- openalex: Optional[StrictStr] = None
- wikipedia: Optional[StrictStr] = None
- __properties: ClassVar[List[str]] = ["openalex", "wikipedia"]
+ """
+ openalex: StrictStr | None = None
+ wikipedia: StrictStr | None = None
+ __properties: ClassVar[list[str]] = ["openalex", "wikipedia"]
model_config = ConfigDict(
validate_by_name=True,
@@ -49,11 +48,11 @@ class TopicIds(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of TopicIds from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -63,7 +62,7 @@ class TopicIds(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -74,7 +73,7 @@ class TopicIds(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of TopicIds from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/openalex/topic_subfield.py b/service/src/main/inse/models/openalex/topic_subfield.py
index 0dc545bc..15335e01 100644
--- a/service/src/main/inse/models/openalex/topic_subfield.py
+++ b/service/src/main/inse/models/openalex/topic_subfield.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
OpenAlex API
@@ -10,27 +9,27 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
+from typing import Any, ClassVar, Self
from pydantic import BaseModel, ConfigDict, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
from pydantic_core import to_jsonable_python
+
class TopicSubfield(BaseModel):
"""
The subfield (third level) containing this topic:
- """ # noqa: E501
- id: Optional[StrictStr] = None
- display_name: Optional[StrictStr] = None
- __properties: ClassVar[List[str]] = ["id", "display_name"]
+ """
+ id: StrictStr | None = None
+ display_name: StrictStr | None = None
+ __properties: ClassVar[list[str]] = ["id", "display_name"]
model_config = ConfigDict(
validate_by_name=True,
@@ -49,11 +48,11 @@ class TopicSubfield(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of TopicSubfield from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -63,7 +62,7 @@ class TopicSubfield(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -74,7 +73,7 @@ class TopicSubfield(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of TopicSubfield from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/openalex/topics_by_time.py b/service/src/main/inse/models/openalex/topics_by_time.py
index e02863bb..9bfb258b 100644
--- a/service/src/main/inse/models/openalex/topics_by_time.py
+++ b/service/src/main/inse/models/openalex/topics_by_time.py
@@ -1,4 +1,3 @@
-from typing import List
from pydantic import BaseModel, Field
@@ -6,7 +5,7 @@ from inse.models.openalex.topics_by_year import TopicsByYear
class TopicsByTime(BaseModel):
- elements: List[TopicsByYear] = Field(
+ elements: list[TopicsByYear] = Field(
default_factory=list,
description="Topics grouped by year.",
)
diff --git a/service/src/main/inse/models/openalex/topics_by_year.py b/service/src/main/inse/models/openalex/topics_by_year.py
index 48fd0f6e..0ef39be4 100644
--- a/service/src/main/inse/models/openalex/topics_by_year.py
+++ b/service/src/main/inse/models/openalex/topics_by_year.py
@@ -1,4 +1,3 @@
-from typing import List
from pydantic import BaseModel, Field
@@ -8,5 +7,5 @@ from inse.models.openalex.topic_count import TopicCount
class TopicsByYear(BaseModel):
year: int = Field(description="The publication year.")
publication_count: int = Field(default=0, description="The number of works in this year.")
- topics: List[TopicCount] = Field(default_factory=list, description="The topics in this year.")
- primary_topics: List[TopicCount] = Field(default_factory=list, description="The primary topics in this year.")
+ topics: list[TopicCount] = Field(default_factory=list, description="The topics in this year.")
+ primary_topics: list[TopicCount] = Field(default_factory=list, description="The primary topics in this year.")
diff --git a/service/src/main/inse/models/openalex/topics_list_response.py b/service/src/main/inse/models/openalex/topics_list_response.py
index 7ea968cc..095f738f 100644
--- a/service/src/main/inse/models/openalex/topics_list_response.py
+++ b/service/src/main/inse/models/openalex/topics_list_response.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
OpenAlex API
@@ -10,31 +9,32 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
+from typing import Any, ClassVar, Self
from pydantic import BaseModel, ConfigDict
-from typing import Any, ClassVar, Dict, List, Optional
+from pydantic_core import to_jsonable_python
+
from inse.models.openalex.group_by_result import GroupByResult
from inse.models.openalex.meta import Meta
from inse.models.openalex.topic import Topic
-from typing import Optional, Set
-from typing_extensions import Self
-from pydantic_core import to_jsonable_python
+
class TopicsListResponse(BaseModel):
"""
TopicsListResponse
- """ # noqa: E501
- meta: Optional[Meta] = None
- results: Optional[List[Topic]] = None
- group_by: Optional[List[GroupByResult]] = None
- __properties: ClassVar[List[str]] = ["meta", "results", "group_by"]
+ """
+ meta: Meta | None = None
+ results: list[Topic] | None = None
+ group_by: list[GroupByResult] | None = None
+ __properties: ClassVar[list[str]] = ["meta", "results", "group_by"]
model_config = ConfigDict(
validate_by_name=True,
@@ -53,11 +53,11 @@ class TopicsListResponse(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of TopicsListResponse from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -67,7 +67,7 @@ class TopicsListResponse(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -95,7 +95,7 @@ class TopicsListResponse(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of TopicsListResponse from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/openalex/ude_organization.py b/service/src/main/inse/models/openalex/ude_organization.py
index 33b3ddcb..5ce38ce3 100644
--- a/service/src/main/inse/models/openalex/ude_organization.py
+++ b/service/src/main/inse/models/openalex/ude_organization.py
@@ -1,18 +1,17 @@
-from typing import List, Optional, Union
from pydantic import BaseModel, Field, StrictStr
class UdeStaff(BaseModel):
- research_interests: Union[List[StrictStr], StrictStr] = Field(
+ research_interests: list[StrictStr] | StrictStr = Field(
description="Research interests of the staff member"
)
- keywords: List[StrictStr] = Field(
+ keywords: list[StrictStr] = Field(
description="Keywords associated with the staff member"
)
telefon: StrictStr = Field(description="Phone number of the staff member")
name: StrictStr = Field(description="Name of the staff member")
- links: List[StrictStr] = Field(description="Links associated with the staff member")
+ links: list[StrictStr] = Field(description="Links associated with the staff member")
email: StrictStr = Field(description="Email address of the staff member")
@classmethod
@@ -30,11 +29,11 @@ class UdeStaff(BaseModel):
class UdeProject(BaseModel):
project_type: StrictStr = Field(description="Type of the project")
names: StrictStr = Field(description="Names associated with the project")
- keywords: List[StrictStr] = Field(
+ keywords: list[StrictStr] = Field(
description="Keywords associated with the project"
)
topic: StrictStr = Field(description="Topic of the project")
- links: List[StrictStr] = Field(description="Links associated with the project")
+ links: list[StrictStr] = Field(description="Links associated with the project")
title: StrictStr = Field(description="Title of the project")
@classmethod
@@ -50,10 +49,10 @@ class UdeProject(BaseModel):
class UdeNews(BaseModel):
- date: Optional[StrictStr] = Field(description="Date of the news")
- keywords: List[StrictStr] = Field(description="Keywords associated with the news")
+ date: StrictStr | None = Field(description="Date of the news")
+ keywords: list[StrictStr] = Field(description="Keywords associated with the news")
topic: StrictStr = Field(description="Topic of the news")
- links: List[StrictStr] = Field(description="Links associated with the news")
+ links: list[StrictStr] = Field(description="Links associated with the news")
title: StrictStr = Field(description="Title of the news")
@classmethod
@@ -81,16 +80,16 @@ class UdeKeyword(BaseModel):
class UdeOrganization(BaseModel):
uri: StrictStr = Field(description="URI of the organization")
- staff: List[UdeStaff] = Field(
+ staff: list[UdeStaff] = Field(
description="List of staff members in the organization"
)
- projects: List[UdeProject] = Field(
+ projects: list[UdeProject] = Field(
description="List of projects associated with the organization"
)
- news: List[UdeNews] = Field(
+ news: list[UdeNews] = Field(
description="List of news items associated with the organization"
)
- keywords: List[UdeKeyword] = Field(
+ keywords: list[UdeKeyword] = Field(
description="List of keywords associated with the organization"
)
diff --git a/service/src/main/inse/models/openalex/work.py b/service/src/main/inse/models/openalex/work.py
index 4661f664..31934220 100644
--- a/service/src/main/inse/models/openalex/work.py
+++ b/service/src/main/inse/models/openalex/work.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
OpenAlex API
@@ -10,79 +9,92 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
-
from datetime import date, datetime
-from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional, Union
+from typing import Any, ClassVar, Self
+
+from pydantic import (
+ BaseModel,
+ ConfigDict,
+ Field,
+ StrictBool,
+ StrictFloat,
+ StrictInt,
+ StrictStr,
+)
+from pydantic_core import to_jsonable_python
+
from inse.models.openalex.authorship import Authorship
from inse.models.openalex.award import Award
from inse.models.openalex.dehydrated_funder import DehydratedFunder
from inse.models.openalex.location import Location
from inse.models.openalex.open_access import OpenAccess
from inse.models.openalex.work_biblio import WorkBiblio
-from inse.models.openalex.work_citation_normalized_percentile import WorkCitationNormalizedPercentile
+from inse.models.openalex.work_citation_normalized_percentile import (
+ WorkCitationNormalizedPercentile,
+)
from inse.models.openalex.work_cited_by_percentile_year import WorkCitedByPercentileYear
from inse.models.openalex.work_counts_by_year_inner import WorkCountsByYearInner
from inse.models.openalex.work_has_content import WorkHasContent
from inse.models.openalex.work_ids import WorkIds
from inse.models.openalex.work_keyword import WorkKeyword
from inse.models.openalex.work_mesh_inner import WorkMeshInner
-from inse.models.openalex.work_sustainable_development_goals_inner import WorkSustainableDevelopmentGoalsInner
+from inse.models.openalex.work_sustainable_development_goals_inner import (
+ WorkSustainableDevelopmentGoalsInner,
+)
from inse.models.openalex.work_topic import WorkTopic
-from typing import Optional, Set
-from typing_extensions import Self
-from pydantic_core import to_jsonable_python
+
class Work(BaseModel):
"""
A scholarly document (article, book, dataset, thesis, etc.)
- """ # noqa: E501
- id: Optional[StrictStr] = Field(default=None, description="The OpenAlex ID for this work.")
- doi: Optional[StrictStr] = Field(default=None, description="The DOI for the work. This is the Canonical External ID for works.")
- title: Optional[StrictStr] = Field(default=None, description="The title of this work.")
- display_name: Optional[StrictStr] = Field(default=None, description="Same as `title`. Included for consistency with other entities.")
- publication_year: Optional[StrictInt] = Field(default=None, description="The year this work was published.")
- publication_date: Optional[date] = Field(default=None, description="The day when this work was published (ISO 8601 format).")
- type: Optional[StrictStr] = Field(default=None, description="The type of the work. Common values: `article`, `book`, `dataset`, `preprint`, `dissertation`, `book-chapter`.")
- language: Optional[StrictStr] = Field(default=None, description="[Language](/api-reference/languages) in ISO 639-1 format")
- cited_by_count: Optional[StrictInt] = Field(default=None, description="The number of citations to this work.")
- is_retracted: Optional[StrictBool] = Field(default=None, description="True if this work has been retracted (from Retraction Watch database).")
- is_paratext: Optional[StrictBool] = Field(default=None, description="True if this work is paratext (e.g., front cover, table of contents).")
- primary_location: Optional[Location] = Field(default=None, description="A Location object with the primary location of this work (closest to the version of record). Includes `source`, `landing_page_url`, `pdf_url`, `is_oa`, `license`, and `version`.")
- locations: Optional[List[Location]] = Field(default=None, description="List of Location objects describing all unique places where this work lives.")
- best_oa_location: Optional[Location] = Field(default=None, description="A Location object with the best available open access location for this work.")
- open_access: Optional[OpenAccess] = Field(default=None, description="Information about the access status of this work:")
- authorships: Optional[List[Authorship]] = Field(default=None, description="List of Authorship objects representing authors and their institutions. Limited to the first 100 authors. Each authorship includes `author`, `institutions`, `author_position`, `is_corresponding`, and other fields.")
- ids: Optional[WorkIds] = None
- biblio: Optional[WorkBiblio] = None
- abstract_inverted_index: Optional[Dict[str, Any]] = Field(default=None, description="The abstract as an inverted index (word positions). OpenAlex doesn't include plaintext abstracts due to legal constraints. Use the `has_abstract` filter to get works with or without abstracts.")
- referenced_works: Optional[List[StrictStr]] = Field(default=None, description="OpenAlex IDs for works that this work cites.")
- referenced_works_count: Optional[StrictInt] = Field(default=None, description="The number of works that this work cites.")
- related_works: Optional[List[StrictStr]] = Field(default=None, description="OpenAlex IDs for works related to this work (computed algorithmically).")
- topics: Optional[List[WorkTopic]] = Field(default=None, description="List of up to 3 Topics for this work, each with a relevance score.")
- primary_topic: Optional[WorkTopic] = Field(default=None, description="The top ranked Topic for this work, with `id`, `display_name`, `score`, and hierarchy (`subfield`, `field`, `domain`).")
- keywords: Optional[List[WorkKeyword]] = Field(default=None, description="Keywords identified based on the work's topics, with relevance scores.")
- funders: Optional[List[DehydratedFunder]] = Field(default=None, description="Dehydrated Funder objects representing the funders of this work.")
- awards: Optional[List[Award]] = Field(default=None, description="Dehydrated Award objects representing grants associated with this work.")
- fwci: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Field-weighted Citation Impact, calculated as citations received / citations expected.")
- citation_normalized_percentile: Optional[WorkCitationNormalizedPercentile] = None
- cited_by_percentile_year: Optional[WorkCitedByPercentileYear] = None
- counts_by_year: Optional[List[WorkCountsByYearInner]] = Field(default=None, description="`cited_by_count` for each of the last ten years.")
- sustainable_development_goals: Optional[List[WorkSustainableDevelopmentGoalsInner]] = Field(default=None, description="UN Sustainable Development Goals relevant to this work, with prediction scores.")
- mesh: Optional[List[WorkMeshInner]] = Field(default=None, description="MeSH tags for works found in PubMed.")
- indexed_in: Optional[List[StrictStr]] = Field(default=None, description="Sources this work is indexed in. Values: `arxiv`, `crossref`, `doaj`, `pubmed`.")
- has_content: Optional[WorkHasContent] = None
- content_url: Optional[StrictStr] = Field(default=None, description="URL for downloading full-text content. Only present when `has_content.pdf` or `has_content.grobid_xml` is true.")
- created_date: Optional[date] = Field(default=None, description="When this work was added to OpenAlex (ISO 8601 date).")
- updated_date: Optional[datetime] = Field(default=None, description="When this work was last updated (ISO 8601 datetime).")
- __properties: ClassVar[List[str]] = ["id", "doi", "title", "display_name", "publication_year", "publication_date", "type", "language", "cited_by_count", "is_retracted", "is_paratext", "primary_location", "locations", "best_oa_location", "open_access", "authorships", "ids", "biblio", "abstract_inverted_index", "referenced_works", "referenced_works_count", "related_works", "topics", "primary_topic", "keywords", "funders", "awards", "fwci", "citation_normalized_percentile", "cited_by_percentile_year", "counts_by_year", "sustainable_development_goals", "mesh", "indexed_in", "has_content", "content_url", "created_date", "updated_date"]
+ """
+ id: StrictStr | None = Field(default=None, description="The OpenAlex ID for this work.")
+ doi: StrictStr | None = Field(default=None, description="The DOI for the work. This is the Canonical External ID for works.")
+ title: StrictStr | None = Field(default=None, description="The title of this work.")
+ display_name: StrictStr | None = Field(default=None, description="Same as `title`. Included for consistency with other entities.")
+ publication_year: StrictInt | None = Field(default=None, description="The year this work was published.")
+ publication_date: date | None = Field(default=None, description="The day when this work was published (ISO 8601 format).")
+ type: StrictStr | None = Field(default=None, description="The type of the work. Common values: `article`, `book`, `dataset`, `preprint`, `dissertation`, `book-chapter`.")
+ language: StrictStr | None = Field(default=None, description="[Language](/api-reference/languages) in ISO 639-1 format")
+ cited_by_count: StrictInt | None = Field(default=None, description="The number of citations to this work.")
+ is_retracted: StrictBool | None = Field(default=None, description="True if this work has been retracted (from Retraction Watch database).")
+ is_paratext: StrictBool | None = Field(default=None, description="True if this work is paratext (e.g., front cover, table of contents).")
+ primary_location: Location | None = Field(default=None, description="A Location object with the primary location of this work (closest to the version of record). Includes `source`, `landing_page_url`, `pdf_url`, `is_oa`, `license`, and `version`.")
+ locations: list[Location] | None = Field(default=None, description="List of Location objects describing all unique places where this work lives.")
+ best_oa_location: Location | None = Field(default=None, description="A Location object with the best available open access location for this work.")
+ open_access: OpenAccess | None = Field(default=None, description="Information about the access status of this work:")
+ authorships: list[Authorship] | None = Field(default=None, description="List of Authorship objects representing authors and their institutions. Limited to the first 100 authors. Each authorship includes `author`, `institutions`, `author_position`, `is_corresponding`, and other fields.")
+ ids: WorkIds | None = None
+ biblio: WorkBiblio | None = None
+ abstract_inverted_index: dict[str, Any] | None = Field(default=None, description="The abstract as an inverted index (word positions). OpenAlex doesn't include plaintext abstracts due to legal constraints. Use the `has_abstract` filter to get works with or without abstracts.")
+ referenced_works: list[StrictStr] | None = Field(default=None, description="OpenAlex IDs for works that this work cites.")
+ referenced_works_count: StrictInt | None = Field(default=None, description="The number of works that this work cites.")
+ related_works: list[StrictStr] | None = Field(default=None, description="OpenAlex IDs for works related to this work (computed algorithmically).")
+ topics: list[WorkTopic] | None = Field(default=None, description="List of up to 3 Topics for this work, each with a relevance score.")
+ primary_topic: WorkTopic | None = Field(default=None, description="The top ranked Topic for this work, with `id`, `display_name`, `score`, and hierarchy (`subfield`, `field`, `domain`).")
+ keywords: list[WorkKeyword] | None = Field(default=None, description="Keywords identified based on the work's topics, with relevance scores.")
+ funders: list[DehydratedFunder] | None = Field(default=None, description="Dehydrated Funder objects representing the funders of this work.")
+ awards: list[Award] | None = Field(default=None, description="Dehydrated Award objects representing grants associated with this work.")
+ fwci: StrictFloat | StrictInt | None = Field(default=None, description="Field-weighted Citation Impact, calculated as citations received / citations expected.")
+ citation_normalized_percentile: WorkCitationNormalizedPercentile | None = None
+ cited_by_percentile_year: WorkCitedByPercentileYear | None = None
+ counts_by_year: list[WorkCountsByYearInner] | None = Field(default=None, description="`cited_by_count` for each of the last ten years.")
+ sustainable_development_goals: list[WorkSustainableDevelopmentGoalsInner] | None = Field(default=None, description="UN Sustainable Development Goals relevant to this work, with prediction scores.")
+ mesh: list[WorkMeshInner] | None = Field(default=None, description="MeSH tags for works found in PubMed.")
+ indexed_in: list[StrictStr] | None = Field(default=None, description="Sources this work is indexed in. Values: `arxiv`, `crossref`, `doaj`, `pubmed`.")
+ has_content: WorkHasContent | None = None
+ content_url: StrictStr | None = Field(default=None, description="URL for downloading full-text content. Only present when `has_content.pdf` or `has_content.grobid_xml` is true.")
+ created_date: date | None = Field(default=None, description="When this work was added to OpenAlex (ISO 8601 date).")
+ updated_date: datetime | None = Field(default=None, description="When this work was last updated (ISO 8601 datetime).")
+ __properties: ClassVar[list[str]] = ["id", "doi", "title", "display_name", "publication_year", "publication_date", "type", "language", "cited_by_count", "is_retracted", "is_paratext", "primary_location", "locations", "best_oa_location", "open_access", "authorships", "ids", "biblio", "abstract_inverted_index", "referenced_works", "referenced_works_count", "related_works", "topics", "primary_topic", "keywords", "funders", "awards", "fwci", "citation_normalized_percentile", "cited_by_percentile_year", "counts_by_year", "sustainable_development_goals", "mesh", "indexed_in", "has_content", "content_url", "created_date", "updated_date"]
model_config = ConfigDict(
validate_by_name=True,
@@ -101,11 +113,11 @@ class Work(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of Work from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -115,7 +127,7 @@ class Work(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -216,7 +228,7 @@ class Work(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of Work from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/openalex/work_biblio.py b/service/src/main/inse/models/openalex/work_biblio.py
index 8d0c7506..eaf3a791 100644
--- a/service/src/main/inse/models/openalex/work_biblio.py
+++ b/service/src/main/inse/models/openalex/work_biblio.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
OpenAlex API
@@ -10,29 +9,29 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
+from typing import Any, ClassVar, Self
from pydantic import BaseModel, ConfigDict, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
from pydantic_core import to_jsonable_python
+
class WorkBiblio(BaseModel):
"""
Bibliographic info: `volume`, `issue`, `first_page`, `last_page`.
- """ # noqa: E501
- volume: Optional[StrictStr] = None
- issue: Optional[StrictStr] = None
- first_page: Optional[StrictStr] = None
- last_page: Optional[StrictStr] = None
- __properties: ClassVar[List[str]] = ["volume", "issue", "first_page", "last_page"]
+ """
+ volume: StrictStr | None = None
+ issue: StrictStr | None = None
+ first_page: StrictStr | None = None
+ last_page: StrictStr | None = None
+ __properties: ClassVar[list[str]] = ["volume", "issue", "first_page", "last_page"]
model_config = ConfigDict(
validate_by_name=True,
@@ -51,11 +50,11 @@ class WorkBiblio(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of WorkBiblio from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -65,7 +64,7 @@ class WorkBiblio(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -76,7 +75,7 @@ class WorkBiblio(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of WorkBiblio from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/openalex/work_citation_normalized_percentile.py b/service/src/main/inse/models/openalex/work_citation_normalized_percentile.py
index bf72a965..e8b2e1bb 100644
--- a/service/src/main/inse/models/openalex/work_citation_normalized_percentile.py
+++ b/service/src/main/inse/models/openalex/work_citation_normalized_percentile.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
OpenAlex API
@@ -10,28 +9,28 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
+from typing import Any, ClassVar, Self
from pydantic import BaseModel, ConfigDict, StrictBool, StrictFloat, StrictInt
-from typing import Any, ClassVar, Dict, List, Optional, Union
-from typing import Optional, Set
-from typing_extensions import Self
from pydantic_core import to_jsonable_python
+
class WorkCitationNormalizedPercentile(BaseModel):
"""
Percentile of citation count normalized by work type, year, and subfield. Includes `value`, `is_in_top_1_percent`, `is_in_top_10_percent`.
- """ # noqa: E501
- value: Optional[Union[StrictFloat, StrictInt]] = None
- is_in_top_1_percent: Optional[StrictBool] = None
- is_in_top_10_percent: Optional[StrictBool] = None
- __properties: ClassVar[List[str]] = ["value", "is_in_top_1_percent", "is_in_top_10_percent"]
+ """
+ value: StrictFloat | StrictInt | None = None
+ is_in_top_1_percent: StrictBool | None = None
+ is_in_top_10_percent: StrictBool | None = None
+ __properties: ClassVar[list[str]] = ["value", "is_in_top_1_percent", "is_in_top_10_percent"]
model_config = ConfigDict(
validate_by_name=True,
@@ -50,11 +49,11 @@ class WorkCitationNormalizedPercentile(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of WorkCitationNormalizedPercentile from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -64,7 +63,7 @@ class WorkCitationNormalizedPercentile(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -75,7 +74,7 @@ class WorkCitationNormalizedPercentile(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of WorkCitationNormalizedPercentile from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/openalex/work_cited_by_percentile_year.py b/service/src/main/inse/models/openalex/work_cited_by_percentile_year.py
index 6a0a3aab..d244c7a5 100644
--- a/service/src/main/inse/models/openalex/work_cited_by_percentile_year.py
+++ b/service/src/main/inse/models/openalex/work_cited_by_percentile_year.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
OpenAlex API
@@ -10,27 +9,27 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
+from typing import Any, ClassVar, Self
from pydantic import BaseModel, ConfigDict, StrictInt
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
from pydantic_core import to_jsonable_python
+
class WorkCitedByPercentileYear(BaseModel):
"""
Percentile rank compared to other works published in the same year. Contains `min` and `max`.
- """ # noqa: E501
- min: Optional[StrictInt] = None
- max: Optional[StrictInt] = None
- __properties: ClassVar[List[str]] = ["min", "max"]
+ """
+ min: StrictInt | None = None
+ max: StrictInt | None = None
+ __properties: ClassVar[list[str]] = ["min", "max"]
model_config = ConfigDict(
validate_by_name=True,
@@ -49,11 +48,11 @@ class WorkCitedByPercentileYear(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of WorkCitedByPercentileYear from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -63,7 +62,7 @@ class WorkCitedByPercentileYear(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -74,7 +73,7 @@ class WorkCitedByPercentileYear(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of WorkCitedByPercentileYear from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/openalex/work_counts_by_year_inner.py b/service/src/main/inse/models/openalex/work_counts_by_year_inner.py
index 592a8684..2f2db9b9 100644
--- a/service/src/main/inse/models/openalex/work_counts_by_year_inner.py
+++ b/service/src/main/inse/models/openalex/work_counts_by_year_inner.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
OpenAlex API
@@ -10,27 +9,27 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
+from typing import Any, ClassVar, Self
from pydantic import BaseModel, ConfigDict, StrictInt
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
from pydantic_core import to_jsonable_python
+
class WorkCountsByYearInner(BaseModel):
"""
WorkCountsByYearInner
- """ # noqa: E501
- year: Optional[StrictInt] = None
- cited_by_count: Optional[StrictInt] = None
- __properties: ClassVar[List[str]] = ["year", "cited_by_count"]
+ """
+ year: StrictInt | None = None
+ cited_by_count: StrictInt | None = None
+ __properties: ClassVar[list[str]] = ["year", "cited_by_count"]
model_config = ConfigDict(
validate_by_name=True,
@@ -49,11 +48,11 @@ class WorkCountsByYearInner(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of WorkCountsByYearInner from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -63,7 +62,7 @@ class WorkCountsByYearInner(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -74,7 +73,7 @@ class WorkCountsByYearInner(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of WorkCountsByYearInner from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/openalex/work_has_content.py b/service/src/main/inse/models/openalex/work_has_content.py
index cf2e07d7..b5b80649 100644
--- a/service/src/main/inse/models/openalex/work_has_content.py
+++ b/service/src/main/inse/models/openalex/work_has_content.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
OpenAlex API
@@ -10,27 +9,27 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
+from typing import Any, ClassVar, Self
from pydantic import BaseModel, ConfigDict, StrictBool
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
from pydantic_core import to_jsonable_python
+
class WorkHasContent(BaseModel):
"""
Information about downloadable full-text content:
- """ # noqa: E501
- pdf: Optional[StrictBool] = None
- grobid_xml: Optional[StrictBool] = None
- __properties: ClassVar[List[str]] = ["pdf", "grobid_xml"]
+ """
+ pdf: StrictBool | None = None
+ grobid_xml: StrictBool | None = None
+ __properties: ClassVar[list[str]] = ["pdf", "grobid_xml"]
model_config = ConfigDict(
validate_by_name=True,
@@ -49,11 +48,11 @@ class WorkHasContent(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of WorkHasContent from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -63,7 +62,7 @@ class WorkHasContent(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -74,7 +73,7 @@ class WorkHasContent(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of WorkHasContent from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/openalex/work_ids.py b/service/src/main/inse/models/openalex/work_ids.py
index f4478c3e..85fdba93 100644
--- a/service/src/main/inse/models/openalex/work_ids.py
+++ b/service/src/main/inse/models/openalex/work_ids.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
OpenAlex API
@@ -10,30 +9,30 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
+from typing import Any, ClassVar, Self
from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
from pydantic_core import to_jsonable_python
+
class WorkIds(BaseModel):
"""
External identifiers: `openalex`, `doi`, `mag`, `pmid`, `pmcid`.
- """ # noqa: E501
- openalex: Optional[StrictStr] = None
- doi: Optional[StrictStr] = None
- mag: Optional[StrictInt] = None
- pmid: Optional[StrictStr] = None
- pmcid: Optional[StrictStr] = None
- __properties: ClassVar[List[str]] = ["openalex", "doi", "mag", "pmid", "pmcid"]
+ """
+ openalex: StrictStr | None = None
+ doi: StrictStr | None = None
+ mag: StrictInt | None = None
+ pmid: StrictStr | None = None
+ pmcid: StrictStr | None = None
+ __properties: ClassVar[list[str]] = ["openalex", "doi", "mag", "pmid", "pmcid"]
model_config = ConfigDict(
validate_by_name=True,
@@ -52,11 +51,11 @@ class WorkIds(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of WorkIds from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -66,7 +65,7 @@ class WorkIds(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -77,7 +76,7 @@ class WorkIds(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of WorkIds from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/openalex/work_keyword.py b/service/src/main/inse/models/openalex/work_keyword.py
index 55feaab6..aaf75451 100644
--- a/service/src/main/inse/models/openalex/work_keyword.py
+++ b/service/src/main/inse/models/openalex/work_keyword.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
OpenAlex API
@@ -10,28 +9,28 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
+from typing import Any, ClassVar, Self
from pydantic import BaseModel, ConfigDict, StrictFloat, StrictInt, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional, Union
-from typing import Optional, Set
-from typing_extensions import Self
from pydantic_core import to_jsonable_python
+
class WorkKeyword(BaseModel):
"""
WorkKeyword
- """ # noqa: E501
- id: Optional[StrictStr] = None
- display_name: Optional[StrictStr] = None
- score: Optional[Union[StrictFloat, StrictInt]] = None
- __properties: ClassVar[List[str]] = ["id", "display_name", "score"]
+ """
+ id: StrictStr | None = None
+ display_name: StrictStr | None = None
+ score: StrictFloat | StrictInt | None = None
+ __properties: ClassVar[list[str]] = ["id", "display_name", "score"]
model_config = ConfigDict(
validate_by_name=True,
@@ -50,11 +49,11 @@ class WorkKeyword(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of WorkKeyword from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -64,7 +63,7 @@ class WorkKeyword(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -75,7 +74,7 @@ class WorkKeyword(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of WorkKeyword from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/openalex/work_mesh_inner.py b/service/src/main/inse/models/openalex/work_mesh_inner.py
index 73d67064..ccedf595 100644
--- a/service/src/main/inse/models/openalex/work_mesh_inner.py
+++ b/service/src/main/inse/models/openalex/work_mesh_inner.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
OpenAlex API
@@ -10,30 +9,30 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
+from typing import Any, ClassVar, Self
from pydantic import BaseModel, ConfigDict, StrictBool, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
from pydantic_core import to_jsonable_python
+
class WorkMeshInner(BaseModel):
"""
WorkMeshInner
- """ # noqa: E501
- descriptor_ui: Optional[StrictStr] = None
- descriptor_name: Optional[StrictStr] = None
- qualifier_ui: Optional[StrictStr] = None
- qualifier_name: Optional[StrictStr] = None
- is_major_topic: Optional[StrictBool] = None
- __properties: ClassVar[List[str]] = ["descriptor_ui", "descriptor_name", "qualifier_ui", "qualifier_name", "is_major_topic"]
+ """
+ descriptor_ui: StrictStr | None = None
+ descriptor_name: StrictStr | None = None
+ qualifier_ui: StrictStr | None = None
+ qualifier_name: StrictStr | None = None
+ is_major_topic: StrictBool | None = None
+ __properties: ClassVar[list[str]] = ["descriptor_ui", "descriptor_name", "qualifier_ui", "qualifier_name", "is_major_topic"]
model_config = ConfigDict(
validate_by_name=True,
@@ -52,11 +51,11 @@ class WorkMeshInner(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of WorkMeshInner from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -66,7 +65,7 @@ class WorkMeshInner(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -77,7 +76,7 @@ class WorkMeshInner(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of WorkMeshInner from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/openalex/work_page.py b/service/src/main/inse/models/openalex/work_page.py
index f9b3b6f7..9849cf5d 100644
--- a/service/src/main/inse/models/openalex/work_page.py
+++ b/service/src/main/inse/models/openalex/work_page.py
@@ -1,4 +1,3 @@
-from typing import List
from pydantic import BaseModel, Field
@@ -7,7 +6,7 @@ from inse.models.openalex.work import Work
class WorkPage(BaseModel):
total: int = Field(description="Total number of works matching the query")
- elements: List[Work] = Field(description="List of works on the current page")
+ elements: list[Work] = Field(description="List of works on the current page")
offset: int = Field(description="Offset of the current page")
size: int = Field(description="Size of the current page")
last_page: bool = Field(
diff --git a/service/src/main/inse/models/openalex/work_sustainable_development_goals_inner.py b/service/src/main/inse/models/openalex/work_sustainable_development_goals_inner.py
index 8ebe17d0..93c5b69e 100644
--- a/service/src/main/inse/models/openalex/work_sustainable_development_goals_inner.py
+++ b/service/src/main/inse/models/openalex/work_sustainable_development_goals_inner.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
OpenAlex API
@@ -10,28 +9,28 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
+from typing import Any, ClassVar, Self
from pydantic import BaseModel, ConfigDict, StrictFloat, StrictInt, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional, Union
-from typing import Optional, Set
-from typing_extensions import Self
from pydantic_core import to_jsonable_python
+
class WorkSustainableDevelopmentGoalsInner(BaseModel):
"""
WorkSustainableDevelopmentGoalsInner
- """ # noqa: E501
- id: Optional[StrictStr] = None
- display_name: Optional[StrictStr] = None
- score: Optional[Union[StrictFloat, StrictInt]] = None
- __properties: ClassVar[List[str]] = ["id", "display_name", "score"]
+ """
+ id: StrictStr | None = None
+ display_name: StrictStr | None = None
+ score: StrictFloat | StrictInt | None = None
+ __properties: ClassVar[list[str]] = ["id", "display_name", "score"]
model_config = ConfigDict(
validate_by_name=True,
@@ -50,11 +49,11 @@ class WorkSustainableDevelopmentGoalsInner(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of WorkSustainableDevelopmentGoalsInner from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -64,7 +63,7 @@ class WorkSustainableDevelopmentGoalsInner(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -75,7 +74,7 @@ class WorkSustainableDevelopmentGoalsInner(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of WorkSustainableDevelopmentGoalsInner from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/openalex/work_topic.py b/service/src/main/inse/models/openalex/work_topic.py
index e780d369..d18f63cd 100644
--- a/service/src/main/inse/models/openalex/work_topic.py
+++ b/service/src/main/inse/models/openalex/work_topic.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
OpenAlex API
@@ -10,35 +9,36 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
+from typing import Any, ClassVar, Self
from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional, Union
+from pydantic_core import to_jsonable_python
+
from inse.models.openalex.work_topic_domain import WorkTopicDomain
from inse.models.openalex.work_topic_field import WorkTopicField
from inse.models.openalex.work_topic_subfield import WorkTopicSubfield
-from typing import Optional, Set
-from typing_extensions import Self
-from pydantic_core import to_jsonable_python
+
class WorkTopic(BaseModel):
"""
WorkTopic
- """ # noqa: E501
- id: Optional[StrictStr] = None
- display_name: Optional[StrictStr] = None
- description: Optional[StrictStr] = None
- score: Optional[Union[StrictFloat, StrictInt]] = None
- subfield: Optional[WorkTopicSubfield] = None
- var_field: Optional[WorkTopicField] = Field(default=None, alias="field")
- domain: Optional[WorkTopicDomain] = None
- __properties: ClassVar[List[str]] = ["id", "display_name", "description", "score", "subfield", "field", "domain"]
+ """
+ id: StrictStr | None = None
+ display_name: StrictStr | None = None
+ description: StrictStr | None = None
+ score: StrictFloat | StrictInt | None = None
+ subfield: WorkTopicSubfield | None = None
+ var_field: WorkTopicField | None = Field(default=None, alias="field")
+ domain: WorkTopicDomain | None = None
+ __properties: ClassVar[list[str]] = ["id", "display_name", "description", "score", "subfield", "field", "domain"]
model_config = ConfigDict(
validate_by_name=True,
@@ -57,11 +57,11 @@ class WorkTopic(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of WorkTopic from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -71,7 +71,7 @@ class WorkTopic(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -91,7 +91,7 @@ class WorkTopic(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of WorkTopic from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/openalex/work_topic_domain.py b/service/src/main/inse/models/openalex/work_topic_domain.py
index 0ce6021e..a83b8792 100644
--- a/service/src/main/inse/models/openalex/work_topic_domain.py
+++ b/service/src/main/inse/models/openalex/work_topic_domain.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
OpenAlex API
@@ -10,27 +9,27 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
+from typing import Any, ClassVar, Self
from pydantic import BaseModel, ConfigDict, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
from pydantic_core import to_jsonable_python
+
class WorkTopicDomain(BaseModel):
"""
The parent [domain](/api-reference/domains)
- """ # noqa: E501
- id: Optional[StrictStr] = None
- display_name: Optional[StrictStr] = None
- __properties: ClassVar[List[str]] = ["id", "display_name"]
+ """
+ id: StrictStr | None = None
+ display_name: StrictStr | None = None
+ __properties: ClassVar[list[str]] = ["id", "display_name"]
model_config = ConfigDict(
validate_by_name=True,
@@ -49,11 +48,11 @@ class WorkTopicDomain(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of WorkTopicDomain from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -63,7 +62,7 @@ class WorkTopicDomain(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -74,7 +73,7 @@ class WorkTopicDomain(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of WorkTopicDomain from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/openalex/work_topic_field.py b/service/src/main/inse/models/openalex/work_topic_field.py
index a62147ab..0073c58b 100644
--- a/service/src/main/inse/models/openalex/work_topic_field.py
+++ b/service/src/main/inse/models/openalex/work_topic_field.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
OpenAlex API
@@ -10,27 +9,27 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
+from typing import Any, ClassVar, Self
from pydantic import BaseModel, ConfigDict, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
from pydantic_core import to_jsonable_python
+
class WorkTopicField(BaseModel):
"""
The parent [field](/api-reference/fields)
- """ # noqa: E501
- id: Optional[StrictStr] = None
- display_name: Optional[StrictStr] = None
- __properties: ClassVar[List[str]] = ["id", "display_name"]
+ """
+ id: StrictStr | None = None
+ display_name: StrictStr | None = None
+ __properties: ClassVar[list[str]] = ["id", "display_name"]
model_config = ConfigDict(
validate_by_name=True,
@@ -49,11 +48,11 @@ class WorkTopicField(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of WorkTopicField from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -63,7 +62,7 @@ class WorkTopicField(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -74,7 +73,7 @@ class WorkTopicField(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of WorkTopicField from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/openalex/work_topic_subfield.py b/service/src/main/inse/models/openalex/work_topic_subfield.py
index 96af42a8..17e94d12 100644
--- a/service/src/main/inse/models/openalex/work_topic_subfield.py
+++ b/service/src/main/inse/models/openalex/work_topic_subfield.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
OpenAlex API
@@ -10,27 +9,27 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
+from typing import Any, ClassVar, Self
from pydantic import BaseModel, ConfigDict, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
from pydantic_core import to_jsonable_python
+
class WorkTopicSubfield(BaseModel):
"""
The parent [subfield](/api-reference/subfields)
- """ # noqa: E501
- id: Optional[StrictStr] = None
- display_name: Optional[StrictStr] = None
- __properties: ClassVar[List[str]] = ["id", "display_name"]
+ """
+ id: StrictStr | None = None
+ display_name: StrictStr | None = None
+ __properties: ClassVar[list[str]] = ["id", "display_name"]
model_config = ConfigDict(
validate_by_name=True,
@@ -49,11 +48,11 @@ class WorkTopicSubfield(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of WorkTopicSubfield from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -63,7 +62,7 @@ class WorkTopicSubfield(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -74,7 +73,7 @@ class WorkTopicSubfield(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of WorkTopicSubfield from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/openalex/work_type.py b/service/src/main/inse/models/openalex/work_type.py
index 5377ada0..553f2f9f 100644
--- a/service/src/main/inse/models/openalex/work_type.py
+++ b/service/src/main/inse/models/openalex/work_type.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
OpenAlex API
@@ -10,34 +9,34 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
-
from datetime import date, datetime
+from typing import Any, ClassVar, Self
+
from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
from pydantic_core import to_jsonable_python
+
class WorkType(BaseModel):
"""
Type of scholarly work
- """ # noqa: E501
- id: Optional[StrictStr] = None
- display_name: Optional[StrictStr] = None
- description: Optional[StrictStr] = None
- works_count: Optional[StrictInt] = None
- cited_by_count: Optional[StrictInt] = None
- works_api_url: Optional[StrictStr] = None
- created_date: Optional[date] = None
- updated_date: Optional[datetime] = None
- __properties: ClassVar[List[str]] = ["id", "display_name", "description", "works_count", "cited_by_count", "works_api_url", "created_date", "updated_date"]
+ """
+ id: StrictStr | None = None
+ display_name: StrictStr | None = None
+ description: StrictStr | None = None
+ works_count: StrictInt | None = None
+ cited_by_count: StrictInt | None = None
+ works_api_url: StrictStr | None = None
+ created_date: date | None = None
+ updated_date: datetime | None = None
+ __properties: ClassVar[list[str]] = ["id", "display_name", "description", "works_count", "cited_by_count", "works_api_url", "created_date", "updated_date"]
model_config = ConfigDict(
validate_by_name=True,
@@ -56,11 +55,11 @@ class WorkType(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of WorkType from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -70,7 +69,7 @@ class WorkType(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -81,7 +80,7 @@ class WorkType(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of WorkType from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/openalex/work_types_list_response.py b/service/src/main/inse/models/openalex/work_types_list_response.py
index 5acec728..33e9a79a 100644
--- a/service/src/main/inse/models/openalex/work_types_list_response.py
+++ b/service/src/main/inse/models/openalex/work_types_list_response.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
OpenAlex API
@@ -10,29 +9,30 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
+from typing import Any, ClassVar, Self
from pydantic import BaseModel, ConfigDict
-from typing import Any, ClassVar, Dict, List, Optional
+from pydantic_core import to_jsonable_python
+
from inse.models.openalex.meta import Meta
from inse.models.openalex.work_type import WorkType
-from typing import Optional, Set
-from typing_extensions import Self
-from pydantic_core import to_jsonable_python
+
class WorkTypesListResponse(BaseModel):
"""
WorkTypesListResponse
- """ # noqa: E501
- meta: Optional[Meta] = None
- results: Optional[List[WorkType]] = None
- __properties: ClassVar[List[str]] = ["meta", "results"]
+ """
+ meta: Meta | None = None
+ results: list[WorkType] | None = None
+ __properties: ClassVar[list[str]] = ["meta", "results"]
model_config = ConfigDict(
validate_by_name=True,
@@ -51,11 +51,11 @@ class WorkTypesListResponse(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of WorkTypesListResponse from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -65,7 +65,7 @@ class WorkTypesListResponse(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -86,7 +86,7 @@ class WorkTypesListResponse(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of WorkTypesListResponse from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/openalex/works_list_response.py b/service/src/main/inse/models/openalex/works_list_response.py
index c73cb975..3771280e 100644
--- a/service/src/main/inse/models/openalex/works_list_response.py
+++ b/service/src/main/inse/models/openalex/works_list_response.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
OpenAlex API
@@ -10,31 +9,32 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
+from typing import Any, ClassVar, Self
from pydantic import BaseModel, ConfigDict
-from typing import Any, ClassVar, Dict, List, Optional
+from pydantic_core import to_jsonable_python
+
from inse.models.openalex.group_by_result import GroupByResult
from inse.models.openalex.meta import Meta
from inse.models.openalex.work import Work
-from typing import Optional, Set
-from typing_extensions import Self
-from pydantic_core import to_jsonable_python
+
class WorksListResponse(BaseModel):
"""
WorksListResponse
- """ # noqa: E501
- meta: Optional[Meta] = None
- results: Optional[List[Work]] = None
- group_by: Optional[List[GroupByResult]] = None
- __properties: ClassVar[List[str]] = ["meta", "results", "group_by"]
+ """
+ meta: Meta | None = None
+ results: list[Work] | None = None
+ group_by: list[GroupByResult] | None = None
+ __properties: ClassVar[list[str]] = ["meta", "results", "group_by"]
model_config = ConfigDict(
validate_by_name=True,
@@ -53,11 +53,11 @@ class WorksListResponse(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of WorksListResponse from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -67,7 +67,7 @@ class WorksListResponse(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -95,7 +95,7 @@ class WorksListResponse(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of WorksListResponse from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/patents_epo/epo_document.py b/service/src/main/inse/models/patents_epo/epo_document.py
index 53975fdc..79454e06 100644
--- a/service/src/main/inse/models/patents_epo/epo_document.py
+++ b/service/src/main/inse/models/patents_epo/epo_document.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
EPO Index Backend Models
@@ -9,111 +8,111 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
+from typing import Any, ClassVar, Self
-from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
from inse.models.patents_epo.inventor_nested import InventorNested
-from typing import Optional, Set
-from typing_extensions import Self
+from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr
from pydantic_core import to_jsonable_python
+
class EpoDocument(BaseModel):
"""
Main document model for the epo_index_1.0 index.
- """ # noqa: E501
- abstract: Optional[StrictStr] = None
- abstract_lang: Optional[StrictStr] = None
- action: Optional[StrictStr] = None
- applicants: Optional[StrictStr] = None
- applicants_adr: Optional[StrictStr] = None
- applicants_name: Optional[StrictStr] = None
- applicants_name_text: Optional[StrictStr] = None
- application_filing_date: Optional[StrictStr] = None
- application_number: Optional[StrictStr] = None
- claims: Optional[StrictStr] = None
- claims_de: Optional[StrictStr] = None
- claims_en: Optional[StrictStr] = None
- claims_fr: Optional[StrictStr] = None
- var_class: Optional[StrictStr] = Field(default=None, alias="class")
- classification_value: Optional[StrictStr] = None
- country: Optional[StrictStr] = None
- cpc: Optional[StrictStr] = None
- cpc_text: Optional[StrictStr] = None
- data1: Optional[StrictStr] = None
- data2: Optional[StrictStr] = None
- date_of_despatch_of_1st_exam_report: Optional[StrictStr] = None
- date_of_patent_maintained_as_amended: Optional[StrictStr] = None
- date_of_request_for_examination: Optional[StrictStr] = None
- date_of_resumption_of_proceedings: Optional[StrictStr] = None
- date_of_suspension_interruption: Optional[StrictStr] = None
- date_publication: Optional[StrictInt] = None
- date_publication_year: Optional[StrictInt] = None
- description_header: Optional[StrictStr] = None
- description_lang: Optional[StrictStr] = None
- description_paragraph: Optional[StrictStr] = None
- description_text: Optional[StrictStr] = None
- doc_number: Optional[StrictStr] = None
- extended_states: Optional[StrictStr] = None
- extended_states_text: Optional[StrictStr] = None
- indicates_the_type_of_suspension_or_interruption: Optional[StrictStr] = None
- inventors: Optional[StrictStr] = None
- inventors_adr: Optional[StrictStr] = None
- inventors_name: Optional[StrictStr] = None
- inventors_name_nested: Optional[List[InventorNested]] = None
- inventors_name_text: Optional[StrictStr] = None
- ipc: Optional[StrictStr] = None
- ipc_text: Optional[StrictStr] = None
- ipc_text_without: Optional[StrictStr] = None
- ipc_without: Optional[StrictStr] = None
- keywords_and_descriptors: Optional[StrictStr] = None
- kind: Optional[StrictStr] = None
- level: Optional[StrictStr] = None
- linked_indexing_code: Optional[StrictStr] = None
- main_group: Optional[StrictStr] = None
- non_obligatory_suppl_class: Optional[StrictStr] = None
- office: Optional[StrictStr] = None
- position: Optional[StrictStr] = None
- representatives: Optional[StrictStr] = None
- representatives_adr: Optional[StrictStr] = None
- representatives_name: Optional[StrictStr] = None
- representatives_name_text: Optional[StrictStr] = None
- request_for_conversion_to_natl_appl_country: Optional[StrictStr] = None
- request_for_conversion_to_natl_appl_date: Optional[StrictStr] = None
- section: Optional[StrictStr] = None
- srep_abs_approval: Optional[StrictStr] = None
- srep_abstract: Optional[StrictStr] = None
- srep_date_produced: Optional[StrictStr] = None
- srep_established: Optional[StrictStr] = None
- srep_file_reference_id: Optional[StrictStr] = None
- srep_invention_title: Optional[StrictStr] = None
- srep_invention_title_approval: Optional[StrictStr] = None
- srep_lang: Optional[StrictStr] = None
- srep_office: Optional[StrictStr] = None
- srep_protest_fees: Optional[StrictStr] = None
- srep_status: Optional[StrictStr] = None
- srep_type: Optional[StrictStr] = None
- srep_unity_of_invention: Optional[StrictStr] = None
- srep_unity_of_invention_fee_1: Optional[StrictStr] = None
- srep_unity_of_invention_fee_2: Optional[StrictStr] = None
- srep_unity_of_invention_fee_3: Optional[StrictStr] = None
- srep_unity_of_invention_fee_4: Optional[StrictStr] = None
- states: Optional[StrictStr] = None
- states_text: Optional[StrictStr] = None
- sub_group: Optional[StrictStr] = None
- subclass: Optional[StrictStr] = None
- title_de: Optional[StrictStr] = None
- title_en: Optional[StrictStr] = None
- title_fr: Optional[StrictStr] = None
- unlinked_indexing_code: Optional[StrictStr] = None
- version: Optional[StrictStr] = None
- __properties: ClassVar[List[str]] = ["abstract", "abstract_lang", "action", "applicants", "applicants_adr", "applicants_name", "applicants_name_text", "application_filing_date", "application_number", "claims", "claims_de", "claims_en", "claims_fr", "class", "classification_value", "country", "cpc", "cpc_text", "data1", "data2", "date_of_despatch_of_1st_exam_report", "date_of_patent_maintained_as_amended", "date_of_request_for_examination", "date_of_resumption_of_proceedings", "date_of_suspension_interruption", "date_publication", "date_publication_year", "description_header", "description_lang", "description_paragraph", "description_text", "doc_number", "extended_states", "extended_states_text", "indicates_the_type_of_suspension_or_interruption", "inventors", "inventors_adr", "inventors_name", "inventors_name_nested", "inventors_name_text", "ipc", "ipc_text", "ipc_text_without", "ipc_without", "keywords_and_descriptors", "kind", "level", "linked_indexing_code", "main_group", "non_obligatory_suppl_class", "office", "position", "representatives", "representatives_adr", "representatives_name", "representatives_name_text", "request_for_conversion_to_natl_appl_country", "request_for_conversion_to_natl_appl_date", "section", "srep_abs_approval", "srep_abstract", "srep_date_produced", "srep_established", "srep_file_reference_id", "srep_invention_title", "srep_invention_title_approval", "srep_lang", "srep_office", "srep_protest_fees", "srep_status", "srep_type", "srep_unity_of_invention", "srep_unity_of_invention_fee_1", "srep_unity_of_invention_fee_2", "srep_unity_of_invention_fee_3", "srep_unity_of_invention_fee_4", "states", "states_text", "sub_group", "subclass", "title_de", "title_en", "title_fr", "unlinked_indexing_code", "version"]
+ """
+ abstract: StrictStr | None = None
+ abstract_lang: StrictStr | None = None
+ action: StrictStr | None = None
+ applicants: StrictStr | None = None
+ applicants_adr: StrictStr | None = None
+ applicants_name: StrictStr | None = None
+ applicants_name_text: StrictStr | None = None
+ application_filing_date: StrictStr | None = None
+ application_number: StrictStr | None = None
+ claims: StrictStr | None = None
+ claims_de: StrictStr | None = None
+ claims_en: StrictStr | None = None
+ claims_fr: StrictStr | None = None
+ var_class: StrictStr | None = Field(default=None, alias="class")
+ classification_value: StrictStr | None = None
+ country: StrictStr | None = None
+ cpc: StrictStr | None = None
+ cpc_text: StrictStr | None = None
+ data1: StrictStr | None = None
+ data2: StrictStr | None = None
+ date_of_despatch_of_1st_exam_report: StrictStr | None = None
+ date_of_patent_maintained_as_amended: StrictStr | None = None
+ date_of_request_for_examination: StrictStr | None = None
+ date_of_resumption_of_proceedings: StrictStr | None = None
+ date_of_suspension_interruption: StrictStr | None = None
+ date_publication: StrictInt | None = None
+ date_publication_year: StrictInt | None = None
+ description_header: StrictStr | None = None
+ description_lang: StrictStr | None = None
+ description_paragraph: StrictStr | None = None
+ description_text: StrictStr | None = None
+ doc_number: StrictStr | None = None
+ extended_states: StrictStr | None = None
+ extended_states_text: StrictStr | None = None
+ indicates_the_type_of_suspension_or_interruption: StrictStr | None = None
+ inventors: StrictStr | None = None
+ inventors_adr: StrictStr | None = None
+ inventors_name: StrictStr | None = None
+ inventors_name_nested: list[InventorNested] | None = None
+ inventors_name_text: StrictStr | None = None
+ ipc: StrictStr | None = None
+ ipc_text: StrictStr | None = None
+ ipc_text_without: StrictStr | None = None
+ ipc_without: StrictStr | None = None
+ keywords_and_descriptors: StrictStr | None = None
+ kind: StrictStr | None = None
+ level: StrictStr | None = None
+ linked_indexing_code: StrictStr | None = None
+ main_group: StrictStr | None = None
+ non_obligatory_suppl_class: StrictStr | None = None
+ office: StrictStr | None = None
+ position: StrictStr | None = None
+ representatives: StrictStr | None = None
+ representatives_adr: StrictStr | None = None
+ representatives_name: StrictStr | None = None
+ representatives_name_text: StrictStr | None = None
+ request_for_conversion_to_natl_appl_country: StrictStr | None = None
+ request_for_conversion_to_natl_appl_date: StrictStr | None = None
+ section: StrictStr | None = None
+ srep_abs_approval: StrictStr | None = None
+ srep_abstract: StrictStr | None = None
+ srep_date_produced: StrictStr | None = None
+ srep_established: StrictStr | None = None
+ srep_file_reference_id: StrictStr | None = None
+ srep_invention_title: StrictStr | None = None
+ srep_invention_title_approval: StrictStr | None = None
+ srep_lang: StrictStr | None = None
+ srep_office: StrictStr | None = None
+ srep_protest_fees: StrictStr | None = None
+ srep_status: StrictStr | None = None
+ srep_type: StrictStr | None = None
+ srep_unity_of_invention: StrictStr | None = None
+ srep_unity_of_invention_fee_1: StrictStr | None = None
+ srep_unity_of_invention_fee_2: StrictStr | None = None
+ srep_unity_of_invention_fee_3: StrictStr | None = None
+ srep_unity_of_invention_fee_4: StrictStr | None = None
+ states: StrictStr | None = None
+ states_text: StrictStr | None = None
+ sub_group: StrictStr | None = None
+ subclass: StrictStr | None = None
+ title_de: StrictStr | None = None
+ title_en: StrictStr | None = None
+ title_fr: StrictStr | None = None
+ unlinked_indexing_code: StrictStr | None = None
+ version: StrictStr | None = None
+ __properties: ClassVar[list[str]] = ["abstract", "abstract_lang", "action", "applicants", "applicants_adr", "applicants_name", "applicants_name_text", "application_filing_date", "application_number", "claims", "claims_de", "claims_en", "claims_fr", "class", "classification_value", "country", "cpc", "cpc_text", "data1", "data2", "date_of_despatch_of_1st_exam_report", "date_of_patent_maintained_as_amended", "date_of_request_for_examination", "date_of_resumption_of_proceedings", "date_of_suspension_interruption", "date_publication", "date_publication_year", "description_header", "description_lang", "description_paragraph", "description_text", "doc_number", "extended_states", "extended_states_text", "indicates_the_type_of_suspension_or_interruption", "inventors", "inventors_adr", "inventors_name", "inventors_name_nested", "inventors_name_text", "ipc", "ipc_text", "ipc_text_without", "ipc_without", "keywords_and_descriptors", "kind", "level", "linked_indexing_code", "main_group", "non_obligatory_suppl_class", "office", "position", "representatives", "representatives_adr", "representatives_name", "representatives_name_text", "request_for_conversion_to_natl_appl_country", "request_for_conversion_to_natl_appl_date", "section", "srep_abs_approval", "srep_abstract", "srep_date_produced", "srep_established", "srep_file_reference_id", "srep_invention_title", "srep_invention_title_approval", "srep_lang", "srep_office", "srep_protest_fees", "srep_status", "srep_type", "srep_unity_of_invention", "srep_unity_of_invention_fee_1", "srep_unity_of_invention_fee_2", "srep_unity_of_invention_fee_3", "srep_unity_of_invention_fee_4", "states", "states_text", "sub_group", "subclass", "title_de", "title_en", "title_fr", "unlinked_indexing_code", "version"]
model_config = ConfigDict(
validate_by_name=True,
@@ -132,11 +131,11 @@ class EpoDocument(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of EpoDocument from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -146,7 +145,7 @@ class EpoDocument(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -164,7 +163,7 @@ class EpoDocument(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of EpoDocument from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/patents_epo/inventor_nested.py b/service/src/main/inse/models/patents_epo/inventor_nested.py
index 4ff818cb..b6c35598 100644
--- a/service/src/main/inse/models/patents_epo/inventor_nested.py
+++ b/service/src/main/inse/models/patents_epo/inventor_nested.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
EPO Index Backend Models
@@ -9,26 +8,26 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
+from typing import Any, ClassVar, Self
from pydantic import BaseModel, ConfigDict, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
from pydantic_core import to_jsonable_python
+
class InventorNested(BaseModel):
"""
Nested inventor name object.
- """ # noqa: E501
- inventor: Optional[StrictStr] = None
- __properties: ClassVar[List[str]] = ["inventor"]
+ """
+ inventor: StrictStr | None = None
+ __properties: ClassVar[list[str]] = ["inventor"]
model_config = ConfigDict(
validate_by_name=True,
@@ -47,11 +46,11 @@ class InventorNested(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of InventorNested from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -61,7 +60,7 @@ class InventorNested(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -72,7 +71,7 @@ class InventorNested(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of InventorNested from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/patents_uspto/agent_nested.py b/service/src/main/inse/models/patents_uspto/agent_nested.py
index d2ed80f9..3991ff11 100644
--- a/service/src/main/inse/models/patents_uspto/agent_nested.py
+++ b/service/src/main/inse/models/patents_uspto/agent_nested.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
USPTO Patents Index Backend Models
@@ -9,28 +8,28 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
+from typing import Any, ClassVar, Self
from pydantic import BaseModel, ConfigDict, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
from pydantic_core import to_jsonable_python
+
class AgentNested(BaseModel):
"""
Nested object for patent agents.
- """ # noqa: E501
- inventor: Optional[StrictStr] = None
- name: Optional[StrictStr] = None
- org: Optional[StrictStr] = None
- __properties: ClassVar[List[str]] = ["inventor", "name", "org"]
+ """
+ inventor: StrictStr | None = None
+ name: StrictStr | None = None
+ org: StrictStr | None = None
+ __properties: ClassVar[list[str]] = ["inventor", "name", "org"]
model_config = ConfigDict(
validate_by_name=True,
@@ -49,11 +48,11 @@ class AgentNested(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of AgentNested from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -63,7 +62,7 @@ class AgentNested(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -74,7 +73,7 @@ class AgentNested(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of AgentNested from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/patents_uspto/applicant_nested.py b/service/src/main/inse/models/patents_uspto/applicant_nested.py
index 5910b390..4ab2aa97 100644
--- a/service/src/main/inse/models/patents_uspto/applicant_nested.py
+++ b/service/src/main/inse/models/patents_uspto/applicant_nested.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
USPTO Patents Index Backend Models
@@ -9,30 +8,30 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
+from typing import Any, ClassVar, Self
from pydantic import BaseModel, ConfigDict, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
from pydantic_core import to_jsonable_python
+
class ApplicantNested(BaseModel):
"""
Nested object for patent applicants.
- """ # noqa: E501
- address: Optional[StrictStr] = None
- inventor: Optional[StrictStr] = None
- name: Optional[StrictStr] = None
- org: Optional[StrictStr] = None
- type: Optional[StrictStr] = None
- __properties: ClassVar[List[str]] = ["address", "inventor", "name", "org", "type"]
+ """
+ address: StrictStr | None = None
+ inventor: StrictStr | None = None
+ name: StrictStr | None = None
+ org: StrictStr | None = None
+ type: StrictStr | None = None
+ __properties: ClassVar[list[str]] = ["address", "inventor", "name", "org", "type"]
model_config = ConfigDict(
validate_by_name=True,
@@ -51,11 +50,11 @@ class ApplicantNested(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of ApplicantNested from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -65,7 +64,7 @@ class ApplicantNested(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -76,7 +75,7 @@ class ApplicantNested(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of ApplicantNested from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/patents_uspto/assistant_examiner_nested.py b/service/src/main/inse/models/patents_uspto/assistant_examiner_nested.py
index ffde6099..7d11f741 100644
--- a/service/src/main/inse/models/patents_uspto/assistant_examiner_nested.py
+++ b/service/src/main/inse/models/patents_uspto/assistant_examiner_nested.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
USPTO Patents Index Backend Models
@@ -9,26 +8,26 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
+from typing import Any, ClassVar, Self
from pydantic import BaseModel, ConfigDict, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
from pydantic_core import to_jsonable_python
+
class AssistantExaminerNested(BaseModel):
"""
Nested object for assistant examiners.
- """ # noqa: E501
- name: Optional[StrictStr] = None
- __properties: ClassVar[List[str]] = ["name"]
+ """
+ name: StrictStr | None = None
+ __properties: ClassVar[list[str]] = ["name"]
model_config = ConfigDict(
validate_by_name=True,
@@ -47,11 +46,11 @@ class AssistantExaminerNested(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of AssistantExaminerNested from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -61,7 +60,7 @@ class AssistantExaminerNested(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -72,7 +71,7 @@ class AssistantExaminerNested(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of AssistantExaminerNested from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/patents_uspto/citation_object.py b/service/src/main/inse/models/patents_uspto/citation_object.py
index 80d0e75f..1f4d3e71 100644
--- a/service/src/main/inse/models/patents_uspto/citation_object.py
+++ b/service/src/main/inse/models/patents_uspto/citation_object.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
USPTO Patents Index Backend Models
@@ -9,31 +8,31 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
+from typing import Any, ClassVar, Self
from pydantic import BaseModel, ConfigDict, Field, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
from pydantic_core import to_jsonable_python
+
class CitationObject(BaseModel):
"""
Object structure for patent citations.
- """ # noqa: E501
- country: Optional[StrictStr] = None
- var_date: Optional[StrictStr] = Field(default=None, alias="date")
- doc_number: Optional[StrictStr] = None
- kind: Optional[StrictStr] = None
- main_classification: Optional[StrictStr] = None
- name: Optional[StrictStr] = None
- __properties: ClassVar[List[str]] = ["country", "date", "doc_number", "kind", "main_classification", "name"]
+ """
+ country: StrictStr | None = None
+ var_date: StrictStr | None = Field(default=None, alias="date")
+ doc_number: StrictStr | None = None
+ kind: StrictStr | None = None
+ main_classification: StrictStr | None = None
+ name: StrictStr | None = None
+ __properties: ClassVar[list[str]] = ["country", "date", "doc_number", "kind", "main_classification", "name"]
model_config = ConfigDict(
validate_by_name=True,
@@ -52,11 +51,11 @@ class CitationObject(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of CitationObject from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -66,7 +65,7 @@ class CitationObject(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -77,7 +76,7 @@ class CitationObject(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of CitationObject from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/patents_uspto/inventor_nested.py b/service/src/main/inse/models/patents_uspto/inventor_nested.py
index accdeb7b..1388c86a 100644
--- a/service/src/main/inse/models/patents_uspto/inventor_nested.py
+++ b/service/src/main/inse/models/patents_uspto/inventor_nested.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
USPTO Patents Index Backend Models
@@ -9,27 +8,27 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
+from typing import Any, ClassVar, Self
from pydantic import BaseModel, ConfigDict, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
from pydantic_core import to_jsonable_python
+
class InventorNested(BaseModel):
"""
Nested object for inventors.
- """ # noqa: E501
- address: Optional[StrictStr] = None
- name: Optional[StrictStr] = None
- __properties: ClassVar[List[str]] = ["address", "name"]
+ """
+ address: StrictStr | None = None
+ name: StrictStr | None = None
+ __properties: ClassVar[list[str]] = ["address", "name"]
model_config = ConfigDict(
validate_by_name=True,
@@ -48,11 +47,11 @@ class InventorNested(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of InventorNested from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -62,7 +61,7 @@ class InventorNested(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -73,7 +72,7 @@ class InventorNested(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of InventorNested from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/patents_uspto/primary_examiner_nested.py b/service/src/main/inse/models/patents_uspto/primary_examiner_nested.py
index 2361488e..c7ea32a6 100644
--- a/service/src/main/inse/models/patents_uspto/primary_examiner_nested.py
+++ b/service/src/main/inse/models/patents_uspto/primary_examiner_nested.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
USPTO Patents Index Backend Models
@@ -9,28 +8,28 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
+from typing import Any, ClassVar, Self
from pydantic import BaseModel, ConfigDict, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
from pydantic_core import to_jsonable_python
+
class PrimaryExaminerNested(BaseModel):
"""
Nested object for primary examiners.
- """ # noqa: E501
- department: Optional[StrictStr] = None
- inventor: Optional[StrictStr] = None
- name: Optional[StrictStr] = None
- __properties: ClassVar[List[str]] = ["department", "inventor", "name"]
+ """
+ department: StrictStr | None = None
+ inventor: StrictStr | None = None
+ name: StrictStr | None = None
+ __properties: ClassVar[list[str]] = ["department", "inventor", "name"]
model_config = ConfigDict(
validate_by_name=True,
@@ -49,11 +48,11 @@ class PrimaryExaminerNested(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of PrimaryExaminerNested from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -63,7 +62,7 @@ class PrimaryExaminerNested(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -74,7 +73,7 @@ class PrimaryExaminerNested(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of PrimaryExaminerNested from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/patents_uspto/priority_claim_nested.py b/service/src/main/inse/models/patents_uspto/priority_claim_nested.py
index 0685ba08..60dee10c 100644
--- a/service/src/main/inse/models/patents_uspto/priority_claim_nested.py
+++ b/service/src/main/inse/models/patents_uspto/priority_claim_nested.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
USPTO Patents Index Backend Models
@@ -9,29 +8,29 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
+from typing import Any, ClassVar, Self
from pydantic import BaseModel, ConfigDict, Field, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
from pydantic_core import to_jsonable_python
+
class PriorityClaimNested(BaseModel):
"""
Nested object for priority claims.
- """ # noqa: E501
- country: Optional[StrictStr] = None
- var_date: Optional[StrictStr] = Field(default=None, alias="date")
- inventor: Optional[StrictStr] = None
- number: Optional[StrictStr] = None
- __properties: ClassVar[List[str]] = ["country", "date", "inventor", "number"]
+ """
+ country: StrictStr | None = None
+ var_date: StrictStr | None = Field(default=None, alias="date")
+ inventor: StrictStr | None = None
+ number: StrictStr | None = None
+ __properties: ClassVar[list[str]] = ["country", "date", "inventor", "number"]
model_config = ConfigDict(
validate_by_name=True,
@@ -50,11 +49,11 @@ class PriorityClaimNested(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of PriorityClaimNested from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -64,7 +63,7 @@ class PriorityClaimNested(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -75,7 +74,7 @@ class PriorityClaimNested(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of PriorityClaimNested from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/patents_uspto/related_documents_object.py b/service/src/main/inse/models/patents_uspto/related_documents_object.py
index 0df5d267..37e58036 100644
--- a/service/src/main/inse/models/patents_uspto/related_documents_object.py
+++ b/service/src/main/inse/models/patents_uspto/related_documents_object.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
USPTO Patents Index Backend Models
@@ -9,31 +8,31 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
+from typing import Any, ClassVar, Self
from pydantic import BaseModel, ConfigDict, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
from pydantic_core import to_jsonable_python
+
class RelatedDocumentsObject(BaseModel):
"""
Object structure for related parent and child documents.
- """ # noqa: E501
- child_country: Optional[StrictStr] = None
- child_date: Optional[StrictStr] = None
- child_doc_number: Optional[StrictStr] = None
- parent_country: Optional[StrictStr] = None
- parent_date: Optional[StrictStr] = None
- parent_doc_number: Optional[StrictStr] = None
- __properties: ClassVar[List[str]] = ["child_country", "child_date", "child_doc_number", "parent_country", "parent_date", "parent_doc_number"]
+ """
+ child_country: StrictStr | None = None
+ child_date: StrictStr | None = None
+ child_doc_number: StrictStr | None = None
+ parent_country: StrictStr | None = None
+ parent_date: StrictStr | None = None
+ parent_doc_number: StrictStr | None = None
+ __properties: ClassVar[list[str]] = ["child_country", "child_date", "child_doc_number", "parent_country", "parent_date", "parent_doc_number"]
model_config = ConfigDict(
validate_by_name=True,
@@ -52,11 +51,11 @@ class RelatedDocumentsObject(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of RelatedDocumentsObject from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -66,7 +65,7 @@ class RelatedDocumentsObject(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -77,7 +76,7 @@ class RelatedDocumentsObject(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of RelatedDocumentsObject from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/patents_uspto/uspto_patent.py b/service/src/main/inse/models/patents_uspto/uspto_patent.py
index 179d5b55..7418d736 100644
--- a/service/src/main/inse/models/patents_uspto/uspto_patent.py
+++ b/service/src/main/inse/models/patents_uspto/uspto_patent.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
USPTO Patents Index Backend Models
@@ -9,16 +8,16 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
+from typing import Any, ClassVar, Self
-from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
from inse.models.patents_uspto.agent_nested import AgentNested
from inse.models.patents_uspto.applicant_nested import ApplicantNested
from inse.models.patents_uspto.assistant_examiner_nested import AssistantExaminerNested
@@ -27,123 +26,123 @@ from inse.models.patents_uspto.inventor_nested import InventorNested
from inse.models.patents_uspto.primary_examiner_nested import PrimaryExaminerNested
from inse.models.patents_uspto.priority_claim_nested import PriorityClaimNested
from inse.models.patents_uspto.related_documents_object import RelatedDocumentsObject
-from typing import Optional, Set
-from typing_extensions import Self
+from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr
from pydantic_core import to_jsonable_python
+
class UsptoPatent(BaseModel):
"""
Main document model for the uspto_patents_1.0 index.
- """ # noqa: E501
- abstract: Optional[StrictStr] = None
- agents: Optional[List[AgentNested]] = None
- agents_names: Optional[StrictStr] = None
- agents_names_text: Optional[StrictStr] = None
- agents_orgs: Optional[StrictStr] = None
- agents_orgs_text: Optional[StrictStr] = None
- applicants: Optional[List[ApplicantNested]] = None
- applicants_addresses: Optional[StrictStr] = None
- applicants_addresses_text: Optional[StrictStr] = None
- applicants_names: Optional[StrictStr] = None
- applicants_names_text: Optional[StrictStr] = None
- applicants_orgs: Optional[StrictStr] = None
- applicants_orgs_text: Optional[StrictStr] = None
- application_country: Optional[StrictStr] = None
- application_date: Optional[StrictInt] = None
- application_number: Optional[StrictStr] = None
- application_type: Optional[StrictStr] = None
- assignees: Optional[StrictStr] = None
- assignees_addresses: Optional[StrictStr] = None
- assignees_addresses_text: Optional[StrictStr] = None
- assignees_orgs: Optional[StrictStr] = None
- assignees_orgs_text: Optional[StrictStr] = None
- assignees_text: Optional[StrictStr] = None
- assistant_examiners: Optional[List[AssistantExaminerNested]] = None
- assistant_examiners_departments: Optional[StrictStr] = None
- assistant_examiners_departments_text: Optional[StrictStr] = None
- assistant_examiners_names: Optional[StrictStr] = None
- assistant_examiners_names_text: Optional[StrictStr] = None
- citations: Optional[CitationObject] = None
- citations_names: Optional[StrictStr] = None
- citations_names_text: Optional[StrictStr] = None
- claims: Optional[StrictStr] = None
- claims_text: Optional[StrictStr] = None
- country: Optional[StrictStr] = None
- cpc: Optional[StrictStr] = None
- cpc_action: Optional[StrictStr] = None
- cpc_class: Optional[StrictStr] = None
- cpc_classification_value: Optional[StrictStr] = None
- cpc_data1: Optional[StrictStr] = None
- cpc_data2: Optional[StrictStr] = None
- cpc_main_group: Optional[StrictStr] = None
- cpc_office: Optional[StrictStr] = None
- cpc_position: Optional[StrictStr] = None
- cpc_scheme: Optional[StrictStr] = None
- cpc_section: Optional[StrictStr] = None
- cpc_subclass: Optional[StrictStr] = None
- cpc_subgroup: Optional[StrictStr] = None
- cpc_text: Optional[StrictStr] = None
- cpc_text_without: Optional[StrictStr] = None
- cpc_version: Optional[StrictStr] = None
- date_produced: Optional[StrictInt] = Field(default=None, alias="date-produced")
- date_publ: Optional[StrictInt] = Field(default=None, alias="date-publ")
- description_header: Optional[StrictStr] = None
- description_paragraph: Optional[StrictStr] = None
- description_text: Optional[StrictStr] = None
- disclaimer: Optional[StrictStr] = None
- dtd_version: Optional[StrictStr] = Field(default=None, alias="dtd-version")
- field_of_clasification_cpc: Optional[StrictStr] = None
- field_of_clasification_cpc_text: Optional[StrictStr] = None
- field_of_clasification_cpc_text_without: Optional[StrictStr] = None
- field_of_clasification_uspc: Optional[StrictStr] = None
- field_of_clasification_uspc_text: Optional[StrictStr] = None
- field_of_clasification_uspc_text_without: Optional[StrictStr] = None
- file: Optional[StrictStr] = None
- further_classifications: Optional[StrictStr] = None
- id: Optional[StrictStr] = None
- inventors: Optional[List[InventorNested]] = None
- inventors_addresses: Optional[StrictStr] = None
- inventors_addresses_text: Optional[StrictStr] = None
- inventors_names: Optional[StrictStr] = None
- inventors_names_text: Optional[StrictStr] = None
- ipcr: Optional[StrictStr] = None
- ipcr_action: Optional[StrictStr] = None
- ipcr_class: Optional[StrictStr] = None
- ipcr_classification_value: Optional[StrictStr] = None
- ipcr_data1: Optional[StrictStr] = None
- ipcr_data2: Optional[StrictStr] = None
- ipcr_level: Optional[StrictStr] = None
- ipcr_main_group: Optional[StrictStr] = None
- ipcr_office: Optional[StrictStr] = None
- ipcr_position: Optional[StrictStr] = None
- ipcr_section: Optional[StrictStr] = None
- ipcr_subclass: Optional[StrictStr] = None
- ipcr_subgroup: Optional[StrictStr] = None
- ipcr_text: Optional[StrictStr] = None
- ipcr_text_without: Optional[StrictStr] = None
- ipcr_version: Optional[StrictStr] = None
- lang: Optional[StrictStr] = None
- length_of_grant: Optional[StrictInt] = None
- loc: Optional[StrictStr] = None
- number_of_claims: Optional[StrictInt] = None
- primary_examiners: Optional[List[PrimaryExaminerNested]] = None
- primary_examiners_departments: Optional[StrictStr] = None
- primary_examiners_departments_text: Optional[StrictStr] = None
- primary_examiners_names: Optional[StrictStr] = None
- primary_examiners_names_text: Optional[StrictStr] = None
- priority_claims: Optional[List[PriorityClaimNested]] = None
- publication_country: Optional[StrictStr] = None
- publication_date: Optional[StrictInt] = None
- publication_kind: Optional[StrictStr] = None
- publication_number: Optional[StrictStr] = None
- publication_year: Optional[StrictInt] = None
- related_documents: Optional[RelatedDocumentsObject] = None
- series_code: Optional[StrictStr] = None
- status: Optional[StrictStr] = None
- term_extension: Optional[StrictInt] = None
- title: Optional[StrictStr] = None
- uspc: Optional[StrictStr] = None
- __properties: ClassVar[List[str]] = ["abstract", "agents", "agents_names", "agents_names_text", "agents_orgs", "agents_orgs_text", "applicants", "applicants_addresses", "applicants_addresses_text", "applicants_names", "applicants_names_text", "applicants_orgs", "applicants_orgs_text", "application_country", "application_date", "application_number", "application_type", "assignees", "assignees_addresses", "assignees_addresses_text", "assignees_orgs", "assignees_orgs_text", "assignees_text", "assistant_examiners", "assistant_examiners_departments", "assistant_examiners_departments_text", "assistant_examiners_names", "assistant_examiners_names_text", "citations", "citations_names", "citations_names_text", "claims", "claims_text", "country", "cpc", "cpc_action", "cpc_class", "cpc_classification_value", "cpc_data1", "cpc_data2", "cpc_main_group", "cpc_office", "cpc_position", "cpc_scheme", "cpc_section", "cpc_subclass", "cpc_subgroup", "cpc_text", "cpc_text_without", "cpc_version", "date-produced", "date-publ", "description_header", "description_paragraph", "description_text", "disclaimer", "dtd-version", "field_of_clasification_cpc", "field_of_clasification_cpc_text", "field_of_clasification_cpc_text_without", "field_of_clasification_uspc", "field_of_clasification_uspc_text", "field_of_clasification_uspc_text_without", "file", "further_classifications", "id", "inventors", "inventors_addresses", "inventors_addresses_text", "inventors_names", "inventors_names_text", "ipcr", "ipcr_action", "ipcr_class", "ipcr_classification_value", "ipcr_data1", "ipcr_data2", "ipcr_level", "ipcr_main_group", "ipcr_office", "ipcr_position", "ipcr_section", "ipcr_subclass", "ipcr_subgroup", "ipcr_text", "ipcr_text_without", "ipcr_version", "lang", "length_of_grant", "loc", "number_of_claims", "primary_examiners", "primary_examiners_departments", "primary_examiners_departments_text", "primary_examiners_names", "primary_examiners_names_text", "priority_claims", "publication_country", "publication_date", "publication_kind", "publication_number", "publication_year", "related_documents", "series_code", "status", "term_extension", "title", "uspc"]
+ """
+ abstract: StrictStr | None = None
+ agents: list[AgentNested] | None = None
+ agents_names: StrictStr | None = None
+ agents_names_text: StrictStr | None = None
+ agents_orgs: StrictStr | None = None
+ agents_orgs_text: StrictStr | None = None
+ applicants: list[ApplicantNested] | None = None
+ applicants_addresses: StrictStr | None = None
+ applicants_addresses_text: StrictStr | None = None
+ applicants_names: StrictStr | None = None
+ applicants_names_text: StrictStr | None = None
+ applicants_orgs: StrictStr | None = None
+ applicants_orgs_text: StrictStr | None = None
+ application_country: StrictStr | None = None
+ application_date: StrictInt | None = None
+ application_number: StrictStr | None = None
+ application_type: StrictStr | None = None
+ assignees: StrictStr | None = None
+ assignees_addresses: StrictStr | None = None
+ assignees_addresses_text: StrictStr | None = None
+ assignees_orgs: StrictStr | None = None
+ assignees_orgs_text: StrictStr | None = None
+ assignees_text: StrictStr | None = None
+ assistant_examiners: list[AssistantExaminerNested] | None = None
+ assistant_examiners_departments: StrictStr | None = None
+ assistant_examiners_departments_text: StrictStr | None = None
+ assistant_examiners_names: StrictStr | None = None
+ assistant_examiners_names_text: StrictStr | None = None
+ citations: CitationObject | None = None
+ citations_names: StrictStr | None = None
+ citations_names_text: StrictStr | None = None
+ claims: StrictStr | None = None
+ claims_text: StrictStr | None = None
+ country: StrictStr | None = None
+ cpc: StrictStr | None = None
+ cpc_action: StrictStr | None = None
+ cpc_class: StrictStr | None = None
+ cpc_classification_value: StrictStr | None = None
+ cpc_data1: StrictStr | None = None
+ cpc_data2: StrictStr | None = None
+ cpc_main_group: StrictStr | None = None
+ cpc_office: StrictStr | None = None
+ cpc_position: StrictStr | None = None
+ cpc_scheme: StrictStr | None = None
+ cpc_section: StrictStr | None = None
+ cpc_subclass: StrictStr | None = None
+ cpc_subgroup: StrictStr | None = None
+ cpc_text: StrictStr | None = None
+ cpc_text_without: StrictStr | None = None
+ cpc_version: StrictStr | None = None
+ date_produced: StrictInt | None = Field(default=None, alias="date-produced")
+ date_publ: StrictInt | None = Field(default=None, alias="date-publ")
+ description_header: StrictStr | None = None
+ description_paragraph: StrictStr | None = None
+ description_text: StrictStr | None = None
+ disclaimer: StrictStr | None = None
+ dtd_version: StrictStr | None = Field(default=None, alias="dtd-version")
+ field_of_clasification_cpc: StrictStr | None = None
+ field_of_clasification_cpc_text: StrictStr | None = None
+ field_of_clasification_cpc_text_without: StrictStr | None = None
+ field_of_clasification_uspc: StrictStr | None = None
+ field_of_clasification_uspc_text: StrictStr | None = None
+ field_of_clasification_uspc_text_without: StrictStr | None = None
+ file: StrictStr | None = None
+ further_classifications: StrictStr | None = None
+ id: StrictStr | None = None
+ inventors: list[InventorNested] | None = None
+ inventors_addresses: StrictStr | None = None
+ inventors_addresses_text: StrictStr | None = None
+ inventors_names: StrictStr | None = None
+ inventors_names_text: StrictStr | None = None
+ ipcr: StrictStr | None = None
+ ipcr_action: StrictStr | None = None
+ ipcr_class: StrictStr | None = None
+ ipcr_classification_value: StrictStr | None = None
+ ipcr_data1: StrictStr | None = None
+ ipcr_data2: StrictStr | None = None
+ ipcr_level: StrictStr | None = None
+ ipcr_main_group: StrictStr | None = None
+ ipcr_office: StrictStr | None = None
+ ipcr_position: StrictStr | None = None
+ ipcr_section: StrictStr | None = None
+ ipcr_subclass: StrictStr | None = None
+ ipcr_subgroup: StrictStr | None = None
+ ipcr_text: StrictStr | None = None
+ ipcr_text_without: StrictStr | None = None
+ ipcr_version: StrictStr | None = None
+ lang: StrictStr | None = None
+ length_of_grant: StrictInt | None = None
+ loc: StrictStr | None = None
+ number_of_claims: StrictInt | None = None
+ primary_examiners: list[PrimaryExaminerNested] | None = None
+ primary_examiners_departments: StrictStr | None = None
+ primary_examiners_departments_text: StrictStr | None = None
+ primary_examiners_names: StrictStr | None = None
+ primary_examiners_names_text: StrictStr | None = None
+ priority_claims: list[PriorityClaimNested] | None = None
+ publication_country: StrictStr | None = None
+ publication_date: StrictInt | None = None
+ publication_kind: StrictStr | None = None
+ publication_number: StrictStr | None = None
+ publication_year: StrictInt | None = None
+ related_documents: RelatedDocumentsObject | None = None
+ series_code: StrictStr | None = None
+ status: StrictStr | None = None
+ term_extension: StrictInt | None = None
+ title: StrictStr | None = None
+ uspc: StrictStr | None = None
+ __properties: ClassVar[list[str]] = ["abstract", "agents", "agents_names", "agents_names_text", "agents_orgs", "agents_orgs_text", "applicants", "applicants_addresses", "applicants_addresses_text", "applicants_names", "applicants_names_text", "applicants_orgs", "applicants_orgs_text", "application_country", "application_date", "application_number", "application_type", "assignees", "assignees_addresses", "assignees_addresses_text", "assignees_orgs", "assignees_orgs_text", "assignees_text", "assistant_examiners", "assistant_examiners_departments", "assistant_examiners_departments_text", "assistant_examiners_names", "assistant_examiners_names_text", "citations", "citations_names", "citations_names_text", "claims", "claims_text", "country", "cpc", "cpc_action", "cpc_class", "cpc_classification_value", "cpc_data1", "cpc_data2", "cpc_main_group", "cpc_office", "cpc_position", "cpc_scheme", "cpc_section", "cpc_subclass", "cpc_subgroup", "cpc_text", "cpc_text_without", "cpc_version", "date-produced", "date-publ", "description_header", "description_paragraph", "description_text", "disclaimer", "dtd-version", "field_of_clasification_cpc", "field_of_clasification_cpc_text", "field_of_clasification_cpc_text_without", "field_of_clasification_uspc", "field_of_clasification_uspc_text", "field_of_clasification_uspc_text_without", "file", "further_classifications", "id", "inventors", "inventors_addresses", "inventors_addresses_text", "inventors_names", "inventors_names_text", "ipcr", "ipcr_action", "ipcr_class", "ipcr_classification_value", "ipcr_data1", "ipcr_data2", "ipcr_level", "ipcr_main_group", "ipcr_office", "ipcr_position", "ipcr_section", "ipcr_subclass", "ipcr_subgroup", "ipcr_text", "ipcr_text_without", "ipcr_version", "lang", "length_of_grant", "loc", "number_of_claims", "primary_examiners", "primary_examiners_departments", "primary_examiners_departments_text", "primary_examiners_names", "primary_examiners_names_text", "priority_claims", "publication_country", "publication_date", "publication_kind", "publication_number", "publication_year", "related_documents", "series_code", "status", "term_extension", "title", "uspc"]
model_config = ConfigDict(
validate_by_name=True,
@@ -162,11 +161,11 @@ class UsptoPatent(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of UsptoPatent from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -176,7 +175,7 @@ class UsptoPatent(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -235,7 +234,7 @@ class UsptoPatent(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of UsptoPatent from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/projects_bund/arb.py b/service/src/main/inse/models/projects_bund/arb.py
index 3535b484..a8d164b1 100644
--- a/service/src/main/inse/models/projects_bund/arb.py
+++ b/service/src/main/inse/models/projects_bund/arb.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
Projects Bund Index Backend Models
@@ -9,26 +8,26 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
+from typing import Any, ClassVar, Self
from pydantic import BaseModel, ConfigDict, Field, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
from pydantic_core import to_jsonable_python
+
class Arb(BaseModel):
"""
Nested Arb object.
- """ # noqa: E501
- einh: Optional[StrictStr] = Field(default=None, alias="-Einh")
- __properties: ClassVar[List[str]] = ["-Einh"]
+ """
+ einh: StrictStr | None = Field(default=None, alias="-Einh")
+ __properties: ClassVar[list[str]] = ["-Einh"]
model_config = ConfigDict(
validate_by_name=True,
@@ -47,11 +46,11 @@ class Arb(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of Arb from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -61,7 +60,7 @@ class Arb(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -72,7 +71,7 @@ class Arb(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of Arb from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/projects_bund/project_bund.py b/service/src/main/inse/models/projects_bund/project_bund.py
index 65ab7ae8..1a08d855 100644
--- a/service/src/main/inse/models/projects_bund/project_bund.py
+++ b/service/src/main/inse/models/projects_bund/project_bund.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
Projects Bund Index Backend Models
@@ -9,56 +8,56 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
-
from datetime import date
-from pydantic import BaseModel, ConfigDict, Field, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
+from typing import Any, ClassVar, Self
+
from inse.models.projects_bund.arb import Arb
-from typing import Optional, Set
-from typing_extensions import Self
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
from pydantic_core import to_jsonable_python
+
class ProjectBund(BaseModel):
"""
Main document model for the projects_bund index.
- """ # noqa: E501
- arb: Optional[Arb] = Field(default=None, alias="Arb")
- ausfhrende_stelle: Optional[StrictStr] = Field(default=None, alias="Ausführende Stelle")
- bundesland: Optional[StrictStr] = Field(default=None, alias="Bundesland")
- frderart: Optional[StrictStr] = Field(default=None, alias="Förderart")
- frderkennzeichen: Optional[StrictStr] = Field(default=None, alias="Förderkennzeichen")
- frderprofil: Optional[StrictStr] = Field(default=None, alias="Förderprofil")
- frdersumme: Optional[StrictStr] = Field(default=None, alias="Fördersumme")
- gemeindekennziffer: Optional[StrictStr] = Field(default=None, alias="Gemeindekennziffer")
- klartext_leistungsplansystematik: Optional[StrictStr] = Field(default=None, alias="Klartext Leistungsplansystematik")
- laufzeit: Optional[StrictStr] = Field(default=None, alias="Laufzeit")
- leistungsplansystematik: Optional[StrictStr] = Field(default=None, alias="Leistungsplansystematik")
- leistungsplansystematik_fullname: Optional[StrictStr] = Field(default=None, alias="Leistungsplansystematik_fullname")
- ort: Optional[StrictStr] = Field(default=None, alias="Ort")
- pt_fullname: Optional[StrictStr] = Field(default=None, alias="PT_fullname")
- projekttrger: Optional[StrictStr] = Field(default=None, alias="Projektträger")
- publikationsdatum: Optional[StrictStr] = Field(default=None, alias="Publikationsdatum")
- referat: Optional[StrictStr] = Field(default=None, alias="Referat")
- ressort: Optional[StrictStr] = Field(default=None, alias="Ressort")
- ressort_fullname: Optional[StrictStr] = Field(default=None, alias="Ressort_fullname")
- staat: Optional[StrictStr] = Field(default=None, alias="Staat")
- stadt_gemeinde: Optional[StrictStr] = Field(default=None, alias="Stadt/Gemeinde")
- thema: Optional[StrictStr] = Field(default=None, alias="Thema")
- verbundprojekt: Optional[StrictStr] = Field(default=None, alias="Verbundprojekt")
- zuwendungsempfnger: Optional[StrictStr] = Field(default=None, alias="Zuwendungsempfänger")
- datum: Optional[StrictStr] = None
- funding_end: Optional[date] = Field(default=None, description="Expected format is dd.MM.yyyy based on ES mapping.")
- funding_start: Optional[date] = Field(default=None, description="Expected format is dd.MM.yyyy based on ES mapping.")
- new: Optional[StrictStr] = None
- unix_timestamp: Optional[StrictStr] = None
- __properties: ClassVar[List[str]] = ["Arb", "Ausführende Stelle", "Bundesland", "Förderart", "Förderkennzeichen", "Förderprofil", "Fördersumme", "Gemeindekennziffer", "Klartext Leistungsplansystematik", "Laufzeit", "Leistungsplansystematik", "Leistungsplansystematik_fullname", "Ort", "PT_fullname", "Projektträger", "Publikationsdatum", "Referat", "Ressort", "Ressort_fullname", "Staat", "Stadt/Gemeinde", "Thema", "Verbundprojekt", "Zuwendungsempfänger", "datum", "funding_end", "funding_start", "new", "unix_timestamp"]
+ """
+ arb: Arb | None = Field(default=None, alias="Arb")
+ ausfhrende_stelle: StrictStr | None = Field(default=None, alias="Ausführende Stelle")
+ bundesland: StrictStr | None = Field(default=None, alias="Bundesland")
+ frderart: StrictStr | None = Field(default=None, alias="Förderart")
+ frderkennzeichen: StrictStr | None = Field(default=None, alias="Förderkennzeichen")
+ frderprofil: StrictStr | None = Field(default=None, alias="Förderprofil")
+ frdersumme: StrictStr | None = Field(default=None, alias="Fördersumme")
+ gemeindekennziffer: StrictStr | None = Field(default=None, alias="Gemeindekennziffer")
+ klartext_leistungsplansystematik: StrictStr | None = Field(default=None, alias="Klartext Leistungsplansystematik")
+ laufzeit: StrictStr | None = Field(default=None, alias="Laufzeit")
+ leistungsplansystematik: StrictStr | None = Field(default=None, alias="Leistungsplansystematik")
+ leistungsplansystematik_fullname: StrictStr | None = Field(default=None, alias="Leistungsplansystematik_fullname")
+ ort: StrictStr | None = Field(default=None, alias="Ort")
+ pt_fullname: StrictStr | None = Field(default=None, alias="PT_fullname")
+ projekttrger: StrictStr | None = Field(default=None, alias="Projektträger")
+ publikationsdatum: StrictStr | None = Field(default=None, alias="Publikationsdatum")
+ referat: StrictStr | None = Field(default=None, alias="Referat")
+ ressort: StrictStr | None = Field(default=None, alias="Ressort")
+ ressort_fullname: StrictStr | None = Field(default=None, alias="Ressort_fullname")
+ staat: StrictStr | None = Field(default=None, alias="Staat")
+ stadt_gemeinde: StrictStr | None = Field(default=None, alias="Stadt/Gemeinde")
+ thema: StrictStr | None = Field(default=None, alias="Thema")
+ verbundprojekt: StrictStr | None = Field(default=None, alias="Verbundprojekt")
+ zuwendungsempfnger: StrictStr | None = Field(default=None, alias="Zuwendungsempfänger")
+ datum: StrictStr | None = None
+ funding_end: date | None = Field(default=None, description="Expected format is dd.MM.yyyy based on ES mapping.")
+ funding_start: date | None = Field(default=None, description="Expected format is dd.MM.yyyy based on ES mapping.")
+ new: StrictStr | None = None
+ unix_timestamp: StrictStr | None = None
+ __properties: ClassVar[list[str]] = ["Arb", "Ausführende Stelle", "Bundesland", "Förderart", "Förderkennzeichen", "Förderprofil", "Fördersumme", "Gemeindekennziffer", "Klartext Leistungsplansystematik", "Laufzeit", "Leistungsplansystematik", "Leistungsplansystematik_fullname", "Ort", "PT_fullname", "Projektträger", "Publikationsdatum", "Referat", "Ressort", "Ressort_fullname", "Staat", "Stadt/Gemeinde", "Thema", "Verbundprojekt", "Zuwendungsempfänger", "datum", "funding_end", "funding_start", "new", "unix_timestamp"]
model_config = ConfigDict(
validate_by_name=True,
@@ -77,11 +76,11 @@ class ProjectBund(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of ProjectBund from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -91,7 +90,7 @@ class ProjectBund(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -105,7 +104,7 @@ class ProjectBund(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of ProjectBund from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/projects_dfg/auslaend.py b/service/src/main/inse/models/projects_dfg/auslaend.py
index 85b261b3..e5d77adf 100644
--- a/service/src/main/inse/models/projects_dfg/auslaend.py
+++ b/service/src/main/inse/models/projects_dfg/auslaend.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
Projects DFG All Index Backend Models
@@ -9,28 +8,28 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
+from typing import Any, ClassVar, Self
from pydantic import BaseModel, ConfigDict, Field, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
from pydantic_core import to_jsonable_python
+
class Auslaend(BaseModel):
"""
Nested object for international co-applicants.
- """ # noqa: E501
- mitantragstellerin: Optional[StrictStr] = Field(default=None, alias=" Mitantragstellerin")
- mitantragstellerinnen: Optional[StrictStr] = Field(default=None, alias=" Mitantragstellerinnen")
- mitantragstellerinnen___auslndische_mitantragsteller: Optional[StrictStr] = Field(default=None, alias=" Mitantragstellerinnen / ausländische Mitantragsteller")
- __properties: ClassVar[List[str]] = [" Mitantragstellerin", " Mitantragstellerinnen", " Mitantragstellerinnen / ausländische Mitantragsteller"]
+ """
+ mitantragstellerin: StrictStr | None = Field(default=None, alias=" Mitantragstellerin")
+ mitantragstellerinnen: StrictStr | None = Field(default=None, alias=" Mitantragstellerinnen")
+ mitantragstellerinnen___auslndische_mitantragsteller: StrictStr | None = Field(default=None, alias=" Mitantragstellerinnen / ausländische Mitantragsteller")
+ __properties: ClassVar[list[str]] = [" Mitantragstellerin", " Mitantragstellerinnen", " Mitantragstellerinnen / ausländische Mitantragsteller"]
model_config = ConfigDict(
validate_by_name=True,
@@ -49,11 +48,11 @@ class Auslaend(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of Auslaend from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -63,7 +62,7 @@ class Auslaend(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -74,7 +73,7 @@ class Auslaend(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of Auslaend from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/projects_dfg/project_dfg.py b/service/src/main/inse/models/projects_dfg/project_dfg.py
index 6295f004..86c68045 100644
--- a/service/src/main/inse/models/projects_dfg/project_dfg.py
+++ b/service/src/main/inse/models/projects_dfg/project_dfg.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
Projects DFG All Index Backend Models
@@ -9,106 +8,106 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
+from typing import Any, ClassVar, Self
-from pydantic import BaseModel, ConfigDict, Field, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
from inse.models.projects_dfg.auslaend import Auslaend
from inse.models.projects_dfg.stellvertr import Stellvertr
-from typing import Optional, Set
-from typing_extensions import Self
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
from pydantic_core import to_jsonable_python
+
class ProjectDfg(BaseModel):
"""
Main document model for the projects_dfg_all index.
- """ # noqa: E501
- antragstellende_institution: Optional[StrictStr] = Field(default=None, alias="Antragstellende Institution")
- antragsteller: Optional[StrictStr] = Field(default=None, alias="Antragsteller")
- antragstellerin: Optional[StrictStr] = Field(default=None, alias="Antragstellerin")
- antragstellerinnen: Optional[StrictStr] = Field(default=None, alias="Antragstellerinnen")
- antragstellerinnen___antragsteller: Optional[StrictStr] = Field(default=None, alias="Antragstellerinnen / Antragsteller")
- anwendungspartner: Optional[StrictStr] = Field(default=None, alias="Anwendungspartner")
- beteiligte_einrichtung: Optional[StrictStr] = Field(default=None, alias="Beteiligte Einrichtung")
- beteiligte_hochschule: Optional[StrictStr] = Field(default=None, alias="Beteiligte Hochschule")
- beteiligte_institution: Optional[StrictStr] = Field(default=None, alias="Beteiligte Institution")
- beteiligte_person: Optional[StrictStr] = Field(default=None, alias="Beteiligte Person")
- beteiligte_personen: Optional[StrictStr] = Field(default=None, alias="Beteiligte Personen")
- co_sprecher: Optional[StrictStr] = Field(default=None, alias="Co-Sprecher")
- co_sprecherinnen___co_sprecher: Optional[StrictStr] = Field(default=None, alias="Co-Sprecherinnen / Co-Sprecher")
- dfg_verfahren: Optional[StrictStr] = Field(default=None, alias="DFG-Verfahren")
- ehemalige_antragsteller: Optional[StrictStr] = Field(default=None, alias="Ehemalige Antragsteller")
- ehemalige_antragstellerin: Optional[StrictStr] = Field(default=None, alias="Ehemalige Antragstellerin")
- ehemalige_antragstellerinnen: Optional[StrictStr] = Field(default=None, alias="Ehemalige Antragstellerinnen")
- ehemalige_antragstellerinnen___ehemalige_antragsteller: Optional[StrictStr] = Field(default=None, alias="Ehemalige Antragstellerinnen / Ehemalige Antragsteller")
- ehemaliger_antragsteller: Optional[StrictStr] = Field(default=None, alias="Ehemaliger Antragsteller")
- fachliche_zuordnung: Optional[StrictStr] = Field(default=None, alias="Fachliche Zuordnung")
- frderung: Optional[StrictStr] = Field(default=None, alias="Förderung")
- gastgeber: Optional[StrictStr] = Field(default=None, alias="Gastgeber")
- gastgeberin: Optional[StrictStr] = Field(default=None, alias="Gastgeberin")
- gastgeberinnen: Optional[StrictStr] = Field(default=None, alias="Gastgeberinnen")
- gastgeberinnen___gastgeber: Optional[StrictStr] = Field(default=None, alias="Gastgeberinnen / Gastgeber")
- gertegruppe: Optional[StrictStr] = Field(default=None, alias="Gerätegruppe")
- grogerte: Optional[StrictStr] = Field(default=None, alias="Großgeräte")
- igk_partnerinstitution: Optional[StrictStr] = Field(default=None, alias="IGK-Partnerinstitution")
- internationaler_bezug: Optional[StrictStr] = Field(default=None, alias="Internationaler Bezug")
- kooperationspartner: Optional[StrictStr] = Field(default=None, alias="Kooperationspartner")
- kooperationspartnerin: Optional[StrictStr] = Field(default=None, alias="Kooperationspartnerin")
- kooperationspartnerinnen: Optional[StrictStr] = Field(default=None, alias="Kooperationspartnerinnen")
- kooperationspartnerinnen___kooperationspartner: Optional[StrictStr] = Field(default=None, alias="Kooperationspartnerinnen / Kooperationspartner")
- leiter: Optional[StrictStr] = Field(default=None, alias="Leiter")
- leiterin: Optional[StrictStr] = Field(default=None, alias="Leiterin")
- leiterinnen: Optional[StrictStr] = Field(default=None, alias="Leiterinnen")
- leiterinnen___leiter: Optional[StrictStr] = Field(default=None, alias="Leiterinnen / Leiter")
- mitantragstellende_institution: Optional[StrictStr] = Field(default=None, alias="Mitantragstellende Institution")
- mitantragsteller: Optional[StrictStr] = Field(default=None, alias="Mitantragsteller")
- mitantragstellerin: Optional[StrictStr] = Field(default=None, alias="Mitantragstellerin")
- mitantragstellerinnen: Optional[StrictStr] = Field(default=None, alias="Mitantragstellerinnen")
- mitantragstellerinnen___mitantragsteller: Optional[StrictStr] = Field(default=None, alias="Mitantragstellerinnen / Mitantragsteller")
- mitverantwortlich: Optional[StrictStr] = Field(default=None, alias="Mitverantwortlich")
- mitverantwortlich_e: Optional[StrictStr] = Field(default=None, alias="Mitverantwortlich(e)")
- mitverantwortliche: Optional[StrictStr] = Field(default=None, alias="Mitverantwortliche")
- partnerorganisation: Optional[StrictStr] = Field(default=None, alias="Partnerorganisation")
- projektkennung: Optional[StrictStr] = Field(default=None, alias="Projektkennung")
- sprecher: Optional[StrictStr] = Field(default=None, alias="Sprecher")
- sprecher__igk_partner: Optional[StrictStr] = Field(default=None, alias="Sprecher (IGK-Partner)")
- sprecherin: Optional[StrictStr] = Field(default=None, alias="Sprecherin")
- sprecherin__igk_partner: Optional[StrictStr] = Field(default=None, alias="Sprecherin (IGK-Partner)")
- sprecherinnen: Optional[StrictStr] = Field(default=None, alias="Sprecherinnen")
- sprecherinnen__igk_partner___sprecher__igk_partner: Optional[StrictStr] = Field(default=None, alias="Sprecherinnen (IGK-Partner) / Sprecher (IGK-Partner)")
- sprecherinnen___sprecher: Optional[StrictStr] = Field(default=None, alias="Sprecherinnen / Sprecher")
- teilprojekt_zu: Optional[StrictStr] = Field(default=None, alias="Teilprojekt zu")
- teilprojektleiter: Optional[StrictStr] = Field(default=None, alias="Teilprojektleiter")
- teilprojektleiterin: Optional[StrictStr] = Field(default=None, alias="Teilprojektleiterin")
- teilprojektleiterinnen: Optional[StrictStr] = Field(default=None, alias="Teilprojektleiterinnen")
- teilprojektleiterinnen___teilprojektleiter: Optional[StrictStr] = Field(default=None, alias="Teilprojektleiterinnen / Teilprojektleiter")
- unternehmen: Optional[StrictStr] = Field(default=None, alias="Unternehmen")
- webseite: Optional[StrictStr] = Field(default=None, alias="Webseite")
- auslnd: Optional[Auslaend] = Field(default=None, alias="ausländ")
- auslndische_mitantragsteller: Optional[StrictStr] = Field(default=None, alias="ausländische Mitantragsteller")
- auslndischer_mitantragsteller: Optional[StrictStr] = Field(default=None, alias="ausländischer Mitantragsteller")
- beteiligte_wissenschaftler: Optional[StrictStr] = Field(default=None, alias="beteiligte Wissenschaftler")
- beteiligte_wissenschaftlerin: Optional[StrictStr] = Field(default=None, alias="beteiligte Wissenschaftlerin")
- beteiligte_wissenschaftlerinnen: Optional[StrictStr] = Field(default=None, alias="beteiligte Wissenschaftlerinnen")
- beteiligte_wissenschaftlerinnen___beteiligte_wissenschaftler: Optional[StrictStr] = Field(default=None, alias="beteiligte Wissenschaftlerinnen / beteiligte Wissenschaftler")
- beteiligter_wissenschaftler: Optional[StrictStr] = Field(default=None, alias="beteiligter Wissenschaftler")
- description: Optional[StrictStr] = None
- funding_end: Optional[StrictStr] = None
- funding_start: Optional[StrictStr] = None
- id: Optional[StrictStr] = None
- link: Optional[StrictStr] = None
- path: Optional[StrictStr] = None
- person_creater_address: Optional[StrictStr] = None
- person_creater_name: Optional[StrictStr] = None
- stellvertr: Optional[Stellvertr] = None
- title: Optional[StrictStr] = None
- __properties: ClassVar[List[str]] = ["Antragstellende Institution", "Antragsteller", "Antragstellerin", "Antragstellerinnen", "Antragstellerinnen / Antragsteller", "Anwendungspartner", "Beteiligte Einrichtung", "Beteiligte Hochschule", "Beteiligte Institution", "Beteiligte Person", "Beteiligte Personen", "Co-Sprecher", "Co-Sprecherinnen / Co-Sprecher", "DFG-Verfahren", "Ehemalige Antragsteller", "Ehemalige Antragstellerin", "Ehemalige Antragstellerinnen", "Ehemalige Antragstellerinnen / Ehemalige Antragsteller", "Ehemaliger Antragsteller", "Fachliche Zuordnung", "Förderung", "Gastgeber", "Gastgeberin", "Gastgeberinnen", "Gastgeberinnen / Gastgeber", "Gerätegruppe", "Großgeräte", "IGK-Partnerinstitution", "Internationaler Bezug", "Kooperationspartner", "Kooperationspartnerin", "Kooperationspartnerinnen", "Kooperationspartnerinnen / Kooperationspartner", "Leiter", "Leiterin", "Leiterinnen", "Leiterinnen / Leiter", "Mitantragstellende Institution", "Mitantragsteller", "Mitantragstellerin", "Mitantragstellerinnen", "Mitantragstellerinnen / Mitantragsteller", "Mitverantwortlich", "Mitverantwortlich(e)", "Mitverantwortliche", "Partnerorganisation", "Projektkennung", "Sprecher", "Sprecher (IGK-Partner)", "Sprecherin", "Sprecherin (IGK-Partner)", "Sprecherinnen", "Sprecherinnen (IGK-Partner) / Sprecher (IGK-Partner)", "Sprecherinnen / Sprecher", "Teilprojekt zu", "Teilprojektleiter", "Teilprojektleiterin", "Teilprojektleiterinnen", "Teilprojektleiterinnen / Teilprojektleiter", "Unternehmen", "Webseite", "ausländ", "ausländische Mitantragsteller", "ausländischer Mitantragsteller", "beteiligte Wissenschaftler", "beteiligte Wissenschaftlerin", "beteiligte Wissenschaftlerinnen", "beteiligte Wissenschaftlerinnen / beteiligte Wissenschaftler", "beteiligter Wissenschaftler", "description", "funding_end", "funding_start", "id", "link", "path", "person_creater_address", "person_creater_name", "stellvertr", "title"]
+ """
+ antragstellende_institution: StrictStr | None = Field(default=None, alias="Antragstellende Institution")
+ antragsteller: StrictStr | None = Field(default=None, alias="Antragsteller")
+ antragstellerin: StrictStr | None = Field(default=None, alias="Antragstellerin")
+ antragstellerinnen: StrictStr | None = Field(default=None, alias="Antragstellerinnen")
+ antragstellerinnen___antragsteller: StrictStr | None = Field(default=None, alias="Antragstellerinnen / Antragsteller")
+ anwendungspartner: StrictStr | None = Field(default=None, alias="Anwendungspartner")
+ beteiligte_einrichtung: StrictStr | None = Field(default=None, alias="Beteiligte Einrichtung")
+ beteiligte_hochschule: StrictStr | None = Field(default=None, alias="Beteiligte Hochschule")
+ beteiligte_institution: StrictStr | None = Field(default=None, alias="Beteiligte Institution")
+ beteiligte_person: StrictStr | None = Field(default=None, alias="Beteiligte Person")
+ beteiligte_personen: StrictStr | None = Field(default=None, alias="Beteiligte Personen")
+ co_sprecher: StrictStr | None = Field(default=None, alias="Co-Sprecher")
+ co_sprecherinnen___co_sprecher: StrictStr | None = Field(default=None, alias="Co-Sprecherinnen / Co-Sprecher")
+ dfg_verfahren: StrictStr | None = Field(default=None, alias="DFG-Verfahren")
+ ehemalige_antragsteller: StrictStr | None = Field(default=None, alias="Ehemalige Antragsteller")
+ ehemalige_antragstellerin: StrictStr | None = Field(default=None, alias="Ehemalige Antragstellerin")
+ ehemalige_antragstellerinnen: StrictStr | None = Field(default=None, alias="Ehemalige Antragstellerinnen")
+ ehemalige_antragstellerinnen___ehemalige_antragsteller: StrictStr | None = Field(default=None, alias="Ehemalige Antragstellerinnen / Ehemalige Antragsteller")
+ ehemaliger_antragsteller: StrictStr | None = Field(default=None, alias="Ehemaliger Antragsteller")
+ fachliche_zuordnung: StrictStr | None = Field(default=None, alias="Fachliche Zuordnung")
+ frderung: StrictStr | None = Field(default=None, alias="Förderung")
+ gastgeber: StrictStr | None = Field(default=None, alias="Gastgeber")
+ gastgeberin: StrictStr | None = Field(default=None, alias="Gastgeberin")
+ gastgeberinnen: StrictStr | None = Field(default=None, alias="Gastgeberinnen")
+ gastgeberinnen___gastgeber: StrictStr | None = Field(default=None, alias="Gastgeberinnen / Gastgeber")
+ gertegruppe: StrictStr | None = Field(default=None, alias="Gerätegruppe")
+ grogerte: StrictStr | None = Field(default=None, alias="Großgeräte")
+ igk_partnerinstitution: StrictStr | None = Field(default=None, alias="IGK-Partnerinstitution")
+ internationaler_bezug: StrictStr | None = Field(default=None, alias="Internationaler Bezug")
+ kooperationspartner: StrictStr | None = Field(default=None, alias="Kooperationspartner")
+ kooperationspartnerin: StrictStr | None = Field(default=None, alias="Kooperationspartnerin")
+ kooperationspartnerinnen: StrictStr | None = Field(default=None, alias="Kooperationspartnerinnen")
+ kooperationspartnerinnen___kooperationspartner: StrictStr | None = Field(default=None, alias="Kooperationspartnerinnen / Kooperationspartner")
+ leiter: StrictStr | None = Field(default=None, alias="Leiter")
+ leiterin: StrictStr | None = Field(default=None, alias="Leiterin")
+ leiterinnen: StrictStr | None = Field(default=None, alias="Leiterinnen")
+ leiterinnen___leiter: StrictStr | None = Field(default=None, alias="Leiterinnen / Leiter")
+ mitantragstellende_institution: StrictStr | None = Field(default=None, alias="Mitantragstellende Institution")
+ mitantragsteller: StrictStr | None = Field(default=None, alias="Mitantragsteller")
+ mitantragstellerin: StrictStr | None = Field(default=None, alias="Mitantragstellerin")
+ mitantragstellerinnen: StrictStr | None = Field(default=None, alias="Mitantragstellerinnen")
+ mitantragstellerinnen___mitantragsteller: StrictStr | None = Field(default=None, alias="Mitantragstellerinnen / Mitantragsteller")
+ mitverantwortlich: StrictStr | None = Field(default=None, alias="Mitverantwortlich")
+ mitverantwortlich_e: StrictStr | None = Field(default=None, alias="Mitverantwortlich(e)")
+ mitverantwortliche: StrictStr | None = Field(default=None, alias="Mitverantwortliche")
+ partnerorganisation: StrictStr | None = Field(default=None, alias="Partnerorganisation")
+ projektkennung: StrictStr | None = Field(default=None, alias="Projektkennung")
+ sprecher: StrictStr | None = Field(default=None, alias="Sprecher")
+ sprecher__igk_partner: StrictStr | None = Field(default=None, alias="Sprecher (IGK-Partner)")
+ sprecherin: StrictStr | None = Field(default=None, alias="Sprecherin")
+ sprecherin__igk_partner: StrictStr | None = Field(default=None, alias="Sprecherin (IGK-Partner)")
+ sprecherinnen: StrictStr | None = Field(default=None, alias="Sprecherinnen")
+ sprecherinnen__igk_partner___sprecher__igk_partner: StrictStr | None = Field(default=None, alias="Sprecherinnen (IGK-Partner) / Sprecher (IGK-Partner)")
+ sprecherinnen___sprecher: StrictStr | None = Field(default=None, alias="Sprecherinnen / Sprecher")
+ teilprojekt_zu: StrictStr | None = Field(default=None, alias="Teilprojekt zu")
+ teilprojektleiter: StrictStr | None = Field(default=None, alias="Teilprojektleiter")
+ teilprojektleiterin: StrictStr | None = Field(default=None, alias="Teilprojektleiterin")
+ teilprojektleiterinnen: StrictStr | None = Field(default=None, alias="Teilprojektleiterinnen")
+ teilprojektleiterinnen___teilprojektleiter: StrictStr | None = Field(default=None, alias="Teilprojektleiterinnen / Teilprojektleiter")
+ unternehmen: StrictStr | None = Field(default=None, alias="Unternehmen")
+ webseite: StrictStr | None = Field(default=None, alias="Webseite")
+ auslnd: Auslaend | None = Field(default=None, alias="ausländ")
+ auslndische_mitantragsteller: StrictStr | None = Field(default=None, alias="ausländische Mitantragsteller")
+ auslndischer_mitantragsteller: StrictStr | None = Field(default=None, alias="ausländischer Mitantragsteller")
+ beteiligte_wissenschaftler: StrictStr | None = Field(default=None, alias="beteiligte Wissenschaftler")
+ beteiligte_wissenschaftlerin: StrictStr | None = Field(default=None, alias="beteiligte Wissenschaftlerin")
+ beteiligte_wissenschaftlerinnen: StrictStr | None = Field(default=None, alias="beteiligte Wissenschaftlerinnen")
+ beteiligte_wissenschaftlerinnen___beteiligte_wissenschaftler: StrictStr | None = Field(default=None, alias="beteiligte Wissenschaftlerinnen / beteiligte Wissenschaftler")
+ beteiligter_wissenschaftler: StrictStr | None = Field(default=None, alias="beteiligter Wissenschaftler")
+ description: StrictStr | None = None
+ funding_end: StrictStr | None = None
+ funding_start: StrictStr | None = None
+ id: StrictStr | None = None
+ link: StrictStr | None = None
+ path: StrictStr | None = None
+ person_creater_address: StrictStr | None = None
+ person_creater_name: StrictStr | None = None
+ stellvertr: Stellvertr | None = None
+ title: StrictStr | None = None
+ __properties: ClassVar[list[str]] = ["Antragstellende Institution", "Antragsteller", "Antragstellerin", "Antragstellerinnen", "Antragstellerinnen / Antragsteller", "Anwendungspartner", "Beteiligte Einrichtung", "Beteiligte Hochschule", "Beteiligte Institution", "Beteiligte Person", "Beteiligte Personen", "Co-Sprecher", "Co-Sprecherinnen / Co-Sprecher", "DFG-Verfahren", "Ehemalige Antragsteller", "Ehemalige Antragstellerin", "Ehemalige Antragstellerinnen", "Ehemalige Antragstellerinnen / Ehemalige Antragsteller", "Ehemaliger Antragsteller", "Fachliche Zuordnung", "Förderung", "Gastgeber", "Gastgeberin", "Gastgeberinnen", "Gastgeberinnen / Gastgeber", "Gerätegruppe", "Großgeräte", "IGK-Partnerinstitution", "Internationaler Bezug", "Kooperationspartner", "Kooperationspartnerin", "Kooperationspartnerinnen", "Kooperationspartnerinnen / Kooperationspartner", "Leiter", "Leiterin", "Leiterinnen", "Leiterinnen / Leiter", "Mitantragstellende Institution", "Mitantragsteller", "Mitantragstellerin", "Mitantragstellerinnen", "Mitantragstellerinnen / Mitantragsteller", "Mitverantwortlich", "Mitverantwortlich(e)", "Mitverantwortliche", "Partnerorganisation", "Projektkennung", "Sprecher", "Sprecher (IGK-Partner)", "Sprecherin", "Sprecherin (IGK-Partner)", "Sprecherinnen", "Sprecherinnen (IGK-Partner) / Sprecher (IGK-Partner)", "Sprecherinnen / Sprecher", "Teilprojekt zu", "Teilprojektleiter", "Teilprojektleiterin", "Teilprojektleiterinnen", "Teilprojektleiterinnen / Teilprojektleiter", "Unternehmen", "Webseite", "ausländ", "ausländische Mitantragsteller", "ausländischer Mitantragsteller", "beteiligte Wissenschaftler", "beteiligte Wissenschaftlerin", "beteiligte Wissenschaftlerinnen", "beteiligte Wissenschaftlerinnen / beteiligte Wissenschaftler", "beteiligter Wissenschaftler", "description", "funding_end", "funding_start", "id", "link", "path", "person_creater_address", "person_creater_name", "stellvertr", "title"]
model_config = ConfigDict(
validate_by_name=True,
@@ -127,11 +126,11 @@ class ProjectDfg(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of ProjectDfg from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -141,7 +140,7 @@ class ProjectDfg(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -158,7 +157,7 @@ class ProjectDfg(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of ProjectDfg from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/projects_dfg/stellvertr.py b/service/src/main/inse/models/projects_dfg/stellvertr.py
index 641d6c33..5d83728a 100644
--- a/service/src/main/inse/models/projects_dfg/stellvertr.py
+++ b/service/src/main/inse/models/projects_dfg/stellvertr.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
Projects DFG All Index Backend Models
@@ -9,29 +8,29 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
+from typing import Any, ClassVar, Self
-from pydantic import BaseModel, ConfigDict, Field, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
from inse.models.projects_dfg.stellvertr_sprecherinnen import StellvertrSprecherinnen
-from typing import Optional, Set
-from typing_extensions import Self
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
from pydantic_core import to_jsonable_python
+
class Stellvertr(BaseModel):
"""
Nested object for deputy speakers.
- """ # noqa: E501
- sprecher: Optional[StrictStr] = Field(default=None, alias=" Sprecher")
- sprecherin: Optional[StrictStr] = Field(default=None, alias=" Sprecherin")
- sprecherinnen___stellvertr: Optional[StellvertrSprecherinnen] = Field(default=None, alias=" Sprecherinnen / stellvertr")
- __properties: ClassVar[List[str]] = [" Sprecher", " Sprecherin", " Sprecherinnen / stellvertr"]
+ """
+ sprecher: StrictStr | None = Field(default=None, alias=" Sprecher")
+ sprecherin: StrictStr | None = Field(default=None, alias=" Sprecherin")
+ sprecherinnen___stellvertr: StellvertrSprecherinnen | None = Field(default=None, alias=" Sprecherinnen / stellvertr")
+ __properties: ClassVar[list[str]] = [" Sprecher", " Sprecherin", " Sprecherinnen / stellvertr"]
model_config = ConfigDict(
validate_by_name=True,
@@ -50,11 +49,11 @@ class Stellvertr(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of Stellvertr from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -64,7 +63,7 @@ class Stellvertr(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -78,7 +77,7 @@ class Stellvertr(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of Stellvertr from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/projects_dfg/stellvertr_sprecherinnen.py b/service/src/main/inse/models/projects_dfg/stellvertr_sprecherinnen.py
index 6e072ff9..b7d054f3 100644
--- a/service/src/main/inse/models/projects_dfg/stellvertr_sprecherinnen.py
+++ b/service/src/main/inse/models/projects_dfg/stellvertr_sprecherinnen.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
Projects DFG All Index Backend Models
@@ -9,26 +8,26 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
+from typing import Any, ClassVar, Self
from pydantic import BaseModel, ConfigDict, Field, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
from pydantic_core import to_jsonable_python
+
class StellvertrSprecherinnen(BaseModel):
"""
Deeply nested object within stellvertr.
- """ # noqa: E501
- sprecher: Optional[StrictStr] = Field(default=None, alias=" Sprecher")
- __properties: ClassVar[List[str]] = [" Sprecher"]
+ """
+ sprecher: StrictStr | None = Field(default=None, alias=" Sprecher")
+ __properties: ClassVar[list[str]] = [" Sprecher"]
model_config = ConfigDict(
validate_by_name=True,
@@ -47,11 +46,11 @@ class StellvertrSprecherinnen(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of StellvertrSprecherinnen from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -61,7 +60,7 @@ class StellvertrSprecherinnen(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -72,7 +71,7 @@ class StellvertrSprecherinnen(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of StellvertrSprecherinnen from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/projects_dfg_v2/institute/dfg_institute.py b/service/src/main/inse/models/projects_dfg_v2/institute/dfg_institute.py
index 49e663a3..eed33c2c 100644
--- a/service/src/main/inse/models/projects_dfg_v2/institute/dfg_institute.py
+++ b/service/src/main/inse/models/projects_dfg_v2/institute/dfg_institute.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
DFG Institutes API
@@ -9,57 +8,61 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
-
from datetime import datetime
+from typing import Any, ClassVar, Self
+
+from inse.models.projects_dfg_v2.institute.dfg_institute_institute import (
+ DFGInstituteInstitute,
+)
+from inse.models.projects_dfg_v2.institute.dfg_institute_projects_inner import (
+ DFGInstituteProjectsInner,
+)
from pydantic import BaseModel, ConfigDict, StrictBool, StrictInt, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from inse.models.projects_dfg_v2.institute.dfg_institute_institute import DFGInstituteInstitute
-from inse.models.projects_dfg_v2.institute.dfg_institute_projects_inner import DFGInstituteProjectsInner
-from typing import Optional, Set
-from typing_extensions import Self
from pydantic_core import to_jsonable_python
+
class DFGInstitute(BaseModel):
"""
DFGInstitute
- """ # noqa: E501
- address_city: Optional[StrictStr] = None
- address_country_de: Optional[StrictStr] = None
- address_country_en: Optional[StrictStr] = None
- address_hidden: Optional[StrictBool] = None
- address_postal_code_city: Optional[StrictStr] = None
- address_street: Optional[StrictStr] = None
- aku_id: Optional[StrictInt] = None
- fetched_at: Optional[datetime] = None
- id: Optional[StrictInt] = None
- institute: Optional[DFGInstituteInstitute] = None
- institute_category_key: Optional[StrictStr] = None
- institute_category_label_de: Optional[StrictStr] = None
- institute_category_label_en: Optional[StrictStr] = None
- institute_id: Optional[StrictInt] = None
- institute_name_de: Optional[StrictStr] = None
- institute_name_en: Optional[StrictStr] = None
- institute_postal_address: Optional[StrictStr] = None
- institute_type_key: Optional[StrictStr] = None
- institute_type_label_de: Optional[StrictStr] = None
- institute_type_label_en: Optional[StrictStr] = None
- is_dissolved: Optional[StrictBool] = None
- is_research_device: Optional[StrictBool] = None
- link: Optional[StrictStr] = None
- page_url: Optional[StrictStr] = None
- project_types_order: Optional[StrictStr] = None
- projects: Optional[List[DFGInstituteProjectsInner]] = None
- root_id: Optional[StrictInt] = None
- root_name_de: Optional[StrictStr] = None
- root_name_en: Optional[StrictStr] = None
- __properties: ClassVar[List[str]] = ["address_city", "address_country_de", "address_country_en", "address_hidden", "address_postal_code_city", "address_street", "aku_id", "fetched_at", "id", "institute", "institute_category_key", "institute_category_label_de", "institute_category_label_en", "institute_id", "institute_name_de", "institute_name_en", "institute_postal_address", "institute_type_key", "institute_type_label_de", "institute_type_label_en", "is_dissolved", "is_research_device", "link", "page_url", "project_types_order", "projects", "root_id", "root_name_de", "root_name_en"]
+ """
+ address_city: StrictStr | None = None
+ address_country_de: StrictStr | None = None
+ address_country_en: StrictStr | None = None
+ address_hidden: StrictBool | None = None
+ address_postal_code_city: StrictStr | None = None
+ address_street: StrictStr | None = None
+ aku_id: StrictInt | None = None
+ fetched_at: datetime | None = None
+ id: StrictInt | None = None
+ institute: DFGInstituteInstitute | None = None
+ institute_category_key: StrictStr | None = None
+ institute_category_label_de: StrictStr | None = None
+ institute_category_label_en: StrictStr | None = None
+ institute_id: StrictInt | None = None
+ institute_name_de: StrictStr | None = None
+ institute_name_en: StrictStr | None = None
+ institute_postal_address: StrictStr | None = None
+ institute_type_key: StrictStr | None = None
+ institute_type_label_de: StrictStr | None = None
+ institute_type_label_en: StrictStr | None = None
+ is_dissolved: StrictBool | None = None
+ is_research_device: StrictBool | None = None
+ link: StrictStr | None = None
+ page_url: StrictStr | None = None
+ project_types_order: StrictStr | None = None
+ projects: list[DFGInstituteProjectsInner] | None = None
+ root_id: StrictInt | None = None
+ root_name_de: StrictStr | None = None
+ root_name_en: StrictStr | None = None
+ __properties: ClassVar[list[str]] = ["address_city", "address_country_de", "address_country_en", "address_hidden", "address_postal_code_city", "address_street", "aku_id", "fetched_at", "id", "institute", "institute_category_key", "institute_category_label_de", "institute_category_label_en", "institute_id", "institute_name_de", "institute_name_en", "institute_postal_address", "institute_type_key", "institute_type_label_de", "institute_type_label_en", "is_dissolved", "is_research_device", "link", "page_url", "project_types_order", "projects", "root_id", "root_name_de", "root_name_en"]
model_config = ConfigDict(
validate_by_name=True,
@@ -78,11 +81,11 @@ class DFGInstitute(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of DFGInstitute from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -92,7 +95,7 @@ class DFGInstitute(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -113,7 +116,7 @@ class DFGInstitute(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of DFGInstitute from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/projects_dfg_v2/institute/dfg_institute_institute.py b/service/src/main/inse/models/projects_dfg_v2/institute/dfg_institute_institute.py
index a3bd17ef..1047b878 100644
--- a/service/src/main/inse/models/projects_dfg_v2/institute/dfg_institute_institute.py
+++ b/service/src/main/inse/models/projects_dfg_v2/institute/dfg_institute_institute.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
DFG Institutes API
@@ -9,47 +8,47 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
+from typing import Any, ClassVar, Self
from pydantic import BaseModel, ConfigDict, StrictBool, StrictInt, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
from pydantic_core import to_jsonable_python
+
class DFGInstituteInstitute(BaseModel):
"""
DFGInstituteInstitute
- """ # noqa: E501
- address_city: Optional[StrictStr] = None
- address_country_de: Optional[StrictStr] = None
- address_country_en: Optional[StrictStr] = None
- address_hidden: Optional[StrictBool] = None
- address_postal_code_city: Optional[StrictStr] = None
- address_street: Optional[StrictStr] = None
- aku_id: Optional[StrictInt] = None
- institute_category_key: Optional[StrictStr] = None
- institute_category_label_de: Optional[StrictStr] = None
- institute_category_label_en: Optional[StrictStr] = None
- institute_id: Optional[StrictInt] = None
- institute_name_de: Optional[StrictStr] = None
- institute_name_en: Optional[StrictStr] = None
- institute_postal_address: Optional[StrictStr] = None
- institute_type_key: Optional[StrictStr] = None
- institute_type_label_de: Optional[StrictStr] = None
- institute_type_label_en: Optional[StrictStr] = None
- is_dissolved: Optional[StrictBool] = None
- is_research_device: Optional[StrictBool] = None
- root_id: Optional[StrictInt] = None
- root_name_de: Optional[StrictStr] = None
- root_name_en: Optional[StrictStr] = None
- __properties: ClassVar[List[str]] = ["address_city", "address_country_de", "address_country_en", "address_hidden", "address_postal_code_city", "address_street", "aku_id", "institute_category_key", "institute_category_label_de", "institute_category_label_en", "institute_id", "institute_name_de", "institute_name_en", "institute_postal_address", "institute_type_key", "institute_type_label_de", "institute_type_label_en", "is_dissolved", "is_research_device", "root_id", "root_name_de", "root_name_en"]
+ """
+ address_city: StrictStr | None = None
+ address_country_de: StrictStr | None = None
+ address_country_en: StrictStr | None = None
+ address_hidden: StrictBool | None = None
+ address_postal_code_city: StrictStr | None = None
+ address_street: StrictStr | None = None
+ aku_id: StrictInt | None = None
+ institute_category_key: StrictStr | None = None
+ institute_category_label_de: StrictStr | None = None
+ institute_category_label_en: StrictStr | None = None
+ institute_id: StrictInt | None = None
+ institute_name_de: StrictStr | None = None
+ institute_name_en: StrictStr | None = None
+ institute_postal_address: StrictStr | None = None
+ institute_type_key: StrictStr | None = None
+ institute_type_label_de: StrictStr | None = None
+ institute_type_label_en: StrictStr | None = None
+ is_dissolved: StrictBool | None = None
+ is_research_device: StrictBool | None = None
+ root_id: StrictInt | None = None
+ root_name_de: StrictStr | None = None
+ root_name_en: StrictStr | None = None
+ __properties: ClassVar[list[str]] = ["address_city", "address_country_de", "address_country_en", "address_hidden", "address_postal_code_city", "address_street", "aku_id", "institute_category_key", "institute_category_label_de", "institute_category_label_en", "institute_id", "institute_name_de", "institute_name_en", "institute_postal_address", "institute_type_key", "institute_type_label_de", "institute_type_label_en", "is_dissolved", "is_research_device", "root_id", "root_name_de", "root_name_en"]
model_config = ConfigDict(
validate_by_name=True,
@@ -68,11 +67,11 @@ class DFGInstituteInstitute(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of DFGInstituteInstitute from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -82,7 +81,7 @@ class DFGInstituteInstitute(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -93,7 +92,7 @@ class DFGInstituteInstitute(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of DFGInstituteInstitute from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/projects_dfg_v2/institute/dfg_institute_projects_inner.py b/service/src/main/inse/models/projects_dfg_v2/institute/dfg_institute_projects_inner.py
index 5dd635dd..72cb1032 100644
--- a/service/src/main/inse/models/projects_dfg_v2/institute/dfg_institute_projects_inner.py
+++ b/service/src/main/inse/models/projects_dfg_v2/institute/dfg_institute_projects_inner.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
DFG Institutes API
@@ -9,42 +8,42 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
+from typing import Any, ClassVar, Self
from pydantic import BaseModel, ConfigDict, StrictBool, StrictInt, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
from pydantic_core import to_jsonable_python
+
class DFGInstituteProjectsInner(BaseModel):
"""
DFGInstituteProjectsInner
- """ # noqa: E501
- funding_end: Optional[StrictInt] = None
- funding_period_de: Optional[StrictStr] = None
- funding_period_en: Optional[StrictStr] = None
- funding_start: Optional[StrictInt] = None
- funding_type_de: Optional[StrictStr] = None
- funding_type_en: Optional[StrictStr] = None
- funding_type_key: Optional[StrictStr] = None
- funding_type_sort: Optional[StrictStr] = None
- institute_ref_id: Optional[StrictInt] = None
- is_transfer_project: Optional[StrictBool] = None
- project_id: Optional[StrictInt] = None
- sort_criteria: Optional[StrictStr] = None
- sort_year: Optional[StrictStr] = None
- status_de: Optional[StrictStr] = None
- status_en: Optional[StrictStr] = None
- title_de: Optional[StrictStr] = None
- title_en: Optional[StrictStr] = None
- __properties: ClassVar[List[str]] = ["funding_end", "funding_period_de", "funding_period_en", "funding_start", "funding_type_de", "funding_type_en", "funding_type_key", "funding_type_sort", "institute_ref_id", "is_transfer_project", "project_id", "sort_criteria", "sort_year", "status_de", "status_en", "title_de", "title_en"]
+ """
+ funding_end: StrictInt | None = None
+ funding_period_de: StrictStr | None = None
+ funding_period_en: StrictStr | None = None
+ funding_start: StrictInt | None = None
+ funding_type_de: StrictStr | None = None
+ funding_type_en: StrictStr | None = None
+ funding_type_key: StrictStr | None = None
+ funding_type_sort: StrictStr | None = None
+ institute_ref_id: StrictInt | None = None
+ is_transfer_project: StrictBool | None = None
+ project_id: StrictInt | None = None
+ sort_criteria: StrictStr | None = None
+ sort_year: StrictStr | None = None
+ status_de: StrictStr | None = None
+ status_en: StrictStr | None = None
+ title_de: StrictStr | None = None
+ title_en: StrictStr | None = None
+ __properties: ClassVar[list[str]] = ["funding_end", "funding_period_de", "funding_period_en", "funding_start", "funding_type_de", "funding_type_en", "funding_type_key", "funding_type_sort", "institute_ref_id", "is_transfer_project", "project_id", "sort_criteria", "sort_year", "status_de", "status_en", "title_de", "title_en"]
model_config = ConfigDict(
validate_by_name=True,
@@ -63,11 +62,11 @@ class DFGInstituteProjectsInner(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of DFGInstituteProjectsInner from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -77,7 +76,7 @@ class DFGInstituteProjectsInner(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -88,7 +87,7 @@ class DFGInstituteProjectsInner(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of DFGInstituteProjectsInner from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/projects_dfg_v2/person/dfg_person.py b/service/src/main/inse/models/projects_dfg_v2/person/dfg_person.py
index 4cab237e..81711cdf 100644
--- a/service/src/main/inse/models/projects_dfg_v2/person/dfg_person.py
+++ b/service/src/main/inse/models/projects_dfg_v2/person/dfg_person.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
DFG Persons API
@@ -9,55 +8,59 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
-
from datetime import datetime
-from pydantic import BaseModel, ConfigDict, StrictBool, StrictInt, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from inse.models.projects_dfg_v2.person.dfg_person_awards_inner import DFGPersonAwardsInner
+from typing import Any, ClassVar, Self
+
+from inse.models.projects_dfg_v2.person.dfg_person_awards_inner import (
+ DFGPersonAwardsInner,
+)
from inse.models.projects_dfg_v2.person.dfg_person_person import DFGPersonPerson
-from inse.models.projects_dfg_v2.person.dfg_person_projects_inner import DFGPersonProjectsInner
-from typing import Optional, Set
-from typing_extensions import Self
+from inse.models.projects_dfg_v2.person.dfg_person_projects_inner import (
+ DFGPersonProjectsInner,
+)
+from pydantic import BaseModel, ConfigDict, StrictBool, StrictInt, StrictStr
from pydantic_core import to_jsonable_python
+
class DFGPerson(BaseModel):
"""
DFGPerson
- """ # noqa: E501
- address_country_de: Optional[StrictStr] = None
- address_country_en: Optional[StrictStr] = None
- address_hidden: Optional[StrictBool] = None
- address_postal_code_city: Optional[StrictStr] = None
- address_street: Optional[StrictStr] = None
- aku_id: Optional[StrictInt] = None
- award_types_order: Optional[StrictStr] = None
- awards: Optional[List[DFGPersonAwardsInner]] = None
- fetched_at: Optional[datetime] = None
- full_name: Optional[StrictStr] = None
- id: Optional[StrictInt] = None
- institute_id: Optional[StrictInt] = None
- institute_name_de: Optional[StrictStr] = None
- institute_name_en: Optional[StrictStr] = None
- institute_postal_address: Optional[StrictStr] = None
- is_deceased: Optional[StrictBool] = None
- link: Optional[StrictStr] = None
- orcid_id: Optional[StrictStr] = None
- page_url: Optional[StrictStr] = None
- person: Optional[DFGPersonPerson] = None
- person_id: Optional[StrictInt] = None
- project_types_order: Optional[StrictStr] = None
- projects: Optional[List[DFGPersonProjectsInner]] = None
- root_id: Optional[StrictInt] = None
- root_name_de: Optional[StrictStr] = None
- root_name_en: Optional[StrictStr] = None
- __properties: ClassVar[List[str]] = ["address_country_de", "address_country_en", "address_hidden", "address_postal_code_city", "address_street", "aku_id", "award_types_order", "awards", "fetched_at", "full_name", "id", "institute_id", "institute_name_de", "institute_name_en", "institute_postal_address", "is_deceased", "link", "orcid_id", "page_url", "person", "person_id", "project_types_order", "projects", "root_id", "root_name_de", "root_name_en"]
+ """
+ address_country_de: StrictStr | None = None
+ address_country_en: StrictStr | None = None
+ address_hidden: StrictBool | None = None
+ address_postal_code_city: StrictStr | None = None
+ address_street: StrictStr | None = None
+ aku_id: StrictInt | None = None
+ award_types_order: StrictStr | None = None
+ awards: list[DFGPersonAwardsInner] | None = None
+ fetched_at: datetime | None = None
+ full_name: StrictStr | None = None
+ id: StrictInt | None = None
+ institute_id: StrictInt | None = None
+ institute_name_de: StrictStr | None = None
+ institute_name_en: StrictStr | None = None
+ institute_postal_address: StrictStr | None = None
+ is_deceased: StrictBool | None = None
+ link: StrictStr | None = None
+ orcid_id: StrictStr | None = None
+ page_url: StrictStr | None = None
+ person: DFGPersonPerson | None = None
+ person_id: StrictInt | None = None
+ project_types_order: StrictStr | None = None
+ projects: list[DFGPersonProjectsInner] | None = None
+ root_id: StrictInt | None = None
+ root_name_de: StrictStr | None = None
+ root_name_en: StrictStr | None = None
+ __properties: ClassVar[list[str]] = ["address_country_de", "address_country_en", "address_hidden", "address_postal_code_city", "address_street", "aku_id", "award_types_order", "awards", "fetched_at", "full_name", "id", "institute_id", "institute_name_de", "institute_name_en", "institute_postal_address", "is_deceased", "link", "orcid_id", "page_url", "person", "person_id", "project_types_order", "projects", "root_id", "root_name_de", "root_name_en"]
model_config = ConfigDict(
validate_by_name=True,
@@ -76,11 +79,11 @@ class DFGPerson(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of DFGPerson from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -90,7 +93,7 @@ class DFGPerson(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -118,7 +121,7 @@ class DFGPerson(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of DFGPerson from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/projects_dfg_v2/person/dfg_person_awards_inner.py b/service/src/main/inse/models/projects_dfg_v2/person/dfg_person_awards_inner.py
index 6d64c699..a3c7c140 100644
--- a/service/src/main/inse/models/projects_dfg_v2/person/dfg_person_awards_inner.py
+++ b/service/src/main/inse/models/projects_dfg_v2/person/dfg_person_awards_inner.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
DFG Persons API
@@ -9,40 +8,40 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
+from typing import Any, ClassVar, Self
from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
from pydantic_core import to_jsonable_python
+
class DFGPersonAwardsInner(BaseModel):
"""
DFGPersonAwardsInner
- """ # noqa: E501
- award_group_key: Optional[StrictStr] = None
- award_id: Optional[StrictInt] = None
- award_key: Optional[StrictStr] = None
- award_label_de: Optional[StrictStr] = None
- award_label_en: Optional[StrictStr] = None
- person_ref_id: Optional[StrictInt] = None
- pseudo_project_id: Optional[StrictInt] = None
- sort_criteria: Optional[StrictStr] = None
- text_de: Optional[StrictStr] = None
- text_en: Optional[StrictStr] = None
- title_de: Optional[StrictStr] = None
- title_en: Optional[StrictStr] = None
- url_de: Optional[StrictStr] = None
- url_en: Optional[StrictStr] = None
- year: Optional[StrictInt] = None
- __properties: ClassVar[List[str]] = ["award_group_key", "award_id", "award_key", "award_label_de", "award_label_en", "person_ref_id", "pseudo_project_id", "sort_criteria", "text_de", "text_en", "title_de", "title_en", "url_de", "url_en", "year"]
+ """
+ award_group_key: StrictStr | None = None
+ award_id: StrictInt | None = None
+ award_key: StrictStr | None = None
+ award_label_de: StrictStr | None = None
+ award_label_en: StrictStr | None = None
+ person_ref_id: StrictInt | None = None
+ pseudo_project_id: StrictInt | None = None
+ sort_criteria: StrictStr | None = None
+ text_de: StrictStr | None = None
+ text_en: StrictStr | None = None
+ title_de: StrictStr | None = None
+ title_en: StrictStr | None = None
+ url_de: StrictStr | None = None
+ url_en: StrictStr | None = None
+ year: StrictInt | None = None
+ __properties: ClassVar[list[str]] = ["award_group_key", "award_id", "award_key", "award_label_de", "award_label_en", "person_ref_id", "pseudo_project_id", "sort_criteria", "text_de", "text_en", "title_de", "title_en", "url_de", "url_en", "year"]
model_config = ConfigDict(
validate_by_name=True,
@@ -61,11 +60,11 @@ class DFGPersonAwardsInner(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of DFGPersonAwardsInner from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -75,7 +74,7 @@ class DFGPersonAwardsInner(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -86,7 +85,7 @@ class DFGPersonAwardsInner(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of DFGPersonAwardsInner from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/projects_dfg_v2/person/dfg_person_person.py b/service/src/main/inse/models/projects_dfg_v2/person/dfg_person_person.py
index e9517466..09752404 100644
--- a/service/src/main/inse/models/projects_dfg_v2/person/dfg_person_person.py
+++ b/service/src/main/inse/models/projects_dfg_v2/person/dfg_person_person.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
DFG Persons API
@@ -9,42 +8,42 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
+from typing import Any, ClassVar, Self
from pydantic import BaseModel, ConfigDict, StrictBool, StrictInt, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
from pydantic_core import to_jsonable_python
+
class DFGPersonPerson(BaseModel):
"""
DFGPersonPerson
- """ # noqa: E501
- address_country_de: Optional[StrictStr] = None
- address_country_en: Optional[StrictStr] = None
- address_hidden: Optional[StrictBool] = None
- address_postal_code_city: Optional[StrictStr] = None
- address_street: Optional[StrictStr] = None
- aku_id: Optional[StrictInt] = None
- full_name: Optional[StrictStr] = None
- institute_id: Optional[StrictInt] = None
- institute_name_de: Optional[StrictStr] = None
- institute_name_en: Optional[StrictStr] = None
- institute_postal_address: Optional[StrictStr] = None
- is_deceased: Optional[StrictBool] = None
- orcid_id: Optional[StrictStr] = None
- person_id: Optional[StrictInt] = None
- root_id: Optional[StrictInt] = None
- root_name_de: Optional[StrictStr] = None
- root_name_en: Optional[StrictStr] = None
- __properties: ClassVar[List[str]] = ["address_country_de", "address_country_en", "address_hidden", "address_postal_code_city", "address_street", "aku_id", "full_name", "institute_id", "institute_name_de", "institute_name_en", "institute_postal_address", "is_deceased", "orcid_id", "person_id", "root_id", "root_name_de", "root_name_en"]
+ """
+ address_country_de: StrictStr | None = None
+ address_country_en: StrictStr | None = None
+ address_hidden: StrictBool | None = None
+ address_postal_code_city: StrictStr | None = None
+ address_street: StrictStr | None = None
+ aku_id: StrictInt | None = None
+ full_name: StrictStr | None = None
+ institute_id: StrictInt | None = None
+ institute_name_de: StrictStr | None = None
+ institute_name_en: StrictStr | None = None
+ institute_postal_address: StrictStr | None = None
+ is_deceased: StrictBool | None = None
+ orcid_id: StrictStr | None = None
+ person_id: StrictInt | None = None
+ root_id: StrictInt | None = None
+ root_name_de: StrictStr | None = None
+ root_name_en: StrictStr | None = None
+ __properties: ClassVar[list[str]] = ["address_country_de", "address_country_en", "address_hidden", "address_postal_code_city", "address_street", "aku_id", "full_name", "institute_id", "institute_name_de", "institute_name_en", "institute_postal_address", "is_deceased", "orcid_id", "person_id", "root_id", "root_name_de", "root_name_en"]
model_config = ConfigDict(
validate_by_name=True,
@@ -63,11 +62,11 @@ class DFGPersonPerson(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of DFGPersonPerson from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -77,7 +76,7 @@ class DFGPersonPerson(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -88,7 +87,7 @@ class DFGPersonPerson(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of DFGPersonPerson from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/projects_dfg_v2/person/dfg_person_projects_inner.py b/service/src/main/inse/models/projects_dfg_v2/person/dfg_person_projects_inner.py
index 6c5349af..0307ffc0 100644
--- a/service/src/main/inse/models/projects_dfg_v2/person/dfg_person_projects_inner.py
+++ b/service/src/main/inse/models/projects_dfg_v2/person/dfg_person_projects_inner.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
DFG Persons API
@@ -9,46 +8,46 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
+from typing import Any, ClassVar, Self
from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
from pydantic_core import to_jsonable_python
+
class DFGPersonProjectsInner(BaseModel):
"""
DFGPersonProjectsInner
- """ # noqa: E501
- funding_end: Optional[StrictInt] = None
- funding_period_de: Optional[StrictStr] = None
- funding_period_en: Optional[StrictStr] = None
- funding_start: Optional[StrictInt] = None
- funding_type_de: Optional[StrictStr] = None
- funding_type_en: Optional[StrictStr] = None
- funding_type_key: Optional[StrictStr] = None
- participants_de: Optional[StrictStr] = None
- participants_en: Optional[StrictStr] = None
- person_ref_id: Optional[StrictInt] = None
- project_id: Optional[StrictInt] = None
- role_key: Optional[StrictStr] = None
- role_label_de: Optional[StrictStr] = None
- role_label_en: Optional[StrictStr] = None
- role_sort: Optional[StrictStr] = None
- sort_criteria: Optional[StrictStr] = None
- sort_year: Optional[StrictStr] = None
- status_de: Optional[StrictStr] = None
- status_en: Optional[StrictStr] = None
- title_de: Optional[StrictStr] = None
- title_en: Optional[StrictStr] = None
- __properties: ClassVar[List[str]] = ["funding_end", "funding_period_de", "funding_period_en", "funding_start", "funding_type_de", "funding_type_en", "funding_type_key", "participants_de", "participants_en", "person_ref_id", "project_id", "role_key", "role_label_de", "role_label_en", "role_sort", "sort_criteria", "sort_year", "status_de", "status_en", "title_de", "title_en"]
+ """
+ funding_end: StrictInt | None = None
+ funding_period_de: StrictStr | None = None
+ funding_period_en: StrictStr | None = None
+ funding_start: StrictInt | None = None
+ funding_type_de: StrictStr | None = None
+ funding_type_en: StrictStr | None = None
+ funding_type_key: StrictStr | None = None
+ participants_de: StrictStr | None = None
+ participants_en: StrictStr | None = None
+ person_ref_id: StrictInt | None = None
+ project_id: StrictInt | None = None
+ role_key: StrictStr | None = None
+ role_label_de: StrictStr | None = None
+ role_label_en: StrictStr | None = None
+ role_sort: StrictStr | None = None
+ sort_criteria: StrictStr | None = None
+ sort_year: StrictStr | None = None
+ status_de: StrictStr | None = None
+ status_en: StrictStr | None = None
+ title_de: StrictStr | None = None
+ title_en: StrictStr | None = None
+ __properties: ClassVar[list[str]] = ["funding_end", "funding_period_de", "funding_period_en", "funding_start", "funding_type_de", "funding_type_en", "funding_type_key", "participants_de", "participants_en", "person_ref_id", "project_id", "role_key", "role_label_de", "role_label_en", "role_sort", "sort_criteria", "sort_year", "status_de", "status_en", "title_de", "title_en"]
model_config = ConfigDict(
validate_by_name=True,
@@ -67,11 +66,11 @@ class DFGPersonProjectsInner(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of DFGPersonProjectsInner from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -81,7 +80,7 @@ class DFGPersonProjectsInner(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -92,7 +91,7 @@ class DFGPersonProjectsInner(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of DFGPersonProjectsInner from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/projects_dfg_v2/project/dfg_project.py b/service/src/main/inse/models/projects_dfg_v2/project/dfg_project.py
index 1fa929ec..8ae70f97 100644
--- a/service/src/main/inse/models/projects_dfg_v2/project/dfg_project.py
+++ b/service/src/main/inse/models/projects_dfg_v2/project/dfg_project.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
DFG Projects API
@@ -9,77 +8,89 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
-
from datetime import datetime
-from pydantic import BaseModel, ConfigDict, StrictBool, StrictInt, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from inse.models.projects_dfg_v2.project.dfg_project_fachgebiete_inner import DFGProjectFachgebieteInner
-from inse.models.projects_dfg_v2.project.dfg_project_institutions_inner import DFGProjectInstitutionsInner
-from inse.models.projects_dfg_v2.project.dfg_project_persons_inner import DFGProjectPersonsInner
+from typing import Any, ClassVar, Self
+
+from inse.models.openalex.topic import Topic, TopicDomain, TopicField, TopicSubfield
+from inse.models.projects_dfg_v2.project.dfg_project_fachgebiete_inner import (
+ DFGProjectFachgebieteInner,
+)
+from inse.models.projects_dfg_v2.project.dfg_project_institutions_inner import (
+ DFGProjectInstitutionsInner,
+)
+from inse.models.projects_dfg_v2.project.dfg_project_persons_inner import (
+ DFGProjectPersonsInner,
+)
from inse.models.projects_dfg_v2.project.dfg_project_project import DFGProjectProject
-from inse.models.projects_dfg_v2.project.dfg_project_publications_inner import DFGProjectPublicationsInner
-from inse.models.projects_dfg_v2.project.dfg_project_subprojects_inner import DFGProjectSubprojectsInner
-from typing import Optional, Set
-from typing_extensions import Self
+from inse.models.projects_dfg_v2.project.dfg_project_publications_inner import (
+ DFGProjectPublicationsInner,
+)
+from inse.models.projects_dfg_v2.project.dfg_project_subprojects_inner import (
+ DFGProjectSubprojectsInner,
+)
+from pydantic import BaseModel, ConfigDict, StrictBool, StrictInt, StrictStr
from pydantic_core import to_jsonable_python
+
class DFGProject(BaseModel):
"""
DFGProject
- """ # noqa: E501
- abstract_de: Optional[StrictStr] = None
- abstract_en: Optional[StrictStr] = None
- equipment_group: Optional[StrictStr] = None
- equipment_name: Optional[StrictStr] = None
- external_link: Optional[StrictStr] = None
- fachgebiete: Optional[List[DFGProjectFachgebieteInner]] = None
- fetched_at: Optional[datetime] = None
- final_report_abstract_de: Optional[StrictStr] = None
- final_report_abstract_en: Optional[StrictStr] = None
- funding_end: Optional[StrictInt] = None
- funding_period_de: Optional[StrictStr] = None
- funding_period_en: Optional[StrictStr] = None
- funding_start: Optional[StrictInt] = None
- funding_type_de: Optional[StrictStr] = None
- funding_type_en: Optional[StrictStr] = None
- funding_type_key: Optional[StrictStr] = None
- funding_type_sort: Optional[StrictStr] = None
- id: Optional[StrictInt] = None
- institution_roles_order: Optional[StrictStr] = None
- institutions: Optional[List[DFGProjectInstitutionsInner]] = None
- international_relation_de: Optional[StrictStr] = None
- international_relation_en: Optional[StrictStr] = None
- is_transfer_project: Optional[StrictBool] = None
- link: Optional[StrictStr] = None
- page_url: Optional[StrictStr] = None
- parent_project_id: Optional[StrictInt] = None
- parent_title_de: Optional[StrictStr] = None
- parent_title_en: Optional[StrictStr] = None
- person_roles_order: Optional[StrictStr] = None
- persons: Optional[List[DFGProjectPersonsInner]] = None
- project: Optional[DFGProjectProject] = None
- project_id: Optional[StrictInt] = None
- project_identifier_de: Optional[StrictStr] = None
- project_identifier_en: Optional[StrictStr] = None
- publications: Optional[List[DFGProjectPublicationsInner]] = None
- subject_area_de: Optional[StrictStr] = None
- subject_area_en: Optional[StrictStr] = None
- subject_classifications: Optional[DFGProjectFachgebieteInner] = None
- subproject_order: Optional[StrictStr] = None
- subprojects: Optional[List[DFGProjectSubprojectsInner]] = None
- template_type: Optional[StrictStr] = None
- title_de: Optional[StrictStr] = None
- title_en: Optional[StrictStr] = None
- website_html_de: Optional[StrictStr] = None
- website_html_en: Optional[StrictStr] = None
- __properties: ClassVar[List[str]] = ["abstract_de", "abstract_en", "equipment_group", "equipment_name", "external_link", "fachgebiete", "fetched_at", "final_report_abstract_de", "final_report_abstract_en", "funding_end", "funding_period_de", "funding_period_en", "funding_start", "funding_type_de", "funding_type_en", "funding_type_key", "funding_type_sort", "id", "institution_roles_order", "institutions", "international_relation_de", "international_relation_en", "is_transfer_project", "link", "page_url", "parent_project_id", "parent_title_de", "parent_title_en", "person_roles_order", "persons", "project", "project_id", "project_identifier_de", "project_identifier_en", "publications", "subject_area_de", "subject_area_en", "subject_classifications", "subproject_order", "subprojects", "template_type", "title_de", "title_en", "website_html_de", "website_html_en"]
+ """
+ abstract_de: StrictStr | None = None
+ abstract_en: StrictStr | None = None
+ equipment_group: StrictStr | None = None
+ equipment_name: StrictStr | None = None
+ external_link: StrictStr | None = None
+ fachgebiete: list[DFGProjectFachgebieteInner] | None = None
+ fetched_at: datetime | None = None
+ final_report_abstract_de: StrictStr | None = None
+ final_report_abstract_en: StrictStr | None = None
+ funding_end: StrictInt | None = None
+ funding_period_de: StrictStr | None = None
+ funding_period_en: StrictStr | None = None
+ funding_start: StrictInt | None = None
+ funding_type_de: StrictStr | None = None
+ funding_type_en: StrictStr | None = None
+ funding_type_key: StrictStr | None = None
+ funding_type_sort: StrictStr | None = None
+ id: StrictInt | None = None
+ institution_roles_order: list[StrictStr] | None = None
+ institutions: list[DFGProjectInstitutionsInner] | None = None
+ international_relation_de: StrictStr | None = None
+ international_relation_en: StrictStr | None = None
+ is_transfer_project: StrictBool | None = None
+ link: StrictStr | None = None
+ page_url: StrictStr | None = None
+ parent_project_id: StrictInt | None = None
+ parent_title_de: StrictStr | None = None
+ parent_title_en: StrictStr | None = None
+ person_roles_order: list[StrictStr] | None = None
+ persons: list[DFGProjectPersonsInner] | None = None
+ project: DFGProjectProject | None = None
+ project_id: StrictInt | None = None
+ project_identifier_de: StrictStr | None = None
+ project_identifier_en: StrictStr | None = None
+ publications: list[DFGProjectPublicationsInner] | None = None
+ subject_area_de: StrictStr | None = None
+ subject_area_en: StrictStr | None = None
+ subject_classifications: DFGProjectFachgebieteInner | None = None
+ subproject_order: list[StrictStr] | None = None
+ subprojects: list[DFGProjectSubprojectsInner] | None = None
+ template_type: StrictStr | None = None
+ title_de: StrictStr | None = None
+ title_en: StrictStr | None = None
+ website_html_de: StrictStr | None = None
+ website_html_en: StrictStr | None = None
+ topics: list[Topic] | None = None
+ __properties: ClassVar[list[str]] = ["abstract_de", "abstract_en", "equipment_group", "equipment_name", "external_link", "fachgebiete", "fetched_at", "final_report_abstract_de", "final_report_abstract_en", "funding_end", "funding_period_de", "funding_period_en", "funding_start", "funding_type_de", "funding_type_en", "funding_type_key", "funding_type_sort", "id", "institution_roles_order", "institutions", "international_relation_de", "international_relation_en", "is_transfer_project", "link", "page_url", "parent_project_id", "parent_title_de", "parent_title_en", "person_roles_order", "persons", "project", "project_id", "project_identifier_de", "project_identifier_en", "publications", "subject_area_de", "subject_area_en", "subject_classifications", "subproject_order", "subprojects", "template_type", "title_de", "title_en", "website_html_de", "website_html_en"]
model_config = ConfigDict(
validate_by_name=True,
@@ -98,11 +109,11 @@ class DFGProject(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of DFGProject from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -112,7 +123,7 @@ class DFGProject(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -164,13 +175,22 @@ class DFGProject(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of DFGProject from a dict"""
if obj is None:
return None
-
+
+ topics_raw = obj.get("topics") or []
if not isinstance(obj, dict):
return cls.model_validate(obj)
+ topics = None
+ if isinstance(topics_raw, list) and topics_raw:
+
+ sorted_topics_raw = sorted(
+ (t for t in topics_raw if isinstance(t, dict)),
+ key=lambda t: t.get("rank") if t.get("rank") is not None else float("inf"),
+ )
+ topics = [cls._topic_from_match(t) for t in sorted_topics_raw]
_obj = cls.model_validate({
"abstract_de": obj.get("abstract_de"),
@@ -217,8 +237,29 @@ class DFGProject(BaseModel):
"title_de": obj.get("title_de"),
"title_en": obj.get("title_en"),
"website_html_de": obj.get("website_html_de"),
- "website_html_en": obj.get("website_html_en")
+ "website_html_en": obj.get("website_html_en"),
+ "topics": topics,
})
return _obj
+
+ @staticmethod
+ def _topic_from_match(match: dict[str, Any]) -> Topic:
+ """Builds a Topic model from a flattened topic_match dict.
+ """
+ domain_name = match.get("domain")
+ field_name = match.get("field")
+ subfield_name = match.get("subfield")
+
+ domain = TopicDomain(display_name=domain_name) if domain_name else None
+ field = TopicField(display_name=field_name) if field_name else None
+ subfield = TopicSubfield(display_name=subfield_name) if subfield_name else None
+
+ return Topic(
+ id=match.get("topic_id"),
+ display_name=match.get("topic_display_name"),
+ domain=domain,
+ field=field,
+ subfield=subfield,
+ )
diff --git a/service/src/main/inse/models/projects_dfg_v2/project/dfg_project_fachgebiete_inner.py b/service/src/main/inse/models/projects_dfg_v2/project/dfg_project_fachgebiete_inner.py
index 1ca663c5..4a57aa59 100644
--- a/service/src/main/inse/models/projects_dfg_v2/project/dfg_project_fachgebiete_inner.py
+++ b/service/src/main/inse/models/projects_dfg_v2/project/dfg_project_fachgebiete_inner.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
DFG Projects API
@@ -9,33 +8,33 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
+from typing import Any, ClassVar, Self
from pydantic import BaseModel, ConfigDict, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
from pydantic_core import to_jsonable_python
+
class DFGProjectFachgebieteInner(BaseModel):
"""
DFGProjectFachgebieteInner
- """ # noqa: E501
- fach: Optional[StrictStr] = None
- fach_code: Optional[StrictStr] = None
- fachgebiet: Optional[StrictStr] = None
- fachgebiet_code: Optional[StrictStr] = None
- fachkollegium: Optional[StrictStr] = None
- fachkollegium_code: Optional[StrictStr] = None
- wissenschaftsbereich: Optional[StrictStr] = None
- wissenschaftsbereich_code: Optional[StrictStr] = None
- __properties: ClassVar[List[str]] = ["fach", "fach_code", "fachgebiet", "fachgebiet_code", "fachkollegium", "fachkollegium_code", "wissenschaftsbereich", "wissenschaftsbereich_code"]
+ """
+ fach: StrictStr | None = None
+ fach_code: StrictStr | None = None
+ fachgebiet: StrictStr | None = None
+ fachgebiet_code: StrictStr | None = None
+ fachkollegium: StrictStr | None = None
+ fachkollegium_code: StrictStr | None = None
+ wissenschaftsbereich: StrictStr | None = None
+ wissenschaftsbereich_code: StrictStr | None = None
+ __properties: ClassVar[list[str]] = ["fach", "fach_code", "fachgebiet", "fachgebiet_code", "fachkollegium", "fachkollegium_code", "wissenschaftsbereich", "wissenschaftsbereich_code"]
model_config = ConfigDict(
validate_by_name=True,
@@ -54,11 +53,11 @@ class DFGProjectFachgebieteInner(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of DFGProjectFachgebieteInner from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -68,7 +67,7 @@ class DFGProjectFachgebieteInner(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -79,7 +78,7 @@ class DFGProjectFachgebieteInner(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of DFGProjectFachgebieteInner from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/projects_dfg_v2/project/dfg_project_institutions_inner.py b/service/src/main/inse/models/projects_dfg_v2/project/dfg_project_institutions_inner.py
index d9f4dd02..fb20679a 100644
--- a/service/src/main/inse/models/projects_dfg_v2/project/dfg_project_institutions_inner.py
+++ b/service/src/main/inse/models/projects_dfg_v2/project/dfg_project_institutions_inner.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
DFG Projects API
@@ -9,41 +8,41 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
-
from datetime import datetime
+from typing import Any, ClassVar, Self
+
from pydantic import BaseModel, ConfigDict, StrictBool, StrictInt, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
from pydantic_core import to_jsonable_python
+
class DFGProjectInstitutionsInner(BaseModel):
"""
DFGProjectInstitutionsInner
- """ # noqa: E501
- dissolution_date: Optional[datetime] = None
- has_detail_page: Optional[StrictBool] = None
- institute_id: Optional[StrictInt] = None
- institute_name_de: Optional[StrictStr] = None
- institute_name_en: Optional[StrictStr] = None
- is_dissolved: Optional[StrictBool] = None
- is_head_display: Optional[StrictBool] = None
- project_ref_id: Optional[StrictInt] = None
- role_group_label_de: Optional[StrictStr] = None
- role_key: Optional[StrictStr] = None
- role_label_de: Optional[StrictStr] = None
- role_label_en: Optional[StrictStr] = None
- role_sort: Optional[StrictStr] = None
- sort_criteria: Optional[StrictStr] = None
- sort_name: Optional[StrictStr] = None
- __properties: ClassVar[List[str]] = ["dissolution_date", "has_detail_page", "institute_id", "institute_name_de", "institute_name_en", "is_dissolved", "is_head_display", "project_ref_id", "role_group_label_de", "role_key", "role_label_de", "role_label_en", "role_sort", "sort_criteria", "sort_name"]
+ """
+ dissolution_date: datetime | None = None
+ has_detail_page: StrictBool | None = None
+ institute_id: StrictInt | None = None
+ institute_name_de: StrictStr | None = None
+ institute_name_en: StrictStr | None = None
+ is_dissolved: StrictBool | None = None
+ is_head_display: StrictBool | None = None
+ project_ref_id: StrictInt | None = None
+ role_group_label_de: StrictStr | None = None
+ role_key: StrictStr | None = None
+ role_label_de: StrictStr | None = None
+ role_label_en: StrictStr | None = None
+ role_sort: StrictStr | None = None
+ sort_criteria: StrictStr | None = None
+ sort_name: StrictStr | None = None
+ __properties: ClassVar[list[str]] = ["dissolution_date", "has_detail_page", "institute_id", "institute_name_de", "institute_name_en", "is_dissolved", "is_head_display", "project_ref_id", "role_group_label_de", "role_key", "role_label_de", "role_label_en", "role_sort", "sort_criteria", "sort_name"]
model_config = ConfigDict(
validate_by_name=True,
@@ -62,11 +61,11 @@ class DFGProjectInstitutionsInner(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of DFGProjectInstitutionsInner from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -76,7 +75,7 @@ class DFGProjectInstitutionsInner(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -87,7 +86,7 @@ class DFGProjectInstitutionsInner(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of DFGProjectInstitutionsInner from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/projects_dfg_v2/project/dfg_project_persons_inner.py b/service/src/main/inse/models/projects_dfg_v2/project/dfg_project_persons_inner.py
index fe4596e5..e427f903 100644
--- a/service/src/main/inse/models/projects_dfg_v2/project/dfg_project_persons_inner.py
+++ b/service/src/main/inse/models/projects_dfg_v2/project/dfg_project_persons_inner.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
DFG Projects API
@@ -9,41 +8,41 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
+from typing import Any, ClassVar, Self
from pydantic import BaseModel, ConfigDict, StrictBool, StrictInt, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
from pydantic_core import to_jsonable_python
+
class DFGProjectPersonsInner(BaseModel):
"""
DFGProjectPersonsInner
- """ # noqa: E501
- affiliation_de: Optional[StrictStr] = None
- affiliation_en: Optional[StrictStr] = None
- award_text_de: Optional[StrictStr] = None
- award_text_en: Optional[StrictStr] = None
- full_name: Optional[StrictStr] = None
- is_deceased: Optional[StrictBool] = None
- is_head_display: Optional[StrictBool] = None
- person_id: Optional[StrictInt] = None
- project_ref_id: Optional[StrictInt] = None
- role_group_label_de: Optional[StrictStr] = None
- role_key: Optional[StrictStr] = None
- role_label_de: Optional[StrictStr] = None
- role_label_en: Optional[StrictStr] = None
- role_sort: Optional[StrictStr] = None
- sort_criteria: Optional[StrictStr] = None
- sort_name: Optional[StrictStr] = None
- __properties: ClassVar[List[str]] = ["affiliation_de", "affiliation_en", "award_text_de", "award_text_en", "full_name", "is_deceased", "is_head_display", "person_id", "project_ref_id", "role_group_label_de", "role_key", "role_label_de", "role_label_en", "role_sort", "sort_criteria", "sort_name"]
+ """
+ affiliation_de: StrictStr | None = None
+ affiliation_en: StrictStr | None = None
+ award_text_de: StrictStr | None = None
+ award_text_en: StrictStr | None = None
+ full_name: StrictStr | None = None
+ is_deceased: StrictBool | None = None
+ is_head_display: StrictBool | None = None
+ person_id: StrictInt | None = None
+ project_ref_id: StrictInt | None = None
+ role_group_label_de: StrictStr | None = None
+ role_key: StrictStr | None = None
+ role_label_de: StrictStr | None = None
+ role_label_en: StrictStr | None = None
+ role_sort: StrictStr | None = None
+ sort_criteria: StrictStr | None = None
+ sort_name: StrictStr | None = None
+ __properties: ClassVar[list[str]] = ["affiliation_de", "affiliation_en", "award_text_de", "award_text_en", "full_name", "is_deceased", "is_head_display", "person_id", "project_ref_id", "role_group_label_de", "role_key", "role_label_de", "role_label_en", "role_sort", "sort_criteria", "sort_name"]
model_config = ConfigDict(
validate_by_name=True,
@@ -62,11 +61,11 @@ class DFGProjectPersonsInner(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of DFGProjectPersonsInner from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -76,7 +75,7 @@ class DFGProjectPersonsInner(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -87,7 +86,7 @@ class DFGProjectPersonsInner(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of DFGProjectPersonsInner from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/projects_dfg_v2/project/dfg_project_project.py b/service/src/main/inse/models/projects_dfg_v2/project/dfg_project_project.py
index 9a1b954f..38a2cb1d 100644
--- a/service/src/main/inse/models/projects_dfg_v2/project/dfg_project_project.py
+++ b/service/src/main/inse/models/projects_dfg_v2/project/dfg_project_project.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
DFG Projects API
@@ -9,56 +8,56 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
+from typing import Any, ClassVar, Self
from pydantic import BaseModel, ConfigDict, StrictBool, StrictInt, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
from pydantic_core import to_jsonable_python
+
class DFGProjectProject(BaseModel):
"""
DFGProjectProject
- """ # noqa: E501
- abstract_de: Optional[StrictStr] = None
- abstract_en: Optional[StrictStr] = None
- equipment_group: Optional[StrictStr] = None
- equipment_name: Optional[StrictStr] = None
- external_link: Optional[StrictStr] = None
- final_report_abstract_de: Optional[StrictStr] = None
- final_report_abstract_en: Optional[StrictStr] = None
- funding_end: Optional[StrictInt] = None
- funding_period_de: Optional[StrictStr] = None
- funding_period_en: Optional[StrictStr] = None
- funding_start: Optional[StrictInt] = None
- funding_type_de: Optional[StrictStr] = None
- funding_type_en: Optional[StrictStr] = None
- funding_type_key: Optional[StrictStr] = None
- funding_type_sort: Optional[StrictStr] = None
- international_relation_de: Optional[StrictStr] = None
- international_relation_en: Optional[StrictStr] = None
- is_transfer_project: Optional[StrictBool] = None
- parent_project_id: Optional[StrictInt] = None
- parent_title_de: Optional[StrictStr] = None
- parent_title_en: Optional[StrictStr] = None
- project_id: Optional[StrictInt] = None
- project_identifier_de: Optional[StrictStr] = None
- project_identifier_en: Optional[StrictStr] = None
- subject_area_de: Optional[StrictStr] = None
- subject_area_en: Optional[StrictStr] = None
- template_type: Optional[StrictStr] = None
- title_de: Optional[StrictStr] = None
- title_en: Optional[StrictStr] = None
- website_html_de: Optional[StrictStr] = None
- website_html_en: Optional[StrictStr] = None
- __properties: ClassVar[List[str]] = ["abstract_de", "abstract_en", "equipment_group", "equipment_name", "external_link", "final_report_abstract_de", "final_report_abstract_en", "funding_end", "funding_period_de", "funding_period_en", "funding_start", "funding_type_de", "funding_type_en", "funding_type_key", "funding_type_sort", "international_relation_de", "international_relation_en", "is_transfer_project", "parent_project_id", "parent_title_de", "parent_title_en", "project_id", "project_identifier_de", "project_identifier_en", "subject_area_de", "subject_area_en", "template_type", "title_de", "title_en", "website_html_de", "website_html_en"]
+ """
+ abstract_de: StrictStr | None = None
+ abstract_en: StrictStr | None = None
+ equipment_group: StrictStr | None = None
+ equipment_name: StrictStr | None = None
+ external_link: StrictStr | None = None
+ final_report_abstract_de: StrictStr | None = None
+ final_report_abstract_en: StrictStr | None = None
+ funding_end: StrictInt | None = None
+ funding_period_de: StrictStr | None = None
+ funding_period_en: StrictStr | None = None
+ funding_start: StrictInt | None = None
+ funding_type_de: StrictStr | None = None
+ funding_type_en: StrictStr | None = None
+ funding_type_key: StrictStr | None = None
+ funding_type_sort: StrictStr | None = None
+ international_relation_de: StrictStr | None = None
+ international_relation_en: StrictStr | None = None
+ is_transfer_project: StrictBool | None = None
+ parent_project_id: StrictInt | None = None
+ parent_title_de: StrictStr | None = None
+ parent_title_en: StrictStr | None = None
+ project_id: StrictInt | None = None
+ project_identifier_de: StrictStr | None = None
+ project_identifier_en: StrictStr | None = None
+ subject_area_de: StrictStr | None = None
+ subject_area_en: StrictStr | None = None
+ template_type: StrictStr | None = None
+ title_de: StrictStr | None = None
+ title_en: StrictStr | None = None
+ website_html_de: StrictStr | None = None
+ website_html_en: StrictStr | None = None
+ __properties: ClassVar[list[str]] = ["abstract_de", "abstract_en", "equipment_group", "equipment_name", "external_link", "final_report_abstract_de", "final_report_abstract_en", "funding_end", "funding_period_de", "funding_period_en", "funding_start", "funding_type_de", "funding_type_en", "funding_type_key", "funding_type_sort", "international_relation_de", "international_relation_en", "is_transfer_project", "parent_project_id", "parent_title_de", "parent_title_en", "project_id", "project_identifier_de", "project_identifier_en", "subject_area_de", "subject_area_en", "template_type", "title_de", "title_en", "website_html_de", "website_html_en"]
model_config = ConfigDict(
validate_by_name=True,
@@ -77,11 +76,11 @@ class DFGProjectProject(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of DFGProjectProject from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -91,7 +90,7 @@ class DFGProjectProject(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -102,7 +101,7 @@ class DFGProjectProject(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of DFGProjectProject from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/projects_dfg_v2/project/dfg_project_publications_inner.py b/service/src/main/inse/models/projects_dfg_v2/project/dfg_project_publications_inner.py
index 3f4cf32c..f1f525b0 100644
--- a/service/src/main/inse/models/projects_dfg_v2/project/dfg_project_publications_inner.py
+++ b/service/src/main/inse/models/projects_dfg_v2/project/dfg_project_publications_inner.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
DFG Projects API
@@ -9,32 +8,32 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
+from typing import Any, ClassVar, Self
from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
from pydantic_core import to_jsonable_python
+
class DFGProjectPublicationsInner(BaseModel):
"""
DFGProjectPublicationsInner
- """ # noqa: E501
- authors_editors: Optional[StrictStr] = None
- doi: Optional[StrictStr] = None
- project_ref_id: Optional[StrictInt] = None
- publication_id: Optional[StrictInt] = None
- publication_year: Optional[StrictInt] = None
- sort_key: Optional[StrictInt] = None
- title: Optional[StrictStr] = None
- __properties: ClassVar[List[str]] = ["authors_editors", "doi", "project_ref_id", "publication_id", "publication_year", "sort_key", "title"]
+ """
+ authors_editors: StrictStr | None = None
+ doi: StrictStr | None = None
+ project_ref_id: StrictInt | None = None
+ publication_id: StrictInt | None = None
+ publication_year: StrictInt | None = None
+ sort_key: StrictInt | None = None
+ title: StrictStr | None = None
+ __properties: ClassVar[list[str]] = ["authors_editors", "doi", "project_ref_id", "publication_id", "publication_year", "sort_key", "title"]
model_config = ConfigDict(
validate_by_name=True,
@@ -53,11 +52,11 @@ class DFGProjectPublicationsInner(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of DFGProjectPublicationsInner from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -67,7 +66,7 @@ class DFGProjectPublicationsInner(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -78,7 +77,7 @@ class DFGProjectPublicationsInner(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of DFGProjectPublicationsInner from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/projects_dfg_v2/project/dfg_project_subprojects_inner.py b/service/src/main/inse/models/projects_dfg_v2/project/dfg_project_subprojects_inner.py
index d7bf0801..8bb00c1f 100644
--- a/service/src/main/inse/models/projects_dfg_v2/project/dfg_project_subprojects_inner.py
+++ b/service/src/main/inse/models/projects_dfg_v2/project/dfg_project_subprojects_inner.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
DFG Projects API
@@ -9,47 +8,47 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
+from typing import Any, ClassVar, Self
from pydantic import BaseModel, ConfigDict, StrictBool, StrictInt, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
from pydantic_core import to_jsonable_python
+
class DFGProjectSubprojectsInner(BaseModel):
"""
DFGProjectSubprojectsInner
- """ # noqa: E501
- funding_end: Optional[StrictInt] = None
- funding_period_de: Optional[StrictStr] = None
- funding_period_en: Optional[StrictStr] = None
- funding_start: Optional[StrictInt] = None
- group_label_de: Optional[StrictStr] = None
- group_label_en: Optional[StrictStr] = None
- is_head_display: Optional[StrictBool] = None
- parent_project_id: Optional[StrictInt] = None
- person_first_names: Optional[StrictStr] = None
- person_id: Optional[StrictInt] = None
- person_last_name: Optional[StrictStr] = None
- role_group_label_de: Optional[StrictStr] = None
- role_key: Optional[StrictStr] = None
- role_label_de: Optional[StrictStr] = None
- short_title: Optional[StrictStr] = None
- sort_criteria: Optional[StrictStr] = None
- sort_key: Optional[StrictStr] = None
- status_de: Optional[StrictStr] = None
- status_en: Optional[StrictStr] = None
- subproject_id: Optional[StrictInt] = None
- title_de: Optional[StrictStr] = None
- title_en: Optional[StrictStr] = None
- __properties: ClassVar[List[str]] = ["funding_end", "funding_period_de", "funding_period_en", "funding_start", "group_label_de", "group_label_en", "is_head_display", "parent_project_id", "person_first_names", "person_id", "person_last_name", "role_group_label_de", "role_key", "role_label_de", "short_title", "sort_criteria", "sort_key", "status_de", "status_en", "subproject_id", "title_de", "title_en"]
+ """
+ funding_end: StrictInt | None = None
+ funding_period_de: StrictStr | None = None
+ funding_period_en: StrictStr | None = None
+ funding_start: StrictInt | None = None
+ group_label_de: StrictStr | None = None
+ group_label_en: StrictStr | None = None
+ is_head_display: StrictBool | None = None
+ parent_project_id: StrictInt | None = None
+ person_first_names: StrictStr | None = None
+ person_id: StrictInt | None = None
+ person_last_name: StrictStr | None = None
+ role_group_label_de: StrictStr | None = None
+ role_key: StrictStr | None = None
+ role_label_de: StrictStr | None = None
+ short_title: StrictStr | None = None
+ sort_criteria: StrictStr | None = None
+ sort_key: StrictStr | None = None
+ status_de: StrictStr | None = None
+ status_en: StrictStr | None = None
+ subproject_id: StrictInt | None = None
+ title_de: StrictStr | None = None
+ title_en: StrictStr | None = None
+ __properties: ClassVar[list[str]] = ["funding_end", "funding_period_de", "funding_period_en", "funding_start", "group_label_de", "group_label_en", "is_head_display", "parent_project_id", "person_first_names", "person_id", "person_last_name", "role_group_label_de", "role_key", "role_label_de", "short_title", "sort_criteria", "sort_key", "status_de", "status_en", "subproject_id", "title_de", "title_en"]
model_config = ConfigDict(
validate_by_name=True,
@@ -68,11 +67,11 @@ class DFGProjectSubprojectsInner(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of DFGProjectSubprojectsInner from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -82,7 +81,7 @@ class DFGProjectSubprojectsInner(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -93,7 +92,7 @@ class DFGProjectSubprojectsInner(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of DFGProjectSubprojectsInner from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/projects_eu/category_nested.py b/service/src/main/inse/models/projects_eu/category_nested.py
index 3bf4c794..33f3ad18 100644
--- a/service/src/main/inse/models/projects_eu/category_nested.py
+++ b/service/src/main/inse/models/projects_eu/category_nested.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
Projects EU All Index Backend Models
@@ -9,31 +8,33 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
+from typing import Any, ClassVar, Self
+from inse.models.projects_eu.display_code_splitted_nested import (
+ DisplayCodeSplittedNested,
+)
from pydantic import BaseModel, ConfigDict, Field, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from inse.models.projects_eu.display_code_splitted_nested import DisplayCodeSplittedNested
-from typing import Optional, Set
-from typing_extensions import Self
from pydantic_core import to_jsonable_python
+
class CategoryNested(BaseModel):
"""
First-level nested object for categories.
- """ # noqa: E501
- category: Optional[StrictStr] = None
- code: Optional[StrictStr] = None
- display_code: Optional[StrictStr] = Field(default=None, alias="displayCode")
- display_code_splitted: Optional[StrictStr] = Field(default=None, alias="displayCode_splitted")
- display_code_splitted_nested: Optional[List[DisplayCodeSplittedNested]] = Field(default=None, alias="displayCode_splitted_nested")
- __properties: ClassVar[List[str]] = ["category", "code", "displayCode", "displayCode_splitted", "displayCode_splitted_nested"]
+ """
+ category: StrictStr | None = None
+ code: StrictStr | None = None
+ display_code: StrictStr | None = Field(default=None, alias="displayCode")
+ display_code_splitted: StrictStr | None = Field(default=None, alias="displayCode_splitted")
+ display_code_splitted_nested: list[DisplayCodeSplittedNested] | None = Field(default=None, alias="displayCode_splitted_nested")
+ __properties: ClassVar[list[str]] = ["category", "code", "displayCode", "displayCode_splitted", "displayCode_splitted_nested"]
model_config = ConfigDict(
validate_by_name=True,
@@ -52,11 +53,11 @@ class CategoryNested(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of CategoryNested from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -66,7 +67,7 @@ class CategoryNested(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -84,7 +85,7 @@ class CategoryNested(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of CategoryNested from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/projects_eu/display_code_splitted_nested.py b/service/src/main/inse/models/projects_eu/display_code_splitted_nested.py
index d5b2c829..5eb5f50b 100644
--- a/service/src/main/inse/models/projects_eu/display_code_splitted_nested.py
+++ b/service/src/main/inse/models/projects_eu/display_code_splitted_nested.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
Projects EU All Index Backend Models
@@ -9,26 +8,26 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
+from typing import Any, ClassVar, Self
from pydantic import BaseModel, ConfigDict, Field, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
from pydantic_core import to_jsonable_python
+
class DisplayCodeSplittedNested(BaseModel):
"""
Second-level nested object inside categories.
- """ # noqa: E501
- single_display_code: Optional[StrictStr] = Field(default=None, alias="singleDisplayCode")
- __properties: ClassVar[List[str]] = ["singleDisplayCode"]
+ """
+ single_display_code: StrictStr | None = Field(default=None, alias="singleDisplayCode")
+ __properties: ClassVar[list[str]] = ["singleDisplayCode"]
model_config = ConfigDict(
validate_by_name=True,
@@ -47,11 +46,11 @@ class DisplayCodeSplittedNested(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of DisplayCodeSplittedNested from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -61,7 +60,7 @@ class DisplayCodeSplittedNested(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -72,7 +71,7 @@ class DisplayCodeSplittedNested(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of DisplayCodeSplittedNested from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/projects_eu/keyword_nested.py b/service/src/main/inse/models/projects_eu/keyword_nested.py
index 9b83f2f6..6c97b983 100644
--- a/service/src/main/inse/models/projects_eu/keyword_nested.py
+++ b/service/src/main/inse/models/projects_eu/keyword_nested.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
Projects EU All Index Backend Models
@@ -9,26 +8,26 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
+from typing import Any, ClassVar, Self
from pydantic import BaseModel, ConfigDict, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
from pydantic_core import to_jsonable_python
+
class KeywordNested(BaseModel):
"""
Nested object for individual keywords.
- """ # noqa: E501
- keyword: Optional[StrictStr] = None
- __properties: ClassVar[List[str]] = ["keyword"]
+ """
+ keyword: StrictStr | None = None
+ __properties: ClassVar[list[str]] = ["keyword"]
model_config = ConfigDict(
validate_by_name=True,
@@ -47,11 +46,11 @@ class KeywordNested(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of KeywordNested from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -61,7 +60,7 @@ class KeywordNested(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -72,7 +71,7 @@ class KeywordNested(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of KeywordNested from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/projects_eu/organization_nested.py b/service/src/main/inse/models/projects_eu/organization_nested.py
index 3c87569b..54890b5a 100644
--- a/service/src/main/inse/models/projects_eu/organization_nested.py
+++ b/service/src/main/inse/models/projects_eu/organization_nested.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
Projects EU All Index Backend Models
@@ -9,31 +8,31 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
+from typing import Any, ClassVar, Self
from pydantic import BaseModel, ConfigDict, Field, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
from pydantic_core import to_jsonable_python
+
class OrganizationNested(BaseModel):
"""
Nested object for project organizations.
- """ # noqa: E501
- ec_contribution: Optional[StrictStr] = Field(default=None, alias="ecContribution")
- id: Optional[StrictStr] = None
- name: Optional[StrictStr] = None
- net_ec_contribution: Optional[StrictStr] = Field(default=None, alias="netEcContribution")
- total_cost: Optional[StrictStr] = Field(default=None, alias="totalCost")
- type: Optional[StrictStr] = None
- __properties: ClassVar[List[str]] = ["ecContribution", "id", "name", "netEcContribution", "totalCost", "type"]
+ """
+ ec_contribution: StrictStr | None = Field(default=None, alias="ecContribution")
+ id: StrictStr | None = None
+ name: StrictStr | None = None
+ net_ec_contribution: StrictStr | None = Field(default=None, alias="netEcContribution")
+ total_cost: StrictStr | None = Field(default=None, alias="totalCost")
+ type: StrictStr | None = None
+ __properties: ClassVar[list[str]] = ["ecContribution", "id", "name", "netEcContribution", "totalCost", "type"]
model_config = ConfigDict(
validate_by_name=True,
@@ -52,11 +51,11 @@ class OrganizationNested(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of OrganizationNested from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -66,7 +65,7 @@ class OrganizationNested(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -77,7 +76,7 @@ class OrganizationNested(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of OrganizationNested from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/projects_eu/programme_nested.py b/service/src/main/inse/models/projects_eu/programme_nested.py
index 07cdd49f..771ddfea 100644
--- a/service/src/main/inse/models/projects_eu/programme_nested.py
+++ b/service/src/main/inse/models/projects_eu/programme_nested.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
Projects EU All Index Backend Models
@@ -9,28 +8,28 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
+from typing import Any, ClassVar, Self
from pydantic import BaseModel, ConfigDict, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
from pydantic_core import to_jsonable_python
+
class ProgrammeNested(BaseModel):
"""
Nested object for related programmes.
- """ # noqa: E501
- code: Optional[StrictStr] = None
- id: Optional[StrictStr] = None
- programme: Optional[StrictStr] = None
- __properties: ClassVar[List[str]] = ["code", "id", "programme"]
+ """
+ code: StrictStr | None = None
+ id: StrictStr | None = None
+ programme: StrictStr | None = None
+ __properties: ClassVar[list[str]] = ["code", "id", "programme"]
model_config = ConfigDict(
validate_by_name=True,
@@ -49,11 +48,11 @@ class ProgrammeNested(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of ProgrammeNested from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -63,7 +62,7 @@ class ProgrammeNested(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -74,7 +73,7 @@ class ProgrammeNested(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of ProgrammeNested from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/projects_eu/project_eu.py b/service/src/main/inse/models/projects_eu/project_eu.py
index c332409d..42608e4e 100644
--- a/service/src/main/inse/models/projects_eu/project_eu.py
+++ b/service/src/main/inse/models/projects_eu/project_eu.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
Projects EU All Index Backend Models
@@ -9,50 +8,50 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
+from typing import Any, ClassVar, Self
-from pydantic import BaseModel, ConfigDict, Field, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
from inse.models.projects_eu.category_nested import CategoryNested
from inse.models.projects_eu.keyword_nested import KeywordNested
from inse.models.projects_eu.organization_nested import OrganizationNested
from inse.models.projects_eu.programme_nested import ProgrammeNested
-from typing import Optional, Set
-from typing_extensions import Self
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
from pydantic_core import to_jsonable_python
+
class ProjectEu(BaseModel):
"""
Main document model for the projects_eu_all index.
- """ # noqa: E501
- acronym: Optional[StrictStr] = None
- categories_nested: Optional[List[CategoryNested]] = None
- doc_number: Optional[StrictStr] = None
- doi: Optional[StrictStr] = None
- ec_max_contribution: Optional[StrictStr] = Field(default=None, alias="ecMaxContribution")
- end_date: Optional[StrictStr] = Field(default=None, alias="endDate")
- funding_end: Optional[StrictStr] = None
- funding_start: Optional[StrictStr] = None
- id: Optional[StrictStr] = None
- keywords: Optional[StrictStr] = None
- keywords_nested: Optional[List[KeywordNested]] = None
- link: Optional[StrictStr] = None
- objective: Optional[StrictStr] = None
- organization_nested: Optional[List[OrganizationNested]] = None
- programme_nested: Optional[List[ProgrammeNested]] = None
- source: Optional[StrictStr] = None
- start_date: Optional[StrictStr] = Field(default=None, alias="startDate")
- status: Optional[StrictStr] = None
- teaser: Optional[StrictStr] = None
- title: Optional[StrictStr] = None
- total_cost: Optional[StrictStr] = Field(default=None, alias="totalCost")
- __properties: ClassVar[List[str]] = ["acronym", "categories_nested", "doc_number", "doi", "ecMaxContribution", "endDate", "funding_end", "funding_start", "id", "keywords", "keywords_nested", "link", "objective", "organization_nested", "programme_nested", "source", "startDate", "status", "teaser", "title", "totalCost"]
+ """
+ acronym: StrictStr | None = None
+ categories_nested: list[CategoryNested] | None = None
+ doc_number: StrictStr | None = None
+ doi: StrictStr | None = None
+ ec_max_contribution: StrictStr | None = Field(default=None, alias="ecMaxContribution")
+ end_date: StrictStr | None = Field(default=None, alias="endDate")
+ funding_end: StrictStr | None = None
+ funding_start: StrictStr | None = None
+ id: StrictStr | None = None
+ keywords: StrictStr | None = None
+ keywords_nested: list[KeywordNested] | None = None
+ link: StrictStr | None = None
+ objective: StrictStr | None = None
+ organization_nested: list[OrganizationNested] | None = None
+ programme_nested: list[ProgrammeNested] | None = None
+ source: StrictStr | None = None
+ start_date: StrictStr | None = Field(default=None, alias="startDate")
+ status: StrictStr | None = None
+ teaser: StrictStr | None = None
+ title: StrictStr | None = None
+ total_cost: StrictStr | None = Field(default=None, alias="totalCost")
+ __properties: ClassVar[list[str]] = ["acronym", "categories_nested", "doc_number", "doi", "ecMaxContribution", "endDate", "funding_end", "funding_start", "id", "keywords", "keywords_nested", "link", "objective", "organization_nested", "programme_nested", "source", "startDate", "status", "teaser", "title", "totalCost"]
model_config = ConfigDict(
validate_by_name=True,
@@ -71,11 +70,11 @@ class ProjectEu(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of ProjectEu from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -85,7 +84,7 @@ class ProjectEu(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -124,7 +123,7 @@ class ProjectEu(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of ProjectEu from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/projects_eu_cordis/fp7/fp7_eurosci_voc.py b/service/src/main/inse/models/projects_eu_cordis/fp7/fp7_eurosci_voc.py
index 27e2cec2..27f9aad7 100644
--- a/service/src/main/inse/models/projects_eu_cordis/fp7/fp7_eurosci_voc.py
+++ b/service/src/main/inse/models/projects_eu_cordis/fp7/fp7_eurosci_voc.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
CORDIS FP7 Multi-Index API
@@ -9,31 +8,31 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
+from typing import Any, ClassVar, Self
from pydantic import BaseModel, ConfigDict, Field, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
from pydantic_core import to_jsonable_python
+
class Fp7EurosciVoc(BaseModel):
"""
Fp7EurosciVoc
- """ # noqa: E501
- code: Optional[StrictStr] = None
- description: Optional[StrictStr] = None
- id: Optional[StrictStr] = None
- path: Optional[StrictStr] = None
- project_id: Optional[StrictStr] = Field(default=None, alias="projectID")
- title: Optional[StrictStr] = None
- __properties: ClassVar[List[str]] = ["code", "description", "id", "path", "projectID", "title"]
+ """
+ code: StrictStr | None = None
+ description: StrictStr | None = None
+ id: StrictStr | None = None
+ path: StrictStr | None = None
+ project_id: StrictStr | None = Field(default=None, alias="projectID")
+ title: StrictStr | None = None
+ __properties: ClassVar[list[str]] = ["code", "description", "id", "path", "projectID", "title"]
model_config = ConfigDict(
validate_by_name=True,
@@ -52,11 +51,11 @@ class Fp7EurosciVoc(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of Fp7EurosciVoc from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -66,7 +65,7 @@ class Fp7EurosciVoc(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -77,7 +76,7 @@ class Fp7EurosciVoc(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of Fp7EurosciVoc from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/projects_eu_cordis/fp7/fp7_legal_basis.py b/service/src/main/inse/models/projects_eu_cordis/fp7/fp7_legal_basis.py
index b4868f44..f98621d2 100644
--- a/service/src/main/inse/models/projects_eu_cordis/fp7/fp7_legal_basis.py
+++ b/service/src/main/inse/models/projects_eu_cordis/fp7/fp7_legal_basis.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
CORDIS FP7 Multi-Index API
@@ -9,30 +8,30 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
+from typing import Any, ClassVar, Self
from pydantic import BaseModel, ConfigDict, Field, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
from pydantic_core import to_jsonable_python
+
class Fp7LegalBasis(BaseModel):
"""
Fp7LegalBasis
- """ # noqa: E501
- id: Optional[StrictStr] = None
- legal_basis: Optional[StrictStr] = Field(default=None, alias="legalBasis")
- project_id: Optional[StrictStr] = Field(default=None, alias="projectID")
- title: Optional[StrictStr] = None
- unique_programme_part: Optional[StrictStr] = Field(default=None, alias="uniqueProgrammePart")
- __properties: ClassVar[List[str]] = ["id", "legalBasis", "projectID", "title", "uniqueProgrammePart"]
+ """
+ id: StrictStr | None = None
+ legal_basis: StrictStr | None = Field(default=None, alias="legalBasis")
+ project_id: StrictStr | None = Field(default=None, alias="projectID")
+ title: StrictStr | None = None
+ unique_programme_part: StrictStr | None = Field(default=None, alias="uniqueProgrammePart")
+ __properties: ClassVar[list[str]] = ["id", "legalBasis", "projectID", "title", "uniqueProgrammePart"]
model_config = ConfigDict(
validate_by_name=True,
@@ -51,11 +50,11 @@ class Fp7LegalBasis(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of Fp7LegalBasis from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -65,7 +64,7 @@ class Fp7LegalBasis(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -76,7 +75,7 @@ class Fp7LegalBasis(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of Fp7LegalBasis from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/projects_eu_cordis/fp7/fp7_organization.py b/service/src/main/inse/models/projects_eu_cordis/fp7/fp7_organization.py
index 07814631..cebe393b 100644
--- a/service/src/main/inse/models/projects_eu_cordis/fp7/fp7_organization.py
+++ b/service/src/main/inse/models/projects_eu_cordis/fp7/fp7_organization.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
CORDIS FP7 Multi-Index API
@@ -9,52 +8,60 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
-
from datetime import datetime
-from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
+from typing import Any, ClassVar, Self
+
+from pydantic import (
+ BaseModel,
+ ConfigDict,
+ Field,
+ StrictBool,
+ StrictFloat,
+ StrictInt,
+ StrictStr,
+)
from pydantic_core import to_jsonable_python
+
class Fp7Organization(BaseModel):
"""
Fp7Organization
- """ # noqa: E501
- sme: Optional[StrictBool] = Field(default=None, alias="SME")
- active: Optional[StrictBool] = None
- activity_type: Optional[StrictStr] = Field(default=None, alias="activityType")
- city: Optional[StrictStr] = None
- contact_form: Optional[StrictStr] = Field(default=None, alias="contactForm")
- content_update_date: Optional[datetime] = Field(default=None, alias="contentUpdateDate")
- country: Optional[StrictStr] = None
- ec_contribution: Optional[StrictFloat] = Field(default=None, alias="ecContribution")
- end_of_participation: Optional[StrictBool] = Field(default=None, alias="endOfParticipation")
- geolocation: Optional[StrictStr] = None
- id: Optional[StrictStr] = None
- name: Optional[StrictStr] = None
- net_ec_contribution: Optional[StrictFloat] = Field(default=None, alias="netEcContribution")
- nuts_code: Optional[StrictStr] = Field(default=None, alias="nutsCode")
- order: Optional[StrictInt] = None
- organisation_id: Optional[StrictStr] = Field(default=None, alias="organisationID")
- organization_url: Optional[StrictStr] = Field(default=None, alias="organizationURL")
- post_code: Optional[StrictStr] = Field(default=None, alias="postCode")
- project_acronym: Optional[StrictStr] = Field(default=None, alias="projectAcronym")
- project_id: Optional[StrictStr] = Field(default=None, alias="projectID")
- rcn: Optional[StrictStr] = None
- role: Optional[StrictStr] = None
- short_name: Optional[StrictStr] = Field(default=None, alias="shortName")
- street: Optional[StrictStr] = None
- total_cost: Optional[StrictFloat] = Field(default=None, alias="totalCost")
- vat_number: Optional[StrictStr] = Field(default=None, alias="vatNumber")
- __properties: ClassVar[List[str]] = ["SME", "active", "activityType", "city", "contactForm", "contentUpdateDate", "country", "ecContribution", "endOfParticipation", "geolocation", "id", "name", "netEcContribution", "nutsCode", "order", "organisationID", "organizationURL", "postCode", "projectAcronym", "projectID", "rcn", "role", "shortName", "street", "totalCost", "vatNumber"]
+ """
+ sme: StrictBool | None = Field(default=None, alias="SME")
+ active: StrictBool | None = None
+ activity_type: StrictStr | None = Field(default=None, alias="activityType")
+ city: StrictStr | None = None
+ contact_form: StrictStr | None = Field(default=None, alias="contactForm")
+ content_update_date: datetime | None = Field(default=None, alias="contentUpdateDate")
+ country: StrictStr | None = None
+ ec_contribution: StrictFloat | None = Field(default=None, alias="ecContribution")
+ end_of_participation: StrictBool | None = Field(default=None, alias="endOfParticipation")
+ geolocation: StrictStr | None = None
+ id: StrictStr | None = None
+ name: StrictStr | None = None
+ net_ec_contribution: StrictFloat | None = Field(default=None, alias="netEcContribution")
+ nuts_code: StrictStr | None = Field(default=None, alias="nutsCode")
+ order: StrictInt | None = None
+ organisation_id: StrictStr | None = Field(default=None, alias="organisationID")
+ organization_url: StrictStr | None = Field(default=None, alias="organizationURL")
+ post_code: StrictStr | None = Field(default=None, alias="postCode")
+ project_acronym: StrictStr | None = Field(default=None, alias="projectAcronym")
+ project_id: StrictStr | None = Field(default=None, alias="projectID")
+ rcn: StrictStr | None = None
+ role: StrictStr | None = None
+ short_name: StrictStr | None = Field(default=None, alias="shortName")
+ street: StrictStr | None = None
+ total_cost: StrictFloat | None = Field(default=None, alias="totalCost")
+ vat_number: StrictStr | None = Field(default=None, alias="vatNumber")
+ __properties: ClassVar[list[str]] = ["SME", "active", "activityType", "city", "contactForm", "contentUpdateDate", "country", "ecContribution", "endOfParticipation", "geolocation", "id", "name", "netEcContribution", "nutsCode", "order", "organisationID", "organizationURL", "postCode", "projectAcronym", "projectID", "rcn", "role", "shortName", "street", "totalCost", "vatNumber"]
model_config = ConfigDict(
validate_by_name=True,
@@ -73,11 +80,11 @@ class Fp7Organization(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of Fp7Organization from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -87,7 +94,7 @@ class Fp7Organization(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -98,7 +105,7 @@ class Fp7Organization(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of Fp7Organization from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/projects_eu_cordis/fp7/fp7_project.py b/service/src/main/inse/models/projects_eu_cordis/fp7/fp7_project.py
index ca53bf13..6d468ce8 100644
--- a/service/src/main/inse/models/projects_eu_cordis/fp7/fp7_project.py
+++ b/service/src/main/inse/models/projects_eu_cordis/fp7/fp7_project.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
CORDIS FP7 Multi-Index API
@@ -9,48 +8,55 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
-
from datetime import date, datetime
-from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
+from typing import Any, ClassVar, Self
+
+from pydantic import (
+ BaseModel,
+ ConfigDict,
+ Field,
+ StrictBool,
+ StrictFloat,
+ StrictStr,
+)
from pydantic_core import to_jsonable_python
+
class Fp7Project(BaseModel):
"""
Fp7Project
- """ # noqa: E501
- acronym: Optional[StrictStr] = None
- content_update_date: Optional[datetime] = Field(default=None, alias="contentUpdateDate")
- ec_max_contribution: Optional[StrictFloat] = Field(default=None, alias="ecMaxContribution")
- ec_signature_date: Optional[date] = Field(default=None, alias="ecSignatureDate")
- end_date: Optional[date] = Field(default=None, alias="endDate")
- framework_programme: Optional[StrictStr] = Field(default=None, alias="frameworkProgramme")
- funding_scheme: Optional[StrictStr] = Field(default=None, alias="fundingScheme")
- grant_doi: Optional[StrictStr] = Field(default=None, alias="grantDoi")
- human_validated: Optional[StrictBool] = Field(default=None, alias="humanValidated")
- id: Optional[StrictStr] = None
- keywords: Optional[StrictStr] = None
- legal_basis: Optional[StrictStr] = Field(default=None, alias="legalBasis")
- master_call: Optional[StrictStr] = Field(default=None, alias="masterCall")
- nature: Optional[StrictStr] = None
- objective: Optional[StrictStr] = None
- rcn: Optional[StrictStr] = None
- start_date: Optional[date] = Field(default=None, alias="startDate")
- status: Optional[StrictStr] = None
- sub_call: Optional[StrictStr] = Field(default=None, alias="subCall")
- title: Optional[StrictStr] = None
- topics: Optional[StrictStr] = None
- total_cost: Optional[StrictFloat] = Field(default=None, alias="totalCost")
- __properties: ClassVar[List[str]] = ["acronym", "contentUpdateDate", "ecMaxContribution", "ecSignatureDate", "endDate", "frameworkProgramme", "fundingScheme", "grantDoi", "humanValidated", "id", "keywords", "legalBasis", "masterCall", "nature", "objective", "rcn", "startDate", "status", "subCall", "title", "topics", "totalCost"]
+ """
+ acronym: StrictStr | None = None
+ content_update_date: datetime | None = Field(default=None, alias="contentUpdateDate")
+ ec_max_contribution: StrictFloat | None = Field(default=None, alias="ecMaxContribution")
+ ec_signature_date: date | None = Field(default=None, alias="ecSignatureDate")
+ end_date: date | None = Field(default=None, alias="endDate")
+ framework_programme: StrictStr | None = Field(default=None, alias="frameworkProgramme")
+ funding_scheme: StrictStr | None = Field(default=None, alias="fundingScheme")
+ grant_doi: StrictStr | None = Field(default=None, alias="grantDoi")
+ human_validated: StrictBool | None = Field(default=None, alias="humanValidated")
+ id: StrictStr | None = None
+ keywords: StrictStr | None = None
+ legal_basis: StrictStr | None = Field(default=None, alias="legalBasis")
+ master_call: StrictStr | None = Field(default=None, alias="masterCall")
+ nature: StrictStr | None = None
+ objective: StrictStr | None = None
+ rcn: StrictStr | None = None
+ start_date: date | None = Field(default=None, alias="startDate")
+ status: StrictStr | None = None
+ sub_call: StrictStr | None = Field(default=None, alias="subCall")
+ title: StrictStr | None = None
+ topics: StrictStr | None = None
+ total_cost: StrictFloat | None = Field(default=None, alias="totalCost")
+ __properties: ClassVar[list[str]] = ["acronym", "contentUpdateDate", "ecMaxContribution", "ecSignatureDate", "endDate", "frameworkProgramme", "fundingScheme", "grantDoi", "humanValidated", "id", "keywords", "legalBasis", "masterCall", "nature", "objective", "rcn", "startDate", "status", "subCall", "title", "topics", "totalCost"]
model_config = ConfigDict(
validate_by_name=True,
@@ -69,11 +75,11 @@ class Fp7Project(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of Fp7Project from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -83,7 +89,7 @@ class Fp7Project(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -94,7 +100,7 @@ class Fp7Project(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of Fp7Project from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/projects_eu_cordis/fp7/fp7_project_details.py b/service/src/main/inse/models/projects_eu_cordis/fp7/fp7_project_details.py
index 0f3864f2..82d4a060 100644
--- a/service/src/main/inse/models/projects_eu_cordis/fp7/fp7_project_details.py
+++ b/service/src/main/inse/models/projects_eu_cordis/fp7/fp7_project_details.py
@@ -1,30 +1,38 @@
-# coding: utf-8
"""
CORDIS FP7 Multi-Index API - Extended Models
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
from datetime import date, datetime
-from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
-from pydantic_core import to_jsonable_python
+from typing import Any, ClassVar, Self
+
+from inse.authors.v2.model import AuthorPage
+from inse.models.openalex.topic import Topic
+from inse.models.projects_eu_cordis.fp7.fp7_eurosci_voc import Fp7EurosciVoc
+from inse.models.projects_eu_cordis.fp7.fp7_legal_basis import Fp7LegalBasis
+from inse.models.projects_eu_cordis.fp7.fp7_organization import Fp7Organization
# Import all the base models
from inse.models.projects_eu_cordis.fp7.fp7_project import Fp7Project
-from inse.models.projects_eu_cordis.fp7.fp7_organization import Fp7Organization
-from inse.models.projects_eu_cordis.fp7.fp7_publication import Fp7Publication
from inse.models.projects_eu_cordis.fp7.fp7_project_ipr import Fp7ProjectIPR
+from inse.models.projects_eu_cordis.fp7.fp7_publication import Fp7Publication
from inse.models.projects_eu_cordis.fp7.fp7_report_summary import Fp7ReportSummary
from inse.models.projects_eu_cordis.fp7.fp7_topic import Fp7Topic
from inse.models.projects_eu_cordis.fp7.fp7_web_link import Fp7WebLink
-from inse.models.projects_eu_cordis.fp7.fp7_eurosci_voc import Fp7EurosciVoc
-from inse.models.projects_eu_cordis.fp7.fp7_legal_basis import Fp7LegalBasis
+from pydantic import (
+ BaseModel,
+ ConfigDict,
+ Field,
+ StrictBool,
+ StrictFloat,
+ StrictStr,
+)
+from pydantic_core import to_jsonable_python
class Fp7ProjectDetails(BaseModel):
@@ -33,45 +41,48 @@ class Fp7ProjectDetails(BaseModel):
This model extends the base Fp7Project with all associated data.
"""
# Project core information (flattened from Fp7Project)
- acronym: Optional[StrictStr] = None
- content_update_date: Optional[datetime] = Field(default=None, alias="contentUpdateDate")
- ec_max_contribution: Optional[StrictFloat] = Field(default=None, alias="ecMaxContribution")
- ec_signature_date: Optional[date] = Field(default=None, alias="ecSignatureDate")
- end_date: Optional[date] = Field(default=None, alias="endDate")
- framework_programme: Optional[StrictStr] = Field(default=None, alias="frameworkProgramme")
- funding_scheme: Optional[StrictStr] = Field(default=None, alias="fundingScheme")
- grant_doi: Optional[StrictStr] = Field(default=None, alias="grantDoi")
- human_validated: Optional[StrictBool] = Field(default=None, alias="humanValidated")
- id: Optional[StrictStr] = None
- keywords: Optional[StrictStr] = None
- legal_basis: Optional[StrictStr] = Field(default=None, alias="legalBasis")
- master_call: Optional[StrictStr] = Field(default=None, alias="masterCall")
- nature: Optional[StrictStr] = None
- objective: Optional[StrictStr] = None
- rcn: Optional[StrictStr] = None
- start_date: Optional[date] = Field(default=None, alias="startDate")
- status: Optional[StrictStr] = None
- sub_call: Optional[StrictStr] = Field(default=None, alias="subCall")
- title: Optional[StrictStr] = None
- topics: Optional[StrictStr] = None
- total_cost: Optional[StrictFloat] = Field(default=None, alias="totalCost")
+ acronym: StrictStr | None = None
+ content_update_date: datetime | None = Field(default=None, alias="contentUpdateDate")
+ ec_max_contribution: StrictFloat | None = Field(default=None, alias="ecMaxContribution")
+ ec_signature_date: date | None = Field(default=None, alias="ecSignatureDate")
+ end_date: date | None = Field(default=None, alias="endDate")
+ framework_programme: StrictStr | None = Field(default=None, alias="frameworkProgramme")
+ funding_scheme: StrictStr | None = Field(default=None, alias="fundingScheme")
+ grant_doi: StrictStr | None = Field(default=None, alias="grantDoi")
+ human_validated: StrictBool | None = Field(default=None, alias="humanValidated")
+ id: StrictStr | None = None
+ keywords: StrictStr | None = None
+ legal_basis: StrictStr | None = Field(default=None, alias="legalBasis")
+ master_call: StrictStr | None = Field(default=None, alias="masterCall")
+ nature: StrictStr | None = None
+ objective: StrictStr | None = None
+ rcn: StrictStr | None = None
+ start_date: date | None = Field(default=None, alias="startDate")
+ status: StrictStr | None = None
+ sub_call: StrictStr | None = Field(default=None, alias="subCall")
+ title: StrictStr | None = None
+ topics: StrictStr | None = None
+ total_cost: StrictFloat | None = Field(default=None, alias="totalCost")
# Related entities (collections)
- organizations: Optional[List[Fp7Organization]] = Field(default=None, description="Organizations participating in the project")
- publications: Optional[List[Fp7Publication]] = Field(default=None, description="Publications related to the project")
- iprs: Optional[List[Fp7ProjectIPR]] = Field(default=None, description="Intellectual Property Rights related to the project")
- report_summaries: Optional[List[Fp7ReportSummary]] = Field(default=None, description="Report summaries for the project")
- topics_list: Optional[List[Fp7Topic]] = Field(default=None, alias="topicsList", description="Topics associated with the project")
- web_links: Optional[List[Fp7WebLink]] = Field(default=None, description="Web links related to the project")
- eurosci_voc: Optional[List[Fp7EurosciVoc]] = Field(default=None, alias="eurosciVoc", description="EuroSciVoc classifications")
- legal_basis_list: Optional[List[Fp7LegalBasis]] = Field(default=None, alias="legalBasisList", description="Legal basis information")
+ organizations: list[Fp7Organization] | None = Field(default=None, description="Organizations participating in the project")
+ publications: list[Fp7Publication] | None = Field(default=None, description="Publications related to the project")
+ iprs: list[Fp7ProjectIPR] | None = Field(default=None, description="Intellectual Property Rights related to the project")
+ report_summaries: list[Fp7ReportSummary] | None = Field(default=None, description="Report summaries for the project")
+ topics_list: list[Fp7Topic] | None = Field(default=None, alias="topicsList", description="Topics associated with the project")
+ web_links: list[Fp7WebLink] | None = Field(default=None, description="Web links related to the project")
+ eurosci_voc: list[Fp7EurosciVoc] | None = Field(default=None, alias="eurosciVoc", description="EuroSciVoc classifications")
+ legal_basis_list: list[Fp7LegalBasis] | None = Field(default=None, alias="legalBasisList", description="Legal basis information")
# Project statistics (aggregated)
- organization_count: Optional[int] = Field(default=None, alias="organizationCount")
- publication_count: Optional[int] = Field(default=None, alias="publicationCount")
- ipr_count: Optional[int] = Field(default=None, alias="iprCount")
+ organization_count: int | None = Field(default=None, alias="organizationCount")
+ publication_count: int | None = Field(default=None, alias="publicationCount")
+ ipr_count: int | None = Field(default=None, alias="iprCount")
+ # OpenAlex related fields
+ oa_topics: list[Topic] | None = Field(default=None, alias="oaTopics", description="OpenAlex topics associated with the project")
+ oa_authors: AuthorPage | None = Field(default=None, alias="oaAuthors", description="OpenAlex authors associated with the project")
- __properties: ClassVar[List[str]] = [
+ __properties: ClassVar[list[str]] = [
"acronym", "contentUpdateDate", "ecMaxContribution", "ecSignatureDate",
"endDate", "frameworkProgramme", "fundingScheme", "grantDoi",
"humanValidated", "id", "keywords", "legalBasis", "masterCall",
@@ -79,7 +90,7 @@ class Fp7ProjectDetails(BaseModel):
"title", "topics", "totalCost",
"organizations", "publications", "iprs", "reportSummaries",
"topicsList", "webLinks", "eurosciVoc", "legalBasisList",
- "organizationCount", "publicationCount", "iprCount"
+ "organizationCount", "publicationCount", "iprCount","oaTopics", "oaAuthors"
]
model_config = ConfigDict(
@@ -99,13 +110,13 @@ class Fp7ProjectDetails(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of Fp7ProjectDetailed from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias."""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -116,7 +127,7 @@ class Fp7ProjectDetails(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of Fp7ProjectDetailed from a dict"""
if obj is None:
return None
@@ -163,6 +174,10 @@ class Fp7ProjectDetails(BaseModel):
"organizationCount": len(obj.get("organizations", [])) if obj.get("organizations") else 0,
"publicationCount": len(obj.get("publications", [])) if obj.get("publications") else 0,
"iprCount": len(obj.get("iprs", [])) if obj.get("iprs") else 0,
+
+ # # OpenAlex related fields
+ # "oaTopics": [Topic.from_dict(topic) for topic in obj.get("oaTopics", [])] if obj.get("oaTopics") else None,
+ # "oaAuthors": AuthorPage.from_dict(obj.get("oaAuthors")) if obj.get("oaAuthors") else None,
})
return _obj
@@ -170,14 +185,16 @@ class Fp7ProjectDetails(BaseModel):
def from_project_with_relations(
cls,
project: Fp7Project,
- organizations: Optional[List[Fp7Organization]] = None,
- publications: Optional[List[Fp7Publication]] = None,
- iprs: Optional[List[Fp7ProjectIPR]] = None,
- report_summaries: Optional[List[Fp7ReportSummary]] = None,
- topics_list: Optional[List[Fp7Topic]] = None,
- web_links: Optional[List[Fp7WebLink]] = None,
- eurosci_voc: Optional[List[Fp7EurosciVoc]] = None,
- legal_basis_list: Optional[List[Fp7LegalBasis]] = None,
+ organizations: list[Fp7Organization] | None = None,
+ publications: list[Fp7Publication] | None = None,
+ iprs: list[Fp7ProjectIPR] | None = None,
+ report_summaries: list[Fp7ReportSummary] | None = None,
+ topics_list: list[Fp7Topic] | None = None,
+ web_links: list[Fp7WebLink] | None = None,
+ eurosci_voc: list[Fp7EurosciVoc] | None = None,
+ legal_basis_list: list[Fp7LegalBasis] | None = None,
+ oa_topics: list[Topic] | None = None,
+ oa_authors: AuthorPage | None = None,
) -> Self:
"""
Factory method to create a detailed project from a base project and its relations.
@@ -211,4 +228,6 @@ class Fp7ProjectDetails(BaseModel):
organizationCount=len(organizations) if organizations else 0,
publicationCount=len(publications) if publications else 0,
iprCount=len(iprs) if iprs else 0,
+ oa_authors=oa_authors,
+ oa_topics=oa_topics or [],
)
\ No newline at end of file
diff --git a/service/src/main/inse/models/projects_eu_cordis/fp7/fp7_project_ipr.py b/service/src/main/inse/models/projects_eu_cordis/fp7/fp7_project_ipr.py
index cfbdd89b..df4378e7 100644
--- a/service/src/main/inse/models/projects_eu_cordis/fp7/fp7_project_ipr.py
+++ b/service/src/main/inse/models/projects_eu_cordis/fp7/fp7_project_ipr.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
CORDIS FP7 Multi-Index API
@@ -9,45 +8,45 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
-
from datetime import date
+from typing import Any, ClassVar, Self
+
from pydantic import BaseModel, ConfigDict, Field, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
from pydantic_core import to_jsonable_python
+
class Fp7ProjectIPR(BaseModel):
"""
Fp7ProjectIPR
- """ # noqa: E501
- applicant_name: Optional[StrictStr] = Field(default=None, alias="applicantName")
- application_date: Optional[date] = Field(default=None, alias="applicationDate")
- application_identifier: Optional[StrictStr] = Field(default=None, alias="applicationIdentifier")
- application_kind: Optional[StrictStr] = Field(default=None, alias="applicationKind")
- application_prefix: Optional[StrictStr] = Field(default=None, alias="applicationPrefix")
- award_date: Optional[date] = Field(default=None, alias="awardDate")
- award_identifier: Optional[StrictStr] = Field(default=None, alias="awardIdentifier")
- award_kind: Optional[StrictStr] = Field(default=None, alias="awardKind")
- award_prefix: Optional[StrictStr] = Field(default=None, alias="awardPrefix")
- epo_app_url: Optional[StrictStr] = Field(default=None, alias="epoAppUrl")
- epo_pub_url: Optional[StrictStr] = Field(default=None, alias="epoPubUrl")
- id: Optional[StrictStr] = None
- organisation_id: Optional[StrictStr] = Field(default=None, alias="organisationID")
- patent_family_identifier: Optional[StrictStr] = Field(default=None, alias="patentFamilyIdentifier")
- patent_type: Optional[StrictStr] = Field(default=None, alias="patentType")
- priority_date: Optional[date] = Field(default=None, alias="priorityDate")
- project_id: Optional[StrictStr] = Field(default=None, alias="projectID")
- title: Optional[StrictStr] = None
- type: Optional[StrictStr] = None
- __properties: ClassVar[List[str]] = ["applicantName", "applicationDate", "applicationIdentifier", "applicationKind", "applicationPrefix", "awardDate", "awardIdentifier", "awardKind", "awardPrefix", "epoAppUrl", "epoPubUrl", "id", "organisationID", "patentFamilyIdentifier", "patentType", "priorityDate", "projectID", "title", "type"]
+ """
+ applicant_name: StrictStr | None = Field(default=None, alias="applicantName")
+ application_date: date | None = Field(default=None, alias="applicationDate")
+ application_identifier: StrictStr | None = Field(default=None, alias="applicationIdentifier")
+ application_kind: StrictStr | None = Field(default=None, alias="applicationKind")
+ application_prefix: StrictStr | None = Field(default=None, alias="applicationPrefix")
+ award_date: date | None = Field(default=None, alias="awardDate")
+ award_identifier: StrictStr | None = Field(default=None, alias="awardIdentifier")
+ award_kind: StrictStr | None = Field(default=None, alias="awardKind")
+ award_prefix: StrictStr | None = Field(default=None, alias="awardPrefix")
+ epo_app_url: StrictStr | None = Field(default=None, alias="epoAppUrl")
+ epo_pub_url: StrictStr | None = Field(default=None, alias="epoPubUrl")
+ id: StrictStr | None = None
+ organisation_id: StrictStr | None = Field(default=None, alias="organisationID")
+ patent_family_identifier: StrictStr | None = Field(default=None, alias="patentFamilyIdentifier")
+ patent_type: StrictStr | None = Field(default=None, alias="patentType")
+ priority_date: date | None = Field(default=None, alias="priorityDate")
+ project_id: StrictStr | None = Field(default=None, alias="projectID")
+ title: StrictStr | None = None
+ type: StrictStr | None = None
+ __properties: ClassVar[list[str]] = ["applicantName", "applicationDate", "applicationIdentifier", "applicationKind", "applicationPrefix", "awardDate", "awardIdentifier", "awardKind", "awardPrefix", "epoAppUrl", "epoPubUrl", "id", "organisationID", "patentFamilyIdentifier", "patentType", "priorityDate", "projectID", "title", "type"]
model_config = ConfigDict(
validate_by_name=True,
@@ -66,11 +65,11 @@ class Fp7ProjectIPR(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of Fp7ProjectIPR from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -80,7 +79,7 @@ class Fp7ProjectIPR(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -91,7 +90,7 @@ class Fp7ProjectIPR(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of Fp7ProjectIPR from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/projects_eu_cordis/fp7/fp7_publication.py b/service/src/main/inse/models/projects_eu_cordis/fp7/fp7_publication.py
index 2e9ab1ff..f03765e0 100644
--- a/service/src/main/inse/models/projects_eu_cordis/fp7/fp7_publication.py
+++ b/service/src/main/inse/models/projects_eu_cordis/fp7/fp7_publication.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
CORDIS FP7 Multi-Index API
@@ -9,44 +8,47 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
-
from datetime import datetime
+from typing import Any, ClassVar, Self
+
+from inse.authors.v2.model import Author
from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
from pydantic_core import to_jsonable_python
+
class Fp7Publication(BaseModel):
"""
Fp7Publication
- """ # noqa: E501
- authors: Optional[StrictStr] = None
- collection: Optional[StrictStr] = None
- content_update_date: Optional[datetime] = Field(default=None, alias="contentUpdateDate")
- doi: Optional[StrictStr] = None
- id: Optional[StrictStr] = None
- is_published_as: Optional[StrictStr] = Field(default=None, alias="isPublishedAs")
- journal_number: Optional[StrictStr] = Field(default=None, alias="journalNumber")
- journal_title: Optional[StrictStr] = Field(default=None, alias="journalTitle")
- project_acronym: Optional[StrictStr] = Field(default=None, alias="projectAcronym")
- project_id: Optional[StrictStr] = Field(default=None, alias="projectID")
- published_pages: Optional[StrictStr] = Field(default=None, alias="publishedPages")
- published_year: Optional[StrictInt] = Field(default=None, alias="publishedYear")
- publisher: Optional[StrictStr] = None
- qa_processed_doi: Optional[StrictStr] = Field(default=None, alias="qaProcessedDoi")
- rcn: Optional[StrictStr] = None
- repository_url: Optional[StrictStr] = Field(default=None, alias="repositoryUrl")
- title: Optional[StrictStr] = None
- volume: Optional[StrictStr] = None
- __properties: ClassVar[List[str]] = ["authors", "collection", "contentUpdateDate", "doi", "id", "isPublishedAs", "journalNumber", "journalTitle", "projectAcronym", "projectID", "publishedPages", "publishedYear", "publisher", "qaProcessedDoi", "rcn", "repositoryUrl", "title", "volume"]
+ """
+ authors: StrictStr | None = None
+ oa_authors: list[Author] | None = Field(default=None, alias="oaAuthors", description="OpenAlex authors matched to this publication's DOI")
+
+ collection: StrictStr | None = None
+ content_update_date: datetime | None = Field(default=None, alias="contentUpdateDate")
+ doi: StrictStr | None = None
+ id: StrictStr | None = None
+ is_published_as: StrictStr | None = Field(default=None, alias="isPublishedAs")
+ journal_number: StrictStr | None = Field(default=None, alias="journalNumber")
+ journal_title: StrictStr | None = Field(default=None, alias="journalTitle")
+ project_acronym: StrictStr | None = Field(default=None, alias="projectAcronym")
+ project_id: StrictStr | None = Field(default=None, alias="projectID")
+ published_pages: StrictStr | None = Field(default=None, alias="publishedPages")
+ published_year: StrictInt | None = Field(default=None, alias="publishedYear")
+ publisher: StrictStr | None = None
+ qa_processed_doi: StrictStr | None = Field(default=None, alias="qaProcessedDoi")
+ rcn: StrictStr | None = None
+ repository_url: StrictStr | None = Field(default=None, alias="repositoryUrl")
+ title: StrictStr | None = None
+ volume: StrictStr | None = None
+ __properties: ClassVar[list[str]] = ["authors", "collection", "contentUpdateDate", "doi", "id", "isPublishedAs", "journalNumber", "journalTitle", "projectAcronym", "projectID", "publishedPages", "publishedYear", "publisher", "qaProcessedDoi", "rcn", "repositoryUrl", "title", "volume", "oaAuthors"]
model_config = ConfigDict(
validate_by_name=True,
@@ -65,11 +67,11 @@ class Fp7Publication(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of Fp7Publication from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -79,7 +81,7 @@ class Fp7Publication(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -90,7 +92,7 @@ class Fp7Publication(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of Fp7Publication from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/projects_eu_cordis/fp7/fp7_report_summary.py b/service/src/main/inse/models/projects_eu_cordis/fp7/fp7_report_summary.py
index 43ce8910..cbe1ac59 100644
--- a/service/src/main/inse/models/projects_eu_cordis/fp7/fp7_report_summary.py
+++ b/service/src/main/inse/models/projects_eu_cordis/fp7/fp7_report_summary.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
CORDIS FP7 Multi-Index API
@@ -9,33 +8,33 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
-
from datetime import datetime
+from typing import Any, ClassVar, Self
+
from pydantic import BaseModel, ConfigDict, Field, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
from pydantic_core import to_jsonable_python
+
class Fp7ReportSummary(BaseModel):
"""
Fp7ReportSummary
- """ # noqa: E501
- attachments: Optional[StrictStr] = None
- content_update_date: Optional[datetime] = Field(default=None, alias="contentUpdateDate")
- id: Optional[StrictStr] = None
- project_acronym: Optional[StrictStr] = Field(default=None, alias="projectAcronym")
- project_id: Optional[StrictStr] = Field(default=None, alias="projectID")
- rcn: Optional[StrictStr] = None
- title: Optional[StrictStr] = None
- __properties: ClassVar[List[str]] = ["attachments", "contentUpdateDate", "id", "projectAcronym", "projectID", "rcn", "title"]
+ """
+ attachments: StrictStr | None = None
+ content_update_date: datetime | None = Field(default=None, alias="contentUpdateDate")
+ id: StrictStr | None = None
+ project_acronym: StrictStr | None = Field(default=None, alias="projectAcronym")
+ project_id: StrictStr | None = Field(default=None, alias="projectID")
+ rcn: StrictStr | None = None
+ title: StrictStr | None = None
+ __properties: ClassVar[list[str]] = ["attachments", "contentUpdateDate", "id", "projectAcronym", "projectID", "rcn", "title"]
model_config = ConfigDict(
validate_by_name=True,
@@ -54,11 +53,11 @@ class Fp7ReportSummary(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of Fp7ReportSummary from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -68,7 +67,7 @@ class Fp7ReportSummary(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -79,7 +78,7 @@ class Fp7ReportSummary(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of Fp7ReportSummary from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/projects_eu_cordis/fp7/fp7_topic.py b/service/src/main/inse/models/projects_eu_cordis/fp7/fp7_topic.py
index 27a59a47..7a404f24 100644
--- a/service/src/main/inse/models/projects_eu_cordis/fp7/fp7_topic.py
+++ b/service/src/main/inse/models/projects_eu_cordis/fp7/fp7_topic.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
CORDIS FP7 Multi-Index API
@@ -9,29 +8,29 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
+from typing import Any, ClassVar, Self
from pydantic import BaseModel, ConfigDict, Field, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
from pydantic_core import to_jsonable_python
+
class Fp7Topic(BaseModel):
"""
Fp7Topic
- """ # noqa: E501
- id: Optional[StrictStr] = None
- project_id: Optional[StrictStr] = Field(default=None, alias="projectID")
- title: Optional[StrictStr] = None
- topic: Optional[StrictStr] = None
- __properties: ClassVar[List[str]] = ["id", "projectID", "title", "topic"]
+ """
+ id: StrictStr | None = None
+ project_id: StrictStr | None = Field(default=None, alias="projectID")
+ title: StrictStr | None = None
+ topic: StrictStr | None = None
+ __properties: ClassVar[list[str]] = ["id", "projectID", "title", "topic"]
model_config = ConfigDict(
validate_by_name=True,
@@ -50,11 +49,11 @@ class Fp7Topic(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of Fp7Topic from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -64,7 +63,7 @@ class Fp7Topic(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -75,7 +74,7 @@ class Fp7Topic(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of Fp7Topic from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/projects_eu_cordis/fp7/fp7_web_link.py b/service/src/main/inse/models/projects_eu_cordis/fp7/fp7_web_link.py
index 6898b07f..429feb39 100644
--- a/service/src/main/inse/models/projects_eu_cordis/fp7/fp7_web_link.py
+++ b/service/src/main/inse/models/projects_eu_cordis/fp7/fp7_web_link.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
CORDIS FP7 Multi-Index API
@@ -9,36 +8,36 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
-
from datetime import datetime
+from typing import Any, ClassVar, Self
+
from pydantic import BaseModel, ConfigDict, Field, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
from pydantic_core import to_jsonable_python
+
class Fp7WebLink(BaseModel):
"""
Fp7WebLink
- """ # noqa: E501
- archived_date: Optional[datetime] = Field(default=None, alias="archivedDate")
- available_languages: Optional[StrictStr] = Field(default=None, alias="availableLanguages")
- id: Optional[StrictStr] = None
- link_id: Optional[StrictStr] = Field(default=None, alias="linkId")
- project_id: Optional[StrictStr] = Field(default=None, alias="projectID")
- represents: Optional[StrictStr] = None
- source: Optional[StrictStr] = None
- status: Optional[StrictStr] = None
- type: Optional[StrictStr] = None
- url: Optional[StrictStr] = None
- __properties: ClassVar[List[str]] = ["archivedDate", "availableLanguages", "id", "linkId", "projectID", "represents", "source", "status", "type", "url"]
+ """
+ archived_date: datetime | None = Field(default=None, alias="archivedDate")
+ available_languages: StrictStr | None = Field(default=None, alias="availableLanguages")
+ id: StrictStr | None = None
+ link_id: StrictStr | None = Field(default=None, alias="linkId")
+ project_id: StrictStr | None = Field(default=None, alias="projectID")
+ represents: StrictStr | None = None
+ source: StrictStr | None = None
+ status: StrictStr | None = None
+ type: StrictStr | None = None
+ url: StrictStr | None = None
+ __properties: ClassVar[list[str]] = ["archivedDate", "availableLanguages", "id", "linkId", "projectID", "represents", "source", "status", "type", "url"]
model_config = ConfigDict(
validate_by_name=True,
@@ -57,11 +56,11 @@ class Fp7WebLink(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of Fp7WebLink from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -71,7 +70,7 @@ class Fp7WebLink(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -82,7 +81,7 @@ class Fp7WebLink(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of Fp7WebLink from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/projects_eu_cordis/horizon2020/h2020_deliverable.py b/service/src/main/inse/models/projects_eu_cordis/horizon2020/h2020_deliverable.py
index 29166ca3..678d4fba 100644
--- a/service/src/main/inse/models/projects_eu_cordis/horizon2020/h2020_deliverable.py
+++ b/service/src/main/inse/models/projects_eu_cordis/horizon2020/h2020_deliverable.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
CORDIS Horizon 2020 Multi-Index API
@@ -9,34 +8,34 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
-
from datetime import datetime
+from typing import Any, ClassVar, Self
+
from pydantic import BaseModel, ConfigDict, Field, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
from pydantic_core import to_jsonable_python
+
class H2020Deliverable(BaseModel):
"""
H2020Deliverable
- """ # noqa: E501
- collection: Optional[StrictStr] = None
- content_update_date: Optional[datetime] = Field(default=None, alias="contentUpdateDate")
- deliverable_type: Optional[StrictStr] = Field(default=None, alias="deliverableType")
- description: Optional[StrictStr] = None
- project_acronym: Optional[StrictStr] = Field(default=None, alias="projectAcronym")
- project_id: Optional[StrictStr] = Field(default=None, alias="projectID")
- rcn: Optional[StrictStr] = None
- url: Optional[StrictStr] = None
- __properties: ClassVar[List[str]] = ["collection", "contentUpdateDate", "deliverableType", "description", "projectAcronym", "projectID", "rcn", "url"]
+ """
+ collection: StrictStr | None = None
+ content_update_date: datetime | None = Field(default=None, alias="contentUpdateDate")
+ deliverable_type: StrictStr | None = Field(default=None, alias="deliverableType")
+ description: StrictStr | None = None
+ project_acronym: StrictStr | None = Field(default=None, alias="projectAcronym")
+ project_id: StrictStr | None = Field(default=None, alias="projectID")
+ rcn: StrictStr | None = None
+ url: StrictStr | None = None
+ __properties: ClassVar[list[str]] = ["collection", "contentUpdateDate", "deliverableType", "description", "projectAcronym", "projectID", "rcn", "url"]
model_config = ConfigDict(
validate_by_name=True,
@@ -55,11 +54,11 @@ class H2020Deliverable(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of H2020Deliverable from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -69,7 +68,7 @@ class H2020Deliverable(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -80,7 +79,7 @@ class H2020Deliverable(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of H2020Deliverable from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/projects_eu_cordis/horizon2020/h2020_erc_pi.py b/service/src/main/inse/models/projects_eu_cordis/horizon2020/h2020_erc_pi.py
index b16ed4d0..23324516 100644
--- a/service/src/main/inse/models/projects_eu_cordis/horizon2020/h2020_erc_pi.py
+++ b/service/src/main/inse/models/projects_eu_cordis/horizon2020/h2020_erc_pi.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
CORDIS Horizon 2020 Multi-Index API
@@ -9,33 +8,33 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
+from typing import Any, ClassVar, Self
from pydantic import BaseModel, ConfigDict, Field, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
from pydantic_core import to_jsonable_python
+
class H2020ErcPI(BaseModel):
"""
H2020ErcPI
- """ # noqa: E501
- first_name: Optional[StrictStr] = Field(default=None, alias="firstName")
- funding_scheme: Optional[StrictStr] = Field(default=None, alias="fundingScheme")
- id: Optional[StrictStr] = None
- last_name: Optional[StrictStr] = Field(default=None, alias="lastName")
- organisation_id: Optional[StrictStr] = Field(default=None, alias="organisationID")
- project_acronym: Optional[StrictStr] = Field(default=None, alias="projectAcronym")
- project_id: Optional[StrictStr] = Field(default=None, alias="projectID")
- title: Optional[StrictStr] = None
- __properties: ClassVar[List[str]] = ["firstName", "fundingScheme", "id", "lastName", "organisationID", "projectAcronym", "projectID", "title"]
+ """
+ first_name: StrictStr | None = Field(default=None, alias="firstName")
+ funding_scheme: StrictStr | None = Field(default=None, alias="fundingScheme")
+ id: StrictStr | None = None
+ last_name: StrictStr | None = Field(default=None, alias="lastName")
+ organisation_id: StrictStr | None = Field(default=None, alias="organisationID")
+ project_acronym: StrictStr | None = Field(default=None, alias="projectAcronym")
+ project_id: StrictStr | None = Field(default=None, alias="projectID")
+ title: StrictStr | None = None
+ __properties: ClassVar[list[str]] = ["firstName", "fundingScheme", "id", "lastName", "organisationID", "projectAcronym", "projectID", "title"]
model_config = ConfigDict(
validate_by_name=True,
@@ -54,11 +53,11 @@ class H2020ErcPI(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of H2020ErcPI from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -68,7 +67,7 @@ class H2020ErcPI(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -79,7 +78,7 @@ class H2020ErcPI(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of H2020ErcPI from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/projects_eu_cordis/horizon2020/h2020_eurosci_voc.py b/service/src/main/inse/models/projects_eu_cordis/horizon2020/h2020_eurosci_voc.py
index f6227b6c..26009d82 100644
--- a/service/src/main/inse/models/projects_eu_cordis/horizon2020/h2020_eurosci_voc.py
+++ b/service/src/main/inse/models/projects_eu_cordis/horizon2020/h2020_eurosci_voc.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
CORDIS Horizon 2020 Multi-Index API
@@ -9,31 +8,31 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
+from typing import Any, ClassVar, Self
from pydantic import BaseModel, ConfigDict, Field, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
from pydantic_core import to_jsonable_python
+
class H2020EurosciVoc(BaseModel):
"""
H2020EurosciVoc
- """ # noqa: E501
- code: Optional[StrictStr] = None
- description: Optional[StrictStr] = None
- id: Optional[StrictStr] = None
- path: Optional[StrictStr] = None
- project_id: Optional[StrictStr] = Field(default=None, alias="projectID")
- title: Optional[StrictStr] = None
- __properties: ClassVar[List[str]] = ["code", "description", "id", "path", "projectID", "title"]
+ """
+ code: StrictStr | None = None
+ description: StrictStr | None = None
+ id: StrictStr | None = None
+ path: StrictStr | None = None
+ project_id: StrictStr | None = Field(default=None, alias="projectID")
+ title: StrictStr | None = None
+ __properties: ClassVar[list[str]] = ["code", "description", "id", "path", "projectID", "title"]
model_config = ConfigDict(
validate_by_name=True,
@@ -52,11 +51,11 @@ class H2020EurosciVoc(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of H2020EurosciVoc from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -66,7 +65,7 @@ class H2020EurosciVoc(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -77,7 +76,7 @@ class H2020EurosciVoc(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of H2020EurosciVoc from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/projects_eu_cordis/horizon2020/h2020_legal_basis.py b/service/src/main/inse/models/projects_eu_cordis/horizon2020/h2020_legal_basis.py
index 43327f68..51f9c3a9 100644
--- a/service/src/main/inse/models/projects_eu_cordis/horizon2020/h2020_legal_basis.py
+++ b/service/src/main/inse/models/projects_eu_cordis/horizon2020/h2020_legal_basis.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
CORDIS Horizon 2020 Multi-Index API
@@ -9,30 +8,30 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
+from typing import Any, ClassVar, Self
from pydantic import BaseModel, ConfigDict, Field, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
from pydantic_core import to_jsonable_python
+
class H2020LegalBasis(BaseModel):
"""
H2020LegalBasis
- """ # noqa: E501
- id: Optional[StrictStr] = None
- legal_basis: Optional[StrictStr] = Field(default=None, alias="legalBasis")
- project_id: Optional[StrictStr] = Field(default=None, alias="projectID")
- title: Optional[StrictStr] = None
- unique_programme_part: Optional[StrictStr] = Field(default=None, alias="uniqueProgrammePart")
- __properties: ClassVar[List[str]] = ["id", "legalBasis", "projectID", "title", "uniqueProgrammePart"]
+ """
+ id: StrictStr | None = None
+ legal_basis: StrictStr | None = Field(default=None, alias="legalBasis")
+ project_id: StrictStr | None = Field(default=None, alias="projectID")
+ title: StrictStr | None = None
+ unique_programme_part: StrictStr | None = Field(default=None, alias="uniqueProgrammePart")
+ __properties: ClassVar[list[str]] = ["id", "legalBasis", "projectID", "title", "uniqueProgrammePart"]
model_config = ConfigDict(
validate_by_name=True,
@@ -51,11 +50,11 @@ class H2020LegalBasis(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of H2020LegalBasis from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -65,7 +64,7 @@ class H2020LegalBasis(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -76,7 +75,7 @@ class H2020LegalBasis(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of H2020LegalBasis from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/projects_eu_cordis/horizon2020/h2020_organization.py b/service/src/main/inse/models/projects_eu_cordis/horizon2020/h2020_organization.py
index ed63c1a0..3f111097 100644
--- a/service/src/main/inse/models/projects_eu_cordis/horizon2020/h2020_organization.py
+++ b/service/src/main/inse/models/projects_eu_cordis/horizon2020/h2020_organization.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
CORDIS Horizon 2020 Multi-Index API
@@ -9,52 +8,60 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
-
from datetime import datetime
-from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
+from typing import Any, ClassVar, Self
+
+from pydantic import (
+ BaseModel,
+ ConfigDict,
+ Field,
+ StrictBool,
+ StrictFloat,
+ StrictInt,
+ StrictStr,
+)
from pydantic_core import to_jsonable_python
+
class H2020Organization(BaseModel):
"""
H2020Organization
- """ # noqa: E501
- sme: Optional[StrictBool] = Field(default=None, alias="SME")
- active: Optional[StrictBool] = None
- activity_type: Optional[StrictStr] = Field(default=None, alias="activityType")
- city: Optional[StrictStr] = None
- contact_form: Optional[StrictStr] = Field(default=None, alias="contactForm")
- content_update_date: Optional[datetime] = Field(default=None, alias="contentUpdateDate")
- country: Optional[StrictStr] = None
- ec_contribution: Optional[StrictFloat] = Field(default=None, alias="ecContribution")
- end_of_participation: Optional[StrictBool] = Field(default=None, alias="endOfParticipation")
- geolocation: Optional[StrictStr] = None
- id: Optional[StrictStr] = None
- name: Optional[StrictStr] = None
- net_ec_contribution: Optional[StrictFloat] = Field(default=None, alias="netEcContribution")
- nuts_code: Optional[StrictStr] = Field(default=None, alias="nutsCode")
- order: Optional[StrictInt] = None
- organisation_id: Optional[StrictStr] = Field(default=None, alias="organisationID")
- organization_url: Optional[StrictStr] = Field(default=None, alias="organizationURL")
- post_code: Optional[StrictStr] = Field(default=None, alias="postCode")
- project_acronym: Optional[StrictStr] = Field(default=None, alias="projectAcronym")
- project_id: Optional[StrictStr] = Field(default=None, alias="projectID")
- rcn: Optional[StrictStr] = None
- role: Optional[StrictStr] = None
- short_name: Optional[StrictStr] = Field(default=None, alias="shortName")
- street: Optional[StrictStr] = None
- total_cost: Optional[StrictFloat] = Field(default=None, alias="totalCost")
- vat_number: Optional[StrictStr] = Field(default=None, alias="vatNumber")
- __properties: ClassVar[List[str]] = ["SME", "active", "activityType", "city", "contactForm", "contentUpdateDate", "country", "ecContribution", "endOfParticipation", "geolocation", "id", "name", "netEcContribution", "nutsCode", "order", "organisationID", "organizationURL", "postCode", "projectAcronym", "projectID", "rcn", "role", "shortName", "street", "totalCost", "vatNumber"]
+ """
+ sme: StrictBool | None = Field(default=None, alias="SME")
+ active: StrictBool | None = None
+ activity_type: StrictStr | None = Field(default=None, alias="activityType")
+ city: StrictStr | None = None
+ contact_form: StrictStr | None = Field(default=None, alias="contactForm")
+ content_update_date: datetime | None = Field(default=None, alias="contentUpdateDate")
+ country: StrictStr | None = None
+ ec_contribution: StrictFloat | None = Field(default=None, alias="ecContribution")
+ end_of_participation: StrictBool | None = Field(default=None, alias="endOfParticipation")
+ geolocation: StrictStr | None = None
+ id: StrictStr | None = None
+ name: StrictStr | None = None
+ net_ec_contribution: StrictFloat | None = Field(default=None, alias="netEcContribution")
+ nuts_code: StrictStr | None = Field(default=None, alias="nutsCode")
+ order: StrictInt | None = None
+ organisation_id: StrictStr | None = Field(default=None, alias="organisationID")
+ organization_url: StrictStr | None = Field(default=None, alias="organizationURL")
+ post_code: StrictStr | None = Field(default=None, alias="postCode")
+ project_acronym: StrictStr | None = Field(default=None, alias="projectAcronym")
+ project_id: StrictStr | None = Field(default=None, alias="projectID")
+ rcn: StrictStr | None = None
+ role: StrictStr | None = None
+ short_name: StrictStr | None = Field(default=None, alias="shortName")
+ street: StrictStr | None = None
+ total_cost: StrictFloat | None = Field(default=None, alias="totalCost")
+ vat_number: StrictStr | None = Field(default=None, alias="vatNumber")
+ __properties: ClassVar[list[str]] = ["SME", "active", "activityType", "city", "contactForm", "contentUpdateDate", "country", "ecContribution", "endOfParticipation", "geolocation", "id", "name", "netEcContribution", "nutsCode", "order", "organisationID", "organizationURL", "postCode", "projectAcronym", "projectID", "rcn", "role", "shortName", "street", "totalCost", "vatNumber"]
model_config = ConfigDict(
validate_by_name=True,
@@ -73,11 +80,11 @@ class H2020Organization(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of H2020Organization from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -87,7 +94,7 @@ class H2020Organization(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -98,7 +105,7 @@ class H2020Organization(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of H2020Organization from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/projects_eu_cordis/horizon2020/h2020_project.py b/service/src/main/inse/models/projects_eu_cordis/horizon2020/h2020_project.py
index c12b16ec..824d2e42 100644
--- a/service/src/main/inse/models/projects_eu_cordis/horizon2020/h2020_project.py
+++ b/service/src/main/inse/models/projects_eu_cordis/horizon2020/h2020_project.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
CORDIS Horizon 2020 Multi-Index API
@@ -9,48 +8,55 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
-
from datetime import date, datetime
-from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
+from typing import Any, ClassVar, Self
+
+from pydantic import (
+ BaseModel,
+ ConfigDict,
+ Field,
+ StrictBool,
+ StrictFloat,
+ StrictStr,
+)
from pydantic_core import to_jsonable_python
+
class H2020Project(BaseModel):
"""
H2020Project
- """ # noqa: E501
- acronym: Optional[StrictStr] = None
- content_update_date: Optional[datetime] = Field(default=None, alias="contentUpdateDate")
- ec_max_contribution: Optional[StrictFloat] = Field(default=None, alias="ecMaxContribution")
- ec_signature_date: Optional[date] = Field(default=None, alias="ecSignatureDate")
- end_date: Optional[date] = Field(default=None, alias="endDate")
- framework_programme: Optional[StrictStr] = Field(default=None, alias="frameworkProgramme")
- funding_scheme: Optional[StrictStr] = Field(default=None, alias="fundingScheme")
- grant_doi: Optional[StrictStr] = Field(default=None, alias="grantDoi")
- human_validated: Optional[StrictBool] = Field(default=None, alias="humanValidated")
- id: Optional[StrictStr] = None
- keywords: Optional[StrictStr] = None
- legal_basis: Optional[StrictStr] = Field(default=None, alias="legalBasis")
- master_call: Optional[StrictStr] = Field(default=None, alias="masterCall")
- nature: Optional[StrictStr] = None
- objective: Optional[StrictStr] = None
- rcn: Optional[StrictStr] = None
- start_date: Optional[date] = Field(default=None, alias="startDate")
- status: Optional[StrictStr] = None
- sub_call: Optional[StrictStr] = Field(default=None, alias="subCall")
- title: Optional[StrictStr] = None
- topics: Optional[StrictStr] = None
- total_cost: Optional[StrictFloat] = Field(default=None, alias="totalCost")
- __properties: ClassVar[List[str]] = ["acronym", "contentUpdateDate", "ecMaxContribution", "ecSignatureDate", "endDate", "frameworkProgramme", "fundingScheme", "grantDoi", "humanValidated", "id", "keywords", "legalBasis", "masterCall", "nature", "objective", "rcn", "startDate", "status", "subCall", "title", "topics", "totalCost"]
+ """
+ acronym: StrictStr | None = None
+ content_update_date: datetime | None = Field(default=None, alias="contentUpdateDate")
+ ec_max_contribution: StrictFloat | None = Field(default=None, alias="ecMaxContribution")
+ ec_signature_date: date | None = Field(default=None, alias="ecSignatureDate")
+ end_date: date | None = Field(default=None, alias="endDate")
+ framework_programme: StrictStr | None = Field(default=None, alias="frameworkProgramme")
+ funding_scheme: StrictStr | None = Field(default=None, alias="fundingScheme")
+ grant_doi: StrictStr | None = Field(default=None, alias="grantDoi")
+ human_validated: StrictBool | None = Field(default=None, alias="humanValidated")
+ id: StrictStr | None = None
+ keywords: StrictStr | None = None
+ legal_basis: StrictStr | None = Field(default=None, alias="legalBasis")
+ master_call: StrictStr | None = Field(default=None, alias="masterCall")
+ nature: StrictStr | None = None
+ objective: StrictStr | None = None
+ rcn: StrictStr | None = None
+ start_date: date | None = Field(default=None, alias="startDate")
+ status: StrictStr | None = None
+ sub_call: StrictStr | None = Field(default=None, alias="subCall")
+ title: StrictStr | None = None
+ topics: StrictStr | None = None
+ total_cost: StrictFloat | None = Field(default=None, alias="totalCost")
+ __properties: ClassVar[list[str]] = ["acronym", "contentUpdateDate", "ecMaxContribution", "ecSignatureDate", "endDate", "frameworkProgramme", "fundingScheme", "grantDoi", "humanValidated", "id", "keywords", "legalBasis", "masterCall", "nature", "objective", "rcn", "startDate", "status", "subCall", "title", "topics", "totalCost"]
model_config = ConfigDict(
validate_by_name=True,
@@ -69,11 +75,11 @@ class H2020Project(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of H2020Project from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -83,7 +89,7 @@ class H2020Project(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -94,7 +100,7 @@ class H2020Project(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of H2020Project from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/projects_eu_cordis/horizon2020/h2020_project_details.py b/service/src/main/inse/models/projects_eu_cordis/horizon2020/h2020_project_details.py
index 0c57f008..9c41747d 100644
--- a/service/src/main/inse/models/projects_eu_cordis/horizon2020/h2020_project_details.py
+++ b/service/src/main/inse/models/projects_eu_cordis/horizon2020/h2020_project_details.py
@@ -1,31 +1,47 @@
-# coding: utf-8
"""
CORDIS Horizon 2020 Multi-Index API - Extended Models
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
from datetime import date, datetime
-from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
-from pydantic_core import to_jsonable_python
+from typing import Any, ClassVar, Self
+
+from inse.authors.v2.model import AuthorPage
+from inse.models.openalex.topic import Topic
+from inse.models.projects_eu_cordis.horizon2020.h2020_deliverable import (
+ H2020Deliverable,
+)
+from inse.models.projects_eu_cordis.horizon2020.h2020_erc_pi import H2020ErcPI
+from inse.models.projects_eu_cordis.horizon2020.h2020_eurosci_voc import H2020EurosciVoc
+from inse.models.projects_eu_cordis.horizon2020.h2020_legal_basis import H2020LegalBasis
+from inse.models.projects_eu_cordis.horizon2020.h2020_organization import (
+ H2020Organization,
+)
# Import all the base models
from inse.models.projects_eu_cordis.horizon2020.h2020_project import H2020Project
-from inse.models.projects_eu_cordis.horizon2020.h2020_organization import H2020Organization
-from inse.models.projects_eu_cordis.horizon2020.h2020_publication import H2020Publication
-from inse.models.projects_eu_cordis.horizon2020.h2020_deliverable import H2020Deliverable
-from inse.models.projects_eu_cordis.horizon2020.h2020_report_summary import H2020ReportSummary
+from inse.models.projects_eu_cordis.horizon2020.h2020_publication import (
+ H2020Publication,
+)
+from inse.models.projects_eu_cordis.horizon2020.h2020_report_summary import (
+ H2020ReportSummary,
+)
from inse.models.projects_eu_cordis.horizon2020.h2020_topic import H2020Topic
from inse.models.projects_eu_cordis.horizon2020.h2020_web_link import H2020WebLink
-from inse.models.projects_eu_cordis.horizon2020.h2020_eurosci_voc import H2020EurosciVoc
-from inse.models.projects_eu_cordis.horizon2020.h2020_legal_basis import H2020LegalBasis
-from inse.models.projects_eu_cordis.horizon2020.h2020_erc_pi import H2020ErcPI
+from pydantic import (
+ BaseModel,
+ ConfigDict,
+ Field,
+ StrictBool,
+ StrictFloat,
+ StrictStr,
+)
+from pydantic_core import to_jsonable_python
class H2020ProjectDetails(BaseModel):
@@ -34,47 +50,50 @@ class H2020ProjectDetails(BaseModel):
This model extends the base H2020Project with all associated data.
"""
# Project core information (flattened from H2020Project)
- acronym: Optional[StrictStr] = None
- content_update_date: Optional[datetime] = Field(default=None, alias="contentUpdateDate")
- ec_max_contribution: Optional[StrictFloat] = Field(default=None, alias="ecMaxContribution")
- ec_signature_date: Optional[date] = Field(default=None, alias="ecSignatureDate")
- end_date: Optional[date] = Field(default=None, alias="endDate")
- framework_programme: Optional[StrictStr] = Field(default=None, alias="frameworkProgramme")
- funding_scheme: Optional[StrictStr] = Field(default=None, alias="fundingScheme")
- grant_doi: Optional[StrictStr] = Field(default=None, alias="grantDoi")
- human_validated: Optional[StrictBool] = Field(default=None, alias="humanValidated")
- id: Optional[StrictStr] = None
- keywords: Optional[StrictStr] = None
- legal_basis: Optional[StrictStr] = Field(default=None, alias="legalBasis")
- master_call: Optional[StrictStr] = Field(default=None, alias="masterCall")
- nature: Optional[StrictStr] = None
- objective: Optional[StrictStr] = None
- rcn: Optional[StrictStr] = None
- start_date: Optional[date] = Field(default=None, alias="startDate")
- status: Optional[StrictStr] = None
- sub_call: Optional[StrictStr] = Field(default=None, alias="subCall")
- title: Optional[StrictStr] = None
- topics: Optional[StrictStr] = None
- total_cost: Optional[StrictFloat] = Field(default=None, alias="totalCost")
+ acronym: StrictStr | None = None
+ content_update_date: datetime | None = Field(default=None, alias="contentUpdateDate")
+ ec_max_contribution: StrictFloat | None = Field(default=None, alias="ecMaxContribution")
+ ec_signature_date: date | None = Field(default=None, alias="ecSignatureDate")
+ end_date: date | None = Field(default=None, alias="endDate")
+ framework_programme: StrictStr | None = Field(default=None, alias="frameworkProgramme")
+ funding_scheme: StrictStr | None = Field(default=None, alias="fundingScheme")
+ grant_doi: StrictStr | None = Field(default=None, alias="grantDoi")
+ human_validated: StrictBool | None = Field(default=None, alias="humanValidated")
+ id: StrictStr | None = None
+ keywords: StrictStr | None = None
+ legal_basis: StrictStr | None = Field(default=None, alias="legalBasis")
+ master_call: StrictStr | None = Field(default=None, alias="masterCall")
+ nature: StrictStr | None = None
+ objective: StrictStr | None = None
+ rcn: StrictStr | None = None
+ start_date: date | None = Field(default=None, alias="startDate")
+ status: StrictStr | None = None
+ sub_call: StrictStr | None = Field(default=None, alias="subCall")
+ title: StrictStr | None = None
+ topics: StrictStr | None = None
+ total_cost: StrictFloat | None = Field(default=None, alias="totalCost")
# Related entities (collections)
- organizations: Optional[List[H2020Organization]] = Field(default=None, description="Organizations participating in the project")
- publications: Optional[List[H2020Publication]] = Field(default=None, description="Publications related to the project")
- deliverables: Optional[List[H2020Deliverable]] = Field(default=None, description="Deliverables of the project")
- report_summaries: Optional[List[H2020ReportSummary]] = Field(default=None, alias="reportSummaries", description="Report summaries for the project")
- topics_list: Optional[List[H2020Topic]] = Field(default=None, alias="topicsList", description="Topics associated with the project")
- web_links: Optional[List[H2020WebLink]] = Field(default=None, alias="webLinks", description="Web links related to the project")
- eurosci_voc: Optional[List[H2020EurosciVoc]] = Field(default=None, alias="eurosciVoc", description="EuroSciVoc classifications")
- legal_basis_list: Optional[List[H2020LegalBasis]] = Field(default=None, alias="legalBasisList", description="Legal basis information")
- erc_principal_investigators: Optional[List[H2020ErcPI]] = Field(default=None, alias="ercPrincipalInvestigators", description="ERC Principal Investigators (specific to H2020)")
+ organizations: list[H2020Organization] | None = Field(default=None, description="Organizations participating in the project")
+ publications: list[H2020Publication] | None = Field(default=None, description="Publications related to the project")
+ deliverables: list[H2020Deliverable] | None = Field(default=None, description="Deliverables of the project")
+ report_summaries: list[H2020ReportSummary] | None = Field(default=None, alias="reportSummaries", description="Report summaries for the project")
+ topics_list: list[H2020Topic] | None = Field(default=None, alias="topicsList", description="Topics associated with the project")
+ web_links: list[H2020WebLink] | None = Field(default=None, alias="webLinks", description="Web links related to the project")
+ eurosci_voc: list[H2020EurosciVoc] | None = Field(default=None, alias="eurosciVoc", description="EuroSciVoc classifications")
+ legal_basis_list: list[H2020LegalBasis] | None = Field(default=None, alias="legalBasisList", description="Legal basis information")
+ erc_principal_investigators: list[H2020ErcPI] | None = Field(default=None, alias="ercPrincipalInvestigators", description="ERC Principal Investigators (specific to H2020)")
# Project statistics (aggregated)
- organization_count: Optional[int] = Field(default=None, alias="organizationCount")
- publication_count: Optional[int] = Field(default=None, alias="publicationCount")
- deliverable_count: Optional[int] = Field(default=None, alias="deliverableCount")
- erc_pi_count: Optional[int] = Field(default=None, alias="ercPiCount")
-
- __properties: ClassVar[List[str]] = [
+ organization_count: int | None = Field(default=None, alias="organizationCount")
+ publication_count: int | None = Field(default=None, alias="publicationCount")
+ deliverable_count: int | None = Field(default=None, alias="deliverableCount")
+ erc_pi_count: int | None = Field(default=None, alias="ercPiCount")
+ # OpenAlex related fields
+ oa_topics: list[Topic] | None = Field(default=None, alias="oaTopics", description="OpenAlex topics associated with the project")
+ oa_authors: AuthorPage | None = Field(default=None, alias="oaAuthors", description="OpenAlex authors associated with the project")
+
+ __properties: ClassVar[list[str]] = [
"acronym", "contentUpdateDate", "ecMaxContribution", "ecSignatureDate",
"endDate", "frameworkProgramme", "fundingScheme", "grantDoi",
"humanValidated", "id", "keywords", "legalBasis", "masterCall",
@@ -84,6 +103,7 @@ class H2020ProjectDetails(BaseModel):
"topicsList", "webLinks", "eurosciVoc", "legalBasisList",
"ercPrincipalInvestigators",
"organizationCount", "publicationCount", "deliverableCount", "ercPiCount"
+ ,"oaTopics", "oaAuthors"
]
model_config = ConfigDict(
@@ -103,13 +123,13 @@ class H2020ProjectDetails(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of H2020ProjectDetailed from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias."""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -120,7 +140,7 @@ class H2020ProjectDetails(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of H2020ProjectDetailed from a dict"""
if obj is None:
return None
@@ -176,15 +196,17 @@ class H2020ProjectDetails(BaseModel):
def from_project_with_relations(
cls,
project: H2020Project,
- organizations: Optional[List[H2020Organization]] = None,
- publications: Optional[List[H2020Publication]] = None,
- deliverables: Optional[List[H2020Deliverable]] = None,
- report_summaries: Optional[List[H2020ReportSummary]] = None,
- topics_list: Optional[List[H2020Topic]] = None,
- web_links: Optional[List[H2020WebLink]] = None,
- eurosci_voc: Optional[List[H2020EurosciVoc]] = None,
- legal_basis_list: Optional[List[H2020LegalBasis]] = None,
- erc_principal_investigators: Optional[List[H2020ErcPI]] = None,
+ organizations: list[H2020Organization] | None = None,
+ publications: list[H2020Publication] | None = None,
+ deliverables: list[H2020Deliverable] | None = None,
+ report_summaries: list[H2020ReportSummary] | None = None,
+ topics_list: list[H2020Topic] | None = None,
+ web_links: list[H2020WebLink] | None = None,
+ eurosci_voc: list[H2020EurosciVoc] | None = None,
+ legal_basis_list: list[H2020LegalBasis] | None = None,
+ erc_principal_investigators: list[H2020ErcPI] | None = None,
+ oa_topics: list[Topic] | None = None,
+ oa_authors: AuthorPage | None = None,
) -> Self:
"""
Factory method to create a detailed project from a base project and its relations.
@@ -221,4 +243,6 @@ class H2020ProjectDetails(BaseModel):
publicationCount=len(publications) if publications else 0,
deliverableCount=len(deliverables) if deliverables else 0,
ercPiCount=len(erc_principal_investigators) if erc_principal_investigators else 0,
+ oa_authors=oa_authors,
+ oa_topics=oa_topics or [],
)
\ No newline at end of file
diff --git a/service/src/main/inse/models/projects_eu_cordis/horizon2020/h2020_publication.py b/service/src/main/inse/models/projects_eu_cordis/horizon2020/h2020_publication.py
index ffe9a440..cd4d5389 100644
--- a/service/src/main/inse/models/projects_eu_cordis/horizon2020/h2020_publication.py
+++ b/service/src/main/inse/models/projects_eu_cordis/horizon2020/h2020_publication.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
CORDIS Horizon 2020 Multi-Index API
@@ -9,44 +8,47 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
-
from datetime import datetime
+from typing import Any, ClassVar, Self
+
+from inse.authors.v2.model import Author
from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
from pydantic_core import to_jsonable_python
+
class H2020Publication(BaseModel):
"""
H2020Publication
- """ # noqa: E501
- authors: Optional[StrictStr] = None
- collection: Optional[StrictStr] = None
- content_update_date: Optional[datetime] = Field(default=None, alias="contentUpdateDate")
- doi: Optional[StrictStr] = None
- id: Optional[StrictStr] = None
- is_published_as: Optional[StrictStr] = Field(default=None, alias="isPublishedAs")
- journal_number: Optional[StrictStr] = Field(default=None, alias="journalNumber")
- journal_title: Optional[StrictStr] = Field(default=None, alias="journalTitle")
- project_acronym: Optional[StrictStr] = Field(default=None, alias="projectAcronym")
- project_id: Optional[StrictStr] = Field(default=None, alias="projectID")
- published_pages: Optional[StrictStr] = Field(default=None, alias="publishedPages")
- published_year: Optional[StrictInt] = Field(default=None, alias="publishedYear")
- publisher: Optional[StrictStr] = None
- qa_processed_doi: Optional[StrictStr] = Field(default=None, alias="qaProcessedDoi")
- rcn: Optional[StrictStr] = None
- repository_url: Optional[StrictStr] = Field(default=None, alias="repositoryUrl")
- title: Optional[StrictStr] = None
- volume: Optional[StrictStr] = None
- __properties: ClassVar[List[str]] = ["authors", "collection", "contentUpdateDate", "doi", "id", "isPublishedAs", "journalNumber", "journalTitle", "projectAcronym", "projectID", "publishedPages", "publishedYear", "publisher", "qaProcessedDoi", "rcn", "repositoryUrl", "title", "volume"]
+ """
+ authors: StrictStr | None = None
+ oa_authors: list[Author] | None = Field(default=None, alias="oaAuthors", description="OpenAlex authors matched to this publication's DOI")
+ collection: StrictStr | None = None
+ content_update_date: datetime | None = Field(default=None, alias="contentUpdateDate")
+ doi: StrictStr | None = None
+ id: StrictStr | None = None
+ is_published_as: StrictStr | None = Field(default=None, alias="isPublishedAs")
+ journal_number: StrictStr | None = Field(default=None, alias="journalNumber")
+ journal_title: StrictStr | None = Field(default=None, alias="journalTitle")
+ project_acronym: StrictStr | None = Field(default=None, alias="projectAcronym")
+ project_id: StrictStr | None = Field(default=None, alias="projectID")
+ published_pages: StrictStr | None = Field(default=None, alias="publishedPages")
+ published_year: StrictInt | None = Field(default=None, alias="publishedYear")
+ publisher: StrictStr | None = None
+ qa_processed_doi: StrictStr | None = Field(default=None, alias="qaProcessedDoi")
+ rcn: StrictStr | None = None
+ repository_url: StrictStr | None = Field(default=None, alias="repositoryUrl")
+ title: StrictStr | None = None
+ volume: StrictStr | None = None
+ oa_authors: list[Author] | None = Field(default=None, alias="oaAuthors", description="OpenAlex authors matched to this publication's DOI")
+ __properties: ClassVar[list[str]] = ["authors", "collection", "contentUpdateDate", "doi", "id", "isPublishedAs", "journalNumber", "journalTitle", "projectAcronym", "projectID", "publishedPages", "publishedYear", "publisher", "qaProcessedDoi", "rcn", "repositoryUrl", "title", "volume", "oaAuthors"]
model_config = ConfigDict(
validate_by_name=True,
@@ -65,11 +67,11 @@ class H2020Publication(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of H2020Publication from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -79,7 +81,7 @@ class H2020Publication(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -90,7 +92,7 @@ class H2020Publication(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of H2020Publication from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/projects_eu_cordis/horizon2020/h2020_report_summary.py b/service/src/main/inse/models/projects_eu_cordis/horizon2020/h2020_report_summary.py
index e1f7e49f..c33dbb38 100644
--- a/service/src/main/inse/models/projects_eu_cordis/horizon2020/h2020_report_summary.py
+++ b/service/src/main/inse/models/projects_eu_cordis/horizon2020/h2020_report_summary.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
CORDIS Horizon 2020 Multi-Index API
@@ -9,33 +8,33 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
-
from datetime import datetime
+from typing import Any, ClassVar, Self
+
from pydantic import BaseModel, ConfigDict, Field, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
from pydantic_core import to_jsonable_python
+
class H2020ReportSummary(BaseModel):
"""
H2020ReportSummary
- """ # noqa: E501
- attachments: Optional[StrictStr] = None
- content_update_date: Optional[datetime] = Field(default=None, alias="contentUpdateDate")
- id: Optional[StrictStr] = None
- project_acronym: Optional[StrictStr] = Field(default=None, alias="projectAcronym")
- project_id: Optional[StrictStr] = Field(default=None, alias="projectID")
- rcn: Optional[StrictStr] = None
- title: Optional[StrictStr] = None
- __properties: ClassVar[List[str]] = ["attachments", "contentUpdateDate", "id", "projectAcronym", "projectID", "rcn", "title"]
+ """
+ attachments: StrictStr | None = None
+ content_update_date: datetime | None = Field(default=None, alias="contentUpdateDate")
+ id: StrictStr | None = None
+ project_acronym: StrictStr | None = Field(default=None, alias="projectAcronym")
+ project_id: StrictStr | None = Field(default=None, alias="projectID")
+ rcn: StrictStr | None = None
+ title: StrictStr | None = None
+ __properties: ClassVar[list[str]] = ["attachments", "contentUpdateDate", "id", "projectAcronym", "projectID", "rcn", "title"]
model_config = ConfigDict(
validate_by_name=True,
@@ -54,11 +53,11 @@ class H2020ReportSummary(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of H2020ReportSummary from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -68,7 +67,7 @@ class H2020ReportSummary(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -79,7 +78,7 @@ class H2020ReportSummary(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of H2020ReportSummary from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/projects_eu_cordis/horizon2020/h2020_topic.py b/service/src/main/inse/models/projects_eu_cordis/horizon2020/h2020_topic.py
index 0c6bedbb..a4df2dcf 100644
--- a/service/src/main/inse/models/projects_eu_cordis/horizon2020/h2020_topic.py
+++ b/service/src/main/inse/models/projects_eu_cordis/horizon2020/h2020_topic.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
CORDIS Horizon 2020 Multi-Index API
@@ -9,29 +8,29 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
+from typing import Any, ClassVar, Self
from pydantic import BaseModel, ConfigDict, Field, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
from pydantic_core import to_jsonable_python
+
class H2020Topic(BaseModel):
"""
H2020Topic
- """ # noqa: E501
- id: Optional[StrictStr] = None
- project_id: Optional[StrictStr] = Field(default=None, alias="projectID")
- title: Optional[StrictStr] = None
- topic: Optional[StrictStr] = None
- __properties: ClassVar[List[str]] = ["id", "projectID", "title", "topic"]
+ """
+ id: StrictStr | None = None
+ project_id: StrictStr | None = Field(default=None, alias="projectID")
+ title: StrictStr | None = None
+ topic: StrictStr | None = None
+ __properties: ClassVar[list[str]] = ["id", "projectID", "title", "topic"]
model_config = ConfigDict(
validate_by_name=True,
@@ -50,11 +49,11 @@ class H2020Topic(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of H2020Topic from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -64,7 +63,7 @@ class H2020Topic(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -75,7 +74,7 @@ class H2020Topic(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of H2020Topic from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/projects_eu_cordis/horizon2020/h2020_web_link.py b/service/src/main/inse/models/projects_eu_cordis/horizon2020/h2020_web_link.py
index a8e45638..0ff51ed7 100644
--- a/service/src/main/inse/models/projects_eu_cordis/horizon2020/h2020_web_link.py
+++ b/service/src/main/inse/models/projects_eu_cordis/horizon2020/h2020_web_link.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
CORDIS Horizon 2020 Multi-Index API
@@ -9,36 +8,36 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
-
from datetime import datetime
+from typing import Any, ClassVar, Self
+
from pydantic import BaseModel, ConfigDict, Field, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
from pydantic_core import to_jsonable_python
+
class H2020WebLink(BaseModel):
"""
H2020WebLink
- """ # noqa: E501
- archived_date: Optional[datetime] = Field(default=None, alias="archivedDate")
- available_languages: Optional[StrictStr] = Field(default=None, alias="availableLanguages")
- id: Optional[StrictStr] = None
- link_id: Optional[StrictStr] = Field(default=None, alias="linkId")
- project_id: Optional[StrictStr] = Field(default=None, alias="projectID")
- represents: Optional[StrictStr] = None
- source: Optional[StrictStr] = None
- status: Optional[StrictStr] = None
- type: Optional[StrictStr] = None
- url: Optional[StrictStr] = None
- __properties: ClassVar[List[str]] = ["archivedDate", "availableLanguages", "id", "linkId", "projectID", "represents", "source", "status", "type", "url"]
+ """
+ archived_date: datetime | None = Field(default=None, alias="archivedDate")
+ available_languages: StrictStr | None = Field(default=None, alias="availableLanguages")
+ id: StrictStr | None = None
+ link_id: StrictStr | None = Field(default=None, alias="linkId")
+ project_id: StrictStr | None = Field(default=None, alias="projectID")
+ represents: StrictStr | None = None
+ source: StrictStr | None = None
+ status: StrictStr | None = None
+ type: StrictStr | None = None
+ url: StrictStr | None = None
+ __properties: ClassVar[list[str]] = ["archivedDate", "availableLanguages", "id", "linkId", "projectID", "represents", "source", "status", "type", "url"]
model_config = ConfigDict(
validate_by_name=True,
@@ -57,11 +56,11 @@ class H2020WebLink(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of H2020WebLink from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -71,7 +70,7 @@ class H2020WebLink(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -82,7 +81,7 @@ class H2020WebLink(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of H2020WebLink from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/projects_eu_cordis/horizon_europe/heu_deliverable.py b/service/src/main/inse/models/projects_eu_cordis/horizon_europe/heu_deliverable.py
index ba858158..7ff50b04 100644
--- a/service/src/main/inse/models/projects_eu_cordis/horizon_europe/heu_deliverable.py
+++ b/service/src/main/inse/models/projects_eu_cordis/horizon_europe/heu_deliverable.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
CORDIS Horizon Europe Multi-Index API
@@ -9,34 +8,34 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
-
from datetime import datetime
+from typing import Any, ClassVar, Self
+
from pydantic import BaseModel, ConfigDict, Field, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
from pydantic_core import to_jsonable_python
+
class HEUDeliverable(BaseModel):
"""
HEUDeliverable
- """ # noqa: E501
- collection: Optional[StrictStr] = None
- content_update_date: Optional[datetime] = Field(default=None, alias="contentUpdateDate")
- deliverable_type: Optional[StrictStr] = Field(default=None, alias="deliverableType")
- description: Optional[StrictStr] = None
- project_acronym: Optional[StrictStr] = Field(default=None, alias="projectAcronym")
- project_id: Optional[StrictStr] = Field(default=None, alias="projectID")
- rcn: Optional[StrictStr] = None
- url: Optional[StrictStr] = None
- __properties: ClassVar[List[str]] = ["collection", "contentUpdateDate", "deliverableType", "description", "projectAcronym", "projectID", "rcn", "url"]
+ """
+ collection: StrictStr | None = None
+ content_update_date: datetime | None = Field(default=None, alias="contentUpdateDate")
+ deliverable_type: StrictStr | None = Field(default=None, alias="deliverableType")
+ description: StrictStr | None = None
+ project_acronym: StrictStr | None = Field(default=None, alias="projectAcronym")
+ project_id: StrictStr | None = Field(default=None, alias="projectID")
+ rcn: StrictStr | None = None
+ url: StrictStr | None = None
+ __properties: ClassVar[list[str]] = ["collection", "contentUpdateDate", "deliverableType", "description", "projectAcronym", "projectID", "rcn", "url"]
model_config = ConfigDict(
validate_by_name=True,
@@ -55,11 +54,11 @@ class HEUDeliverable(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of HEUDeliverable from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -69,7 +68,7 @@ class HEUDeliverable(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -80,7 +79,7 @@ class HEUDeliverable(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of HEUDeliverable from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/projects_eu_cordis/horizon_europe/heu_eurosci_voc.py b/service/src/main/inse/models/projects_eu_cordis/horizon_europe/heu_eurosci_voc.py
index 586f3777..49ea168c 100644
--- a/service/src/main/inse/models/projects_eu_cordis/horizon_europe/heu_eurosci_voc.py
+++ b/service/src/main/inse/models/projects_eu_cordis/horizon_europe/heu_eurosci_voc.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
CORDIS Horizon Europe Multi-Index API
@@ -9,31 +8,31 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
+from typing import Any, ClassVar, Self
from pydantic import BaseModel, ConfigDict, Field, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
from pydantic_core import to_jsonable_python
+
class HEUEurosciVoc(BaseModel):
"""
HEUEurosciVoc
- """ # noqa: E501
- code: Optional[StrictStr] = None
- description: Optional[StrictStr] = None
- id: Optional[StrictStr] = None
- path: Optional[StrictStr] = None
- project_id: Optional[StrictStr] = Field(default=None, alias="projectID")
- title: Optional[StrictStr] = None
- __properties: ClassVar[List[str]] = ["code", "description", "id", "path", "projectID", "title"]
+ """
+ code: StrictStr | None = None
+ description: StrictStr | None = None
+ id: StrictStr | None = None
+ path: StrictStr | None = None
+ project_id: StrictStr | None = Field(default=None, alias="projectID")
+ title: StrictStr | None = None
+ __properties: ClassVar[list[str]] = ["code", "description", "id", "path", "projectID", "title"]
model_config = ConfigDict(
validate_by_name=True,
@@ -52,11 +51,11 @@ class HEUEurosciVoc(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of HEUEurosciVoc from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -66,7 +65,7 @@ class HEUEurosciVoc(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -77,7 +76,7 @@ class HEUEurosciVoc(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of HEUEurosciVoc from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/projects_eu_cordis/horizon_europe/heu_legal_basis.py b/service/src/main/inse/models/projects_eu_cordis/horizon_europe/heu_legal_basis.py
index 0c4e288e..a2b9fdd7 100644
--- a/service/src/main/inse/models/projects_eu_cordis/horizon_europe/heu_legal_basis.py
+++ b/service/src/main/inse/models/projects_eu_cordis/horizon_europe/heu_legal_basis.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
CORDIS Horizon Europe Multi-Index API
@@ -9,30 +8,30 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
+from typing import Any, ClassVar, Self
from pydantic import BaseModel, ConfigDict, Field, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
from pydantic_core import to_jsonable_python
+
class HEULegalBasis(BaseModel):
"""
HEULegalBasis
- """ # noqa: E501
- id: Optional[StrictStr] = None
- legal_basis: Optional[StrictStr] = Field(default=None, alias="legalBasis")
- project_id: Optional[StrictStr] = Field(default=None, alias="projectID")
- title: Optional[StrictStr] = None
- unique_programme_part: Optional[StrictStr] = Field(default=None, alias="uniqueProgrammePart")
- __properties: ClassVar[List[str]] = ["id", "legalBasis", "projectID", "title", "uniqueProgrammePart"]
+ """
+ id: StrictStr | None = None
+ legal_basis: StrictStr | None = Field(default=None, alias="legalBasis")
+ project_id: StrictStr | None = Field(default=None, alias="projectID")
+ title: StrictStr | None = None
+ unique_programme_part: StrictStr | None = Field(default=None, alias="uniqueProgrammePart")
+ __properties: ClassVar[list[str]] = ["id", "legalBasis", "projectID", "title", "uniqueProgrammePart"]
model_config = ConfigDict(
validate_by_name=True,
@@ -51,11 +50,11 @@ class HEULegalBasis(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of HEULegalBasis from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -65,7 +64,7 @@ class HEULegalBasis(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -76,7 +75,7 @@ class HEULegalBasis(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of HEULegalBasis from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/projects_eu_cordis/horizon_europe/heu_organization.py b/service/src/main/inse/models/projects_eu_cordis/horizon_europe/heu_organization.py
index 069ee71a..0cd27867 100644
--- a/service/src/main/inse/models/projects_eu_cordis/horizon_europe/heu_organization.py
+++ b/service/src/main/inse/models/projects_eu_cordis/horizon_europe/heu_organization.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
CORDIS Horizon Europe Multi-Index API
@@ -9,52 +8,60 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
-
from datetime import datetime
-from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
+from typing import Any, ClassVar, Self
+
+from pydantic import (
+ BaseModel,
+ ConfigDict,
+ Field,
+ StrictBool,
+ StrictFloat,
+ StrictInt,
+ StrictStr,
+)
from pydantic_core import to_jsonable_python
+
class HEUOrganization(BaseModel):
"""
HEUOrganization
- """ # noqa: E501
- sme: Optional[StrictBool] = Field(default=None, alias="SME")
- active: Optional[StrictBool] = None
- activity_type: Optional[StrictStr] = Field(default=None, alias="activityType")
- city: Optional[StrictStr] = None
- contact_form: Optional[StrictStr] = Field(default=None, alias="contactForm")
- content_update_date: Optional[datetime] = Field(default=None, alias="contentUpdateDate")
- country: Optional[StrictStr] = None
- ec_contribution: Optional[StrictFloat] = Field(default=None, alias="ecContribution")
- end_of_participation: Optional[StrictBool] = Field(default=None, alias="endOfParticipation")
- geolocation: Optional[StrictStr] = None
- id: Optional[StrictStr] = None
- name: Optional[StrictStr] = None
- net_ec_contribution: Optional[StrictFloat] = Field(default=None, alias="netEcContribution")
- nuts_code: Optional[StrictStr] = Field(default=None, alias="nutsCode")
- order: Optional[StrictInt] = None
- organisation_id: Optional[StrictStr] = Field(default=None, alias="organisationID")
- organization_url: Optional[StrictStr] = Field(default=None, alias="organizationURL")
- post_code: Optional[StrictStr] = Field(default=None, alias="postCode")
- project_acronym: Optional[StrictStr] = Field(default=None, alias="projectAcronym")
- project_id: Optional[StrictStr] = Field(default=None, alias="projectID")
- rcn: Optional[StrictStr] = None
- role: Optional[StrictStr] = None
- short_name: Optional[StrictStr] = Field(default=None, alias="shortName")
- street: Optional[StrictStr] = None
- total_cost: Optional[StrictFloat] = Field(default=None, alias="totalCost")
- vat_number: Optional[StrictStr] = Field(default=None, alias="vatNumber")
- __properties: ClassVar[List[str]] = ["SME", "active", "activityType", "city", "contactForm", "contentUpdateDate", "country", "ecContribution", "endOfParticipation", "geolocation", "id", "name", "netEcContribution", "nutsCode", "order", "organisationID", "organizationURL", "postCode", "projectAcronym", "projectID", "rcn", "role", "shortName", "street", "totalCost", "vatNumber"]
+ """
+ sme: StrictBool | None = Field(default=None, alias="SME")
+ active: StrictBool | None = None
+ activity_type: StrictStr | None = Field(default=None, alias="activityType")
+ city: StrictStr | None = None
+ contact_form: StrictStr | None = Field(default=None, alias="contactForm")
+ content_update_date: datetime | None = Field(default=None, alias="contentUpdateDate")
+ country: StrictStr | None = None
+ ec_contribution: StrictFloat | None = Field(default=None, alias="ecContribution")
+ end_of_participation: StrictBool | None = Field(default=None, alias="endOfParticipation")
+ geolocation: StrictStr | None = None
+ id: StrictStr | None = None
+ name: StrictStr | None = None
+ net_ec_contribution: StrictFloat | None = Field(default=None, alias="netEcContribution")
+ nuts_code: StrictStr | None = Field(default=None, alias="nutsCode")
+ order: StrictInt | None = None
+ organisation_id: StrictStr | None = Field(default=None, alias="organisationID")
+ organization_url: StrictStr | None = Field(default=None, alias="organizationURL")
+ post_code: StrictStr | None = Field(default=None, alias="postCode")
+ project_acronym: StrictStr | None = Field(default=None, alias="projectAcronym")
+ project_id: StrictStr | None = Field(default=None, alias="projectID")
+ rcn: StrictStr | None = None
+ role: StrictStr | None = None
+ short_name: StrictStr | None = Field(default=None, alias="shortName")
+ street: StrictStr | None = None
+ total_cost: StrictFloat | None = Field(default=None, alias="totalCost")
+ vat_number: StrictStr | None = Field(default=None, alias="vatNumber")
+ __properties: ClassVar[list[str]] = ["SME", "active", "activityType", "city", "contactForm", "contentUpdateDate", "country", "ecContribution", "endOfParticipation", "geolocation", "id", "name", "netEcContribution", "nutsCode", "order", "organisationID", "organizationURL", "postCode", "projectAcronym", "projectID", "rcn", "role", "shortName", "street", "totalCost", "vatNumber"]
model_config = ConfigDict(
validate_by_name=True,
@@ -73,11 +80,11 @@ class HEUOrganization(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of HEUOrganization from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -87,7 +94,7 @@ class HEUOrganization(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -98,7 +105,7 @@ class HEUOrganization(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of HEUOrganization from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/projects_eu_cordis/horizon_europe/heu_project.py b/service/src/main/inse/models/projects_eu_cordis/horizon_europe/heu_project.py
index 77607832..bd7da3f5 100644
--- a/service/src/main/inse/models/projects_eu_cordis/horizon_europe/heu_project.py
+++ b/service/src/main/inse/models/projects_eu_cordis/horizon_europe/heu_project.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
CORDIS Horizon Europe Multi-Index API
@@ -9,48 +8,55 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
-
from datetime import date, datetime
-from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
+from typing import Any, ClassVar, Self
+
+from pydantic import (
+ BaseModel,
+ ConfigDict,
+ Field,
+ StrictBool,
+ StrictFloat,
+ StrictStr,
+)
from pydantic_core import to_jsonable_python
+
class HEUProject(BaseModel):
"""
HEUProject
- """ # noqa: E501
- acronym: Optional[StrictStr] = None
- content_update_date: Optional[datetime] = Field(default=None, alias="contentUpdateDate")
- ec_max_contribution: Optional[StrictFloat] = Field(default=None, alias="ecMaxContribution")
- ec_signature_date: Optional[date] = Field(default=None, alias="ecSignatureDate")
- end_date: Optional[date] = Field(default=None, alias="endDate")
- framework_programme: Optional[StrictStr] = Field(default=None, alias="frameworkProgramme")
- funding_scheme: Optional[StrictStr] = Field(default=None, alias="fundingScheme")
- grant_doi: Optional[StrictStr] = Field(default=None, alias="grantDoi")
- human_validated: Optional[StrictBool] = Field(default=None, alias="humanValidated")
- id: Optional[StrictStr] = None
- keywords: Optional[StrictStr] = None
- legal_basis: Optional[StrictStr] = Field(default=None, alias="legalBasis")
- master_call: Optional[StrictStr] = Field(default=None, alias="masterCall")
- nature: Optional[StrictStr] = None
- objective: Optional[StrictStr] = None
- rcn: Optional[StrictStr] = None
- start_date: Optional[date] = Field(default=None, alias="startDate")
- status: Optional[StrictStr] = None
- sub_call: Optional[StrictStr] = Field(default=None, alias="subCall")
- title: Optional[StrictStr] = None
- topics: Optional[StrictStr] = None
- total_cost: Optional[StrictFloat] = Field(default=None, alias="totalCost")
- __properties: ClassVar[List[str]] = ["acronym", "contentUpdateDate", "ecMaxContribution", "ecSignatureDate", "endDate", "frameworkProgramme", "fundingScheme", "grantDoi", "humanValidated", "id", "keywords", "legalBasis", "masterCall", "nature", "objective", "rcn", "startDate", "status", "subCall", "title", "topics", "totalCost"]
+ """
+ acronym: StrictStr | None = None
+ content_update_date: datetime | None = Field(default=None, alias="contentUpdateDate")
+ ec_max_contribution: StrictFloat | None = Field(default=None, alias="ecMaxContribution")
+ ec_signature_date: date | None = Field(default=None, alias="ecSignatureDate")
+ end_date: date | None = Field(default=None, alias="endDate")
+ framework_programme: StrictStr | None = Field(default=None, alias="frameworkProgramme")
+ funding_scheme: StrictStr | None = Field(default=None, alias="fundingScheme")
+ grant_doi: StrictStr | None = Field(default=None, alias="grantDoi")
+ human_validated: StrictBool | None = Field(default=None, alias="humanValidated")
+ id: StrictStr | None = None
+ keywords: StrictStr | None = None
+ legal_basis: StrictStr | None = Field(default=None, alias="legalBasis")
+ master_call: StrictStr | None = Field(default=None, alias="masterCall")
+ nature: StrictStr | None = None
+ objective: StrictStr | None = None
+ rcn: StrictStr | None = None
+ start_date: date | None = Field(default=None, alias="startDate")
+ status: StrictStr | None = None
+ sub_call: StrictStr | None = Field(default=None, alias="subCall")
+ title: StrictStr | None = None
+ topics: StrictStr | None = None
+ total_cost: StrictFloat | None = Field(default=None, alias="totalCost")
+ __properties: ClassVar[list[str]] = ["acronym", "contentUpdateDate", "ecMaxContribution", "ecSignatureDate", "endDate", "frameworkProgramme", "fundingScheme", "grantDoi", "humanValidated", "id", "keywords", "legalBasis", "masterCall", "nature", "objective", "rcn", "startDate", "status", "subCall", "title", "topics", "totalCost"]
model_config = ConfigDict(
validate_by_name=True,
@@ -69,11 +75,11 @@ class HEUProject(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of HEUProject from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -83,7 +89,7 @@ class HEUProject(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -94,7 +100,7 @@ class HEUProject(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of HEUProject from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/projects_eu_cordis/horizon_europe/heu_project_details.py b/service/src/main/inse/models/projects_eu_cordis/horizon_europe/heu_project_details.py
index 48f69a7f..a694f160 100644
--- a/service/src/main/inse/models/projects_eu_cordis/horizon_europe/heu_project_details.py
+++ b/service/src/main/inse/models/projects_eu_cordis/horizon_europe/heu_project_details.py
@@ -1,30 +1,42 @@
-# coding: utf-8
"""
CORDIS Horizon Europe Multi-Index API - Extended Models
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
from datetime import date, datetime
-from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
-from pydantic_core import to_jsonable_python
+from typing import Any, ClassVar, Self
+
+from inse.authors.v2.model import AuthorPage
+from inse.models.openalex.topic import Topic
+from inse.models.projects_eu_cordis.horizon_europe.heu_deliverable import HEUDeliverable
+from inse.models.projects_eu_cordis.horizon_europe.heu_eurosci_voc import HEUEurosciVoc
+from inse.models.projects_eu_cordis.horizon_europe.heu_legal_basis import HEULegalBasis
+from inse.models.projects_eu_cordis.horizon_europe.heu_organization import (
+ HEUOrganization,
+)
# Import all the base models
from inse.models.projects_eu_cordis.horizon_europe.heu_project import HEUProject
-from inse.models.projects_eu_cordis.horizon_europe.heu_organization import HEUOrganization
from inse.models.projects_eu_cordis.horizon_europe.heu_publication import HEUPublication
-from inse.models.projects_eu_cordis.horizon_europe.heu_deliverable import HEUDeliverable
-from inse.models.projects_eu_cordis.horizon_europe.heu_report_summary import HEUReportSummary
+from inse.models.projects_eu_cordis.horizon_europe.heu_report_summary import (
+ HEUReportSummary,
+)
from inse.models.projects_eu_cordis.horizon_europe.heu_topic import HEUTopic
from inse.models.projects_eu_cordis.horizon_europe.heu_web_link import HEUWebLink
-from inse.models.projects_eu_cordis.horizon_europe.heu_eurosci_voc import HEUEurosciVoc
-from inse.models.projects_eu_cordis.horizon_europe.heu_legal_basis import HEULegalBasis
+from pydantic import (
+ BaseModel,
+ ConfigDict,
+ Field,
+ StrictBool,
+ StrictFloat,
+ StrictStr,
+)
+from pydantic_core import to_jsonable_python
class HEUProjectDetails(BaseModel):
@@ -33,45 +45,47 @@ class HEUProjectDetails(BaseModel):
This model extends the base HEUProject with all associated data.
"""
# Project core information (flattened from HEUProject)
- acronym: Optional[StrictStr] = None
- content_update_date: Optional[datetime] = Field(default=None, alias="contentUpdateDate")
- ec_max_contribution: Optional[StrictFloat] = Field(default=None, alias="ecMaxContribution")
- ec_signature_date: Optional[date] = Field(default=None, alias="ecSignatureDate")
- end_date: Optional[date] = Field(default=None, alias="endDate")
- framework_programme: Optional[StrictStr] = Field(default=None, alias="frameworkProgramme")
- funding_scheme: Optional[StrictStr] = Field(default=None, alias="fundingScheme")
- grant_doi: Optional[StrictStr] = Field(default=None, alias="grantDoi")
- human_validated: Optional[StrictBool] = Field(default=None, alias="humanValidated")
- id: Optional[StrictStr] = None
- keywords: Optional[StrictStr] = None
- legal_basis: Optional[StrictStr] = Field(default=None, alias="legalBasis")
- master_call: Optional[StrictStr] = Field(default=None, alias="masterCall")
- nature: Optional[StrictStr] = None
- objective: Optional[StrictStr] = None
- rcn: Optional[StrictStr] = None
- start_date: Optional[date] = Field(default=None, alias="startDate")
- status: Optional[StrictStr] = None
- sub_call: Optional[StrictStr] = Field(default=None, alias="subCall")
- title: Optional[StrictStr] = None
- topics: Optional[StrictStr] = None
- total_cost: Optional[StrictFloat] = Field(default=None, alias="totalCost")
+ acronym: StrictStr | None = None
+ content_update_date: datetime | None = Field(default=None, alias="contentUpdateDate")
+ ec_max_contribution: StrictFloat | None = Field(default=None, alias="ecMaxContribution")
+ ec_signature_date: date | None = Field(default=None, alias="ecSignatureDate")
+ end_date: date | None = Field(default=None, alias="endDate")
+ framework_programme: StrictStr | None = Field(default=None, alias="frameworkProgramme")
+ funding_scheme: StrictStr | None = Field(default=None, alias="fundingScheme")
+ grant_doi: StrictStr | None = Field(default=None, alias="grantDoi")
+ human_validated: StrictBool | None = Field(default=None, alias="humanValidated")
+ id: StrictStr | None = None
+ keywords: StrictStr | None = None
+ legal_basis: StrictStr | None = Field(default=None, alias="legalBasis")
+ master_call: StrictStr | None = Field(default=None, alias="masterCall")
+ nature: StrictStr | None = None
+ objective: StrictStr | None = None
+ rcn: StrictStr | None = None
+ start_date: date | None = Field(default=None, alias="startDate")
+ status: StrictStr | None = None
+ sub_call: StrictStr | None = Field(default=None, alias="subCall")
+ title: StrictStr | None = None
+ topics: StrictStr | None = None
+ total_cost: StrictFloat | None = Field(default=None, alias="totalCost")
# Related entities (collections)
- organizations: Optional[List[HEUOrganization]] = Field(default=None, description="Organizations participating in the project")
- publications: Optional[List[HEUPublication]] = Field(default=None, description="Publications related to the project")
- deliverables: Optional[List[HEUDeliverable]] = Field(default=None, description="Deliverables of the project")
- report_summaries: Optional[List[HEUReportSummary]] = Field(default=None, alias="reportSummaries", description="Report summaries for the project")
- topics_list: Optional[List[HEUTopic]] = Field(default=None, alias="topicsList", description="Topics associated with the project")
- web_links: Optional[List[HEUWebLink]] = Field(default=None, alias="webLinks", description="Web links related to the project")
- eurosci_voc: Optional[List[HEUEurosciVoc]] = Field(default=None, alias="eurosciVoc", description="EuroSciVoc classifications")
- legal_basis_list: Optional[List[HEULegalBasis]] = Field(default=None, alias="legalBasisList", description="Legal basis information")
+ organizations: list[HEUOrganization] | None = Field(default=None, description="Organizations participating in the project")
+ publications: list[HEUPublication] | None = Field(default=None, description="Publications related to the project")
+ deliverables: list[HEUDeliverable] | None = Field(default=None, description="Deliverables of the project")
+ report_summaries: list[HEUReportSummary] | None = Field(default=None, alias="reportSummaries", description="Report summaries for the project")
+ topics_list: list[HEUTopic] | None = Field(default=None, alias="topicsList", description="Topics associated with the project")
+ web_links: list[HEUWebLink] | None = Field(default=None, alias="webLinks", description="Web links related to the project")
+ eurosci_voc: list[HEUEurosciVoc] | None = Field(default=None, alias="eurosciVoc", description="EuroSciVoc classifications")
+ legal_basis_list: list[HEULegalBasis] | None = Field(default=None, alias="legalBasisList", description="Legal basis information")
# Project statistics (aggregated)
- organization_count: Optional[int] = Field(default=None, alias="organizationCount")
- publication_count: Optional[int] = Field(default=None, alias="publicationCount")
- deliverable_count: Optional[int] = Field(default=None, alias="deliverableCount")
-
- __properties: ClassVar[List[str]] = [
+ organization_count: int | None = Field(default=None, alias="organizationCount")
+ publication_count: int | None = Field(default=None, alias="publicationCount")
+ deliverable_count: int | None = Field(default=None, alias="deliverableCount")
+ # OpenAlex related fields
+ oa_topics: list[Topic] | None = Field(default=None, alias="oaTopics", description="OpenAlex topics associated with the project")
+ oa_authors: AuthorPage | None = Field(default=None, alias="oaAuthors", description="OpenAlex authors associated with the project")
+ __properties: ClassVar[list[str]] = [
"acronym", "contentUpdateDate", "ecMaxContribution", "ecSignatureDate",
"endDate", "frameworkProgramme", "fundingScheme", "grantDoi",
"humanValidated", "id", "keywords", "legalBasis", "masterCall",
@@ -79,7 +93,7 @@ class HEUProjectDetails(BaseModel):
"title", "topics", "totalCost",
"organizations", "publications", "deliverables", "reportSummaries",
"topicsList", "webLinks", "eurosciVoc", "legalBasisList",
- "organizationCount", "publicationCount", "deliverableCount"
+ "organizationCount", "publicationCount", "deliverableCount","oaTopics", "oaAuthors"
]
model_config = ConfigDict(
@@ -99,13 +113,13 @@ class HEUProjectDetails(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of HEUProjectDetailed from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias."""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -116,7 +130,7 @@ class HEUProjectDetails(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of HEUProjectDetailed from a dict"""
if obj is None:
return None
@@ -170,14 +184,16 @@ class HEUProjectDetails(BaseModel):
def from_project_with_relations(
cls,
project: HEUProject,
- organizations: Optional[List[HEUOrganization]] = None,
- publications: Optional[List[HEUPublication]] = None,
- deliverables: Optional[List[HEUDeliverable]] = None,
- report_summaries: Optional[List[HEUReportSummary]] = None,
- topics_list: Optional[List[HEUTopic]] = None,
- web_links: Optional[List[HEUWebLink]] = None,
- eurosci_voc: Optional[List[HEUEurosciVoc]] = None,
- legal_basis_list: Optional[List[HEULegalBasis]] = None,
+ organizations: list[HEUOrganization] | None = None,
+ publications: list[HEUPublication] | None = None,
+ deliverables: list[HEUDeliverable] | None = None,
+ report_summaries: list[HEUReportSummary] | None = None,
+ topics_list: list[HEUTopic] | None = None,
+ web_links: list[HEUWebLink] | None = None,
+ eurosci_voc: list[HEUEurosciVoc] | None = None,
+ legal_basis_list: list[HEULegalBasis] | None = None,
+ oa_topics: list[Topic] | None = None,
+ oa_authors: AuthorPage | None = None,
) -> Self:
"""
Factory method to create a detailed project from a base project and its relations.
@@ -211,4 +227,6 @@ class HEUProjectDetails(BaseModel):
organizationCount=len(organizations) if organizations else 0,
publicationCount=len(publications) if publications else 0,
deliverableCount=len(deliverables) if deliverables else 0,
+ oa_authors=oa_authors,
+ oa_topics=oa_topics or [],
)
\ No newline at end of file
diff --git a/service/src/main/inse/models/projects_eu_cordis/horizon_europe/heu_publication.py b/service/src/main/inse/models/projects_eu_cordis/horizon_europe/heu_publication.py
index 9d3424df..97d678f4 100644
--- a/service/src/main/inse/models/projects_eu_cordis/horizon_europe/heu_publication.py
+++ b/service/src/main/inse/models/projects_eu_cordis/horizon_europe/heu_publication.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
CORDIS Horizon Europe Multi-Index API
@@ -9,44 +8,47 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
-
from datetime import datetime
+from typing import Any, ClassVar, Self
+
+from inse.authors.v2.model import Author
from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
from pydantic_core import to_jsonable_python
+
class HEUPublication(BaseModel):
"""
HEUPublication
- """ # noqa: E501
- authors: Optional[StrictStr] = None
- collection: Optional[StrictStr] = None
- content_update_date: Optional[datetime] = Field(default=None, alias="contentUpdateDate")
- doi: Optional[StrictStr] = None
- id: Optional[StrictStr] = None
- is_published_as: Optional[StrictStr] = Field(default=None, alias="isPublishedAs")
- journal_number: Optional[StrictStr] = Field(default=None, alias="journalNumber")
- journal_title: Optional[StrictStr] = Field(default=None, alias="journalTitle")
- project_acronym: Optional[StrictStr] = Field(default=None, alias="projectAcronym")
- project_id: Optional[StrictStr] = Field(default=None, alias="projectID")
- published_pages: Optional[StrictStr] = Field(default=None, alias="publishedPages")
- published_year: Optional[StrictInt] = Field(default=None, alias="publishedYear")
- publisher: Optional[StrictStr] = None
- qa_processed_doi: Optional[StrictStr] = Field(default=None, alias="qaProcessedDoi")
- rcn: Optional[StrictStr] = None
- repository_url: Optional[StrictStr] = Field(default=None, alias="repositoryUrl")
- title: Optional[StrictStr] = None
- volume: Optional[StrictStr] = None
- __properties: ClassVar[List[str]] = ["authors", "collection", "contentUpdateDate", "doi", "id", "isPublishedAs", "journalNumber", "journalTitle", "projectAcronym", "projectID", "publishedPages", "publishedYear", "publisher", "qaProcessedDoi", "rcn", "repositoryUrl", "title", "volume"]
+ """
+ authors: StrictStr | None = None
+ oa_authors: list[Author] | None = Field(default=None, alias="oaAuthors", description="OpenAlex authors matched to this publication's DOI")
+ collection: StrictStr | None = None
+ content_update_date: datetime | None = Field(default=None, alias="contentUpdateDate")
+ doi: StrictStr | None = None
+ id: StrictStr | None = None
+ is_published_as: StrictStr | None = Field(default=None, alias="isPublishedAs")
+ journal_number: StrictStr | None = Field(default=None, alias="journalNumber")
+ journal_title: StrictStr | None = Field(default=None, alias="journalTitle")
+ project_acronym: StrictStr | None = Field(default=None, alias="projectAcronym")
+ project_id: StrictStr | None = Field(default=None, alias="projectID")
+ published_pages: StrictStr | None = Field(default=None, alias="publishedPages")
+ published_year: StrictInt | None = Field(default=None, alias="publishedYear")
+ publisher: StrictStr | None = None
+ qa_processed_doi: StrictStr | None = Field(default=None, alias="qaProcessedDoi")
+ rcn: StrictStr | None = None
+ repository_url: StrictStr | None = Field(default=None, alias="repositoryUrl")
+ title: StrictStr | None = None
+ volume: StrictStr | None = None
+ oa_authors: list[Author] | None = Field(default=None, alias="oaAuthors", description="OpenAlex authors matched to this publication's DOI")
+ __properties: ClassVar[list[str]] = ["authors", "collection", "contentUpdateDate", "doi", "id", "isPublishedAs", "journalNumber", "journalTitle", "projectAcronym", "projectID", "publishedPages", "publishedYear", "publisher", "qaProcessedDoi", "rcn", "repositoryUrl", "title", "volume", "oaAuthors"]
model_config = ConfigDict(
validate_by_name=True,
@@ -65,11 +67,11 @@ class HEUPublication(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of HEUPublication from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -79,7 +81,7 @@ class HEUPublication(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -90,7 +92,7 @@ class HEUPublication(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of HEUPublication from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/projects_eu_cordis/horizon_europe/heu_report_summary.py b/service/src/main/inse/models/projects_eu_cordis/horizon_europe/heu_report_summary.py
index bf5850fc..a4692e5c 100644
--- a/service/src/main/inse/models/projects_eu_cordis/horizon_europe/heu_report_summary.py
+++ b/service/src/main/inse/models/projects_eu_cordis/horizon_europe/heu_report_summary.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
CORDIS Horizon Europe Multi-Index API
@@ -9,33 +8,33 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
-
from datetime import datetime
+from typing import Any, ClassVar, Self
+
from pydantic import BaseModel, ConfigDict, Field, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
from pydantic_core import to_jsonable_python
+
class HEUReportSummary(BaseModel):
"""
HEUReportSummary
- """ # noqa: E501
- attachments: Optional[StrictStr] = None
- content_update_date: Optional[datetime] = Field(default=None, alias="contentUpdateDate")
- id: Optional[StrictStr] = None
- project_acronym: Optional[StrictStr] = Field(default=None, alias="projectAcronym")
- project_id: Optional[StrictStr] = Field(default=None, alias="projectID")
- rcn: Optional[StrictStr] = None
- title: Optional[StrictStr] = None
- __properties: ClassVar[List[str]] = ["attachments", "contentUpdateDate", "id", "projectAcronym", "projectID", "rcn", "title"]
+ """
+ attachments: StrictStr | None = None
+ content_update_date: datetime | None = Field(default=None, alias="contentUpdateDate")
+ id: StrictStr | None = None
+ project_acronym: StrictStr | None = Field(default=None, alias="projectAcronym")
+ project_id: StrictStr | None = Field(default=None, alias="projectID")
+ rcn: StrictStr | None = None
+ title: StrictStr | None = None
+ __properties: ClassVar[list[str]] = ["attachments", "contentUpdateDate", "id", "projectAcronym", "projectID", "rcn", "title"]
model_config = ConfigDict(
validate_by_name=True,
@@ -54,11 +53,11 @@ class HEUReportSummary(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of HEUReportSummary from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -68,7 +67,7 @@ class HEUReportSummary(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -79,7 +78,7 @@ class HEUReportSummary(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of HEUReportSummary from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/projects_eu_cordis/horizon_europe/heu_topic.py b/service/src/main/inse/models/projects_eu_cordis/horizon_europe/heu_topic.py
index 4aa58787..1830c3d3 100644
--- a/service/src/main/inse/models/projects_eu_cordis/horizon_europe/heu_topic.py
+++ b/service/src/main/inse/models/projects_eu_cordis/horizon_europe/heu_topic.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
CORDIS Horizon Europe Multi-Index API
@@ -9,29 +8,29 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
+from typing import Any, ClassVar, Self
from pydantic import BaseModel, ConfigDict, Field, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
from pydantic_core import to_jsonable_python
+
class HEUTopic(BaseModel):
"""
HEUTopic
- """ # noqa: E501
- id: Optional[StrictStr] = None
- project_id: Optional[StrictStr] = Field(default=None, alias="projectID")
- title: Optional[StrictStr] = None
- topic: Optional[StrictStr] = None
- __properties: ClassVar[List[str]] = ["id", "projectID", "title", "topic"]
+ """
+ id: StrictStr | None = None
+ project_id: StrictStr | None = Field(default=None, alias="projectID")
+ title: StrictStr | None = None
+ topic: StrictStr | None = None
+ __properties: ClassVar[list[str]] = ["id", "projectID", "title", "topic"]
model_config = ConfigDict(
validate_by_name=True,
@@ -50,11 +49,11 @@ class HEUTopic(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of HEUTopic from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -64,7 +63,7 @@ class HEUTopic(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -75,7 +74,7 @@ class HEUTopic(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of HEUTopic from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/projects_eu_cordis/horizon_europe/heu_web_link.py b/service/src/main/inse/models/projects_eu_cordis/horizon_europe/heu_web_link.py
index 50797815..937cd295 100644
--- a/service/src/main/inse/models/projects_eu_cordis/horizon_europe/heu_web_link.py
+++ b/service/src/main/inse/models/projects_eu_cordis/horizon_europe/heu_web_link.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
CORDIS Horizon Europe Multi-Index API
@@ -9,36 +8,36 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
-
from datetime import datetime
+from typing import Any, ClassVar, Self
+
from pydantic import BaseModel, ConfigDict, Field, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
from pydantic_core import to_jsonable_python
+
class HEUWebLink(BaseModel):
"""
HEUWebLink
- """ # noqa: E501
- archived_date: Optional[datetime] = Field(default=None, alias="archivedDate")
- available_languages: Optional[StrictStr] = Field(default=None, alias="availableLanguages")
- id: Optional[StrictStr] = None
- link_id: Optional[StrictStr] = Field(default=None, alias="linkId")
- project_id: Optional[StrictStr] = Field(default=None, alias="projectID")
- represents: Optional[StrictStr] = None
- source: Optional[StrictStr] = None
- status: Optional[StrictStr] = None
- type: Optional[StrictStr] = None
- url: Optional[StrictStr] = None
- __properties: ClassVar[List[str]] = ["archivedDate", "availableLanguages", "id", "linkId", "projectID", "represents", "source", "status", "type", "url"]
+ """
+ archived_date: datetime | None = Field(default=None, alias="archivedDate")
+ available_languages: StrictStr | None = Field(default=None, alias="availableLanguages")
+ id: StrictStr | None = None
+ link_id: StrictStr | None = Field(default=None, alias="linkId")
+ project_id: StrictStr | None = Field(default=None, alias="projectID")
+ represents: StrictStr | None = None
+ source: StrictStr | None = None
+ status: StrictStr | None = None
+ type: StrictStr | None = None
+ url: StrictStr | None = None
+ __properties: ClassVar[list[str]] = ["archivedDate", "availableLanguages", "id", "linkId", "projectID", "represents", "source", "status", "type", "url"]
model_config = ConfigDict(
validate_by_name=True,
@@ -57,11 +56,11 @@ class HEUWebLink(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of HEUWebLink from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -71,7 +70,7 @@ class HEUWebLink(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -82,7 +81,7 @@ class HEUWebLink(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of HEUWebLink from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/ude_organizations/keyword_object.py b/service/src/main/inse/models/ude_organizations/keyword_object.py
index f5584e02..551e76d5 100644
--- a/service/src/main/inse/models/ude_organizations/keyword_object.py
+++ b/service/src/main/inse/models/ude_organizations/keyword_object.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
UDE Organization Content Index Backend Models
@@ -9,27 +8,27 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
+from typing import Any, ClassVar, Self
from pydantic import BaseModel, ConfigDict, StrictFloat, StrictInt, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional, Union
-from typing import Optional, Set
-from typing_extensions import Self
from pydantic_core import to_jsonable_python
+
class KeywordObject(BaseModel):
"""
Object structure for keywords and their assigned scores.
- """ # noqa: E501
- score: Optional[Union[StrictFloat, StrictInt]] = None
- value: Optional[StrictStr] = None
- __properties: ClassVar[List[str]] = ["score", "value"]
+ """
+ score: StrictFloat | StrictInt | None = None
+ value: StrictStr | None = None
+ __properties: ClassVar[list[str]] = ["score", "value"]
model_config = ConfigDict(
validate_by_name=True,
@@ -48,11 +47,11 @@ class KeywordObject(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of KeywordObject from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -62,7 +61,7 @@ class KeywordObject(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -73,7 +72,7 @@ class KeywordObject(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of KeywordObject from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/ude_organizations/news_object.py b/service/src/main/inse/models/ude_organizations/news_object.py
index 4348bf4b..39399107 100644
--- a/service/src/main/inse/models/ude_organizations/news_object.py
+++ b/service/src/main/inse/models/ude_organizations/news_object.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
UDE Organization Content Index Backend Models
@@ -9,31 +8,31 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
+from typing import Any, ClassVar, Self
from pydantic import BaseModel, ConfigDict, Field, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
from pydantic_core import to_jsonable_python
+
class NewsObject(BaseModel):
"""
Object structure for related news content.
- """ # noqa: E501
- var_date: Optional[StrictStr] = Field(default=None, alias="date")
- keywords: Optional[StrictStr] = None
- links: Optional[StrictStr] = None
- source: Optional[StrictStr] = None
- title: Optional[StrictStr] = None
- topic: Optional[StrictStr] = None
- __properties: ClassVar[List[str]] = ["date", "keywords", "links", "source", "title", "topic"]
+ """
+ var_date: StrictStr | None = Field(default=None, alias="date")
+ keywords: StrictStr | None = None
+ links: StrictStr | None = None
+ source: StrictStr | None = None
+ title: StrictStr | None = None
+ topic: StrictStr | None = None
+ __properties: ClassVar[list[str]] = ["date", "keywords", "links", "source", "title", "topic"]
model_config = ConfigDict(
validate_by_name=True,
@@ -52,11 +51,11 @@ class NewsObject(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of NewsObject from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -66,7 +65,7 @@ class NewsObject(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -77,7 +76,7 @@ class NewsObject(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of NewsObject from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/ude_organizations/project_object.py b/service/src/main/inse/models/ude_organizations/project_object.py
index dc0e9514..0243af6c 100644
--- a/service/src/main/inse/models/ude_organizations/project_object.py
+++ b/service/src/main/inse/models/ude_organizations/project_object.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
UDE Organization Content Index Backend Models
@@ -9,31 +8,31 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
+from typing import Any, ClassVar, Self
from pydantic import BaseModel, ConfigDict, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
from pydantic_core import to_jsonable_python
+
class ProjectObject(BaseModel):
"""
Object structure for related projects.
- """ # noqa: E501
- keywords: Optional[StrictStr] = None
- links: Optional[StrictStr] = None
- names: Optional[StrictStr] = None
- project_type: Optional[StrictStr] = None
- title: Optional[StrictStr] = None
- topic: Optional[StrictStr] = None
- __properties: ClassVar[List[str]] = ["keywords", "links", "names", "project_type", "title", "topic"]
+ """
+ keywords: StrictStr | None = None
+ links: StrictStr | None = None
+ names: StrictStr | None = None
+ project_type: StrictStr | None = None
+ title: StrictStr | None = None
+ topic: StrictStr | None = None
+ __properties: ClassVar[list[str]] = ["keywords", "links", "names", "project_type", "title", "topic"]
model_config = ConfigDict(
validate_by_name=True,
@@ -52,11 +51,11 @@ class ProjectObject(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of ProjectObject from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -66,7 +65,7 @@ class ProjectObject(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -77,7 +76,7 @@ class ProjectObject(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of ProjectObject from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/ude_organizations/staff_object.py b/service/src/main/inse/models/ude_organizations/staff_object.py
index b6629a2e..1564b0e4 100644
--- a/service/src/main/inse/models/ude_organizations/staff_object.py
+++ b/service/src/main/inse/models/ude_organizations/staff_object.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
UDE Organization Content Index Backend Models
@@ -9,32 +8,32 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
+from typing import Any, ClassVar, Self
from pydantic import BaseModel, ConfigDict, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
from pydantic_core import to_jsonable_python
+
class StaffObject(BaseModel):
"""
Object structure for related staff members.
- """ # noqa: E501
- email: Optional[StrictStr] = None
- keywords: Optional[StrictStr] = None
- links: Optional[StrictStr] = None
- name: Optional[StrictStr] = None
- research_interests: Optional[StrictStr] = None
- source: Optional[StrictStr] = None
- telefon: Optional[StrictStr] = None
- __properties: ClassVar[List[str]] = ["email", "keywords", "links", "name", "research_interests", "source", "telefon"]
+ """
+ email: StrictStr | None = None
+ keywords: StrictStr | None = None
+ links: StrictStr | None = None
+ name: StrictStr | None = None
+ research_interests: StrictStr | None = None
+ source: StrictStr | None = None
+ telefon: StrictStr | None = None
+ __properties: ClassVar[list[str]] = ["email", "keywords", "links", "name", "research_interests", "source", "telefon"]
model_config = ConfigDict(
validate_by_name=True,
@@ -53,11 +52,11 @@ class StaffObject(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of StaffObject from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -67,7 +66,7 @@ class StaffObject(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -78,7 +77,7 @@ class StaffObject(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of StaffObject from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/ude_organizations/ude_organization_content.py b/service/src/main/inse/models/ude_organizations/ude_organization_content.py
index 879ec30f..b4bf5c1d 100644
--- a/service/src/main/inse/models/ude_organizations/ude_organization_content.py
+++ b/service/src/main/inse/models/ude_organizations/ude_organization_content.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
UDE Organization Content Index Backend Models
@@ -9,34 +8,34 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
+from typing import Any, ClassVar, Self
-from pydantic import BaseModel, ConfigDict, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
from inse.models.ude_organizations.keyword_object import KeywordObject
from inse.models.ude_organizations.news_object import NewsObject
from inse.models.ude_organizations.project_object import ProjectObject
from inse.models.ude_organizations.staff_object import StaffObject
-from typing import Optional, Set
-from typing_extensions import Self
+from pydantic import BaseModel, ConfigDict, StrictStr
from pydantic_core import to_jsonable_python
+
class UdeOrganizationContent(BaseModel):
"""
Main document model for the ude_organization_content_august_2025 index.
- """ # noqa: E501
- keywords: Optional[KeywordObject] = None
- news: Optional[NewsObject] = None
- projects: Optional[ProjectObject] = None
- staff: Optional[StaffObject] = None
- uri: Optional[StrictStr] = None
- __properties: ClassVar[List[str]] = ["keywords", "news", "projects", "staff", "uri"]
+ """
+ keywords: KeywordObject | None = None
+ news: NewsObject | None = None
+ projects: ProjectObject | None = None
+ staff: StaffObject | None = None
+ uri: StrictStr | None = None
+ __properties: ClassVar[list[str]] = ["keywords", "news", "projects", "staff", "uri"]
model_config = ConfigDict(
validate_by_name=True,
@@ -55,11 +54,11 @@ class UdeOrganizationContent(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of UdeOrganizationContent from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -69,7 +68,7 @@ class UdeOrganizationContent(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -92,7 +91,7 @@ class UdeOrganizationContent(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of UdeOrganizationContent from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/ude_persons/function_nested.py b/service/src/main/inse/models/ude_persons/function_nested.py
index 97e618be..a21f6da6 100644
--- a/service/src/main/inse/models/ude_persons/function_nested.py
+++ b/service/src/main/inse/models/ude_persons/function_nested.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
UDE Persons Index Backend Models
@@ -9,27 +8,27 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
+from typing import Any, ClassVar, Self
from pydantic import BaseModel, ConfigDict, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
from pydantic_core import to_jsonable_python
+
class FunctionNested(BaseModel):
"""
Nested object for a person's functions and facilities.
- """ # noqa: E501
- facility: Optional[StrictStr] = None
- function: Optional[StrictStr] = None
- __properties: ClassVar[List[str]] = ["facility", "function"]
+ """
+ facility: StrictStr | None = None
+ function: StrictStr | None = None
+ __properties: ClassVar[list[str]] = ["facility", "function"]
model_config = ConfigDict(
validate_by_name=True,
@@ -48,11 +47,11 @@ class FunctionNested(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of FunctionNested from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -62,7 +61,7 @@ class FunctionNested(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -73,7 +72,7 @@ class FunctionNested(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of FunctionNested from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/models/ude_persons/ude_person.py b/service/src/main/inse/models/ude_persons/ude_person.py
index 80c08da0..9c4c084b 100644
--- a/service/src/main/inse/models/ude_persons/ude_person.py
+++ b/service/src/main/inse/models/ude_persons/ude_person.py
@@ -1,4 +1,3 @@
-# coding: utf-8
"""
UDE Persons Index Backend Models
@@ -9,42 +8,42 @@
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
-""" # noqa: E501
+"""
from __future__ import annotations
+
+import json
import pprint
import re # noqa: F401
-import json
+from typing import Any, ClassVar, Self
-from pydantic import BaseModel, ConfigDict, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
from inse.models.ude_persons.function_nested import FunctionNested
-from typing import Optional, Set
-from typing_extensions import Self
+from pydantic import BaseModel, ConfigDict, StrictStr
from pydantic_core import to_jsonable_python
+
class UdePerson(BaseModel):
"""
Main document model for the ude_persons_1.0 index.
- """ # noqa: E501
- affiliation_chair: Optional[StrictStr] = None
- affiliation_faculty: Optional[StrictStr] = None
- affiliation_institute: Optional[StrictStr] = None
- affiliation_university: Optional[StrictStr] = None
- firstname: Optional[StrictStr] = None
- functions: Optional[List[FunctionNested]] = None
- location: Optional[StrictStr] = None
- lsf_id: Optional[StrictStr] = None
- mail: Optional[StrictStr] = None
- name: Optional[StrictStr] = None
- room: Optional[StrictStr] = None
- surname: Optional[StrictStr] = None
- telefax: Optional[StrictStr] = None
- telefon: Optional[StrictStr] = None
- title: Optional[StrictStr] = None
- web: Optional[StrictStr] = None
- __properties: ClassVar[List[str]] = ["affiliation_chair", "affiliation_faculty", "affiliation_institute", "affiliation_university", "firstname", "functions", "location", "lsf_id", "mail", "name", "room", "surname", "telefax", "telefon", "title", "web"]
+ """
+ affiliation_chair: StrictStr | None = None
+ affiliation_faculty: StrictStr | None = None
+ affiliation_institute: StrictStr | None = None
+ affiliation_university: StrictStr | None = None
+ firstname: StrictStr | None = None
+ functions: list[FunctionNested] | None = None
+ location: StrictStr | None = None
+ lsf_id: StrictStr | None = None
+ mail: StrictStr | None = None
+ name: StrictStr | None = None
+ room: StrictStr | None = None
+ surname: StrictStr | None = None
+ telefax: StrictStr | None = None
+ telefon: StrictStr | None = None
+ title: StrictStr | None = None
+ web: StrictStr | None = None
+ __properties: ClassVar[list[str]] = ["affiliation_chair", "affiliation_faculty", "affiliation_institute", "affiliation_university", "firstname", "functions", "location", "lsf_id", "mail", "name", "room", "surname", "telefax", "telefon", "title", "web"]
model_config = ConfigDict(
validate_by_name=True,
@@ -63,11 +62,11 @@ class UdePerson(BaseModel):
return json.dumps(to_jsonable_python(self.to_dict()))
@classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
+ def from_json(cls, json_str: str) -> Self | None:
"""Create an instance of UdePerson from a JSON string"""
return cls.from_dict(json.loads(json_str))
- def to_dict(self) -> Dict[str, Any]:
+ def to_dict(self) -> dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
@@ -77,7 +76,7 @@ class UdePerson(BaseModel):
were set at model initialization. Other fields with value `None`
are ignored.
"""
- excluded_fields: Set[str] = set([
+ excluded_fields: set[str] = set([
])
_dict = self.model_dump(
@@ -95,7 +94,7 @@ class UdePerson(BaseModel):
return _dict
@classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ def from_dict(cls, obj: dict[str, Any] | None) -> Self | None:
"""Create an instance of UdePerson from a dict"""
if obj is None:
return None
diff --git a/service/src/main/inse/news/logic.py b/service/src/main/inse/news/logic.py
index bb423948..9e07315b 100644
--- a/service/src/main/inse/news/logic.py
+++ b/service/src/main/inse/news/logic.py
@@ -1,27 +1,35 @@
-#!/usr/bin/env python
-# -*- coding: utf-8 -*-
+
"""
Business logic for the "aktuell" news index on the INSE cluster.
"""
-import json
import logging
-import re
+
+from pydantic import ValidationError
from inse.exceptions import ElasticsearchException
from ..integrations import elasticsearch, llm
from ..persons.logic import find_ude_author_by_name, get_author_name_by_id
-from ..topics.logic import vector_search_topics
-from .model import MatchedTopic, MentionedPerson, NewsArticle, NewsArticleDetail, NewsPage
+from ..topics.logic import vector_search_topics_batch
+from .model import (
+ MatchedTopic,
+ MentionedPerson,
+ NewsArticle,
+ NewsArticleDetail,
+ NewsKeywords,
+ NewsPage,
+)
logger = logging.getLogger(__name__)
-TOPIC_LIMIT = 4
-TOPIC_QUERY_CONTENT_CHARS = 300
TOPIC_NUM_CANDIDATES = 100
TOPIC_SIMILARITY = 0.5
-TOPIC_MATCHES_PER_KEYWORD = 1
+
+TOPICS_INDEX = "aktuell_openalex_topics"
+TOPICS_INDEX_MAX_PAIRS = 100
+
+_SESSION_TOPIC_CACHE: dict[str, list] = {}
KEYWORD_LIMIT = 6
KEYWORD_CONTENT_CHARS = 4000
@@ -246,21 +254,21 @@ async def get_news_by_id(news_id: str) -> NewsArticleDetail:
source=["date", "maintitle", "author", "url", "full_content"],
cluster="inse",
)
- except ElasticsearchException as exc:
+ except ElasticsearchException:
logger.exception("Abruf des News-Artikels fehlgeschlagen.")
raise
source = response.get("_source", {})
relevant, authors, cached_keywords, postproc_id = await _get_postproc_labels(news_id)
- keywords = await _get_article_keywords(
+ keywords, postproc_id = await _get_article_keywords(
news_id,
postproc_id,
cached_keywords,
source.get("maintitle"),
source.get("full_content"),
)
- topics = await _match_topics_for_keywords(keywords)
+ topics = await _get_article_topics(news_id, keywords)
return NewsArticleDetail(
id=response.get("_id"),
@@ -282,47 +290,94 @@ async def _get_article_keywords(
cached_keywords: list,
maintitle: str | None,
full_content: str | None,
-) -> list:
+) -> tuple[list, str | None]:
if cached_keywords:
- return cached_keywords
+ return cached_keywords, postproc_id
text = " ".join(
part for part in (maintitle, (full_content or "")[:KEYWORD_CONTENT_CHARS]) if part
).strip()
if not text:
- return []
+ return [], postproc_id
- raw = await llm.call(
+ response = await llm.call(
system_prompt=KEYWORD_SYSTEM_PROMPT,
user_prompt=f"Artikel:\n{text}",
+ json_schema=NewsKeywords.model_json_schema(),
+ schema_name="keywords",
temperature=0.3,
)
- keywords = _parse_keywords(raw)
-
- if keywords:
- await _store_keywords(news_id, postproc_id, keywords)
-
- return keywords
-
-
-def _parse_keywords(raw: str) -> list:
- raw = (raw or "").strip()
try:
- parsed = json.loads(raw)
- if isinstance(parsed, list):
- candidates = parsed
- elif isinstance(parsed, dict):
- candidates = parsed.get("keywords", [])
- else:
- candidates = []
- except (json.JSONDecodeError, TypeError):
- candidates = re.split(r"[,\n]", raw)
+ keywords = _normalize_keywords(NewsKeywords.model_validate_json(response).keywords)
+ except ValidationError:
+ logger.warning(f"Keyword extraction for news {news_id} returned no valid JSON: {response}")
+ keywords = []
+ if keywords:
+ postproc_id = await _store_keywords(news_id, postproc_id, keywords)
+
+ return keywords, postproc_id
+
+
+async def _get_article_topics(news_id: str, keywords: list) -> list:
+ indexed = await get_article_topics_from_index(news_id)
+ if indexed:
+ return indexed
+
+ if news_id in _SESSION_TOPIC_CACHE:
+ return _SESSION_TOPIC_CACHE[news_id]
+
+ topics = await _match_topics_for_keywords(keywords)
+
+ if topics:
+ _SESSION_TOPIC_CACHE[news_id] = topics
+
+ return topics
+
+
+async def get_article_topics_from_index(news_id: str) -> list:
+ try:
+ response = await elasticsearch.search(
+ index=TOPICS_INDEX,
+ query={"term": {"news_id.keyword": news_id}},
+ source=["keyword", "topic_matches"],
+ size=TOPICS_INDEX_MAX_PAIRS,
+ cluster="inse",
+ )
+ except Exception:
+ logger.exception(f"Topic-index lookup for {news_id} failed.")
+ return []
+
+ matched = []
+ seen_ids = set()
+ for hit in response.get("hits", {}).get("hits", []):
+ source = hit.get("_source", {})
+ keyword = source.get("keyword")
+ for match in source.get("topic_matches") or []:
+ topic_id = match.get("topic_id")
+ if not topic_id or topic_id in seen_ids:
+ continue
+ seen_ids.add(topic_id)
+ matched.append(
+ MatchedTopic(
+ id=topic_id,
+ display_name=match.get("topic_display_name"),
+ subfield_name=match.get("subfield"),
+ field_name=match.get("field"),
+ domain_name=match.get("domain"),
+ source_keyword=keyword,
+ )
+ )
+ return matched
+
+
+def _normalize_keywords(candidates: list) -> list:
+ """Trims, dedups (case-insensitive) and caps the keywords from the LLM."""
seen = set()
keywords = []
for item in candidates:
- term = str(item).strip().strip('"').strip()
+ term = item.strip().strip('"').strip()
if term and term.lower() not in seen:
seen.add(term.lower())
keywords.append(term)
@@ -330,7 +385,8 @@ def _parse_keywords(raw: str) -> list:
return keywords[:KEYWORD_LIMIT]
-async def _store_keywords(news_id: str, postproc_id: str | None, keywords: list) -> None:
+async def _store_keywords(news_id: str, postproc_id: str | None, keywords: list) -> str | None:
+ """Caches the keywords and returns the postproc document id they landed in."""
try:
if postproc_id:
await elasticsearch.update(
@@ -339,42 +395,48 @@ async def _store_keywords(news_id: str, postproc_id: str | None, keywords: list)
doc={"keywords": keywords},
cluster="inse",
)
- else:
- await elasticsearch.index_doc(
- index="aktuell_postproc",
- doc_id=news_id,
- document={"news_id": news_id, "keywords": keywords},
- cluster="inse",
- )
+ return postproc_id
+
+ await elasticsearch.index_doc(
+ index="aktuell_postproc",
+ doc_id=news_id,
+ document={"news_id": news_id, "keywords": keywords},
+ cluster="inse",
+ )
+ return news_id
except Exception:
logger.exception(f"Failed to cache keywords for {news_id}.")
+ return postproc_id
async def _match_topics_for_keywords(keywords: list) -> list:
+ if not keywords:
+ return []
+
+ try:
+ response = await vector_search_topics_batch(keywords=keywords)
+ except Exception:
+ logger.exception(f"Topic-Matching fuer {len(keywords)} Keywords fehlgeschlagen.")
+ return []
+
matched = []
seen_ids = set()
- for keyword in keywords:
- try:
- response = await vector_search_topics(query=keyword, limit=TOPIC_MATCHES_PER_KEYWORD)
- except Exception:
- logger.exception(f"Topic-Matching fuer Keyword '{keyword}' fehlgeschlagen.")
+ for match in response.results or []:
+ topic = match.topic
+ if not topic or not topic.id or topic.id in seen_ids:
continue
-
- for topic in response.results or []:
- if not topic.id or topic.id in seen_ids:
- continue
- seen_ids.add(topic.id)
- matched.append(
- MatchedTopic(
- id=topic.id,
- display_name=topic.display_name,
- subfield_name=topic.subfield.display_name if topic.subfield else None,
- field_name=topic.var_field.display_name if topic.var_field else None,
- domain_name=topic.domain.display_name if topic.domain else None,
- source_keyword=keyword,
- )
+ seen_ids.add(topic.id)
+ matched.append(
+ MatchedTopic(
+ id=topic.id,
+ display_name=topic.display_name,
+ subfield_name=topic.subfield.display_name if topic.subfield else None,
+ field_name=topic.var_field.display_name if topic.var_field else None,
+ domain_name=topic.domain.display_name if topic.domain else None,
+ source_keyword=match.keyword,
)
+ )
return matched
@@ -467,7 +529,7 @@ async def _run_search(query: dict, source: list, size: int, offset: int, sort, h
highlight=highlight,
cluster="inse",
)
- except ElasticsearchException as exc:
+ except ElasticsearchException:
logger.exception("Elasticsearch-Anfrage an Index 'aktuell' fehlgeschlagen.")
raise
diff --git a/service/src/main/inse/news/model.py b/service/src/main/inse/news/model.py
index d6107d88..8ce160de 100644
--- a/service/src/main/inse/news/model.py
+++ b/service/src/main/inse/news/model.py
@@ -1,47 +1,49 @@
-#!/usr/bin/env python
-# -*- coding: utf-8 -*-
-from typing import List, Optional
-from pydantic import BaseModel
+
+from pydantic import BaseModel, Field
+
+
+class NewsKeywords(BaseModel):
+ keywords: list[str] = Field(description="The extracted keywords from the article.")
class NewsArticle(BaseModel):
id: str
- date: Optional[str] = None
- maintitle: Optional[str] = None
- author: Optional[str] = None
- url: Optional[str] = None
- relevant: Optional[bool] = None
- snippet: Optional[str] = None
- related: Optional[bool] = None
+ date: str | None = None
+ maintitle: str | None = None
+ author: str | None = None
+ url: str | None = None
+ relevant: bool | None = None
+ snippet: str | None = None
+ related: bool | None = None
class MentionedPerson(BaseModel):
name: str
is_ude: bool = False
- person_id: Optional[str] = None
+ person_id: str | None = None
class MatchedTopic(BaseModel):
- id: Optional[str] = None
- display_name: Optional[str] = None
- subfield_name: Optional[str] = None
- field_name: Optional[str] = None
- domain_name: Optional[str] = None
- source_keyword: Optional[str] = None
+ id: str | None = None
+ display_name: str | None = None
+ subfield_name: str | None = None
+ field_name: str | None = None
+ domain_name: str | None = None
+ source_keyword: str | None = None
class NewsArticleDetail(NewsArticle):
- full_content: Optional[str] = None
- relevant: Optional[bool] = None
- authors: List[MentionedPerson] = []
- keywords: List[str] = []
- topics: List[MatchedTopic] = []
+ full_content: str | None = None
+ relevant: bool | None = None
+ authors: list[MentionedPerson] = []
+ keywords: list[str] = []
+ topics: list[MatchedTopic] = []
class NewsPage(BaseModel):
total: int
page: int
page_size: int
- results: List[NewsArticle]
+ results: list[NewsArticle]
diff --git a/service/src/main/inse/news/service.py b/service/src/main/inse/news/service.py
index b183d6fa..74f300b9 100644
--- a/service/src/main/inse/news/service.py
+++ b/service/src/main/inse/news/service.py
@@ -1,16 +1,14 @@
-#!/usr/bin/env python
-# -*- coding: utf-8 -*-
+
"""
REST API for the "aktuell" news index.
"""
from typing import Annotated
-from fastapi import APIRouter
-from fastapi import Path
-from fastapi import Query
+from fastapi import APIRouter, Path, Query
from inse.tags import Tags
+
from . import logic
from .model import NewsArticleDetail, NewsPage
diff --git a/service/src/main/inse/organization_management/model.py b/service/src/main/inse/organization_management/model.py
index e5e0a615..8357daa9 100644
--- a/service/src/main/inse/organization_management/model.py
+++ b/service/src/main/inse/organization_management/model.py
@@ -1,5 +1,4 @@
import uuid
-from typing import List, Optional
from pydantic import BaseModel, Field
@@ -7,13 +6,13 @@ from pydantic import BaseModel, Field
class OrganizationProfile(BaseModel):
id: uuid.UUID
name: str
- other_inst_id: Optional[str] = None
+ other_inst_id: str | None = None
deleted: bool
member_count: int
class OrganizationPage(BaseModel):
- items: List[OrganizationProfile]
+ items: list[OrganizationProfile]
total: int
page: int
page_size: int
@@ -21,10 +20,10 @@ class OrganizationPage(BaseModel):
class CreateOrganizationRequest(BaseModel):
name: str = Field(min_length=1)
- other_inst_id: Optional[str] = None
+ other_inst_id: str | None = None
class UpdateOrganizationRequest(BaseModel):
- name: Optional[str] = Field(default=None, min_length=1)
- other_inst_id: Optional[str] = None
- deleted: Optional[bool] = None
+ name: str | None = Field(default=None, min_length=1)
+ other_inst_id: str | None = None
+ deleted: bool | None = None
diff --git a/service/src/main/inse/organization_management/router.py b/service/src/main/inse/organization_management/router.py
index 5a2db2bd..5232ca66 100644
--- a/service/src/main/inse/organization_management/router.py
+++ b/service/src/main/inse/organization_management/router.py
@@ -1,5 +1,4 @@
import uuid
-from typing import Optional
from fastapi import APIRouter, Depends, Query, Response, status
from sqlmodel import Session
@@ -24,7 +23,7 @@ router = APIRouter(prefix="/api/organizations", tags=[Tags.ORGANIZATION])
async def get_organizations(
page: int = Query(default=0, ge=0),
page_size: int = Query(default=25, ge=1, le=100),
- offset: Optional[int] = Query(default=None, ge=0),
+ offset: int | None = Query(default=None, ge=0),
session: Session = Depends(get_session),
access_token: AccessTokenMetadata = auth_service.CurrentUserAccessTokenPayloadDep,
) -> OrganizationPage:
diff --git a/service/src/main/inse/organization_management/service.py b/service/src/main/inse/organization_management/service.py
index 528bcf35..dcb06c30 100644
--- a/service/src/main/inse/organization_management/service.py
+++ b/service/src/main/inse/organization_management/service.py
@@ -1,5 +1,4 @@
import uuid
-from typing import Optional
from fastapi import HTTPException, status
from sqlmodel import Session, func, select
@@ -35,7 +34,7 @@ def _normalize_name(name: str) -> str:
def _ensure_name_available(
session: Session,
name: str,
- excluded_organization_id: Optional[uuid.UUID] = None,
+ excluded_organization_id: uuid.UUID | None = None,
) -> None:
statement = select(Organization).where(
func.lower(Organization.name) == name.lower()
@@ -72,8 +71,8 @@ def _member_counts(
select(Account.organization_id, func.count(Account.id))
.where(
Account.organization_id.in_(organization_ids),
- Account.deleted == False, # noqa: E712
- Account.activated == True, # noqa: E712
+ Account.deleted == False,
+ Account.activated == True,
)
.group_by(Account.organization_id)
).all()
@@ -98,7 +97,7 @@ def _deactivate_organization_accounts(
accounts = session.exec(
select(Account).where(
Account.organization_id == organization_id,
- Account.activated == True, # noqa: E712
+ Account.activated == True,
)
).all()
for account in accounts:
@@ -112,7 +111,7 @@ def get_organizations(
access_token: AccessTokenMetadata,
page: int,
page_size: int,
- offset: Optional[int] = None,
+ offset: int | None = None,
) -> OrganizationPage:
statement = select(Organization)
count_statement = select(func.count()).select_from(Organization)
diff --git a/service/src/main/inse/patents/__init__.py b/service/src/main/inse/patents/__init__.py
index d10d63ca..4f4c13ee 100644
--- a/service/src/main/inse/patents/__init__.py
+++ b/service/src/main/inse/patents/__init__.py
@@ -1,5 +1,4 @@
-#!/usr/bin/env python
-# -*- coding: utf-8 -*-
+
"""
Patents domain package.
"""
diff --git a/service/src/main/inse/patents/all/logic.py b/service/src/main/inse/patents/all/logic.py
index 2abb9c43..0213dd0b 100644
--- a/service/src/main/inse/patents/all/logic.py
+++ b/service/src/main/inse/patents/all/logic.py
@@ -5,9 +5,11 @@ from datetime import datetime
import httpx
from fastapi import HTTPException
-from starlette.status import HTTP_404_NOT_FOUND
-from starlette.status import HTTP_502_BAD_GATEWAY
-from starlette.status import HTTP_503_SERVICE_UNAVAILABLE
+from starlette.status import (
+ HTTP_404_NOT_FOUND,
+ HTTP_502_BAD_GATEWAY,
+ HTTP_503_SERVICE_UNAVAILABLE,
+)
from inse.patents.common import model
from inse.patents.common.elastic_search_client import MissingApiKeyError
@@ -55,21 +57,38 @@ async def get_all_patents(
total = uspto_data.get("hits", {}).get("total", {}).get("value", 0)
else:
- half = size // 2
- epo_data, uspto_data = await asyncio.gather(
+ # Determine each source's total hit count for the current filters
+ # first: a fixed 50/50 split per page wastes half the page when one
+ # source has no matches at all for the requested range (e.g. USPTO
+ # has no data before 2014), so the split must adapt to how many
+ # hits each source actually has.
+ epo_count_data, uspto_count_data = await asyncio.gather(
all_patents_client.search_epo(
- all_patents_client.epo_query(page, half, search, sort_direction, year_from, year_to)
+ all_patents_client.epo_query(0, 0, search, sort_direction, year_from, year_to)
),
all_patents_client.search_uspto(
- all_patents_client.uspto_query(page, half, search, sort_direction, year_from, year_to)
+ all_patents_client.uspto_query(0, 0, search, sort_direction, year_from, year_to)
),
)
- patents = parse_epo_hits(epo_data) + parse_uspto_hits(uspto_data)
- total = (
- epo_data.get("hits", {}).get("total", {}).get("value", 0)
- + uspto_data.get("hits", {}).get("total", {}).get("value", 0)
+ epo_total = epo_count_data.get("hits", {}).get("total", {}).get("value", 0)
+ uspto_total = uspto_count_data.get("hits", {}).get("total", {}).get("value", 0)
+
+ epo_from, uspto_from, epo_take, uspto_take = _split_two_source_page(
+ page, size, epo_total, uspto_total
)
+ epo_query = all_patents_client.epo_query(0, epo_take, search, sort_direction, year_from, year_to)
+ epo_query["from"] = epo_from
+ uspto_query = all_patents_client.uspto_query(0, uspto_take, search, sort_direction, year_from, year_to)
+ uspto_query["from"] = uspto_from
+
+ epo_data, uspto_data = await asyncio.gather(
+ all_patents_client.search_epo(epo_query),
+ all_patents_client.search_uspto(uspto_query),
+ )
+ patents = parse_epo_hits(epo_data) + parse_uspto_hits(uspto_data)
+ total = epo_total + uspto_total
+
except MissingApiKeyError as exc:
raise HTTPException(
status_code=HTTP_503_SERVICE_UNAVAILABLE,
@@ -99,6 +118,42 @@ async def get_all_patents(
)
+def _split_two_source_page(
+ page: int,
+ size: int,
+ epo_total: int,
+ uspto_total: int,
+) -> tuple[int, int, int, int]:
+ """Compute (epo_from, uspto_from, epo_take, uspto_take) for a combined page.
+
+ Targets an even split per page, but once a source is exhausted for the
+ current filters (e.g. USPTO has no hits before 2014), the remaining slots
+ shift to the other source instead of leaving the page short.
+ """
+ half = size // 2
+ epo_from = 0
+ uspto_from = 0
+ epo_take = 0
+ uspto_take = 0
+
+ for _ in range(page + 1):
+ epo_remaining = max(epo_total - epo_from, 0)
+ uspto_remaining = max(uspto_total - uspto_from, 0)
+
+ epo_take = min(half, epo_remaining)
+ uspto_take = min(size - epo_take, uspto_remaining)
+
+ leftover = size - epo_take - uspto_take
+ if leftover > 0:
+ epo_take += min(leftover, epo_remaining - epo_take)
+
+ this_epo_from, this_uspto_from = epo_from, uspto_from
+ epo_from += epo_take
+ uspto_from += uspto_take
+
+ return this_epo_from, this_uspto_from, epo_take, uspto_take
+
+
def _normalize_patent_date(date_str: str) -> str:
return datetime.strptime(date_str.strip(), "%Y-%m-%d").strftime("%Y%m%d")
diff --git a/service/src/main/inse/patents/all/test_logic.py b/service/src/main/inse/patents/all/test_logic.py
new file mode 100644
index 00000000..5e3e4dc5
--- /dev/null
+++ b/service/src/main/inse/patents/all/test_logic.py
@@ -0,0 +1,54 @@
+from inse.patents.all.logic import _split_two_source_page
+
+
+def test_even_split_when_both_sources_have_enough_hits():
+ epo_from, uspto_from, epo_take, uspto_take = _split_two_source_page(
+ page=0, size=10, epo_total=100, uspto_total=100
+ )
+ assert (epo_from, uspto_from, epo_take, uspto_take) == (0, 0, 5, 5)
+
+
+def test_odd_size_no_longer_drops_an_item():
+ _, _, epo_take, uspto_take = _split_two_source_page(
+ page=0, size=11, epo_total=100, uspto_total=100
+ )
+ assert epo_take + uspto_take == 11
+
+
+def test_shifts_remaining_slots_to_epo_when_uspto_has_no_hits():
+ # e.g. year range entirely before USPTO's earliest indexed publication.
+ epo_from, uspto_from, epo_take, uspto_take = _split_two_source_page(
+ page=0, size=10, epo_total=100, uspto_total=0
+ )
+ assert (epo_from, uspto_from, epo_take, uspto_take) == (0, 0, 10, 0)
+
+
+def test_shifts_remaining_slots_to_uspto_when_epo_has_no_hits():
+ epo_from, uspto_from, epo_take, uspto_take = _split_two_source_page(
+ page=0, size=10, epo_total=0, uspto_total=100
+ )
+ assert (epo_from, uspto_from, epo_take, uspto_take) == (0, 0, 0, 10)
+
+
+def test_later_pages_advance_offsets_without_overlap_or_gaps():
+ epo_total, uspto_total = 3, 100
+ seen_epo: list[int] = []
+ seen_uspto: list[int] = []
+ for page in range(3):
+ epo_from, uspto_from, epo_take, uspto_take = _split_two_source_page(
+ page, size=10, epo_total=epo_total, uspto_total=uspto_total
+ )
+ seen_epo.append((epo_from, epo_take))
+ seen_uspto.append((uspto_from, uspto_take))
+
+ # EPO only has 3 hits total: page 0 exhausts it, later pages take none.
+ assert seen_epo == [(0, 3), (3, 0), (3, 0)]
+ # USPTO absorbs whatever EPO could not fill, contiguously across pages.
+ assert seen_uspto == [(0, 7), (7, 10), (17, 10)]
+
+
+def test_last_page_can_be_shorter_than_requested_size():
+ epo_from, uspto_from, epo_take, uspto_take = _split_two_source_page(
+ page=0, size=10, epo_total=2, uspto_total=3
+ )
+ assert (epo_from, uspto_from, epo_take, uspto_take) == (0, 0, 2, 3)
diff --git a/service/src/main/inse/patents/authors/identity.py b/service/src/main/inse/patents/authors/identity.py
index e3496202..3c71b879 100644
--- a/service/src/main/inse/patents/authors/identity.py
+++ b/service/src/main/inse/patents/authors/identity.py
@@ -5,14 +5,26 @@ that distinguish one same-named person from another.
"""
from __future__ import annotations
+from dataclasses import dataclass
+
from inse.models.openalex.author import Author
from inse.patents.authors.name_matching import (
+ _family_name_matches,
+ _given_name_matches,
first_name_match_kind_for_person,
name_matches_person,
+ tokens_equal,
)
-from inse.patents.authors.name_variants import parse_person_name
+from inse.patents.authors.name_variants import parse_inventor_name, parse_person_name
from inse.patents.common import model
-from inse.patents.institutions.name_matching import assignee_matches_institution_name
+from inse.patents.common.text_normalization import (
+ normalize_name_part,
+ strip_person_titles,
+)
+from inse.patents.institutions.name_matching import (
+ assignee_matches_institution_name,
+ is_generic_institution_name,
+)
# Ambiguity is derived purely from data that already exists in the project (the
# number of patent hits for the name and the number of same-named authors in the
@@ -24,6 +36,33 @@ PATENT_HIT_COUNT_THRESHOLD = 300
OPENALEX_FULL_NAME_COUNT_THRESHOLD = 2
OPENALEX_LAST_NAME_COUNT_THRESHOLD = 100
+_ORG_MARKERS = (
+ "llc",
+ "ltd",
+ "inc",
+ "gmbh",
+ "corp",
+ "corporation",
+ "company",
+ " co.",
+ "university",
+ "universit",
+ "institute",
+ "institut",
+ "foundation",
+ "hospital",
+ "college",
+ "limited",
+ " ag",
+ "bv",
+ "plc",
+ "kg",
+ "oy",
+ "sas",
+ "spa",
+ "srl",
+)
+
def is_ambiguous_name(
display_name: str | None,
@@ -95,6 +134,39 @@ def author_institution_names(author: Author) -> list[str]:
return names
+def author_last_known_institution_names(author: Author) -> list[str]:
+ names: list[str] = []
+ seen: set[str] = set()
+ for institution in author.last_known_institutions or []:
+ name = getattr(institution, "display_name", None)
+ if not name or not name.strip():
+ continue
+ key = name.casefold()
+ if key in seen:
+ continue
+ seen.add(key)
+ names.append(name.strip())
+ return names
+
+
+def author_historical_institution_names(author: Author) -> list[str]:
+ names: list[str] = []
+ seen: set[str] = set()
+ for affiliation in author.affiliations or []:
+ institution = getattr(affiliation, "institution", None)
+ if institution is None:
+ continue
+ name = getattr(institution, "display_name", None)
+ if not name or not name.strip():
+ continue
+ key = name.casefold()
+ if key in seen:
+ continue
+ seen.add(key)
+ names.append(name.strip())
+ return names
+
+
def patent_institution_match(
patent: model.PatentEntry,
institution_names: list[str],
@@ -110,6 +182,108 @@ def patent_institution_match(
return False
+@dataclass(frozen=True)
+class InstitutionMatchDetail:
+ last_known_institution_match: bool
+ historical_institution_match: bool
+ generic_institution_match: bool
+ last_known_institution_name: str | None = None
+ historical_institution_name: str | None = None
+
+ @property
+ def any_institution_match(self) -> bool:
+ return self.last_known_institution_match or self.historical_institution_match
+
+
+def classify_patent_institution_match(
+ patent: model.PatentEntry,
+ author: Author,
+) -> InstitutionMatchDetail:
+ """Separate last-known vs historical institution signals for a patent."""
+ last_known_names = author_last_known_institution_names(author)
+ historical_names = author_historical_institution_names(author)
+
+ last_known_hit: str | None = None
+ historical_hit: str | None = None
+ generic_hit = False
+
+ for assignee in patent.assignees or []:
+ if not assignee:
+ continue
+ for name in last_known_names:
+ if assignee_matches_institution_name(assignee, name):
+ last_known_hit = last_known_hit or name
+ if is_generic_institution_name(name):
+ generic_hit = True
+ for name in historical_names:
+ if assignee_matches_institution_name(assignee, name):
+ historical_hit = historical_hit or name
+ if is_generic_institution_name(name):
+ generic_hit = True
+
+ return InstitutionMatchDetail(
+ last_known_institution_match=last_known_hit is not None,
+ historical_institution_match=historical_hit is not None,
+ generic_institution_match=generic_hit,
+ last_known_institution_name=last_known_hit,
+ historical_institution_name=historical_hit,
+ )
+
+
+def assignee_looks_like_organization(name: str | None) -> bool:
+ """Heuristic: corporate / institutional assignee strings."""
+ if not name or not name.strip():
+ return False
+ lowered = f" {name.casefold()} "
+ if any(marker in lowered for marker in _ORG_MARKERS):
+ return True
+ stripped = name.strip()
+ if "," not in stripped and stripped.isupper() and " " in stripped and len(stripped) > 8:
+ return True
+ return False
+
+
+def _person_names_equivalent(left: str, right: str) -> bool:
+ """True when two person-name strings refer to the same individual."""
+ left_parsed = parse_inventor_name(strip_person_titles(left))
+ right_parsed = parse_inventor_name(strip_person_titles(right))
+ if left_parsed is None or right_parsed is None:
+ return normalize_name_part(left) == normalize_name_part(right)
+ if not _family_name_matches(left_parsed, right_parsed):
+ return False
+ if left_parsed.given_names and right_parsed.given_names:
+ return _given_name_matches(left_parsed, right_parsed) and _given_name_matches(
+ right_parsed, left_parsed
+ )
+ if left_parsed.given_names or right_parsed.given_names:
+ return normalize_name_part(left) == normalize_name_part(right)
+ return tokens_equal(left_parsed.last_name, right_parsed.last_name, allow_initial=False)
+
+
+def assignee_is_inventor_echo(assignee: str, inventors: list[str] | None) -> bool:
+ """True when a person-like assignee merely repeats an inventor name.
+
+ Typical EPO A1 pattern: ``applicants_name`` copies ``inventors_name``.
+ """
+ if not assignee or not assignee.strip():
+ return False
+ if assignee_looks_like_organization(assignee):
+ return False
+ for inventor in inventors or []:
+ if inventor and _person_names_equivalent(assignee, inventor):
+ return True
+ return False
+
+
+def patent_has_inventor_echo_assignee(patent: model.PatentEntry) -> bool:
+ """True when any person-like assignee is an inventor echo."""
+ return any(
+ assignee_is_inventor_echo(assignee, patent.inventors)
+ for assignee in (patent.assignees or [])
+ if assignee
+ )
+
+
def patent_personal_assignee_full_match(
patent: model.PatentEntry,
display_name: str,
@@ -123,13 +297,46 @@ def patent_personal_assignee_full_match(
return False
-def patent_full_personal_identity_match(
+def patent_independent_personal_assignee_match(
patent: model.PatentEntry,
display_name: str,
) -> bool:
- """Strong personal identity: full inventor name and full personal assignee."""
+ """Full personal assignee that is not a company and not an inventor echo.
+
+ An EPO applicant that only repeats an inventor name does not count as an
+ independent identity signal.
+ """
+ if not display_name or not display_name.strip():
+ return False
+ for assignee in patent.assignees or []:
+ if not assignee:
+ continue
+ if assignee_looks_like_organization(assignee):
+ continue
+ if first_name_match_kind_for_person(assignee, display_name) != "full":
+ continue
+ if assignee_is_inventor_echo(assignee, patent.inventors):
+ continue
+ return True
+ return False
+
+
+def patent_full_personal_identity_match(
+ patent: model.PatentEntry,
+ display_name: str,
+ *,
+ is_ambiguous: bool = False,
+) -> bool:
+ """Strong personal identity: full inventor name plus personal assignee.
+
+ For ambiguous author names the assignee must be an *independent* personal
+ applicant (not merely an inventor name echoed into EPO ``applicants_name``).
+ For unique names, a sole inventor who is also the applicant may still count.
+ """
if best_name_match_kind(patent, display_name) != "full":
return False
+ if is_ambiguous:
+ return patent_independent_personal_assignee_match(patent, display_name)
return patent_personal_assignee_full_match(patent, display_name)
@@ -152,14 +359,15 @@ def patent_personal_assignee_match(
def best_name_match_kind(patent: model.PatentEntry, display_name: str) -> str:
- """Best given-name match across all inventors: 'full' > 'initial' > 'none'."""
+ """Best given-name match across inventors: full > initial > partial > none."""
+ rank = {"none": 0, "partial": 1, "initial": 2, "full": 3}
best = "none"
for inventor in patent.inventors:
if not inventor:
continue
kind = first_name_match_kind_for_person(inventor, display_name)
- if kind == "full":
+ if rank.get(kind, 0) > rank.get(best, 0):
+ best = kind
+ if best == "full":
return "full"
- if kind == "initial":
- best = "initial"
return best
diff --git a/service/src/main/inse/patents/authors/logic.py b/service/src/main/inse/patents/authors/logic.py
index 8b2df53a..61d89dbe 100644
--- a/service/src/main/inse/patents/authors/logic.py
+++ b/service/src/main/inse/patents/authors/logic.py
@@ -1,30 +1,28 @@
"""Business logic for patent lookup by inventor."""
-import asyncio
import logging
import httpx
from fastapi import HTTPException
-from starlette.status import HTTP_502_BAD_GATEWAY
-from starlette.status import HTTP_503_SERVICE_UNAVAILABLE
+from starlette.status import HTTP_502_BAD_GATEWAY, HTTP_503_SERVICE_UNAVAILABLE
+from inse.models.openalex.author import Author
from inse.patents.authors.identity import is_ambiguous_name
from inse.patents.authors.name_matching import filter_patents_by_author_name
from inse.patents.authors.name_variants import parse_person_name
+from inse.patents.authors.search_pagination import search_author_patents_adaptive
from inse.patents.authors.topic_filter import filter_patents_by_ipc_topic_mapping
-from inse.patents.patents_openalex_keywords.resolver import PatentOpenAlexMappingResolver
from inse.patents.common import model
from inse.patents.common.elastic_search_client import MissingApiKeyError
from inse.patents.common.parsing import (
- deduplicate_patents,
enrich_patents_classifications,
expand_matched_epo_application_families,
- parse_epo_hits,
- parse_uspto_hits,
)
from inse.patents.ipc_search_client import IpcSearchClient
+from inse.patents.patents_openalex_keywords.resolver import (
+ PatentOpenAlexMappingResolver,
+)
from inse.patents.search_client import PatentSearchClient
from inse.persons import logic as person_logic
-from inse.models.openalex.author import Author
logger = logging.getLogger(__name__)
@@ -55,7 +53,9 @@ async def get_patents_by_author_id(
)
try:
- epo_data, uspto_data = await _search_both_indices(search_client, author_name)
+ search_result = await search_author_patents_adaptive(
+ search_client, author_name
+ )
except MissingApiKeyError as exc:
raise HTTPException(
status_code=HTTP_503_SERVICE_UNAVAILABLE,
@@ -67,9 +67,26 @@ async def get_patents_by_author_id(
detail="Patent search request failed.",
) from exc
- all_patents = parse_epo_hits(epo_data) + parse_uspto_hits(uspto_data)
- all_patents = deduplicate_patents(all_patents)
+ all_patents = search_result.patents
patent_hit_count = len(all_patents)
+ if search_result.completeness.value == "truncated_inconclusive":
+ # Unread ES hits remain; zero UI patents must not be treated as proof
+ # that the author has no patents in the index.
+ logger.warning(
+ "search_completeness=%s for author %s (%s): epo_scanned=%d/%d "
+ "uspto_scanned=%d/%d stop=%s/%s strong_matches=%d/%d",
+ search_result.completeness.value,
+ author_id,
+ author_name,
+ search_result.epo.hits_scanned,
+ search_result.epo.total_hits,
+ search_result.uspto.hits_scanned,
+ search_result.uspto.total_hits,
+ search_result.epo.stop_reason,
+ search_result.uspto.stop_reason,
+ search_result.epo.strong_name_match_count,
+ search_result.uspto.strong_name_match_count,
+ )
matched_patents = filter_patents_by_author_name(all_patents, author_name)
try:
matched_patents = await expand_matched_epo_application_families(
@@ -138,13 +155,6 @@ async def get_patents_by_author_id(
patents=[item.patent for item in filtered],
)
-async def _search_both_indices(client, display_name: str):
- return await asyncio.gather(
- client.search_epo(client.epo_query_by_inventor(display_name)),
- client.search_uspto(client.uspto_query_by_inventor(display_name)),
- )
-
-
async def _get_author(author_id: str) -> Author | None:
short_id = author_id.replace("https://openalex.org/", "")
result = await person_logic.search_persons(author_id=short_id)
diff --git a/service/src/main/inse/patents/authors/name_matching.py b/service/src/main/inse/patents/authors/name_matching.py
index 3934e465..79921a57 100644
--- a/service/src/main/inse/patents/authors/name_matching.py
+++ b/service/src/main/inse/patents/authors/name_matching.py
@@ -2,9 +2,9 @@
from inse.patents.authors.name_variants import (
ParsedPersonName,
+ _initials_from_tokens,
parse_inventor_name,
parse_person_name,
- _initials_from_tokens,
)
from inse.patents.common import model
from inse.patents.common.text_normalization import (
@@ -67,20 +67,50 @@ def inventor_first_token(inventor_name: str) -> str:
return parts[0] if parts else ""
+def _is_standalone_single_letter(phrase: str) -> bool:
+ """True when the whole phrase collapses to a single alphabetic character."""
+ cleaned = normalize_name_part(phrase)
+ return len(cleaned) == 1 and cleaned.isalpha()
+
+
+def _given_starts_compound(given: str, compound_last: str | None) -> bool:
+ if not compound_last:
+ return False
+ given_norm = normalize_name_part(given)
+ compound_first = normalize_name_part(compound_last.split()[0])
+ return bool(given_norm) and given_norm == compound_first
+
+
def inventor_search_phrases(display_name: str) -> list[str]:
+ """Build inventor search phrases for EPO/USPTO queries.
+
+ Phrases always include a family-name token. Standalone single-letter
+ phrases (``D``, ``S``, …) are never emitted. Multi-word phrases are not
+ run through whole-phrase vowel transliteration (which produced forms like
+ ``Daen`` / ``Geoerge``). Compound-last combinations use leading givens
+ only so ``Dan J.`` + ``J. Stein`` does not become ``Dan J. J. Stein``.
+ """
parsed = parse_person_name(display_name)
if parsed is None:
return []
if parsed.is_single_token:
- return search_name_variants(parsed.last_name)
+ return [
+ variant
+ for variant in search_name_variants(
+ parsed.last_name,
+ include_initial=False,
+ allow_vowel_expansion=False,
+ )
+ if not _is_standalone_single_letter(variant)
+ ]
seen: set[str] = set()
phrases: list[str] = []
def _add(phrase: str) -> None:
phrase = phrase.strip()
- if not phrase:
+ if not phrase or _is_standalone_single_letter(phrase):
return
key = phrase.casefold()
if key in seen:
@@ -92,43 +122,91 @@ def inventor_search_phrases(display_name: str) -> list[str]:
last_name = parsed.last_name
compound_last = parsed.compound_last_name
full_given = " ".join(given_names)
+ # Tokens that are not part of the compound surname (avoids doubled middles).
+ leading_givens = (
+ given_names[:-1]
+ if compound_last and len(given_names) >= 2
+ else given_names
+ )
+ leading_full = " ".join(leading_givens)
- _add(f"{full_given} {last_name}")
- if compound_last and compound_last != last_name:
- _add(f"{full_given} {compound_last}")
+ last_name_variants = search_name_variants(
+ last_name,
+ include_initial=False,
+ allow_vowel_expansion=False,
+ )
+ compound_variants = (
+ search_name_variants(
+ compound_last,
+ include_initial=False,
+ allow_vowel_expansion=False,
+ )
+ if compound_last and compound_last != last_name
+ else []
+ )
+
+ def _add_with_last_variants(prefix: str, *, use_compound: bool = False) -> None:
+ if not prefix.strip():
+ return
+ variants = compound_variants if use_compound else last_name_variants
+ for last_variant in variants:
+ _add(f"{prefix} {last_variant}")
+
+ _add_with_last_variants(full_given)
+ if compound_last and compound_last != last_name and leading_full:
+ _add_with_last_variants(leading_full, use_compound=True)
for given_name in given_names:
- _add(f"{given_name} {last_name}")
- if compound_last and compound_last != last_name:
- _add(f"{given_name} {compound_last}")
+ for given_variant in search_name_variants(
+ given_name,
+ include_initial=False,
+ allow_vowel_expansion=False,
+ ):
+ _add_with_last_variants(given_variant)
+ if (
+ compound_last
+ and compound_last != last_name
+ and not _given_starts_compound(given_name, compound_last)
+ ):
+ _add_with_last_variants(given_variant, use_compound=True)
+
+ # Initial + last name (e.g. "D Stein", "D. Stein") — never bare "D".
+ initial = _initial_letter(given_name)
+ if initial is None:
+ initial_norm = normalize_name_part(given_name)
+ if initial_norm:
+ initial = initial_norm[0]
+ if initial:
+ _add_with_last_variants(initial.upper())
+ _add_with_last_variants(f"{initial.upper()}.")
initials = _initials_from_tokens(given_names)
+ leading_initials = _initials_from_tokens(leading_givens)
if initials:
- _add(f"{initials} {last_name}")
- if compound_last and compound_last != last_name:
- _add(f"{initials} {compound_last}")
+ # Combined initials only with the simple last name (DJ Stein).
+ # With compound last they double the middle token (DJ J. Stein).
+ _add_with_last_variants(initials)
dotted = ".".join(char for char in initials) + "."
- _add(f"{dotted} {last_name}")
- if compound_last and compound_last != last_name:
- _add(f"{dotted} {compound_last}")
+ _add_with_last_variants(dotted)
+ if compound_last and compound_last != last_name and leading_initials:
+ _add_with_last_variants(leading_initials, use_compound=True)
+ leading_dotted = ".".join(char for char in leading_initials) + "."
+ _add_with_last_variants(leading_dotted, use_compound=True)
- _add(f"{last_name}, {full_given}")
- for given_name in given_names:
- _add(f"{last_name}, {given_name}")
- if compound_last and compound_last != last_name:
- _add(f"{compound_last}, {full_given}")
+ for last_variant in last_name_variants:
+ _add(f"{last_variant}, {full_given}")
+ for given_name in given_names:
+ for given_variant in search_name_variants(
+ given_name,
+ include_initial=False,
+ allow_vowel_expansion=False,
+ ):
+ _add(f"{last_variant}, {given_variant}")
+ if compound_last and compound_last != last_name and leading_full:
+ for compound_variant in compound_variants:
+ _add(f"{compound_variant}, {leading_full}")
- expanded: list[str] = []
- expanded_seen: set[str] = set()
- for phrase in phrases:
- for variant in search_name_variants(phrase):
- key = variant.casefold()
- if key in expanded_seen:
- continue
- expanded_seen.add(key)
- expanded.append(variant)
-
- return expanded
+ return phrases
def name_matches_person(inventor_name: str, person_display_name: str) -> bool:
@@ -153,14 +231,48 @@ def first_name_match_kind_for_person(
) -> str:
if not name_matches_person(inventor_name, person_display_name):
return "none"
- if _given_names_full_match(
- parse_person_name(person_display_name),
- parse_inventor_name(inventor_name),
- ):
+ author = parse_person_name(person_display_name)
+ inventor = parse_inventor_name(strip_person_titles(inventor_name))
+ if author is None or inventor is None:
+ return "none"
+ if _is_partial_given_name_match(author, inventor):
+ return "partial"
+ if _given_names_full_match(author, inventor):
return "full"
return "initial"
+def _is_partial_given_name_match(
+ author: ParsedPersonName,
+ inventor: ParsedPersonName,
+) -> bool:
+ """True when the author has extra full given names absent from the inventor.
+
+ Example: OpenAlex ``George Davey Smith`` vs inventor ``SMITH, George``.
+ Initial-only inventor forms (``G. D. Smith``) are *not* partial — they stay
+ ``initial``.
+ """
+ author_full = [g for g in author.given_names if _initial_letter(g) is None]
+ if len(author_full) <= 1:
+ return False
+
+ inventor_has_any_full = any(
+ _initial_letter(g) is None for g in inventor.given_names
+ )
+ if not inventor_has_any_full:
+ # Initials-only inventor → handled as initial, not partial.
+ return False
+
+ for author_given in author_full[1:]:
+ covered = any(
+ tokens_equal(author_given, inventor_given, allow_initial=True)
+ for inventor_given in inventor.given_names
+ )
+ if not covered:
+ return True
+ return False
+
+
def first_name_match_kind(
inventor_name: str,
first_name: str,
@@ -174,20 +286,66 @@ def first_name_match_kind(
return first_name_match_kind_for_person(inventor_name, last_name)
-def search_name_variants(value: str | None) -> list[str]:
+def search_name_variants(
+ value: str | None,
+ *,
+ include_initial: bool = True,
+ allow_vowel_expansion: bool = True,
+) -> list[str]:
+ """Return spelling/transliteration variants of a name token or short phrase.
+
+ Whole-phrase vowel transliteration and leading-initial extraction are only
+ applied to single-token values. Multi-word values keep the original form
+ plus a diacritic-stripped token join — never ``Daen J Stein``-style forms
+ or a bare first letter of the entire phrase.
+
+ ``allow_vowel_expansion`` controls patent-style ``u→ue`` / ``a→ae`` rewrites.
+ Inventor search phrases disable it to avoid implausible forms such as
+ ``Daen`` / ``Thoempsoen``.
+ """
if not value or not value.strip():
return []
+ stripped = value.strip()
+ tokens = [part for part in stripped.replace(",", " ").split() if part]
+ is_multi_token = len(tokens) > 1
+
seen: set[str] = set()
ordered: list[str] = []
def _add(candidate: str) -> None:
+ candidate = candidate.strip()
+ if not candidate:
+ return
key = candidate.casefold()
- if candidate.strip() and key not in seen:
+ if key not in seen:
seen.add(key)
- ordered.append(candidate.strip())
+ ordered.append(candidate)
- _add(value.strip())
+ _add(stripped)
+
+ if is_multi_token:
+ # Diacritic strip per token only — no patent vowel expansion on phrases.
+ stripped_tokens: list[str] = []
+ for token in tokens:
+ normalized_token = normalize_name_part(token)
+ stripped_tokens.append(
+ normalized_token.title() if normalized_token else token
+ )
+ joined = " ".join(stripped_tokens)
+ if "," in stripped:
+ # Preserve a simple "Last, Given" shape when present.
+ parts = [part.strip() for part in stripped.split(",", 1)]
+ if len(parts) == 2 and parts[0] and parts[1]:
+ left = " ".join(
+ normalize_name_part(t).title() or t for t in parts[0].split()
+ )
+ right = " ".join(
+ normalize_name_part(t).title() or t for t in parts[1].split()
+ )
+ _add(f"{left}, {right}")
+ _add(joined)
+ return ordered
normalized = normalize_name_part(value)
if normalized:
@@ -196,10 +354,11 @@ def search_name_variants(value: str | None) -> list[str]:
for variant in name_token_variants(value):
_add(variant.title())
- for variant in patent_transliteration_expansions(normalized):
- _add(variant.title())
+ if allow_vowel_expansion:
+ for variant in patent_transliteration_expansions(normalized):
+ _add(variant.title())
- if normalized and len(normalized) > 1:
+ if include_initial and normalized and len(normalized) > 1:
_add(normalized[0].upper())
return ordered
diff --git a/service/src/main/inse/patents/authors/name_variants.py b/service/src/main/inse/patents/authors/name_variants.py
index c1f7a5e0..50a878e9 100644
--- a/service/src/main/inse/patents/authors/name_variants.py
+++ b/service/src/main/inse/patents/authors/name_variants.py
@@ -1,7 +1,6 @@
"""Parse person names and build search/match variants for multi-part names."""
from __future__ import annotations
-import re
from dataclasses import dataclass
from inse.patents.common.text_normalization import normalize_name_part
diff --git a/service/src/main/inse/patents/authors/search_pagination.py b/service/src/main/inse/patents/authors/search_pagination.py
new file mode 100644
index 00000000..549fe069
--- /dev/null
+++ b/service/src/main/inse/patents/authors/search_pagination.py
@@ -0,0 +1,316 @@
+"""Adaptive inventor-search pagination for author → patent lookup.
+
+Fetches ES hits in pages and stops early once enough *strong, unique* local
+name matches are found, or when scan / page / time budgets are exhausted.
+Does not change the inventor query itself — only how many scored hits are
+examined and how completeness is interpreted.
+"""
+from __future__ import annotations
+
+import asyncio
+import logging
+import time
+from collections.abc import Awaitable, Callable
+from dataclasses import dataclass, field
+from enum import Enum
+from typing import Any
+
+from inse.patents.authors.identity import best_name_match_kind
+from inse.patents.authors.name_matching import filter_patents_by_author_name
+from inse.patents.common import model
+from inse.patents.common.parsing import (
+ deduplicate_patents,
+ parse_epo_hits,
+ parse_search_total,
+ parse_uspto_hits,
+)
+
+logger = logging.getLogger(__name__)
+
+AUTHOR_PATENT_PAGE_SIZE = 100
+AUTHOR_PATENT_MAX_SCANNED_PER_SOURCE = 1000
+AUTHOR_PATENT_TARGET_NAME_MATCHES = 30
+AUTHOR_PATENT_MAX_PAGES_PER_SOURCE = 10
+AUTHOR_PATENT_MAX_SECONDS_PER_SOURCE = 20.0
+
+# Partial matches (e.g. "George Smith" for "George Davey Smith") may pass the
+# name filter but must not drive the early-stop budget.
+_STRONG_NAME_MATCH_KINDS = frozenset({"full", "initial"})
+
+
+class SearchCompleteness(str, Enum):
+ """How complete the inventor hit scan is for UI interpretation.
+
+ COMPLETE
+ The ES result set for the source (or both sources) was fully read.
+ TRUNCATED_INCONCLUSIVE
+ Scanning stopped while unread hits remain. A zero UI result does **not**
+ prove the author has no patents in the index.
+ EXTRA_FINAL_RESULTS_FOUND
+ Diagnostic only: finals appear only when scanning beyond the first page.
+ """
+
+ COMPLETE = "complete"
+ TRUNCATED_INCONCLUSIVE = "truncated_inconclusive"
+ EXTRA_FINAL_RESULTS_FOUND = "extra_final_results_found"
+
+
+def is_strong_name_match(patent: model.PatentEntry, display_name: str) -> bool:
+ """True when the patent is a unique-worthy strong personal name hit.
+
+ Requires the existing name filter to accept the patent, and the best
+ inventor given-name kind to be ``full`` or ``initial`` (not ``partial``).
+ """
+ if not filter_patents_by_author_name([patent], display_name):
+ return False
+ return best_name_match_kind(patent, display_name) in _STRONG_NAME_MATCH_KINDS
+
+
+def count_unique_name_matches(
+ patents: list[model.PatentEntry],
+ display_name: str,
+ *,
+ strong_only: bool = False,
+) -> int:
+ """Count distinct patent IDs that pass the name filter (optionally strong)."""
+ seen: set[str] = set()
+ for patent in patents:
+ pid = patent.patent_id
+ if not pid or pid in seen:
+ continue
+ if strong_only:
+ if is_strong_name_match(patent, display_name):
+ seen.add(pid)
+ elif filter_patents_by_author_name([patent], display_name):
+ seen.add(pid)
+ return len(seen)
+
+
+@dataclass
+class SourcePaginationResult:
+ source: str
+ patents: list[model.PatentEntry] = field(default_factory=list)
+ total_hits: int = 0
+ hits_scanned: int = 0
+ pages_fetched: int = 0
+ name_match_count: int = 0
+ strong_name_match_count: int = 0
+ truncated: bool = False
+ completeness: SearchCompleteness = SearchCompleteness.COMPLETE
+ stop_reason: str = ""
+ elapsed_seconds: float = 0.0
+ page_timings_ms: list[float] = field(default_factory=list)
+ error: str | None = None
+
+
+@dataclass
+class AuthorPatentSearchResult:
+ patents: list[model.PatentEntry]
+ epo: SourcePaginationResult
+ uspto: SourcePaginationResult
+
+ @property
+ def truncated(self) -> bool:
+ return self.epo.truncated or self.uspto.truncated
+
+ @property
+ def completeness(self) -> SearchCompleteness:
+ if (
+ self.epo.completeness == SearchCompleteness.TRUNCATED_INCONCLUSIVE
+ or self.uspto.completeness == SearchCompleteness.TRUNCATED_INCONCLUSIVE
+ ):
+ return SearchCompleteness.TRUNCATED_INCONCLUSIVE
+ return SearchCompleteness.COMPLETE
+
+
+def classify_search_completeness(
+ *,
+ hits_scanned: int,
+ total_hits: int,
+ stop_reason: str,
+) -> SearchCompleteness:
+ """Map pagination stop state to a completeness verdict."""
+ if stop_reason == "error":
+ return SearchCompleteness.TRUNCATED_INCONCLUSIVE
+ if hits_scanned >= total_hits:
+ return SearchCompleteness.COMPLETE
+ # Unread hits remain — including early stop on strong-name target.
+ return SearchCompleteness.TRUNCATED_INCONCLUSIVE
+
+
+async def search_author_patents_adaptive(
+ client: Any,
+ display_name: str,
+ *,
+ page_size: int = AUTHOR_PATENT_PAGE_SIZE,
+ max_scanned_per_source: int = AUTHOR_PATENT_MAX_SCANNED_PER_SOURCE,
+ target_name_matches: int = AUTHOR_PATENT_TARGET_NAME_MATCHES,
+ max_pages_per_source: int = AUTHOR_PATENT_MAX_PAGES_PER_SOURCE,
+ max_seconds_per_source: float = AUTHOR_PATENT_MAX_SECONDS_PER_SOURCE,
+) -> AuthorPatentSearchResult:
+ """Search EPO and USPTO with independent adaptive pagination."""
+ epo, uspto = await asyncio.gather(
+ paginate_inventor_source(
+ source="EPO",
+ display_name=display_name,
+ build_payload=lambda size, search_after: client.epo_query_by_inventor(
+ display_name, size=size, search_after=search_after
+ ),
+ search=client.search_epo,
+ parse_hits=parse_epo_hits,
+ page_size=page_size,
+ max_scanned=max_scanned_per_source,
+ target_name_matches=target_name_matches,
+ max_pages=max_pages_per_source,
+ max_seconds=max_seconds_per_source,
+ ),
+ paginate_inventor_source(
+ source="USPTO",
+ display_name=display_name,
+ build_payload=lambda size, search_after: client.uspto_query_by_inventor(
+ display_name, size=size, search_after=search_after
+ ),
+ search=client.search_uspto,
+ parse_hits=parse_uspto_hits,
+ page_size=page_size,
+ max_scanned=max_scanned_per_source,
+ target_name_matches=target_name_matches,
+ max_pages=max_pages_per_source,
+ max_seconds=max_seconds_per_source,
+ ),
+ )
+ combined = deduplicate_patents(epo.patents + uspto.patents)
+ result = AuthorPatentSearchResult(patents=combined, epo=epo, uspto=uspto)
+ if result.completeness == SearchCompleteness.TRUNCATED_INCONCLUSIVE:
+ logger.info(
+ "Author patent search completeness=%s for %r: epo=%s uspto=%s "
+ "(scanned epo=%d/%d uspto=%d/%d, strong_matches epo=%d uspto=%d)",
+ result.completeness.value,
+ display_name,
+ epo.stop_reason,
+ uspto.stop_reason,
+ epo.hits_scanned,
+ epo.total_hits,
+ uspto.hits_scanned,
+ uspto.total_hits,
+ epo.strong_name_match_count,
+ uspto.strong_name_match_count,
+ )
+ return result
+
+
+async def paginate_inventor_source(
+ *,
+ source: str,
+ display_name: str,
+ build_payload: Callable[[int, list[Any] | None], dict[str, Any]],
+ search: Callable[[dict[str, Any]], Awaitable[dict[str, Any]]],
+ parse_hits: Callable[[dict[str, Any]], list[model.PatentEntry]],
+ page_size: int,
+ max_scanned: int,
+ target_name_matches: int,
+ max_pages: int,
+ max_seconds: float,
+) -> SourcePaginationResult:
+ """Fetch inventor hits page-by-page until strong name-match or safety limits.
+
+ Pagination uses ``search_after`` (stable cursor) after the first page.
+ The early-stop target counts **unique** patents with a strong name match
+ (``full`` / ``initial``), not raw or partial filter hits.
+ """
+ started = time.perf_counter()
+ result = SourcePaginationResult(source=source)
+ accumulated: list[model.PatentEntry] = []
+ search_after: list[Any] | None = None
+
+ try:
+ while True:
+ elapsed = time.perf_counter() - started
+ if elapsed >= max_seconds:
+ result.stop_reason = "time_budget"
+ break
+ if result.pages_fetched >= max_pages:
+ result.stop_reason = "max_pages"
+ break
+ if result.hits_scanned >= max_scanned:
+ result.stop_reason = "max_scanned"
+ break
+ if (
+ result.pages_fetched > 0
+ and result.strong_name_match_count >= target_name_matches
+ ):
+ result.stop_reason = "target_strong_name_matches"
+ break
+ if result.pages_fetched > 0 and result.hits_scanned >= result.total_hits:
+ result.stop_reason = "exhausted"
+ break
+
+ remaining_budget = max_scanned - result.hits_scanned
+ size = min(page_size, remaining_budget)
+ if size <= 0:
+ result.stop_reason = "max_scanned"
+ break
+
+ payload = build_payload(size, search_after)
+ page_started = time.perf_counter()
+ data = await search(payload)
+ page_ms = (time.perf_counter() - page_started) * 1000.0
+ result.page_timings_ms.append(round(page_ms, 1))
+
+ if result.pages_fetched == 0:
+ result.total_hits = parse_search_total(data)
+
+ raw_hits = data.get("hits", {}).get("hits", []) or []
+ page_patents = parse_hits(data)
+ if not page_patents:
+ result.stop_reason = "exhausted"
+ break
+
+ accumulated.extend(page_patents)
+ result.hits_scanned += len(page_patents)
+ result.pages_fetched += 1
+ result.name_match_count = count_unique_name_matches(
+ accumulated, display_name, strong_only=False
+ )
+ result.strong_name_match_count = count_unique_name_matches(
+ accumulated, display_name, strong_only=True
+ )
+
+ last_sort = raw_hits[-1].get("sort") if raw_hits else None
+ search_after = last_sort if last_sort is not None else search_after
+
+ if result.hits_scanned >= result.total_hits:
+ result.stop_reason = "exhausted"
+ break
+ if result.strong_name_match_count >= target_name_matches:
+ result.stop_reason = "target_strong_name_matches"
+ break
+ if result.hits_scanned >= max_scanned:
+ result.stop_reason = "max_scanned"
+ break
+ if result.pages_fetched >= max_pages:
+ result.stop_reason = "max_pages"
+ break
+ if time.perf_counter() - started >= max_seconds:
+ result.stop_reason = "time_budget"
+ break
+
+ except Exception as exc:
+ result.error = f"{type(exc).__name__}: {exc}"
+ result.stop_reason = "error"
+ logger.exception("%s inventor pagination failed for %r", source, display_name)
+
+ result.patents = accumulated
+ result.elapsed_seconds = round(time.perf_counter() - started, 3)
+ if not result.stop_reason:
+ result.stop_reason = "exhausted"
+
+ result.completeness = classify_search_completeness(
+ hits_scanned=result.hits_scanned,
+ total_hits=result.total_hits,
+ stop_reason=result.stop_reason,
+ )
+ result.truncated = (
+ result.completeness == SearchCompleteness.TRUNCATED_INCONCLUSIVE
+ )
+ return result
diff --git a/service/src/main/inse/patents/authors/search_queries.py b/service/src/main/inse/patents/authors/search_queries.py
index af67bf1d..436169b2 100644
--- a/service/src/main/inse/patents/authors/search_queries.py
+++ b/service/src/main/inse/patents/authors/search_queries.py
@@ -1,13 +1,43 @@
"""Elasticsearch query builders for inventor-based patent search."""
from typing import Any
-from inse.patents.authors.name_matching import inventor_search_phrases, search_name_variants
-from inse.patents.authors.name_variants import parse_person_name
+from inse.patents.authors.name_matching import (
+ inventor_search_phrases,
+ search_name_variants,
+)
+from inse.patents.authors.name_variants import _initials_from_tokens, parse_person_name
from inse.patents.common.elastic_search_client import DEFAULT_SEARCH_SIZE
+from inse.patents.common.text_normalization import normalize_name_part
-def _match_name_field(field: str, name: str) -> dict[str, Any]:
- variants = search_name_variants(name)
+def _token_initial(token: str) -> str | None:
+ normalized = normalize_name_part(token)
+ if len(normalized) == 1 and normalized.isalpha():
+ return normalized
+ if normalized:
+ return normalized[0]
+ return None
+
+
+def _dedupe_preserve(values: list[str]) -> list[str]:
+ seen: set[str] = set()
+ ordered: list[str] = []
+ for value in values:
+ key = value.casefold()
+ if not value or key in seen:
+ continue
+ seen.add(key)
+ ordered.append(value)
+ return ordered
+
+
+def _match_name_field(
+ field: str,
+ name: str,
+ *,
+ include_initial: bool = False,
+) -> dict[str, Any]:
+ variants = search_name_variants(name, include_initial=include_initial)
if len(variants) <= 1:
return {"match": {field: variants[0] if variants else name}}
return {
@@ -18,15 +48,98 @@ def _match_name_field(field: str, name: str) -> dict[str, Any]:
}
-def _match_any_phrase_field(field: str, phrases: list[str]) -> dict[str, Any]:
- if not phrases:
+def _family_name_variants(parsed) -> list[str]:
+ variants: list[str] = []
+ variants.extend(
+ search_name_variants(
+ parsed.last_name,
+ include_initial=False,
+ allow_vowel_expansion=False,
+ )
+ )
+ if parsed.compound_last_name and parsed.compound_last_name != parsed.last_name:
+ variants.extend(
+ search_name_variants(
+ parsed.compound_last_name,
+ include_initial=False,
+ allow_vowel_expansion=False,
+ )
+ )
+ return _dedupe_preserve(variants)
+
+
+def _given_name_query_variants(parsed) -> list[str]:
+ """Given-name / initial tokens that may appear on the inventor record.
+
+ Single-letter initials are allowed here because the ES query always
+ requires a family-name match in the same nested inventor document.
+ """
+ variants: list[str] = []
+ for given in parsed.given_names:
+ variants.extend(
+ search_name_variants(
+ given,
+ include_initial=True,
+ allow_vowel_expansion=False,
+ )
+ )
+ initial = _token_initial(given)
+ if initial:
+ variants.append(initial.upper())
+ variants.append(f"{initial.upper()}.")
+
+ initials = _initials_from_tokens(list(parsed.given_names))
+ if initials:
+ variants.append(initials)
+ variants.append(".".join(char for char in initials) + ".")
+
+ return _dedupe_preserve(variants)
+
+
+def _inventor_identity_query(field: str, display_name: str) -> dict[str, Any]:
+ """Require family name + at least one given/initial token on the same inventor.
+
+ Phrase matches are added as optional ``should`` clauses for scoring only.
+ A bare given name or initial never searches without the family name.
+ """
+ parsed = parse_person_name(display_name)
+ if parsed is None:
return {"match_none": {}}
- if len(phrases) == 1:
- return {"match": {field: phrases[0]}}
+
+ if parsed.is_single_token:
+ return _match_name_field(field, parsed.last_name, include_initial=False)
+
+ family_variants = _family_name_variants(parsed)
+ given_variants = _given_name_query_variants(parsed)
+ if not family_variants or not given_variants:
+ return {"match_none": {}}
+
+ phrases = inventor_search_phrases(display_name)
+ should_boost: list[dict[str, Any]] = [
+ {"match_phrase": {field: phrase}} for phrase in phrases
+ ]
+
return {
"bool": {
- "should": [{"match": {field: phrase}} for phrase in phrases],
- "minimum_should_match": 1,
+ "must": [
+ {
+ "bool": {
+ "should": [
+ {"match": {field: variant}} for variant in family_variants
+ ],
+ "minimum_should_match": 1,
+ }
+ },
+ {
+ "bool": {
+ "should": [
+ {"match": {field: variant}} for variant in given_variants
+ ],
+ "minimum_should_match": 1,
+ }
+ },
+ ],
+ "should": should_boost,
}
}
@@ -37,36 +150,23 @@ class InventorSearchQueries:
display_name: str,
first_name: str | None = None,
size: int = DEFAULT_SEARCH_SIZE,
+ from_: int = 0,
+ search_after: list | None = None,
) -> dict[str, Any]:
if first_name and display_name and " " not in display_name.strip():
display_name = f"{first_name} {display_name}".strip()
- parsed = parse_person_name(display_name)
- if parsed is None:
- query = {"match_none": {}}
- elif parsed.is_single_token:
- query = {
- "nested": {
- "path": "inventors_name_nested",
- "query": _match_name_field(
- "inventors_name_nested.inventor",
- parsed.last_name,
- ),
- }
- }
- else:
- phrases = inventor_search_phrases(display_name)
- query = {
- "nested": {
- "path": "inventors_name_nested",
- "query": _match_any_phrase_field(
- "inventors_name_nested.inventor",
- phrases,
- ),
- }
+ query = {
+ "nested": {
+ "path": "inventors_name_nested",
+ "query": _inventor_identity_query(
+ "inventors_name_nested.inventor",
+ display_name,
+ ),
}
+ }
- return {
+ payload: dict[str, Any] = {
"size": size,
"track_total_hits": True,
"sort": [
@@ -92,6 +192,11 @@ class InventorSearchQueries:
],
"query": query,
}
+ if search_after:
+ payload["search_after"] = search_after
+ else:
+ payload["from"] = max(0, int(from_))
+ return payload
def epo_query_by_application_number(
self,
@@ -140,30 +245,20 @@ class InventorSearchQueries:
display_name: str,
first_name: str | None = None,
size: int = DEFAULT_SEARCH_SIZE,
+ from_: int = 0,
+ search_after: list | None = None,
) -> dict[str, Any]:
if first_name and display_name and " " not in display_name.strip():
display_name = f"{first_name} {display_name}".strip()
- parsed = parse_person_name(display_name)
- if parsed is None:
- query = {"match_none": {}}
- elif parsed.is_single_token:
- query = {
- "nested": {
- "path": "inventors",
- "query": _match_name_field("inventors.name", parsed.last_name),
- }
- }
- else:
- phrases = inventor_search_phrases(display_name)
- query = {
- "nested": {
- "path": "inventors",
- "query": _match_any_phrase_field("inventors.name", phrases),
- }
+ query = {
+ "nested": {
+ "path": "inventors",
+ "query": _inventor_identity_query("inventors.name", display_name),
}
+ }
- return {
+ payload: dict[str, Any] = {
"size": size,
"track_total_hits": True,
"sort": [
@@ -190,6 +285,11 @@ class InventorSearchQueries:
],
"query": query,
}
+ if search_after:
+ payload["search_after"] = search_after
+ else:
+ payload["from"] = max(0, int(from_))
+ return payload
def _application_number_variants(application_number: str) -> list[str]:
diff --git a/service/src/main/inse/patents/authors/test_ipc_openalex_mapping.py b/service/src/main/inse/patents/authors/test_ipc_openalex_mapping.py
index c4b82d1a..112a96e9 100644
--- a/service/src/main/inse/patents/authors/test_ipc_openalex_mapping.py
+++ b/service/src/main/inse/patents/authors/test_ipc_openalex_mapping.py
@@ -4,17 +4,14 @@ from inse.models.openalex.work_topic_domain import WorkTopicDomain
from inse.models.openalex.work_topic_field import WorkTopicField
from inse.models.openalex.work_topic_subfield import WorkTopicSubfield
from inse.patents.authors import ipc_openalex_mapping as mapping_module
-from inse.patents.authors.ipc_openalex_mapping import (
- clear_mapping_cache,
- load_ipc_openalex_mapping,
- mapped_topics_match_author,
- patent_topics_match_author,
- resolve_mapped_topics_for_code,
-)
from inse.patents.authors.identity import (
patent_full_personal_identity_match,
patent_personal_assignee_full_match,
)
+from inse.patents.authors.ipc_openalex_mapping import (
+ patent_topics_match_author,
+ resolve_mapped_topics_for_code,
+)
from inse.patents.authors.topic_filter import filter_patents_by_ipc_topic_mapping
from inse.patents.common import model
from inse.patents.common.parsing import patent_map_key
@@ -315,6 +312,209 @@ def test_filter_rejects_initial_only_personal_assignee_without_topic_match() ->
assert filtered == []
+def test_filter_keeps_ambiguous_on_last_known_institution_without_topic() -> None:
+ from inse.models.openalex.dehydrated_institution import DehydratedInstitution
+
+ author = _author_with_topic(
+ "https://openalex.org/T10158",
+ "Cancer Immunotherapy and Biomarkers",
+ subfield_id="https://openalex.org/subfields/2705",
+ field_id="https://openalex.org/fields/27",
+ domain_id="https://openalex.org/domains/4",
+ )
+ author.display_name = "Dirk Schadendorf"
+ author.last_known_institutions = [
+ DehydratedInstitution(display_name="University of Duisburg-Essen"),
+ ]
+ patent = model.PatentEntry(
+ patent_id="EP2932264",
+ source="EPO",
+ title="NOVEL MHC-INDEPENDENT TUMOR-ASSOCIATED ANTIGENS",
+ inventors=["SCHADENDORF, Dirk"],
+ assignees=["Universität Duisburg-Essen"],
+ ipc=["G01N 33/50"],
+ )
+ unrelated = mapping_module.MappedOpenAlexTopic(
+ topic_id="https://openalex.org/T88888",
+ topic_display_name="Unrelated Topic",
+ subfield_id="https://openalex.org/subfields/9999",
+ field_id="https://openalex.org/fields/11",
+ field_name="Other",
+ )
+ filtered = filter_patents_by_ipc_topic_mapping(
+ [patent],
+ author,
+ is_ambiguous=True,
+ patent_topic_map={patent_map_key(patent): [unrelated]},
+ )
+ assert len(filtered) == 1
+ assert filtered[0].last_known_institution_match is True
+ assert filtered[0].keep_reason == "last_known_institution"
+
+
+def test_filter_rejects_ambiguous_historical_institution_alone() -> None:
+ from inse.models.openalex.author_affiliations_inner import AuthorAffiliationsInner
+ from inse.models.openalex.dehydrated_institution import DehydratedInstitution
+
+ author = _author_with_topic(
+ "https://openalex.org/T11111",
+ "Advanced Neuroimaging Techniques and Applications",
+ subfield_id="https://openalex.org/subfields/2705",
+ field_id="https://openalex.org/fields/27",
+ domain_id="https://openalex.org/domains/4",
+ )
+ author.display_name = "Paul M. Thompson"
+ author.last_known_institutions = [
+ DehydratedInstitution(display_name="University of California, Riverside"),
+ ]
+ author.affiliations = [
+ AuthorAffiliationsInner(
+ institution=DehydratedInstitution(display_name="Southwest Research Institute"),
+ years=[2008, 2014],
+ )
+ ]
+ patent = model.PatentEntry(
+ patent_id="US08987496",
+ source="USPTO",
+ title="Point of use generation of amyl nitrite",
+ inventors=["Paul M. Thompson"],
+ assignees=["Southwest Research Institute"],
+ ipc=["C07C 203/04"],
+ )
+ unrelated = mapping_module.MappedOpenAlexTopic(
+ topic_id="https://openalex.org/T88888",
+ topic_display_name="Organic Chemistry Methods",
+ subfield_id="https://openalex.org/subfields/9999",
+ field_id="https://openalex.org/fields/16",
+ field_name="Chemistry",
+ )
+ filtered = filter_patents_by_ipc_topic_mapping(
+ [patent],
+ author,
+ is_ambiguous=True,
+ patent_topic_map={patent_map_key(patent): [unrelated]},
+ )
+ assert filtered == []
+
+
+def test_filter_rejects_ambiguous_generic_historical_institution() -> None:
+ from inse.models.openalex.author_affiliations_inner import AuthorAffiliationsInner
+ from inse.models.openalex.dehydrated_institution import DehydratedInstitution
+
+ author = _author_with_topic(
+ "https://openalex.org/T11111",
+ "Advanced Neuroimaging Techniques and Applications",
+ subfield_id="https://openalex.org/subfields/2705",
+ field_id="https://openalex.org/fields/27",
+ domain_id="https://openalex.org/domains/4",
+ )
+ author.display_name = "Paul M. Thompson"
+ author.affiliations = [
+ AuthorAffiliationsInner(
+ institution=DehydratedInstitution(display_name="University Medical Center"),
+ years=[2015, 2019],
+ )
+ ]
+ patent = model.PatentEntry(
+ patent_id="US10667940",
+ source="USPTO",
+ title="Orthosis for deformity correction",
+ inventors=["Paul M. Thompson"],
+ assignees=["Green Sun Medical, LLC"],
+ ipc=["A61F 5/00"],
+ )
+ unrelated = mapping_module.MappedOpenAlexTopic(
+ topic_id="https://openalex.org/T88888",
+ topic_display_name="Orthopaedic implants and arthroplasty",
+ subfield_id="https://openalex.org/subfields/9999",
+ field_id="https://openalex.org/fields/27",
+ field_name="Medicine",
+ )
+ filtered = filter_patents_by_ipc_topic_mapping(
+ [patent],
+ author,
+ is_ambiguous=True,
+ patent_topic_map={patent_map_key(patent): [unrelated]},
+ )
+ assert filtered == []
+
+
+def test_filter_keeps_historical_with_confirmed_co_inventors() -> None:
+ from inse.models.openalex.author_affiliations_inner import AuthorAffiliationsInner
+ from inse.models.openalex.dehydrated_institution import DehydratedInstitution
+
+ author = _author_with_topic(
+ "https://openalex.org/T10158",
+ "Cancer Immunotherapy and Biomarkers",
+ subfield_id="https://openalex.org/subfields/2705",
+ field_id="https://openalex.org/fields/27",
+ domain_id="https://openalex.org/domains/4",
+ )
+ author.display_name = "Dirk Schadendorf"
+ author.affiliations = [
+ AuthorAffiliationsInner(
+ institution=DehydratedInstitution(
+ display_name="Johannes Gutenberg University Mainz"
+ ),
+ years=[2015],
+ )
+ ]
+ topic_match = mapping_module.MappedOpenAlexTopic(
+ topic_id="https://openalex.org/T10158",
+ topic_display_name="Cancer Immunotherapy and Biomarkers",
+ subfield_id="https://openalex.org/subfields/2705",
+ field_id="https://openalex.org/fields/27",
+ field_name="Medicine",
+ )
+ secure = model.PatentEntry(
+ patent_id="US10987413",
+ source="USPTO",
+ title="MHC-independent tumor-associated antigens",
+ inventors=[
+ "Dirk Schadendorf",
+ "Annette Paschen",
+ "Silke Lubcke",
+ "Martina Fatho",
+ ],
+ assignees=["BioNTech RNA Pharmaceuticals GmbH"],
+ ipc=["A61K 39/00"],
+ )
+ historical_only = model.PatentEntry(
+ patent_id="EP2932264",
+ source="EPO",
+ title="NOVEL MHC-INDEPENDENT TUMOR-ASSOCIATED ANTIGENS",
+ inventors=[
+ "SCHADENDORF, Dirk",
+ "PASCHEN, Anette",
+ "LUBCKE, Silke",
+ "FATHO, Martina",
+ ],
+ assignees=["Universitätsmedizin der Johannes Gutenberg-Universität Mainz"],
+ ipc=["G01N 33/50"],
+ )
+ unrelated = mapping_module.MappedOpenAlexTopic(
+ topic_id="https://openalex.org/T88888",
+ topic_display_name="Unrelated",
+ subfield_id="https://openalex.org/subfields/9999",
+ field_id="https://openalex.org/fields/11",
+ field_name="Other",
+ )
+ filtered = filter_patents_by_ipc_topic_mapping(
+ [secure, historical_only],
+ author,
+ is_ambiguous=True,
+ patent_topic_map={
+ patent_map_key(secure): [topic_match],
+ patent_map_key(historical_only): [unrelated],
+ },
+ )
+ kept_ids = {item.patent.patent_id for item in filtered}
+ assert "US10987413" in kept_ids
+ assert "EP2932264" in kept_ids
+ hist = next(item for item in filtered if item.patent.patent_id == "EP2932264")
+ assert hist.keep_reason == "historical_institution+confirmed_co_inventors"
+
+
def test_custom_mapping_table() -> None:
custom = _custom_mapping()
author = Author(
diff --git a/service/src/main/inse/patents/authors/test_orthosis_family_identity.py b/service/src/main/inse/patents/authors/test_orthosis_family_identity.py
new file mode 100644
index 00000000..c3b0f3ec
--- /dev/null
+++ b/service/src/main/inse/patents/authors/test_orthosis_family_identity.py
@@ -0,0 +1,229 @@
+"""Tests for inventor-applicant echo and independent personal assignee signals."""
+from __future__ import annotations
+
+from inse.models.openalex.author import Author
+from inse.models.openalex.dehydrated_institution import DehydratedInstitution
+from inse.models.openalex.work_topic import WorkTopic
+from inse.models.openalex.work_topic_domain import WorkTopicDomain
+from inse.models.openalex.work_topic_field import WorkTopicField
+from inse.models.openalex.work_topic_subfield import WorkTopicSubfield
+from inse.patents.authors import ipc_openalex_mapping as mapping_module
+from inse.patents.authors.identity import (
+ assignee_is_inventor_echo,
+ patent_full_personal_identity_match,
+ patent_independent_personal_assignee_match,
+ patent_personal_assignee_full_match,
+ patent_personal_assignee_match,
+)
+from inse.patents.authors.topic_filter import filter_patents_by_ipc_topic_mapping
+from inse.patents.common import model
+from inse.patents.common.parsing import patent_map_key
+
+
+def _author(topic_id: str, display_name: str, *, topic_name: str = "Topic") -> Author:
+ return Author(
+ display_name=display_name,
+ topics=[
+ WorkTopic(
+ id=topic_id,
+ display_name=topic_name,
+ score=1.0,
+ subfield=WorkTopicSubfield(
+ id="https://openalex.org/subfields/2705",
+ display_name="Subfield",
+ ),
+ var_field=WorkTopicField(
+ id="https://openalex.org/fields/27",
+ display_name="Medicine",
+ ),
+ domain=WorkTopicDomain(
+ id="https://openalex.org/domains/4",
+ display_name="Health Sciences",
+ ),
+ )
+ ],
+ )
+
+
+def test_assignee_is_inventor_echo_for_epo_applicants() -> None:
+ inventors = ["Thompson, Matthew", "Thompson, Paul M."]
+ assert assignee_is_inventor_echo("Thompson, Paul M.", inventors) is True
+ assert assignee_is_inventor_echo("Thompson, Matthew", inventors) is True
+ assert assignee_is_inventor_echo("Paul M. Thompson", inventors) is True
+
+
+def test_echo_does_not_create_independent_personal_assignee() -> None:
+ display = "Paul M. Thompson"
+ patent = model.PatentEntry(
+ patent_id="EP3094287",
+ source="EPO",
+ inventors=["Thompson, Matthew", "Thompson, Paul M."],
+ assignees=["Thompson, Matthew", "Thompson, Paul M."],
+ )
+ assert patent_personal_assignee_full_match(patent, display) is True
+ assert patent_independent_personal_assignee_match(patent, display) is False
+ assert (
+ patent_full_personal_identity_match(patent, display, is_ambiguous=True) is False
+ )
+
+
+def test_company_assignee_is_not_personal_or_independent() -> None:
+ display = "Paul M. Thompson"
+ patent = model.PatentEntry(
+ patent_id="US10667940",
+ source="USPTO",
+ inventors=["Matthew Thompson", "Paul M. Thompson"],
+ assignees=["Green Sun Medical, LLC"],
+ )
+ assert patent_personal_assignee_match(patent, display) is False
+ assert patent_personal_assignee_full_match(patent, display) is False
+ assert patent_independent_personal_assignee_match(patent, display) is False
+ assert patent_full_personal_identity_match(patent, display, is_ambiguous=True) is False
+
+
+def test_independent_personal_assignee_not_in_inventor_list() -> None:
+ display = "Paul M. Thompson"
+ patent = model.PatentEntry(
+ patent_id="EP1",
+ source="EPO",
+ inventors=["Other, Inventor"],
+ assignees=["Thompson, Paul M."],
+ )
+ assert assignee_is_inventor_echo("Thompson, Paul M.", patent.inventors) is False
+ assert patent_independent_personal_assignee_match(patent, display) is True
+
+
+def test_unique_name_still_allows_inventor_as_applicant() -> None:
+ """Non-ambiguous authors may keep inventor==applicant as personal identity."""
+ display = "Pedro José Marrón"
+ patent = model.PatentEntry(
+ patent_id="EP1542159",
+ source="EPO",
+ inventors=["Marron, Pedro José"],
+ assignees=["Marron, Pedro José, Dr."],
+ )
+ assert patent_full_personal_identity_match(patent, display, is_ambiguous=False) is True
+
+
+def test_filter_drops_ep3094287_for_ambiguous_thompson() -> None:
+ author = _author("https://openalex.org/T11111", "Paul M. Thompson")
+ author.last_known_institutions = [
+ DehydratedInstitution(display_name="University of California, Riverside"),
+ ]
+ ep = model.PatentEntry(
+ patent_id="EP3094287",
+ source="EPO",
+ title="ORTHOSIS FOR DEFORMITY CORRECTION",
+ inventors=["Thompson, Matthew", "Thompson, Paul M."],
+ assignees=["Thompson, Matthew", "Thompson, Paul M."],
+ ipc=["A61F 5/00"],
+ )
+ us = model.PatentEntry(
+ patent_id="US10667940",
+ source="USPTO",
+ title="Orthosis for deformity correction",
+ inventors=["Matthew Thompson", "Paul M. Thompson"],
+ assignees=["Green Sun Medical, LLC"],
+ ipc=["A61F 5/00"],
+ )
+ unrelated = mapping_module.MappedOpenAlexTopic(
+ topic_id="https://openalex.org/T88888",
+ topic_display_name="Orthopaedic implants and arthroplasty",
+ subfield_id="https://openalex.org/subfields/9999",
+ field_id="https://openalex.org/fields/27",
+ field_name="Medicine",
+ )
+ filtered = filter_patents_by_ipc_topic_mapping(
+ [ep, us],
+ author,
+ is_ambiguous=True,
+ patent_topic_map={
+ patent_map_key(ep): [unrelated],
+ patent_map_key(us): [unrelated],
+ },
+ )
+ assert filtered == []
+
+
+def test_filter_schadendorf_still_three() -> None:
+ author = _author(
+ "https://openalex.org/T10158",
+ "Dirk Schadendorf",
+ topic_name="Cancer Immunotherapy and Biomarkers",
+ )
+ author.last_known_institutions = [
+ DehydratedInstitution(display_name="University of Duisburg-Essen"),
+ ]
+ topic = mapping_module.MappedOpenAlexTopic(
+ topic_id="https://openalex.org/T10158",
+ topic_display_name="Cancer Immunotherapy and Biomarkers",
+ subfield_id="https://openalex.org/subfields/2705",
+ field_id="https://openalex.org/fields/27",
+ field_name="Medicine",
+ )
+ unrelated = mapping_module.MappedOpenAlexTopic(
+ topic_id="https://openalex.org/T88888",
+ topic_display_name="Unrelated",
+ subfield_id="https://openalex.org/subfields/9999",
+ field_id="https://openalex.org/fields/11",
+ field_name="Other",
+ )
+ patents = [
+ model.PatentEntry(
+ patent_id="US10987413",
+ source="USPTO",
+ inventors=["Dirk Schadendorf"],
+ assignees=["BioNTech RNA Pharmaceuticals GmbH"],
+ ipc=["A61K 39/00"],
+ ),
+ model.PatentEntry(
+ patent_id="US09861688",
+ source="USPTO",
+ inventors=["Dirk Schadendorf"],
+ assignees=["Universitaet Duisburg-Essen"],
+ ipc=["A61K 35/17"],
+ ),
+ model.PatentEntry(
+ patent_id="EP2932264",
+ source="EPO",
+ inventors=["SCHADENDORF, Dirk"],
+ assignees=["Universität Duisburg-Essen"],
+ ipc=["G01N 33/50"],
+ ),
+ ]
+ filtered = filter_patents_by_ipc_topic_mapping(
+ patents,
+ author,
+ is_ambiguous=True,
+ patent_topic_map={
+ patent_map_key(patents[0]): [topic],
+ patent_map_key(patents[1]): [topic],
+ patent_map_key(patents[2]): [unrelated],
+ },
+ )
+ assert len(filtered) == 3
+
+
+def test_filter_shoji_stays_zero() -> None:
+ author = _author("https://openalex.org/T10346", "M. Shoji")
+ patent = model.PatentEntry(
+ patent_id="EP0023413",
+ source="EPO",
+ inventors=["Shoji, M."],
+ assignees=["Western Electric Company, Incorporated"],
+ ipc=["G06F 11/26"],
+ )
+ unrelated = mapping_module.MappedOpenAlexTopic(
+ topic_id="https://openalex.org/T88888",
+ topic_display_name="Unrelated",
+ subfield_id="https://openalex.org/subfields/9999",
+ field_id="https://openalex.org/fields/17",
+ field_name="Computer Science",
+ )
+ filtered = filter_patents_by_ipc_topic_mapping(
+ [patent],
+ author,
+ is_ambiguous=True,
+ patent_topic_map={patent_map_key(patent): [unrelated]},
+ )
+ assert filtered == []
diff --git a/service/src/main/inse/patents/authors/test_search_pagination.py b/service/src/main/inse/patents/authors/test_search_pagination.py
new file mode 100644
index 00000000..4c902b16
--- /dev/null
+++ b/service/src/main/inse/patents/authors/test_search_pagination.py
@@ -0,0 +1,232 @@
+"""Unit tests for adaptive inventor-search pagination."""
+from __future__ import annotations
+
+import pytest
+
+from inse.patents.authors.search_pagination import (
+ SearchCompleteness,
+ classify_search_completeness,
+ count_unique_name_matches,
+ is_strong_name_match,
+ paginate_inventor_source,
+)
+from inse.patents.common import model
+from inse.patents.common.parsing import parse_epo_hits
+
+
+def _hit(patent_id: str, inventors: list[str], *, sort: list | None = None) -> dict:
+ doc = {
+ "_id": patent_id[2:],
+ "_source": {
+ "doc_number": patent_id[2:],
+ "inventors_name": inventors,
+ "applicants_name": [],
+ "title_en": f"Title {patent_id}",
+ },
+ }
+ if sort is not None:
+ doc["sort"] = sort
+ return doc
+
+
+def _response(total: int, hits: list[dict]) -> dict:
+ return {"hits": {"total": {"value": total, "relation": "eq"}, "hits": hits}}
+
+
+@pytest.fixture
+def anyio_backend():
+ return "asyncio"
+
+
+@pytest.mark.anyio
+async def test_pagination_stops_on_unique_strong_name_matches() -> None:
+ pages: list[dict] = []
+
+ async def search(payload: dict) -> dict:
+ pages.append(payload)
+ if "search_after" not in payload:
+ hits = [
+ _hit(f"EP{i:07d}", ["Other, Person"], sort=[1.0, "2020", i])
+ for i in range(100)
+ ]
+ else:
+ hits = [
+ _hit(
+ f"EP{100 + i:07d}",
+ ["Stein, Dan J."],
+ sort=[2.0, "2019", 100 + i],
+ )
+ for i in range(30)
+ ]
+ return _response(5000, hits)
+
+ result = await paginate_inventor_source(
+ source="EPO",
+ display_name="Dan J. Stein",
+ build_payload=lambda size, search_after: (
+ {"size": size, "search_after": search_after}
+ if search_after
+ else {"size": size, "from": 0}
+ ),
+ search=search,
+ parse_hits=parse_epo_hits,
+ page_size=100,
+ max_scanned=1000,
+ target_name_matches=30,
+ max_pages=10,
+ max_seconds=60.0,
+ )
+
+ assert result.pages_fetched == 2
+ assert result.strong_name_match_count >= 30
+ assert result.stop_reason == "target_strong_name_matches"
+ assert result.completeness == SearchCompleteness.TRUNCATED_INCONCLUSIVE
+ assert result.truncated is True
+ assert "search_after" in pages[1]
+
+
+@pytest.mark.anyio
+async def test_partial_matches_do_not_count_toward_stop_target() -> None:
+ """George Smith is partial for George Davey Smith — keep scanning."""
+
+ async def search(payload: dict) -> dict:
+ # Always return partial-style matches; never reach strong target.
+ offset = 0 if "search_after" not in payload else 100
+ hits = [
+ _hit(
+ f"EP{offset + i:07d}",
+ ["Smith, George"],
+ sort=[1.0, "2020", offset + i],
+ )
+ for i in range(100)
+ ]
+ return _response(5000, hits)
+
+ result = await paginate_inventor_source(
+ source="EPO",
+ display_name="George Davey Smith",
+ build_payload=lambda size, search_after: (
+ {"size": size, "search_after": search_after}
+ if search_after
+ else {"size": size}
+ ),
+ search=search,
+ parse_hits=parse_epo_hits,
+ page_size=100,
+ max_scanned=300,
+ target_name_matches=30,
+ max_pages=10,
+ max_seconds=60.0,
+ )
+
+ assert result.strong_name_match_count == 0
+ assert result.name_match_count > 0
+ assert result.stop_reason == "max_scanned"
+ assert result.completeness == SearchCompleteness.TRUNCATED_INCONCLUSIVE
+
+
+@pytest.mark.anyio
+async def test_duplicate_patent_ids_count_once() -> None:
+ patents = [
+ model.PatentEntry(
+ patent_id="EP1",
+ source="EPO",
+ inventors=["Stein, Dan J."],
+ assignees=[],
+ ),
+ model.PatentEntry(
+ patent_id="EP1",
+ source="EPO",
+ inventors=["Stein, Dan J."],
+ assignees=[],
+ ),
+ model.PatentEntry(
+ patent_id="EP2",
+ source="EPO",
+ inventors=["Stein, Dan J."],
+ assignees=[],
+ ),
+ ]
+ assert count_unique_name_matches(patents, "Dan J. Stein", strong_only=True) == 2
+
+
+@pytest.mark.anyio
+async def test_pagination_marks_truncated_inconclusive_at_max_scanned() -> None:
+ async def search(payload: dict) -> dict:
+ cursor = payload.get("search_after")
+ base = int(cursor[-1]) + 1 if cursor else 0
+ hits = [
+ _hit(f"EP{base + i:07d}", ["Other, Person"], sort=[1.0, "2020", base + i])
+ for i in range(payload["size"])
+ ]
+ return _response(200_000, hits)
+
+ result = await paginate_inventor_source(
+ source="EPO",
+ display_name="Dan J. Stein",
+ build_payload=lambda size, search_after: (
+ {"size": size, "search_after": search_after}
+ if search_after
+ else {"size": size}
+ ),
+ search=search,
+ parse_hits=parse_epo_hits,
+ page_size=100,
+ max_scanned=300,
+ target_name_matches=30,
+ max_pages=10,
+ max_seconds=60.0,
+ )
+
+ assert result.hits_scanned == 300
+ assert result.completeness == SearchCompleteness.TRUNCATED_INCONCLUSIVE
+ assert result.truncated is True
+ assert result.strong_name_match_count == 0
+
+
+@pytest.mark.anyio
+async def test_pagination_complete_when_exhausted() -> None:
+ async def search(payload: dict) -> dict:
+ hits = [_hit("EP0000001", ["Stein, Dan J."], sort=[1.0, "2020", 1])]
+ return _response(1, hits)
+
+ result = await paginate_inventor_source(
+ source="EPO",
+ display_name="Dan J. Stein",
+ build_payload=lambda size, search_after: {"size": size},
+ search=search,
+ parse_hits=parse_epo_hits,
+ page_size=100,
+ max_scanned=1000,
+ target_name_matches=30,
+ max_pages=10,
+ max_seconds=60.0,
+ )
+
+ assert result.completeness == SearchCompleteness.COMPLETE
+ assert result.truncated is False
+ assert result.stop_reason == "exhausted"
+ assert is_strong_name_match(result.patents[0], "Dan J. Stein")
+
+
+def test_classify_search_completeness() -> None:
+ assert (
+ classify_search_completeness(
+ hits_scanned=8, total_hits=8, stop_reason="exhausted"
+ )
+ == SearchCompleteness.COMPLETE
+ )
+ assert (
+ classify_search_completeness(
+ hits_scanned=1000, total_hits=200000, stop_reason="max_scanned"
+ )
+ == SearchCompleteness.TRUNCATED_INCONCLUSIVE
+ )
+ assert (
+ classify_search_completeness(
+ hits_scanned=200,
+ total_hits=5000,
+ stop_reason="target_strong_name_matches",
+ )
+ == SearchCompleteness.TRUNCATED_INCONCLUSIVE
+ )
diff --git a/service/src/main/inse/patents/authors/topic_filter.py b/service/src/main/inse/patents/authors/topic_filter.py
index 79ab8e20..3eb31701 100644
--- a/service/src/main/inse/patents/authors/topic_filter.py
+++ b/service/src/main/inse/patents/authors/topic_filter.py
@@ -5,8 +5,9 @@ from dataclasses import dataclass
from inse.models.openalex.author import Author
from inse.patents.authors.identity import (
+ best_name_match_kind,
+ classify_patent_institution_match,
patent_full_personal_identity_match,
- patent_institution_match,
patent_personal_assignee_match,
)
from inse.patents.authors.ipc_openalex_mapping import (
@@ -21,6 +22,7 @@ from inse.patents.authors.ipc_openalex_mapping import (
)
from inse.patents.common import model
from inse.patents.common.parsing import patent_map_key
+from inse.patents.common.text_normalization import normalize_name_part
@dataclass(frozen=True)
@@ -30,6 +32,11 @@ class TopicFilterResult:
matched_via_mapping: bool
institution_match: bool
personal_assignee_match: bool
+ last_known_institution_match: bool = False
+ historical_institution_match: bool = False
+ generic_institution_match: bool = False
+ name_match_kind: str = "none"
+ keep_reason: str = ""
def _author_has_topic_profile(author: Author) -> bool:
@@ -64,6 +71,77 @@ def _resolve_patent_topics(
return resolve_mapped_topics_for_patent(patent, mapping)
+def _inventor_token_set(patent: model.PatentEntry) -> set[str]:
+ tokens: set[str] = set()
+ for inventor in patent.inventors or []:
+ if not inventor:
+ continue
+ normalized = normalize_name_part(inventor).replace("-", " ")
+ for token in normalized.split():
+ if len(token) >= 3:
+ tokens.add(token)
+ return tokens
+
+
+def _shares_confirmed_co_inventors(
+ patent: model.PatentEntry,
+ secure_co_inventor_tokens: set[str],
+ *,
+ author_display_name: str,
+ min_shared: int = 2,
+) -> bool:
+ """True when patent shares enough co-inventor tokens with securely kept patents."""
+ if not secure_co_inventor_tokens:
+ return False
+ author_tokens = {
+ t
+ for t in normalize_name_part(author_display_name).replace("-", " ").split()
+ if len(t) >= 3
+ }
+ patent_tokens = _inventor_token_set(patent) - author_tokens
+ shared = patent_tokens & secure_co_inventor_tokens
+ return len(shared) >= min_shared
+
+
+def _shares_application_family(
+ patent: model.PatentEntry,
+ secure_patents: list[model.PatentEntry],
+) -> bool:
+ app = (patent.application_number or "").strip()
+ if not app:
+ return False
+ for other in secure_patents:
+ other_app = (other.application_number or "").strip()
+ if other_app and other_app == app and other.patent_id != patent.patent_id:
+ return True
+ return False
+
+
+def _result(
+ patent: model.PatentEntry,
+ *,
+ matched_via_mapping: bool,
+ personal_assignee_match: bool,
+ inst,
+ name_match_kind: str,
+ keep_reason: str,
+) -> TopicFilterResult:
+ return TopicFilterResult(
+ patent=patent,
+ decision="keep",
+ matched_via_mapping=matched_via_mapping,
+ institution_match=(
+ inst.last_known_institution_match or inst.historical_institution_match
+ ),
+ personal_assignee_match=personal_assignee_match,
+ last_known_institution_match=inst.last_known_institution_match,
+ historical_institution_match=inst.historical_institution_match,
+ generic_institution_match=inst.generic_institution_match,
+ name_match_kind=name_match_kind,
+ keep_reason=keep_reason,
+ )
+
+
def filter_patents_by_ipc_topic_mapping(
patents: list[model.PatentEntry],
author: Author,
@@ -76,38 +154,23 @@ def filter_patents_by_ipc_topic_mapping(
When ``patent_topic_map`` is provided (from the ``patents_openalex_keywords``
index via :class:`PatentOpenAlexMappingResolver`), that mapping is the primary
- signal: patents must share a topic or subfield with the author, unless the
- assignee matches one of the author's institutions.
+ signal. For ambiguous author names, last-known institutions are strong but
+ historical affiliations alone are not (variant D).
"""
table = mapping if mapping is not None else load_ipc_openalex_mapping()
using_keywords_index = patent_topic_map is not None
- institution_names = [
- name
- for institution in author.last_known_institutions or []
- if (name := getattr(institution, "display_name", None))
- ]
- for affiliation in author.affiliations or []:
- institution = getattr(affiliation, "institution", None)
- if institution is not None and (name := getattr(institution, "display_name", None)):
- institution_names.append(name)
-
display_name = author.display_name or ""
- filtered: list[TopicFilterResult] = []
+ evaluated: list[tuple[model.PatentEntry, dict]] = []
for patent in patents:
- institution_match = patent_institution_match(patent, institution_names)
- personal_assignee_match = patent_personal_assignee_match(patent, display_name)
- if using_keywords_index:
- if is_ambiguous:
- strong_identity = institution_match
- else:
- strong_identity = institution_match or patent_full_personal_identity_match(
- patent,
- display_name,
- )
- else:
- strong_identity = institution_match or personal_assignee_match
-
+ inst = classify_patent_institution_match(patent, author)
+ personal_assignee = patent_personal_assignee_match(patent, display_name)
+ full_identity = patent_full_personal_identity_match(
+ patent,
+ display_name,
+ is_ambiguous=is_ambiguous,
+ )
+ name_kind = best_name_match_kind(patent, display_name)
mapped_topics = _resolve_patent_topics(patent, table, patent_topic_map)
if using_keywords_index:
@@ -125,49 +188,128 @@ def filter_patents_by_ipc_topic_mapping(
else:
matched_via_mapping = patent_topics_match_author(patent, author, table)
- if strong_identity:
- filtered.append(
- TopicFilterResult(
- patent=patent,
- decision="keep",
- matched_via_mapping=matched_via_mapping,
- institution_match=institution_match,
- personal_assignee_match=personal_assignee_match,
- )
- )
- continue
-
- if matched_via_mapping:
- filtered.append(
- TopicFilterResult(
- patent=patent,
- decision="keep",
- matched_via_mapping=True,
- institution_match=False,
- personal_assignee_match=False,
- )
- )
- continue
-
- if using_keywords_index:
- continue
-
- if is_ambiguous:
- continue
-
- if _topic_conflict(mapped_topics, author):
- continue
-
- filtered.append(
- TopicFilterResult(
- patent=patent,
- decision="keep",
- matched_via_mapping=matched_via_mapping,
- institution_match=False,
- personal_assignee_match=False,
+ evaluated.append(
+ (
+ patent,
+ {
+ "inst": inst,
+ "personal_assignee": personal_assignee,
+ "full_identity": full_identity,
+ "name_kind": name_kind,
+ "matched_via_mapping": matched_via_mapping,
+ "mapped_topics": mapped_topics,
+ },
)
)
+ filtered: list[TopicFilterResult] = []
+ secure_patents: list[model.PatentEntry] = []
+
+ def _keep(patent: model.PatentEntry, meta: dict, reason: str) -> None:
+ filtered.append(
+ _result(
+ patent,
+ matched_via_mapping=meta["matched_via_mapping"],
+ personal_assignee_match=meta["personal_assignee"],
+ inst=meta["inst"],
+ name_match_kind=meta["name_kind"],
+ keep_reason=reason,
+ )
+ )
+ secure_patents.append(patent)
+
+ # Pass 1: strong signals (topic, last-known non-generic, full personal identity)
+ remaining: list[tuple[model.PatentEntry, dict]] = []
+ for patent, meta in evaluated:
+ inst = meta["inst"]
+ if meta["matched_via_mapping"]:
+ _keep(patent, meta, "strict_topic_match")
+ continue
+
+ if using_keywords_index and is_ambiguous:
+ if (
+ inst.last_known_institution_match
+ and not is_generic_only_last_known(inst)
+ ):
+ _keep(patent, meta, "last_known_institution")
+ continue
+ if meta["full_identity"] and meta["name_kind"] == "full":
+ _keep(patent, meta, "full_personal_identity")
+ continue
+ remaining.append((patent, meta))
+ continue
+
+ # Non-ambiguous or legacy mapping path
+ if using_keywords_index:
+ if inst.last_known_institution_match and not is_generic_only_last_known(inst):
+ _keep(patent, meta, "last_known_institution")
+ continue
+ if inst.historical_institution_match and not inst.generic_institution_match:
+ _keep(patent, meta, "historical_institution")
+ continue
+ if meta["full_identity"]:
+ _keep(patent, meta, "full_personal_identity")
+ continue
+ # No strong identity and no topic → drop when keywords index is used
+ continue
+
+ # Legacy non-keywords path
+ if inst.any_institution_match or meta["personal_assignee"]:
+ _keep(
+ patent,
+ meta,
+ "institution_or_personal_assignee",
+ )
+ continue
+ if is_ambiguous:
+ continue
+ if _topic_conflict(meta["mapped_topics"], author):
+ continue
+ _keep(patent, meta, "legacy_no_conflict")
+
+ if not (using_keywords_index and is_ambiguous):
+ filtered.sort(
+ key=lambda item: (
+ not item.matched_via_mapping,
+ not (item.institution_match or item.personal_assignee_match),
+ item.patent.publication_date or "",
+ ),
+ reverse=False,
+ )
+ return filtered
+
+ # Pass 2 (ambiguous + keywords): historical only with corroboration
+ author_tokens = {
+ t
+ for t in normalize_name_part(display_name).replace("-", " ").split()
+ if len(t) >= 3
+ }
+ secure_co_inventor_tokens: set[str] = set()
+ for secure in secure_patents:
+ secure_co_inventor_tokens |= _inventor_token_set(secure) - author_tokens
+
+ for patent, meta in remaining:
+ inst = meta["inst"]
+ if not inst.historical_institution_match:
+ continue
+ if inst.generic_institution_match and not inst.last_known_institution_match:
+ # Generic historical affiliation alone is never enough.
+ continue
+ # partial_name + historical alone is not enough (requires corroboration below)
+ if meta["matched_via_mapping"]:
+ _keep(patent, meta, "historical_institution+strict_topic_match")
+ continue
+ if _shares_application_family(patent, secure_patents):
+ _keep(patent, meta, "historical_institution+confirmed_family")
+ continue
+ if _shares_confirmed_co_inventors(
+ patent,
+ secure_co_inventor_tokens,
+ author_display_name=display_name,
+ ):
+ _keep(patent, meta, "historical_institution+confirmed_co_inventors")
+ continue
+
filtered.sort(
key=lambda item: (
not item.matched_via_mapping,
@@ -179,6 +321,16 @@ def filter_patents_by_ipc_topic_mapping(
return filtered
+def is_generic_only_last_known(inst) -> bool:
+ """True when the only last-known hit is a generic institution label."""
+ from inse.patents.institutions.name_matching import is_generic_institution_name
+
+ if not inst.last_known_institution_match:
+ return False
+ name = inst.last_known_institution_name
+ return bool(name) and is_generic_institution_name(name)
+
+
def finest_mapped_topic_label(
patent: model.PatentEntry,
mapping=None,
diff --git a/service/src/main/inse/patents/elastic_search_all_patents_client.py b/service/src/main/inse/patents/elastic_search_all_patents_client.py
index faf29ded..84835e7d 100644
--- a/service/src/main/inse/patents/elastic_search_all_patents_client.py
+++ b/service/src/main/inse/patents/elastic_search_all_patents_client.py
@@ -1,16 +1,15 @@
-#!/usr/bin/env python
-# -*- coding: utf-8 -*-
+
"""
HTTP client for fetching all patents from EPO and USPTO Elasticsearch indices.
"""
from typing import Any
-from .. import config
from inse.exceptions import MissingApiKeyError
-
from inse.integrations import elasticsearch
from inse.model import ESCluster
+from .. import config
+
EPO_INDEX = "epo_index_1.0"
USPTO_INDEX = "uspto_patents_3.0"
diff --git a/service/src/main/inse/patents/elastic_search_client.py b/service/src/main/inse/patents/elastic_search_client.py
index 840ac21e..3e561ef0 100644
--- a/service/src/main/inse/patents/elastic_search_client.py
+++ b/service/src/main/inse/patents/elastic_search_client.py
@@ -1,2 +1,2 @@
"""Backward-compatible re-exports."""
-from inse.patents.search_client import * # noqa: F403
+from inse.patents.search_client import *
diff --git a/service/src/main/inse/patents/institutions/logic.py b/service/src/main/inse/patents/institutions/logic.py
index 9575c38d..6caf7309 100644
--- a/service/src/main/inse/patents/institutions/logic.py
+++ b/service/src/main/inse/patents/institutions/logic.py
@@ -4,8 +4,7 @@ import logging
import httpx
from fastapi import HTTPException
-from starlette.status import HTTP_502_BAD_GATEWAY
-from starlette.status import HTTP_503_SERVICE_UNAVAILABLE
+from starlette.status import HTTP_502_BAD_GATEWAY, HTTP_503_SERVICE_UNAVAILABLE
from inse.institutions.institutions_search_client import InstitutionsSearchClient
from inse.models.openalex.institution import Institution
diff --git a/service/src/main/inse/patents/institutions/name_matching.py b/service/src/main/inse/patents/institutions/name_matching.py
index 132b85cb..ba0fbf95 100644
--- a/service/src/main/inse/patents/institutions/name_matching.py
+++ b/service/src/main/inse/patents/institutions/name_matching.py
@@ -5,12 +5,15 @@ from inse.patents.common.text_normalization import (
patent_transliteration_expansions,
)
+# Structural / stop words — never used as the sole basis for a match.
_INSTITUTION_GENERIC_TOKENS = frozenset({
"university", "universitat", "universitaet", "universiteit", "college",
"institute", "institut", "institution", "national", "sciences", "science",
"school", "center", "centre", "laboratory", "department", "academy",
+ "medical", "research", "foundation", "hospital", "hospitals",
"the", "of", "for", "and", "de", "la", "des", "der", "die", "das", "und",
- "fur", "von",
+ "fur", "von", "inc", "ltd", "llc", "gmbh", "corp", "corporation",
+ "company", "co", "org", "organization", "organisation",
})
MIN_INSTITUTION_SUBSTRING_LEN = 6
@@ -57,6 +60,7 @@ def institution_search_variants(value: str | None) -> list[str]:
def _significant_institution_tokens(text: str) -> set[str]:
+ """Specific (non-generic) tokens that can support an institution match."""
# Normalize hyphens to spaces so "Duisburg-Essen" splits into "duisburg" + "essen",
# matching both hyphenated and space-separated forms in patent databases.
normalized = normalize_name_part(text).replace("-", " ")
@@ -68,7 +72,21 @@ def _significant_institution_tokens(text: str) -> set[str]:
}
+def is_generic_institution_name(name: str | None) -> bool:
+ """True when the name has no specific organisation tokens (diagnostic + gating)."""
+ if not name or not name.strip():
+ return True
+ return not _significant_institution_tokens(name)
+
+
def assignee_matches_institution_name(assignee: str, institution_name: str) -> bool:
+ """Match patent assignee to an OpenAlex institution name.
+
+ Generic organisation tokens (``medical``, ``research``, ``foundation``,
+ ``university``, ``center``, …) may appear in both sides but cannot alone
+ produce a positive match. A match requires near-full name containment,
+ a short acronym hit, or overlapping *specific* tokens.
+ """
norm_assignee = normalize_name_part(assignee)
norm_name = normalize_name_part(institution_name)
if not norm_assignee or not norm_name:
@@ -80,18 +98,23 @@ def assignee_matches_institution_name(assignee: str, institution_name: str) -> b
norm_name_flat = norm_name.replace("-", " ")
assignee_tokens = set(norm_assignee_flat.split())
+ # Short acronyms / compact codes (e.g. "MIT", "KAIST").
if len(original) <= 6 and " " not in original:
return norm_name_flat in assignee_tokens
+ significant = _significant_institution_tokens(institution_name)
+ if not significant:
+ # Entirely generic labels such as "University Medical Center" never match.
+ return False
+
+ # Near-full normalised containment only when the institution string itself
+ # carries specific tokens (avoids "medical"/"research" substrings).
if len(norm_name_flat) >= MIN_INSTITUTION_SUBSTRING_LEN:
if norm_name_flat in norm_assignee_flat or norm_assignee_flat in norm_name_flat:
return True
- significant = _significant_institution_tokens(institution_name)
- if not significant:
- return False
-
matched = significant & assignee_tokens
if len(significant) >= 2:
return len(matched) >= 2
+ # Single specific token (e.g. "Harvard", "Louisville") is enough.
return bool(matched)
diff --git a/service/src/main/inse/patents/ipc_lookup.py b/service/src/main/inse/patents/ipc_lookup.py
index 9581ffe6..39b9305c 100644
--- a/service/src/main/inse/patents/ipc_lookup.py
+++ b/service/src/main/inse/patents/ipc_lookup.py
@@ -1,5 +1,4 @@
-#!/usr/bin/env python
-# -*- coding: utf-8 -*-
+
"""
Parse IPC/CPC symbols and assemble enriched classification objects.
"""
@@ -171,10 +170,10 @@ def _lookup_name(level_names: dict[str, str | None], *keys: str | None) -> str |
for key in keys:
if not key:
continue
- if key in level_names and level_names[key]:
+ if level_names.get(key):
return level_names[key]
normalized = normalize_ipc_symbol(key)
- if normalized in level_names and level_names[normalized]:
+ if level_names.get(normalized):
return level_names[normalized]
return None
diff --git a/service/src/main/inse/patents/ipc_search_client.py b/service/src/main/inse/patents/ipc_search_client.py
index 846a6a69..7a5b6924 100644
--- a/service/src/main/inse/patents/ipc_search_client.py
+++ b/service/src/main/inse/patents/ipc_search_client.py
@@ -1,5 +1,4 @@
-#!/usr/bin/env python
-# -*- coding: utf-8 -*-
+
"""
HTTP client for IPC/CPC classification lookups in the ipc Elasticsearch index.
"""
@@ -7,16 +6,19 @@ from __future__ import annotations
from typing import Any
-from .. import config
-from . import model
from inse.exceptions import MissingApiKeyError
-from .ipc_lookup import IpcHierarchyKeys
-from .ipc_lookup import build_ipc_classification
-from .ipc_lookup import parse_ipc_symbol
-
from inse.integrations import elasticsearch
from inse.model import ESCluster
+from .. import config
+from . import model
+from .ipc_lookup import (
+ IpcHierarchyKeys,
+ build_ipc_classification,
+ normalize_ipc_symbol,
+ parse_ipc_symbol,
+)
+
IPC_INDEX = "ipc"
_LEVELS: tuple[tuple[str, str, str], ...] = (
@@ -26,6 +28,10 @@ _LEVELS: tuple[tuple[str, str, str], ...] = (
("subgroup", "cpc_subgroup_number", "cpc_subgroup_name"),
)
+# Main-group symbols (typically */00, e.g. H01M8/00) live under these fields.
+_GROUP_FALLBACK_FIELDS = ("cpc_subclass_number", "cpc_subclass_name")
+
+
class IpcSearchClient:
def __init__(
@@ -91,6 +97,16 @@ class IpcSearchClient:
if level_symbols:
results[level] = await self._lookup_level(number_field, name_field, level_symbols)
+ group_symbols = {s for s in symbols_by_level["group"] if s}
+ if group_symbols:
+ fallback_number, fallback_name = _GROUP_FALLBACK_FIELDS
+ fallback_hits = await self._lookup_level(
+ fallback_number, fallback_name, group_symbols
+ )
+ for key, name in fallback_hits.items():
+ if name and not results["group"].get(key):
+ results["group"][key] = name
+
return results
async def _lookup_level(
@@ -102,13 +118,22 @@ class IpcSearchClient:
if not symbols:
return {}
+ # Query both raw and fully normalized forms so spaced/unspaced inputs match.
+ query_symbols: set[str] = set()
+ for symbol in symbols:
+ cleaned = symbol.strip()
+ if not cleaned:
+ continue
+ query_symbols.add(cleaned)
+ query_symbols.add(normalize_ipc_symbol(cleaned))
+
payload: dict[str, Any] = {
- "size": min(len(symbols), 100),
+ "size": min(len(query_symbols), 100),
"query": {
"bool": {
"should": [
{"bool": {"filter": [{"match_phrase": {number_field: symbol}}]}}
- for symbol in sorted(symbols)
+ for symbol in sorted(query_symbols)
],
"minimum_should_match": 1,
}
@@ -124,9 +149,12 @@ class IpcSearchClient:
number = source.get(number_field)
if not number:
continue
- normalized_number = number.strip().upper()
- found[normalized_number] = source.get(name_field)
- found[number.strip()] = source.get(name_field)
+ name = source.get(name_field)
+ stripped = str(number).strip()
+ normalized_number = normalize_ipc_symbol(stripped)
+ found[normalized_number] = name
+ found[stripped] = name
+ found[stripped.upper()] = name
return found
diff --git a/service/src/main/inse/patents/keywords/logic.py b/service/src/main/inse/patents/keywords/logic.py
index 1e030675..01e06de2 100644
--- a/service/src/main/inse/patents/keywords/logic.py
+++ b/service/src/main/inse/patents/keywords/logic.py
@@ -42,14 +42,21 @@ from inse.patents.keywords.model import (
from inse.patents.keywords.reverse_lookup import (
IpcCodeMatch,
KeywordIpcReverseLookup,
+)
+from inse.patents.keywords.reverse_lookup import (
_topic_group_key as _match_topic_group_key,
)
from inse.patents.keywords.search_queries import (
IpcPatentSearchQueries,
_search_terms_for_symbol,
)
-from inse.patents.patents_openalex_keywords.ipc_entries import infer_subclass, normalize_symbol
-from inse.patents.patents_openalex_keywords.resolver import PatentOpenAlexMappingResolver
+from inse.patents.patents_openalex_keywords.ipc_entries import (
+ infer_subclass,
+ normalize_symbol,
+)
+from inse.patents.patents_openalex_keywords.resolver import (
+ PatentOpenAlexMappingResolver,
+)
logger = logging.getLogger(__name__)
diff --git a/service/src/main/inse/patents/keywords/reverse_lookup.py b/service/src/main/inse/patents/keywords/reverse_lookup.py
index 5f29b445..6e3a3825 100644
--- a/service/src/main/inse/patents/keywords/reverse_lookup.py
+++ b/service/src/main/inse/patents/keywords/reverse_lookup.py
@@ -16,8 +16,12 @@ from inse.patents.common.elastic_search_client import MissingApiKeyError
from inse.patents.keywords.model import KeywordPatentSearchItem
from inse.patents.patents_openalex_keywords.client import PatentsOpenAlexKeywordsClient
from inse.patents.patents_openalex_keywords.ipc_entries import normalize_symbol
-from inse.patents.patents_openalex_keywords.mapping import PATENTS_OPENALEX_KEYWORDS_INDEX
-from inse.patents.patents_openalex_keywords.resolver import load_patents_openalex_keywords_json
+from inse.patents.patents_openalex_keywords.mapping import (
+ PATENTS_OPENALEX_KEYWORDS_INDEX,
+)
+from inse.patents.patents_openalex_keywords.resolver import (
+ load_patents_openalex_keywords_json,
+)
logger = logging.getLogger(__name__)
diff --git a/service/src/main/inse/patents/keywords/search_queries.py b/service/src/main/inse/patents/keywords/search_queries.py
index 02139697..c24570f6 100644
--- a/service/src/main/inse/patents/keywords/search_queries.py
+++ b/service/src/main/inse/patents/keywords/search_queries.py
@@ -5,7 +5,10 @@ from typing import Any
from inse.patents.common.elastic_search_client import DEFAULT_SEARCH_SIZE
from inse.patents.ipc_lookup import display_ipc_symbol, parse_ipc_symbol
-from inse.patents.patents_openalex_keywords.ipc_entries import infer_subclass, normalize_symbol
+from inse.patents.patents_openalex_keywords.ipc_entries import (
+ infer_subclass,
+ normalize_symbol,
+)
_PATENT_SOURCE_FIELDS = [
"doc_number",
diff --git a/service/src/main/inse/patents/keywords/service.py b/service/src/main/inse/patents/keywords/service.py
index 8aac2ea4..a991771b 100644
--- a/service/src/main/inse/patents/keywords/service.py
+++ b/service/src/main/inse/patents/keywords/service.py
@@ -3,7 +3,10 @@ from typing import Annotated
from fastapi import APIRouter, Body
from inse.patents.keywords import logic
-from inse.patents.keywords.model import PatentsByKeywordsRequest, PatentsByKeywordsResponse
+from inse.patents.keywords.model import (
+ PatentsByKeywordsRequest,
+ PatentsByKeywordsResponse,
+)
router = APIRouter(prefix="/api/inse-service/keywords", tags=["Keywords"])
diff --git a/service/src/main/inse/patents/keywords/test_logic.py b/service/src/main/inse/patents/keywords/test_logic.py
index b6f14912..4b48aaa4 100644
--- a/service/src/main/inse/patents/keywords/test_logic.py
+++ b/service/src/main/inse/patents/keywords/test_logic.py
@@ -10,21 +10,21 @@ from inse.patents.authors.ipc_openalex_mapping import MappedOpenAlexTopic
from inse.patents.common import model
from inse.patents.keywords.logic import (
TopicEvidence,
+ _aggregate_subclass_clusters,
+ _collect_keyword_text_evidence,
_compute_final_score,
_compute_topic_evidence,
- _collect_keyword_text_evidence,
_exact_topic_or_subfield_match,
- _keyword_text_passes_relevance_gate,
- _keyword_text_score,
_filter_keywords_for_patent_search,
_ipc_hierarchy_quality,
_keyword_is_patent_searchable,
+ _keyword_text_passes_relevance_gate,
+ _keyword_text_score,
_patent_passes_relevance_gate,
_patent_search_terms,
_score_ipc_match,
_score_patent,
_select_dominant_clusters,
- _aggregate_subclass_clusters,
_term_from_ipc_match,
_text_overlap_score,
_text_search_terms,
@@ -34,6 +34,10 @@ from inse.patents.keywords.logic import (
get_patents_by_keywords,
select_ipc_matches_by_cluster_mass,
)
+from inse.patents.keywords.model import (
+ KeywordPatentSearchItem,
+ PatentsByKeywordsRequest,
+)
from inse.patents.keywords.reverse_lookup import (
IpcCodeMatch,
_dedupe_ipc_matches,
@@ -41,7 +45,6 @@ from inse.patents.keywords.reverse_lookup import (
_weighted_score,
clear_reverse_lookup_caches,
)
-from inse.patents.keywords.model import KeywordPatentSearchItem, PatentsByKeywordsRequest
from inse.patents.keywords.search_queries import (
IpcPatentSearchQueries,
_search_terms_for_symbol,
@@ -1177,7 +1180,7 @@ def test_json_lookup_returns_empty_without_mapping(monkeypatch) -> None:
clear_reverse_lookup_caches()
monkeypatch.setattr(
"inse.patents.keywords.reverse_lookup.load_patents_openalex_keywords_json",
- lambda: {},
+ dict,
)
clear_reverse_lookup_caches()
diff --git a/service/src/main/inse/patents/logic.py b/service/src/main/inse/patents/logic.py
index 26e73984..1a6f71cb 100644
--- a/service/src/main/inse/patents/logic.py
+++ b/service/src/main/inse/patents/logic.py
@@ -4,6 +4,8 @@ from inse.patents.authors.logic import get_patents_by_author_id
from inse.patents.common.parsing import deduplicate_patents as _deduplicate_patents
from inse.patents.institutions.logic import (
filter_patents_by_institution as _filter_patents_by_institution,
+)
+from inse.patents.institutions.logic import (
get_patents_by_institution_id,
)
diff --git a/service/src/main/inse/patents/model.py b/service/src/main/inse/patents/model.py
index fe8a1047..4201a81d 100644
--- a/service/src/main/inse/patents/model.py
+++ b/service/src/main/inse/patents/model.py
@@ -1,2 +1,2 @@
"""Backward-compatible re-exports."""
-from inse.patents.common.model import * # noqa: F403
+from inse.patents.common.model import *
diff --git a/service/src/main/inse/patents/org/elastic_search_client.py b/service/src/main/inse/patents/org/elastic_search_client.py
index 157fefe1..0bee7f9e 100644
--- a/service/src/main/inse/patents/org/elastic_search_client.py
+++ b/service/src/main/inse/patents/org/elastic_search_client.py
@@ -6,12 +6,12 @@ from typing import Any
import httpx
+from inse import config
from inse.integrations import elasticsearch
from inse.models.openalex.author import Author
from inse.patents.common.elastic_search_client import MissingApiKeyError
from inse.patents.org.mapping import ORG_PATENTS_INDEX, ORG_PATENTS_MAPPING
from inse.patents.org.model import MatchTypeFilter, OrgPatentEntry
-from inse import config
logger = logging.getLogger(__name__)
@@ -256,6 +256,8 @@ class OrgPatentsSearchClient:
page: int = 0,
size: int = DEFAULT_PAGE_SIZE,
source: str | None = None,
+ from_year: int | None = None,
+ to_year: int | None = None,
) -> tuple[list[OrgPatentEntry], int]:
short_id = institution_id.replace("https://openalex.org/", "").upper()
filters: list[dict[str, Any]] = [{"term": {"institution_id": short_id}}]
@@ -270,6 +272,14 @@ class OrgPatentsSearchClient:
if source in ("EPO", "USPTO"):
filters.append({"term": {"source": source}})
+ year_range: dict[str, int] = {}
+ if from_year is not None:
+ year_range["gte"] = from_year
+ if to_year is not None:
+ year_range["lte"] = to_year
+ if year_range:
+ filters.append({"range": {"publication_year": year_range}})
+
payload = {
"from": page * size,
"size": size,
@@ -304,11 +314,27 @@ class OrgPatentsSearchClient:
self,
institution_id: str,
size: int = 10,
+ from_year: int | None = None,
+ to_year: int | None = None,
) -> list[dict[str, Any]]:
short_id = institution_id.replace("https://openalex.org/", "").upper()
+ filters: list[dict[str, Any]] = [{"term": {"institution_id": short_id}}]
+ year_range: dict[str, int] = {}
+ if from_year is not None:
+ year_range["gte"] = from_year
+ if to_year is not None:
+ year_range["lte"] = to_year
+ if year_range:
+ filters.append({"range": {"publication_year": year_range}})
+
+ query = (
+ {"term": {"institution_id": short_id}}
+ if len(filters) == 1
+ else {"bool": {"filter": filters}}
+ )
payload = {
"size": 0,
- "query": {"term": {"institution_id": short_id}},
+ "query": query,
"aggs": {
"matched_authors_nested": {
"nested": {"path": "matched_authors"},
diff --git a/service/src/main/inse/patents/org/logic.py b/service/src/main/inse/patents/org/logic.py
index d0c93be7..5225d251 100644
--- a/service/src/main/inse/patents/org/logic.py
+++ b/service/src/main/inse/patents/org/logic.py
@@ -6,8 +6,7 @@ from dataclasses import dataclass, field
import httpx
from fastapi import HTTPException
-from starlette.status import HTTP_502_BAD_GATEWAY
-from starlette.status import HTTP_503_SERVICE_UNAVAILABLE
+from starlette.status import HTTP_502_BAD_GATEWAY, HTTP_503_SERVICE_UNAVAILABLE
from inse.institutions.institutions_search_client import InstitutionsSearchClient
from inse.models.openalex.author import Author
@@ -29,18 +28,18 @@ from inse.patents.common.parsing import (
)
from inse.patents.institutions.logic import get_patents_by_institution_id
from inse.patents.ipc_search_client import IpcSearchClient
-from inse.patents.patents_openalex_keywords.client import PatentsOpenAlexKeywordsClient
from inse.patents.org.elastic_search_client import (
OrgPatentsSearchClient,
fetch_authors_by_institution_name,
)
from inse.patents.org.model import (
+ MatchedAuthor,
MatchType,
MatchTypeFilter,
- MatchedAuthor,
OrgPatentEntry,
OrgPatentsResponse,
)
+from inse.patents.patents_openalex_keywords.client import PatentsOpenAlexKeywordsClient
from inse.patents.search_client import PatentSearchClient
logger = logging.getLogger(__name__)
diff --git a/service/src/main/inse/patents/org/test_elastic_search_client.py b/service/src/main/inse/patents/org/test_elastic_search_client.py
index 6ac6ac7c..c5692f67 100644
--- a/service/src/main/inse/patents/org/test_elastic_search_client.py
+++ b/service/src/main/inse/patents/org/test_elastic_search_client.py
@@ -53,3 +53,43 @@ async def test_top_authors_by_institution_aggregates_matched_authors():
payload["aggs"]["matched_authors_nested"]["nested"]["path"]
== "matched_authors"
)
+
+
+@pytest.mark.anyio
+async def test_top_authors_by_institution_filters_by_publication_year():
+ requests: list[httpx.Request] = []
+
+ def handler(request: httpx.Request) -> httpx.Response:
+ requests.append(request)
+ return httpx.Response(
+ 200,
+ json={
+ "aggregations": {
+ "matched_authors_nested": {
+ "authors": {"buckets": []}
+ }
+ }
+ },
+ )
+
+ client = OrgPatentsSearchClient(
+ base_url="https://example.test",
+ api_key="key",
+ transport=httpx.MockTransport(handler),
+ )
+
+ await client.top_authors_by_institution(
+ "https://openalex.org/I123",
+ from_year=2020,
+ to_year=2024,
+ )
+
+ payload = json.loads(requests[0].content)
+ assert payload["query"] == {
+ "bool": {
+ "filter": [
+ {"term": {"institution_id": "I123"}},
+ {"range": {"publication_year": {"gte": 2020, "lte": 2024}}},
+ ]
+ }
+ }
diff --git a/service/src/main/inse/patents/org/test_logic.py b/service/src/main/inse/patents/org/test_logic.py
index 60622812..f513da34 100644
--- a/service/src/main/inse/patents/org/test_logic.py
+++ b/service/src/main/inse/patents/org/test_logic.py
@@ -5,7 +5,6 @@ from inse.patents.org.logic import (
org_patent_document_id,
resolve_match_type,
)
-from inse.patents.org.model import MatchedAuthor
def _patent(
diff --git a/service/src/main/inse/patents/patents_openalex_keywords/ipc_entries.py b/service/src/main/inse/patents/patents_openalex_keywords/ipc_entries.py
index b89ad79e..8756d8da 100644
--- a/service/src/main/inse/patents/patents_openalex_keywords/ipc_entries.py
+++ b/service/src/main/inse/patents/patents_openalex_keywords/ipc_entries.py
@@ -73,11 +73,35 @@ async def fetch_unique_ipc_entries(
) -> dict[str, dict[str, str]]:
entries: dict[str, dict[str, str]] = defaultdict(dict)
+ def _store_entry(
+ level: str,
+ symbol: str,
+ name: str,
+ *,
+ overwrite: bool,
+ ) -> None:
+ normalized = normalize_symbol(symbol)
+ if not normalized:
+ return
+ if level == "subclass":
+ if len(normalized) <= 3:
+ return
+ normalized = infer_subclass(symbol) or normalized
+ if level == "class" and len(normalized) != 3:
+ return
+ label = str(name).strip()
+ if not label:
+ return
+ if overwrite or normalized not in entries[level]:
+ entries[level][normalized] = label
+
async def _composite_with_label(
level: str,
number_field: str,
name_field: str,
page_size: int,
+ *,
+ overwrite: bool = True,
) -> bool:
for field_name in (number_field, f"{number_field}.keyword"):
after_key: dict[str, str] | None = None
@@ -126,12 +150,7 @@ async def fetch_unique_ipc_entries(
name = hits[0].get("_source", {}).get(name_field)
if not name:
continue
- normalized = normalize_symbol(str(symbol))
- if level == "subclass":
- if len(normalized) <= 3:
- continue
- normalized = infer_subclass(str(symbol)) or normalized
- entries[level][normalized] = str(name).strip()
+ _store_entry(level, str(symbol), str(name), overwrite=overwrite)
after_key = items.get("after_key")
if not after_key:
break
@@ -144,6 +163,8 @@ async def fetch_unique_ipc_entries(
number_field: str,
name_field: str,
size: int,
+ *,
+ overwrite: bool = True,
) -> None:
for field_name in (number_field, f"{number_field}.keyword"):
payload = {
@@ -180,14 +201,7 @@ async def fetch_unique_ipc_entries(
name = hits[0].get("_source", {}).get(name_field)
if not name:
continue
- normalized = normalize_symbol(str(symbol))
- if level == "class" and len(normalized) != 3:
- continue
- if level == "subclass":
- if len(normalized) <= 3:
- continue
- normalized = infer_subclass(str(symbol)) or normalized
- entries[level][normalized] = str(name).strip()
+ _store_entry(level, str(symbol), str(name), overwrite=overwrite)
if "section" in levels:
await _terms_with_label("section", "cpc_section_number", "cpc_section_name", 30)
@@ -196,6 +210,22 @@ async def fetch_unique_ipc_entries(
if "group" in levels:
if not await _composite_with_label("group", "cpc_group_number", "cpc_group_name", 1000):
await _terms_with_label("group", "cpc_group_number", "cpc_group_name", 20000)
+ # Main groups (e.g. H01M8/00) are stored under the historically misnamed
+ # cpc_subclass_* fields. Merge without overwriting existing group entries.
+ if not await _composite_with_label(
+ "group",
+ "cpc_subclass_number",
+ "cpc_subclass_name",
+ 1000,
+ overwrite=False,
+ ):
+ await _terms_with_label(
+ "group",
+ "cpc_subclass_number",
+ "cpc_subclass_name",
+ 20000,
+ overwrite=False,
+ )
if "subgroup" in levels:
if not await _composite_with_label("subgroup", "cpc_subgroup_number", "cpc_subgroup_name", 1000):
await _terms_with_label("subgroup", "cpc_subgroup_number", "cpc_subgroup_name", 20000)
diff --git a/service/src/main/inse/patents/patents_openalex_keywords/matching.py b/service/src/main/inse/patents/patents_openalex_keywords/matching.py
index 2467d4d6..84a62aa6 100644
--- a/service/src/main/inse/patents/patents_openalex_keywords/matching.py
+++ b/service/src/main/inse/patents/patents_openalex_keywords/matching.py
@@ -4,7 +4,7 @@ from __future__ import annotations
import json
import logging
from dataclasses import dataclass
-from datetime import datetime, timezone
+from datetime import UTC, datetime
from pathlib import Path
from typing import Any
@@ -225,7 +225,7 @@ def build_documents(
levels: tuple[str, ...],
top_k: int,
) -> list[tuple[str, dict]]:
- built_at = datetime.now(timezone.utc).isoformat()
+ built_at = datetime.now(UTC).isoformat()
documents: list[tuple[str, dict]] = []
label_cache: dict[str, tuple[list[dict], list[dict]]] = {}
@@ -271,6 +271,20 @@ def documents_to_json_mapping(documents: list[tuple[str, dict]]) -> dict[str, di
return mapping
+def _hierarchy_label(value: Any) -> str | None:
+ """Normalize OpenAlex hierarchy fields to plain strings for keyword mapping."""
+ if value is None:
+ return None
+ if isinstance(value, dict):
+ display = value.get("display_name") or value.get("name")
+ if display is None:
+ return None
+ text = str(display).strip()
+ return text or None
+ text = str(value).strip()
+ return text or None
+
+
class TopicVectorsMatcher:
def __init__(
@@ -337,9 +351,9 @@ class TopicVectorsMatcher:
"rank": len(topic_matches) + 1,
"topic_id": topic_id,
"topic_display_name": topic_name,
- "subfield": source.get("subfield"),
- "field": source.get("field"),
- "domain": source.get("domain"),
+ "subfield": _hierarchy_label(source.get("subfield")),
+ "field": _hierarchy_label(source.get("field")),
+ "domain": _hierarchy_label(source.get("domain")),
"match_score": round(score, 4),
}
)
@@ -378,7 +392,7 @@ async def build_documents_from_topicvectors(
levels: tuple[str, ...],
top_k: int,
) -> list[tuple[str, dict]]:
- built_at = datetime.now(timezone.utc).isoformat()
+ built_at = datetime.now(UTC).isoformat()
documents: list[tuple[str, dict]] = []
label_cache: dict[str, tuple[list[dict], list[dict]]] = {}
diff --git a/service/src/main/inse/patents/patents_openalex_keywords/resolver.py b/service/src/main/inse/patents/patents_openalex_keywords/resolver.py
index 8f7bfddc..4dc53a74 100644
--- a/service/src/main/inse/patents/patents_openalex_keywords/resolver.py
+++ b/service/src/main/inse/patents/patents_openalex_keywords/resolver.py
@@ -19,7 +19,10 @@ from inse.patents.patents_openalex_keywords.client import (
PatentsOpenAlexKeywordsClient,
candidate_doc_ids,
)
-from inse.patents.patents_openalex_keywords.ipc_entries import infer_subclass, normalize_symbol
+from inse.patents.patents_openalex_keywords.ipc_entries import (
+ infer_subclass,
+ normalize_symbol,
+)
logger = logging.getLogger(__name__)
diff --git a/service/src/main/inse/patents/patents_openalex_keywords/test_client.py b/service/src/main/inse/patents/patents_openalex_keywords/test_client.py
index bdde354d..4ad73f63 100644
--- a/service/src/main/inse/patents/patents_openalex_keywords/test_client.py
+++ b/service/src/main/inse/patents/patents_openalex_keywords/test_client.py
@@ -4,10 +4,11 @@ import httpx
import pytest
from inse.patents.patents_openalex_keywords.client import (
- _MAX_SEARCH_WINDOW,
PatentsOpenAlexKeywordsClient,
)
-from inse.patents.patents_openalex_keywords.mapping import PATENTS_OPENALEX_KEYWORDS_INDEX
+from inse.patents.patents_openalex_keywords.mapping import (
+ PATENTS_OPENALEX_KEYWORDS_INDEX,
+)
@pytest.fixture
diff --git a/service/src/main/inse/patents/patents_openalex_keywords/test_ipc_entries.py b/service/src/main/inse/patents/patents_openalex_keywords/test_ipc_entries.py
new file mode 100644
index 00000000..41ba1020
--- /dev/null
+++ b/service/src/main/inse/patents/patents_openalex_keywords/test_ipc_entries.py
@@ -0,0 +1,175 @@
+"""Tests for IPC entry fetching, including cpc_subclass_* main groups."""
+from __future__ import annotations
+
+from unittest.mock import AsyncMock, patch
+
+import pytest
+
+from inse.patents.patents_openalex_keywords.ipc_entries import (
+ fetch_unique_ipc_entries,
+ normalize_symbol,
+)
+
+
+@pytest.fixture
+def anyio_backend():
+ return "asyncio"
+
+
+def _composite_response(buckets: list[dict]) -> dict:
+ return {"aggregations": {"items": {"buckets": buckets, "after_key": None}}}
+
+
+def _bucket(symbol: str, name_field: str, name: str) -> dict:
+ return {
+ "key": {"symbol": symbol},
+ "sample": {"hits": {"hits": [{"_source": {name_field: name}}]}},
+ }
+
+
+@pytest.mark.anyio
+async def test_fetch_unique_ipc_entries_includes_main_groups_from_cpc_subclass():
+ """H01M8/00 from cpc_subclass_* is stored as group with a non-empty label."""
+
+ async def fake_search(*, index, body, cluster):
+ sources = body.get("aggs", {}).get("items", {}).get("composite", {}).get(
+ "sources", []
+ )
+ field = sources[0]["symbol"]["terms"]["field"] if sources else ""
+ # terms agg path
+ terms = body.get("aggs", {}).get("items", {}).get("terms", {})
+ if terms:
+ field = terms.get("field", "")
+
+ if field.startswith("cpc_section"):
+ return {"aggregations": {"items": {"buckets": []}}}
+ if field.startswith("cpc_class"):
+ return {
+ "aggregations": {
+ "items": {
+ "buckets": [
+ {
+ "key": "H01M",
+ "sample": {
+ "hits": {
+ "hits": [
+ {
+ "_source": {
+ "cpc_class_name": "BATTERIES"
+ }
+ }
+ ]
+ }
+ },
+ }
+ ]
+ }
+ }
+ }
+ if "cpc_group_number" in field:
+ return _composite_response(
+ [
+ _bucket(
+ "H01M8/08",
+ "cpc_group_name",
+ "Fuel cells with aqueous electrolytes",
+ )
+ ]
+ )
+ if "cpc_subclass_number" in field:
+ return _composite_response(
+ [
+ _bucket("H01M8/00", "cpc_subclass_name", "Fuel cells Manufacture thereof"),
+ _bucket("H01M 8/00", "cpc_subclass_name", "Fuel cells Manufacture thereof"),
+ _bucket("A01B1/00", "cpc_subclass_name", "Hand tools"),
+ ]
+ )
+ if "cpc_subgroup" in field:
+ return _composite_response(
+ [
+ _bucket("H01M8/083", "cpc_subgroup_name", "Alkaline fuel cells"),
+ ]
+ )
+ return {"aggregations": {"items": {"buckets": []}}}
+
+ with patch(
+ "inse.patents.patents_openalex_keywords.ipc_entries.elasticsearch.search",
+ new=AsyncMock(side_effect=fake_search),
+ ):
+ entries = await fetch_unique_ipc_entries()
+
+ assert "H01M8/00" in entries["group"]
+ assert entries["group"]["H01M8/00"]
+ assert "H01M 8/00" not in entries["group"] # spaced form normalized away
+ assert normalize_symbol("H01M 8/00") == "H01M8/00"
+ assert entries["group"]["H01M8/00"] == "Fuel cells Manufacture thereof"
+ assert "A01B1/00" in entries["group"]
+
+ # Existing levels unchanged in role
+ assert "H01M" in entries["subclass"]
+ assert "H01M8/083" in entries["subgroup"]
+ assert "H01M8/08" in entries["group"]
+
+
+@pytest.mark.anyio
+async def test_fetch_unique_ipc_entries_dedupes_normalized_group_symbols():
+ """Spaced and unspaced main-group variants collapse to one entry."""
+
+ async def fake_search(*, index, body, cluster):
+ sources = body.get("aggs", {}).get("items", {}).get("composite", {}).get(
+ "sources", []
+ )
+ field = sources[0]["symbol"]["terms"]["field"] if sources else ""
+ terms = body.get("aggs", {}).get("items", {}).get("terms", {})
+ if terms:
+ field = terms.get("field", "")
+
+ if "cpc_group_number" in field:
+ return _composite_response([])
+ if "cpc_subclass_number" in field:
+ return _composite_response(
+ [
+ _bucket("H01M8/00", "cpc_subclass_name", "from-unspaced"),
+ _bucket("H01M 8/00", "cpc_subclass_name", "from-spaced"),
+ ]
+ )
+ return {"aggregations": {"items": {"buckets": []}}}
+
+ with patch(
+ "inse.patents.patents_openalex_keywords.ipc_entries.elasticsearch.search",
+ new=AsyncMock(side_effect=fake_search),
+ ):
+ entries = await fetch_unique_ipc_entries(levels=("group",))
+
+ assert list(entries["group"]) == ["H01M8/00"]
+ # First write wins when overwrite=False for the subclass-field merge;
+ # both normalize to the same key so only one label is kept.
+ assert entries["group"]["H01M8/00"] in {"from-unspaced", "from-spaced"}
+
+
+@pytest.mark.anyio
+async def test_fetch_unique_ipc_entries_prefers_existing_group_over_subclass_field():
+ """cpc_group_* labels are not overwritten by cpc_subclass_*."""
+
+ async def fake_search(*, index, body, cluster):
+ sources = body.get("aggs", {}).get("items", {}).get("composite", {}).get(
+ "sources", []
+ )
+ field = sources[0]["symbol"]["terms"]["field"] if sources else ""
+ if "cpc_group_number" in field:
+ return _composite_response(
+ [_bucket("X01A1/00", "cpc_group_name", "from-group-field")]
+ )
+ if "cpc_subclass_number" in field:
+ return _composite_response(
+ [_bucket("X01A1/00", "cpc_subclass_name", "from-subclass-field")]
+ )
+ return {"aggregations": {"items": {"buckets": []}}}
+
+ with patch(
+ "inse.patents.patents_openalex_keywords.ipc_entries.elasticsearch.search",
+ new=AsyncMock(side_effect=fake_search),
+ ):
+ entries = await fetch_unique_ipc_entries(levels=("group",))
+
+ assert entries["group"]["X01A1/00"] == "from-group-field"
diff --git a/service/src/main/inse/patents/patents_openalex_keywords/test_matching.py b/service/src/main/inse/patents/patents_openalex_keywords/test_matching.py
index 66417433..c3d519a3 100644
--- a/service/src/main/inse/patents/patents_openalex_keywords/test_matching.py
+++ b/service/src/main/inse/patents/patents_openalex_keywords/test_matching.py
@@ -2,16 +2,27 @@
from __future__ import annotations
import numpy as np
-import pytest
from inse.patents.patents_openalex_keywords.matching import (
EmbeddingMatcher,
TopicCandidate,
+ _hierarchy_label,
top_k_indices,
topic_embedding_text,
)
+def test_hierarchy_label_extracts_display_name_from_object() -> None:
+ assert (
+ _hierarchy_label(
+ {"id": "https://openalex.org/subfields/2211", "display_name": "Mechanics of Materials"}
+ )
+ == "Mechanics of Materials"
+ )
+ assert _hierarchy_label("Oncology") == "Oncology"
+ assert _hierarchy_label(None) is None
+
+
def test_topic_embedding_text_joins_hierarchy() -> None:
topic = TopicCandidate(
topic_id="T1",
diff --git a/service/src/main/inse/patents/search_client.py b/service/src/main/inse/patents/search_client.py
index 38feee9e..9cd833e0 100644
--- a/service/src/main/inse/patents/search_client.py
+++ b/service/src/main/inse/patents/search_client.py
@@ -21,7 +21,7 @@ class PatentSearchClient(
__all__ = [
"DEFAULT_SEARCH_SIZE",
"EPO_INDEX",
+ "USPTO_INDEX",
"MissingApiKeyError",
"PatentSearchClient",
- "USPTO_INDEX",
]
diff --git a/service/src/main/inse/patents/service.py b/service/src/main/inse/patents/service.py
index 3cd2f6d8..92f487b2 100644
--- a/service/src/main/inse/patents/service.py
+++ b/service/src/main/inse/patents/service.py
@@ -1,5 +1,4 @@
"""Aggregates patent API routers."""
-from fastapi import APIRouter
from inse.patents.all.service import router as all_patents_router
from inse.patents.authors.service import router as author_patents_router
diff --git a/service/src/main/inse/patents/test_elastic_search_client.py b/service/src/main/inse/patents/test_elastic_search_client.py
index d9225534..e388f1c5 100644
--- a/service/src/main/inse/patents/test_elastic_search_client.py
+++ b/service/src/main/inse/patents/test_elastic_search_client.py
@@ -2,6 +2,7 @@ import json
import httpx
import pytest
+
from inse.model import ESIndex
from inse.patents.elastic_search_client import (
DEFAULT_SEARCH_SIZE,
@@ -26,13 +27,51 @@ def test_epo_query_uses_nested_search_and_name_variants():
payload = client.epo_query_by_inventor("Pedro José Marrón")
assert payload["size"] == DEFAULT_SEARCH_SIZE
+ assert payload["from"] == 0
assert payload["sort"][0] == {"_score": {"order": "desc"}}
nested = payload["query"]["nested"]
assert nested["path"] == "inventors_name_nested"
inventor_query = nested["query"]
+ # Family name + given/initial must both match; phrases only boost score.
+ assert "must" in inventor_query["bool"]
+ assert len(inventor_query["bool"]["must"]) == 2
assert "should" in inventor_query["bool"]
+def test_epo_and_uspto_inventor_queries_support_from_offset():
+ client = PatentSearchClient(api_key="test-key")
+ epo = client.epo_query_by_inventor("Dan J. Stein", size=100, from_=200)
+ uspto = client.uspto_query_by_inventor("Dan J. Stein", size=50, from_=100)
+ assert epo["from"] == 200
+ assert epo["size"] == 100
+ assert "search_after" not in epo
+ assert uspto["from"] == 100
+ assert uspto["size"] == 50
+
+
+def test_inventor_queries_use_search_after_instead_of_from():
+ client = PatentSearchClient(api_key="test-key")
+ cursor = [12.5, "20200101", 42]
+ epo = client.epo_query_by_inventor("Dan J. Stein", size=100, search_after=cursor)
+ uspto = client.uspto_query_by_inventor(
+ "Dan J. Stein", size=100, search_after=cursor
+ )
+ assert epo["search_after"] == cursor
+ assert "from" not in epo
+ assert uspto["search_after"] == cursor
+ assert "from" not in uspto
+
+
+def test_epo_query_never_searches_standalone_initial_without_last_name():
+ client = PatentSearchClient(api_key="test-key")
+ payload = client.epo_query_by_inventor("Dan J. Stein")
+ query_text = json.dumps(payload["query"])
+ # Single-letter tokens may appear inside must+given clauses, but the query
+ # structure always requires a family-name must clause as well.
+ assert '"must"' in query_text
+ assert "Stein" in query_text
+
+
def test_uspto_index_is_3_0():
assert ESIndex.USPTO_INDEX == "uspto_patents_3.0"
assert ESIndex.EPO_INDEX == "epo_index_1.0"
diff --git a/service/src/main/inse/patents/test_institution_matching.py b/service/src/main/inse/patents/test_institution_matching.py
index 3dc109cd..3625e2f1 100644
--- a/service/src/main/inse/patents/test_institution_matching.py
+++ b/service/src/main/inse/patents/test_institution_matching.py
@@ -41,6 +41,53 @@ def test_assignee_matches_institution_name_rejects_false_positives() -> None:
)
+def test_assignee_rejects_generic_token_only_matches() -> None:
+ assert not assignee_matches_institution_name(
+ "Green Sun Medical, LLC",
+ "University Medical Center",
+ )
+ assert not assignee_matches_institution_name(
+ "University Of Louisville Research Foundation, Inc.",
+ "Research Triangle Park Foundation",
+ )
+ assert not assignee_matches_institution_name(
+ "University Of Louisville Research Foundation, Inc.",
+ "Orthopaedic Research Foundation",
+ )
+ assert not assignee_matches_institution_name(
+ "Some Research Institute",
+ "Research Institute",
+ )
+
+
+def test_assignee_accepts_specific_last_known_style_matches() -> None:
+ assert assignee_matches_institution_name(
+ "Universitaet Duisburg-Essen",
+ "University of Duisburg-Essen",
+ )
+ assert assignee_matches_institution_name(
+ "Universitaetsmedizin der Johannes Gutenberg-Universitaet Mainz",
+ "Johannes Gutenberg University Mainz",
+ )
+ assert assignee_matches_institution_name(
+ "University Of Louisville Research Foundation, Inc.",
+ "University of Louisville",
+ )
+ assert assignee_matches_institution_name(
+ "Southwest Research Institute",
+ "Southwest Research Institute",
+ )
+
+
+def test_is_generic_institution_name() -> None:
+ from inse.patents.institutions.name_matching import is_generic_institution_name
+
+ assert is_generic_institution_name("University Medical Center")
+ assert is_generic_institution_name("Research Institute")
+ assert not is_generic_institution_name("University of Duisburg-Essen")
+ assert not is_generic_institution_name("Southwest Research Institute")
+
+
def test_filter_patents_by_institution_removes_unrelated_assignees() -> None:
institution = _institution(
display_name="Harvard University",
diff --git a/service/src/main/inse/patents/test_ipc_lookup.py b/service/src/main/inse/patents/test_ipc_lookup.py
index 941ff03b..7d26dbad 100644
--- a/service/src/main/inse/patents/test_ipc_lookup.py
+++ b/service/src/main/inse/patents/test_ipc_lookup.py
@@ -127,3 +127,23 @@ def test_build_ipc_classification_falls_back_to_symbol_only() -> None:
result = build_ipc_classification(keys, {})
assert result == IpcClassification(symbol="INVALID")
+
+
+def test_build_ipc_classification_main_group_from_normalized_key() -> None:
+ """Group labels keyed by normalized */00 symbols resolve for spaced inputs."""
+ keys = parse_ipc_symbol("H01M 8/00")
+ names = {
+ "section": {"H": "ELECTRICITY"},
+ "class": {
+ "H01": None,
+ "H01M": "BATTERIES / FUEL CELLS",
+ },
+ "group": {"H01M8/00": "Fuel cells Manufacture thereof"},
+ "subgroup": {},
+ }
+
+ result = build_ipc_classification(keys, names)
+
+ assert keys.main_group == "H01M8/00"
+ assert result.main_group == "H01M 8/00 - Fuel cells Manufacture thereof"
+ assert result.subclass == "H01M - BATTERIES / FUEL CELLS"
diff --git a/service/src/main/inse/patents/test_ipc_model.py b/service/src/main/inse/patents/test_ipc_model.py
index 5b942cba..9a352a6f 100644
--- a/service/src/main/inse/patents/test_ipc_model.py
+++ b/service/src/main/inse/patents/test_ipc_model.py
@@ -1,4 +1,3 @@
-import pytest
from inse.patents import model
diff --git a/service/src/main/inse/patents/test_ipc_search_client.py b/service/src/main/inse/patents/test_ipc_search_client.py
index 78df758e..2b6a580e 100644
--- a/service/src/main/inse/patents/test_ipc_search_client.py
+++ b/service/src/main/inse/patents/test_ipc_search_client.py
@@ -1,6 +1,8 @@
from unittest.mock import AsyncMock, patch
+
import pytest
+from inse.patents.ipc_lookup import parse_ipc_symbol
from inse.patents.ipc_search_client import IPC_INDEX, IpcSearchClient
@@ -59,3 +61,149 @@ async def test_resolve_symbols_does_not_crash_for_subclass_codes():
assert "A61J 1/14" in result
assert "C07D 319/06" in result
+
+
+@pytest.mark.anyio
+async def test_resolve_symbols_main_group_from_cpc_subclass_field():
+ """H01M8/00 description comes from cpc_subclass_name (main-group storage)."""
+
+ async def fake_search(*, index, body, cluster):
+ source_fields = body.get("_source") or []
+ if "cpc_subclass_number" in source_fields:
+ return {
+ "hits": {
+ "hits": [
+ {
+ "_source": {
+ "cpc_subclass_number": "H01M8/00",
+ "cpc_subclass_name": "Fuel cells Manufacture thereof",
+ }
+ }
+ ]
+ }
+ }
+ if "cpc_class_number" in source_fields:
+ return {
+ "hits": {
+ "hits": [
+ {
+ "_source": {
+ "cpc_class_number": "H01M",
+ "cpc_class_name": (
+ "PROCESSES OR MEANS, e.g. BATTERIES, FOR THE "
+ "DIRECT CONVERSION OF CHEMICAL ENERGY INTO "
+ "ELECTRICAL ENERGY"
+ ),
+ }
+ }
+ ]
+ }
+ }
+ if "cpc_section_number" in source_fields:
+ return {
+ "hits": {
+ "hits": [
+ {
+ "_source": {
+ "cpc_section_number": "H",
+ "cpc_section_name": "ELECTRICITY",
+ }
+ }
+ ]
+ }
+ }
+ return {"hits": {"hits": []}}
+
+ with patch(
+ "inse.integrations.elasticsearch.search",
+ new=AsyncMock(side_effect=fake_search),
+ ):
+ client = IpcSearchClient()
+ result = await client.resolve_symbols(["H01M8/00", "H01M 8/00"])
+
+ for symbol in ("H01M8/00", "H01M 8/00"):
+ clas = result[symbol]
+ assert clas.main_group is not None
+ assert "Fuel cells Manufacture thereof" in clas.main_group
+ assert clas.subclass is not None
+ assert clas.subclass.startswith("H01M")
+
+
+@pytest.mark.anyio
+async def test_resolve_symbols_keeps_subgroup_and_subclass_roles():
+ async def fake_search(*, index, body, cluster):
+ source_fields = body.get("_source") or []
+ if "cpc_subgroup_number" in source_fields:
+ return {
+ "hits": {
+ "hits": [
+ {
+ "_source": {
+ "cpc_subgroup_number": "H01M8/083",
+ "cpc_subgroup_name": "Alkaline fuel cells",
+ }
+ }
+ ]
+ }
+ }
+ if "cpc_group_number" in source_fields:
+ return {
+ "hits": {
+ "hits": [
+ {
+ "_source": {
+ "cpc_group_number": "H01M8/08",
+ "cpc_group_name": "Fuel cells with aqueous electrolytes",
+ }
+ }
+ ]
+ }
+ }
+ if "cpc_class_number" in source_fields:
+ return {
+ "hits": {
+ "hits": [
+ {
+ "_source": {
+ "cpc_class_number": "H01M",
+ "cpc_class_name": "BATTERIES / FUEL CELLS",
+ }
+ }
+ ]
+ }
+ }
+ if "cpc_section_number" in source_fields:
+ return {
+ "hits": {
+ "hits": [
+ {
+ "_source": {
+ "cpc_section_number": "H",
+ "cpc_section_name": "ELECTRICITY",
+ }
+ }
+ ]
+ }
+ }
+ return {"hits": {"hits": []}}
+
+ with patch(
+ "inse.integrations.elasticsearch.search",
+ new=AsyncMock(side_effect=fake_search),
+ ):
+ client = IpcSearchClient()
+ subgroup = (await client.resolve_symbols(["H01M8/083"]))["H01M8/083"]
+ subclass = (await client.resolve_symbols(["H01M"]))["H01M"]
+
+ assert subgroup.subgroup is not None
+ assert "Alkaline fuel cells" in subgroup.subgroup
+ assert subclass.subclass is not None
+ assert subclass.subclass.startswith("H01M")
+ assert subclass.main_group is None
+ assert subclass.subgroup is None
+
+ keys_subgroup = parse_ipc_symbol("H01M8/083")
+ assert keys_subgroup.subgroup == "H01M8/083"
+ keys_subclass = parse_ipc_symbol("H01M")
+ assert keys_subclass.subclass == "H01M"
+ assert keys_subclass.main_group is None
diff --git a/service/src/main/inse/patents/test_name_matching.py b/service/src/main/inse/patents/test_name_matching.py
index 675b93fd..1fbe7b7c 100644
--- a/service/src/main/inse/patents/test_name_matching.py
+++ b/service/src/main/inse/patents/test_name_matching.py
@@ -155,6 +155,64 @@ def test_inventor_search_phrases_include_comma_and_initials() -> None:
assert any("," in phrase for phrase in phrases)
+def test_inventor_search_phrases_exclude_standalone_single_letters() -> None:
+ for display_name in (
+ "Dan J. Stein",
+ "M. Shoji",
+ "Paul M. Thompson",
+ "Gregory Y. H. Lip",
+ ):
+ phrases = inventor_search_phrases(display_name)
+ standalone = [
+ phrase
+ for phrase in phrases
+ if len(normalize_name_part(phrase)) == 1
+ ]
+ assert standalone == [], f"{display_name}: {standalone}"
+
+
+def test_inventor_search_phrases_exclude_doubled_middle_tokens() -> None:
+ for display_name, forbidden_substrings in (
+ ("Dan J. Stein", ("j. j.", "dj j.", "d.j. j.")),
+ ("Paul M. Thompson", ("m. m.", "pm m.", "p.m. m.")),
+ ("Gregory Y.H. Lip", ("y.h. y.h.", "yh yh")),
+ ("Walter C. Willett", ("c. c.", "wc c.", "w.c. c.")),
+ ):
+ folded = {phrase.casefold() for phrase in inventor_search_phrases(display_name)}
+ for forbidden in forbidden_substrings:
+ assert not any(forbidden in phrase for phrase in folded), (
+ f"{display_name} still has {forbidden!r} in {sorted(folded)[:12]}"
+ )
+
+
+def test_inventor_search_phrases_exclude_whole_phrase_vowel_expansion() -> None:
+ phrases = inventor_search_phrases("Dan J. Stein")
+ folded = {phrase.casefold() for phrase in phrases}
+ assert not any("daen" in phrase for phrase in folded)
+
+ phrases = inventor_search_phrases("George Davey Smith")
+ folded = {phrase.casefold() for phrase in phrases}
+ assert not any("geoerge" in phrase for phrase in folded)
+
+ phrases = inventor_search_phrases("Paul M. Thompson")
+ folded = {phrase.casefold() for phrase in phrases}
+ assert not any("thoempsoen" in phrase for phrase in folded)
+
+
+def test_inventor_search_phrases_allow_initial_with_last_name() -> None:
+ phrases = inventor_search_phrases("Dan J. Stein")
+ folded = {phrase.casefold() for phrase in phrases}
+ assert any(phrase in folded for phrase in ("d stein", "d. stein", "dj stein"))
+
+
+def test_search_name_variants_multiword_skips_vowel_expansion_and_initial() -> None:
+ variants = search_name_variants("Dan J. Stein")
+ folded = {variant.casefold() for variant in variants}
+ assert "dan j. stein" in folded or "dan j stein" in folded
+ assert "d" not in folded
+ assert not any("daen" in variant for variant in folded)
+
+
def test_first_name_match_kind_multi_part() -> None:
assert (
first_name_match_kind_for_person("Marrón, Pedro José", "Pedro José Marrón")
@@ -166,6 +224,26 @@ def test_first_name_match_kind_multi_part() -> None:
)
+def test_partial_name_match_when_full_middle_given_missing() -> None:
+ assert name_matches_person("SMITH, George", "George Davey Smith")
+ assert (
+ first_name_match_kind_for_person("SMITH, George", "George Davey Smith")
+ == "partial"
+ )
+ assert (
+ first_name_match_kind_for_person(
+ "SMITH, George Davey",
+ "George Davey Smith",
+ )
+ == "full"
+ )
+ # Initial forms stay initial, not partial.
+ assert (
+ first_name_match_kind_for_person("G. D. Smith", "George Davey Smith")
+ == "initial"
+ )
+
+
def test_middle_initial_requires_corroboration() -> None:
assert not name_matches_person("Schmitz, Oliver", "Oliver J. Schmitz")
assert name_matches_person("Schmitz, Oliver J.", "Oliver J. Schmitz")
diff --git a/service/src/main/inse/persons/logic.py b/service/src/main/inse/persons/logic.py
index c8c7a157..99ce3d54 100644
--- a/service/src/main/inse/persons/logic.py
+++ b/service/src/main/inse/persons/logic.py
@@ -1,5 +1,4 @@
-#!/usr/bin/env python
-# -*- coding: utf-8 -*-
+
"""
Business logic for persons / authors.
"""
@@ -9,7 +8,8 @@ import json
import logging
import time
from datetime import datetime
-from typing import List, Optional
+
+from pydantic import ValidationError
from inse.exceptions import (
BadRequestException,
@@ -26,6 +26,7 @@ from inse.persons.model import (
CareerMetrics,
CustomAuthor,
CustomAuthorsListResponse,
+ PersonBio,
)
from inse.persons.query_builder import build_authors_search_rescored
from inse.works.logic import enrich_topic_descriptions
@@ -38,7 +39,7 @@ INDEX_NAME = "openalex-authors"
UDE_INSTITUTION_ID = "https://openalex.org/I62318514" # Universität Duisburg-Essen
-async def find_ude_author_by_name(display_name: str) -> Optional[dict]:
+async def find_ude_author_by_name(display_name: str) -> dict | None:
query = {
"_source": ["display_name"],
"query": {
@@ -87,7 +88,7 @@ async def find_ude_author_by_name(display_name: str) -> Optional[dict]:
"display_name": hit.get("_source", {}).get("display_name"),
}
-async def get_author_name_by_id(author_id: str) -> Optional[str]:
+async def get_author_name_by_id(author_id: str) -> str | None:
try:
query = {
"_source": ["id", "display_name"],
@@ -103,12 +104,33 @@ async def get_author_name_by_id(author_id: str) -> Optional[str]:
return None
return hits[0].get("_source", {}).get("display_name")
except Exception as e:
- logger.exception(f"Error fetching author name for id {author_id}: {str(e)}")
+ logger.exception(f"Error fetching author name for id {author_id}: {e!s}")
+ return None
+
+async def get_author_name_with_alternatives_by_id(author_id: str) -> list[str] | None:
+ try:
+ query = {
+ "_source": ["id", "display_name","display_name_alternatives"],
+ "query": {
+ "terms": {"id": [f"https://openalex.org/{author_id.upper()}"]}
+ },
+ "size": 1,
+ }
+
+ data = await elasticsearch.search(index=ESIndex.OPENALEX_AUTHORS, body=query)
+ hits = data.get("hits", {}).get("hits", [])
+ if not hits:
+ return None
+ names = hits[0].get("_source", {}).get("display_name_alternatives", [])
+ names.append(hits[0].get("_source", {}).get("display_name"))
+ return names
+ except Exception as e:
+ logger.exception(f"Error fetching author name for id {author_id}: {e!s}")
return None
async def search_persons(
- author_id: Optional[str] = None,
- query: Optional[str] = None,
+ author_id: str | None = None,
+ query: str | None = None,
) -> AuthorsListResponse:
if author_id:
query_ = {
@@ -171,10 +193,22 @@ async def count_authors_by_display_name(display_name: str) -> int:
Used purely as an internal ambiguity signal: a value >= 2 means at least one
other author shares the exact name.
+
+ Uses a ``term`` query on ``display_name.keyword`` so individual name tokens
+ cannot inflate the count the way an analyzed ``match`` / loose phrase query
+ would.
"""
if not display_name or not display_name.strip():
return 0
- query = {"match_phrase": {"display_name": display_name.strip()}}
+ exact_name = display_name.strip()
+ query = {
+ "term": {
+ "display_name.keyword": {
+ "value": exact_name,
+ "case_insensitive": True,
+ }
+ }
+ }
return await _count_authors(query)
@@ -186,7 +220,7 @@ async def count_authors_by_last_name(last_name: str) -> int:
return await _count_authors(query)
-async def _fetch_author_display_name(author_id: str) -> Optional[str]:
+async def _fetch_author_display_name(author_id: str) -> str | None:
query = {
"query_string": {
"default_field": "_id",
@@ -410,7 +444,7 @@ def _build_papers(works: list) -> list:
return papers
-async def get_data_for_bio(author_id: str) -> Optional[dict]:
+async def get_data_for_bio(author_id: str) -> dict | None:
display_name = await _fetch_author_display_name(author_id)
if display_name is None:
return None
@@ -427,7 +461,7 @@ async def get_data_for_bio(author_id: str) -> Optional[dict]:
async def generate_person_bio(
- author_id: str, include: Optional[set[str]] = None
+ author_id: str, include: set[str] | None = None
) -> str:
start_time = time.time()
author_data = await get_data_for_bio(author_id)
@@ -440,27 +474,34 @@ async def generate_person_bio(
Beschreibe in zwei Sätzen das Hauptforschungsfeld des Autors. Formuliere dabei allgemeinverständlich, sodass auch Personen ohne Fachwissen einen Einblick in die Forschung gewinnen. Nenne keine konkreten Publikationen oder Einzelwerke, sondern konzentriere dich auf die übergeordneten Forschungsinteressen und Themen. Verzichte auf bloße Aufzählungen und verbinde die Informationen zu einem flüssigen Text.
Beschreibe anschließend in ein bis zwei Sätzen die wirtschaftliche Relevanz der Forschung anhand von Anwendungen, Technologien oder Branchen, die davon profitieren könnten.
Verwende insgesamt maximal 100 bis 120 Wörter. Formuliere die Antwort so, dass sie ohne weitere Anpassungen direkt als Kurzbiografie verwendet werden kann. Verwende keine Superlative oder übertriebene Formulierungen, sondern bleibe sachlich und informativ. Gebe den Text als One-Liner zurück, ohne Zeilenumbrüche oder Aufzählungen. Verwende keine Gedankenstriche (– oder —) zur Gliederung von Sätzen. Formuliere stattdessen mit Kommas, Klammern oder zwei getrennten Sätzen.
+ Gib ausschließlich ein JSON-Objekt zurück, das den Text im Feld "bio" enthält.
"""
user_prompt = f"Daten zur Person:\n{person_json}"
- bio = await llm.call(
+ response = await llm.call(
system_prompt=system_prompt,
user_prompt=user_prompt,
+ json_schema=PersonBio.model_json_schema(),
+ schema_name="bio",
temperature=0.8,
top_p=0.95,
)
+ try:
+ bio = PersonBio.model_validate_json(response).bio
+ except ValidationError:
+ logger.warning(f"Bio generation for author {author_id} returned no valid JSON: {response}")
+ bio = "Etwas ist schiefgelaufen."
+
elapsed_time = time.time() - start_time
- logger.info(
- f"Bio generation for author {author_id} took {elapsed_time:.2f} seconds"
- )
+ logger.info(f"Bio generation for author {author_id} took {elapsed_time:.2f} seconds")
return bio
async def get_person_by_id(
- author_id: str, include: Optional[str] = None
+ author_id: str, include: str | None = None
) -> CustomAuthorsListResponse:
source = include.split(",") if include else None
@@ -492,9 +533,9 @@ async def get_person_by_id(
async def search_persons_by_name(
author_name: str,
- limit: Optional[int] = 10,
- page_offset: Optional[int] = 0,
- include: Optional[str] = None,
+ limit: int | None = 10,
+ page_offset: int | None = 0,
+ include: str | None = None,
) -> AuthorsListResponse:
if not author_name:
raise BadRequestException("name must be provided")
@@ -530,7 +571,7 @@ async def search_persons_by_name(
)
except ElasticsearchException as e:
- raise ElasticsearchException(f"Elasticsearch search failed: {str(e)}") from e
+ raise ElasticsearchException(f"Elasticsearch search failed: {e!s}") from e
total_count = response.get("hits", {}).get("total", {}).get("value", 0)
hits = response.get("hits", {}).get("hits", [])
@@ -542,7 +583,7 @@ async def search_persons_by_name(
async def search_persons_autocomplete(
- author_name: str, limit: Optional[int] = 5, include: Optional[str] = None
+ author_name: str, limit: int | None = 5, include: str | None = None
) -> AuthorsListResponse:
if not author_name:
raise BadRequestException("name must be provided")
@@ -580,7 +621,7 @@ async def search_persons_autocomplete(
try:
response = await elasticsearch.search(index="openalex-authors", body=body)
except ElasticsearchException as e:
- raise ElasticsearchException(f"Elasticsearch search failed: {str(e)}") from e
+ raise ElasticsearchException(f"Elasticsearch search failed: {e!s}") from e
hits = response.get("hits", {}).get("hits", [])
@@ -608,7 +649,7 @@ async def search_persons_autocomplete(
return AuthorsListResponse(results=persons)
-def _enrich_author_data(author_data) -> Optional[CustomAuthor]:
+def _enrich_author_data(author_data) -> CustomAuthor | None:
if not author_data:
return None
if not isinstance(author_data, dict):
@@ -652,17 +693,18 @@ def _enrich_author_data(author_data) -> Optional[CustomAuthor]:
async def advanced_search_persons(
- query: Optional[str] = None,
- institution_id: Optional[str] = None,
- sort_by: Optional[str] = None,
- sort_order: Optional[str] = None,
- topics: Optional[List[str]] = None,
+ query: str | None = None,
+ institution_id: str | None = None,
+ sort_by: str | None = None,
+ sort_order: str | None = None,
+ topics: list[str] | None = None,
page: int = 1,
page_size: int = 10,
- include: Optional[set[str]] = None,
+ include: set[str] | None = None,
year_filter_enabled: bool = True,
- filter_mode: Optional[str] = "from",
- filter_year: Optional[int] = None,
+ filter_mode: str | None = "from",
+ filter_year: int | None = None,
+ filter_year_to: int | None = None,
) -> CustomAuthorsListResponse:
try:
query_body = build_authors_search_rescored(
@@ -678,6 +720,7 @@ async def advanced_search_persons(
track_total_hits=True,
filter_mode=filter_mode,
filter_year=filter_year,
+ filter_year_to=filter_year_to,
)
response_dict = await elasticsearch.search(
index=INDEX_NAME,
@@ -689,7 +732,7 @@ async def advanced_search_persons(
results=[], meta=Meta(count=0, page=page, per_page=page_size)
)
except ElasticsearchException as e:
- logger.error(f"Elasticsearch search failed: {str(e)}")
+ logger.error(f"Elasticsearch search failed: {e!s}")
raise
total_count = response_dict.get("hits", {}).get("total", {}).get("value", 0)
hits = response_dict.get("hits", {}).get("hits", [])
diff --git a/service/src/main/inse/persons/model.py b/service/src/main/inse/persons/model.py
index 300ec2d9..220d5fb2 100644
--- a/service/src/main/inse/persons/model.py
+++ b/service/src/main/inse/persons/model.py
@@ -1,32 +1,31 @@
-#!/usr/bin/env python
-# -*- coding: utf-8 -*-
+
"""
Data models for persons / authors.
"""
-from pydantic import BaseModel
-from pydantic import Field
-from typing import List, Optional
-from inse.models.openalex.author import Author
-from inse.models.openalex.meta import Meta
-from inse.models.openalex.authors_list_response import AuthorsListResponse
+from pydantic import BaseModel, Field
+
+from inse.models.openalex.author import Author
+from inse.models.openalex.authors_list_response import AuthorsListResponse
from inse.models.openalex.group_by_result import GroupByResult
+from inse.models.openalex.meta import Meta
+
class CareerMetrics(BaseModel):
- first_publication_year: Optional[int] = Field(
+ first_publication_year: int | None = Field(
default=None, description="First publication year of the author."
)
- last_publication_year: Optional[int] = Field(
+ last_publication_year: int | None = Field(
default=None, description="Last publication year of the author."
)
- career_age: Optional[int] = Field(
+ career_age: int | None = Field(
default=None, description="Difference between last and first publication year."
)
- career_span: Optional[int] = Field(
+ career_span: int | None = Field(
default=None, description="Inclusive span from first to last publication year."
)
- career_stage: Optional[str] = Field(
+ career_stage: str | None = Field(
default=None,
description="Threshold-based career stage derived from active publication years.",
)
@@ -36,13 +35,13 @@ class CareerMetrics(BaseModel):
publication_count: int = Field(
default=0, description="Number of publications used for career metrics."
)
- publications_per_active_year: Optional[float] = Field(
+ publications_per_active_year: float | None = Field(
default=None, description="Average publications per active publication year."
)
- publications_per_career_year: Optional[float] = Field(
+ publications_per_career_year: float | None = Field(
default=None, description="Average publications per year over the full career span."
)
- years_since_last_publication: Optional[int] = Field(
+ years_since_last_publication: int | None = Field(
default=None, description="Years since the last publication."
)
has_suspicious_publication_years: bool = Field(
@@ -51,21 +50,21 @@ class CareerMetrics(BaseModel):
class CustomAuthor(Author):
- relevance_rating: Optional[str] = Field(
+ relevance_rating: str | None = Field(
default=None, description="The relevance suitability rating."
)
- career_metrics: Optional[CareerMetrics] = Field(
+ career_metrics: CareerMetrics | None = Field(
default=None, description="Publication-history-based career metrics."
)
class CustomAuthorsListResponse(AuthorsListResponse):
- placeholder: Optional[CustomAuthor] = Field(
+ placeholder: CustomAuthor | None = Field(
default=None, description="A placeholder field for generation."
)
- results: Optional[List[CustomAuthor]] = None
- meta: Optional[Meta] = None
- group_by: Optional[List[GroupByResult]] = None
+ results: list[CustomAuthor] | None = None
+ meta: Meta | None = None
+ group_by: list[GroupByResult] | None = None
class PersonBio(BaseModel):
@@ -73,14 +72,14 @@ class PersonBio(BaseModel):
class PersonFilters(BaseModel):
- institution: Optional[str] = None
- cited_by_count: Optional[int] = None
+ institution: str | None = None
+ cited_by_count: int | None = None
# more filters
class PersonSearchRequest(BaseModel):
- name: Optional[str] = None
+ name: str | None = None
filters: PersonFilters = PersonFilters()
- include: Optional[str] = None
- limit: Optional[int] = 10
- page_offset: Optional[int] = 0
+ include: str | None = None
+ limit: int | None = 10
+ page_offset: int | None = 0
diff --git a/service/src/main/inse/persons/query_builder.py b/service/src/main/inse/persons/query_builder.py
index 788ea3ac..0a34b4a1 100644
--- a/service/src/main/inse/persons/query_builder.py
+++ b/service/src/main/inse/persons/query_builder.py
@@ -1,4 +1,4 @@
-from typing import Any, List, Optional, Set
+from typing import Any
from inse.authors.institution_membership_query import (
build_institution_membership_query,
@@ -6,101 +6,22 @@ from inse.authors.institution_membership_query import (
)
-def build_author_filter_clauses(
- institution_id: Optional[str] = None,
- topics: Optional[List[str]] = None,
- year_filter_enabled: bool = True,
- filter_mode: Optional[str] = "from",
- filter_year: Optional[int] = None,
-) -> List[dict]:
- """Builds the list of Elasticsearch ``filter`` clauses used to select authors."""
- filter_clauses: List[dict] = []
-
- # Filter against false entries (nested ((Works > 2 AND Year > 2020) OR has last_known_institution))
- filter_clauses.append(
- {
- "bool": {
- "should": [
- {
- "bool": {
- "filter": [
- {"range": {"works_count": {"gt": 2}}},
- {
- "nested": {
- "path": "counts_by_year",
- "query": {
- "range": {
- "counts_by_year.year": {"gt": 2020}
- } # hardcoded for now
- },
- }
- },
- ]
- }
- },
- {
- "nested": {
- "path": "last_known_institutions",
- "query": {
- "exists": {"field": "last_known_institutions.id"}
- },
- }
- },
- ],
- "minimum_should_match": 1,
- }
- }
- )
- if institution_id:
- if year_filter_enabled:
- membership_mode = "in" if filter_mode == "in" else "from"
- membership_year = (
- filter_year
- if filter_year is not None
- else current_affiliation_year_cutoff()
- )
- else:
- membership_mode = "all"
- membership_year = None
-
- filter_clauses.append(
- build_institution_membership_query(
- institution_id=institution_id,
- year_mode=membership_mode,
- year=membership_year,
- )
- )
-
- if topics:
- for t in topics:
- if t:
- filter_clauses.append(
- {
- "nested": {
- "path": "topics",
- "query": {"match_phrase": {"topics.display_name": t}},
- }
- }
- )
-
- return filter_clauses
-
-
def build_authors_search_rescored(
using: Any = None,
- index: Optional[str] = None,
- query: Optional[str] = None,
- institution_id: Optional[str] = None,
- sort_by: Optional[str] = None,
- sort_order: Optional[str] = None,
- topics: Optional[List[str]] = None,
+ index: str | None = None,
+ query: str | None = None,
+ institution_id: str | None = None,
+ sort_by: str | None = None,
+ sort_order: str | None = None,
+ topics: list[str] | None = None,
page: int = 1,
page_size: int = 10,
- include: Optional[Set[str]] = None,
+ include: set[str] | None = None,
year_filter_enabled: bool = True,
- track_total_hits: Optional[bool] = False,
- filter_mode: Optional[str] = "from",
- filter_year: Optional[int] = None,
+ track_total_hits: bool | None = False,
+ filter_mode: str | None = "from",
+ filter_year: int | None = None,
+ filter_year_to: int | None = None,
name_quality_boost=True,
h_index_boost=True,
citations_boost=True,
@@ -129,13 +50,47 @@ def build_authors_search_rescored(
}
# 2. Build Filters
- filter_clauses = build_author_filter_clauses(
- institution_id=institution_id,
- topics=topics,
- year_filter_enabled=year_filter_enabled,
- filter_mode=filter_mode,
- filter_year=filter_year,
- )
+ filter_clauses: list[dict] = []
+ if institution_id:
+ if year_filter_enabled:
+ membership_mode = (
+ filter_mode
+ if filter_mode in {"in", "from", "between"}
+ else "from"
+ )
+ membership_year = (
+ filter_year
+ if filter_year is not None
+ else current_affiliation_year_cutoff()
+ )
+ membership_year_to = (
+ filter_year_to if membership_mode == "between" else None
+ )
+ else:
+ membership_mode = "all"
+ membership_year = None
+ membership_year_to = None
+
+ filter_clauses.append(
+ build_institution_membership_query(
+ institution_id=institution_id,
+ year_mode=membership_mode,
+ year=membership_year,
+ year_to=membership_year_to,
+ )
+ )
+
+ if topics:
+ filter_clauses.extend(
+ {
+ "nested": {
+ "path": "topics",
+ "query": {"match_phrase": {"topics.display_name": topic}},
+ }
+ }
+ for topic in topics
+ if topic
+ )
functions = []
if not sort_by:
diff --git a/service/src/main/inse/persons/service.py b/service/src/main/inse/persons/service.py
index 51fb1c5c..3f66255c 100644
--- a/service/src/main/inse/persons/service.py
+++ b/service/src/main/inse/persons/service.py
@@ -1,19 +1,15 @@
-#!/usr/bin/env python
-# -*- coding: utf-8 -*-
+
"""
REST API for persons / authors.
"""
-from typing import Annotated, Optional
+from typing import Annotated, Literal
+
+from fastapi import APIRouter, HTTPException, Path, Query, status
-from fastapi import APIRouter
-from fastapi import Path
-from fastapi import Query
-from typing import List
-from . import logic
-from . import model
from inse.models.openalex.authors_list_response import AuthorsListResponse
+from . import logic, model
router = APIRouter(
prefix="/api/inse-service",
@@ -37,7 +33,7 @@ async def search_persons(
str, Query(description="Search query (e.g., Arman AND Arzani)")
] = None,
include: Annotated[
- Optional[str],
+ str | None,
Query(
description=(
"Comma-separated include tags: topics_full, topic_share, summary_stats, ids, "
@@ -67,7 +63,7 @@ async def generate_person_bio(
str, Query(description="OpenAlex author ID (e.g., A5093075883)")
],
include: Annotated[
- Optional[str],
+ str | None,
Query(
description=("Comma-separated list to include tags"),
example="topics_full,topic_share",
@@ -94,7 +90,7 @@ async def get_person_by_id(
str, Path(description="OpenAlex author ID", examples=["A5093075883"])
],
include: Annotated[
- Optional[str],
+ str | None,
Query(
description=(
"Which data do we require? include tags: topics_full, topic_share, summary_stats, ids, "
@@ -117,7 +113,7 @@ async def get_person_by_id(
async def search_persons_by_name(
author_name: Annotated[str, Query(description="Authors name (e.g., Arman Arzani)")],
include: Annotated[
- Optional[str],
+ str | None,
Query(
description=(
"Which data do we require? include tags: topics_full, topic_share, summary_stats, ids, "
@@ -126,8 +122,8 @@ async def search_persons_by_name(
example="topics_full,topic_share",
),
],
- limit:Annotated[Optional[int], Query(description=("Limit of search page results"),example ="2")]= None,
- page_offset : Annotated[Optional[int], Query(description=("Offset of the result page"),example="2")] = None,
+ limit:Annotated[int | None, Query(description=("Limit of search page results"),example ="2")]= None,
+ page_offset : Annotated[int | None, Query(description=("Offset of the result page"),example="2")] = None,
):
return await logic.search_persons_by_name(author_name=author_name, include=include, page_offset=page_offset, limit=limit)
@@ -140,7 +136,7 @@ async def search_persons_by_name(
tags=['Persons'])
async def search_persons_autocomplete(
author_name: Annotated[str, Query(description="Authors name (e.g., Arman Arzani)")],
- include : Annotated[Optional[str], Query(
+ include : Annotated[str | None, Query(
description=(
"Which data do we require? include tags: topics_full, topic_share, summary_stats, ids, "
"last_known_institutions, ..."
@@ -160,20 +156,20 @@ async def search_persons_autocomplete(
)
async def search_persons_list(
query: Annotated[
- Optional[str], Query(description="Search query (e.g., Arman AND Arzani)")
+ str | None, Query(description="Search query (e.g., Arman AND Arzani)")
] = None,
institution_id: Annotated[
- Optional[str],
+ str | None,
Query(alias="institutionId", description="Filter by OpenAlex institution ID"),
] = None,
sort_by: Annotated[
- Optional[str], Query(alias="sortBy", description="Value to sort by")
+ str | None, Query(alias="sortBy", description="Value to sort by")
] = None,
sort_order: Annotated[
- Optional[str], Query(alias="sortOrder", description="asc or desc?")
+ str | None, Query(alias="sortOrder", description="asc or desc?")
] = None,
topic: Annotated[
- Optional[List[str]], Query(description="Filter by topic display names")
+ list[str] | None, Query(description="Filter by topic display names")
] = None,
page: Annotated[
int, Query(description="Page number (1-indexed)", ge=1)
@@ -182,7 +178,7 @@ async def search_persons_list(
int, Query(alias="pageSize", description="Results per page", ge=1, le=100)
] = 10,
include: Annotated[
- Optional[str],
+ str | None,
Query(
description="Comma-separated include tags",
example="topics_full,topic_share",
@@ -196,12 +192,28 @@ async def search_persons_list(
),
] = True,
filter_mode: Annotated[
- Optional[str], Query(alias="filterMode", description="Filter mode: 'in' or 'from'")
+ Literal["in", "from", "between"] | None,
+ Query(alias="filterMode", description="Affiliation year filter mode"),
] = "from",
filter_year: Annotated[
- Optional[int], Query(alias="filterYear", description="Filter year")
+ int | None, Query(alias="filterYear", description="Filter year")
+ ] = None,
+ filter_year_to: Annotated[
+ int | None,
+ Query(alias="filterYearTo", description="Upper filter year for 'between'"),
] = None,
):
+ if filter_mode == "between":
+ if filter_year is None or filter_year_to is None:
+ raise HTTPException(
+ status_code=status.HTTP_422_UNPROCESSABLE_ENTITY,
+ detail="filterYear and filterYearTo are required for filterMode='between'.",
+ )
+ if filter_year > filter_year_to:
+ raise HTTPException(
+ status_code=status.HTTP_422_UNPROCESSABLE_ENTITY,
+ detail="filterYear must be less than or equal to filterYearTo.",
+ )
include_set = (
{tag.strip().lower() for tag in include.split(",") if tag.strip()}
if include
@@ -219,4 +231,5 @@ async def search_persons_list(
year_filter_enabled=year_filter_enabled,
filter_mode=filter_mode,
filter_year=filter_year,
+ filter_year_to=filter_year_to,
)
diff --git a/service/src/main/inse/projects/bund_institutions/model.py b/service/src/main/inse/projects/bund_institutions/model.py
new file mode 100644
index 00000000..20cab386
--- /dev/null
+++ b/service/src/main/inse/projects/bund_institutions/model.py
@@ -0,0 +1,40 @@
+
+from inse.model import Page
+from pydantic import BaseModel
+
+
+class BundInstitutionSummary(BaseModel):
+ """A single institution entry derived from a BUND project record.
+
+ Note: this index has no dedicated institution entity — each entry is
+ reconstructed from the agency/recipient fields on a single project hit,
+ so the same institution may appear multiple times (once per project).
+ """
+
+ department: str | None = None
+ department_fullname: str | None = None
+ name: str | None = None
+ recepient: str | None = None
+ municipality: str | None = None
+ place: str | None = None
+ state: str | None = None
+ country: str | None = None
+
+ @classmethod
+ def from_source(cls, source: dict) -> "BundInstitutionSummary":
+ """Build a BundInstitutionSummary from a raw Elasticsearch _source dict."""
+ return cls(
+ department=source.get("Ressort"),
+ department_fullname=source.get("Ressort_fullname"),
+ name=source.get("Ausführende Stelle"),
+ recepient=source.get("Zuwendungsempfänger"),
+ municipality=source.get("Stadt/Gemeinde"),
+ place=source.get("Ort"),
+ state=source.get("Bundesland"),
+ country=source.get("Staat"),
+ )
+
+
+class BundInstitutionSummaryPage(Page[BundInstitutionSummary]):
+ """A paginated response containing a list of institutions."""
+
diff --git a/service/src/main/inse/projects/bund_institutions/router.py b/service/src/main/inse/projects/bund_institutions/router.py
new file mode 100644
index 00000000..8c6924fa
--- /dev/null
+++ b/service/src/main/inse/projects/bund_institutions/router.py
@@ -0,0 +1,49 @@
+import logging
+from typing import Annotated
+
+from fastapi import APIRouter, Query
+from inse.projects.bund_institutions.model import BundInstitutionSummaryPage
+from inse.projects.bund_institutions.service import (
+ autocomplete_institutions_for_selector,
+ get_institutions_by_names,
+)
+from inse.tags import Tags
+
+logger = logging.getLogger(__name__)
+
+
+INSTITUTIONS_BUND_PREFIX = "/api/bund/institutions"
+
+router = APIRouter(prefix=INSTITUTIONS_BUND_PREFIX, tags=[Tags.BUND_INSTITUTIONS])
+
+
+@router.get(
+ "/names",
+ operation_id="getBundInstitutionsByName",
+ summary="Returns a list of institutions based on their names.",
+)
+async def get_bund_institutions(
+ institution_names: Annotated[
+ list[str],
+ Query(description="A list of institution names to retrieve."),
+ ] = [],
+) -> BundInstitutionSummaryPage:
+
+ return await get_institutions_by_names(institution_names=institution_names or [])
+
+
+@router.get(
+ "/autocomplete/selector",
+ operation_id="getBundInstitutionAutocompleteForSelector",
+ summary="Returns a list of institutions based on a search term for autocomplete functionality.",
+)
+async def get_bund_institution_autocomplete(
+ query: Annotated[
+ str,
+ Query(
+ description="A search term to filter institutions by (partial matches allowed)."
+ ),
+ ] = "",
+) -> BundInstitutionSummaryPage:
+
+ return await autocomplete_institutions_for_selector(query=query)
diff --git a/service/src/main/inse/projects/bund_institutions/service.py b/service/src/main/inse/projects/bund_institutions/service.py
new file mode 100644
index 00000000..73834884
--- /dev/null
+++ b/service/src/main/inse/projects/bund_institutions/service.py
@@ -0,0 +1,169 @@
+import logging
+
+from inse.integrations import elasticsearch
+from inse.model import ESCluster, ESIndex
+from inse.projects.bund_institutions.model import (
+ BundInstitutionSummary,
+ BundInstitutionSummaryPage,
+)
+
+logger = logging.getLogger(__name__)
+
+# Fields on the BUND project index that describe the institution/agency involved,
+# used consistently across all lookup functions below.
+_INSTITUTION_SOURCE_FIELDS = [
+ "Ressort",
+ "Ressort_fullname",
+ "Ausführende Stelle",
+ "Zuwendungsempfänger",
+ "Stadt/Gemeinde",
+ "Ort",
+ "Bundesland",
+ "Staat",
+]
+
+
+async def search_institutions(
+ page: int = 0,
+ size: int = 10,
+ query: dict | None = None,
+ source: list[str] | None = None,
+ sort: list[dict] | None = None,
+ body: dict | None = None,
+) -> BundInstitutionSummaryPage:
+ """Searches for institutions in the BUND Projects Elasticsearch index based on the provided parameters.
+
+ Note: PROJECTS_BUND_V1 indexes projects, not institutions directly, so each
+ matching project hit is reshaped into a BundInstitutionSummary. The same
+ institution may therefore appear multiple times if it's tied to multiple projects.
+
+ Args:
+ page (int, optional): The page number to retrieve. Defaults to 0.
+ size (int, optional): The number of institutions to retrieve per page. Defaults to 10.
+ query (Optional[Dict], optional): The search query to filter institutions by. Defaults to None.
+ source (Optional[List[str]], optional): A list of fields to include in the response. Defaults to None.
+ sort (Optional[List[Dict]], optional): A list of sorting criteria. Defaults to None.
+ body (Optional[Dict], optional): The request body for the Elasticsearch search query. Defaults to None.
+
+ Returns:
+ BundInstitutionSummaryPage: A page of institutions matching the search criteria.
+ """
+ response = await elasticsearch.search(
+ index=ESIndex.PROJECTS_BUND_V1,
+ cluster=ESCluster.INSE,
+ query=query,
+ source=source or _INSTITUTION_SOURCE_FIELDS,
+ size=size,
+ offset=size * page,
+ sort=sort,
+ body=body,
+ )
+
+ hits_block = response.get("hits", {})
+ hits = hits_block.get("hits", [])
+ institutions: list[BundInstitutionSummary] = [
+ BundInstitutionSummary.from_source(hit.get("_source", {})) for hit in hits
+ ]
+
+ return BundInstitutionSummaryPage(
+ elements=institutions,
+ total=hits_block.get("total", {}).get("value", len(institutions)),
+ page=page,
+ size=size,
+ )
+
+
+async def get_institutions_by_names(institution_names: list[str]) -> BundInstitutionSummaryPage:
+ """Retrieves institutions based on a list of institution (Ausführende Stelle) names.
+
+ Args:
+ institution_names (List[str]): A list of institution names to retrieve.
+
+ Returns:
+ BundInstitutionSummaryPage: A page of institutions matching the provided names.
+ """
+ logger.debug(f"Fetching institutions for names: {institution_names}")
+ if not institution_names:
+ return BundInstitutionSummaryPage(elements=[], total=0, page=0, size=0)
+
+ return await search_institutions(
+ page=0,
+ size=len(institution_names),
+ query={
+ "terms": {
+ "Ausführende Stelle.keyword": institution_names,
+ }
+ },
+ source=_INSTITUTION_SOURCE_FIELDS,
+ )
+
+
+async def autocomplete_institutions(
+ query: str, page: int = 0, size: int = 10, source: list[str] | None = None
+) -> BundInstitutionSummaryPage:
+ """Autocompletes institutions based on a search term, matching against both the
+ executing agency (Ausführende Stelle) and recipient (Zuwendungsempfänger) fields.
+
+ Args:
+ query (str): The search term to autocomplete institutions with.
+ page (int, optional): The page number to retrieve. Defaults to 0.
+ size (int, optional): The number of institutions to retrieve per page. Defaults to 10.
+ source (Optional[List[str]], optional): A list of fields to include in the response. Defaults to None.
+
+ Returns:
+ BundInstitutionSummaryPage: A page of institutions matching the autocomplete criteria.
+ """
+ logger.debug(f"Autocomplete institutions for query: {query}")
+ if not query:
+ return BundInstitutionSummaryPage(elements=[], total=0, page=0, size=0)
+
+ return await search_institutions(
+ page=page,
+ size=size,
+ query={
+ "bool": {
+ "should": [
+ {
+ "match_phrase_prefix": {
+ "Ausführende Stelle": {
+ "query": query,
+ "max_expansions": 50,
+ "boost": 2,
+ }
+ }
+ },
+ {
+ "match_phrase_prefix": {
+ "Zuwendungsempfänger": {
+ "query": query,
+ "max_expansions": 50,
+ }
+ }
+ },
+ ],
+ "minimum_should_match": 1,
+ }
+ },
+ source=source or _INSTITUTION_SOURCE_FIELDS,
+ )
+
+
+async def autocomplete_institutions_for_selector(
+ query: str, page: int = 0, size: int = 10
+) -> BundInstitutionSummaryPage:
+ """Autocompletes institutions based on a search term for use in a selector component.
+
+ Args:
+ query (str): The search term to filter institutions by (partial matches allowed).
+ page (int, optional): The page number to retrieve. Defaults to 0.
+ size (int, optional): The number of institutions to retrieve per page. Defaults to 10.
+
+ Returns:
+ BundInstitutionSummaryPage: A page of institutions matching the autocomplete criteria.
+ """
+ return await autocomplete_institutions(
+ query=query,
+ page=page,
+ size=size,
+ source=_INSTITUTION_SOURCE_FIELDS,
+ )
\ No newline at end of file
diff --git a/service/src/main/inse/projects/dfg_institutions/model.py b/service/src/main/inse/projects/dfg_institutions/model.py
index 32f18aec..f4042936 100644
--- a/service/src/main/inse/projects/dfg_institutions/model.py
+++ b/service/src/main/inse/projects/dfg_institutions/model.py
@@ -1,8 +1,9 @@
from inse.model import Page
+
#from inse.models.projects_dfg_v2.institute.dfg_institute import DFGInstitute
from inse.projects.model import DfgInstitutionSummary
+
class DfgInstitutionSummaryPage(Page[DfgInstitutionSummary]):
"""A paginated response containing a list of institutions."""
- pass
diff --git a/service/src/main/inse/projects/dfg_institutions/router.py b/service/src/main/inse/projects/dfg_institutions/router.py
index a3e74631..a67dcfb0 100644
--- a/service/src/main/inse/projects/dfg_institutions/router.py
+++ b/service/src/main/inse/projects/dfg_institutions/router.py
@@ -2,10 +2,12 @@ import logging
from typing import Annotated
from fastapi import APIRouter, Query
-
from inse.projects.dfg_institutions.model import DfgInstitutionSummaryPage
+from inse.projects.dfg_institutions.service import (
+ autocomplete_institutions_for_selector,
+ get_institutions_by_ids,
+)
from inse.tags import Tags
-from inse.projects.dfg_institutions.service import autocomplete_institutions_for_selector, get_institutions_by_ids
logger = logging.getLogger(__name__)
diff --git a/service/src/main/inse/projects/dfg_institutions/service.py b/service/src/main/inse/projects/dfg_institutions/service.py
index 71c687b0..d7f8e9e1 100644
--- a/service/src/main/inse/projects/dfg_institutions/service.py
+++ b/service/src/main/inse/projects/dfg_institutions/service.py
@@ -1,11 +1,11 @@
import logging
-from typing import Dict, List, Optional
from inse.integrations import elasticsearch
-from inse.model import ESIndex, ESCluster
+from inse.model import ESCluster, ESIndex
+from inse.projects.dfg_institutions.model import DfgInstitutionSummaryPage
+
#from inse.models.projects_dfg_v2.institute.dfg_institute import DFGInstitute
from inse.projects.model import DfgInstitutionSummary
-from inse.projects.dfg_institutions.model import DfgInstitutionSummaryPage
logger = logging.getLogger(__name__)
@@ -13,10 +13,10 @@ logger = logging.getLogger(__name__)
async def search_institutions(
page: int = 0,
size: int = 10,
- query: Optional[Dict] = None,
- source: Optional[List[str]] = None,
- sort: Optional[List[Dict]] = None,
- body: Optional[Dict] = None,
+ query: dict | None = None,
+ source: list[str] | None = None,
+ sort: list[dict] | None = None,
+ body: dict | None = None,
) -> DfgInstitutionSummaryPage:
"""Searches for institutions in the DFG Institutes Elasticsearch index based on the provided parameters.
@@ -44,7 +44,7 @@ async def search_institutions(
hits_block = response.get("hits", {})
hits = hits_block.get("hits", [])
- institutions: List[DfgInstitutionSummary] = []
+ institutions: list[DfgInstitutionSummary] = []
for hit in hits:
_source = hit.get("_source", {})
# Handle nested institute object if present
@@ -62,7 +62,7 @@ async def search_institutions(
)
-async def get_institutions_by_ids(institution_ids: List[str]) -> DfgInstitutionSummaryPage:
+async def get_institutions_by_ids(institution_ids: list[str]) -> DfgInstitutionSummaryPage:
"""Retrieves institutions based on a list of institution IDs.
Args:
@@ -98,7 +98,7 @@ async def get_institutions_by_ids(institution_ids: List[str]) -> DfgInstitutionS
async def autocomplete_institutions(
- query: str, page: int = 0, size: int = 10, source: Optional[List[str]] = None
+ query: str, page: int = 0, size: int = 10, source: list[str] | None = None
) -> DfgInstitutionSummaryPage:
"""Autocompletes institutions based on a search term.
diff --git a/service/src/main/inse/projects/dfg_persons/model.py b/service/src/main/inse/projects/dfg_persons/model.py
index 1acf1c6e..e221a975 100644
--- a/service/src/main/inse/projects/dfg_persons/model.py
+++ b/service/src/main/inse/projects/dfg_persons/model.py
@@ -1,8 +1,9 @@
from inse.model import Page
+
#from inse.models.projects_dfg_v2.institute.dfg_institute import DFGInstitute
from inse.projects.model import DfgPersonSummary
+
class DfgPersonSummaryPage(Page[DfgPersonSummary]):
"""A paginated response containing a list of persons."""
- pass
diff --git a/service/src/main/inse/projects/dfg_persons/router.py b/service/src/main/inse/projects/dfg_persons/router.py
index a3f6f18f..a2e5b849 100644
--- a/service/src/main/inse/projects/dfg_persons/router.py
+++ b/service/src/main/inse/projects/dfg_persons/router.py
@@ -2,10 +2,12 @@ import logging
from typing import Annotated
from fastapi import APIRouter, Query
-
from inse.projects.dfg_persons.model import DfgPersonSummaryPage
+from inse.projects.dfg_persons.service import (
+ autocomplete_persons_for_selector,
+ get_persons_by_ids,
+)
from inse.tags import Tags
-from inse.projects.dfg_persons.service import autocomplete_persons_for_selector, get_persons_by_ids
logger = logging.getLogger(__name__)
diff --git a/service/src/main/inse/projects/dfg_persons/service.py b/service/src/main/inse/projects/dfg_persons/service.py
index a0929cb7..3af9819c 100644
--- a/service/src/main/inse/projects/dfg_persons/service.py
+++ b/service/src/main/inse/projects/dfg_persons/service.py
@@ -1,10 +1,9 @@
import logging
-from typing import Dict, List, Optional
from inse.integrations import elasticsearch
-from inse.model import ESIndex, ESCluster
-from inse.projects.model import DfgPersonSummary, DfgInstitutionSummary
-from inse.projects.dfg_persons.model import DfgPersonSummaryPage
+from inse.model import ESCluster, ESIndex
+from inse.projects.dfg_persons.model import DfgPersonSummaryPage
+from inse.projects.model import DfgInstitutionSummary, DfgPersonSummary
logger = logging.getLogger(__name__)
@@ -12,10 +11,10 @@ logger = logging.getLogger(__name__)
async def search_persons(
page: int = 0,
size: int = 10,
- query: Optional[Dict] = None,
- source: Optional[List[str]] = None,
- sort: Optional[List[Dict]] = None,
- body: Optional[Dict] = None,
+ query: dict | None = None,
+ source: list[str] | None = None,
+ sort: list[dict] | None = None,
+ body: dict | None = None,
) -> DfgPersonSummaryPage:
"""Searches for persons in the DFG Persons Elasticsearch index.
@@ -44,7 +43,7 @@ async def search_persons(
hits_block = response.get("hits", {})
hits = hits_block.get("hits", [])
- persons: List[DfgPersonSummary] = []
+ persons: list[DfgPersonSummary] = []
for hit in hits:
_source = hit.get("_source", {})
@@ -109,7 +108,7 @@ async def search_persons(
)
-async def get_persons_by_ids(person_ids: List[str]) -> DfgPersonSummaryPage:
+async def get_persons_by_ids(person_ids: list[str]) -> DfgPersonSummaryPage:
"""Retrieves persons by their IDs.
Args:
@@ -150,7 +149,7 @@ async def autocomplete_persons(
query: str,
page: int = 0,
size: int = 10,
- source: Optional[List[str]] = None,
+ source: list[str] | None = None,
) -> DfgPersonSummaryPage:
"""Autocomplete persons based on full name or ORCID.
diff --git a/service/src/main/inse/projects/eu_cordis_projects_client.py b/service/src/main/inse/projects/eu_cordis_projects_client.py
index 8efd3813..c0df87bb 100644
--- a/service/src/main/inse/projects/eu_cordis_projects_client.py
+++ b/service/src/main/inse/projects/eu_cordis_projects_client.py
@@ -1,51 +1,82 @@
-import logging
import asyncio
-from typing import Any, Dict, List, Optional, Union, Tuple, Set
+import logging
from collections import defaultdict
+from typing import Any
+
+from inse.authors.v2.model import Author, AuthorPage
+from inse.authors.v2.service import get_authors_by_ids
from inse.config import get_settings
from inse.integrations import elasticsearch
from inse.model import ESCluster, ESIndex
-from inse.authors.v2.model import AuthorPage
-from inse.authors.v2.service import get_authors_by_ids
+
# Import base models
from inse.models.cordis_eu_project import CordisEuProject
+from inse.models.openalex.topic import Topic
+from inse.models.projects_eu_cordis.fp7.fp7_eurosci_voc import Fp7EurosciVoc
+from inse.models.projects_eu_cordis.fp7.fp7_legal_basis import Fp7LegalBasis
+from inse.models.projects_eu_cordis.fp7.fp7_organization import Fp7Organization
# Import FP7 models
from inse.models.projects_eu_cordis.fp7.fp7_project import Fp7Project
-from inse.models.projects_eu_cordis.fp7.fp7_organization import Fp7Organization
-from inse.models.projects_eu_cordis.fp7.fp7_publication import Fp7Publication
+from inse.models.projects_eu_cordis.fp7.fp7_project_details import Fp7ProjectDetails
from inse.models.projects_eu_cordis.fp7.fp7_project_ipr import Fp7ProjectIPR
+from inse.models.projects_eu_cordis.fp7.fp7_publication import Fp7Publication
from inse.models.projects_eu_cordis.fp7.fp7_report_summary import Fp7ReportSummary
from inse.models.projects_eu_cordis.fp7.fp7_topic import Fp7Topic
from inse.models.projects_eu_cordis.fp7.fp7_web_link import Fp7WebLink
-from inse.models.projects_eu_cordis.fp7.fp7_eurosci_voc import Fp7EurosciVoc
-from inse.models.projects_eu_cordis.fp7.fp7_legal_basis import Fp7LegalBasis
-from inse.models.projects_eu_cordis.fp7.fp7_project_details import Fp7ProjectDetails
+from inse.models.projects_eu_cordis.horizon2020.h2020_deliverable import (
+ H2020Deliverable,
+)
+from inse.models.projects_eu_cordis.horizon2020.h2020_erc_pi import H2020ErcPI
+from inse.models.projects_eu_cordis.horizon2020.h2020_eurosci_voc import H2020EurosciVoc
+from inse.models.projects_eu_cordis.horizon2020.h2020_legal_basis import H2020LegalBasis
+from inse.models.projects_eu_cordis.horizon2020.h2020_organization import (
+ H2020Organization,
+)
# Import H2020 models
from inse.models.projects_eu_cordis.horizon2020.h2020_project import H2020Project
-from inse.models.projects_eu_cordis.horizon2020.h2020_organization import H2020Organization
-from inse.models.projects_eu_cordis.horizon2020.h2020_publication import H2020Publication
-from inse.models.projects_eu_cordis.horizon2020.h2020_deliverable import H2020Deliverable
-from inse.models.projects_eu_cordis.horizon2020.h2020_report_summary import H2020ReportSummary
+from inse.models.projects_eu_cordis.horizon2020.h2020_project_details import (
+ H2020ProjectDetails,
+)
+from inse.models.projects_eu_cordis.horizon2020.h2020_publication import (
+ H2020Publication,
+)
+from inse.models.projects_eu_cordis.horizon2020.h2020_report_summary import (
+ H2020ReportSummary,
+)
from inse.models.projects_eu_cordis.horizon2020.h2020_topic import H2020Topic
from inse.models.projects_eu_cordis.horizon2020.h2020_web_link import H2020WebLink
-from inse.models.projects_eu_cordis.horizon2020.h2020_eurosci_voc import H2020EurosciVoc
-from inse.models.projects_eu_cordis.horizon2020.h2020_legal_basis import H2020LegalBasis
-from inse.models.projects_eu_cordis.horizon2020.h2020_erc_pi import H2020ErcPI
-from inse.models.projects_eu_cordis.horizon2020.h2020_project_details import H2020ProjectDetails
+from inse.models.projects_eu_cordis.horizon_europe.heu_deliverable import HEUDeliverable
+from inse.models.projects_eu_cordis.horizon_europe.heu_eurosci_voc import HEUEurosciVoc
+from inse.models.projects_eu_cordis.horizon_europe.heu_legal_basis import HEULegalBasis
+from inse.models.projects_eu_cordis.horizon_europe.heu_organization import (
+ HEUOrganization,
+)
# Import Horizon Europe models
from inse.models.projects_eu_cordis.horizon_europe.heu_project import HEUProject
-from inse.models.projects_eu_cordis.horizon_europe.heu_organization import HEUOrganization
+from inse.models.projects_eu_cordis.horizon_europe.heu_project_details import (
+ HEUProjectDetails,
+)
from inse.models.projects_eu_cordis.horizon_europe.heu_publication import HEUPublication
-from inse.models.projects_eu_cordis.horizon_europe.heu_deliverable import HEUDeliverable
-from inse.models.projects_eu_cordis.horizon_europe.heu_report_summary import HEUReportSummary
+from inse.models.projects_eu_cordis.horizon_europe.heu_report_summary import (
+ HEUReportSummary,
+)
from inse.models.projects_eu_cordis.horizon_europe.heu_topic import HEUTopic
from inse.models.projects_eu_cordis.horizon_europe.heu_web_link import HEUWebLink
-from inse.models.projects_eu_cordis.horizon_europe.heu_eurosci_voc import HEUEurosciVoc
-from inse.models.projects_eu_cordis.horizon_europe.heu_legal_basis import HEULegalBasis
-from inse.models.projects_eu_cordis.horizon_europe.heu_project_details import HEUProjectDetails
+from inse.projects.logic import (
+ get_eu_project_ids_by_openalex_topic_ids,
+ get_openalex_topics_for_eu_projects,
+)
+from inse.projects.model import (
+ EuCordisEurosciVocSummary,
+ EuCordisOrganizationSummary,
+ EuCordisProjectSearchPage,
+ EuCordisProjectSummary,
+ EuCordisProjectType,
+ EuCordisTopicSummary,
+)
settings = get_settings()
logger = logging.getLogger(__name__)
@@ -85,24 +116,13 @@ _HEU_ENTITY_CONFIGS = [
{"key": "eurosci_voc", "index_pattern": ESIndex.CORDIS_EU_HORIZON_EUROPE_EUROSCIVOC, "model_class": HEUEurosciVoc},
{"key": "legal_basis_list", "index_pattern": ESIndex.CORDIS_EU_HORIZON_EUROPE_LEGAL_BASIS, "model_class": HEULegalBasis},
]
-
async def get_enriched_cordis_project_by_id(
project_id: str,
-) -> Optional[Union[Fp7ProjectDetails, H2020ProjectDetails, HEUProjectDetails]]:
- """
- Fetches and enriches a single Cordis EU project by its ID across all programme types.
-
- Args:
- project_id: The project ID to fetch.
-
- Returns:
- The enriched detailed project model, or None if not found.
- """
+) -> Fp7ProjectDetails | H2020ProjectDetails | HEUProjectDetails | None:
if not project_id:
return None
query = {"bool": {"filter": [{"term": {"id": project_id}}]}}
-
response = await elasticsearch.search(
query=query,
index=ESIndex.CORDIS_EU_PROJECTS_WILDCARD,
@@ -119,38 +139,149 @@ async def get_enriched_cordis_project_by_id(
index = hit.get("_index", "")
source = hit.get("_source", {})
- program_type = _determine_program_type_from_index(index)
+ project_type = EuCordisProjectType.from_index_name(index)
enrichers = {
- "fp7": _enrich_fp7_project,
- "h2020": _enrich_h2020_project,
- "heu": _enrich_heu_project,
+ EuCordisProjectType.FP7: _enrich_fp7_project,
+ EuCordisProjectType.H2020: _enrich_h2020_project,
+ EuCordisProjectType.HEU: _enrich_heu_project,
}
- enricher = enrichers.get(program_type)
+ enricher = enrichers.get(project_type)
if enricher is None:
logger.warning(f"Unknown programme type for index: {index}")
return CordisEuProject.model_validate(source)
- return await enricher(project_id, source)
+ return await enricher(project_id, source, project_type)
# helpers
-def _determine_program_type_from_index(index: str) -> str:
- """Determines the programme type from the Elasticsearch index name."""
- index_lower = index.lower()
- if "fp7" in index_lower:
- return "fp7"
- if "horizon_2020" in index_lower:
- return "h2020"
- if "heu" in index_lower or "horizon_europe" in index_lower:
- return "heu"
- return "unknown"
+
+async def _fetch_openalex_author_data_for_project_ids(
+ project_ids: list[str],
+) -> tuple[dict[str, AuthorPage], dict[str, dict[str, list[Author]]]]:
+ """
+ Single batched fetch that returns, per project_id:
+ - an AuthorPage of all OpenAlex authors across all of the project's publications
+ - a map of raw DOI -> List[Author] for attaching authors to individual publications
+ """
+ if not project_ids:
+ return {}, {}
+
+ query = {"bool": {"filter": [{"terms": {"projectID": project_ids}}]}}
+ response = await elasticsearch.search(
+ query=query,
+ index=ESIndex.CORDIS_EU_PUBLICATIONS_WILDCARD,
+ cluster=ESCluster.INSE,
+ source=["projectID", "doi", "qaProcessedDoi"],
+ size=10000,
+ )
+
+ dois_by_project: dict[str, set[str]] = {}
+ for hit in response.get("hits", {}).get("hits", []):
+ source = hit.get("_source", {})
+ pid = source.get("projectID")
+ if not pid:
+ continue
+ dois_by_project.setdefault(pid, set())
+ doi = source.get("doi")
+ qa_processed_doi = source.get("qaProcessedDoi")
+ if doi:
+ dois_by_project[pid].add(doi)
+ elif qa_processed_doi:
+ dois_by_project[pid].add(qa_processed_doi)
+
+ all_dois = list({doi for dois in dois_by_project.values() for doi in dois})
+
+ # single ES call for the whole batch, keyed by raw DOI
+ author_ids_by_doi = await get_openalex_author_ids_by_dois(dois=all_dois)
+ all_author_ids = list({aid for ids in author_ids_by_doi.values() for aid in ids})
+
+ # single ES call to fetch all Author objects across every project
+ author_page = await get_authors_by_ids(author_ids=all_author_ids)
+ authors_by_id = {author.id: author for author in author_page.elements}
+
+ author_page_by_project: dict[str, AuthorPage] = {}
+ doi_author_map_by_project: dict[str, dict[str, list[Author]]] = {}
+
+ for pid in project_ids:
+ dois = dois_by_project.get(pid, set())
+
+ doi_authors: dict[str, list[Author]] = {}
+ project_author_ids: set[str] = set()
+ for doi in dois:
+ ids_for_doi = author_ids_by_doi.get(doi, [])
+ doi_authors[doi] = [authors_by_id[aid] for aid in ids_for_doi if aid in authors_by_id]
+ project_author_ids.update(ids_for_doi)
+
+ doi_author_map_by_project[pid] = doi_authors
+
+ authors_for_project = [authors_by_id[aid] for aid in project_author_ids if aid in authors_by_id]
+ author_page_by_project[pid] = AuthorPage(
+ elements=authors_for_project,
+ total=len(authors_for_project),
+ page=0,
+ size=len(authors_for_project),
+ )
+
+ return author_page_by_project, doi_author_map_by_project
+
+
+async def get_openalex_authors_for_cordis_project_ids(
+ project_ids: list[str],
+) -> dict[str, AuthorPage]:
+ """Returns a mapping of project_id -> AuthorPage for a batch of projects."""
+ author_page_by_project, _ = await _fetch_openalex_author_data_for_project_ids(project_ids)
+ return author_page_by_project
+
+
+async def _fetch_authors_and_topics_for_project(
+ project_id: str,
+ project_type: EuCordisProjectType,
+) -> tuple[AuthorPage | None, list[Topic], dict[str, list[Author]]]:
+ """Fetches OpenAlex authors (project-level + per-DOI map) and mapped topics for a single project."""
+ (author_page_by_project, doi_author_map_by_project), topics_lookup = await asyncio.gather(
+ _fetch_openalex_author_data_for_project_ids([project_id]),
+ get_openalex_topics_for_eu_projects({project_type: [project_id]}),
+ )
+
+ author_page = author_page_by_project.get(project_id)
+ doi_author_map = doi_author_map_by_project.get(project_id, {})
+
+ raw_topic_matches = sorted(
+ topics_lookup.get((project_type, project_id), []),
+ key=lambda t: t.get("rank") if t.get("rank") is not None else float("inf"),
+ )
+ topics = [
+ EuCordisProjectSummary.topic_from_match(match)
+ for match in raw_topic_matches
+ if isinstance(match, dict)
+ ]
+
+ return author_page, topics, doi_author_map
+
+
+def _attach_authors_to_publications(
+ publications: list[Any],
+ doi_author_map: dict[str, list[Author]],
+) -> list[Any]:
+ """Sets oa_authors on each publication by matching its doi/qaProcessedDoi against doi_author_map."""
+ for pub in publications:
+ doi = getattr(pub, "doi", None)
+ qa_processed_doi = getattr(pub, "qa_processed_doi", None)
+
+ authors = doi_author_map.get(doi) if doi else None
+ if not authors and qa_processed_doi:
+ authors = doi_author_map.get(qa_processed_doi)
+
+ pub.oa_authors = authors or []
+
+ return publications
async def _fetch_related_entities_parallel(
project_id: str,
- entity_configs: List[Dict[str, Any]],
-) -> Dict[str, List[Any]]:
+ entity_configs: list[dict[str, Any]],
+) -> dict[str, list[Any]]:
"""
Fetches all related entity types for a project in parallel.
@@ -161,7 +292,7 @@ async def _fetch_related_entities_parallel(
Returns:
Dictionary mapping each config 'key' to a list of validated entities.
"""
- async def _fetch_one(config: Dict[str, Any]):
+ async def _fetch_one(config: dict[str, Any]):
entities = await _fetch_related_entities(
project_ids=[project_id],
index_pattern=config["index_pattern"],
@@ -172,7 +303,7 @@ async def _fetch_related_entities_parallel(
tasks = [_fetch_one(cfg) for cfg in entity_configs]
completed = await asyncio.gather(*tasks, return_exceptions=True)
- results: Dict[str, List[Any]] = {}
+ results: dict[str, list[Any]] = {}
for cfg, res in zip(entity_configs, completed):
key = cfg["key"]
if isinstance(res, Exception):
@@ -186,10 +317,10 @@ async def _fetch_related_entities_parallel(
async def _fetch_related_entities(
- project_ids: List[str],
+ project_ids: list[str],
index_pattern: str,
model_class: Any,
-) -> Dict[str, List[Any]]:
+) -> dict[str, list[Any]]:
"""
Fetches and groups related entities from Elasticsearch by project ID.
@@ -214,7 +345,7 @@ async def _fetch_related_entities(
logger.warning(f"Failed to fetch from {index_pattern}: {e}")
return {}
- grouped: Dict[str, List[Any]] = {}
+ grouped: dict[str, list[Any]] = {}
for hit in response.get("hits", {}).get("hits", []):
source = hit.get("_source", {})
@@ -233,11 +364,11 @@ async def _fetch_related_entities(
return grouped
-
async def _enrich_fp7_project(
project_id: str,
- project_source: Dict[str, Any],
-) -> Optional[Fp7ProjectDetails]:
+ project_source: dict[str, Any],
+ project_type: EuCordisProjectType,
+) -> Fp7ProjectDetails | None:
"""Enriches a single FP7 project with all related data."""
try:
project = Fp7Project.model_validate(project_source)
@@ -245,61 +376,74 @@ async def _enrich_fp7_project(
logger.error(f"Failed to validate FP7 project {project_id}: {e}")
return None
- related = await _fetch_related_entities_parallel(project_id, _FP7_ENTITY_CONFIGS)
+ related, (authors, topics, doi_author_map) = await asyncio.gather(
+ _fetch_related_entities_parallel(project_id, _FP7_ENTITY_CONFIGS),
+ _fetch_authors_and_topics_for_project(project_id, project_type),
+ )
- return Fp7ProjectDetails.from_project_with_relations(project=project, **related)
+ related["publications"] = _attach_authors_to_publications(
+ related.get("publications", []), doi_author_map
+ )
+
+ return Fp7ProjectDetails.from_project_with_relations(
+ project=project, oa_authors=authors, oa_topics=topics, **related
+ )
async def _enrich_h2020_project(
project_id: str,
- project_source: Dict[str, Any],
-) -> Optional[H2020ProjectDetails]:
- """Enriches a single H2020 project with all related data."""
+ project_source: dict[str, Any],
+ project_type: EuCordisProjectType,
+) -> H2020ProjectDetails | None:
try:
project = H2020Project.model_validate(project_source)
except Exception as e:
logger.error(f"Failed to validate H2020 project {project_id}: {e}")
return None
- related = await _fetch_related_entities_parallel(project_id, _H2020_ENTITY_CONFIGS)
+ related, (authors, topics, doi_author_map) = await asyncio.gather(
+ _fetch_related_entities_parallel(project_id, _H2020_ENTITY_CONFIGS),
+ _fetch_authors_and_topics_for_project(project_id, project_type),
+ )
- return H2020ProjectDetails.from_project_with_relations(project=project, **related)
+ related["publications"] = _attach_authors_to_publications(
+ related.get("publications", []), doi_author_map
+ )
+
+ return H2020ProjectDetails.from_project_with_relations(
+ project=project, oa_authors=authors, oa_topics=topics, **related
+ )
async def _enrich_heu_project(
project_id: str,
- project_source: Dict[str, Any],
-) -> Optional[HEUProjectDetails]:
- """Enriches a single Horizon Europe project with all related data."""
+ project_source: dict[str, Any],
+ project_type: EuCordisProjectType,
+) -> HEUProjectDetails | None:
try:
project = HEUProject.model_validate(project_source)
except Exception as e:
logger.error(f"Failed to validate Horizon Europe project {project_id}: {e}")
return None
- related = await _fetch_related_entities_parallel(project_id, _HEU_ENTITY_CONFIGS)
+ related, (authors, topics, doi_author_map) = await asyncio.gather(
+ _fetch_related_entities_parallel(project_id, _HEU_ENTITY_CONFIGS),
+ _fetch_authors_and_topics_for_project(project_id, project_type),
+ )
- return HEUProjectDetails.from_project_with_relations(project=project, **related)
+ related["publications"] = _attach_authors_to_publications(
+ related.get("publications", []), doi_author_map
+ )
+
+ return HEUProjectDetails.from_project_with_relations(
+ project=project, oa_authors=authors, oa_topics=topics, **related
+ )
-
-from inse.projects.model import (
- EuCordisProjectType,
- EuCordisProjectSearchPage,
- EuCordisProjectSummary,
- EuCordisOrganizationSummary,
- EuCordisTopicSummary,
- EuCordisEurosciVocSummary,
-)
-from inse.projects.logic import (
- get_eu_project_ids_by_openalex_topic_ids,
- get_openalex_topics_for_eu_projects,
-)
-
def _eu_project_type_index_filter(
- project_ids_by_type: Dict[EuCordisProjectType, List[str]],
-) -> Optional[Dict[str, Any]]:
+ project_ids_by_type: dict[EuCordisProjectType, list[str]],
+) -> dict[str, Any] | None:
should_clauses = []
for project_type, project_ids in project_ids_by_type.items():
@@ -328,7 +472,7 @@ def _eu_project_type_index_filter(
}
-def _eu_year_filters(field: str, years: List[str]) -> Dict[str, Any]:
+def _eu_year_filters(field: str, years: list[str]) -> dict[str, Any]:
should = []
for year in years:
@@ -368,10 +512,10 @@ def _eu_sort_field(sort_by: str) -> str:
async def get_eu_project_ids_by_organization_filters(
- project_types: List[EuCordisProjectType],
- organization_ids: Optional[List[str]] = None,
- organization_names: Optional[List[str]] = None,
-) -> Dict[EuCordisProjectType, List[str]]:
+ project_types: list[EuCordisProjectType],
+ organization_ids: list[str] | None = None,
+ organization_names: list[str] | None = None,
+) -> dict[EuCordisProjectType, list[str]]:
"""
Returns project IDs matching ALL selected organizations.
If organization_ids=[A,B], a project must have both A and B.
@@ -383,10 +527,10 @@ async def get_eu_project_ids_by_organization_filters(
if not organization_ids and not organization_names:
return {}
- result: Dict[EuCordisProjectType, List[str]] = {}
+ result: dict[EuCordisProjectType, list[str]] = {}
for project_type in project_types:
- project_org_matches: Dict[str, Set[str]] = defaultdict(set)
+ project_org_matches: dict[str, set[str]] = defaultdict(set)
should = []
@@ -396,11 +540,8 @@ async def get_eu_project_ids_by_organization_filters(
for name in organization_names:
should.append(
{
- "match": {
- "name": {
- "query": name,
- "operator": "and",
- }
+ "match_phrase": {
+ "name": name
}
}
)
@@ -421,7 +562,7 @@ async def get_eu_project_ids_by_organization_filters(
)
hits = response.get("hits", {}).get("hits", [])
-
+
for hit in hits:
source = hit.get("_source", {})
project_id = source.get("projectID")
@@ -437,22 +578,33 @@ async def get_eu_project_ids_by_organization_filters(
for org_name in organization_names:
if name and org_name.lower() in name.lower():
project_org_matches[project_id].add(f"name:{org_name.lower()}")
+ required_orgs = set()
- required = {f"id:{x}" for x in organization_ids}
- required.update({f"name:{x.lower()}" for x in organization_names})
+ # Add ID requirements
+ for org_id in organization_ids:
+ required_orgs.add(f"id:{org_id}")
- result[project_type] = [
- project_id
- for project_id, found in project_org_matches.items()
- if required.issubset(found)
- ]
+ required_id_set = {f"id:{x}" for x in organization_ids}
+ required_name_match = len(organization_names) > 0 # if any names, need at least one match
+ result[project_type] = []
+ for project_id, found in project_org_matches.items():
+ # Check ID matches
+ if not required_id_set.issubset(found):
+ continue
+
+ # Check name match: at least one name alias must be in found
+ if required_name_match:
+ if not any(f"name:{name.lower()}" in found for name in organization_names):
+ continue
+
+ result[project_type].append(project_id)
return result
async def get_eu_organizations_for_projects(
- project_ids_by_type: Dict[EuCordisProjectType, List[str]],
-) -> Dict[Tuple[EuCordisProjectType, str], List[EuCordisOrganizationSummary]]:
- lookup: Dict[Tuple[EuCordisProjectType, str], List[EuCordisOrganizationSummary]] = {}
+ project_ids_by_type: dict[EuCordisProjectType, list[str]],
+) -> dict[tuple[EuCordisProjectType, str], list[EuCordisOrganizationSummary]]:
+ lookup: dict[tuple[EuCordisProjectType, str], list[EuCordisOrganizationSummary]] = {}
for project_type, project_ids in project_ids_by_type.items():
if not project_ids:
@@ -501,9 +653,9 @@ async def get_eu_organizations_for_projects(
async def get_eu_cordis_topics_for_projects(
- project_ids_by_type: Dict[EuCordisProjectType, List[str]],
-) -> Dict[Tuple[EuCordisProjectType, str], List[EuCordisTopicSummary]]:
- lookup: Dict[Tuple[EuCordisProjectType, str], List[EuCordisTopicSummary]] = {}
+ project_ids_by_type: dict[EuCordisProjectType, list[str]],
+) -> dict[tuple[EuCordisProjectType, str], list[EuCordisTopicSummary]]:
+ lookup: dict[tuple[EuCordisProjectType, str], list[EuCordisTopicSummary]] = {}
for project_type, project_ids in project_ids_by_type.items():
if not project_ids:
@@ -537,9 +689,9 @@ async def get_eu_cordis_topics_for_projects(
async def get_eu_euroscivoc_for_projects(
- project_ids_by_type: Dict[EuCordisProjectType, List[str]],
-) -> Dict[Tuple[EuCordisProjectType, str], List[EuCordisEurosciVocSummary]]:
- lookup: Dict[Tuple[EuCordisProjectType, str], List[EuCordisEurosciVocSummary]] = {}
+ project_ids_by_type: dict[EuCordisProjectType, list[str]],
+) -> dict[tuple[EuCordisProjectType, str], list[EuCordisEurosciVocSummary]]:
+ lookup: dict[tuple[EuCordisProjectType, str], list[EuCordisEurosciVocSummary]] = {}
for project_type, project_ids in project_ids_by_type.items():
if not project_ids:
@@ -572,33 +724,37 @@ async def get_eu_euroscivoc_for_projects(
return lookup
-async def search_eu_cordis_projects(
- page: int,
- size: int,
- project_types: Optional[List[EuCordisProjectType]] = None,
- organization_ids: Optional[List[str]] = None,
- organization_names: Optional[List[str]] = None,
- author_project_ids: Optional[List[str]] = None,
- keywords: Optional[List[str]] = None,
- topic_ids: Optional[List[str]] = None,
- filter_topic_ids: Optional[List[str]] = None,
- title: Optional[str] = None,
- funding_start_years: Optional[List[str]] = None,
- funding_end_years: Optional[List[str]] = None,
- countries: Optional[List[str]] = None,
- framework_programmes: Optional[List[str]] = None,
- funding_schemes: Optional[List[str]] = None,
- statuses: Optional[List[str]] = None,
- sort_by: str = "title",
- sort_direction: str = "asc",
+class _NoMatchingEuProjects(Exception):
+ """Internal sentinel: some filter resolved to zero matching project IDs,
+ so the overall query can short-circuit to an empty result without
+ hitting Elasticsearch again."""
+
+
+async def _build_eu_cordis_search_query(
+ project_types: list[EuCordisProjectType] | None = None,
+ organization_ids: list[str] | None = None,
+ organization_names: list[str] | None = None,
+ author_project_ids: list[str] | None = None,
+ keywords: list[str] | None = None,
+ topic_ids: list[str] | None = None,
+ filter_topic_ids: list[str] | None = None,
+ title: str | None = None,
+ funding_start_years: list[str] | None = None,
+ funding_end_years: list[str] | None = None,
+ countries: list[str] | None = None,
+ framework_programmes: list[str] | None = None,
+ funding_schemes: list[str] | None = None,
+ statuses: list[str] | None = None,
fuzzy: bool = False,
-) -> EuCordisProjectSearchPage:
+) -> tuple[dict[str, Any], list[EuCordisProjectType], list[Any]]:
"""
- Generic EU CORDIS project search across FP7, H2020 and Horizon Europe.
- Mirrors DFG behavior:
- - fuzzy=True + topic_ids => OpenAlex topic mapping lookup
- - filter_topic_ids are always applied independently
- - selected organizations/topics must ALL match
+ Builds the (query, project_types, indices) tuple shared by every EU CORDIS
+ project search/aggregation. Centralizing this means the filters applied to
+ the results table and to any derived aggregation (e.g. funding-over-time)
+ can never drift apart.
+
+ Raises _NoMatchingEuProjects if any filter resolves to zero project IDs,
+ so callers can short-circuit to an empty result without a wasted query.
"""
if not project_types:
project_types = [
@@ -609,12 +765,12 @@ async def search_eu_cordis_projects(
indices = [project_type.to_project_index() for project_type in project_types]
- must_clauses: List[Dict[str, Any]] = []
+ must_clauses: list[dict[str, Any]] = []
# === Author filter resolved in service layer ===
if author_project_ids is not None:
if not author_project_ids:
- return EuCordisProjectSearchPage(elements=[], total=0, page=page, size=size)
+ raise _NoMatchingEuProjects()
must_clauses.append({"terms": {"id": author_project_ids}})
@@ -627,7 +783,7 @@ async def search_eu_cordis_projects(
topic_filter = _eu_project_type_index_filter(topic_project_ids_by_type)
if not topic_filter:
- return EuCordisProjectSearchPage(elements=[], total=0, page=page, size=size)
+ raise _NoMatchingEuProjects()
must_clauses.append(topic_filter)
@@ -682,7 +838,7 @@ async def search_eu_cordis_projects(
topic_filter = _eu_project_type_index_filter(filter_topic_project_ids_by_type)
if not topic_filter:
- return EuCordisProjectSearchPage(elements=[], total=0, page=page, size=size)
+ raise _NoMatchingEuProjects()
must_clauses.append(topic_filter)
@@ -696,7 +852,7 @@ async def search_eu_cordis_projects(
org_filter = _eu_project_type_index_filter(org_project_ids_by_type)
if not org_filter:
- return EuCordisProjectSearchPage(elements=[], total=0, page=page, size=size)
+ raise _NoMatchingEuProjects()
must_clauses.append(org_filter)
@@ -732,7 +888,7 @@ async def search_eu_cordis_projects(
# === Country filter requires organization lookup ===
if countries:
- country_project_ids_by_type: Dict[EuCordisProjectType, List[str]] = {}
+ country_project_ids_by_type: dict[EuCordisProjectType, list[str]] = {}
for project_type in project_types:
response = await elasticsearch.search(
@@ -759,12 +915,64 @@ async def search_eu_cordis_projects(
country_filter = _eu_project_type_index_filter(country_project_ids_by_type)
if not country_filter:
- return EuCordisProjectSearchPage(elements=[], total=0, page=page, size=size)
+ raise _NoMatchingEuProjects()
must_clauses.append(country_filter)
query = {"bool": {"must": must_clauses}} if must_clauses else {"match_all": {}}
+ return query, project_types, indices
+
+
+async def search_eu_cordis_projects(
+ page: int,
+ size: int,
+ project_types: list[EuCordisProjectType] | None = None,
+ organization_ids: list[str] | None = None,
+ organization_names: list[str] | None = None,
+ author_project_ids: list[str] | None = None,
+ keywords: list[str] | None = None,
+ topic_ids: list[str] | None = None,
+ filter_topic_ids: list[str] | None = None,
+ title: str | None = None,
+ funding_start_years: list[str] | None = None,
+ funding_end_years: list[str] | None = None,
+ countries: list[str] | None = None,
+ framework_programmes: list[str] | None = None,
+ funding_schemes: list[str] | None = None,
+ statuses: list[str] | None = None,
+ sort_by: str = "title",
+ sort_direction: str = "asc",
+ fuzzy: bool = False,
+) -> EuCordisProjectSearchPage:
+ """
+ Generic EU CORDIS project search across FP7, H2020 and Horizon Europe.
+ Mirrors DFG behavior:
+ - fuzzy=True + topic_ids => OpenAlex topic mapping lookup
+ - filter_topic_ids are always applied independently
+ - selected organizations/topics must ALL match
+ """
+ try:
+ query, project_types, indices = await _build_eu_cordis_search_query(
+ project_types=project_types,
+ organization_ids=organization_ids,
+ organization_names=organization_names,
+ author_project_ids=author_project_ids,
+ keywords=keywords,
+ topic_ids=topic_ids,
+ filter_topic_ids=filter_topic_ids,
+ title=title,
+ funding_start_years=funding_start_years,
+ funding_end_years=funding_end_years,
+ countries=countries,
+ framework_programmes=framework_programmes,
+ funding_schemes=funding_schemes,
+ statuses=statuses,
+ fuzzy=fuzzy,
+ )
+ except _NoMatchingEuProjects:
+ return EuCordisProjectSearchPage(elements=[], total=0, page=page, size=size)
+
sort_direction = sort_direction.lower()
if sort_direction not in ["asc", "desc"]:
sort_direction = "asc"
@@ -807,7 +1015,7 @@ async def search_eu_cordis_projects(
hits = response.get("hits", {}).get("hits", [])
total = response.get("hits", {}).get("total", {}).get("value", 0)
- project_ids_by_type: Dict[EuCordisProjectType, List[str]] = defaultdict(list)
+ project_ids_by_type: dict[EuCordisProjectType, list[str]] = defaultdict(list)
for hit in hits:
project_type = EuCordisProjectType.from_index_name(hit.get("_index", ""))
@@ -820,7 +1028,7 @@ async def search_eu_cordis_projects(
euroscivoc_lookup = await get_eu_euroscivoc_for_projects(project_ids_by_type)
openalex_topics_lookup = await get_openalex_topics_for_eu_projects(project_ids_by_type)
- elements: List[EuCordisProjectSummary] = []
+ elements: list[EuCordisProjectSummary] = []
for hit in hits:
source = hit.get("_source", {})
@@ -854,7 +1062,108 @@ async def search_eu_cordis_projects(
page=page,
size=size,
)
-
+
+
+async def get_eu_cordis_projects_funding_data(
+ project_types: list[EuCordisProjectType] | None = None,
+ organization_ids: list[str] | None = None,
+ organization_names: list[str] | None = None,
+ author_project_ids: list[str] | None = None,
+ keywords: list[str] | None = None,
+ topic_ids: list[str] | None = None,
+ filter_topic_ids: list[str] | None = None,
+ title: str | None = None,
+ funding_start_years: list[str] | None = None,
+ funding_end_years: list[str] | None = None,
+ countries: list[str] | None = None,
+ framework_programmes: list[str] | None = None,
+ funding_schemes: list[str] | None = None,
+ statuses: list[str] | None = None,
+ fuzzy: bool = False,
+) -> list[dict[str, Any]]:
+ """
+ Fetches ONLY the fields needed for a funding-over-time aggregation
+ (id, startDate, endDate, ecMaxContribution) for every EU CORDIS project
+ matching the given filters.
+
+ This intentionally skips the author/organization/CORDIS-topic/EuroSciVoc/
+ OpenAlex-topic enrichment that `search_eu_cordis_projects` performs per
+ project, since none of that is needed to compute funding totals. That
+ enrichment is what makes the funding-over-time endpoint slow for
+ institutions with many projects - this function avoids it entirely.
+
+ """
+ try:
+ query, _, indices = await _build_eu_cordis_search_query(
+ project_types=project_types,
+ organization_ids=organization_ids,
+ organization_names=organization_names,
+ author_project_ids=author_project_ids,
+ keywords=keywords,
+ topic_ids=topic_ids,
+ filter_topic_ids=filter_topic_ids,
+ title=title,
+ funding_start_years=funding_start_years,
+ funding_end_years=funding_end_years,
+ countries=countries,
+ framework_programmes=framework_programmes,
+ funding_schemes=funding_schemes,
+ statuses=statuses,
+ fuzzy=fuzzy,
+ )
+ except _NoMatchingEuProjects:
+ return []
+
+ results: list[dict[str, Any]] = []
+ page_size = 5000
+ search_after: list[Any] | None = None
+
+ while True:
+ body: dict[str, Any] = {
+ "size": page_size,
+ "track_total_hits": False,
+ "_source": ["id", "startDate", "endDate", "ecMaxContribution"],
+ "query": query,
+ # "id" is unique per project and used elsewhere as a term-filter
+ # field, so it's mapped as keyword - safe + deterministic sort
+ # key for search_after pagination across an arbitrarily large
+ # result set.
+ "sort": [{"id": {"order": "asc", "unmapped_type": "keyword"}}],
+ }
+ if search_after is not None:
+ body["search_after"] = search_after
+
+ response = await elasticsearch.search(
+ index=indices,
+ cluster=ESCluster.INSE,
+ body=body,
+ )
+
+ hits = response.get("hits", {}).get("hits", [])
+ if not hits:
+ break
+
+ for hit in hits:
+ source = hit.get("_source", {})
+ results.append(
+ {
+ "id": source.get("id"),
+ "start_date": source.get("startDate"),
+ "end_date": source.get("endDate"),
+ "ec_max_contribution": source.get("ecMaxContribution"),
+ }
+ )
+
+ if len(hits) < page_size:
+ break
+
+ search_after = hits[-1].get("sort")
+ if not search_after:
+ break
+
+ return results
+
+
def _to_openalex_doi_url(raw_doi: str) -> str:
"""CORDIS stores bare DOIs (e.g. '10.1093/toxsci/kfs018');
OpenAlex works index stores full URLs ('https://doi.org/10.1093/toxsci/kfs018')."""
@@ -863,7 +1172,7 @@ def _to_openalex_doi_url(raw_doi: str) -> str:
return raw_doi
return f"https://doi.org/{raw_doi}"
-async def get_dois_by_cordis_eu_project_id(project_id: str) -> List[str]:
+async def get_dois_by_cordis_eu_project_id(project_id: str) -> list[str]:
"""Retrieves the raw DOIs of publications associated with a given CORDIS EU project ID."""
query = {"bool": {"filter": [{"term": {"projectID": project_id}}]}}
@@ -886,8 +1195,8 @@ async def get_dois_by_cordis_eu_project_id(project_id: str) -> List[str]:
return list(set(dois)) # Remove duplicates
async def get_openalex_author_ids_by_dois(
- dois: List[str],
-) -> Dict[str, List[str]]:
+ dois: list[str],
+) -> dict[str, list[str]]:
"""Retrieves the OpenAlex author IDs (full URL form) authoring works for each
given (raw, non-prefixed) DOI. Returns a mapping of the *original raw DOI*
(as passed in) -> list of author_ids, so callers can trace authors back to
@@ -921,7 +1230,7 @@ async def get_openalex_author_ids_by_dois(
size=10000,
cluster=ESCluster.NES,
)
- result: Dict[str, List[str]] = {}
+ result: dict[str, list[str]] = {}
for hit in response.get("hits", {}).get("hits", []):
source = hit.get("_source", {})
doi_url = source.get("doi")
@@ -939,8 +1248,8 @@ async def get_openalex_author_ids_by_dois(
async def get_openalex_authors_for_cordis_project_ids(
- project_ids: List[str],
-) -> Dict[str, AuthorPage]:
+ project_ids: list[str],
+) -> dict[str, AuthorPage]:
"""Returns a mapping of project_id -> AuthorPage for a batch of projects."""
if not project_ids:
return {}
@@ -953,7 +1262,7 @@ async def get_openalex_authors_for_cordis_project_ids(
source=["projectID", "doi","qaProcessedDoi"],
size=10000,
)
- dois_by_project: Dict[str, Set[str]] = {}
+ dois_by_project: dict[str, set[str]] = {}
for hit in response.get("hits", {}).get("hits", []):
source = hit.get("_source", {})
pid = source.get("projectID")
@@ -972,9 +1281,9 @@ async def get_openalex_authors_for_cordis_project_ids(
author_ids_by_doi = await get_openalex_author_ids_by_dois(dois=all_dois)
# aggregate per project, dedupe author_ids within a project
- author_ids_by_project: Dict[str, List[str]] = {}
+ author_ids_by_project: dict[str, list[str]] = {}
for pid, dois in dois_by_project.items():
- project_author_ids: Set[str] = set()
+ project_author_ids: set[str] = set()
for doi in dois:
project_author_ids.update(author_ids_by_doi.get(doi, []))
author_ids_by_project[pid] = list(project_author_ids)
@@ -986,7 +1295,7 @@ async def get_openalex_authors_for_cordis_project_ids(
authors_by_id = {author.id: author for author in author_page.elements}
# split the fetched authors back out per project
- result: Dict[str, AuthorPage] = {}
+ result: dict[str, AuthorPage] = {}
for pid in project_ids:
ids_for_project = author_ids_by_project.get(pid, [])
authors_for_project = [
@@ -1002,8 +1311,8 @@ async def get_openalex_authors_for_cordis_project_ids(
return result
async def get_openalex_authors_for_projects_ids(
- project_ids_by_type: Dict[EuCordisProjectType, List[str]],
-) -> Dict[Tuple[EuCordisProjectType, str], AuthorPage]:
+ project_ids_by_type: dict[EuCordisProjectType, list[str]],
+) -> dict[tuple[EuCordisProjectType, str], AuthorPage]:
"""Adapts get_openalex_authors_for_cordis_project_ids to the
(project_type, project_id)-keyed lookup convention used across this module."""
all_project_ids = [
@@ -1018,7 +1327,7 @@ async def get_openalex_authors_for_projects_ids(
project_ids=all_project_ids
)
- result: Dict[Tuple[EuCordisProjectType, str], AuthorPage] = {}
+ result: dict[tuple[EuCordisProjectType, str], AuthorPage] = {}
for project_type, project_ids in project_ids_by_type.items():
for pid in project_ids:
result[(project_type, pid)] = author_pages_by_project_id.get(
diff --git a/service/src/main/inse/projects/eu_organizations/router.py b/service/src/main/inse/projects/eu_organizations/router.py
index 263587c4..26ed44bc 100644
--- a/service/src/main/inse/projects/eu_organizations/router.py
+++ b/service/src/main/inse/projects/eu_organizations/router.py
@@ -1,10 +1,11 @@
import logging
-from typing import Annotated, List
+from typing import Annotated
from fastapi import APIRouter, Query
-
-from inse.projects.eu_organizations.service import autocomplete_organizations_for_selector, get_organizations_by_ids
-
+from inse.projects.eu_organizations.service import (
+ autocomplete_organizations_for_selector,
+ get_organizations_by_ids,
+)
from inse.projects.model import EuCordisOrganizationSelectorPage
from inse.tags import Tags
@@ -23,7 +24,7 @@ router = APIRouter(prefix=EU_ORGANIZATIONS_PREFIX, tags=[Tags.PROJECTS])
)
async def get_eu_organizations_by_ids(
organization_ids: Annotated[
- List[str],
+ list[str],
Query(description="CORDIS organisation IDs to retrieve."),
] = [],
) -> EuCordisOrganizationSelectorPage:
diff --git a/service/src/main/inse/projects/eu_organizations/service.py b/service/src/main/inse/projects/eu_organizations/service.py
index 376cb592..24d76420 100644
--- a/service/src/main/inse/projects/eu_organizations/service.py
+++ b/service/src/main/inse/projects/eu_organizations/service.py
@@ -1,5 +1,4 @@
import logging
-from typing import Dict, List, Optional
from inse.integrations import elasticsearch
from inse.model import ESCluster, ESIndex
@@ -12,7 +11,7 @@ from inse.projects.model import (
logger = logging.getLogger(__name__)
-def _project_type_from_org_index(index_name: str) -> Optional[EuCordisProjectType]:
+def _project_type_from_org_index(index_name: str) -> EuCordisProjectType | None:
if index_name == ESIndex.CORDIS_EU_FP7_ORGANIZATIONS.value:
return EuCordisProjectType.FP7
if index_name == ESIndex.CORDIS_EU_HORIZON_2020_ORGANIZATIONS.value:
@@ -23,7 +22,7 @@ def _project_type_from_org_index(index_name: str) -> Optional[EuCordisProjectTyp
async def get_organizations_by_ids(
- organization_ids: List[str],
+ organization_ids: list[str],
) -> EuCordisOrganizationSelectorPage:
if not organization_ids:
return EuCordisOrganizationSelectorPage(elements=[], total=0, page=0, size=0)
@@ -52,7 +51,7 @@ async def get_organizations_by_ids(
},
)
- elements: List[EuCordisOrganizationSelectorSummary] = []
+ elements: list[EuCordisOrganizationSelectorSummary] = []
for hit in response.get("hits", {}).get("hits", []):
source = hit.get("_source", {})
@@ -139,7 +138,7 @@ async def autocomplete_organizations_for_selector(
},
)
- elements: List[EuCordisOrganizationSelectorSummary] = []
+ elements: list[EuCordisOrganizationSelectorSummary] = []
for hit in response.get("hits", {}).get("hits", []):
source = hit.get("_source", {})
diff --git a/service/src/main/inse/projects/logic.py b/service/src/main/inse/projects/logic.py
index 01b3fa7a..7a37ce66 100644
--- a/service/src/main/inse/projects/logic.py
+++ b/service/src/main/inse/projects/logic.py
@@ -1,9 +1,6 @@
-import json
import logging
-from typing import Any, Dict, List, Optional, Set, Tuple
-
from collections import defaultdict
-from inse.projects.eu_cordis_projects_client import get_enriched_cordis_project_by_id
+from typing import Any
from inse.integrations import elasticsearch
from inse.model import ESCluster, ESIndex
@@ -11,7 +8,7 @@ from inse.projects.model import EuCordisProjectType
logger = logging.getLogger(__name__)
-async def get_dfg_author_names_by_ids(author_ids: List[int]) -> Optional[List[str]]:
+async def get_dfg_author_names_by_ids(author_ids: list[int]) -> list[str] | None:
try:
body = {
"_source": ["id", "full_name"],
@@ -26,10 +23,10 @@ async def get_dfg_author_names_by_ids(author_ids: List[int]) -> Optional[List[st
return []
return [hit.get("_source", {}).get("full_name") for hit in hits]
except Exception as e:
- logger.exception(f"Error fetching author names for ids {author_ids}: {str(e)}")
+ logger.exception(f"Error fetching author names for ids {author_ids}: {e!s}")
return []
-async def get_dfg_institution_names_by_ids(institution_ids: List[int]) -> Optional[List[str]]:
+async def get_dfg_institution_names_by_ids(institution_ids: list[int]) -> list[str] | None:
try:
body = {
"_source": ["id","institute_name_de","institute_name_en"],
@@ -45,9 +42,47 @@ async def get_dfg_institution_names_by_ids(institution_ids: List[int]) -> Option
return []
return [hit.get("_source", {}).get("institute_name_de") or hit.get("_source", {}).get("institute_name_en") for hit in hits]
except Exception as e:
- logger.exception(f"Error fetching institution names for ids {institution_ids}: {str(e)}")
+ logger.exception(f"Error fetching institution names for ids {institution_ids}: {e!s}")
return []
-
+
+async def get_institution_ids_by_institution_aliases(institution_aliases: list[str]) -> list[int]:
+ if not institution_aliases:
+ return []
+ response = await elasticsearch.search(
+ index=ESIndex.DFG_INSTITUTES,
+ cluster=ESCluster.INSE,
+ body={
+ "size": 10000,
+ "_source": ["institute_id"],
+ "query": {
+ "bool": {
+ "should": [
+ clause
+ for name in institution_aliases
+ for clause in (
+ # {"match": {"root_name_de": {"query": name, "operator": "and"}}},
+ # {"match": {"root_name_en": {"query": name, "operator": "and"}}},
+ # {"match": {"institute_name_de": {"query": name, "operator": "and"}}},
+ # {"match": {"institute_name_en": {"query": name, "operator": "and"}}},
+ {"match_phrase": {"root_name_de":name}},
+ {"match_phrase": {"root_name_en":name}},
+ {"match_phrase": {"institute_name_de":name}},
+ {"match_phrase": {"institute_name_en": name}},
+ )
+ ],
+ "minimum_should_match": 1,
+ }
+ }
+ },
+ )
+ return list(
+ {
+ hit["_source"]["institute_id"]
+ for hit in response.get("hits", {}).get("hits", [])
+ if hit.get("_source", {}).get("institute_id") is not None
+ }
+ )
+
async def get_person_ids_by_institution_ids(
institution_ids: list[int],
) -> list[int]:
@@ -60,10 +95,13 @@ async def get_person_ids_by_institution_ids(
body={
"size": 10000,
"_source": ["person_id"],
- "query": {
- "terms": {
- "institute_id": institution_ids
- }
+ "query": { "bool":{
+ "should": [
+ {"terms": {"institute_id": institution_ids}},
+ {"terms": {"root_id": institution_ids}},
+ ],
+ "minimum_should_match": 1,
+ }
}
},
)
@@ -75,7 +113,73 @@ async def get_person_ids_by_institution_ids(
if hit.get("_source", {}).get("person_id") is not None
}
)
-async def get_dfg_project_ids_by_topic_ids(topic_ids: List[str]) -> List[str]:
+
+
+async def get_bund_project_ids_by_topic_ids(topic_ids: list[str]) -> list[str]:
+ """
+ Query the `projects_bund_openalex_topics` index to find BUND project IDs
+ that match any of the given OpenAlex topic IDs.
+ """
+ if not topic_ids:
+ return []
+
+ required_topics = set(topic_ids)
+
+ project_topics: dict[str, set[str]] = defaultdict(set)
+
+ page_size = 1000
+ from_ = 0
+
+ while True:
+ body = {
+ "size": page_size,
+ "from": from_,
+ "_source": ["project_id", "topic_matches"],
+ "query": {
+ "terms": {
+ "topic_matches.topic_id.keyword": topic_ids
+ }
+ },
+ }
+
+ response = await elasticsearch.search(
+ index=ESIndex.PROJECTS_BUND_TOPICS,
+ cluster=ESCluster.INSE,
+ body=body,
+ )
+ hits = response.get("hits", {}).get("hits", [])
+ if not hits:
+ break
+
+ for hit in hits:
+ source = hit["_source"]
+
+ project_id = source.get("project_id")
+ if not project_id:
+ continue
+
+ topic_matches = source.get("topic_matches") or []
+
+ if isinstance(topic_matches, dict):
+ topic_matches = [topic_matches]
+
+ for match in topic_matches:
+ topic_id = match.get("topic_id")
+ if topic_id in required_topics:
+ project_topics[project_id].add(topic_id)
+
+ if len(hits) < page_size:
+ break
+
+ from_ += page_size
+
+ return [
+ project_id
+ for project_id, found_topics in project_topics.items()
+ if required_topics.issubset(found_topics)
+ ]
+
+async def get_dfg_project_ids_by_topic_ids(topic_ids: list[str]) -> list[str]:
"""Fetches project IDs whose topic_matches contain EVERY given topic ID,
even if the topics are distributed across multiple documents for the same project.
"""
@@ -84,7 +188,7 @@ async def get_dfg_project_ids_by_topic_ids(topic_ids: List[str]) -> List[str]:
required_topics = set(topic_ids)
- project_topics: dict[str, Set[str]] = defaultdict(set)
+ project_topics: dict[str, set[str]] = defaultdict(set)
page_size = 1000
from_ = 0
@@ -138,63 +242,73 @@ async def get_dfg_project_ids_by_topic_ids(topic_ids: List[str]) -> List[str]:
for project_id, found_topics in project_topics.items()
if required_topics.issubset(found_topics)
]
-async def get_openalex_topics_for_dfg_projects(
- project_ids: List[str],
-) -> Dict[int, List[Dict[str, Any]]]:
- """Fetches OpenAlex topic matches for the given DFG project IDs.
+
- Args:
- project_ids (List[str]): The DFG project IDs to fetch topics for.
-
- Returns:
- Dict[int, List[Dict[str, Any]]]: Mapping of project_id -> list of topic match dicts,
- each containing topic_id, topic_display_name, domain, field, subfield, rank.
+async def get_openalex_topics_for_bund_projects(project_ids: list[str]) -> dict[str, list[dict]]:
+ """
+ Retrieve OpenAlex topic details for a list of BUND project IDs.
+ Returns a dict mapping `project_id` -> list of topic_match objects.
"""
if not project_ids:
return {}
- topic_lookup: Dict[int, List[Dict[str, Any]]] = {}
+ body: dict[str, Any] = {
+ "size": 10000,
+ "query": {
+ "terms": {
+ "project_id.keyword": project_ids
+ }
+ },
+ "_source": ["project_id", "topic_matches"]
+ }
- page_size = 1000
- from_ = 0
- # print(f"Fetching topics for {len(project_ids)} DFG projects in batches of {page_size}...{project_ids}")
- while True:
- response = await elasticsearch.search(
- index=ESIndex.PROJECTS_DFG_TOPICS,
- cluster=ESCluster.INSE,
- body={
- "size": page_size,
- "from": from_,
- "query": {
- "terms": {
- "project_id.keyword": project_ids
- }
- },
- },
- )
+ response = await elasticsearch.search(
+ index=ESIndex.PROJECTS_BUND_TOPICS,
+ body=body,
+ cluster=ESCluster.INSE
+ )
- hits = response.get("hits", {}).get("hits", [])
- if not hits:
- break
+ lookup: dict[str, list[dict]] = {}
+ for hit in response.get("hits", {}).get("hits", []):
+ src = hit["_source"]
+ pid = src.get("project_id")
+ if pid:
+ lookup[pid] = src.get("topic_matches", [])
+ return lookup
+async def get_openalex_topics_for_dfg_projects(
+ project_ids: list[str],
+) -> dict[str, list[dict]]:
+ """
+ Retrieve OpenAlex topic details for a list of DFG project IDs.
+ Returns a dict mapping `project_id` -> list of topic_match objects.
+ """
+ if not project_ids:
+ return {}
- for hit in hits:
- source = hit["_source"]
- project_id = int(source.get("project_id"))
- if project_id is None:
- continue
+ body: dict[str, Any] = {
+ "size": 10000,
+ "query": {
+ "terms": {
+ "project_id.keyword": project_ids
+ }
+ },
+ "_source": ["project_id", "topic_matches"]
+ }
- topic_matches = source.get("topic_matches") or []
- if isinstance(topic_matches, dict):
- topic_matches = [topic_matches]
+ response = await elasticsearch.search(
+ index=ESIndex.PROJECTS_DFG_TOPICS,
+ body=body,
+ cluster=ESCluster.INSE
+ )
- topic_lookup.setdefault(project_id, []).extend(topic_matches)
+ lookup: dict[str, list[dict]] = {}
+ for hit in response.get("hits", {}).get("hits", []):
+ src = hit["_source"]
+ pid = src.get("project_id")
+ if pid:
+ lookup[str(pid)] = src.get("topic_matches", [])
- if len(hits) < page_size:
- break
-
- from_ += page_size
- #logger.info(f"Fetched topics for {len(topic_lookup)} DFG projects.")
- return topic_lookup
+ return lookup
async def get_person_institutes(
person_ids: list[int],
@@ -251,9 +365,9 @@ async def get_person_institutes(
async def get_eu_project_ids_by_openalex_topic_ids(
- project_types: List[EuCordisProjectType],
- topic_ids: List[str],
-) -> Dict[EuCordisProjectType, List[str]]:
+ project_types: list[EuCordisProjectType],
+ topic_ids: list[str],
+) -> dict[EuCordisProjectType, list[str]]:
"""
Returns EU CORDIS project IDs whose mapped OpenAlex topic_matches contain
EVERY given topic ID. Same semantics as DFG topic filtering.
@@ -262,10 +376,10 @@ async def get_eu_project_ids_by_openalex_topic_ids(
return {project_type: [] for project_type in project_types}
required_topics = set(topic_ids)
- result: Dict[EuCordisProjectType, List[str]] = {}
+ result: dict[EuCordisProjectType, list[str]] = {}
for project_type in project_types:
- project_topics: Dict[str, Set[str]] = defaultdict(set)
+ project_topics: dict[str, set[str]] = defaultdict(set)
page_size = 1000
from_ = 0
@@ -322,12 +436,12 @@ async def get_eu_project_ids_by_openalex_topic_ids(
async def get_openalex_topics_for_eu_projects(
- project_ids_by_type: Dict[EuCordisProjectType, List[str]],
-) -> Dict[Tuple[EuCordisProjectType, str], List[Dict[str, Any]]]:
+ project_ids_by_type: dict[EuCordisProjectType, list[str]],
+) -> dict[tuple[EuCordisProjectType, str], list[dict[str, Any]]]:
"""
Fetches mapped OpenAlex topic matches for EU CORDIS projects.
"""
- topic_lookup: Dict[Tuple[EuCordisProjectType, str], List[Dict[str, Any]]] = {}
+ topic_lookup: dict[tuple[EuCordisProjectType, str], list[dict[str, Any]]] = {}
for project_type, project_ids in project_ids_by_type.items():
if not project_ids:
diff --git a/service/src/main/inse/projects/model.py b/service/src/main/inse/projects/model.py
index 558cdadb..64dbf6d5 100644
--- a/service/src/main/inse/projects/model.py
+++ b/service/src/main/inse/projects/model.py
@@ -1,21 +1,26 @@
-from datetime import date
import datetime
+from datetime import date
from enum import StrEnum
-from typing import List, Optional, Dict, Any
-
-from pydantic import BaseModel, Field, field_validator
+from typing import Any
+from inse.authors.v2.model import AuthorPage
+from inse.model import ESIndex
from inse.models.bund_project import BundProject
from inse.models.eu_project import EuProject
-from inse.models.cordis_eu_project import CordisEuProject
-from inse.model import ESIndex
-from inse.models.projects_eu_cordis.horizon2020.h2020_project_details import H2020ProjectDetails
-from inse.models.projects_eu_cordis.horizon_europe.heu_project_details import HEUProjectDetails
-from inse.models.projects_eu_cordis.fp7.fp7_project_details import Fp7ProjectDetails
-from inse.models.projects_dfg_v2.project.dfg_project_fachgebiete_inner import DFGProjectFachgebieteInner
from inse.models.openalex.topic import Topic, TopicDomain, TopicField, TopicSubfield
-from inse.authors.v2.model import AuthorPage
-from typing import Union
+from inse.models.projects_dfg_v2.project.dfg_project_fachgebiete_inner import (
+ DFGProjectFachgebieteInner,
+)
+from inse.models.projects_eu_cordis.fp7.fp7_project_details import Fp7ProjectDetails
+from inse.models.projects_eu_cordis.horizon2020.h2020_project_details import (
+ H2020ProjectDetails,
+)
+from inse.models.projects_eu_cordis.horizon_europe.heu_project_details import (
+ HEUProjectDetails,
+)
+from inse.projects.bund_institutions.model import BundInstitutionSummary
+from pydantic import BaseModel, Field, field_validator
+
class ProjectType(StrEnum):
BUND = "bund"
@@ -69,15 +74,100 @@ class Page(BaseModel):
size: int = Field(default=20, description="The requested page size.")
total: int = Field(default=0, description="The total number of items.")
+class BundProjectSummary(BundProject):
+ oa_topics: list[Topic] | None = Field(
+ default=None,
+ validation_alias="oa_topics",
+ description="The OpenAlex topics of the project",
+ examples=[["Artificial Intelligence", "Machine Learning"]],
+ )
+ institution: BundInstitutionSummary | None = Field(
+ default=None,
+ description="The executing agency / recipient institution for this project, "
+ "derived from the project's own agency fields.",
+ )
+
+ @classmethod
+ def from_hit(cls, hit: dict) -> "BundProjectSummary":
+ """Create a BundProjectSummary from an Elasticsearch hit."""
+ source = hit.get("_source", {})
+
+
+ topics_raw = source.get("oa_topics") or []
+ oa_topics = None
+ if isinstance(topics_raw, list) and topics_raw:
+ sorted_topics_raw = sorted(
+ (t for t in topics_raw if isinstance(t, dict)),
+ key=lambda t: t.get("rank") if t.get("rank") is not None else float("inf"),
+ )
+ oa_topics = [cls._topic_from_match(t) for t in sorted_topics_raw]
+ return cls(
+ funding_code=source.get("Förderkennzeichen"),
+ department=source.get("Ressort"),
+ department_fullname=source.get("Ressort_fullname"),
+ referat=source.get("Referat"),
+ project_sponsor=source.get("Projektträger"),
+ project_sponsor_fullname=source.get("Projektträger_fullname"),
+ work_unit=source.get("Arb.-Einh."),
+ recipient=source.get("Zuwendungsempfänger"),
+ municipal_code=source.get("Gemeindekennziffer"),
+ municipality=source.get("Stadt/Gemeinde"),
+ place=source.get("Ort"),
+ state=source.get("Bundesland"),
+ country=source.get("Staat"),
+ implementing_agency=source.get("Ausführende Stelle"),
+ topic=source.get("Thema"),
+ performance_plan_system=source.get("Leistungsplansystematik"),
+ performance_plan_system_text=source.get("Klartext Leistungsplansystematik"),
+ funding_start=source.get("funding_start"),
+ funding_end=source.get("funding_end"),
+ grant_amount=source.get("Fördersumme"),
+ funding_profile=source.get("Förderprofil"),
+ joint_project=source.get("Verbundprojekt"),
+ funding_type=source.get("Förderart"),
+ publication_date=source.get("Publikationsdatum"),
+ unix_timestamp=source.get("Unix-Timestamp"),
+ date=source.get("datum"),
+ new=source.get("neu"),
+ duration=source.get("Laufzeit"),
+ oa_topics=oa_topics,
+ institution=BundInstitutionSummary.from_source(source),
+ )
+
+ @staticmethod
+ def _topic_from_match(match: dict[str, Any]) -> Topic:
+ """Builds a Topic model from a flattened topic_match dict.
+
+ Same logic as DfgProjectSummary._topic_from_match and EuCordisProjectSummary.topic_from_match
+ """
+ domain_name = match.get("domain")
+ field_name = match.get("field")
+ subfield_name = match.get("subfield")
+
+ domain = TopicDomain(display_name=domain_name) if domain_name else None
+ field = TopicField(display_name=field_name) if field_name else None
+ subfield = TopicSubfield(display_name=subfield_name) if subfield_name else None
+
+ return Topic(
+ id=match.get("topic_id"),
+ display_name=match.get("topic_display_name"),
+ domain=domain,
+ field=field,
+ subfield=subfield,
+ )
+
+
class BundProjectPage(Page):
- elements: List[BundProject] = Field(
+ elements: list[BundProjectSummary] = Field(
default_factory=list, description="The bund projects on this page."
)
+
+
class BundProjectList(BaseModel):
- elements: List[BundProject] = Field(
+ elements: list[BundProjectSummary] = Field(
default_factory=list, description="All bund projects."
)
total: int = Field(default=0, description="The total number of bund projects.")
@@ -86,22 +176,22 @@ class BundProjectList(BaseModel):
class DfgInstitutionSummary(BaseModel):
"""A summary of a DFG institution."""
id: int
- institute_name_de: Optional[str] = None
- institute_name_en: Optional[str] = None
- root_id: Optional[int] = None
- root_name_de: Optional[str] = None
- root_name_en: Optional[str] = None
- address_country_de: Optional[str] = None
- address_country_en: Optional[str] = None
+ institute_name_de: str | None = None
+ institute_name_en: str | None = None
+ root_id: int | None = None
+ root_name_de: str | None = None
+ root_name_en: str | None = None
+ address_country_de: str | None = None
+ address_country_en: str | None = None
class DfgPersonSummary(BaseModel):
person_id: int
- orcid_id: Optional[str] = None
- project_ref_id: Optional[int] = None
- full_name: Optional[str] = None
- role_label_en: Optional[str] = None,
- role_label_de: Optional[str] = None,
- institution: Optional[DfgInstitutionSummary] = None
+ orcid_id: str | None = None
+ project_ref_id: int | None = None
+ full_name: str | None = None
+ role_label_en: str | None = None,
+ role_label_de: str | None = None,
+ institution: DfgInstitutionSummary | None = None
@@ -110,49 +200,49 @@ class DfgProjectSummary(BaseModel):
description="The unique identifier of the DFG project."
)
- link: Optional[str] = Field(
+ link: str | None = Field(
default=None,
description="The link to the DFG project details."
)
- title: Optional[str] = Field(
+ title: str | None = Field(
default=None,
description="The title of the DFG project."
)
- professional_classification: Optional[str] = Field(
+ professional_classification: str | None = Field(
default=None,
description="The professional classification of the DFG project."
)
- funding_start: Optional[str] = Field(
+ funding_start: str | None = Field(
default=None,
description="The funding start date of the DFG project."
)
- funding_end: Optional[str] = Field(
+ funding_end: str | None = Field(
default=None,
description="The funding end date of the DFG project."
)
- institutions: List[DfgInstitutionSummary] = Field(
+ institutions: list[DfgInstitutionSummary] = Field(
default_factory=list,
description="Institutions associated with the project."
)
- names: List[str] = Field(
+ names: list[str] = Field(
default_factory=list,
description="The names of the persons involved in the DFG project.",
)
- persons: List[DfgPersonSummary] = Field(
+ persons: list[DfgPersonSummary] = Field(
default_factory=list,
description="The persons involved in the DFG project.",
)
- subject_classifications: Optional[List[DFGProjectFachgebieteInner]] = Field(
+ subject_classifications: list[DFGProjectFachgebieteInner] | None = Field(
default=None,
description="The subject classifications of the DFG project.",
)
- topics: Optional[List[Topic]] = Field(
+ topics: list[Topic] | None = Field(
default=None,
description="The topics associated with the DFG project.",
)
@@ -179,19 +269,33 @@ class DfgProjectSummary(BaseModel):
institution = None
if person.get("institute_id") is not None:
- institution = DfgInstitutionSummary(
+ institute = DfgInstitutionSummary(
id=person["institute_id"],
institute_name_de=person.get("institute_name_de"),
institute_name_en=person.get("institute_name_en"),
address_country_de=person.get("address_country_de"),
address_country_en=person.get("address_country_en"),
- root_id=person["root_id"],
- root_name_de=person.get("root_name_de"),
- root_name_en=person.get("root_name_en"),
+ root_id=None,
+ root_name_de=None,
+ root_name_en=None,
)
- institutions[person["institute_id"]] = institution
+ institutions[f"institute:{person['institute_id']}"] = institute
+ if person.get("root_id") is not None:
+ root_institution = DfgInstitutionSummary(
+ id=person["root_id"],
+ institute_name_de=person.get("root_name_de"),
+ institute_name_en=person.get("root_name_en"),
+ address_country_de=person.get("address_country_de"),
+ address_country_en=person.get("address_country_en"),
+ root_id=None,
+ root_name_de=None,
+ root_name_en=None,
+ )
+
+ institutions[f"root:{person['root_id']}"] = root_institution
+
if person.get("person_id") is not None:
project_persons.append(
DfgPersonSummary(
@@ -205,6 +309,7 @@ class DfgProjectSummary(BaseModel):
)
)
topics_raw = source.get("topics") or []
+ print(f"Raw topics for DFG project {hit.get('_id', '')}: {topics_raw}")
topics = None
if isinstance(topics_raw, list) and topics_raw:
# Sort by rank if present, so the most relevant topic comes first
@@ -244,7 +349,7 @@ class DfgProjectSummary(BaseModel):
topics=topics
)
@staticmethod
- def _topic_from_match(match: Dict[str, Any]) -> Topic:
+ def _topic_from_match(match: dict[str, Any]) -> Topic:
"""Builds a (partial) Topic model from a flattened topic_match dict
coming from the `projects_dfg_openalex_topics` index.
@@ -280,7 +385,7 @@ class DfgProjectSummary(BaseModel):
)
class DfgProjectPage(Page):
- elements: List[DfgProjectSummary] = Field(
+ elements: list[DfgProjectSummary] = Field(
default_factory=list, description="The DFG projects on this page."
)
@@ -303,10 +408,10 @@ class ProjectsFilteringProperties(BaseModel):
project_type: ProjectType = Field(description="The type of projects to filter by.")
page: int = Field(description="The page number for pagination.")
size: int = Field(description="The page size for pagination.")
- raw_oa_institution_id: Optional[str] = Field(
+ raw_oa_institution_id: str | None = Field(
default=None, description="The raw OA institution ID to filter by."
)
- query: Optional[str] = Field(
+ query: str | None = Field(
default=None, description="The query string to filter projects by."
)
sort_by: ProjectsSortBy = Field(
@@ -317,25 +422,20 @@ class ProjectsFilteringProperties(BaseModel):
)
-class CordisEuProjectPage(Page):
- elements: List[CordisEuProject] = Field(
- default_factory=list, description="The CORDIS EU projects on this page."
- )
-
class EuCordisProjectResponse(BaseModel):
"""
Response model for EU Cordis project endpoints.
"""
success: bool = Field(description="Indicates if the request was successful")
- project_type: Optional[str] = Field(
+ project_type: str | None = Field(
default=None,
description="The type of project: 'fp7', 'h2020', or 'heu'"
)
- eu_project_data: Optional[Union[Fp7ProjectDetails, H2020ProjectDetails, HEUProjectDetails]] = Field(
+ eu_project_data: Fp7ProjectDetails | H2020ProjectDetails | HEUProjectDetails | None = Field(
default=None,
description="The project data"
)
- error: Optional[str] = Field(
+ error: str | None = Field(
default=None,
description="Error message if the request failed"
)
@@ -347,17 +447,17 @@ class FundingProject(BaseModel):
examples=[ProjectType.BUND, ProjectType.EU, ProjectType.DFG],
)
id: str = Field(description="The unique identifier of the project.")
- title: Optional[str] = Field(default=None, description="The title of the project.")
- acronym: Optional[str] = Field(
+ title: str | None = Field(default=None, description="The title of the project.")
+ acronym: str | None = Field(
default=None, description="The acronym of the project (if available)."
)
- start_date: Optional[date] = Field(
+ start_date: date | None = Field(
default=None, description="The funding start date of the project."
)
- end_date: Optional[date] = Field(
+ end_date: date | None = Field(
default=None, description="The funding end date of the project."
)
- funding_amount: Optional[float] = Field(
+ funding_amount: float | None = Field(
default=None, description="The total funding amount for the project."
)
@@ -434,73 +534,17 @@ class FundingProject(BaseModel):
class FundingProjectPage(Page):
- elements: List[FundingProject] = Field(
+ elements: list[FundingProject] = Field(
default_factory=list, description="The funding projects on this page."
)
#EU CORDIS PROJECTS
class EuProjectPage(Page):
- elements: List[EuProject] = Field(
+ elements: list[EuProject] = Field(
default_factory=list, description="The EU projects on this page."
)
-class EuOrganizationShort(BaseModel):
- project_id: str = Field(description="The unique identifier of the project.")
- organization_id: str = Field(
- description="The unique identifier of the organization."
- )
- ec_contribution: Optional[float] = Field(
- default=None,
- description="The EC contribution amount for the organization in the project.",
- )
-
-
-class EuProjectShort(BaseModel):
- id: str = Field(description="The unique identifier of the EU project.")
- title: Optional[str] = Field(
- default=None, description="The title of the EU project."
- )
- start_date: Optional[date] = Field(
- default=None, description="The funding start date of the EU project."
- )
- end_date: Optional[date] = Field(
- default=None, description="The funding end date of the EU project."
- )
- acronym: Optional[str] = Field(
- default=None, description="The acronym of the EU project."
- )
-
-
-class EuOrganizationProjectSummary(BaseModel):
- organization_id: str = Field(
- description="The unique identifier of the organization."
- )
- project_id: str = Field(description="The unique identifier of the project.")
- title: Optional[str] = Field(default=None, description="The title of the project.")
- start_date: Optional[date] = Field(
- default=None, description="The funding start date of the project."
- )
- end_date: Optional[date] = Field(
- default=None, description="The funding end date of the project."
- )
- acronym: Optional[str] = Field(
- default=None, description="The acronym of the project."
- )
- ec_contribution: Optional[float] = Field(
- default=None,
- description="The EC contribution amount for the organization in the project.",
- )
-
-
-class EuOrganizationProjectSummaryPage(Page):
- elements: List[EuOrganizationProjectSummary] = Field(
- default_factory=list,
- description="The organization project summaries on this page.",
- )
-
-
-
################
class EuCordisProjectType(StrEnum):
FP7 = "fp7"
@@ -568,20 +612,20 @@ class EuCordisProjectType(StrEnum):
class EuCordisOrganizationSummary(BaseModel):
- id: Optional[str] = None
- organisation_id: Optional[str] = None
- name: Optional[str] = None
- short_name: Optional[str] = None
- country: Optional[str] = None
- city: Optional[str] = None
- role: Optional[str] = None
- activity_type: Optional[str] = None
- project_id: Optional[str] = None
- ec_contribution: Optional[float] = None
- total_cost: Optional[float] = None
+ id: str | None = None
+ organisation_id: str | None = None
+ name: str | None = None
+ short_name: str | None = None
+ country: str | None = None
+ city: str | None = None
+ role: str | None = None
+ activity_type: str | None = None
+ project_id: str | None = None
+ ec_contribution: float | None = None
+ total_cost: float | None = None
@classmethod
- def from_es_source(cls, source: Dict[str, Any]) -> "EuCordisOrganizationSummary":
+ def from_es_source(cls, source: dict[str, Any]) -> "EuCordisOrganizationSummary":
return cls(
id=source.get("id"),
organisation_id=source.get("organisationID"),
@@ -599,13 +643,13 @@ class EuCordisOrganizationSummary(BaseModel):
class EuCordisTopicSummary(BaseModel):
- id: Optional[str] = None
- project_id: Optional[str] = None
- title: Optional[str] = None
- topic: Optional[str] = None
+ id: str | None = None
+ project_id: str | None = None
+ title: str | None = None
+ topic: str | None = None
@classmethod
- def from_es_source(cls, source: Dict[str, Any]) -> "EuCordisTopicSummary":
+ def from_es_source(cls, source: dict[str, Any]) -> "EuCordisTopicSummary":
return cls(
id=source.get("id"),
project_id=source.get("projectID"),
@@ -616,15 +660,15 @@ class EuCordisTopicSummary(BaseModel):
class EuCordisEurosciVocSummary(BaseModel):
- id: Optional[str] = None
- project_id: Optional[str] = None
- code: Optional[str] = None
- title: Optional[str] = None
- description: Optional[str] = None
- path: Optional[str] = None
+ id: str | None = None
+ project_id: str | None = None
+ code: str | None = None
+ title: str | None = None
+ description: str | None = None
+ path: str | None = None
@classmethod
- def from_es_source(cls, source: Dict[str, Any]) -> "EuCordisEurosciVocSummary":
+ def from_es_source(cls, source: dict[str, Any]) -> "EuCordisEurosciVocSummary":
return cls(
id=source.get("id"),
project_id=source.get("projectID"),
@@ -639,35 +683,35 @@ class EuCordisProjectSummary(BaseModel):
id: str
project_type: EuCordisProjectType
- title: Optional[str] = None
- acronym: Optional[str] = None
- objective: Optional[str] = None
- keywords: Optional[str] = None
+ title: str | None = None
+ acronym: str | None = None
+ objective: str | None = None
+ keywords: str | None = None
- framework_programme: Optional[str] = None
- funding_scheme: Optional[str] = None
- status: Optional[str] = None
+ framework_programme: str | None = None
+ funding_scheme: str | None = None
+ status: str | None = None
- start_date: Optional[date] = None
- end_date: Optional[date] = None
+ start_date: date | None = None
+ end_date: date | None = None
- ec_max_contribution: Optional[float] = None
- total_cost: Optional[float] = None
- authors: Optional[AuthorPage] = None
- organizations: List[EuCordisOrganizationSummary] = Field(default_factory=list)
- cordis_topics: List[EuCordisTopicSummary] = Field(default_factory=list)
- eurosci_voc: List[EuCordisEurosciVocSummary] = Field(default_factory=list)
- topics: List[Topic] = Field(default_factory=list, description="Mapped OpenAlex topics.")
+ ec_max_contribution: float | None = None
+ total_cost: float | None = None
+ authors: AuthorPage | None = None
+ organizations: list[EuCordisOrganizationSummary] = Field(default_factory=list)
+ cordis_topics: list[EuCordisTopicSummary] = Field(default_factory=list)
+ eurosci_voc: list[EuCordisEurosciVocSummary] = Field(default_factory=list)
+ topics: list[Topic] = Field(default_factory=list, description="Mapped OpenAlex topics.")
@classmethod
def from_hit(
cls,
- hit: Dict[str, Any],
- authors: Optional[AuthorPage] = None,
- organizations: Optional[List[EuCordisOrganizationSummary]] = None,
- cordis_topics: Optional[List[EuCordisTopicSummary]] = None,
- eurosci_voc: Optional[List[EuCordisEurosciVocSummary]] = None,
- topics: Optional[List[Topic]] = None,
+ hit: dict[str, Any],
+ authors: AuthorPage | None = None,
+ organizations: list[EuCordisOrganizationSummary] | None = None,
+ cordis_topics: list[EuCordisTopicSummary] | None = None,
+ eurosci_voc: list[EuCordisEurosciVocSummary] | None = None,
+ topics: list[Topic] | None = None,
) -> "EuCordisProjectSummary":
source = hit.get("_source", {})
project_type = EuCordisProjectType.from_index_name(hit.get("_index", ""))
@@ -699,7 +743,7 @@ class EuCordisProjectSummary(BaseModel):
)
@staticmethod
- def topic_from_match(match: Dict[str, Any]) -> Topic:
+ def topic_from_match(match: dict[str, Any]) -> Topic:
domain_name = match.get("domain")
field_name = match.get("field")
subfield_name = match.get("subfield")
@@ -718,26 +762,26 @@ class EuCordisProjectSummary(BaseModel):
class EuCordisProjectSearchPage(Page):
- elements: List[EuCordisProjectSummary] = Field(
+ elements: list[EuCordisProjectSummary] = Field(
default_factory=list,
description="The EU CORDIS project summaries on this page.",
)
class EuCordisOrganizationSelectorSummary(BaseModel):
- id: Optional[str] = None
- organisation_id: Optional[str] = None
- name: Optional[str] = None
- short_name: Optional[str] = None
- country: Optional[str] = None
- city: Optional[str] = None
- project_type: Optional[EuCordisProjectType] = None
+ id: str | None = None
+ organisation_id: str | None = None
+ name: str | None = None
+ short_name: str | None = None
+ country: str | None = None
+ city: str | None = None
+ project_type: EuCordisProjectType | None = None
@classmethod
def from_es_source(
cls,
- source: Dict[str, Any],
- project_type: Optional[EuCordisProjectType] = None,
+ source: dict[str, Any],
+ project_type: EuCordisProjectType | None = None,
) -> "EuCordisOrganizationSelectorSummary":
return cls(
id=source.get("id"),
@@ -752,4 +796,4 @@ class EuCordisOrganizationSelectorSummary(BaseModel):
class EuCordisOrganizationSelectorPage(Page):
- elements: List[EuCordisOrganizationSelectorSummary] = Field(default_factory=list)
\ No newline at end of file
+ elements: list[EuCordisOrganizationSelectorSummary] = Field(default_factory=list)
\ No newline at end of file
diff --git a/service/src/main/inse/projects/projects_search_client.py b/service/src/main/inse/projects/projects_search_client.py
index 7404421a..b6b0a041 100644
--- a/service/src/main/inse/projects/projects_search_client.py
+++ b/service/src/main/inse/projects/projects_search_client.py
@@ -1,109 +1,46 @@
import json
import logging
-from typing import Any, Dict, List, Optional, Set, Tuple
-
import urllib
+from typing import Any
+
from inse.config import get_settings
-from inse.models.bund_project import BundProject
-from inse.projects.model import (
- BundProjectPage,
- CordisEuProjectPage,
- DfgProjectPage,
- DfgProjectSummary,
- EuOrganizationProjectSummary,
- EuOrganizationProjectSummaryPage,
- EuOrganizationShort,
- EuProjectShort,
- FundingProject,
- FundingProjectPage,
- ProjectType,
- ProjectsFilteringProperties,
- ProjectsSortBy,
- SortDirection,
-)
-from inse.projects.eu_cordis_projects_client import get_enriched_cordis_project_by_id
-from inse.models.dfg_project_details import DfgProjectDetails
-from inse.models.bund_project_details import BundProjectDetails
-from inse.models.cordis_eu_project import CordisEuProject
from inse.integrations import elasticsearch
from inse.model import ESCluster, ESIndex
-from inse.models.projects_eu_cordis.horizon2020.h2020_project_details import H2020ProjectDetails
-from inse.models.projects_eu_cordis.horizon_europe.heu_project_details import HEUProjectDetails
-from inse.models.projects_eu_cordis.fp7.fp7_project_details import Fp7ProjectDetails
-from inse.projects.logic import get_person_ids_by_institution_ids, get_dfg_project_ids_by_topic_ids, get_openalex_topics_for_dfg_projects, get_person_institutes
-from typing import Union
+from inse.models.bund_project_details import BundProjectDetails
+from inse.models.dfg_project_details import DfgProjectDetails
+from inse.projects.logic import (
+ get_bund_project_ids_by_topic_ids,
+ get_dfg_project_ids_by_topic_ids,
+ get_institution_ids_by_institution_aliases,
+ get_openalex_topics_for_bund_projects,
+ get_openalex_topics_for_dfg_projects,
+ get_person_ids_by_institution_ids,
+ get_person_institutes,
+)
+from inse.projects.model import (
+ BundProjectPage,
+ BundProjectSummary,
+ DfgProjectPage,
+ DfgProjectSummary,
+ FundingProject,
+ FundingProjectPage,
+ ProjectsFilteringProperties,
+ ProjectsSortBy,
+ ProjectType,
+)
+
settings = get_settings()
logger = logging.getLogger(__name__)
logger.setLevel(settings.logging_level)
-DFG_PERSON_FIELDS: List[str] = [
- "Antragsteller",
- "Antragstellerin",
- "Antragstellerinnen",
- "Antragstellerinnen / Antragsteller",
- "Beteiligte Person",
- "Beteiligte Personen",
- "Co-Sprecher",
- "Co-Sprecherinnen / Co-Sprecher",
- "Ehemalige Antragsteller",
- "Ehemalige Antragstellerin",
- "Ehemalige Antragstellerinnen",
- "Ehemalige Antragstellerinnen / Ehemalige Antragsteller",
- "Ehemaliger Antragsteller",
- "Gastgeber",
- "Gastgeberin",
- "Gastgeberinnen",
- "Gastgeberinnen / Gastgeber",
- "Kooperationspartner",
- "Kooperationspartnerin",
- "Kooperationspartnerinnen",
- "Kooperationspartnerinnen / Kooperationspartner",
- "Leiter",
- "Leiterin",
- "Leiterinnen",
- "Leiterinnen / Leiter",
- "Mitantragsteller",
- "Mitantragstellerin",
- "Mitantragstellerinnen",
- "Mitantragstellerinnen / Mitantragsteller",
- "Mitverantwortlich",
- "Mitverantwortlich(e)",
- "Mitverantwortliche",
- "Sprecher",
- "Sprecher (IGK-Partner)",
- "Sprecherin",
- "Sprecherin (IGK-Partner)",
- "Sprecherinnen",
- "Sprecherinnen (IGK-Partner) / Sprecher (IGK-Partner)",
- "Sprecherinnen / Sprecher",
- "Teilprojektleiter",
- "Teilprojektleiterin",
- "Teilprojektleiterinnen",
- "Teilprojektleiterinnen / Teilprojektleiter",
- "ausländ. Mitantragstellerin",
- "ausländ. Mitantragstellerinnen",
- "ausländ. Mitantragstellerinnen / ausländische Mitantragsteller",
- "ausländische Mitantragsteller",
- "ausländischer Mitantragsteller",
- "beteiligte Wissenschaftler",
- "beteiligte Wissenschaftlerin",
- "beteiligte Wissenschaftlerinnen",
- "beteiligte Wissenschaftlerinnen / beteiligte Wissenschaftler",
- "beteiligter Wissenschaftler",
- "person_creater_name",
- "stellvertr. Sprecher",
- "stellvertr. Sprecherin",
- "stellvertr. Sprecherinnen / stellvertr. Sprecher",
-]
-
# BUND
async def search_bund_projects(
filter_properties: ProjectsFilteringProperties,
- institution_names: List[str] = [],
+ institution_names: list[str] = [],
) -> BundProjectPage:
"""Searches for Bund projects based on the provided filtering properties and institution names.
@@ -115,7 +52,7 @@ async def search_bund_projects(
BundProjectPage: The page of Bund projects that match the filtering criteria.
"""
- must_clauses: List[Dict[str, Any]] = []
+ must_clauses: list[dict[str, Any]] = []
if len(institution_names) > 0:
must_clauses.append(
{
@@ -148,7 +85,7 @@ async def search_bund_projects(
}
)
- query: Optional[Dict[str, Any]] = None
+ query: dict[str, Any] | None = None
if must_clauses:
query = {"bool": {"must": must_clauses}}
@@ -162,6 +99,7 @@ async def search_bund_projects(
response = await elasticsearch.search(
index=ESIndex.PROJECTS_BUND_V1,
+ track_total_hits=True,
query=query,
sort=sort,
size=filter_properties.size,
@@ -174,7 +112,7 @@ async def search_bund_projects(
def _complete_response_to_bund_project_page(
- response: Dict[str, Any], page: int, size: int
+ response: dict[str, Any], page: int, size: int
) -> BundProjectPage:
"""Converts the raw Elasticsearch response into a BundProjectPage object.
@@ -189,12 +127,12 @@ def _complete_response_to_bund_project_page(
hits_block = response.get("hits", {})
total_hits = hits_block.get("total", {}).get("value", 0)
elements = [
- BundProject.model_validate(hit["_source"]) for hit in hits_block.get("hits", [])
+ BundProjectSummary.from_hit(hit) for hit in hits_block.get("hits", [])
]
return BundProjectPage(elements=elements, total=total_hits, page=page, size=size)
-async def get_bund_project_by_id(project_id: str) -> Optional[BundProjectDetails]:
+async def get_bund_project_by_id(project_id: str) -> BundProjectDetails | None:
"""Decodes project_id and fetches the details of a single Bund project based on its project ID.
Args:
@@ -212,272 +150,22 @@ async def get_bund_project_by_id(project_id: str) -> Optional[BundProjectDetails
query=query,
size=1,
)
-
+
hits = response.get("hits", {}).get("hits", [])
if hits:
hit = hits[0]
+ elastic_id = hit["_id"]
+ topic_lookup = await get_openalex_topics_for_bund_projects(project_ids=[elastic_id])
+ hit["_source"]["oa_topics"] = topic_lookup.get(elastic_id, [])
details = BundProjectDetails.from_elastic_hit(hit=hit)
return details
return None
+
# EU
-async def get_eu_organization_project_contributions(
- organization_names: List[str],
- projects_filtering_properties: ProjectsFilteringProperties,
-) -> EuOrganizationProjectSummaryPage:
- """Fetches the contributions of EU organizations to projects based on the provided organization names and filtering properties, and returns a paginated summary of the projects.
-
- Args:
- organization_names (List[str]): The list of organization names to fetch contributions for.
- projects_filtering_properties (ProjectsFilteringProperties): The filtering properties for the projects.
-
- Returns:
- EuOrganizationProjectSummaryPage: The paginated summary of the projects.
- """
- # Pagination depending on sorting criteria
- # For FUNDING_AMOUNT before on the organization project contributions
- # For the rest after the contributions are known on the real projects
-
- organization_project_contributions = await get_eu_organization_contributions(
- organization_names=organization_names,
- )
-
- total_projects, projects = await get_eu_organization_projects(
- project_contributions=list(organization_project_contributions.values()),
- projects_filtering_properties=projects_filtering_properties,
- )
-
- elements: List[EuOrganizationProjectSummary] = _merge_project_data(
- projects=projects, contributions=organization_project_contributions
- )
-
- if projects_filtering_properties.sort_by == ProjectsSortBy.FUNDING_AMOUNT:
- elements.sort(
- key=lambda x: x.ec_contribution or 0,
- reverse=projects_filtering_properties.sort_direction == SortDirection.DESC,
- )
- start = projects_filtering_properties.page * projects_filtering_properties.size
- end = start + projects_filtering_properties.size
- elements = elements[start:end]
-
- return EuOrganizationProjectSummaryPage(
- elements=elements,
- total=total_projects,
- page=projects_filtering_properties.page,
- size=projects_filtering_properties.size,
- )
-
-
-async def get_eu_organization_contributions(
- organization_names: List[str],
-) -> Dict[str, EuOrganizationShort]:
- """Fetches the contributions of EU organizations to projects based on the provided organization names.
-
- Args:
- organization_names (List[str]): The list of organization names to fetch contributions for.
-
- Returns:
- Dict[str, EuOrganizationShort]: A dictionary mapping project IDs to their corresponding organization contributions.
- """
-
- source = ["projectID", "organisationID", "ecContribution"]
-
- query = {
- "terms": {
- "name.keyword": [
- name.upper() for name in organization_names if name.strip()
- ],
- }
- }
-
- response = await elasticsearch.search(
- index=ESIndex.CORDIS_EU_ORGANIZATIONS_WILDCARD,
- cluster=ESCluster.INSE,
- source=source,
- size=10000,
- query=query,
- )
-
- logger.debug(
- f"Received organization project contributions response: {json.dumps(response, indent=2)}"
- )
-
- organization_project_contributions = _process_organization_project_contributions(
- response
- )
-
- logger.debug(
- f"Found organization project contributions for organization names {organization_names}: {organization_project_contributions}"
- )
-
- return organization_project_contributions
-
-
-def _process_organization_project_contributions(
- response: Dict[str, Any],
-) -> Dict[str, EuOrganizationShort]:
- """Processes the raw Elasticsearch response to extract the contributions of EU organizations to projects.
-
- Args:
- response (Dict[str, Any]): The raw Elasticsearch response.
-
- Returns:
- Dict[str, EuOrganizationShort]: A dictionary mapping project IDs to their corresponding organization contributions.
- """
- hits_block = response.get("hits", {})
- project_contributions: Dict[str, EuOrganizationShort] = {}
- for hit in hits_block.get("hits", []):
- source = hit.get("_source", {})
- project_id = source.get("projectID")
- organization_id = source.get("organisationID")
- ec_contribution = source.get("ecContribution")
- if project_id and organization_id:
- project_contributions[project_id] = EuOrganizationShort(
- project_id=project_id,
- organization_id=organization_id,
- ec_contribution=ec_contribution,
- )
- return project_contributions
-
-
-async def get_eu_organization_projects(
- project_contributions: List[EuOrganizationShort],
- projects_filtering_properties: ProjectsFilteringProperties,
-) -> Tuple[int, Dict[str, EuProjectShort]]:
- """Fetches the projects associated with the given list of organization contributions, applying the specified filtering properties.
-
- Args:
- project_contributions (List[EuOrganizationShort]): The list of organization contributions to fetch projects for.
- projects_filtering_properties (ProjectsFilteringProperties): The filtering properties to apply to the project search.
-
- Returns:
- Tuple[int, Dict[str, EuProjectShort]]: A tuple containing the total number of projects and a dictionary mapping project IDs to their corresponding project details.
- """
- project_ids = [contribution.project_id for contribution in project_contributions]
-
- source = ["id", "title", "startDate", "endDate", "acronym"]
-
- query = {
- "terms": {
- "id": project_ids,
- }
- }
-
- if (
- projects_filtering_properties.query
- and projects_filtering_properties.query.strip()
- ):
- query = {
- "bool": {
- "must": [
- {
- "match_phrase_prefix": {
- "title": {
- "query": projects_filtering_properties.query,
- "max_expansions": 50,
- }
- }
- }
- ],
- "filter": query,
- }
- }
-
- # Project contributions have been filtered before based on ecContribution
- if projects_filtering_properties.sort_by == ProjectsSortBy.FUNDING_AMOUNT:
- response = await elasticsearch.search(
- index=ESIndex.CORDIS_EU_PROJECTS_WILDCARD,
- cluster=ESCluster.INSE,
- source=source,
- query=query,
- size=10000,
- )
- else:
- response = await elasticsearch.search(
- index=ESIndex.CORDIS_EU_PROJECTS_WILDCARD,
- cluster=ESCluster.INSE,
- source=source,
- query=query,
- size=projects_filtering_properties.size,
- offset=projects_filtering_properties.page
- * projects_filtering_properties.size,
- sort=[
- {
- projects_filtering_properties.sort_by.to_cordis_eu_project_sort_field(): {
- "order": projects_filtering_properties.sort_direction
- }
- }
- ],
- )
-
- return _process_projects_response(response)
-
-
-def _process_projects_response(
- response: Dict[str, Any],
-) -> Tuple[int, Dict[str, EuProjectShort]]:
- """Processes the raw Elasticsearch response to extract the project details and total count.
-
- Args:
- response (Dict[str, Any]): The raw Elasticsearch response.
-
- Returns:
- Tuple[int, Dict[str, EuProjectShort]]: A tuple containing the total number of projects and a dictionary mapping project IDs to their corresponding project details.
- """
- hits_block = response.get("hits", {})
- total = hits_block.get("total", {}).get("value", 0)
- projects: Dict[str, EuProjectShort] = {}
- for hit in hits_block.get("hits", []):
- source = hit.get("_source", {})
- project_id = source.get("id")
- title = source.get("title")
- start_date = source.get("startDate")
- end_date = source.get("endDate")
- acronym = source.get("acronym")
- if not project_id:
- continue
- projects[project_id] = EuProjectShort(
- id=project_id,
- title=title,
- start_date=start_date,
- end_date=end_date,
- acronym=acronym,
- )
-
- return total, projects
-
-
-def _merge_project_data(
- projects: Dict[str, EuProjectShort], contributions: Dict[str, EuOrganizationShort]
-) -> List[EuOrganizationProjectSummary]:
- """Merges the project details with the organization contributions to create a list of EuOrganizationProjectSummary objects.
-
- Args:
- projects (Dict[str, EuProjectShort]): The dictionary of project details.
- contributions (Dict[str, EuOrganizationShort]): The dictionary of organization contributions.
-
- Returns:
- List[EuOrganizationProjectSummary]: The list of merged project-summary objects.
- """
- merged_data = []
- for project_id, project_info in projects.items():
- contribution_info = contributions.get(project_id)
- if contribution_info:
- merged_entry = EuOrganizationProjectSummary(
- project_id=project_id,
- title=project_info.title,
- start_date=project_info.start_date,
- end_date=project_info.end_date,
- acronym=project_info.acronym,
- organization_id=contribution_info.organization_id,
- ec_contribution=contribution_info.ec_contribution,
- )
- merged_data.append(merged_entry)
- return merged_data
-
def _get_raw_doi(doi: str) -> str:
"""Extracts the raw DOI from a given DOI string, removing any URL prefixes if present.
@@ -496,7 +184,7 @@ def _get_raw_doi(doi: str) -> str:
return doi
-async def get_cordis_eu_publications_by_dois(dois: List[str]):
+async def get_cordis_eu_publications_by_dois(dois: list[str]):
"""Retrieves Cordis EU publications associated with the given list of DOIs.
Args:
@@ -543,7 +231,7 @@ async def get_cordis_eu_publications_by_dois(dois: List[str]):
return response
-async def get_cordis_eu_project_ids_by_dois(dois: List[str]) -> List[str]:
+async def get_cordis_eu_project_ids_by_dois(dois: list[str]) -> list[str]:
"""Retrieves the project IDs of Cordis EU projects associated with the given list of DOIs.
Args:
@@ -563,58 +251,118 @@ async def get_cordis_eu_project_ids_by_dois(dois: List[str]) -> List[str]:
return list(project_ids)
-async def get_cordis_eu_projects_by_project_ids(
- project_ids: List[str],
-) -> CordisEuProjectPage:
- query = {"bool": {"filter": [{"terms": {"id": project_ids}}]}}
+# DFG
+
+async def get_dfg_publications_by_dois(dois: list[str]):
+ """Retrieves DFG publications associated with the given list of DOIs.
+
+ Args:
+ dois (List[str]): The list of DOIs for which to retrieve publications.
+
+ Returns:
+ _type_: The retrieved publications.
+ """
+
+ query_dois = list({
+ variant
+ for doi in dois
+ for variant in (
+ doi,
+ )
+ })
+
+ query = {
+ "bool": {
+ "filter": [
+ {
+ "nested": {
+ "path": "publications",
+ "query": {
+ "terms": {
+ "publications.doi":
+ query_dois
+ }
+ }
+ }
+ }
+ ]
+ }
+ }
response = await elasticsearch.search(
+ size=1000,
query=query,
- index=ESIndex.CORDIS_EU_PROJECTS_WILDCARD,
+ index=ESIndex.DFG_PROJECTS,
cluster=ESCluster.INSE,
)
- hits_block = response.get("hits", {})
- total_hits = hits_block.get("total", {}).get("value", 0)
- elements = [
- CordisEuProject.model_validate(hit["_source"])
- for hit in hits_block.get("hits", [])
- ]
- return CordisEuProjectPage(
- elements=elements, total=total_hits, page=0, size=len(elements)
+ logger.debug(f"Received publications response: {json.dumps(response, indent=2)}")
+
+ return response
+
+async def get_dfg_project_ids_by_names(names: list[str]) -> list[str]:
+ query = {
+ "bool": {
+ "should": [
+ {
+ "match_phrase": {
+ "full_name": name
+ }
+ }
+ for name in names
+ ],
+ "minimum_should_match": 1,
+ }
+ }
+
+ response = await elasticsearch.search(
+ source=["projects.project_id"],
+ size=1000,
+ query=query,
+ index=ESIndex.DFG_PERSONS,
+ cluster=ESCluster.INSE,
)
+ project_ids = {
+ project["project_id"]
+ for hit in response.get("hits", {}).get("hits", [])
+ for project in hit.get("_source", {}).get("projects", [])
+ if "project_id" in project
+ }
+ return list(project_ids)
+
+async def get_dfg_project_ids_by_dois(dois: list[str]) -> list[str]:
+ """Retrieves the project IDs of DFG projects associated with the given list of DOIs.
-async def get_eu_cordis_projects_by_id(
- project_id: str,
-) -> Optional[Union[Fp7ProjectDetails, H2020ProjectDetails, HEUProjectDetails]]:
- """
- Fetches and enriches a single Cordis EU project by its ID.
-
Args:
- project_id: The project ID to fetch
-
+ dois (List[str]): The list of DOIs for which to retrieve project IDs.
+
Returns:
- The enriched project details, or None if not found
+ List[str]: The list of project IDs.
"""
- enriched_project = await get_enriched_cordis_project_by_id(
- project_id=project_id
- )
- return enriched_project
+ response = await get_dfg_publications_by_dois(dois=dois)
+ hits_block = response.get("hits", {})
+ project_ids = set()
+ for hit in hits_block.get("hits", []):
+ source = hit.get("_source", {})
+ project_id = source.get("id")
+ if project_id:
+ project_ids.add(project_id)
+ return list(project_ids)
-
-# DFG
async def search_dfg_projects(
page: int,
size: int,
- institution_ids: Optional[List[int]] = None,
- names: Optional[List[str]] = None,
- keywords: Optional[List[str]] = None,
- topic_ids: Optional[List[str]] = None,
- filter_topic_ids: Optional[List[str]] = None,
- title: Optional[str] = None,
- funding_start_years: Optional[List[str]] = None,
- funding_end_years: Optional[List[str]] = None,
+ institution_aliases: list[str] | None = None,
+ project_ids: list[int] | None = None,
+ institution_ids: list[int] | None = [],
+ names: list[str] | None = None,
+ keywords: list[str] | None = None,
+ topic_ids: list[str] | None = None,
+ filter_topic_ids: list[str] | None = None,
+ title: str | None = None,
+ funding_start_years: list[str] | None = None,
+ funding_end_years: list[str] | None = None,
sort_by: str = "id",
sort_direction: str = "asc",
fuzzy: bool = False,
@@ -645,9 +393,10 @@ async def search_dfg_projects(
"""
from_ = page * size
- body: Dict[str, Any] = {
+ body: dict[str, Any] = {
"size": size,
"from": from_,
+ "track_total_hits": True,
"_source": [
"id",
"link",
@@ -666,8 +415,9 @@ async def search_dfg_projects(
"query": {},
}
- must_clauses: List[Dict[str, Any]] = []
-
+ must_clauses: list[dict[str, Any]] = []
+ if project_ids:
+ must_clauses.append({"terms": {"id": project_ids}})
# === Primary search clause: mutually exclusive fuzzy(topic_ids) vs keyword phrase search ===
if fuzzy and topic_ids:
matching_project_ids = await get_dfg_project_ids_by_topic_ids(
@@ -766,6 +516,24 @@ async def search_dfg_projects(
if name_must_clauses:
must_clauses.append({"bool": {"must": name_must_clauses}})
+ if institution_aliases:
+ matching_institution_ids = await get_institution_ids_by_institution_aliases(
+ institution_aliases=institution_aliases
+ )
+ if not matching_institution_ids:
+ return DfgProjectPage(elements=[], total=0, page=page, size=size)
+ matching_person_ids = await get_person_ids_by_institution_ids(
+ institution_ids=matching_institution_ids
+ )
+ must_clauses.append(
+ {
+ "nested": {
+ "path": "persons",
+ "query": {"terms": {"persons.person_id": matching_person_ids}},
+ }
+ }
+ )
+
if institution_ids:
matching_person_ids = await get_person_ids_by_institution_ids(
institution_ids=institution_ids
@@ -806,13 +574,12 @@ async def search_dfg_projects(
sort_config = {"id": {"order": sort_direction}}
body["sort"] = [sort_config]
-
+ # print(f"Executing DFG project search with body: {json.dumps(body, indent=2)}")
# === Execute Search ===
response = await elasticsearch.search(
index=ESIndex.DFG_PROJECTS,
body=body,
cluster=ESCluster.INSE,
- track_total_hits=True,
)
hits = response.get("hits", {}).get("hits", [])
@@ -831,9 +598,7 @@ async def search_dfg_projects(
for hit in hits:
source = hit["_source"]
project_id = source["id"]
-
- source["topics"] = topic_lookup.get(project_id, [])
-
+ source["topics"] = topic_lookup.get(str(project_id), [])
persons = source.get("persons", [])
for person in persons:
person_id = person.get("person_id")
@@ -870,7 +635,7 @@ def _complete_response_to_dfg_project_page(
return DfgProjectPage(elements=elements, total=total_hits, page=page, size=size)
-async def get_dfg_project_by_id(project_id: str) -> Optional[DfgProjectDetails]:
+async def get_dfg_project_by_id(project_id: str) -> DfgProjectDetails | None:
"""Fetches the details of a single DFG project based on its project ID.
Args:
@@ -879,6 +644,7 @@ async def get_dfg_project_by_id(project_id: str) -> Optional[DfgProjectDetails]:
Returns:
Optional[DfgProjectDetails]: The project details or None if not found.
"""
+ topic_lookup = await get_openalex_topics_for_dfg_projects(project_ids=[project_id])
query = {"ids": {"values": [project_id]}}
response = await elasticsearch.search(
@@ -890,17 +656,244 @@ async def get_dfg_project_by_id(project_id: str) -> Optional[DfgProjectDetails]:
if hits:
hit = hits[0]
+ hit["_source"]["topics"] = topic_lookup.get(project_id, [])
details = DfgProjectDetails.from_elastic_hit(hit=hit)
return details
return None
+#BUND
+
+def _bund_year_filters(field: str, years: list[str]) -> dict[str, Any]:
+ should = []
+
+ for year in years:
+ year = str(year).strip()
+ if not year:
+ continue
+
+ should.append(
+ {
+ "range": {
+ field: {
+ "gte": f"01.01.{year}",
+ "lte": f"31.12.{year}",
+ }
+ }
+ }
+ )
+
+ return {
+ "bool": {
+ "should": should,
+ "minimum_should_match": 1,
+ }
+ }
+
+async def search_bund_projects_with_filters(
+ executing_agency: list[str] | None = None,
+ oa_institution_aliases: list[str] | None = None,
+ raw_oa_institution_id: str | None = None,
+ funding_arts: list[str] | None = None, # actually EuCordisProjectType, but treated as strings
+ title: str | None = None,
+ keywords: list[str] | None = None,
+ topic_ids: list[str] | None = None,
+ filter_topic_ids: list[str] | None = None,
+ funding_start_years: list[str] | None = None,
+ funding_end_years: list[str] | None = None,
+ countries: list[str] | None = None,
+ page: int = 0,
+ size: int = 10,
+ sort_by: str = "title",
+ sort_direction: str = "asc",
+ fuzzy: bool = False,
+ skip_topic_enrichment: bool = False,
+) -> BundProjectPage:
+ """
+ Main search function for BUND projects, analogous to the DFG search.
+
+ skip_topic_enrichment: when True, skips the extra OpenAlex-topics lookup
+ used to populate `oa_topics` on each result. Callers that only need core
+ project fields (e.g. funding-over-time aggregation) should set this to
+ avoid the unnecessary ES round trip.
+ """
+ from_ = page * size
+ #institution_ids = ["I62318514"]
+ # Fields we need to build BundProject objects (validation aliases match these exact names)
+ source_fields = [
+ "Förderkennzeichen",
+ "Ressort",
+ "Ressort_fullname",
+ "Referat",
+ "Projektträger",
+ "Projektträger_fullname",
+ "Arb.-Einh.",
+ "Zuwendungsempfänger",
+ "Gemeindekennziffer",
+ "Stadt/Gemeinde",
+ "Ort",
+ "Bundesland",
+ "Staat",
+ "Ausführende Stelle",
+ "Thema",
+ "Leistungsplansystematik",
+ "Klartext Leistungsplansystematik",
+ "Förderbeginn",
+ "Förderende",
+ "Fördersumme",
+ "Förderprofil",
+ "Verbundprojekt",
+ "Förderart",
+ "Publikationsdatum",
+ "Unix-Timestamp",
+ "datum",
+ "neu",
+ "Laufzeit",
+ "funding_start",
+ "funding_end",
+ ]
+
+ body: dict[str, Any] = {
+ "size": size,
+ "from": from_,
+ "_source": source_fields,
+ "query": {},
+ }
+
+ must_clauses: list[dict[str, Any]] = []
+ if oa_institution_aliases:
+ must_clauses.append(
+ {
+ "bool": {
+ "should": [
+ clause
+ for name in oa_institution_aliases
+ for clause in (
+ {"match": {"Zuwendungsempfänger": {"query": name, "operator": "and"}}},
+ {"match": {"Ausführende Stelle": {"query": name, "operator": "and"}}},
+ )
+ ],
+ "minimum_should_match": 1,
+ }
+ }
+ )
+ # === Primary search clause: fuzzy(topic_ids) vs keyword phrase search ===
+ if fuzzy and topic_ids:
+ matching_project_ids = await get_bund_project_ids_by_topic_ids(topic_ids=topic_ids)
+ if not matching_project_ids:
+ return BundProjectPage(elements=[], total=0, page=page, size=size)
+ must_clauses.append({"terms": {"_id": matching_project_ids}})
+
+ elif keywords:
+ keyword_clauses = []
+ for kw in keywords:
+ if kw.strip() == "":
+ continue
+ keyword_clauses.append({
+ "multi_match": {
+ "query": kw,
+ "fields": ["Verbundprojekt","Thema"], # searching title/acronym field
+ "type": "phrase_prefix",
+ "max_expansions": 100,
+ }
+ })
+ if keyword_clauses:
+ must_clauses.append({"bool": {"must": keyword_clauses}})
+
+ # === Additional independent filters (applied regardless of fuzzy/keyword mode) ===
+ if filter_topic_ids:
+ matching_filter_ids = await get_bund_project_ids_by_topic_ids(topic_ids=filter_topic_ids)
+ if not matching_filter_ids:
+ return BundProjectPage(elements=[], total=0, page=page, size=size)
+ must_clauses.append({"terms": {"_id": matching_filter_ids}})
+
+ if title:
+ must_clauses.append({
+ "multi_match": {
+ "query": title,
+ "fields": ["Verbundprojekt","Thema"], # searching title field
+ "type": "phrase_prefix",
+ "max_expansions": 100,
+ }
+ })
+ # print(f"Executing BUND project search with institution_ids: {institution_ids}, executing_agency: {executing_agency}, funding_arts: {funding_arts}, countries: {countries}, funding_start_years: {funding_start_years}, funding_end_years: {funding_end_years}")
+ if executing_agency:
+ # institution_names = await institutions_search_client.get_institution_aliases_by_oa_institution_id(executing_agency[0].split("/")[-1])
+ # institution_page = await institutions_search_client.get_institutions_by_alias(alias=institution_names[0])
+ # print(f"Retrieved institution names for IDs {executing_agency}: {institution_names}")
+ # print(f"Retrieved institution page for names {institution_names}: {institution_page}")
+ # if not institution_names:
+ # return BundProjectPage(elements=[], total=0, page=page, size=size)
+ must_clauses.append({
+ "bool": {
+ "should": [
+ clause
+ for name in executing_agency
+ for clause in (
+ {"match": {"Zuwendungsempfänger": {"query": name, "operator": "and"}}},
+ {"match": {"Ausführende Stelle": {"query": name, "operator": "and"}}},
+ )
+ ],
+ "minimum_should_match": 1,
+ }
+ })
+ if funding_arts:
+ must_clauses.append({"terms": {"Förderart.keyword": funding_arts}})
+
+ if countries:
+ must_clauses.append({"terms": {"Staat.keyword": countries}})
+
+ if funding_start_years:
+ must_clauses.append(_bund_year_filters("funding_start", funding_start_years))
+
+ if funding_end_years:
+ must_clauses.append(_bund_year_filters("funding_end", funding_end_years))
+
+ body["query"] = {"bool": {"must": must_clauses}} if must_clauses else {"match_all": {}}
+ # === Sorting ===
+ sort_by = sort_by.strip().lower()
+ sort_direction = sort_direction.strip().lower()
+ if sort_direction not in ("asc", "desc"):
+ sort_direction = "asc"
+
+ if sort_by == "title":
+ sort_config = {"Verbundprojekt.keyword": {"order": sort_direction}}
+ elif sort_by == "funding_start":
+ sort_config = {"funding_start": {"order": sort_direction}}
+ elif sort_by == "funding_end":
+ sort_config = {"funding_end": {"order": sort_direction}}
+ else:
+ # Fallback to project ID
+ sort_config = {"Förderkennzeichen.keyword": {"order": sort_direction}}
+
+ body["sort"] = [sort_config]
+ # print(f"Executing BUND project search with body: {json.dumps(body, indent=2)}")
+ # === Execute Search ===
+ response = await elasticsearch.search(
+ index=ESIndex.PROJECTS_BUND_V1,
+ body=body,
+ cluster=ESCluster.INSE,
+ track_total_hits=True,
+ )
+
+ hits = response.get("hits", {}).get("hits", [])
+
+ # Enrich with OpenAlex topics (skipped for callers that don't need them,
+ # e.g. funding-over-time aggregation, to avoid an unnecessary ES call)
+ if not skip_topic_enrichment:
+ project_ids = [hit["_id"] for hit in hits]
+ topic_lookup = await get_openalex_topics_for_bund_projects(project_ids=project_ids)
+ for hit in hits:
+ hit["_source"]["oa_topics"] = topic_lookup.get(hit["_id"], [])
+
+ return _complete_response_to_bund_project_page(response, page, size)
+
# All
async def search_all_projects(
projects_filtering_properties: ProjectsFilteringProperties,
- selected_project_types: Optional[Set[ProjectType]] = None,
+ selected_project_types: set[ProjectType] | None = None,
) -> FundingProjectPage:
"""Searches for projects across all project types based on the provided filtering properties and selected project types.
@@ -1017,7 +1010,7 @@ async def search_all_projects(
def _response_to_funding_project_page(
- response: Dict[str, Any], page: int, size: int
+ response: dict[str, Any], page: int, size: int
) -> FundingProjectPage:
"""Converts the raw Elasticsearch response into a FundingProjectPage object.
@@ -1035,7 +1028,7 @@ def _response_to_funding_project_page(
return FundingProjectPage(elements=projects, total=total, page=page, size=size)
-def _hit_to_funding_project(hit: Dict[str, Any]) -> FundingProject:
+def _hit_to_funding_project(hit: dict[str, Any]) -> FundingProject:
"""Converts a single Elasticsearch hit into a FundingProject object based on the index it belongs to.
Args:
@@ -1058,4 +1051,4 @@ def _hit_to_funding_project(hit: Dict[str, Any]) -> FundingProject:
else:
raise ValueError(
"The provided hit does not belong to a recognized project index."
- )
+ )
\ No newline at end of file
diff --git a/service/src/main/inse/projects/router.py b/service/src/main/inse/projects/router.py
index 8fbc5f70..5c7c426f 100644
--- a/service/src/main/inse/projects/router.py
+++ b/service/src/main/inse/projects/router.py
@@ -1,66 +1,39 @@
import logging
-from typing import Annotated, Optional, Set, List
+from typing import Annotated
from fastapi import APIRouter, Body, Depends, Path, Query, status
-
-from inse.projects.model import (
- BundProjectPage,
- CordisEuProjectPage,
- DfgProjectPage,
- EuOrganizationProjectSummaryPage,
- FundingProjectPage,
- InstitutionFunderSummary,
- ProjectType,
- ProjectsFilteringProperties,
- ProjectsSortBy,
- SortDirection,
- EuCordisProjectResponse
-)
-from inse.models.dfg_project_details import DfgProjectDetails
-from inse.models.bund_project_details import BundProjectDetails
-from inse.tags import Tags
-from inse.projects import service as projects_service
-
from inse.institutions.institutions_search_client import (
InstitutionsSearchClient,
)
from inse.institutions.router import get_institutions_search_client
-
-from inse.models.projects_eu_cordis.horizon2020.h2020_project_details import H2020ProjectDetails
-from inse.models.projects_eu_cordis.horizon_europe.heu_project_details import HEUProjectDetails
+from inse.models.bund_project_details import BundProjectDetails
+from inse.models.dfg_project_details import DfgProjectDetails
from inse.models.projects_eu_cordis.fp7.fp7_project_details import Fp7ProjectDetails
-from typing import Union
+from inse.models.projects_eu_cordis.horizon2020.h2020_project_details import (
+ H2020ProjectDetails,
+)
+from inse.models.projects_eu_cordis.horizon_europe.heu_project_details import (
+ HEUProjectDetails,
+)
+from inse.projects import service as projects_service
+from inse.projects.model import (
+ BundProjectPage,
+ DfgProjectPage,
+ EuCordisProjectResponse,
+ FundingProjectPage,
+ InstitutionFunderSummary,
+ ProjectsFilteringProperties,
+ ProjectsSortBy,
+ ProjectType,
+ SortDirection,
+)
+from inse.tags import Tags
logger = logging.getLogger(__name__)
router = APIRouter(prefix="/api/projects", tags=[Tags.PROJECTS])
-@router.get(
- "/author/{raw_oa_author_id}/eu",
- summary="Get EU projects for an author.",
- description="Returns a list of EU projects associated with the specified author ID.",
- operation_id="getEuProjectsForAuthor",
- responses={
- status.HTTP_200_OK: {
- "description": "Successful Response",
- "model": CordisEuProjectPage,
- },
- status.HTTP_404_NOT_FOUND: {"description": "Author not found"},
- },
- response_model_by_alias=False,
-)
-async def get_eu_projects_for_author(
- raw_oa_author_id: Annotated[str, Path(description="The author ID to filter by.")],
-) -> CordisEuProjectPage:
- logger.debug(
- f"Received request to get EU projects for author_id={raw_oa_author_id}"
- )
- return await projects_service.search_cordis_eu_projects_for_author_id(
- raw_oa_author_id=raw_oa_author_id,
- )
-
-
@router.post(
"/institution/bund/search",
summary="Get bund projects.",
@@ -113,6 +86,94 @@ async def get_single_dfg_project(
)
+@router.get(
+ "/bund/search",
+ summary="Search BUND projects.",
+ description="Returns a page of BUND project summaries.",
+ operation_id="searchBundProjectsWithFilters",
+ responses={
+ status.HTTP_200_OK: {
+ "description": "Successful Response",
+ "model": BundProjectPage,
+ },
+ },
+ response_model_by_alias=False,
+)
+async def search_bund_projects(
+ institutions_search_client: Annotated[
+ InstitutionsSearchClient, Depends(get_institutions_search_client)
+ ],
+ executing_agency: Annotated[
+ list[str] | None,
+ Query(description="Executing Agencies (Ausführende Stellen) to filter by."),
+ ] = None,
+ funding_arts: Annotated[
+ list[str] | None,
+ Query(description="Project types to include: fp7, h2020, heu."),
+ ] = None,
+ title: Annotated[
+ str | None,
+ Query(description="Project title/acronym search."),
+ ] = None,
+ keywords: Annotated[
+ list[str] | None,
+ Query(description="Raw keywords to search in title/objective/keywords/topics."),
+ ] = None,
+ topic_ids: Annotated[
+ list[str] | None,
+ Query(description="OpenAlex topic IDs used for fuzzy topic resolution."),
+ ] = None,
+ filter_topic_ids: Annotated[
+ list[str] | None,
+ Query(description="Additional OpenAlex topic IDs used as mandatory filters."),
+ ] = None,
+ funding_start_years: Annotated[
+ list[str] | None,
+ Query(description="Funding start years."),
+ ] = None,
+ funding_end_years: Annotated[
+ list[str] | None,
+ Query(description="Funding end years."),
+ ] = None,
+ countries: Annotated[
+ list[str] | None,
+ Query(description="Organization countries."),
+ ] = None,
+ raw_oa_institution_id: Annotated[
+ str | None,
+ Query(description="The ID of the institution to filter by."),
+ ] = None,
+ page: Annotated[int, Query(description="The page number.", ge=0)] = 0,
+ size: Annotated[int, Query(description="The page size.", ge=1)] = 20,
+ sort_by: Annotated[str, Query(description="Sort field.")] = "title",
+ sort_direction: Annotated[
+ str,
+ Query(description="Sort direction: asc or desc."),
+ ] = "asc",
+ fuzzy: Annotated[
+ bool,
+ Query(description="Use OpenAlex topic-id resolution if true, otherwise raw keyword search."),
+ ] = False,
+) -> BundProjectPage:
+ return await projects_service.search_bund_projects_with_filters(
+ institutions_search_client=institutions_search_client,
+ executing_agency=executing_agency,
+ funding_arts=funding_arts,
+ title=title,
+ keywords=keywords,
+ topic_ids=topic_ids,
+ filter_topic_ids=filter_topic_ids,
+ funding_start_years=funding_start_years,
+ funding_end_years=funding_end_years,
+ countries=countries,
+ raw_oa_institution_id=raw_oa_institution_id,
+ page=page,
+ size=size,
+ sort_by=sort_by,
+ sort_direction=sort_direction,
+ fuzzy=fuzzy
+ )
+
@router.get(
"/bund/{id}",
summary="Get a single BUND project.",
@@ -134,83 +195,97 @@ async def get_single_bund_project(
return await projects_service.get_single_bund_project(
project_id=id,
)
-
-
+
########
from inse.projects.model import EuCordisProjectSearchPage, EuCordisProjectType
-from inse.projects.service import search_eu_cordis_projects_summary_impl
+from inse.projects.service import search_eu_cordis_projects
+
+
@router.get(
"/eu/search",
summary="Search EU CORDIS projects.",
- description="Returns a page of EU CORDIS project summaries across FP7, Horizon 2020 and Horizon Europe.",
- operation_id="searchEuCordisProjectsSummary",
+ description=(
+ "Returns a page of EU CORDIS project summaries across FP7, Horizon 2020 and "
+ "Horizon Europe. Single entry point for EU CORDIS project search: filter by "
+ "institution, author(s), organization, OpenAlex topic, programme, funding "
+ "scheme, status, funding years and/or country, in any combination."
+ ),
+ operation_id="searchEuCordisProjects",
responses={
status.HTTP_200_OK: {
"description": "Successful Response",
"model": EuCordisProjectSearchPage,
},
+ status.HTTP_404_NOT_FOUND: {"description": "Institution not found"},
},
response_model_by_alias=False,
)
-async def search_eu_cordis_projects_summary(
+async def search_eu_cordis_projects_endpoint(
+ institutions_search_client: Annotated[
+ InstitutionsSearchClient, Depends(get_institutions_search_client)
+ ],
+ raw_oa_institution_id: Annotated[
+ str | None,
+ Query(description="OpenAlex institution ID to filter by."),
+ ] = None,
author_id: Annotated[
- Optional[str],
+ str | None,
Query(description="OpenAlex author ID to filter by."),
] = None,
author_ids: Annotated[
- Optional[List[str]],
+ list[str] | None,
Query(description="Additional OpenAlex author IDs to filter by. All selected authors must match."),
] = None,
organization_ids: Annotated[
- Optional[List[str]],
+ list[str] | None,
Query(description="CORDIS organisation IDs. All selected organizations must match."),
] = None,
organization_names: Annotated[
- Optional[List[str]],
+ list[str] | None,
Query(description="CORDIS organization names. All selected organizations must match."),
] = None,
project_types: Annotated[
- Optional[List[EuCordisProjectType]],
+ list[EuCordisProjectType] | None,
Query(description="Project types to include: fp7, h2020, heu."),
] = None,
title: Annotated[
- Optional[str],
+ str | None,
Query(description="Project title/acronym search."),
] = None,
keywords: Annotated[
- Optional[List[str]],
+ list[str] | None,
Query(description="Raw keywords to search in title/objective/keywords/topics."),
] = None,
topic_ids: Annotated[
- Optional[List[str]],
+ list[str] | None,
Query(description="OpenAlex topic IDs used for fuzzy topic resolution."),
] = None,
filter_topic_ids: Annotated[
- Optional[List[str]],
+ list[str] | None,
Query(description="Additional OpenAlex topic IDs used as mandatory filters."),
] = None,
funding_start_years: Annotated[
- Optional[List[str]],
+ list[str] | None,
Query(description="Funding start years."),
] = None,
funding_end_years: Annotated[
- Optional[List[str]],
+ list[str] | None,
Query(description="Funding end years."),
] = None,
countries: Annotated[
- Optional[List[str]],
+ list[str] | None,
Query(description="Organization countries."),
] = None,
framework_programmes: Annotated[
- Optional[List[str]],
+ list[str] | None,
Query(description="Framework programme filters."),
] = None,
funding_schemes: Annotated[
- Optional[List[str]],
+ list[str] | None,
Query(description="Funding scheme filters."),
] = None,
statuses: Annotated[
- Optional[List[str]],
+ list[str] | None,
Query(description="Project status filters."),
] = None,
page: Annotated[int, Query(description="The page number.", ge=0)] = 0,
@@ -226,12 +301,14 @@ async def search_eu_cordis_projects_summary(
] = False,
) -> EuCordisProjectSearchPage:
logger.debug(
- "Received EU CORDIS search request: author_id=%s, author_ids=%s, "
+ "Received EU CORDIS search request: raw_oa_institution_id=%s, "
+ "author_id=%s, author_ids=%s, "
"organization_ids=%s, organization_names=%s, project_types=%s, "
"title=%s, keywords=%s, topic_ids=%s, filter_topic_ids=%s, "
"funding_start_years=%s, funding_end_years=%s, countries=%s, "
"framework_programmes=%s, funding_schemes=%s, statuses=%s, "
"page=%s, size=%s, sort_by=%s, sort_direction=%s, fuzzy=%s",
+ raw_oa_institution_id,
author_id,
author_ids,
organization_ids,
@@ -254,7 +331,9 @@ async def search_eu_cordis_projects_summary(
fuzzy,
)
- return await search_eu_cordis_projects_summary_impl(
+ return await search_eu_cordis_projects(
+ institutions_search_client=institutions_search_client,
+ raw_oa_institution_id=raw_oa_institution_id,
author_id=author_id,
author_ids=author_ids,
organization_ids=organization_ids,
@@ -346,19 +425,23 @@ async def get_single_eu_cordis_project(
)
except Exception as e:
- logger.error(f"Error retrieving project with ID {id}: {str(e)}", exc_info=True)
+ logger.error(f"Error retrieving project with ID {id}: {e!s}", exc_info=True)
return EuCordisProjectResponse(
success=False,
project_type=None,
eu_project_data=None,
- error=f"Internal server error: {str(e)}"
+ error=f"Internal server error: {e!s}"
)
@router.get(
"/institution/bund/funding-over-time",
summary="Get funding over time for bund projects.",
- description="Returns the funding over time for bund projects associated with the specified institution.",
+ description=(
+ "Returns the funding over time for BUND projects. Accepts the same "
+ "filters as /bund/search, so the funding total can be made to match "
+ "whatever the results table is currently filtered to."
+ ),
operation_id="getInstitutionBundProjectsFundingOverTime",
responses={
status.HTTP_200_OK: {
@@ -374,48 +457,73 @@ async def get_institution_bund_projects_funding_over_time(
InstitutionsSearchClient, Depends(get_institutions_search_client)
],
raw_oa_institution_id: Annotated[
- str, Query(description="The institution ID to filter by.")
- ],
+ str | None, Query(description="The institution ID to filter by.")
+ ] = None,
+ executing_agency: Annotated[
+ list[str] | None,
+ Query(description="Executing Agencies (Ausführende Stellen) to filter by."),
+ ] = None,
+ funding_arts: Annotated[
+ list[str] | None,
+ Query(description="Project types to include: fp7, h2020, heu."),
+ ] = None,
+ title: Annotated[
+ str | None,
+ Query(description="Project title/acronym search."),
+ ] = None,
+ keywords: Annotated[
+ list[str] | None,
+ Query(description="Raw keywords to search in title/objective/keywords/topics."),
+ ] = None,
+ topic_ids: Annotated[
+ list[str] | None,
+ Query(description="OpenAlex topic IDs used for fuzzy topic resolution."),
+ ] = None,
+ filter_topic_ids: Annotated[
+ list[str] | None,
+ Query(description="Additional OpenAlex topic IDs used as mandatory filters."),
+ ] = None,
+ funding_start_years: Annotated[
+ list[str] | None,
+ Query(description="Funding start years."),
+ ] = None,
+ funding_end_years: Annotated[
+ list[str] | None,
+ Query(description="Funding end years."),
+ ] = None,
+ countries: Annotated[
+ list[str] | None,
+ Query(description="Organization countries."),
+ ] = None,
+ fuzzy: Annotated[
+ bool,
+ Query(description="Use OpenAlex topic-id resolution if true, otherwise raw keyword search."),
+ ] = False,
) -> InstitutionFunderSummary:
return await projects_service.get_institution_bund_projects_funding_over_time(
institutions_search_client=institutions_search_client,
raw_oa_institution_id=raw_oa_institution_id,
- )
-
-
-@router.post(
- "/institution/eu/search",
- summary="Get EU projects.",
- description="Returns a page of EU projects based on the provided pagination parameters and optional institution filter.",
- operation_id="searchCordisEuProjects",
- responses={
- status.HTTP_200_OK: {
- "description": "Successful Response",
- "model": EuOrganizationProjectSummaryPage,
- },
- status.HTTP_404_NOT_FOUND: {"description": "Institution not found"},
- },
- response_model_by_alias=False,
-)
-async def search_cordis_eu_projects(
- institutions_search_client: Annotated[
- InstitutionsSearchClient, Depends(get_institutions_search_client)
- ],
- projects_filtering_properties: Annotated[
- ProjectsFilteringProperties,
- Body(description="The filtering properties for the projects search."),
- ],
-) -> EuOrganizationProjectSummaryPage:
- return await projects_service.search_cordis_eu_projects(
- institutions_search_client=institutions_search_client,
- projects_filtering_properties=projects_filtering_properties,
+ executing_agency=executing_agency,
+ funding_arts=funding_arts,
+ title=title,
+ keywords=keywords,
+ topic_ids=topic_ids,
+ filter_topic_ids=filter_topic_ids,
+ funding_start_years=funding_start_years,
+ funding_end_years=funding_end_years,
+ countries=countries,
+ fuzzy=fuzzy,
)
@router.get(
"/institution/eu/funding-over-time",
summary="Get funding over time for EU projects.",
- description="Returns the funding over time for EU projects associated with the specified institution.",
+ description=(
+ "Returns the funding over time for EU CORDIS projects. Accepts the "
+ "same filters as /eu/search, so the funding total can be made to "
+ "match whatever the results table is currently filtered to."
+ ),
operation_id="getInstitutionCordisEuProjectsFundingOverTime",
responses={
status.HTTP_200_OK: {
@@ -431,12 +539,93 @@ async def get_institution_cordis_eu_projects_funding_over_time(
InstitutionsSearchClient, Depends(get_institutions_search_client)
],
raw_oa_institution_id: Annotated[
- str, Query(description="The institution ID to filter by.")
- ],
+ str | None,
+ Query(description="OpenAlex institution ID to filter by."),
+ ] = None,
+ author_id: Annotated[
+ str | None,
+ Query(description="OpenAlex author ID to filter by."),
+ ] = None,
+ author_ids: Annotated[
+ list[str] | None,
+ Query(description="Additional OpenAlex author IDs to filter by. All selected authors must match."),
+ ] = None,
+ organization_ids: Annotated[
+ list[str] | None,
+ Query(description="CORDIS organisation IDs. All selected organizations must match."),
+ ] = None,
+ organization_names: Annotated[
+ list[str] | None,
+ Query(description="CORDIS organization names. All selected organizations must match."),
+ ] = None,
+ project_types: Annotated[
+ list[EuCordisProjectType] | None,
+ Query(description="Project types to include: fp7, h2020, heu."),
+ ] = None,
+ title: Annotated[
+ str | None,
+ Query(description="Project title/acronym search."),
+ ] = None,
+ keywords: Annotated[
+ list[str] | None,
+ Query(description="Raw keywords to search in title/objective/keywords/topics."),
+ ] = None,
+ topic_ids: Annotated[
+ list[str] | None,
+ Query(description="OpenAlex topic IDs used for fuzzy topic resolution."),
+ ] = None,
+ filter_topic_ids: Annotated[
+ list[str] | None,
+ Query(description="Additional OpenAlex topic IDs used as mandatory filters."),
+ ] = None,
+ funding_start_years: Annotated[
+ list[str] | None,
+ Query(description="Funding start years."),
+ ] = None,
+ funding_end_years: Annotated[
+ list[str] | None,
+ Query(description="Funding end years."),
+ ] = None,
+ countries: Annotated[
+ list[str] | None,
+ Query(description="Organization countries."),
+ ] = None,
+ framework_programmes: Annotated[
+ list[str] | None,
+ Query(description="Framework programme filters."),
+ ] = None,
+ funding_schemes: Annotated[
+ list[str] | None,
+ Query(description="Funding scheme filters."),
+ ] = None,
+ statuses: Annotated[
+ list[str] | None,
+ Query(description="Project status filters."),
+ ] = None,
+ fuzzy: Annotated[
+ bool,
+ Query(description="Use OpenAlex topic-id resolution if true, otherwise raw keyword search."),
+ ] = False,
) -> InstitutionFunderSummary:
return await projects_service.get_institution_cordis_eu_projects_funding_over_time(
institutions_search_client=institutions_search_client,
raw_oa_institution_id=raw_oa_institution_id,
+ author_id=author_id,
+ author_ids=author_ids,
+ organization_ids=organization_ids,
+ organization_names=organization_names,
+ project_types=project_types,
+ title=title,
+ keywords=keywords,
+ topic_ids=topic_ids,
+ filter_topic_ids=filter_topic_ids,
+ funding_start_years=funding_start_years,
+ funding_end_years=funding_end_years,
+ countries=countries,
+ framework_programmes=framework_programmes,
+ funding_schemes=funding_schemes,
+ statuses=statuses,
+ fuzzy=fuzzy,
)
@@ -455,29 +644,35 @@ async def get_institution_cordis_eu_projects_funding_over_time(
response_model_by_alias=False,
)
async def get_dfg_projects(
- author_id: Annotated[Optional[str], Query(description="The openalex author ID to filter by.")] = None,
- author_filter_ids: Annotated[Optional[List[int]], Query(description="The author IDs to filter by.")] = None,
+ institutions_search_client: Annotated[
+ InstitutionsSearchClient, Depends(get_institutions_search_client)
+ ],
+ raw_oa_institution_id: Annotated[
+ str | None, Query(description="The openalex institution ID to filter by.")
+ ] = None,
+ author_id: Annotated[str | None, Query(description="The openalex author ID to filter by.")] = None,
+ author_filter_ids: Annotated[list[int] | None, Query(description="The dfg author IDs to filter by.")] = None,
institution_ids: Annotated[
- Optional[List[int]], Query(description="The institution IDs to filter by.")
+ list[int] | None, Query(description="The institution IDs to filter by.")
] = None,
title: Annotated[
- Optional[str], Query(description="The title to filter by.")
+ str | None, Query(description="The title to filter by.")
] = None,
keywords: Annotated[
- Optional[List[str]], Query(description="Raw keywords to search in title/abstract/subject fields.")
+ list[str] | None, Query(description="Raw keywords to search in title/abstract/subject fields.")
] = None,
topic_ids: Annotated[
- Optional[List[str]], Query(description="The openalex topic IDs to filter by.")
+ list[str] | None, Query(description="The openalex topic IDs to filter by.")
] = None,
filter_topic_ids: Annotated[
- Optional[List[str]],
+ list[str] | None,
Query(
description="Additional topic IDs to merge into the fuzzy topic-id resolution "
"(union with topic_ids). Only used when fuzzy=True."
),
] = None,
- funding_start_years: Annotated[Optional[List[str]], Query(description="The funding start years to filter by.")] = None,
- funding_end_years: Annotated[Optional[List[str]], Query(description="The funding end years to filter by.")] = None,
+ funding_start_years: Annotated[list[str] | None, Query(description="The funding start years to filter by.")] = None,
+ funding_end_years: Annotated[list[str] | None, Query(description="The funding end years to filter by.")] = None,
page: Annotated[int, Query(description="The page number.", ge=0)] = 0,
size: Annotated[int, Query(description="The page size.", ge=1)] = 20,
@@ -512,6 +707,8 @@ async def get_dfg_projects(
fuzzy,
)
return await projects_service.get_dfg_projects_by_author_id(
+ institutions_search_client=institutions_search_client,
+ raw_oa_institution_id=raw_oa_institution_id,
author_id=author_id,
author_filter_ids=author_filter_ids,
institution_ids=institution_ids,
@@ -545,13 +742,13 @@ async def search_projects(
page: Annotated[int, Query(description="The page number.", ge=0)] = 0,
size: Annotated[int, Query(description="The page size.", ge=1)] = 10,
selected_project_types: Annotated[
- Optional[Set[ProjectType]],
+ set[ProjectType] | None,
Query(
description="The set of project types to filter by (e.g., 'bund', 'eu', 'dfg'). If not provided, projects of all types will be included."
),
] = None,
title: Annotated[
- Optional[str], Query(description="The title to filter by.")
+ str | None, Query(description="The title to filter by.")
] = None,
sort_by: Annotated[
ProjectsSortBy, Query(description="The field to sort by.")
@@ -567,4 +764,4 @@ async def search_projects(
title=title,
sort_by=sort_by,
sort_direction=sort_direction,
- )
+ )
\ No newline at end of file
diff --git a/service/src/main/inse/projects/service.py b/service/src/main/inse/projects/service.py
index 65a7ded5..4666c640 100644
--- a/service/src/main/inse/projects/service.py
+++ b/service/src/main/inse/projects/service.py
@@ -1,37 +1,47 @@
import datetime
import logging
-from typing import Any, Dict, List, Optional, Set
+from typing import Any
-from inse.projects import projects_search_client
-from inse.projects.projects_search_client import (
- get_eu_organization_project_contributions,
-)
-from inse.projects.model import (
- BundProjectPage,
- CordisEuProjectPage,
- DfgProjectPage,
- EuOrganizationProjectSummaryPage,
- FundingProjectPage,
- InstitutionFunderSummary,
- ProjectType,
- ProjectsFilteringProperties,
- ProjectsSortBy,
- SortDirection,
- CordisEuProject
-)
-from inse.models.dfg_project_details import DfgProjectDetails
-from inse.models.bund_project_details import BundProjectDetails
+from inse.exceptions import NotFoundException
from inse.institutions.institutions_search_client import (
InstitutionsSearchClient,
)
-from inse.exceptions import NotFoundException
-from inse.persons.logic import get_author_name_by_id
-from inse.projects.logic import get_dfg_author_names_by_ids, get_dfg_institution_names_by_ids
-from inse.works.logic import get_publication_dois_of_author
-from inse.models.projects_eu_cordis.horizon2020.h2020_project_details import H2020ProjectDetails
-from inse.models.projects_eu_cordis.horizon_europe.heu_project_details import HEUProjectDetails
+from inse.models.bund_project_details import BundProjectDetails
+from inse.models.dfg_project_details import DfgProjectDetails
from inse.models.projects_eu_cordis.fp7.fp7_project_details import Fp7ProjectDetails
-from typing import Union
+from inse.models.projects_eu_cordis.horizon2020.h2020_project_details import (
+ H2020ProjectDetails,
+)
+from inse.models.projects_eu_cordis.horizon_europe.heu_project_details import (
+ HEUProjectDetails,
+)
+from inse.persons.logic import (
+ get_author_name_with_alternatives_by_id,
+)
+from inse.projects import projects_search_client
+from inse.projects.eu_cordis_projects_client import (
+ get_enriched_cordis_project_by_id,
+ get_eu_cordis_projects_funding_data,
+)
+from inse.projects.eu_cordis_projects_client import (
+ search_eu_cordis_projects as _search_eu_cordis_projects_es,
+)
+from inse.projects.logic import (
+ get_dfg_author_names_by_ids,
+)
+from inse.projects.model import (
+ BundProjectPage,
+ DfgProjectPage,
+ EuCordisProjectSearchPage,
+ EuCordisProjectType,
+ FundingProjectPage,
+ InstitutionFunderSummary,
+ ProjectsFilteringProperties,
+ ProjectsSortBy,
+ ProjectType,
+ SortDirection,
+)
+from inse.works.logic import get_publication_dois_of_author
logger = logging.getLogger(__name__)
@@ -41,8 +51,8 @@ async def search_all_projects(
size: int,
sort_by: ProjectsSortBy,
sort_direction: SortDirection,
- selected_project_types: Optional[Set[ProjectType]] = None,
- title: Optional[str] = None,
+ selected_project_types: set[ProjectType] | None = None,
+ title: str | None = None,
) -> FundingProjectPage:
return await projects_search_client.search_all_projects(
projects_filtering_properties=ProjectsFilteringProperties(
@@ -102,61 +112,63 @@ async def get_bund_projects_by_institution_id(
return response
-async def search_cordis_eu_projects(
- institutions_search_client: InstitutionsSearchClient,
- projects_filtering_properties: ProjectsFilteringProperties,
-) -> EuOrganizationProjectSummaryPage:
- if projects_filtering_properties.project_type != "eu":
- raise ValueError(
- f"Invalid project type: {projects_filtering_properties.project_type}. Expected 'eu'."
+async def _get_dfg_project_ids_for_openalex_authors(
+ author_ids: list[str],
+) -> list[str] | None:
+ """
+ Resolves OpenAlex authors to DFG project IDs via publication DOIs.
+
+ Multiple authors use AND semantics:
+ project must be connected to publications from every selected author.
+ """
+ author_ids = [author_id for author_id in author_ids if author_id and author_id.strip()]
+ if not author_ids:
+ return None
+
+ project_sets: list[set[str]] = []
+
+ for author_id in author_ids:
+ project_ids = []
+ #Outcommented should we use it?
+ # dois = await get_publication_dois_of_author(raw_oa_author_id=author_id)
+ # if not dois:
+ # return []
+ # logger.info("DOIs for author_id:%s: %s", author_id, dois)
+
+ # project_ids = await projects_search_client.get_dfg_project_ids_by_dois(
+ # dois=dois
+ # )
+ author_names_with_alternatives = (
+ await get_author_name_with_alternatives_by_id(author_id)
+ if author_id
+ else None
)
+ logger.info("Author names with alternatives for author_id:%s: %s", author_id, author_names_with_alternatives)
+ project_ids_by_names = await projects_search_client.get_dfg_project_ids_by_names(names=author_names_with_alternatives)
+ logger.info("Project IDs by names for author_id:%s: %s", author_id, project_ids_by_names)
+ project_ids = list(set(project_ids) | set(project_ids_by_names))
+ if not project_ids:
+ return []
- return await get_cordis_eu_projects_by_institution_id(
- institutions_search_client=institutions_search_client,
- projects_filtering_properties=projects_filtering_properties,
- )
+ project_sets.append(set(project_ids))
+ logger.info("Project sets for author_ids:%s: %s", author_ids, project_sets)
+ if not project_sets:
+ return None
-
-async def get_cordis_eu_projects_by_institution_id(
- institutions_search_client: InstitutionsSearchClient,
- projects_filtering_properties: ProjectsFilteringProperties,
-) -> EuOrganizationProjectSummaryPage:
- if not projects_filtering_properties.raw_oa_institution_id:
- raise ValueError(
- "raw_oa_institution_id must be provided to fetch CORDIS EU projects by institution ID"
- )
-
- logger.info(
- f"Fetching CORDIS EU projects for institution_id={projects_filtering_properties.raw_oa_institution_id}, page={projects_filtering_properties.page}, size={projects_filtering_properties.size}"
- )
- institution_aliases = (
- await institutions_search_client.get_institution_aliases_by_oa_institution_id(
- projects_filtering_properties.raw_oa_institution_id
- )
- )
- logger.debug(
- f"Found institution aliases for institution_id={projects_filtering_properties.raw_oa_institution_id}: {institution_aliases}"
- )
-
- page = await get_eu_organization_project_contributions(
- organization_names=institution_aliases,
- projects_filtering_properties=projects_filtering_properties,
- )
-
- logger.debug(f"get_cordis_eu_projects_by_institution_id response: {page}")
-
- return page
+ return list(set.intersection(*project_sets))
async def get_dfg_projects_by_author_id(
- author_id: Optional[str],
- author_filter_ids: Optional[List[int]],
- institution_ids: Optional[List[int]],
- keywords: Optional[List[str]],
- topic_ids: Optional[List[str]],
- filter_topic_ids: Optional[List[str]],
- title: Optional[str],
- funding_start_years: Optional[List[str]],
- funding_end_years: Optional[List[str]],
+ institutions_search_client: InstitutionsSearchClient,
+ raw_oa_institution_id: str | None,
+ author_id: str | None,
+ author_filter_ids: list[int] | None,
+ institution_ids: list[int] | None,
+ keywords: list[str] | None,
+ topic_ids: list[str] | None,
+ filter_topic_ids: list[str] | None,
+ title: str | None,
+ funding_start_years: list[str] | None,
+ funding_end_years: list[str] | None,
page: int,
size: int,
sort_by: str = "topic",
@@ -184,37 +196,47 @@ async def get_dfg_projects_by_author_id(
fuzzy,
)
filter_names = []
- author_name = (
- await get_author_name_by_id(author_id)
- if author_id
- else None
- )
- if author_id and not author_name:
- logger.debug("No author name found for author_id=%s", author_id)
+ author_project_ids = []
+ if author_id:
+ author_project_ids = await _get_dfg_project_ids_for_openalex_authors([author_id])
+ logger.info("Author project IDs for author_id:%s: %s", author_id, author_project_ids)
+ if not author_project_ids:
+ return DfgProjectPage(
+ elements=[],
+ page=page,
+ size=size,
+ total=0)
- filter_names = (
- await get_dfg_author_names_by_ids(author_ids=author_filter_ids)
- if author_filter_ids
- else []
- )
+ if author_filter_ids:
+ filter_names = (
+ await get_dfg_author_names_by_ids(author_ids=author_filter_ids)
+ if author_filter_ids
+ else []
+ )
if author_filter_ids and not filter_names:
logger.debug(
"No author names found for author_filter_ids=%s",
author_filter_ids,
)
-
- if author_name:
- filter_names.append(author_name)
-
- if institution_ids:
- logger.debug(
- "No institutions found for institution_ids=%s",
- institution_ids,
+ institution_aliases = []
+ if raw_oa_institution_id:
+ institution_aliases = (
+ await institutions_search_client.get_institution_aliases_by_oa_institution_id(
+ raw_oa_institution_id
+ )
)
-
+ if not institution_aliases:
+ return DfgProjectPage(
+ elements=[],
+ page=page,
+ size=size,
+ total=0,
+ )
return await projects_search_client.search_dfg_projects(
page=page,
size=size,
+ institution_aliases=institution_aliases,
+ project_ids=author_project_ids,
names=filter_names or [],
institution_ids=institution_ids,
keywords=keywords,
@@ -230,80 +252,231 @@ async def get_dfg_projects_by_author_id(
async def get_institution_cordis_eu_projects_funding_over_time(
institutions_search_client: InstitutionsSearchClient,
- raw_oa_institution_id: str,
+ raw_oa_institution_id: str | None = None,
+ project_types: list[EuCordisProjectType] | None = None,
+ author_id: str | None = None,
+ author_ids: list[str] | None = None,
+ organization_ids: list[str] | None = None,
+ organization_names: list[str] | None = None,
+ keywords: list[str] | None = None,
+ topic_ids: list[str] | None = None,
+ filter_topic_ids: list[str] | None = None,
+ title: str | None = None,
+ funding_start_years: list[str] | None = None,
+ funding_end_years: list[str] | None = None,
+ countries: list[str] | None = None,
+ framework_programmes: list[str] | None = None,
+ funding_schemes: list[str] | None = None,
+ statuses: list[str] | None = None,
+ fuzzy: bool = False,
) -> InstitutionFunderSummary:
- institution_aliases = (
- await institutions_search_client.get_institution_aliases_by_oa_institution_id(
- raw_oa_institution_id
+ """
+ Computes funding-over-time for EU CORDIS projects, applying the exact same
+ filters as `search_eu_cordis_projects` (the table search). Uses a
+ lightweight, fully-paginated fetch of just id/dates/amount - no author,
+ organization or topic enrichment - so this stays fast even when a filter
+ combination matches many thousands of projects.
+ """
+ resolved_organization_names: list[str] = list(organization_names or [])
+
+ if raw_oa_institution_id:
+ institution_aliases = (
+ await institutions_search_client.get_institution_aliases_by_oa_institution_id(
+ raw_oa_institution_id
+ )
)
+ logger.debug(
+ f"Found institution aliases for institution_id={raw_oa_institution_id}: {institution_aliases}"
+ )
+ resolved_organization_names.extend(institution_aliases)
+
+ all_author_ids: list[str] = []
+ if author_id:
+ all_author_ids.append(author_id)
+ all_author_ids.extend(author_ids or [])
+ author_project_ids = await _get_eu_project_ids_for_openalex_authors(
+ author_ids=all_author_ids
)
- page = await get_eu_organization_project_contributions(
- organization_names=institution_aliases,
- projects_filtering_properties=ProjectsFilteringProperties(
- project_type=ProjectType.EU,
- page=0,
- size=10000,
- ),
+
+ funding_data = await get_eu_cordis_projects_funding_data(
+ project_types=project_types,
+ organization_ids=organization_ids,
+ organization_names=resolved_organization_names or None,
+ author_project_ids=author_project_ids,
+ keywords=keywords,
+ topic_ids=topic_ids,
+ filter_topic_ids=filter_topic_ids,
+ title=title,
+ funding_start_years=funding_start_years,
+ funding_end_years=funding_end_years,
+ countries=countries,
+ framework_programmes=framework_programmes,
+ funding_schemes=funding_schemes,
+ statuses=statuses,
+ fuzzy=fuzzy,
)
return _calculate_funding_over_time(
project_type=ProjectType.EU,
- projects=page.elements,
- funding_start_attr="start_date",
- funding_end_attr="end_date",
- funding_amount_attr="ec_contribution",
+ funding_entries=[
+ (entry.get("start_date"), entry.get("end_date"), entry.get("ec_max_contribution"))
+ for entry in funding_data
+ ],
)
async def get_institution_bund_projects_funding_over_time(
institutions_search_client: InstitutionsSearchClient,
- raw_oa_institution_id: str,
+ raw_oa_institution_id: str | None = None,
+ executing_agency: list[str] | None = None,
+ funding_arts: list[str] | None = None,
+ title: str | None = None,
+ keywords: list[str] | None = None,
+ topic_ids: list[str] | None = None,
+ filter_topic_ids: list[str] | None = None,
+ funding_start_years: list[str] | None = None,
+ funding_end_years: list[str] | None = None,
+ countries: list[str] | None = None,
+ fuzzy: bool = False,
) -> InstitutionFunderSummary:
+ """
+ Computes funding-over-time for BUND projects, applying the exact same
+ filters as `search_bund_projects_with_filters` (the table search).
+ Skips the OpenAlex-topic enrichment step (irrelevant to a funding sum)
+ and pages through ALL matches rather than a single capped size=10000
+ request, so totals stay correct and fast for large result sets.
+ """
logger.info(
- f"Fetching funding over time for institution_id={raw_oa_institution_id}"
+ f"Fetching funding over time for institution_id={raw_oa_institution_id}, "
+ f"executing_agency={executing_agency}, funding_arts={funding_arts}, "
+ f"title={title}, keywords={keywords}, topic_ids={topic_ids}, "
+ f"filter_topic_ids={filter_topic_ids}, funding_start_years={funding_start_years}, "
+ f"funding_end_years={funding_end_years}, countries={countries}, fuzzy={fuzzy}"
)
- institution_aliases = (
- await institutions_search_client.get_institution_aliases_by_oa_institution_id(
- raw_oa_institution_id
+
+ institution_aliases = []
+ if raw_oa_institution_id:
+ institution_aliases = (
+ await institutions_search_client.get_institution_aliases_by_oa_institution_id(
+ raw_oa_institution_id
+ )
)
- )
- logger.debug(
- f"Found institution aliases for institution_id={raw_oa_institution_id}: {institution_aliases}"
- )
- response = await projects_search_client.search_bund_projects(
- filter_properties=ProjectsFilteringProperties(
- project_type=ProjectType.BUND,
- page=0,
- size=10000,
- ),
- institution_names=institution_aliases,
- )
+ if not institution_aliases:
+ return _calculate_funding_over_time(
+ project_type=ProjectType.BUND,
+ funding_entries=[],
+ )
+
+ page_size = 5000
+ page = 0
+ funding_entries: list[Any] = []
+
+ while True:
+ response = await projects_search_client.search_bund_projects_with_filters(
+ oa_institution_aliases=institution_aliases,
+ raw_oa_institution_id=raw_oa_institution_id,
+ executing_agency=executing_agency,
+ funding_arts=funding_arts,
+ title=title,
+ keywords=keywords,
+ topic_ids=topic_ids,
+ filter_topic_ids=filter_topic_ids,
+ funding_start_years=funding_start_years,
+ funding_end_years=funding_end_years,
+ countries=countries,
+ page=page,
+ size=page_size,
+ fuzzy=fuzzy,
+ skip_topic_enrichment=True,
+ )
+
+ funding_entries.extend(
+ (element.funding_start, element.funding_end, element.grant_amount)
+ for element in response.elements
+ )
+
+ if len(response.elements) < page_size:
+ break
+ page += 1
return _calculate_funding_over_time(
project_type=ProjectType.BUND,
- projects=response.elements,
- funding_start_attr="funding_start",
- funding_end_attr="funding_end",
- funding_amount_attr="grant_amount",
+ funding_entries=funding_entries,
)
+#Bund
+async def search_bund_projects_with_filters(
+ institutions_search_client: InstitutionsSearchClient,
+ executing_agency: str | None,
+ raw_oa_institution_id: str | None,
+ title: str | None,
+ keywords: list[str] | None,
+ funding_arts: list[str] | None,
+ topic_ids: list[str] | None,
+ filter_topic_ids: list[str] | None,
+ funding_start_years: list[str] | None,
+ funding_end_years: list[str] | None,
+ countries: list[str] | None,
+ page: int,
+ size: int,
+ sort_by: str = "title",
+ sort_direction: str = "asc",
+ fuzzy: bool = False,
+) -> BundProjectPage:
+ institution_aliases = []
+ if raw_oa_institution_id:
+ institution_aliases = (
+ await institutions_search_client.get_institution_aliases_by_oa_institution_id(
+ raw_oa_institution_id
+ )
+ )
+ if not institution_aliases:
+ return BundProjectPage(
+ elements=[],
+ page=page,
+ size=size,
+ total=0,
+ )
+ return await projects_search_client.search_bund_projects_with_filters(
+ oa_institution_aliases=institution_aliases,
+ raw_oa_institution_id=raw_oa_institution_id,
+ executing_agency=executing_agency,
+ funding_arts=funding_arts,
+ title=title,
+ keywords=keywords,
+ filter_topic_ids=filter_topic_ids,
+ topic_ids=topic_ids,
+ funding_start_years=funding_start_years,
+ funding_end_years=funding_end_years,
+ countries=countries,
+ page=page,
+ size=size,
+ sort_by=sort_by,
+ sort_direction=sort_direction,
+ fuzzy=fuzzy
+ )
+
def _calculate_funding_over_time(
project_type: ProjectType,
- projects: List[Any],
- funding_start_attr: str,
- funding_end_attr: str,
- funding_amount_attr: str,
+ funding_entries: list[Any],
) -> InstitutionFunderSummary:
- funding_per_year: Dict[int, float] = {}
+ """
+ funding_entries: list of (funding_start, funding_end, funding_amount)
+ tuples. Each date value may be a date/datetime, an ISO date string, or
+ None; amount may be numeric or None.
+ """
+ funding_per_year: dict[int, float] = {}
- for project in projects:
- funding_start = getattr(project, funding_start_attr)
- funding_end = getattr(project, funding_end_attr)
- funding_amount = getattr(project, funding_amount_attr)
+ for funding_start, funding_end, funding_amount in funding_entries:
if not funding_start or not funding_end or not funding_amount:
continue
+ if isinstance(funding_start, str):
+ funding_start = datetime.date.fromisoformat(funding_start[:10])
+ if isinstance(funding_end, str):
+ funding_end = datetime.date.fromisoformat(funding_end[:10])
+
if hasattr(funding_start, "date"):
funding_start = funding_start.date()
if hasattr(funding_end, "date"):
@@ -335,7 +508,7 @@ def _calculate_funding_over_time(
funding_per_year.get(year, 0.0) + proportional_share
)
- sorted_funding_per_year: Dict[int, float] = {}
+ sorted_funding_per_year: dict[int, float] = {}
if funding_per_year:
min_year = min(funding_per_year.keys())
@@ -380,50 +553,21 @@ async def get_single_bund_project(
async def get_single_eu_cordis_project(
project_id: str,
-) -> Optional[Union[Fp7ProjectDetails, H2020ProjectDetails, HEUProjectDetails]]:
+) -> Fp7ProjectDetails | H2020ProjectDetails | HEUProjectDetails | None:
logger.debug(f"Fetching single EU Cordis project for id={project_id}")
- project = await projects_search_client.get_eu_cordis_projects_by_id(project_id)
+ project = await get_enriched_cordis_project_by_id(project_id)
if not project:
return None
return project
-async def search_cordis_eu_projects_for_author_id(
- raw_oa_author_id: str,
-) -> CordisEuProjectPage:
+# EU CORDIS project search
- # Direct search not possible -> multi stage search
- # 1. Exisiting author has publications with DOIs
- # 2. CORDIS EU projects have associated publications with DOIs
- # 3. Matching DOIs of author publications with DOIs of CORDIS EU project publications -> projects with associated publications of the author
-
- dois = await get_publication_dois_of_author(raw_oa_author_id=raw_oa_author_id)
-
- logger.debug(f"Found DOIs for author_id={raw_oa_author_id}: {dois}")
-
- project_ids = await projects_search_client.get_cordis_eu_project_ids_by_dois(dois=dois)
-
- logger.debug(
- f"Found project IDs {project_ids} for author_id={raw_oa_author_id} and dois={dois}"
- )
-
- funding_project_page = await projects_search_client.get_cordis_eu_projects_by_project_ids(
- project_ids=project_ids
- )
-
- return funding_project_page
-
-
-
-################
-from inse.projects.eu_cordis_projects_client import search_eu_cordis_projects
-from inse.projects.model import EuCordisProjectType, EuCordisProjectSearchPage
-from inse.works.logic import get_publication_dois_of_author
async def _get_eu_project_ids_for_openalex_authors(
- author_ids: List[str],
-) -> Optional[List[str]]:
+ author_ids: list[str],
+) -> list[str] | None:
"""
Resolves OpenAlex authors to CORDIS EU project IDs via publication DOIs.
@@ -434,7 +578,7 @@ async def _get_eu_project_ids_for_openalex_authors(
if not author_ids:
return None
- project_sets: List[Set[str]] = []
+ project_sets: list[set[str]] = []
for author_id in author_ids:
dois = await get_publication_dois_of_author(raw_oa_author_id=author_id)
@@ -456,30 +600,62 @@ async def _get_eu_project_ids_for_openalex_authors(
return list(set.intersection(*project_sets))
-async def search_eu_cordis_projects_summary_impl(
+async def search_eu_cordis_projects(
page: int,
size: int,
- project_types: Optional[List[EuCordisProjectType]] = None,
- author_id: Optional[str] = None,
- author_ids: Optional[List[str]] = None,
- organization_ids: Optional[List[str]] = None,
- organization_names: Optional[List[str]] = None,
- keywords: Optional[List[str]] = None,
- topic_ids: Optional[List[str]] = None,
- filter_topic_ids: Optional[List[str]] = None,
- title: Optional[str] = None,
- funding_start_years: Optional[List[str]] = None,
- funding_end_years: Optional[List[str]] = None,
- countries: Optional[List[str]] = None,
- framework_programmes: Optional[List[str]] = None,
- funding_schemes: Optional[List[str]] = None,
- statuses: Optional[List[str]] = None,
+ project_types: list[EuCordisProjectType] | None = None,
+ raw_oa_institution_id: str | None = None,
+ institutions_search_client: InstitutionsSearchClient | None = None,
+ author_id: str | None = None,
+ author_ids: list[str] | None = None,
+ organization_ids: list[str] | None = None,
+ organization_names: list[str] | None = None,
+ keywords: list[str] | None = None,
+ topic_ids: list[str] | None = None,
+ filter_topic_ids: list[str] | None = None,
+ title: str | None = None,
+ funding_start_years: list[str] | None = None,
+ funding_end_years: list[str] | None = None,
+ countries: list[str] | None = None,
+ framework_programmes: list[str] | None = None,
+ funding_schemes: list[str] | None = None,
+ statuses: list[str] | None = None,
sort_by: str = "title",
sort_direction: str = "asc",
fuzzy: bool = False,
) -> EuCordisProjectSearchPage:
-
- all_author_ids: List[str] = []
+ """Single entry point for EU CORDIS project search.
+
+ Institution search: pass raw_oa_institution_id (and institutions_search_client
+ to resolve it to name aliases) - equivalent to what used to be a separate
+ "institution projects" endpoint, now just another organization_names source.
+
+ Author search: pass author_id/author_ids (OpenAlex author ids). Multiple
+ authors use AND semantics - a project must be linked to publications from
+ every selected author.
+
+ All other filters (organization id/name, topic, framework programme,
+ funding scheme, status, funding years, country) are ANDed together as in
+ eu_cordis_projects_client.search_eu_cordis_projects.
+ """
+ resolved_organization_names: list[str] = list(organization_names or [])
+
+ if raw_oa_institution_id:
+ if institutions_search_client is None:
+ raise ValueError(
+ "institutions_search_client must be provided when raw_oa_institution_id is set"
+ )
+ institution_aliases = (
+ await institutions_search_client.get_institution_aliases_by_oa_institution_id(
+ raw_oa_institution_id
+ )
+ )
+ logger.debug(
+ f"Found institution aliases for institution_id={raw_oa_institution_id}: {institution_aliases}"
+ )
+ resolved_organization_names.extend(institution_aliases)
+
+ all_author_ids: list[str] = []
if author_id:
all_author_ids.append(author_id)
@@ -487,13 +663,12 @@ async def search_eu_cordis_projects_summary_impl(
author_project_ids = await _get_eu_project_ids_for_openalex_authors(
author_ids=all_author_ids
)
-
- return await search_eu_cordis_projects(
+ return await _search_eu_cordis_projects_es(
page=page,
size=size,
project_types=project_types,
organization_ids=organization_ids,
- organization_names=organization_names,
+ organization_names=resolved_organization_names or None,
author_project_ids=author_project_ids,
keywords=keywords,
topic_ids=topic_ids,
diff --git a/service/src/main/inse/projects/test_eu_cordis_search_client.py b/service/src/main/inse/projects/test_eu_cordis_search_client.py
index b9bc7aa1..342f383b 100644
--- a/service/src/main/inse/projects/test_eu_cordis_search_client.py
+++ b/service/src/main/inse/projects/test_eu_cordis_search_client.py
@@ -1,6 +1,7 @@
import pytest
from inse.projects import eu_cordis_projects_client as eu_cordis_search_client
+
@pytest.mark.anyio
async def test_search_eu_cordis_projects_by_title():
"""Test searching EU CORDIS projects by title."""
diff --git a/service/src/main/inse/projects/test_projects_dfg.py b/service/src/main/inse/projects/test_projects_dfg.py
index 801859e6..f9eb82b9 100644
--- a/service/src/main/inse/projects/test_projects_dfg.py
+++ b/service/src/main/inse/projects/test_projects_dfg.py
@@ -1,13 +1,14 @@
import pytest
from inse.projects import projects_search_client
+
@pytest.mark.anyio
async def test_search_dfg_projects():
# Test search with name
res = await projects_search_client.search_dfg_projects(
page=0,
size=5,
- names=["Wolfgang Ahrens"],
+ names=["Bovensiepen"],
)
assert res is not None
assert res.total > 0
@@ -15,23 +16,19 @@ async def test_search_dfg_projects():
for element in res.elements:
assert element.id is not None
assert any(
- all(part.lower() in name.lower() for part in "Wolfgang Ahrens".split())
+ all(part.lower() in name.lower() for part in ["Bovensiepen"])
for name in element.names
)
@pytest.mark.anyio
async def test_get_dfg_project_by_id():
# Get by ID of the project we found or a known one
- known_id = "164008977"
+ known_id = 164008977
project = await projects_search_client.get_dfg_project_by_id(known_id)
assert project is not None
assert project.id == known_id
- assert project.title is not None
+ assert project.title_de is not None
assert any(
- all(part.lower() in person.lower() for part in "Wolfgang Ahrens".split())
- for person in project.associated_persons
- )
- assert any(
- "Leibniz" in inst
- for inst in project.institutions
+ all(part.lower() in person.full_name.lower() for part in ["Wolfgang", "Ahrens"])
+ for person in project.persons
)
diff --git a/service/src/main/inse/ranking/logic.py b/service/src/main/inse/ranking/logic.py
index dc842f4c..f37df621 100644
--- a/service/src/main/inse/ranking/logic.py
+++ b/service/src/main/inse/ranking/logic.py
@@ -1,21 +1,19 @@
-#!/usr/bin/env python
-# -*- coding: utf-8 -*-
+
import asyncio
import logging
from dataclasses import dataclass
from time import time
-from typing import Any, List, Optional
+from typing import Any
import pandas as pd
from inse.authors.institution_membership_query import (
- current_affiliation_year_cutoff,
+ build_active_institution_membership_query,
)
from inse.company_connections.logic import get_company_counts_by_names
from inse.integrations import elasticsearch
from inse.model import ESCluster
-from inse.persons.query_builder import build_author_filter_clauses
from .. import config
from .model import (
@@ -45,22 +43,12 @@ CANDIDATE_POOL_SIZE = 10000
INSTITUTION_AUTHOR_LIMIT = 20000
-async def _get_author_ids_from_institution(institution_id: str) -> List[str]:
+async def _get_author_ids_from_institution(institution_id: str) -> list[str]:
"""Returns the IDs of active authors of the given institution.
- Uses the same author selection as the persons search endpoint, but scrolls
- over the result set instead of paginating it.
+ Uses the shared active-membership query and scrolls over the result set.
"""
- query = {
- "bool": {
- "filter": build_author_filter_clauses(
- institution_id=institution_id,
- year_filter_enabled=True,
- filter_mode="from",
- filter_year=current_affiliation_year_cutoff(),
- ),
- },
- }
+ query = build_active_institution_membership_query(institution_id)
author_ids = []
async for hit in elasticsearch.scan(
@@ -122,7 +110,7 @@ def _keyword_clause(value: str, config: MatchConfig = _KEYWORD_MATCH) -> dict:
def _build_keyword_query(
- keywords: List[str],
+ keywords: list[str],
operator: KeywordOperator,
config: MatchConfig = _KEYWORD_MATCH,
) -> dict:
@@ -150,7 +138,7 @@ def _build_keyword_query(
}
-def _author_filter(author_ids: List[str]) -> dict:
+def _author_filter(author_ids: list[str]) -> dict:
return {
"nested": {
@@ -163,11 +151,11 @@ def _author_filter(author_ids: List[str]) -> dict:
def _topic_stats_query(
- author_ids: List[str],
- keywords: List[str],
+ author_ids: list[str],
+ keywords: list[str],
operator: KeywordOperator,
- publication_types: List[PublicationType],
- timespan: Optional[Timespan],
+ publication_types: list[PublicationType],
+ timespan: Timespan | None,
config: MatchConfig = _KEYWORD_MATCH,
) -> dict:
"""Builds a single query with all stats for Section 1"""
@@ -339,7 +327,7 @@ def _topic_stats_query(
}
-def _max_h_index(citation_counts_desc: List[int]) -> int:
+def _max_h_index(citation_counts_desc: list[int]) -> int:
"""The largest h such that h works have at least h citations each.
Expects the counts sorted in descending order.
@@ -354,13 +342,13 @@ def _max_h_index(citation_counts_desc: List[int]) -> int:
async def topic_stats_for_authors(
- author_ids: List[str],
- keywords: List[str],
+ author_ids: list[str],
+ keywords: list[str],
operator: KeywordOperator,
- publication_types: List[PublicationType],
- timespan: Optional[Timespan],
+ publication_types: list[PublicationType],
+ timespan: Timespan | None,
filter_type: FilterType = FilterType.KEYWORD,
-) -> List[AuthorTopicStats]:
+) -> list[AuthorTopicStats]:
if not author_ids:
return []
@@ -437,11 +425,11 @@ async def topic_stats_for_authors(
def _topic_profile_query(
- author_ids: List[str],
- keywords: List[str],
+ author_ids: list[str],
+ keywords: list[str],
operator: KeywordOperator,
- publication_types: List[PublicationType],
- timespan: Optional[Timespan],
+ publication_types: list[PublicationType],
+ timespan: Timespan | None,
config: MatchConfig = _KEYWORD_MATCH,
) -> dict:
"""Builds the Section 3 query"""
@@ -568,13 +556,13 @@ def _topic_profile_query(
async def topic_profile_for_authors(
- author_ids: List[str],
- keywords: List[str],
+ author_ids: list[str],
+ keywords: list[str],
operator: KeywordOperator,
- publication_types: List[PublicationType],
- timespan: Optional[Timespan],
+ publication_types: list[PublicationType],
+ timespan: Timespan | None,
filter_type: FilterType = FilterType.KEYWORD,
-) -> List[AuthorTopicProfile]:
+) -> list[AuthorTopicProfile]:
if not author_ids:
return []
@@ -650,7 +638,7 @@ async def topic_profile_for_authors(
return results
-async def _get_display_names_by_ids(author_ids: List[str]) -> dict:
+async def _get_display_names_by_ids(author_ids: list[str]) -> dict:
if not author_ids:
return {}
@@ -677,9 +665,9 @@ async def _get_display_names_by_ids(author_ids: List[str]) -> dict:
async def static_stats_for_authors(
- author_ids: List[str],
+ author_ids: list[str],
company_status: CompanyStatusFilter = CompanyStatusFilter.ALL,
-) -> List[AuthorStaticStats]:
+) -> list[AuthorStaticStats]:
"""Section 2: per author, keyword-independent stats (companies, news, patents).
Companies and news are matched by exact display name, patents by author id.
"""
@@ -713,7 +701,7 @@ async def static_stats_for_authors(
return results
-def _publication_type_filter(publication_types: List[PublicationType]) -> dict:
+def _publication_type_filter(publication_types: list[PublicationType]) -> dict:
"""Keeps only works whose type is one of the given publication types."""
type_values = []
for publication_type in publication_types:
@@ -734,11 +722,11 @@ def _timespan_filter(timespan: Timespan) -> dict:
def _build_query(
- keywords: List[str],
+ keywords: list[str],
operator: KeywordOperator,
- author_ids: List[str],
- publication_types: List[PublicationType],
- timespan: Optional[Timespan],
+ author_ids: list[str],
+ publication_types: list[PublicationType],
+ timespan: Timespan | None,
config: MatchConfig = _KEYWORD_MATCH,
) -> dict:
"""Builds the Elasticsearch query that returns the raw stats per author."""
@@ -848,7 +836,7 @@ def _min_max_normalize(values: pd.Series) -> pd.Series:
return (values - minimum) / (maximum - minimum)
-def _apply_scores(authors: List[RankedAuthor], weights: RankingWeights) -> None:
+def _apply_scores(authors: list[RankedAuthor], weights: RankingWeights) -> None:
"""Normalizes works, citations, company connections and news to [0, 1] and sets each author's weighted score."""
if not authors:
return
@@ -906,7 +894,7 @@ def _author_score(author: RankedAuthor) -> float:
async def _enrich_with_company_counts(
- authors: List[RankedAuthor],
+ authors: list[RankedAuthor],
company_status: CompanyStatusFilter = CompanyStatusFilter.ALL,
) -> None:
"""Sets each author's company_count from a single bulk Handelsregister query.
@@ -925,7 +913,7 @@ async def _enrich_with_company_counts(
author.companies_count = counts.get(author.display_name, 0)
-async def _get_news_counts_by_names(names: List[str]) -> dict:
+async def _get_news_counts_by_names(names: list[str]) -> dict:
"""Returns a mapping ``display_name -> news count`` for the given author names.
"""
unique_names = sorted({name for name in names if name})
@@ -963,7 +951,7 @@ async def _get_news_counts_by_names(names: List[str]) -> dict:
return {bucket.get("key", ""): bucket.get("doc_count", 0) for bucket in buckets}
-async def _enrich_with_news_counts(authors: List[RankedAuthor]) -> None:
+async def _enrich_with_news_counts(authors: list[RankedAuthor]) -> None:
"""Sets each author's news_count from a single bulk news query.
Matching is by exact display name, so authors without a name match keep 0.
"""
@@ -978,7 +966,7 @@ async def _enrich_with_news_counts(authors: List[RankedAuthor]) -> None:
author.news_count = counts.get(author.display_name, 0)
-async def _get_patent_counts_by_author_ids(author_ids: List[str]) -> dict:
+async def _get_patent_counts_by_author_ids(author_ids: list[str]) -> dict:
short_to_full = {full.rsplit("/", 1)[-1]: full for full in author_ids}
@@ -1025,7 +1013,7 @@ async def _get_patent_counts_by_author_ids(author_ids: List[str]) -> dict:
return counts
-async def _enrich_with_patent_counts(authors: List[RankedAuthor]) -> None:
+async def _enrich_with_patent_counts(authors: list[RankedAuthor]) -> None:
if not authors:
return
@@ -1038,9 +1026,9 @@ async def _enrich_with_patent_counts(authors: List[RankedAuthor]) -> None:
async def _filter_author_ids_by_career_stage(
- author_ids: List[str],
- career_stages: List[CareerStage],
-) -> List[str]:
+ author_ids: list[str],
+ career_stages: list[CareerStage],
+) -> list[str]:
"""Filters the given author ids down to those whose career stage is in the list."""
if not author_ids or not career_stages:
@@ -1096,16 +1084,16 @@ async def _filter_author_ids_by_career_stage(
async def rank_authors_by_keywords(
- keywords: List[str],
+ keywords: list[str],
operator: KeywordOperator,
institution_id: str,
weights: RankingWeights,
- career_stages: List[CareerStage],
- publication_types: List[PublicationType],
- timespan: Optional[Timespan],
+ career_stages: list[CareerStage],
+ publication_types: list[PublicationType],
+ timespan: Timespan | None,
company_status: CompanyStatusFilter = CompanyStatusFilter.ALL,
filter_type: FilterType = FilterType.KEYWORD,
-) -> List[RankedAuthor]:
+) -> list[RankedAuthor]:
"""Ranks the university's authors by a weighted score over works and citations.
When career_stages is not empty, the ranked list is filtered down to
diff --git a/service/src/main/inse/ranking/model.py b/service/src/main/inse/ranking/model.py
index b6557415..f5955fc7 100644
--- a/service/src/main/inse/ranking/model.py
+++ b/service/src/main/inse/ranking/model.py
@@ -1,10 +1,8 @@
-#!/usr/bin/env python
-# -*- coding: utf-8 -*-
+
"""
Data models for author ranking.
"""
from enum import StrEnum
-from typing import List, Optional
from pydantic import BaseModel, Field, field_validator, model_validator
@@ -101,7 +99,7 @@ class RankingWeights(BaseModel):
class KeywordToAuthorRequest(BaseModel):
- keywords: List[str] = Field(
+ keywords: list[str] = Field(
min_length=1,
description="One or more keywords to rank the author by.",
)
@@ -117,15 +115,15 @@ class KeywordToAuthorRequest(BaseModel):
weights: RankingWeights = Field(
description="Weights for the ranking metrics. Required.",
)
- career_stages: List[CareerStage] = Field(
+ career_stages: list[CareerStage] = Field(
default_factory=list,
description="Optional filter: only keep authors in one of these career stages. Empty = no filter.",
)
- publication_types: List[PublicationType] = Field(
+ publication_types: list[PublicationType] = Field(
default_factory=list,
description="Optional filter: only count works of these publication types. Empty = no filter.",
)
- timespan: Optional[Timespan] = Field(
+ timespan: Timespan | None = Field(
default=None,
description="Optional filter: only count works whose publication_year is within [from, to].",
)
@@ -144,11 +142,11 @@ class KeywordToAuthorRequest(BaseModel):
class SelectedAuthorsRequest(BaseModel):
- author_ids: List[str] = Field(
+ author_ids: list[str] = Field(
min_length=1,
description="OpenAlex IDs of the authors to rank.",
)
- keywords: List[str] = Field(
+ keywords: list[str] = Field(
min_length=1,
description="One or more keywords defining the topic.",
)
@@ -161,11 +159,11 @@ class SelectedAuthorsRequest(BaseModel):
description="What the 'keywords' values match against: 'keyword' (OpenAlex "
"keyword display names) or 'topic' (OpenAlex topic ids). Defaults to 'keyword'.",
)
- publication_types: List[PublicationType] = Field(
+ publication_types: list[PublicationType] = Field(
default_factory=list,
description="Optional filter: only count works of these publication types. Empty = no filter.",
)
- timespan: Optional[Timespan] = Field(
+ timespan: Timespan | None = Field(
default=None,
description="Optional filter: only count works whose publication_year is within [from, to].",
)
@@ -186,7 +184,7 @@ class SelectedAuthorsRequest(BaseModel):
class AuthorMetricsRequest(BaseModel):
- author_ids: List[str] = Field(
+ author_ids: list[str] = Field(
min_length=1,
description="OpenAlex IDs of the authors.",
)
@@ -248,11 +246,11 @@ class AuthorTopicStats(BaseModel):
description="Number of the author's topic works with at least one co-author "
"institution of type 'company'.",
)
- first_year: Optional[int] = Field(
+ first_year: int | None = Field(
default=None,
description="Earliest publication year among the author's topic works.",
)
- last_year: Optional[int] = Field(
+ last_year: int | None = Field(
default=None,
description="Latest publication year among the author's topic works.",
)
@@ -332,7 +330,7 @@ class AuthorTopicProfile(BaseModel):
distinct_fields: int = Field(
description="Number of distinct primary-topic fields across all works.",
)
- subfields: List[SubfieldShare] = Field(
+ subfields: list[SubfieldShare] = Field(
default_factory=list,
description="Top subfields over all works, by primary topic, largest first.",
)
diff --git a/service/src/main/inse/ranking/orientation_profile_logic.py b/service/src/main/inse/ranking/orientation_profile_logic.py
new file mode 100644
index 00000000..1a7b9558
--- /dev/null
+++ b/service/src/main/inse/ranking/orientation_profile_logic.py
@@ -0,0 +1,240 @@
+from decimal import ROUND_HALF_UP, Decimal
+from typing import Any
+
+from inse.authors.v2.service import authors_currently_belong_to_institution
+from inse.integrations import elasticsearch
+from inse.model import ESIndex
+from inse.works.v2.model import WorkPrimaryCategory
+
+from .model import PublicationType, Timespan
+from .orientation_profile_model import (
+ AuthorOrientationProfile,
+ AuthorOrientationProfileStatus,
+)
+
+_SCORE_FIELD = "classification.applied_orientation_score"
+_PRIMARY_CATEGORY_VALUES = {
+ category.value for category in WorkPrimaryCategory
+}
+
+
+def _author_filter(author_ids: list[str]) -> dict[str, Any]:
+ return {
+ "nested": {
+ "path": "authors",
+ "query": {"terms": {"authors.id": author_ids}},
+ }
+ }
+
+
+def _orientation_profile_query(
+ author_ids: list[str],
+ publication_types: list[PublicationType],
+ timespan: Timespan | None,
+) -> dict[str, Any]:
+ filters: list[dict[str, Any]] = [_author_filter(author_ids)]
+
+ if publication_types:
+ filters.append(
+ {
+ "terms": {
+ "publication_type": [
+ publication_type.value
+ for publication_type in publication_types
+ ]
+ }
+ }
+ )
+
+ if timespan:
+ filters.append(
+ {
+ "range": {
+ "publication_year": {
+ "gte": timespan.from_year,
+ "lte": timespan.to_year,
+ }
+ }
+ }
+ )
+
+ return {
+ "size": 0,
+ "query": {"bool": {"filter": filters}},
+ "aggs": {
+ "authors": {
+ "nested": {"path": "authors"},
+ "aggs": {
+ "selected": {
+ "filter": {"terms": {"authors.id": author_ids}},
+ "aggs": {
+ "by_author": {
+ "terms": {
+ "field": "authors.id",
+ "size": len(author_ids),
+ "execution_hint": "map",
+ },
+ "aggs": {
+ "works": {
+ "reverse_nested": {},
+ "aggs": {
+ "classified": {
+ "filter": {
+ "exists": {
+ "field": (
+ "classification."
+ "primary_category"
+ )
+ }
+ },
+ "aggs": {
+ "by_primary_category": {
+ "terms": {
+ "field": (
+ "classification."
+ "primary_category"
+ ),
+ "size": len(
+ WorkPrimaryCategory
+ ),
+ }
+ }
+ },
+ },
+ "scored": {
+ "filter": {
+ "exists": {
+ "field": _SCORE_FIELD
+ }
+ },
+ "aggs": {
+ "average_score": {
+ "avg": {
+ "field": _SCORE_FIELD
+ }
+ }
+ },
+ },
+ },
+ }
+ },
+ }
+ },
+ }
+ },
+ }
+ },
+ }
+
+
+def _rounded_score(value: float) -> int:
+ return int(Decimal(str(value)).quantize(Decimal(1), rounding=ROUND_HALF_UP))
+
+
+def _profile_from_bucket(
+ author_id: str,
+ bucket: dict[str, Any] | None,
+) -> AuthorOrientationProfile:
+ works = (bucket or {}).get("works", {})
+ classified_count = works.get("classified", {}).get("doc_count", 0)
+ category_buckets = (
+ works.get("classified", {})
+ .get("by_primary_category", {})
+ .get("buckets", [])
+ )
+ category_counts = {
+ WorkPrimaryCategory(category_bucket["key"]): category_bucket["doc_count"]
+ for category_bucket in category_buckets
+ if category_bucket.get("key") in _PRIMARY_CATEGORY_VALUES
+ }
+ scored = works.get("scored", {})
+ scored_count = scored.get("doc_count", 0)
+ average_score = scored.get("average_score", {}).get("value")
+
+ if classified_count == 0:
+ status = AuthorOrientationProfileStatus.NO_CLASSIFIED_PUBLICATIONS
+ elif scored_count == 0 or average_score is None:
+ status = AuthorOrientationProfileStatus.NO_ORIENTATION_SCORE
+ else:
+ score = _rounded_score(average_score)
+ return AuthorOrientationProfile(
+ author_id=author_id,
+ status=AuthorOrientationProfileStatus.AVAILABLE,
+ orientation_score=score,
+ primary_category_counts=category_counts,
+ classified_work_count=classified_count,
+ scored_work_count=scored_count,
+ )
+
+ return AuthorOrientationProfile(
+ author_id=author_id,
+ status=status,
+ primary_category_counts=category_counts,
+ classified_work_count=classified_count,
+ scored_work_count=scored_count,
+ )
+
+
+async def orientation_profiles_for_authors(
+ author_ids: list[str],
+ institution_id: str | None,
+ publication_types: list[PublicationType],
+ timespan: Timespan | None,
+) -> list[AuthorOrientationProfile]:
+ """Return protected orientation profiles in the requested author order.
+
+ Institution membership is checked for all authors in one query. Only
+ matching active members are included in the work-classification
+ aggregation, so restricted classification data is never retrieved.
+ """
+
+ if not institution_id:
+ allowed_author_ids: set[str] = set()
+ else:
+ allowed_author_ids = await authors_currently_belong_to_institution(
+ author_ids,
+ institution_id,
+ )
+
+ restricted_profiles = {
+ author_id: AuthorOrientationProfile(
+ author_id=author_id,
+ status=AuthorOrientationProfileStatus.RESTRICTED,
+ )
+ for author_id in author_ids
+ if author_id not in allowed_author_ids
+ }
+
+ allowed_in_request_order = [
+ author_id for author_id in author_ids if author_id in allowed_author_ids
+ ]
+ profiles_by_id: dict[str, AuthorOrientationProfile] = restricted_profiles
+
+ if allowed_in_request_order:
+ response = await elasticsearch.search(
+ index=ESIndex.WORK_CLASSIFICATIONS,
+ body=_orientation_profile_query(
+ allowed_in_request_order,
+ publication_types,
+ timespan,
+ ),
+ )
+ buckets = (
+ response.get("aggregations", {})
+ .get("authors", {})
+ .get("selected", {})
+ .get("by_author", {})
+ .get("buckets", [])
+ )
+ buckets_by_author = {
+ bucket.get("key"): bucket
+ for bucket in buckets
+ if isinstance(bucket.get("key"), str)
+ }
+ for author_id in allowed_in_request_order:
+ profiles_by_id[author_id] = _profile_from_bucket(
+ author_id,
+ buckets_by_author.get(author_id),
+ )
+
+ return [profiles_by_id[author_id] for author_id in author_ids]
diff --git a/service/src/main/inse/ranking/orientation_profile_model.py b/service/src/main/inse/ranking/orientation_profile_model.py
new file mode 100644
index 00000000..fc87df06
--- /dev/null
+++ b/service/src/main/inse/ranking/orientation_profile_model.py
@@ -0,0 +1,78 @@
+from enum import StrEnum
+
+from pydantic import BaseModel, Field, field_validator
+
+from inse.works.v2.model import WorkPrimaryCategory
+
+from .model import PublicationType, Timespan
+
+
+class AuthorOrientationProfileStatus(StrEnum):
+ AVAILABLE = "available"
+ INSUFFICIENT_SCORED_PUBLICATIONS = "insufficient_scored_publications"
+ NO_CLASSIFIED_PUBLICATIONS = "no_classified_publications"
+ NO_ORIENTATION_SCORE = "no_orientation_score"
+ RESTRICTED = "restricted"
+
+
+class AuthorOrientationProfilesRequest(BaseModel):
+ """Filters used to compare the research orientation of selected authors."""
+
+ author_ids: list[str] = Field(
+ min_length=1,
+ max_length=4,
+ description="One to four unique OpenAlex author IDs.",
+ )
+ publication_types: list[PublicationType] = Field(
+ default_factory=list,
+ description="Optional publication-type filter. Empty means all types.",
+ )
+ timespan: Timespan | None = Field(
+ default=None,
+ description="Optional inclusive publication-year filter.",
+ )
+
+ @field_validator("author_ids")
+ @classmethod
+ def normalize_author_ids(cls, values: list[str]) -> list[str]:
+ normalized: list[str] = []
+ for value in values:
+ author_id = value.strip()
+ if not author_id:
+ raise ValueError("author IDs must not be empty")
+ if not author_id.startswith("https://openalex.org/"):
+ author_id = f"https://openalex.org/{author_id}"
+ if author_id in normalized:
+ raise ValueError("author IDs must be unique")
+ normalized.append(author_id)
+ return normalized
+
+
+class AuthorOrientationProfile(BaseModel):
+ """Aggregated research-orientation result for one selected author."""
+
+ author_id: str = Field(description="The full OpenAlex author ID.")
+ status: AuthorOrientationProfileStatus
+ orientation_score: int | None = Field(
+ default=None,
+ ge=0,
+ le=100,
+ description="Rounded mean score, available when at least one work has a score.",
+ )
+ primary_category_counts: dict[WorkPrimaryCategory, int] | None = Field(
+ default=None,
+ description=(
+ "Matching work counts grouped by primary category; hidden when "
+ "access is restricted."
+ ),
+ )
+ classified_work_count: int | None = Field(
+ default=None,
+ ge=0,
+ description="Matching classified works; hidden when access is restricted.",
+ )
+ scored_work_count: int | None = Field(
+ default=None,
+ ge=0,
+ description="Matching works with an orientation score; hidden when restricted.",
+ )
diff --git a/service/src/main/inse/ranking/router.py b/service/src/main/inse/ranking/router.py
index df0c227d..cb645d5a 100644
--- a/service/src/main/inse/ranking/router.py
+++ b/service/src/main/inse/ranking/router.py
@@ -1,11 +1,12 @@
import logging
-from typing import Annotated, List
+from typing import Annotated
from fastapi import APIRouter, HTTPException, status
from inse.auth.model import AccessTokenMetadata
from inse.auth.service import CurrentUserAccessTokenPayloadDep
from inse.tags import Tags
+
from . import logic
from .model import (
AuthorMetricsRequest,
@@ -16,6 +17,11 @@ from .model import (
RankedAuthor,
SelectedAuthorsRequest,
)
+from .orientation_profile_logic import orientation_profiles_for_authors
+from .orientation_profile_model import (
+ AuthorOrientationProfile,
+ AuthorOrientationProfilesRequest,
+)
logger = logging.getLogger(__name__)
@@ -25,7 +31,7 @@ router = APIRouter(
)
# Author ranking
-@router.post("/rank-author", response_model=List[RankedAuthor])
+@router.post("/rank-author", response_model=list[RankedAuthor])
async def rank_author(
request: KeywordToAuthorRequest,
access_token_metadata: Annotated[
@@ -63,7 +69,7 @@ async def rank_author(
)
# Compare authors table 1 (topic stats)
-@router.post("/topic-stats", response_model=List[AuthorTopicStats])
+@router.post("/topic-stats", response_model=list[AuthorTopicStats])
async def topic_stats(request: SelectedAuthorsRequest):
logger.info(
"topic-stats author_ids=%s keywords=%s operator=%s filter_type=%s publication_types=%s timespan=%s",
@@ -84,7 +90,7 @@ async def topic_stats(request: SelectedAuthorsRequest):
)
# Compare authors section 3 (topic profile over ALL works of each author)
-@router.post("/topic-profile", response_model=List[AuthorTopicProfile])
+@router.post("/topic-profile", response_model=list[AuthorTopicProfile])
async def topic_profile(request: SelectedAuthorsRequest):
logger.info(
"topic-profile author_ids=%s keywords=%s operator=%s filter_type=%s "
@@ -106,7 +112,7 @@ async def topic_profile(request: SelectedAuthorsRequest):
)
# Compare authors table 2 (author-level stats, keyword/time-independent)
-@router.post("/static-stats", response_model=List[AuthorStaticStats])
+@router.post("/static-stats", response_model=list[AuthorStaticStats])
async def static_stats(request: AuthorMetricsRequest):
logger.info(
"static-stats author_ids=%s company_status=%s",
@@ -117,3 +123,23 @@ async def static_stats(request: AuthorMetricsRequest):
request.author_ids,
request.company_status,
)
+
+
+@router.post(
+ "/orientation-profiles",
+ response_model=list[AuthorOrientationProfile],
+)
+async def orientation_profiles(
+ request: AuthorOrientationProfilesRequest,
+ access_token_metadata: Annotated[
+ AccessTokenMetadata, CurrentUserAccessTokenPayloadDep
+ ],
+):
+ """Compare orientation scores for active members of the account institution."""
+
+ return await orientation_profiles_for_authors(
+ author_ids=request.author_ids,
+ institution_id=access_token_metadata.effective_institution_id,
+ publication_types=request.publication_types,
+ timespan=request.timespan,
+ )
diff --git a/service/src/main/inse/router_prefixes.py b/service/src/main/inse/router_prefixes.py
new file mode 100644
index 00000000..24d682b0
--- /dev/null
+++ b/service/src/main/inse/router_prefixes.py
@@ -0,0 +1,10 @@
+from enum import StrEnum
+
+
+class RouterPrefixes(StrEnum):
+ """Router prefixes for different API endpoints."""
+
+ INSTITUTIONS_V2 = "/api/institutions/v2"
+ TOPICS_V2 = "/api/topics/v2"
+ AUTHORS_V2 = "/api/authors/v2"
+ WORKS_V2 = "/api/works/v2"
diff --git a/service/src/main/inse/service.py b/service/src/main/inse/service.py
index 4e4a6593..0702fe30 100644
--- a/service/src/main/inse/service.py
+++ b/service/src/main/inse/service.py
@@ -1,20 +1,18 @@
-#!/usr/bin/env python
-# -*- coding: utf-8 -*-
+
"""
This module contains the rest api of the
service.
"""
import logging
-from typing import Annotated, List
-from fastapi import Query
-from inse.config import get_settings
-from fastapi import APIRouter
+from typing import Annotated
+from fastapi import APIRouter, Query
+
+from inse.config import get_settings
from . import logic
-
logger = logging.getLogger(__name__)
### startup
@@ -57,7 +55,7 @@ def build_topic_cache(
)
def count_topic_hierarchy(
topic_names: Annotated[
- List[str],
+ list[str],
Query(
alias="topic",
description="Topic names (repeat parameter).",
diff --git a/service/src/main/inse/tags.py b/service/src/main/inse/tags.py
index 2e264875..c3bf0f89 100644
--- a/service/src/main/inse/tags.py
+++ b/service/src/main/inse/tags.py
@@ -23,3 +23,6 @@ class Tags(StrEnum):
DFG_INSTITUTIONS = "DFG Institutions"
DFG_PERSONS = "DFG Persons"
+ BACKGROUND_JOBS = "Background Jobs"
+
+ BUND_INSTITUTIONS = "BUND Institutions"
diff --git a/service/src/main/inse/test_service.py b/service/src/main/inse/test_service.py
index 30c00152..b9c6b742 100644
--- a/service/src/main/inse/test_service.py
+++ b/service/src/main/inse/test_service.py
@@ -1,8 +1,8 @@
+
from fastapi.testclient import TestClient
-from fastapi import HTTPException
+
from inse.main import app
-from . import model
-from unittest.mock import patch
+
client = TestClient(app)
URL_SERVICE_PREFIX="/inse-service"
diff --git a/service/src/main/inse/topics/__init__.py b/service/src/main/inse/topics/__init__.py
index 6909a227..4fca66e1 100644
--- a/service/src/main/inse/topics/__init__.py
+++ b/service/src/main/inse/topics/__init__.py
@@ -1,5 +1,4 @@
-#!/usr/bin/env python
-# -*- coding: utf-8 -*-
+
"""
OpenAlex topics module.
"""
diff --git a/service/src/main/inse/topics/logic.py b/service/src/main/inse/topics/logic.py
index cec2bfa6..a4e22667 100644
--- a/service/src/main/inse/topics/logic.py
+++ b/service/src/main/inse/topics/logic.py
@@ -1,28 +1,28 @@
-#!/usr/bin/env python
-# -*- coding: utf-8 -*-
+
"""
Business logic for OpenAlex topics.
"""
+import asyncio
import logging
from copy import deepcopy
from typing import Any
-import asyncio
+
from pydantic import ValidationError
from inse.exceptions import (
- UpstreamAPIException,
BadRequestException,
ElasticsearchException,
+ UpstreamAPIException,
)
-
+from inse.model import ESCluster, ESIndex
from inse.models.openalex.autocomplete_response import AutocompleteResponse
from inse.models.openalex.autocomplete_response_meta import AutocompleteResponseMeta
from inse.models.openalex.autocomplete_response_results_inner import (
AutocompleteResponseResultsInner,
)
from inse.models.openalex.topics_list_response import TopicsListResponse
-from inse.model import ESCluster, ESIndex
+
from .search_client import TopicsSearchClient
logger = logging.getLogger(__name__)
@@ -512,8 +512,8 @@ async def vector_search_topics_batch(
"""
Perform concurrent semantic/hybrid search for a list of keywords.
"""
- from inse.topics.model import KeywordsTopicsResponse, KeywordTopicMatch
from inse.models.openalex.topic import Topic
+ from inse.topics.model import KeywordsTopicsResponse, KeywordTopicMatch
if not keywords:
return KeywordsTopicsResponse(results=[])
diff --git a/service/src/main/inse/topics/model.py b/service/src/main/inse/topics/model.py
index e631f7da..c740fa4a 100644
--- a/service/src/main/inse/topics/model.py
+++ b/service/src/main/inse/topics/model.py
@@ -1,20 +1,20 @@
-#!/usr/bin/env python
-# -*- coding: utf-8 -*-
-from typing import List, Optional
+
+
from pydantic import BaseModel, Field
from inse.models.openalex.topic import Topic
+
# Vector search for Keyword list
class KeywordsTopicsRequest(BaseModel):
- keywords: List[str] = Field(..., description="List of keywords/sentences to query by similarity.")
+ keywords: list[str] = Field(..., description="List of keywords/sentences to query by similarity.")
class KeywordTopicMatch(BaseModel):
keyword: str
- topic: Optional[Topic] = Field(None, description="The top matching topic from OpenAlex, or None if no match is found.")
+ topic: Topic | None = Field(None, description="The top matching topic from OpenAlex, or None if no match is found.")
class KeywordsTopicsResponse(BaseModel):
- results: List[KeywordTopicMatch] = Field(..., description="Top matching topics for each keyword in the requested list.")
+ results: list[KeywordTopicMatch] = Field(..., description="Top matching topics for each keyword in the requested list.")
diff --git a/service/src/main/inse/topics/search_client.py b/service/src/main/inse/topics/search_client.py
index b6ec024a..71024fd0 100644
--- a/service/src/main/inse/topics/search_client.py
+++ b/service/src/main/inse/topics/search_client.py
@@ -1,5 +1,4 @@
-#!/usr/bin/env python
-# -*- coding: utf-8 -*-
+
"""
Elasticsearch search client for OpenAlex topics.
"""
@@ -9,10 +8,8 @@ import base64
import json
from typing import Any
-from inse.model import ESCluster, ESIndex
-
-from .. import config
from inse.integrations.elasticsearch import search as elasticsearch_search
+from inse.model import ESCluster, ESIndex
class TopicsSearchClient:
diff --git a/service/src/main/inse/topics/service.py b/service/src/main/inse/topics/service.py
index 2555f52d..06c8cb55 100644
--- a/service/src/main/inse/topics/service.py
+++ b/service/src/main/inse/topics/service.py
@@ -1,20 +1,18 @@
-#!/usr/bin/env python
-# -*- coding: utf-8 -*-
+
"""
REST API for OpenAlex topics.
"""
from typing import Annotated
-from fastapi import APIRouter
-from fastapi import Query
+from fastapi import APIRouter, Query
from inse.models.openalex.autocomplete_response import AutocompleteResponse
from inse.models.openalex.topics_list_response import TopicsListResponse
from inse.tags import Tags
+
from . import logic
from .model import KeywordsTopicsRequest, KeywordsTopicsResponse
-
router = APIRouter(prefix="/api/topics", tags=[Tags.TOPICS])
diff --git a/service/src/main/inse/topics/v2/model.py b/service/src/main/inse/topics/v2/model.py
index 92931d63..7c005cb9 100644
--- a/service/src/main/inse/topics/v2/model.py
+++ b/service/src/main/inse/topics/v2/model.py
@@ -1,6 +1,14 @@
+from enum import StrEnum
+
from inse.model import Page
from inse.models.openalex.topic import Topic
+class TopicSortBy(StrEnum):
+ DISPLAY_NAME = "display_name"
+ WORKS_COUNT = "works_count"
+ CITED_BY_COUNT = "cited_by_count"
+
+
class TopicPageV2(Page[Topic]):
pass
diff --git a/service/src/main/inse/topics/v2/router.py b/service/src/main/inse/topics/v2/router.py
index fa571324..f382d5a0 100644
--- a/service/src/main/inse/topics/v2/router.py
+++ b/service/src/main/inse/topics/v2/router.py
@@ -1,20 +1,81 @@
import logging
from typing import Annotated
-from fastapi import APIRouter, Query
-
-from inse.tags import Tags
-
import inse.topics.v2.service as topics_service
-from inse.topics.v2.model import TopicPageV2
-
-
-TOPICS_V2_PREFIX = "/api/v2/topics"
+from fastapi import APIRouter, Path, Query
+from inse.model import SortDirection
+from inse.models.openalex.topic import Topic
+from inse.router_prefixes import RouterPrefixes
+from inse.tags import Tags
+from inse.topics.v2.model import TopicPageV2, TopicSortBy
logger = logging.getLogger(__name__)
-router = APIRouter(prefix=TOPICS_V2_PREFIX, tags=[Tags.TOPICS_V2])
+router = APIRouter(prefix=RouterPrefixes.TOPICS_V2, tags=[Tags.TOPICS_V2])
+
+
+@router.get(
+ "/search",
+ operation_id="searchTopics",
+ summary="Searches for topics based on the provided criteria.",
+)
+async def search_topics(
+ search_term: Annotated[
+ str | None,
+ Query(description="The term to search for in topic display names."),
+ ] = None,
+ page: Annotated[
+ int,
+ Query(
+ description="The page number to retrieve.",
+ ge=0,
+ ),
+ ] = 0,
+ size: Annotated[
+ int,
+ Query(
+ description="The number of topics to retrieve per page.",
+ ge=1,
+ le=100,
+ ),
+ ] = 10,
+ sort_by: Annotated[
+ TopicSortBy,
+ Query(
+ description="The field to sort by.",
+ ),
+ ] = TopicSortBy.WORKS_COUNT,
+ sort_direction: Annotated[
+ SortDirection,
+ Query(
+ description="The direction to sort.",
+ ),
+ ] = SortDirection.DESCENDING,
+) -> TopicPageV2:
+ return await topics_service.search_topics(
+ search_term=search_term,
+ page=page,
+ size=size,
+ sort_by=sort_by,
+ sort_direction=sort_direction,
+ )
+
+
+@router.get(
+ "/single/{raw_oa_topic_id}",
+ operation_id="getTopicById",
+ summary="Returns a topic for a given topic ID.",
+)
+async def get_topic_by_id(
+ raw_oa_topic_id: Annotated[
+ str,
+ Path(description="The ID of the topic to retrieve."),
+ ],
+) -> Topic:
+ return await topics_service.get_topic_by_id_or_raise(
+ raw_oa_topic_id=raw_oa_topic_id
+ )
@router.get(
@@ -24,9 +85,9 @@ router = APIRouter(prefix=TOPICS_V2_PREFIX, tags=[Tags.TOPICS_V2])
)
async def get_topics_by_ids(
topic_ids: Annotated[
- list[str],
+ list[str] | None,
Query(description="A list of topic IDs to retrieve."),
- ] = [],
+ ] = None,
) -> TopicPageV2:
return await topics_service.get_topics_by_ids(topic_ids=topic_ids or [])
diff --git a/service/src/main/inse/topics/v2/service.py b/service/src/main/inse/topics/v2/service.py
index ab1715d5..b73379d8 100644
--- a/service/src/main/inse/topics/v2/service.py
+++ b/service/src/main/inse/topics/v2/service.py
@@ -1,18 +1,17 @@
-from typing import Dict, List, Optional
-
+from inse.exceptions import NotFoundException
from inse.integrations import elasticsearch
-from inse.model import ESIndex
+from inse.model import ESIndex, SortDirection
from inse.models.openalex.topic import Topic
-from inse.topics.v2.model import TopicPageV2
+from inse.topics.v2.model import TopicPageV2, TopicSortBy
-async def search_topics(
+async def _search_topics(
page: int = 0,
size: int = 10,
- query: Optional[Dict] = None,
- source: Optional[List[str]] = None,
- sort: Optional[List[Dict]] = None,
- body: Optional[Dict] = None,
+ query: dict | None = None,
+ source: list[str] | None = None,
+ sort: list[dict] | None = None,
+ body: dict | None = None,
) -> TopicPageV2:
"""Searches for topics based on the provided criteria.
@@ -39,11 +38,80 @@ async def search_topics(
hits_block = response.get("hits", {})
hits = hits_block.get("hits", [])
- topics: List[Topic] = []
+ total_hits = hits_block.get("total", {}).get("value", 0)
+ topics: list[Topic] = []
for hit in hits:
_source = hit.get("_source", {})
topics.append(Topic.from_dict(_source)) # type: ignore
- return TopicPageV2(elements=topics, total=len(topics), page=page, size=size)
+ return TopicPageV2(elements=topics, total=total_hits, page=page, size=size)
+
+
+async def search_topics(
+ search_term: str | None = None,
+ page: int = 0,
+ size: int = 10,
+ sort_by: TopicSortBy = TopicSortBy.WORKS_COUNT,
+ sort_direction: SortDirection = SortDirection.DESCENDING,
+) -> TopicPageV2:
+ """Searches for topics based on a search term.
+
+ Args:
+ search_term (str | None): The term to search for in topic display names. Defaults to None.
+ page (int, optional): The page number to retrieve. Defaults to 0.
+ size (int, optional): The number of topics to retrieve per page. Defaults to 10.
+ sort_by (TopicSortBy, optional): The field to sort by. Defaults to TopicSortBy.WORKS_COUNT.
+ sort_direction (SortDirection, optional): The direction to sort. Defaults to SortDirection.DESCENDING.
+
+ Returns:
+ TopicPageV2: A page of topics matching the search term.
+ """
+
+ sort = None
+ if sort_by in [TopicSortBy.DISPLAY_NAME]:
+ sort = [{f"{sort_by.value}.keyword": {"order": sort_direction.value}}]
+ else:
+ sort = [{sort_by.value: {"order": sort_direction.value}}]
+
+ query = None
+ if search_term:
+ search_terms = [
+ term.strip() for term in search_term.split(",") if term.strip()
+ ]
+ if len(search_terms) == 1:
+ query = {
+ "match_phrase_prefix": {"display_name": search_terms[0]}
+ }
+ elif search_terms:
+ query = {
+ "bool": {
+ "should": [
+ {
+ "match_phrase_prefix": {
+ "display_name": search_term
+ }
+ }
+ for search_term in search_terms
+ ],
+ "minimum_should_match": 1,
+ }
+ }
+
+ return await _search_topics(
+ page=page,
+ size=size,
+ query=query,
+ source=[
+ "id",
+ "display_name",
+ "description",
+ "subfield",
+ "field",
+ "domain",
+ "works_count",
+ "cited_by_count",
+ ],
+ sort=sort,
+ )
async def autocomplete_topics_for_selector(query: str) -> TopicPageV2:
@@ -55,7 +123,7 @@ async def autocomplete_topics_for_selector(query: str) -> TopicPageV2:
Returns:
TopicPageV2: A page of topics matching the autocomplete criteria.
"""
- return await search_topics(
+ return await _search_topics(
page=0,
size=10,
query={"match_phrase_prefix": {"display_name": query}},
@@ -69,7 +137,54 @@ async def autocomplete_topics_for_selector(query: str) -> TopicPageV2:
)
-async def get_topics_by_ids(topic_ids: List[str]) -> TopicPageV2:
+async def get_topic_by_id(raw_oa_topic_id: str) -> Topic | None:
+ """Retrieves a topic based on its ID.
+
+ Args:
+ raw_oa_topic_id (str): The ID of the topic to retrieve.
+
+ Returns:
+ Topic | None: The topic matching the provided ID, or None if not found.
+ """
+ response = await elasticsearch.get(
+ index=ESIndex.OPENALEX_TOPICS,
+ doc_id=raw_oa_topic_id,
+ source=[
+ "id",
+ "display_name",
+ "description",
+ "subfield",
+ "field",
+ "domain",
+ "works_count",
+ "cited_by_count",
+ ],
+ )
+ if response.get("found"):
+ _source = response.get("_source", {})
+ return Topic.from_dict(_source) # type: ignore
+ return None
+
+
+async def get_topic_by_id_or_raise(raw_oa_topic_id: str) -> Topic:
+ """Retrieves a topic based on its ID, raising an exception if not found.
+
+ Args:
+ raw_oa_topic_id (str): The ID of the topic to retrieve.
+
+ Raises:
+ NotFoundException: If the topic with the specified ID is not found.
+
+ Returns:
+ Topic: The topic matching the provided ID.
+ """
+ topic = await get_topic_by_id(raw_oa_topic_id)
+ if topic is None:
+ raise NotFoundException(f"Topic with ID {raw_oa_topic_id} not found.")
+ return topic
+
+
+async def get_topics_by_ids(topic_ids: list[str]) -> TopicPageV2:
"""Retrieves topics based on a list of topic IDs.
Args:
@@ -81,7 +196,7 @@ async def get_topics_by_ids(topic_ids: List[str]) -> TopicPageV2:
if not topic_ids:
return TopicPageV2(elements=[], total=0, page=0, size=0)
- return await search_topics(
+ return await _search_topics(
page=0,
size=len(topic_ids),
query={"terms": {"id": topic_ids}},
diff --git a/service/src/main/inse/topics/v2/test_service.py b/service/src/main/inse/topics/v2/test_service.py
new file mode 100644
index 00000000..7053ae43
--- /dev/null
+++ b/service/src/main/inse/topics/v2/test_service.py
@@ -0,0 +1,40 @@
+from unittest.mock import AsyncMock, patch
+
+import pytest
+from inse.topics.v2.service import search_topics
+
+
+@pytest.fixture
+def anyio_backend():
+ return "asyncio"
+
+
+@pytest.mark.anyio
+async def test_search_topics_treats_comma_separated_terms_as_alternatives():
+ with patch(
+ "inse.topics.v2.service.elasticsearch.search",
+ new=AsyncMock(
+ return_value={
+ "hits": {"hits": [], "total": {"value": 0}}
+ }
+ ),
+ ) as search:
+ await search_topics("Artificial Intelligence, Machine Learning")
+
+ assert search.await_args.kwargs["query"] == {
+ "bool": {
+ "should": [
+ {
+ "match_phrase_prefix": {
+ "display_name": "Artificial Intelligence"
+ }
+ },
+ {
+ "match_phrase_prefix": {
+ "display_name": "Machine Learning"
+ }
+ },
+ ],
+ "minimum_should_match": 1,
+ }
+ }
diff --git a/service/src/main/inse/university_ranking/logic.py b/service/src/main/inse/university_ranking/logic.py
index 2f368665..bed2d7c9 100644
--- a/service/src/main/inse/university_ranking/logic.py
+++ b/service/src/main/inse/university_ranking/logic.py
@@ -1,10 +1,18 @@
-import logging
import datetime
-from typing import List, Dict, Any
-from .model import UniversityTopicData, YearlyData, UniversityRanking, DashboardMetric, RankingResponse
+import logging
+from typing import Any
+
from inse.integrations import elasticsearch
from inse.models.openalex.topic import Topic
+from .model import (
+ DashboardMetric,
+ RankingResponse,
+ UniversityRanking,
+ UniversityTopicData,
+ YearlyData,
+)
+
logger = logging.getLogger(__name__)
START_YEAR = 2000
@@ -207,7 +215,7 @@ async def get_ranking_data(topic_query: str, metric: DashboardMetric) -> Ranking
logger.error("Error executing ranking aggregations on openalex-works: %s", e)
# Map the accumulated results back into the timeseries response model
- timeseries: List[UniversityTopicData] = []
+ timeseries: list[UniversityTopicData] = []
inst_name_map = {inst["id"]: inst["display_name"] for inst in top_10}
for inst_id, year_dict in accumulated_data.items():
@@ -230,13 +238,13 @@ async def get_ranking_data(topic_query: str, metric: DashboardMetric) -> Ranking
return RankingResponse(timeseries=timeseries, rankings=rankings)
-def _compute_rankings(data: List[UniversityTopicData], metric: DashboardMetric) -> List[UniversityRanking]:
+def _compute_rankings(data: list[UniversityTopicData], metric: DashboardMetric) -> list[UniversityRanking]:
"""Computes ranking metrics based on the timeseries data."""
latest_year = END_YEAR
five_years_ago = latest_year - 5
three_years_ago = latest_year - 3
- processed: List[Dict[str, Any]] = []
+ processed: list[dict[str, Any]] = []
for item in data:
latest = next((d for d in item.yearly_data if d.year == latest_year), YearlyData(year=latest_year, publications=0, citations=0))
prev = next((d for d in item.yearly_data if d.year == latest_year - 1), YearlyData(year=latest_year-1, publications=0, citations=0))
diff --git a/service/src/main/inse/university_ranking/model.py b/service/src/main/inse/university_ranking/model.py
index 8582eb9b..6bf31d44 100644
--- a/service/src/main/inse/university_ranking/model.py
+++ b/service/src/main/inse/university_ranking/model.py
@@ -1,10 +1,13 @@
-from pydantic import BaseModel
-from typing import List, Literal, Dict, Optional
+from typing import Literal
+
from inse.models.openalex.topic import Topic
+from pydantic import BaseModel
DashboardMetric = Literal['publications', 'citations']
from enum import Enum
+
+
class TrendSearchType(str, Enum):
PUBLICATIONS = "publications"
AUTHORS = "authors"
@@ -21,7 +24,7 @@ class YearlyData(BaseModel):
class UniversityTopicData(BaseModel):
university: str
topic: Topic
- yearly_data: List[YearlyData]
+ yearly_data: list[YearlyData]
class UniversityRanking(BaseModel):
rank: int
@@ -34,9 +37,9 @@ class UniversityRanking(BaseModel):
class RankingResponse(BaseModel):
# Raw timeseries data for the ECharts line race
- timeseries: List[UniversityTopicData]
+ timeseries: list[UniversityTopicData]
# Computed metrics for the ranking table
- rankings: List[UniversityRanking]
+ rankings: list[UniversityRanking]
# Trend Analysis Models
class TopicYearlyData(BaseModel):
@@ -50,20 +53,21 @@ class TrendSeries(BaseModel):
entity_id: str
entity_name: str
entity_type: Literal['institution', 'country', 'region', 'author']
- country_code: Optional[str] = None
+ country_code: str | None = None
# Map topic display name to its yearly data
- topic_data: Dict[str, List[TopicYearlyData]]
+ topic_data: dict[str, list[TopicYearlyData]]
class TrendResponse(BaseModel):
- series: List[TrendSeries]
- years: List[int]
- location_mappings: Optional[Dict[str, List[str]]] = None
+ series: list[TrendSeries]
+ years: list[int]
+ location_mappings: dict[str, list[str]] | None = None
from inse.models.openalex.dehydrated_institution import DehydratedInstitution
+
class TopInstitutionItem(DehydratedInstitution):
- works_count: Optional[int] = None
- exact_topic_count: Optional[int] = None
+ works_count: int | None = None
+ exact_topic_count: int | None = None
class AutocompleteLocationItem(BaseModel):
id: str
@@ -76,4 +80,4 @@ class TopTopicItem(BaseModel):
count: int
class TopTopicsResponse(BaseModel):
- items: List[TopTopicItem]
\ No newline at end of file
+ items: list[TopTopicItem]
\ No newline at end of file
diff --git a/service/src/main/inse/university_ranking/service.py b/service/src/main/inse/university_ranking/service.py
index 112a2a6f..868c561d 100644
--- a/service/src/main/inse/university_ranking/service.py
+++ b/service/src/main/inse/university_ranking/service.py
@@ -1,17 +1,18 @@
import logging
-from typing import List, Optional
-from fastapi import APIRouter, Query, Depends
+from fastapi import APIRouter, Depends, Query
+from inse.exceptions import BadRequestException
from inse.tags import Tags
+
from . import logic, trend_logic
from .model import (
- RankingResponse,
- DashboardMetric,
- TrendResponse,
- TopInstitutionItem,
AutocompleteLocationItem,
+ DashboardMetric,
+ RankingResponse,
+ TopInstitutionItem,
+ TopTopicsResponse,
+ TrendResponse,
TrendSearchType,
- TopTopicsResponse
)
from .trend_strategies import TrendStrategy
@@ -24,12 +25,12 @@ router = APIRouter(
def get_trend_strategy(search_type: TrendSearchType = Query(TrendSearchType.PUBLICATIONS)) -> TrendStrategy:
from .trend_strategies import (
- PublicationsTrendStrategy,
+ AllTrendStrategy,
AuthorsTrendStrategy,
+ NewsTrendStrategy,
PatentsTrendStrategy,
ProjectsTrendStrategy,
- NewsTrendStrategy,
- AllTrendStrategy,
+ PublicationsTrendStrategy,
)
if search_type == TrendSearchType.PUBLICATIONS:
return PublicationsTrendStrategy()
@@ -43,7 +44,7 @@ def get_trend_strategy(search_type: TrendSearchType = Query(TrendSearchType.PUBL
return NewsTrendStrategy()
elif search_type == TrendSearchType.ALL:
return AllTrendStrategy()
- raise ValueError(f"Unknown search type: {search_type}")
+ raise BadRequestException(f"Unknown search type: {search_type}")
@router.get(
"",
@@ -65,15 +66,17 @@ async def get_rankings(
summary="Returns timeseries publication data for compared institutions, countries, and regions."
)
async def get_trend(
- topics: List[str] = Query(..., description="List of topics to analyze"),
- keywords: Optional[List[str]] = Query(None, description="List of raw keywords corresponding to topics"),
+ topics: list[str] = Query(..., description="List of topics to analyze"),
+ keywords: list[str] | None = Query(None, description="List of raw keywords corresponding to topics"),
fuzzy: bool = Query(True, description="True if using mapped topics, False if using raw keywords"),
- institutions: Optional[List[str]] = Query(None, description="List of OpenAlex Institution IDs"),
- countries: Optional[List[str]] = Query(None, description="List of country codes"),
- regions: Optional[List[str]] = Query(None, description="List of region identifiers"),
- authors: Optional[List[str]] = Query(None, description="List of OpenAlex Author IDs"),
+ institutions: list[str] | None = Query(None, description="List of OpenAlex Institution IDs"),
+ countries: list[str] | None = Query(None, description="List of country codes"),
+ regions: list[str] | None = Query(None, description="List of region identifiers"),
+ authors: list[str] | None = Query(None, description="List of OpenAlex Author IDs"),
strategy: TrendStrategy = Depends(get_trend_strategy)
):
+ if not topics or len(topics) == 0:
+ raise BadRequestException("Topics list cannot be empty")
return await strategy.get_trend(
topics=topics,
keywords=keywords,
@@ -86,13 +89,13 @@ async def get_trend(
@router.get(
"/top-institutions",
- response_model=List[TopInstitutionItem],
+ response_model=list[TopInstitutionItem],
summary="Returns top institutions filtered by country/region and sorted by topic-level publications count."
)
async def get_top_institutions(
topic: str = Query(..., description="Research topic"),
- region: Optional[str] = Query(None, description="Region identifier (e.g. EU)"),
- country: Optional[str] = Query(None, description="Country code (e.g. DE)"),
+ region: str | None = Query(None, description="Region identifier (e.g. EU)"),
+ country: str | None = Query(None, description="Country code (e.g. DE)"),
limit: int = Query(10, description="Max suggestions to return")
):
return await trend_logic.get_top_institutions_by_region(
@@ -104,7 +107,7 @@ async def get_top_institutions(
@router.get(
"/autocomplete-locations",
- response_model=List[AutocompleteLocationItem],
+ response_model=list[AutocompleteLocationItem],
summary="Returns country and continent options for autocomplete inputs."
)
async def get_autocomplete_locations(
diff --git a/service/src/main/inse/university_ranking/test_trend_strategies.py b/service/src/main/inse/university_ranking/test_trend_strategies.py
index 936c17b4..9e8d08f8 100644
--- a/service/src/main/inse/university_ranking/test_trend_strategies.py
+++ b/service/src/main/inse/university_ranking/test_trend_strategies.py
@@ -1,5 +1,59 @@
import pytest
-from inse.university_ranking.trend_strategies import PatentsTrendStrategy, ProjectsTrendStrategy
+from inse.university_ranking.trend_logic import (
+ autocomplete_locations,
+ get_top_institutions_by_region,
+ get_top_topics_for_entity,
+ get_trend_data,
+)
+from inse.university_ranking.trend_query_builder import (
+ TrendQueryBuilder,
+ clean_inst_id,
+ to_full_inst_url,
+)
+from inse.university_ranking.trend_strategies import (
+ AllTrendStrategy,
+ NewsTrendStrategy,
+ PatentsTrendStrategy,
+ ProjectsTrendStrategy,
+ PublicationsTrendStrategy,
+)
+
+
+def test_clean_and_to_full_inst_url():
+ assert clean_inst_id("https://openalex.org/I62318514") == "I62318514"
+ assert clean_inst_id("I62318514") == "I62318514"
+ assert to_full_inst_url("I62318514") == "https://openalex.org/I62318514"
+ assert to_full_inst_url("https://openalex.org/I62318514") == "https://openalex.org/I62318514"
+
+
+def test_trend_query_builder_clauses():
+ topic_clause = TrendQueryBuilder.build_topic_clause("Artificial Intelligence", "T1001", fuzzy=True)
+ assert "bool" in topic_clause
+ assert "should" in topic_clause["bool"]
+
+ date_filter = TrendQueryBuilder.build_date_range_filter("publication_year", 2015, 2024)
+ assert date_filter["range"]["publication_year"]["gte"] == 2015
+ assert date_filter["range"]["publication_year"]["lte"] == 2024
+
+ entity_filter = TrendQueryBuilder.build_entity_nested_filter(
+ inst_ids=["https://openalex.org/I62318514"],
+ country_codes=["DE"],
+ )
+ assert "bool" in entity_filter or "nested" in entity_filter
+
+
+@pytest.mark.anyio
+async def test_publications_trend_strategy():
+ strategy = PublicationsTrendStrategy()
+ res = await strategy.get_trend(
+ topics=["Artificial Intelligence"],
+ fuzzy=True,
+ institutions=["https://openalex.org/I62318514"],
+ )
+ assert res is not None
+ assert len(res.series) > 0
+ assert "Artificial Intelligence" in res.series[0].topic_data
+
@pytest.mark.anyio
async def test_patents_trend_strategy():
@@ -7,7 +61,7 @@ async def test_patents_trend_strategy():
res = await strategy.get_trend(
topics=["Biotechnology and Related Fields"],
fuzzy=True,
- institutions=["https://openalex.org/I62318514"]
+ institutions=["https://openalex.org/I62318514"],
)
assert res is not None
assert len(res.series) > 0
@@ -15,16 +69,124 @@ async def test_patents_trend_strategy():
assert len(series_ude) == 1
assert "Biotechnology and Related Fields" in series_ude[0].topic_data
+
@pytest.mark.anyio
async def test_projects_trend_strategy():
strategy = ProjectsTrendStrategy()
res = await strategy.get_trend(
topics=["Biotechnology and Related Fields"],
fuzzy=True,
- institutions=["https://openalex.org/I62318514"]
+ institutions=["https://openalex.org/I62318514"],
)
assert res is not None
assert len(res.series) > 0
series_ude = [s for s in res.series if s.entity_id == "https://openalex.org/I62318514"]
assert len(series_ude) == 1
assert "Biotechnology and Related Fields" in series_ude[0].topic_data
+
+
+@pytest.mark.anyio
+async def test_news_trend_strategy_fuzzy():
+ strategy = NewsTrendStrategy()
+ res = await strategy.get_trend(
+ topics=["Artificial Intelligence"],
+ fuzzy=True,
+ )
+ assert res is not None
+ assert len(res.series) > 0
+ assert res.series[0].entity_name == "Artificial Intelligence"
+
+
+@pytest.mark.anyio
+async def test_news_trend_strategy_multi_topic():
+ strategy = NewsTrendStrategy()
+ res = await strategy.get_trend(
+ topics=["Artificial Intelligence", "Robotics"],
+ fuzzy=True,
+ )
+ assert res is not None
+ assert len(res.series) == 2
+ s0 = res.series[0]
+ s1 = res.series[1]
+ assert s0.entity_name == "Artificial Intelligence"
+ assert s1.entity_name == "Robotics"
+ assert "Artificial Intelligence" in s0.topic_data
+ assert "Robotics" in s1.topic_data
+
+
+@pytest.mark.anyio
+async def test_all_trend_strategy():
+ strategy = AllTrendStrategy()
+ res = await strategy.get_trend(
+ topics=["Artificial Intelligence"],
+ fuzzy=True,
+ institutions=["https://openalex.org/I62318514"],
+ )
+ assert res is not None
+ assert len(res.series) >= 3
+
+
+@pytest.mark.anyio
+async def test_autocomplete_locations():
+ res = await autocomplete_locations("Germany")
+ assert isinstance(res, list)
+
+
+@pytest.mark.anyio
+async def test_get_top_institutions_by_region():
+ res = await get_top_institutions_by_region(
+ topic="Artificial Intelligence",
+ country="DE",
+ limit=5,
+ )
+ assert isinstance(res, list)
+
+
+@pytest.mark.anyio
+async def test_get_top_topics_for_entity():
+ res = await get_top_topics_for_entity(
+ entity_id="https://openalex.org/I62318514",
+ entity_type="institution",
+ start_year=2015,
+ end_year=2024,
+ search_type="publications",
+ )
+ assert isinstance(res, dict)
+ assert "items" in res
+
+
+@pytest.mark.anyio
+async def test_get_top_topics_for_entity_projects():
+ res = await get_top_topics_for_entity(
+ entity_id="https://openalex.org/I62318514",
+ entity_type="institution",
+ start_year=2018,
+ end_year=2022,
+ search_type="projects",
+ )
+ assert isinstance(res, dict)
+ assert "items" in res
+
+
+@pytest.mark.anyio
+async def test_get_top_topics_for_entity_news():
+ res = await get_top_topics_for_entity(
+ entity_id="UDE",
+ entity_type="institution",
+ start_year=2018,
+ end_year=2024,
+ search_type="news",
+ )
+ assert isinstance(res, dict)
+ assert "items" in res
+
+
+@pytest.mark.anyio
+async def test_get_trend_data_delegation():
+ res = await get_trend_data(
+ topics=["Artificial Intelligence"],
+ institutions=["https://openalex.org/I62318514"],
+ )
+ assert res is not None
+ assert len(res.series) > 0
+
diff --git a/service/src/main/inse/university_ranking/trend_logic.py b/service/src/main/inse/university_ranking/trend_logic.py
index d6314793..45265114 100644
--- a/service/src/main/inse/university_ranking/trend_logic.py
+++ b/service/src/main/inse/university_ranking/trend_logic.py
@@ -1,178 +1,79 @@
import logging
-import uuid
-import datetime
-from typing import List, Dict, Any, Optional
-import numpy as np
-from sklearn.preprocessing import MinMaxScaler
+from typing import Any
-from sqlmodel import Session
from inse.integrations import elasticsearch
-from inse.model import ESIndex
-from inse.auth.model import AccessToken, Organization
+from inse.model import ESCluster, ESIndex
+
from .model import (
- TrendResponse,
- TrendSeries,
- TopicYearlyData,
+ AutocompleteLocationItem,
TopInstitutionItem,
- AutocompleteLocationItem
+ TrendResponse,
+)
+from .trend_query_builder import (
+ TrendMetadataResolver,
+ TrendQueryBuilder,
+ clean_inst_id,
+ to_full_inst_url,
)
logger = logging.getLogger(__name__)
-# Default fallback institution: University of Duisburg-Essen
-DEFAULT_INSTITUTION_ID = "https://openalex.org/I62318514"
-DEFAULT_INSTITUTION_NAME = "University of Duisburg-Essen"
+DEFAULT_TOP_TOPICS_SIZE = 20
-async def autocomplete_locations(query: str) -> List[AutocompleteLocationItem]:
+
+async def autocomplete_locations(query: str) -> list[AutocompleteLocationItem]:
+ """Returns country and continent options matching the autocomplete query using an ES multi-search."""
stripped = query.strip()
if not stripped:
return []
- import asyncio
-
- # Query countries index with alternatives and prefix boosts
country_query = {
- "bool": {
- "should": [
- {
- "match": {
- "country_code": {
- "query": stripped.upper(),
- "boost": 20
- }
- }
- },
- {
- "match_phrase_prefix": {
- "display_name": {
- "query": stripped,
- "boost": 10
- }
- }
- },
- {
- "match_phrase_prefix": {
- "display_name_alternatives": {
- "query": stripped,
- "boost": 8
- }
- }
- },
- {
- "match": {
- "display_name": {
- "query": stripped,
- "boost": 5
- }
- }
- },
- {
- "match": {
- "display_name_alternatives": {
- "query": stripped,
- "boost": 4
- }
- }
- },
- {
- "wildcard": {
- "display_name.keyword": {
- "value": f"*{stripped}*",
- "case_insensitive": True,
- "boost": 1
- }
- }
- },
- {
- "wildcard": {
- "display_name_alternatives.keyword": {
- "value": f"*{stripped}*",
- "case_insensitive": True,
- "boost": 1
- }
- }
- }
- ],
- "minimum_should_match": 1
- }
+ "query": {
+ "bool": {
+ "should": [
+ {"match": {"country_code": {"query": stripped.upper(), "boost": 20}}},
+ {"match_phrase_prefix": {"display_name": {"query": stripped, "boost": 10}}},
+ {"match_phrase_prefix": {"display_name_alternatives": {"query": stripped, "boost": 8}}},
+ {"match": {"display_name": {"query": stripped, "boost": 5}}},
+ {"match": {"display_name_alternatives": {"query": stripped, "boost": 4}}},
+ {"wildcard": {"display_name.keyword": {"value": f"*{stripped}*", "case_insensitive": True, "boost": 1}}},
+ {"wildcard": {"display_name_alternatives.keyword": {"value": f"*{stripped}*", "case_insensitive": True, "boost": 1}}},
+ ],
+ "minimum_should_match": 1,
+ }
+ },
+ "size": 10,
+ "_source": ["id", "display_name", "country_code", "wikidata_id"],
}
- # Query continents index
continent_query = {
- "bool": {
- "should": [
- {
- "match_phrase_prefix": {
- "display_name": {
- "query": stripped,
- "boost": 10
- }
- }
- },
- {
- "match_phrase_prefix": {
- "display_name_alternatives": {
- "query": stripped,
- "boost": 8
- }
- }
- },
- {
- "match": {
- "display_name": {
- "query": stripped,
- "boost": 5
- }
- }
- },
- {
- "match": {
- "display_name_alternatives": {
- "query": stripped,
- "boost": 4
- }
- }
- },
- {
- "wildcard": {
- "display_name.keyword": {
- "value": f"*{stripped}*",
- "case_insensitive": True,
- "boost": 1
- }
- }
- },
- {
- "wildcard": {
- "display_name_alternatives.keyword": {
- "value": f"*{stripped}*",
- "case_insensitive": True,
- "boost": 1
- }
- }
- }
- ],
- "minimum_should_match": 1
- }
+ "query": {
+ "bool": {
+ "should": [
+ {"match_phrase_prefix": {"display_name": {"query": stripped, "boost": 10}}},
+ {"match_phrase_prefix": {"display_name_alternatives": {"query": stripped, "boost": 8}}},
+ {"match": {"display_name": {"query": stripped, "boost": 5}}},
+ {"match": {"display_name_alternatives": {"query": stripped, "boost": 4}}},
+ {"wildcard": {"display_name.keyword": {"value": f"*{stripped}*", "case_insensitive": True, "boost": 1}}},
+ {"wildcard": {"display_name_alternatives.keyword": {"value": f"*{stripped}*", "case_insensitive": True, "boost": 1}}},
+ ],
+ "minimum_should_match": 1,
+ }
+ },
+ "size": 5,
+ "_source": ["id", "display_name", "wikidata_id"],
}
try:
- countries_res, continents_res = await asyncio.gather(
- elasticsearch.search(
- index=str(ESIndex.OPENALEX_COUNTRIES),
- query=country_query,
- size=10,
- source=["id", "display_name", "country_code", "wikidata_id"],
- cluster="nes"
- ),
- elasticsearch.search(
- index=str(ESIndex.OPENALEX_CONTINENTS),
- query=continent_query,
- size=5,
- source=["id", "display_name", "wikidata_id"],
- cluster="nes"
- )
+ responses = await elasticsearch.msearch(
+ [
+ (str(ESIndex.OPENALEX_COUNTRIES), country_query),
+ (str(ESIndex.OPENALEX_CONTINENTS), continent_query),
+ ],
+ cluster=ESCluster.NES,
)
+ countries_res = responses[0] if len(responses) > 0 else {}
+ continents_res = responses[1] if len(responses) > 1 else {}
except Exception as e:
logger.error("Failed to autocomplete locations in ES: %s", e)
return []
@@ -183,591 +84,160 @@ async def autocomplete_locations(query: str) -> List[AutocompleteLocationItem]:
for hit in continents_res.get("hits", {}).get("hits", []):
source = hit["_source"]
code_val = source.get("wikidata_id") or source["id"].split("/")[-1]
- results.append(AutocompleteLocationItem(
- id=code_val,
- display_name=source["display_name"],
- code=code_val,
- type="continent"
- ))
+ results.append(
+ AutocompleteLocationItem(
+ id=code_val,
+ display_name=source["display_name"],
+ code=code_val,
+ type="continent",
+ )
+ )
# Process countries
for hit in countries_res.get("hits", {}).get("hits", []):
source = hit["_source"]
- results.append(AutocompleteLocationItem(
- id=source["country_code"],
- display_name=source["display_name"],
- code=source["country_code"],
- type="country"
- ))
+ results.append(
+ AutocompleteLocationItem(
+ id=source["country_code"],
+ display_name=source["display_name"],
+ code=source["country_code"],
+ type="country",
+ )
+ )
return results
-
async def get_top_institutions_by_region(
topic: str,
- region: Optional[str] = None,
- country: Optional[str] = None,
- limit: int = 10
-) -> List[TopInstitutionItem]:
- """
- Search top educational institutions by region or country based on publication counts
- for the specific topic, using a two-step Python-based sorting approach.
- """
+ region: str | None = None,
+ country: str | None = None,
+ limit: int = 10,
+) -> list[TopInstitutionItem]:
+ """Search top educational institutions by region or country based on publication counts for the specific topic."""
country_codes = []
if country:
country_codes = [country.upper()]
elif region:
- try:
- # Query openalex-continents index to resolve continent country codes dynamically
- res = await elasticsearch.search(
- index=str(ESIndex.OPENALEX_CONTINENTS),
- query={
- "bool": {
- "should": [
- {"term": {"wikidata_id.keyword": region}},
- {"term": {"id": f"https://openalex.org/continents/{region}"}}
- ]
- }
- },
- size=1,
- source=["countries"],
- cluster="nes"
- )
- hits = res.get("hits", {}).get("hits", [])
- if hits:
- source = hits[0]["_source"]
- country_codes = [
- c["id"].split("/")[-1].upper() for c in source.get("countries", [])
- ]
- except Exception as e:
- logger.warning("Failed to resolve continent countries in get_top_institutions_by_region: %s", e)
+ meta_reg = await TrendMetadataResolver.resolve_all(query_regions=[region])
+ continent_ccs = meta_reg.get("continent_country_codes", {})
+ country_codes = continent_ccs.get(region, [])
- # Resolve the topic to get the exact ID/display name
- topic_filter = {"match_phrase": {"topics.display_name": topic}}
- try:
- topic_res = await elasticsearch.search(
- index="openalex-topics",
- query={"match_phrase": {"display_name": topic}},
- size=1,
- source=["id", "display_name"],
- cluster="nes"
- )
- hits = topic_res.get("hits", {}).get("hits", [])
- if hits:
- source = hits[0]["_source"]
- topic_id = source["id"]
- topic_filter = {"term": {"topics.id.keyword": topic_id}}
- except Exception as e:
- logger.warning("Failed to resolve topic in get_top_institutions_by_region: %s", e)
+ meta_top = await TrendMetadataResolver.resolve_all(topics=[topic])
+ topic_id = meta_top.get("resolved_topic_ids", {}).get(topic)
+ topic_display_name = meta_top.get("resolved_topic_names", {}).get(topic, topic)
- # Query openalex-institutions for educational entities matching country and topic
- must_clauses: List[Dict[str, Any]] = [
+ if not topic_id and (topic.startswith("https://openalex.org/") or (topic.startswith("T") and topic[1:].isdigit())):
+ topic_id = topic if topic.startswith("https://openalex.org/") else f"https://openalex.org/{topic}"
+
+ if topic_id:
+ topic_filter = {
+ "bool": {
+ "should": [
+ {"term": {"topics.id.keyword": topic_id}},
+ {"term": {"topics.id": topic_id}},
+ ],
+ "minimum_should_match": 1,
+ }
+ }
+ else:
+ topic_filter = {"match_phrase": {"topics.display_name": topic_display_name}}
+
+ must_clauses: list[dict[str, Any]] = [
{"term": {"type": "education"}},
- topic_filter
+ topic_filter,
]
-
if country_codes:
must_clauses.append({"terms": {"geo.country_code": country_codes}})
query = {"bool": {"filter": must_clauses}}
- # Fetch top 500 by overall works count to cover a good pool of institutions
- res = await elasticsearch.search(
- index=str(ESIndex.OPENALEX_INSTITUTIONS),
- query=query,
- size=500,
- source=["id", "display_name", "country_code", "works_count", "topics"],
- sort=[{"works_count": "desc"}],
- cluster="nes"
- )
-
- hits = res.get("hits", {}).get("hits", [])
+ # Stream candidate institutions using elasticsearch.scan to avoid hit limit cutoffs
candidates = []
+ try:
+ async for hit in elasticsearch.scan(
+ index=str(ESIndex.OPENALEX_INSTITUTIONS),
+ query=query,
+ source=["id", "display_name", "country_code", "works_count", "topics"],
+ cluster=ESCluster.NES,
+ ):
+ source = hit["_source"]
+ inst_id = source.get("id")
+ display_name = source.get("display_name", "Unknown")
+ country_code = source.get("country_code")
+ works_count = source.get("works_count")
- for hit in hits:
- source = hit["_source"]
- inst_id = source.get("id")
- display_name = source.get("display_name", "Unknown")
- country_code = source.get("country_code")
- works_count = source.get("works_count")
+ exact_topic_count = 0
+ for t in source.get("topics", []):
+ if t.get("display_name", "").lower() == topic.lower() or (topic_id and t.get("id") == topic_id):
+ exact_topic_count = t.get("count", 0)
+ break
- # Extract exact count for the selected topic
- exact_topic_count = 0
- for t in source.get("topics", []):
- if t.get("display_name", "").lower() == topic.lower():
- exact_topic_count = t.get("count", 0)
- break
-
- candidates.append(TopInstitutionItem(
- id=inst_id,
- display_name=display_name,
- country_code=country_code,
- works_count=works_count,
- exact_topic_count=exact_topic_count
- ))
+ candidates.append(
+ TopInstitutionItem(
+ id=inst_id,
+ display_name=display_name,
+ country_code=country_code,
+ works_count=works_count,
+ exact_topic_count=exact_topic_count,
+ )
+ )
+ except Exception as e:
+ logger.error("Failed to fetch top institutions by region: %s", e)
# Sort candidates by exact_topic_count descending
candidates.sort(key=lambda x: x.exact_topic_count or 0, reverse=True)
-
return candidates[:limit]
+
async def get_trend_data(
- topics: List[str],
- institutions: Optional[List[str]] = None,
- countries: Optional[List[str]] = None,
- regions: Optional[List[str]] = None
+ topics: list[str],
+ institutions: list[str] | None = None,
+ countries: list[str] | None = None,
+ regions: list[str] | None = None,
) -> TrendResponse:
- """
- Traverses the openalex-works index to retrieve yearly contributions of selected/top
- institutions, countries, and regions across multiple topics.
- """
- if not topics:
- return TrendResponse(series=[], years=[])
+ """Retrieves publication trend data by delegating to PublicationsTrendStrategy."""
+ from .trend_strategies import PublicationsTrendStrategy
+ strategy = PublicationsTrendStrategy()
+ return await strategy.get_trend(
+ topics=topics,
+ institutions=institutions,
+ countries=countries,
+ regions=regions,
+ )
- import asyncio
-
- start_year = 2000
- end_year = datetime.datetime.now().year - 1
- years_range = list(range(start_year, end_year + 1))
-
- # Resolve primary institution (default University of Duisburg-Essen for everyone)
- primary_inst_id = DEFAULT_INSTITUTION_ID
- primary_inst_name = DEFAULT_INSTITUTION_NAME
-
- # Initialize institutions list and ensure primary is included
- query_institutions = []
- if institutions:
- query_institutions = [i.strip() for i in institutions]
- if primary_inst_id not in query_institutions:
- query_institutions.insert(0, primary_inst_id)
-
- # Prepare lists of countries and regions dynamically
- query_countries = countries or []
- query_regions = regions or []
-
- clean_countries = [c.strip().upper() for c in query_countries]
- clean_regions = [r.strip() for r in query_regions]
- ids_to_resolve = list(set(query_institutions))
-
- # Define concurrent metadata lookups
- async def fetch_institutions():
- names = {primary_inst_id: primary_inst_name}
- codes = {}
- if not ids_to_resolve:
- return names, codes
- try:
- res = await elasticsearch.search(
- index=str(ESIndex.OPENALEX_INSTITUTIONS),
- query={"terms": {"id": ids_to_resolve}},
- size=len(ids_to_resolve),
- source=["id", "display_name", "country_code"],
- cluster="nes"
- )
- for hit in res.get("hits", {}).get("hits", []):
- source = hit["_source"]
- names[source["id"]] = source.get("display_name", source["id"])
- codes[source["id"]] = source.get("country_code", "")
- except Exception as e:
- logger.warning("Failed to resolve institution details from ES: %s", e)
- return names, codes
-
- async def fetch_countries():
- names = {}
- if not clean_countries:
- return names
- try:
- res = await elasticsearch.search(
- index=str(ESIndex.OPENALEX_COUNTRIES),
- query={"terms": {"country_code": clean_countries}},
- size=len(clean_countries),
- source=["country_code", "display_name"],
- cluster="nes"
- )
- for hit in res.get("hits", {}).get("hits", []):
- source = hit["_source"]
- names[source["country_code"]] = source["display_name"]
- except Exception as e:
- logger.warning("Failed to resolve country names from ES: %s", e)
- return names
-
- async def fetch_continents():
- names = {}
- ccodes = {}
- if not clean_regions:
- return names, ccodes
- try:
- res = await elasticsearch.search(
- index=str(ESIndex.OPENALEX_CONTINENTS),
- query={
- "bool": {
- "should": [
- {"terms": {"wikidata_id.keyword": clean_regions}},
- {"terms": {"id": [f"https://openalex.org/continents/{r}" for r in clean_regions]}}
- ]
- }
- },
- size=len(clean_regions),
- source=["id", "display_name", "wikidata_id", "countries"],
- cluster="nes"
- )
- for hit in res.get("hits", {}).get("hits", []):
- source = hit["_source"]
- c_code = source.get("wikidata_id") or source["id"].split("/")[-1]
- names[c_code] = source["display_name"]
- ccodes[c_code] = [c["id"].split("/")[-1].upper() for c in source.get("countries", [])]
- except Exception as e:
- logger.warning("Failed to resolve continent names from ES: %s", e)
- return names, ccodes
-
- async def fetch_topics():
- t_ids = {}
- try:
- res = await elasticsearch.search(
- index="openalex-topics",
- query={"bool": {"should": [{"match_phrase": {"display_name": t}} for t in topics]}},
- size=len(topics) * 2,
- source=["id", "display_name"],
- cluster="nes"
- )
- for hit in res.get("hits", {}).get("hits", []):
- source = hit["_source"]
- for t in topics:
- if t.lower() in source["display_name"].lower():
- t_ids[t] = source["id"]
- except Exception as e:
- logger.warning("Failed to resolve topic IDs from ES: %s", e)
- return t_ids
-
- # Execute all 4 queries concurrently
- (
- (resolved_names, resolved_country_codes),
- resolved_country_names,
- (resolved_continent_names, continent_country_codes),
- resolved_topic_ids
- ) = await asyncio.gather(fetch_institutions(), fetch_countries(), fetch_continents(), fetch_topics())
-
- location_mappings = continent_country_codes.copy()
-
- # Map of filters inside our Elasticsearch aggregation
- filters_map: Dict[str, Dict[str, Any]] = {}
-
- # 1. Institution Filters
- for inst_id in query_institutions:
- filters_map[f"inst_{inst_id}"] = {
- "nested": {
- "path": "authorships.institutions",
- "query": {
- "term": {
- "authorships.institutions.id": inst_id
- }
- }
- }
- }
-
- # 2. Country Filters
- for cc in clean_countries:
- filters_map[f"country_{cc}"] = {
- "nested": {
- "path": "authorships.institutions",
- "query": {
- "term": {
- "authorships.institutions.country_code": cc
- }
- }
- }
- }
-
- # 3. Continent/Region Filters
- for r_code, member_ccs in continent_country_codes.items():
- if member_ccs:
- filters_map[f"region_{r_code}"] = {
- "nested": {
- "path": "authorships.institutions",
- "query": {
- "terms": {
- "authorships.institutions.country_code": member_ccs
- }
- }
- }
- }
-
- # If no entities specified, return empty
- if not filters_map:
- return TrendResponse(series=[], years=years_range, location_mappings=location_mappings)
-
- # We will accumulate results in a nested structure: entity_key -> topic -> year -> (count, inst_count)
- accumulated_data: Dict[str, Dict[str, Dict[int, tuple]]] = {
- key: {t: {yr: (0, 1) for yr in years_range} for t in topics}
- for key in filters_map
- }
-
- # Build topic matching clauses and filters
- topic_clauses = []
- topic_filters = {}
- for t in topics:
- tid = resolved_topic_ids.get(t)
- if tid:
- clause = {
- "bool": {
- "should": [
- {"nested": {"path": "topics", "query": {"term": {"topics.id": tid}}}},
- {"term": {"primary_topic.id": tid}}
- ],
- "minimum_should_match": 1
- }
- }
- else:
- clause = {
- "bool": {
- "should": [
- {"nested": {"path": "topics", "query": {"match_phrase": {"topics.display_name": t}}}},
- {"match_phrase": {"primary_topic.display_name": t}}
- ],
- "minimum_should_match": 1
- }
- }
- topic_clauses.append(clause)
- topic_filters[t] = clause
-
- # Build query-level entity filters to optimize search performance
- entity_should_clauses = []
- if query_institutions:
- entity_should_clauses.append({
- "nested": {
- "path": "authorships.institutions",
- "query": {
- "terms": {
- "authorships.institutions.id": query_institutions
- }
- }
- }
- })
- if clean_countries:
- entity_should_clauses.append({
- "nested": {
- "path": "authorships.institutions",
- "query": {
- "terms": {
- "authorships.institutions.country_code": clean_countries
- }
- }
- }
- })
- all_continent_countries = []
- for member_ccs in continent_country_codes.values():
- all_continent_countries.extend(member_ccs)
- if all_continent_countries:
- entity_should_clauses.append({
- "nested": {
- "path": "authorships.institutions",
- "query": {
- "terms": {
- "authorships.institutions.country_code": list(set(all_continent_countries))
- }
- }
- }
- })
-
- # Construct the single-pass Elasticsearch query
- filter_clauses = [
- {
- "range": {
- "publication_year": {
- "gte": start_year,
- "lte": end_year
- }
- }
- },
- {
- "bool": {
- "should": topic_clauses,
- "minimum_should_match": 1
- }
- }
- ]
- if entity_should_clauses:
- filter_clauses.append({
- "bool": {
- "should": entity_should_clauses,
- "minimum_should_match": 1
- }
- })
-
- query = {
- "bool": {
- "filter": filter_clauses
- }
- }
-
- # Build two-layer nested aggregations (topics -> entities -> publication_year)
- aggregations = {
- "topics_agg": {
- "filters": {
- "filters": topic_filters
- },
- "aggs": {
- "entities_agg": {
- "filters": {
- "filters": filters_map
- },
- "aggs": {
- "by_year": {
- "terms": {
- "field": "publication_year",
- "size": len(years_range) * 2
- }
- }
- }
- }
- }
- }
- }
-
- try:
- res = await elasticsearch.search(
- index=f"{str(ESIndex.OPENALEX_WORKS)}*",
- query=query,
- body={"aggs": aggregations},
- size=0,
- cluster="nes"
- )
-
- topics_buckets = res.get("aggregations", {}).get("topics_agg", {}).get("buckets", {})
- for t_name, t_bucket in topics_buckets.items():
- entities_buckets = t_bucket.get("entities_agg", {}).get("buckets", {})
- for entity_key, e_bucket in entities_buckets.items():
- year_buckets = e_bucket.get("by_year", {}).get("buckets", [])
- for yr_bucket in year_buckets:
- yr = int(yr_bucket.get("key"))
- count = int(yr_bucket.get("doc_count", 0))
- inst_count = 1
- if yr in years_range:
- accumulated_data[entity_key][t_name][yr] = (count, inst_count)
-
- except Exception as e:
- logger.error("Error executing single-pass Elasticsearch query: %s", e)
-
- # Construct lists of raw counts and S-Curves for all series to normalize in parallel
- series_keys = []
- raw_lists = []
- cumsum_lists = []
- inst_counts_map = {}
-
- for entity_key, topic_dict in accumulated_data.items():
- for topic, year_dict in topic_dict.items():
- raw_counts = []
- inst_counts = []
- for yr in years_range:
- count, inst_count = year_dict[yr]
- raw_counts.append(count)
- inst_counts.append(inst_count)
-
- cumulative_counts = list(np.cumsum(raw_counts))
-
- series_keys.append((entity_key, topic))
- raw_lists.append(raw_counts)
- cumsum_lists.append(cumulative_counts)
- inst_counts_map[(entity_key, topic)] = inst_counts
-
- normalized_lookup = {}
- if raw_lists:
- # Construct matrices of shape (n_years, n_series)
- raw_matrix = np.array(raw_lists, dtype=float).T
- cumsum_matrix = np.array(cumsum_lists, dtype=float).T
-
- # Batch normalize columns in parallel using MinMaxScaler
- scaler_raw = MinMaxScaler()
- normalized_matrix = scaler_raw.fit_transform(raw_matrix)
-
- scaler_cumsum = MinMaxScaler()
- normalized_cumsum_matrix = scaler_cumsum.fit_transform(cumsum_matrix)
-
- # Transpose back to lists of shape (n_series, n_years)
- normalized_lists = normalized_matrix.T.tolist()
- normalized_cumsum_lists = normalized_cumsum_matrix.T.tolist()
-
- for idx, (entity_key, topic) in enumerate(series_keys):
- normalized_lookup[(entity_key, topic)] = {
- "normalized": normalized_lists[idx],
- "cumulative": normalized_cumsum_lists[idx]
- }
-
- # Process and build TrendSeries list
- series_list: List[TrendSeries] = []
-
- for entity_key, topic_dict in accumulated_data.items():
- # Resolve details for this entity
- if entity_key.startswith("inst_"):
- entity_id = entity_key[len("inst_"):]
- entity_name = resolved_names.get(entity_id, entity_id)
- entity_type = "institution"
- elif entity_key.startswith("country_"):
- entity_id = entity_key[len("country_"):]
- entity_name = resolved_country_names.get(entity_id, f"Country {entity_id}")
- entity_type = "country"
- elif entity_key.startswith("region_"):
- entity_id = entity_key[len("region_"):]
- entity_name = resolved_continent_names.get(entity_id, f"Continent {entity_id}")
- entity_type = "region"
- else:
- continue
-
- topic_data_map: Dict[str, List[TopicYearlyData]] = {}
-
- for topic, year_dict in topic_dict.items():
- yearly_data_items: List[TopicYearlyData] = []
-
- lookup = normalized_lookup.get((entity_key, topic), {})
- norm_vals = lookup.get("normalized", [0.0] * len(years_range))
- cum_vals = lookup.get("cumulative", [0.0] * len(years_range))
- inst_counts = inst_counts_map.get((entity_key, topic), [1] * len(years_range))
-
- for idx, yr in enumerate(years_range):
- count, _ = year_dict[yr]
- yearly_data_items.append(TopicYearlyData(
- year=yr,
- raw=count,
- normalized=norm_vals[idx],
- cumulative=cum_vals[idx],
- institutions_count=inst_counts[idx]
- ))
-
- topic_data_map[topic] = yearly_data_items
-
- series_list.append(TrendSeries(
- entity_id=entity_id,
- entity_name=entity_name,
- entity_type=entity_type,
- country_code=resolved_country_codes.get(entity_id) if entity_type == "institution" else None,
- topic_data=topic_data_map
- ))
-
- return TrendResponse(series=series_list, years=years_range, location_mappings=location_mappings)
-
-# Default fallback institution: University of Duisburg-Essen
-DEFAULT_INSTITUTION_ID = "https://openalex.org/I62318514"
-DEFAULT_INSTITUTION_NAME = "University of Duisburg-Essen"
-DEFAULT_TOP_TOPICS_SIZE = 20
async def get_top_topics_for_entity(
entity_id: str,
entity_type: str,
start_year: int,
end_year: int,
- search_type: str
-) -> Dict[str, Any]:
+ search_type: str,
+) -> dict[str, Any]:
+ """Retrieves the top research topics for a specified entity and search type."""
if search_type == "patents" and entity_type == "institution":
from inse.patents.org.logic import get_org_patents_by_institution_id
try:
- res = await get_org_patents_by_institution_id(
- institution_id=entity_id,
- match_type="all",
- page=0,
- size=10000
- )
- topic_counts = {}
- for p in res.patents:
+ full_inst_id = to_full_inst_url(entity_id)
+ patents = []
+ page = 0
+ page_size = 1000
+ while True:
+ res = await get_org_patents_by_institution_id(
+ institution_id=full_inst_id,
+ match_type="all",
+ page=page,
+ size=page_size,
+ )
+ if not res or not res.patents:
+ break
+ patents.extend(res.patents)
+ if len(res.patents) < page_size or (res.total is not None and len(patents) >= res.total):
+ break
+ page += 1
+
+ topic_counts: dict[str, int] = {}
+ for p in patents:
try:
yr = int(p.publication_year) if p.publication_year else None
if yr and start_year <= yr <= end_year:
@@ -776,17 +246,17 @@ async def get_top_topics_for_entity(
topic_counts[ot.topic_display_name] = topic_counts.get(ot.topic_display_name, 0) + 1
except Exception:
pass
-
+
sorted_topics = sorted(topic_counts.items(), key=lambda x: x[1], reverse=True)
top_slice = sorted_topics[:DEFAULT_TOP_TOPICS_SIZE]
items = [{"name": name, "count": count} for name, count in top_slice]
-
+
sum_top = sum(count for name, count in top_slice)
total_topics = sum(topic_counts.values())
other_count = max(0, total_topics - sum_top)
if other_count > 0:
items.append({"name": "Andere Themen", "count": other_count})
-
+
return {"items": items}
except Exception as e:
logger.error("Failed to query top patent topics for institution: %s", e)
@@ -794,212 +264,17 @@ async def get_top_topics_for_entity(
if search_type == "projects":
try:
- from inse.patents.search_client import PatentSearchClient
- patent_client = PatentSearchClient()
- short_id = entity_id.split("/")[-1]
-
- aliases = [short_id, entity_id]
- if entity_type == "institution":
- try:
- from inse.institutions.institutions_search_client import InstitutionsSearchClient
- client = InstitutionsSearchClient()
- resolved_aliases = await client.get_institution_aliases_by_oa_institution_id(entity_id)
- if resolved_aliases:
- aliases = resolved_aliases
- except Exception as e:
- logger.warning("Failed to resolve institution aliases in get_top_topics_for_entity: %s", e)
-
- include_german = True
- if entity_type == "country" and entity_id.strip().upper() != "DE":
- include_german = False
- elif entity_type == "region" and "DE" not in entity_id.strip().upper():
- include_german = False
+ short_id = clean_inst_id(entity_id)
+ full_id = to_full_inst_url(entity_id)
- project_ids_by_index = {}
-
- # 1. BUND
- if include_german:
- bund_filters = []
- if entity_type == "institution":
- bund_filters.append({
- "bool": {
- "should": [{"match": {"Zuwendungsempfänger": {"query": alias, "operator": "and"}}} for alias in aliases],
- "minimum_should_match": 1
- }
- })
- try:
- bund_res = await patent_client._search(
- index=ESIndex.PROJECTS_BUND_V1.value,
- payload={
- "query": {"bool": {"filter": bund_filters}},
- "size": 10000,
- "_source": ["_id"]
- }
- )
- p_ids = [h["_id"] for h in bund_res.get("hits", {}).get("hits", []) if "_id" in h]
- if p_ids:
- project_ids_by_index[ESIndex.PROJECTS_BUND_TOPICS.value] = p_ids
- except Exception as e:
- logger.warning("Failed to fetch BUND project IDs in get_top_topics_for_entity: %s", e)
-
- # 2. DFG
- if include_german:
- try:
- dfg_pids = []
- if entity_type == "institution":
- should_clauses = [{"match": {"root_name_en": {"query": alias, "operator": "and"}}} for alias in aliases]
- dfg_inst_res = await patent_client._search(
- index=ESIndex.DFG_INSTITUTES.value,
- payload={"query": {"bool": {"should": should_clauses, "minimum_should_match": 1}}, "size": 1000}
- )
- for hit in dfg_inst_res.get("hits", {}).get("hits", []):
- for p in hit.get("_source", {}).get("projects", []):
- if p.get("project_id"):
- dfg_pids.append(str(p["project_id"]))
- if dfg_pids or entity_type != "institution":
- dfg_filters = []
- if dfg_pids:
- dfg_filters.append({"ids": {"values": dfg_pids}})
- dfg_res = await patent_client._search(
- index=ESIndex.DFG_PROJECTS.value,
- payload={"query": {"bool": {"filter": dfg_filters}}, "size": 10000, "_source": ["id"]}
- )
- p_ids = [str(h["_source"]["id"]) for h in dfg_res.get("hits", {}).get("hits", []) if h.get("_source", {}).get("id")]
- if p_ids:
- project_ids_by_index[ESIndex.PROJECTS_DFG_TOPICS.value] = p_ids
- except Exception as e:
- logger.warning("Failed to fetch DFG project IDs in get_top_topics_for_entity: %s", e)
-
- # 3. EU CORDIS
- eu_indices = [
- (ESIndex.CORDIS_EU_HORIZON_EUROPE_ORGANIZATIONS, ESIndex.CORDIS_EU_HORIZON_EUROPE_PROJECTS, ESIndex.PROJECTS_CORDIS_EU_HEUROPE_TOPICS.value),
- (ESIndex.CORDIS_EU_HORIZON_2020_ORGANIZATIONS, ESIndex.CORDIS_EU_HORIZON_2020_PROJECTS, ESIndex.PROJECTS_CORDIS_EU_H2020_TOPICS.value),
- (ESIndex.CORDIS_EU_FP7_ORGANIZATIONS, ESIndex.CORDIS_EU_FP7_PROJECTS, ESIndex.PROJECTS_CORDIS_EU_FP7_TOPICS_MAPPING.value)
- ]
- for org_idx, proj_idx, topic_idx in eu_indices:
- try:
- filter_clauses = []
- if entity_type == "institution":
- filter_clauses.append({"terms": {"name.keyword": [alias.upper() for alias in aliases]}})
- elif entity_type == "country":
- filter_clauses.append({"term": {"country": entity_id.strip().upper()}})
-
- eu_org_res = await patent_client._search(
- index=org_idx.value,
- payload={
- "query": {"bool": {"filter": filter_clauses}},
- "size": 0,
- "aggs": {"project_ids": {"terms": {"field": "projectID", "size": 65536}}}
- }
- )
- eu_pids = [b["key"] for b in eu_org_res.get("aggregations", {}).get("project_ids", {}).get("buckets", [])]
- if eu_pids:
- project_ids_by_index[topic_idx] = eu_pids
- except Exception as e:
- logger.warning("Failed to fetch EU project IDs for %s: %s", org_idx.value, e)
-
- topic_counts = {}
- for topic_idx, p_ids in project_ids_by_index.items():
- if not p_ids:
- continue
- for i in range(0, len(p_ids), 1000):
- chunk = p_ids[i:i+1000]
- payload = {
- "query": {"terms": {"project_id": chunk}},
- "size": 0,
- "aggs": {
- "topic_matches": {
- "nested": {"path": "topic_matches"},
- "aggs": {
- "topics": {
- "terms": {"field": "topic_matches.topic_display_name", "size": 100}
- }
- }
- }
- }
- }
- try:
- res = await patent_client._search(index=topic_idx, payload=payload)
- buckets = res.get("aggregations", {}).get("topic_matches", {}).get("topics", {}).get("buckets", [])
- for b in buckets:
- t_name = b["key"]
- cnt = b["doc_count"]
- topic_counts[t_name] = topic_counts.get(t_name, 0) + cnt
- except Exception as e:
- logger.warning("Failed to aggregate topics from %s: %s", topic_idx, e)
-
- sorted_topics = sorted(topic_counts.items(), key=lambda x: x[1], reverse=True)
- top_slice = sorted_topics[:DEFAULT_TOP_TOPICS_SIZE]
- items = [{"name": name, "count": count} for name, count in top_slice]
-
- sum_top = sum(count for name, count in top_slice)
- total_topics = sum(topic_counts.values())
- other_count = max(0, total_topics - sum_top)
- if other_count > 0:
- items.append({"name": "Andere Themen", "count": other_count})
-
- return {"items": items}
- except Exception as e:
- logger.error("Failed to query top project topics for entity: %s", e)
- return {"items": []}
-DEFAULT_INSTITUTION_NAME = "University of Duisburg-Essen"
-DEFAULT_TOP_TOPICS_SIZE = 20
-
-async def get_top_topics_for_entity(
- entity_id: str,
- entity_type: str,
- start_year: int,
- end_year: int,
- search_type: str
-) -> Dict[str, Any]:
- if search_type == "patents" and entity_type == "institution":
- from inse.patents.org.logic import get_org_patents_by_institution_id
- try:
- res = await get_org_patents_by_institution_id(
- institution_id=entity_id,
- match_type="all",
- page=0,
- size=10000
- )
- topic_counts = {}
- for p in res.patents:
- try:
- yr = int(p.publication_year) if p.publication_year else None
- if yr and start_year <= yr <= end_year:
- for ot in p.openalex_topics:
- if ot.topic_display_name:
- topic_counts[ot.topic_display_name] = topic_counts.get(ot.topic_display_name, 0) + 1
- except Exception:
- pass
-
- sorted_topics = sorted(topic_counts.items(), key=lambda x: x[1], reverse=True)
- top_slice = sorted_topics[:DEFAULT_TOP_TOPICS_SIZE]
- items = [{"name": name, "count": count} for name, count in top_slice]
-
- sum_top = sum(count for name, count in top_slice)
- total_topics = sum(topic_counts.values())
- other_count = max(0, total_topics - sum_top)
- if other_count > 0:
- items.append({"name": "Andere Themen", "count": other_count})
-
- return {"items": items}
- except Exception as e:
- logger.error("Failed to query top patent topics for institution: %s", e)
- return {"items": []}
-
- if search_type == "projects":
- try:
- from inse.patents.search_client import PatentSearchClient
- patent_client = PatentSearchClient()
- short_id = entity_id.split("/")[-1]
- full_id = f"https://openalex.org/{short_id}"
-
aliases = [short_id, entity_id, full_id]
if entity_type == "institution":
try:
- from inse.institutions.institutions_search_client import InstitutionsSearchClient
- client = InstitutionsSearchClient()
- resolved_aliases = await client.get_institution_aliases_by_oa_institution_id(short_id)
+ from inse.institutions.institutions_search_client import (
+ InstitutionsSearchClient,
+ )
+ inst_client = InstitutionsSearchClient()
+ resolved_aliases = await inst_client.get_institution_aliases_by_oa_institution_id(short_id)
if resolved_aliases:
aliases.extend(resolved_aliases)
@@ -1008,7 +283,7 @@ async def get_top_topics_for_entity(
query={"terms": {"id": [full_id, short_id]}},
size=1,
source=["display_name"],
- cluster="nes"
+ cluster=ESCluster.NES,
)
hits = inst_res.get("hits", {}).get("hits", [])
if hits:
@@ -1018,74 +293,75 @@ async def get_top_topics_for_entity(
except Exception as e:
logger.warning("Failed to resolve institution aliases in get_top_topics_for_entity: %s", e)
- aliases = list(set([a for a in aliases if a]))
+ aliases = list(dict.fromkeys([a for a in aliases if a]))
include_german = True
- if entity_type == "country" and entity_id.strip().upper() != "DE":
- include_german = False
- elif entity_type == "region" and "DE" not in entity_id.strip().upper():
+ if entity_type == "country" and entity_id.strip().upper() != "DE" or entity_type == "region" and "DE" not in entity_id.strip().upper():
include_german = False
- project_ids_by_index = {}
-
- # 1. BUND
+ project_ids_by_index: dict[str, list[str]] = {}
+
+ # 1. BUND - filter by institution/country and date range
if include_german:
- bund_filters = []
+ bund_filters = [TrendQueryBuilder.build_date_range_filter("funding_start", start_year, end_year)]
if entity_type == "institution":
- bund_filters.append({
- "bool": {
- "should": [{"match": {"Zuwendungsempfänger": {"query": alias, "operator": "and"}}} for alias in aliases],
- "minimum_should_match": 1
- }
- })
+ bund_filters.append(TrendQueryBuilder.build_bund_receiver_clause(aliases))
try:
- bund_res = await patent_client._search(
+ p_ids = []
+ async for hit in elasticsearch.scan(
index=ESIndex.PROJECTS_BUND_V1.value,
- payload={
- "query": {"bool": {"filter": bund_filters}},
- "size": 10000,
- "_source": ["_id"]
- }
- )
- p_ids = [h["_id"] for h in bund_res.get("hits", {}).get("hits", []) if "_id" in h]
+ query={"bool": {"filter": bund_filters}},
+ source=["_id"],
+ cluster=ESCluster.INSE,
+ ):
+ if "_id" in hit:
+ p_ids.append(hit["_id"])
if p_ids:
project_ids_by_index[ESIndex.PROJECTS_BUND_TOPICS.value] = p_ids
except Exception as e:
logger.warning("Failed to fetch BUND project IDs in get_top_topics_for_entity: %s", e)
- # 2. DFG
+ # 2. DFG - filter by institute projects and date range
if include_german:
try:
dfg_pids = []
if entity_type == "institution":
should_clauses = [{"match": {"root_name_en": {"query": alias, "operator": "and"}}} for alias in aliases]
- dfg_inst_res = await patent_client._search(
+ async for hit in elasticsearch.scan(
index=ESIndex.DFG_INSTITUTES.value,
- payload={"query": {"bool": {"should": should_clauses, "minimum_should_match": 1}}, "size": 1000}
- )
- for hit in dfg_inst_res.get("hits", {}).get("hits", []):
+ query={"bool": {"should": should_clauses, "minimum_should_match": 1}},
+ source=["projects"],
+ cluster=ESCluster.INSE,
+ ):
for p in hit.get("_source", {}).get("projects", []):
if p.get("project_id"):
dfg_pids.append(str(p["project_id"]))
+
if dfg_pids or entity_type != "institution":
- dfg_filters = []
+ dfg_filters = [TrendQueryBuilder.build_date_range_filter("funding_start", start_year, end_year)]
if dfg_pids:
dfg_filters.append({"ids": {"values": dfg_pids}})
- dfg_res = await patent_client._search(
+
+ p_ids = []
+ async for hit in elasticsearch.scan(
index=ESIndex.DFG_PROJECTS.value,
- payload={"query": {"bool": {"filter": dfg_filters}}, "size": 10000, "_source": ["id"]}
- )
- p_ids = [str(h["_source"]["id"]) for h in dfg_res.get("hits", {}).get("hits", []) if h.get("_source", {}).get("id")]
+ query={"bool": {"filter": dfg_filters}},
+ source=["id"],
+ cluster=ESCluster.INSE,
+ ):
+ pid = hit.get("_source", {}).get("id")
+ if pid:
+ p_ids.append(str(pid))
if p_ids:
project_ids_by_index[ESIndex.PROJECTS_DFG_TOPICS.value] = p_ids
except Exception as e:
logger.warning("Failed to fetch DFG project IDs in get_top_topics_for_entity: %s", e)
- # 3. EU CORDIS
+ # 3. EU CORDIS - filter orgs and verify project start dates
eu_indices = [
(ESIndex.CORDIS_EU_HORIZON_EUROPE_ORGANIZATIONS, ESIndex.CORDIS_EU_HORIZON_EUROPE_PROJECTS, ESIndex.PROJECTS_CORDIS_EU_HEUROPE_TOPICS.value),
(ESIndex.CORDIS_EU_HORIZON_2020_ORGANIZATIONS, ESIndex.CORDIS_EU_HORIZON_2020_PROJECTS, ESIndex.PROJECTS_CORDIS_EU_H2020_TOPICS.value),
- (ESIndex.CORDIS_EU_FP7_ORGANIZATIONS, ESIndex.CORDIS_EU_FP7_PROJECTS, ESIndex.PROJECTS_CORDIS_EU_FP7_TOPICS_MAPPING.value)
+ (ESIndex.CORDIS_EU_FP7_ORGANIZATIONS, ESIndex.CORDIS_EU_FP7_PROJECTS, ESIndex.PROJECTS_CORDIS_EU_FP7_TOPICS_MAPPING.value),
]
for org_idx, proj_idx, topic_idx in eu_indices:
try:
@@ -1094,61 +370,87 @@ async def get_top_topics_for_entity(
filter_clauses.append({"terms": {"name.keyword": [alias.upper() for alias in aliases]}})
elif entity_type == "country":
filter_clauses.append({"term": {"country": entity_id.strip().upper()}})
-
- eu_org_res = await patent_client._search(
+
+ eu_org_res = await elasticsearch.search(
index=org_idx.value,
- payload={
+ body={
"query": {"bool": {"filter": filter_clauses}},
"size": 0,
- "aggs": {"project_ids": {"terms": {"field": "projectID", "size": 65536}}}
- }
+ "_source": False,
+ "aggs": {"project_ids": {"terms": {"field": "projectID", "size": 65536}}},
+ },
+ cluster=ESCluster.INSE,
)
- eu_pids = [b["key"] for b in eu_org_res.get("aggregations", {}).get("project_ids", {}).get("buckets", [])]
- if eu_pids:
- project_ids_by_index[topic_idx] = eu_pids
+ raw_eu_pids = [b["key"] for b in eu_org_res.get("aggregations", {}).get("project_ids", {}).get("buckets", [])]
+ if raw_eu_pids:
+ # Filter project IDs by start date range
+ dated_eu_pids = []
+ proj_date_filter = [
+ {"terms": {"id": raw_eu_pids}},
+ TrendQueryBuilder.build_date_range_filter("startDate", start_year, end_year),
+ ]
+ async for hit in elasticsearch.scan(
+ index=proj_idx.value,
+ query={"bool": {"filter": proj_date_filter}},
+ source=["id"],
+ cluster=ESCluster.INSE,
+ ):
+ pid = hit.get("_source", {}).get("id") or hit.get("_id")
+ if pid:
+ dated_eu_pids.append(str(pid))
+ if dated_eu_pids:
+ project_ids_by_index[topic_idx] = dated_eu_pids
except Exception as e:
logger.warning("Failed to fetch EU project IDs for %s: %s", org_idx.value, e)
- topic_counts = {}
+ # Batch multi-search for topic aggregation across chunks
+ topic_counts: dict[str, int] = {}
+ msearch_queries = []
+
for topic_idx, p_ids in project_ids_by_index.items():
if not p_ids:
continue
for i in range(0, len(p_ids), 1000):
- chunk = p_ids[i:i+1000]
+ chunk = p_ids[i : i + 1000]
payload = {
"query": {
"bool": {
"should": [
{"terms": {"project_id": chunk}},
- {"terms": {"project_id.keyword": chunk}}
+ {"terms": {"project_id.keyword": chunk}},
],
- "minimum_should_match": 1
+ "minimum_should_match": 1,
}
},
"size": 0,
+ "_source": False,
"aggs": {
"topics": {
"terms": {
"field": "topic_matches.topic_display_name.keyword",
- "size": 100
+ "size": 100,
}
}
- }
+ },
}
- try:
- res = await patent_client._search(index=topic_idx, payload=payload)
+ msearch_queries.append((topic_idx, payload))
+
+ if msearch_queries:
+ try:
+ responses = await elasticsearch.msearch(msearch_queries, cluster=ESCluster.INSE)
+ for res in responses:
buckets = res.get("aggregations", {}).get("topics", {}).get("buckets", [])
for b in buckets:
t_name = b["key"]
cnt = b["doc_count"]
topic_counts[t_name] = topic_counts.get(t_name, 0) + cnt
- except Exception as e:
- logger.warning("Failed to aggregate topics from %s: %s", topic_idx, e)
+ except Exception as e:
+ logger.warning("Failed to aggregate topics via msearch: %s", e)
sorted_topics = sorted(topic_counts.items(), key=lambda x: x[1], reverse=True)
top_slice = sorted_topics[:DEFAULT_TOP_TOPICS_SIZE]
items = [{"name": name, "count": count} for name, count in top_slice]
-
+
sum_top = sum(count for name, count in top_slice)
total_topics = sum(topic_counts.values())
other_count = max(0, total_topics - sum_top)
@@ -1162,92 +464,137 @@ async def get_top_topics_for_entity(
if search_type == "news":
try:
- res = await elasticsearch.search(
- index="aktuell_postproc",
- body={
- "query": {"match_all": {}},
- "size": 0,
- "aggs": {
- "top_topics": {
- "terms": {
- "field": "topics.display_name.keyword",
- "size": DEFAULT_TOP_TOPICS_SIZE
+ date_filter = TrendQueryBuilder.build_date_range_filter("date_year", start_year, end_year)
+ news_ids = []
+ try:
+ async for hit in elasticsearch.scan(
+ index=ESIndex.AKTUELLES.value,
+ query={"bool": {"filter": [date_filter]}},
+ source=["news_id"],
+ cluster=ESCluster.INSE,
+ ):
+ nid = hit.get("_id") or hit.get("_source", {}).get("news_id")
+ if nid:
+ news_ids.append(str(nid))
+ except Exception as e:
+ logger.warning("Failed scanning aktuell for news IDs in date range: %s", e)
+
+ topic_counts: dict[str, int] = {}
+ if news_ids:
+ msearch_queries = []
+ for i in range(0, len(news_ids), 2000):
+ chunk = news_ids[i : i + 2000]
+ payload = {
+ "query": {
+ "bool": {
+ "should": [
+ {"ids": {"values": chunk}},
+ {"terms": {"news_id.keyword": chunk}},
+ {"terms": {"news_id": chunk}},
+ ],
+ "minimum_should_match": 1,
}
- }
+ },
+ "size": 0,
+ "_source": False,
+ "aggs": {
+ "top_topics": {
+ "terms": {
+ "field": "topic_matches.topic_display_name.keyword",
+ "size": 100,
+ }
+ }
+ },
}
- },
- cluster="inse"
- )
- buckets = res.get("aggregations", {}).get("top_topics", {}).get("buckets", [])
- items = [{"name": b["key"], "count": b["doc_count"]} for b in buckets]
- total_hits = res.get("hits", {}).get("total", {})
- total_val = total_hits.get("value", 0) if isinstance(total_hits, dict) else int(total_hits or 0)
- sum_top = sum(b["count"] for b in items)
- other_count = max(0, total_val - sum_top)
+ msearch_queries.append((ESIndex.AKTUELLES_OPENALEX_TOPICS.value, payload))
+
+ if msearch_queries:
+ try:
+ responses = await elasticsearch.msearch(msearch_queries, cluster=ESCluster.INSE)
+ for res in responses:
+ buckets = res.get("aggregations", {}).get("top_topics", {}).get("buckets", [])
+ for b in buckets:
+ t_name = b["key"]
+ cnt = b["doc_count"]
+ topic_counts[t_name] = topic_counts.get(t_name, 0) + cnt
+ except Exception as e:
+ logger.warning("Failed to aggregate news top topics via msearch: %s", e)
+ else:
+ # If no year filter bounds active or scan returned no IDs, aggregate all topics directly from openalex_topics
+ try:
+ res = await elasticsearch.search(
+ index=ESIndex.AKTUELLES_OPENALEX_TOPICS.value,
+ body={
+ "query": {"match_all": {}},
+ "size": 0,
+ "_source": False,
+ "aggs": {
+ "top_topics": {
+ "terms": {
+ "field": "topic_matches.topic_display_name.keyword",
+ "size": 100,
+ }
+ }
+ },
+ },
+ cluster=ESCluster.INSE,
+ )
+ buckets = res.get("aggregations", {}).get("top_topics", {}).get("buckets", [])
+ for b in buckets:
+ t_name = b["key"]
+ cnt = b["doc_count"]
+ topic_counts[t_name] = topic_counts.get(t_name, 0) + cnt
+ except Exception as e:
+ logger.warning("Failed to fallback query news top topics: %s", e)
+
+ sorted_topics = sorted(topic_counts.items(), key=lambda x: x[1], reverse=True)
+ top_slice = sorted_topics[:DEFAULT_TOP_TOPICS_SIZE]
+ items = [{"name": name, "count": count} for name, count in top_slice]
+
+ sum_top = sum(count for name, count in top_slice)
+ total_topics = sum(topic_counts.values())
+ other_count = max(0, total_topics - sum_top)
if other_count > 0:
items.append({"name": "Andere Themen", "count": other_count})
+
return {"items": items}
except Exception as e:
logger.error("Failed to query top news topics for entity: %s", e)
return {"items": []}
# Default fallback: openalex-works* query for publications/authors
- # 1. Normalize ID and prepare filter clause
if entity_type == "institution":
- entity_url = entity_id if entity_id.startswith("http") else f"https://openalex.org/{entity_id}"
+ entity_url = to_full_inst_url(entity_id)
filter_clause = {
"nested": {
"path": "authorships.institutions",
- "query": {"term": {"authorships.institutions.id": entity_url}}
+ "query": {"term": {"authorships.institutions.id": entity_url}},
}
}
elif entity_type == "author":
- entity_url = entity_id if entity_id.startswith("http") else f"https://openalex.org/{entity_id.upper()}"
+ entity_url = to_full_inst_url(entity_id)
filter_clause = {
"nested": {
"path": "authorships",
- "query": {"term": {"authorships.author.id": entity_url}}
+ "query": {"term": {"authorships.author.id": entity_url}},
}
}
elif entity_type == "country":
filter_clause = {
"nested": {
"path": "authorships.institutions",
- "query": {"term": {"authorships.institutions.country_code": entity_id.strip().upper()}}
+ "query": {"term": {"authorships.institutions.country_code": entity_id.strip().upper()}},
}
}
elif entity_type == "region":
- ccs = []
- try:
- res = await elasticsearch.search(
- index=str(ESIndex.OPENALEX_CONTINENTS),
- query={
- "bool": {
- "should": [
- {"term": {"wikidata_id.keyword": entity_id}},
- {"term": {"id": f"https://openalex.org/continents/{entity_id}"}}
- ]
- }
- },
- size=1,
- source=["countries"],
- cluster="nes"
- )
- hits = res.get("hits", {}).get("hits", [])
- if hits:
- source = hits[0]["_source"]
- ccs = [
- c["id"].split("/")[-1].upper() for c in source.get("countries", [])
- ]
- except Exception as e:
- logger.warning("Failed to resolve continent countries in get_top_topics_for_entity: %s", e)
-
+ meta_reg = await TrendMetadataResolver.resolve_all(query_regions=[entity_id])
+ ccs = meta_reg.get("continent_country_codes", {}).get(entity_id, [])
if not ccs:
ccs = [entity_id.strip().upper()]
filter_clause = {
"nested": {
"path": "authorships.institutions",
- "query": {"terms": {"authorships.institutions.country_code": [c.upper() for c in ccs]}}
+ "query": {"terms": {"authorships.institutions.country_code": [c.upper() for c in ccs]}},
}
}
else:
@@ -1257,7 +604,7 @@ async def get_top_topics_for_entity(
"bool": {
"filter": [
filter_clause,
- {"range": {"publication_year": {"gte": start_year, "lte": end_year}}}
+ TrendQueryBuilder.build_date_range_filter("publication_year", start_year, end_year),
]
}
}
@@ -1266,16 +613,16 @@ async def get_top_topics_for_entity(
"top_topics": {
"terms": {
"field": "primary_topic.id",
- "size": DEFAULT_TOP_TOPICS_SIZE
+ "size": DEFAULT_TOP_TOPICS_SIZE,
},
"aggs": {
"top_topic_hits": {
"top_hits": {
"size": 1,
- "_source": ["primary_topic.display_name"]
+ "_source": ["primary_topic.display_name"],
}
}
- }
+ },
}
}
@@ -1284,24 +631,23 @@ async def get_top_topics_for_entity(
index="openalex-works*",
body={"query": query, "aggs": aggs},
size=0,
- cluster="nes"
+ cluster=ESCluster.NES,
)
buckets = res.get("aggregations", {}).get("top_topics", {}).get("buckets", [])
-
+
items = []
for b in buckets:
- topic_id = b["key"]
doc_count = b["doc_count"]
- hits = b["top_topic_hits"]["hits"]["hits"]
+ hits = b.get("top_topic_hits", {}).get("hits", {}).get("hits", [])
topic_name = "Unknown"
- if hits:
- topic_name = hits[0]["_source"]["primary_topic"]["display_name"]
+ if hits and "primary_topic" in hits[0]["_source"]:
+ topic_name = hits[0]["_source"]["primary_topic"].get("display_name", "Unknown")
items.append({"name": topic_name, "count": doc_count})
- # Calculate "Other"
- total_hits = res.get("hits", {}).get("total", {}).get("value", 0)
+ total_hits = res.get("hits", {}).get("total", {})
+ total_val = total_hits.get("value", 0) if isinstance(total_hits, dict) else int(total_hits or 0)
sum_top_slice = sum(b["count"] for b in items)
- other_count = max(0, total_hits - sum_top_slice)
+ other_count = max(0, total_val - sum_top_slice)
if other_count > 0:
items.append({"name": "Andere Themen", "count": other_count})
diff --git a/service/src/main/inse/university_ranking/trend_query_builder.py b/service/src/main/inse/university_ranking/trend_query_builder.py
new file mode 100644
index 00000000..dc639132
--- /dev/null
+++ b/service/src/main/inse/university_ranking/trend_query_builder.py
@@ -0,0 +1,446 @@
+import asyncio
+import logging
+from typing import Any
+
+from inse.integrations import elasticsearch
+from inse.model import ESIndex
+
+logger = logging.getLogger(__name__)
+
+# Default fallback institution: University of Duisburg-Essen
+DEFAULT_INSTITUTION_ID = "https://openalex.org/I62318514"
+DEFAULT_INSTITUTION_NAME = "University of Duisburg-Essen"
+
+
+
+def clean_inst_id(id_str: str) -> str:
+ """Extracts short OpenAlex ID from full URL or returns as-is, ensuring uppercase prefix."""
+ if not id_str:
+ return ""
+ s = id_str.strip()
+ raw_id = s.split("/")[-1] if "/" in s else s
+ if len(raw_id) > 1 and raw_id[0].isalpha():
+ return raw_id[0].upper() + raw_id[1:]
+ return raw_id.upper()
+
+
+def to_full_inst_url(id_str: str) -> str:
+ """Ensures institution ID is formatted as a full OpenAlex URL with proper capitalization."""
+ cleaned = clean_inst_id(id_str)
+ return f"https://openalex.org/{cleaned}" if cleaned else id_str
+
+
+class TrendMetadataResolver:
+ """Centralized batch resolver for OpenAlex institutions, countries, continents, and topics."""
+
+ @staticmethod
+ async def resolve_all(
+ query_institutions: list[str] | None = None,
+ query_countries: list[str] | None = None,
+ query_regions: list[str] | None = None,
+ topics: list[str] | None = None,
+ include_aliases: bool = False,
+ ) -> dict[str, Any]:
+ """Resolves metadata concurrently for entities."""
+ institutions = query_institutions or []
+ countries = [c.strip().upper() for c in (query_countries or []) if c.strip()]
+ regions = [r.strip() for r in (query_regions or []) if r.strip()]
+ topic_names = topics or []
+
+ # Prepare deduplicated OpenAlex institution IDs
+ inst_full_ids = list(set([to_full_inst_url(i) for i in institutions if i]))
+
+ async def fetch_institutions():
+ names: dict[str, str] = {DEFAULT_INSTITUTION_ID: DEFAULT_INSTITUTION_NAME}
+ codes: dict[str, str] = {}
+ aliases_map: dict[str, list[str]] = {}
+ if not inst_full_ids:
+ return names, codes, aliases_map
+ try:
+ res = await elasticsearch.search(
+ index=str(ESIndex.OPENALEX_INSTITUTIONS),
+ query={"terms": {"id": inst_full_ids}},
+ size=len(inst_full_ids),
+ source=["id", "display_name", "country_code"],
+ cluster="nes",
+ )
+ for hit in res.get("hits", {}).get("hits", []):
+ src = hit["_source"]
+ full_id = src["id"]
+ short_id = clean_inst_id(full_id)
+ d_name = src.get("display_name", full_id)
+ c_code = src.get("country_code", "")
+ names[full_id] = d_name
+ names[short_id] = d_name
+ codes[full_id] = c_code
+ codes[short_id] = c_code
+
+ if include_aliases:
+ from inse.institutions.institutions_search_client import (
+ InstitutionsSearchClient,
+ )
+ inst_client = InstitutionsSearchClient()
+
+ async def get_alias(inst_id_str: str) -> tuple[str, list[str]]:
+ s_id = clean_inst_id(inst_id_str)
+ try:
+ resolved = await inst_client.get_institution_aliases_by_oa_institution_id(s_id)
+ return s_id, resolved or [names.get(s_id, s_id)]
+ except Exception as e:
+ logger.warning("Failed to resolve aliases for %s: %s", s_id, e)
+ return s_id, [names.get(s_id, s_id)]
+
+ alias_results = await asyncio.gather(*(get_alias(i) for i in inst_full_ids))
+ for short_id, alias_list in alias_results:
+ s_upper = clean_inst_id(short_id)
+ aliases_map[s_upper] = alias_list
+ aliases_map[f"https://openalex.org/{s_upper}"] = alias_list
+
+ except Exception as e:
+ logger.warning("Failed to resolve institutions from ES: %s", e)
+ return names, codes, aliases_map
+
+ async def fetch_countries():
+ names: dict[str, str] = {}
+ if not countries:
+ return names
+ try:
+ res = await elasticsearch.search(
+ index=str(ESIndex.OPENALEX_COUNTRIES),
+ query={"terms": {"country_code": countries}},
+ size=len(countries),
+ source=["country_code", "display_name"],
+ cluster="nes",
+ )
+ for hit in res.get("hits", {}).get("hits", []):
+ src = hit["_source"]
+ names[src["country_code"]] = src["display_name"]
+ except Exception as e:
+ logger.warning("Failed to resolve countries from ES: %s", e)
+ return names
+
+ async def fetch_continents():
+ names: dict[str, str] = {}
+ ccodes: dict[str, list[str]] = {}
+ if not regions:
+ return names, ccodes
+ try:
+ res = await elasticsearch.search(
+ index=str(ESIndex.OPENALEX_CONTINENTS),
+ query={
+ "bool": {
+ "should": [
+ {"terms": {"wikidata_id.keyword": regions}},
+ {"terms": {"id": [f"https://openalex.org/continents/{r}" for r in regions]}},
+ ]
+ }
+ },
+ size=len(regions),
+ source=["id", "display_name", "wikidata_id", "countries"],
+ cluster="nes",
+ )
+ for hit in res.get("hits", {}).get("hits", []):
+ src = hit["_source"]
+ c_code = src.get("wikidata_id") or src["id"].split("/")[-1]
+ names[c_code] = src["display_name"]
+ ccodes[c_code] = [c["id"].split("/")[-1].upper() for c in src.get("countries", [])]
+ except Exception as e:
+ logger.warning("Failed to resolve continents from ES: %s", e)
+ return names, ccodes
+
+ async def fetch_topics():
+ topic_ids: dict[str, str] = {}
+ topic_display_names: dict[str, str] = {}
+ if not topic_names:
+ return topic_ids, topic_display_names
+
+ should_clauses = []
+ for t in topic_names:
+ if not t:
+ continue
+ clean_id = clean_inst_id(t)
+ canonical_id = f"https://openalex.org/{clean_id}" if clean_id.startswith("T") else t
+ if t.startswith("https://openalex.org/") or (clean_id.startswith("T") and clean_id[1:].isdigit()):
+ should_clauses.extend([
+ {"term": {"id": canonical_id}},
+ {"term": {"id.keyword": canonical_id}},
+ {"term": {"id": clean_id}},
+ {"term": {"id.keyword": clean_id}},
+ ])
+ else:
+ should_clauses.append({"match_phrase": {"display_name": t}})
+ try:
+ res = await elasticsearch.search(
+ index=ESIndex.OPENALEX_TOPICS.value,
+ query={"bool": {"should": should_clauses, "minimum_should_match": 1}},
+ size=max(10, len(topic_names) * 3),
+ source=["id", "display_name"],
+ cluster="nes",
+ )
+ for hit in res.get("hits", {}).get("hits", []):
+ src = hit["_source"]
+ full_id = src.get("id", "")
+ short_id = clean_inst_id(full_id)
+ canonical_id = f"https://openalex.org/{short_id}" if short_id.startswith("T") else full_id
+ d_name = src.get("display_name", "")
+ for t in topic_names:
+ t_clean = clean_inst_id(t)
+ t_canonical = f"https://openalex.org/{t_clean}" if t_clean.startswith("T") else t
+ if (
+ t == full_id
+ or t == short_id
+ or t == canonical_id
+ or t_canonical == canonical_id
+ or t_clean == short_id
+ or t.lower() in d_name.lower()
+ or d_name.lower() in t.lower()
+ ):
+ topic_ids[t] = canonical_id
+ topic_display_names[t] = d_name
+ topic_display_names[canonical_id] = d_name
+ topic_display_names[short_id] = d_name
+ topic_display_names[full_id] = d_name
+ except Exception as e:
+ logger.warning("Failed to resolve topic IDs from ES: %s", e)
+ return topic_ids, topic_display_names
+
+ (
+ (inst_names, inst_country_codes, inst_aliases),
+ country_names,
+ (continent_names, continent_country_codes),
+ (resolved_topic_ids, resolved_topic_names),
+ ) = await asyncio.gather(
+ fetch_institutions(),
+ fetch_countries(),
+ fetch_continents(),
+ fetch_topics(),
+ )
+
+ return {
+ "inst_names": inst_names,
+ "inst_country_codes": inst_country_codes,
+ "inst_aliases": inst_aliases,
+ "country_names": country_names,
+ "continent_names": continent_names,
+ "continent_country_codes": continent_country_codes,
+ "resolved_topic_ids": resolved_topic_ids,
+ "resolved_topic_names": resolved_topic_names,
+ }
+
+
+class TrendQueryBuilder:
+ """Helper module for building standardized, modular Elasticsearch queries."""
+
+ @staticmethod
+ def build_topic_clause(
+ topic_display_name: str,
+ resolved_topic_id: str | None = None,
+ keyword: str | None = None,
+ fuzzy: bool = True,
+ ) -> dict[str, Any]:
+ """Builds a topic or keyword matching clause."""
+ target_id = resolved_topic_id
+ if not target_id and topic_display_name:
+ c_id = clean_inst_id(topic_display_name)
+ if c_id.startswith("T") and c_id[1:].isdigit():
+ target_id = f"https://openalex.org/{c_id}"
+
+ if not fuzzy and keyword:
+ return {
+ "bool": {
+ "should": [
+ {"nested": {"path": "keywords", "query": {"match_phrase": {"keywords.display_name": keyword}}}},
+ {"match_phrase": {"primary_topic.display_name": keyword}},
+ {"match_phrase": {"display_name": keyword}},
+ {"match_phrase": {"abstract": keyword}},
+ ],
+ "minimum_should_match": 1,
+ }
+ }
+ elif target_id:
+ c_id = clean_inst_id(target_id)
+ canonical_id = f"https://openalex.org/{c_id}" if c_id.startswith("T") else target_id
+ target_ids = list(dict.fromkeys([canonical_id, target_id, c_id]))
+ return {
+ "bool": {
+ "should": [
+ {"nested": {"path": "topics", "query": {"terms": {"topics.id": target_ids}}}},
+ {"terms": {"primary_topic.id": target_ids}},
+ ],
+ "minimum_should_match": 1,
+ }
+ }
+ else:
+ return {
+ "bool": {
+ "should": [
+ {"nested": {"path": "topics", "query": {"match_phrase": {"topics.display_name": topic_display_name}}}},
+ {"match_phrase": {"primary_topic.display_name": topic_display_name}},
+ ],
+ "minimum_should_match": 1,
+ }
+ }
+
+ @staticmethod
+ def build_date_range_filter(field_name: str, start_year: int, end_year: int) -> dict[str, Any]:
+ """Builds a date range filter on publication_year or similar."""
+ return {
+ "range": {
+ field_name: {
+ "gte": start_year,
+ "lte": end_year,
+ }
+ }
+ }
+
+ @staticmethod
+ def build_entity_nested_filter(
+ inst_ids: list[str] | None = None,
+ country_codes: list[str] | None = None,
+ author_urls: list[str] | None = None,
+ ) -> dict[str, Any]:
+ """Builds a nested filter for OpenAlex works authorships/institutions."""
+ should_clauses: list[dict[str, Any]] = []
+
+ if inst_ids:
+ should_clauses.append({
+ "nested": {
+ "path": "authorships.institutions",
+ "query": {"terms": {"authorships.institutions.id": inst_ids}},
+ }
+ })
+
+ if country_codes:
+ should_clauses.append({
+ "nested": {
+ "path": "authorships.institutions",
+ "query": {"terms": {"authorships.institutions.country_code": country_codes}},
+ }
+ })
+
+ if author_urls:
+ should_clauses.append({
+ "nested": {
+ "path": "authorships",
+ "query": {"terms": {"authorships.author.id": author_urls}},
+ }
+ })
+
+ if not should_clauses:
+ return {"match_all": {}}
+ if len(should_clauses) == 1:
+ return should_clauses[0]
+ return {"bool": {"should": should_clauses, "minimum_should_match": 1}}
+
+ @staticmethod
+ def build_trend_aggregations(
+ topic_filters: dict[str, dict[str, Any]],
+ entity_filters: dict[str, dict[str, Any]],
+ years_count: int,
+ ) -> dict[str, Any]:
+ """Builds a two-layer nested aggregation (topics -> entities -> publication_year)."""
+ return {
+ "topics_agg": {
+ "filters": {"filters": topic_filters},
+ "aggs": {
+ "entities_agg": {
+ "filters": {"filters": entity_filters},
+ "aggs": {
+ "by_year": {
+ "terms": {
+ "field": "publication_year",
+ "size": years_count * 2,
+ }
+ }
+ },
+ }
+ },
+ }
+ }
+
+ @staticmethod
+ def build_bund_keyword_query(keyword: str) -> dict[str, Any]:
+ """Builds keyword filter clause for BUND projects."""
+ return {
+ "bool": {
+ "should": [{"match": {field: keyword}} for field in BUND_PROJECT_TEXT_FIELDS],
+ "minimum_should_match": 1,
+ }
+ }
+
+ @staticmethod
+ def build_dfg_keyword_query(keyword: str) -> dict[str, Any]:
+ """Builds keyword filter clause for DFG projects."""
+ return {
+ "bool": {
+ "should": [
+ {"match": {field: keyword}} for field in DFG_PROJECT_TEXT_FIELDS
+ ] + [
+ {"nested": {"path": "publications", "query": {"match": {"publications.title": keyword}}}},
+ {
+ "nested": {
+ "path": "subject_classification",
+ "query": {
+ "bool": {
+ "should": [
+ {"match": {"subject_classification.fach": keyword}},
+ {"match": {"subject_classification.fachkollegium": keyword}},
+ {"match": {"subject_classification.wissenschaftsbereich": keyword}},
+ ],
+ "minimum_should_match": 1,
+ }
+ },
+ }
+ },
+ ],
+ "minimum_should_match": 1,
+ }
+ }
+
+ @staticmethod
+ def build_cordis_keyword_query(keyword: str) -> dict[str, Any]:
+ """Builds keyword filter clause for EU CORDIS projects."""
+ return {
+ "bool": {
+ "should": [{"match": {field: keyword}} for field in CORDIS_PROJECT_TEXT_FIELDS],
+ "minimum_should_match": 1,
+ }
+ }
+
+ @staticmethod
+ def build_bund_receiver_clause(aliases: list[str]) -> dict[str, Any]:
+ """Builds Zuwendungsempfänger matching clause for BUND projects."""
+ return {
+ "bool": {
+ "should": [
+ {"match": {BUND_RECEIVER_FIELD: {"query": alias, "operator": "and"}}}
+ for alias in aliases
+ ],
+ "minimum_should_match": 1,
+ }
+ }
+
+
+BUND_RECEIVER_FIELD = "Zuwendungsempfänger"
+BUND_PROJECT_TEXT_FIELDS = [
+ "Thema",
+ "Klartext Leistungsplansystematik",
+ "Förderprofil",
+ "Leistungsplansystematik_fullname",
+]
+
+DFG_PROJECT_TEXT_FIELDS = [
+ "title_de",
+ "title_en",
+ "description",
+ "subject_area_de",
+ "subject_area_en",
+ "abstract_de",
+ "abstract_en",
+ "final_report_abstract_de",
+ "final_report_abstract_en",
+]
+
+CORDIS_PROJECT_TEXT_FIELDS = ["title", "objective"]
+AKTUELLES_SEARCH_FIELDS = ["main_content", "full_content", "maintitle", "subtitle", "intro_content"]
+
diff --git a/service/src/main/inse/university_ranking/trend_strategies.py b/service/src/main/inse/university_ranking/trend_strategies.py
index 4cf56e6e..f46c6be2 100644
--- a/service/src/main/inse/university_ranking/trend_strategies.py
+++ b/service/src/main/inse/university_ranking/trend_strategies.py
@@ -1,576 +1,31 @@
import abc
import asyncio
-import logging
import datetime
-from typing import List, Dict, Any, Optional
+import logging
+from typing import Any
+
import numpy as np
+from inse.integrations import elasticsearch
+from inse.model import ESCluster, ESIndex
from sklearn.preprocessing import MinMaxScaler
-from inse.integrations import elasticsearch
-from inse.model import ESIndex, ESCluster
from .model import (
+ TopicYearlyData,
TrendResponse,
TrendSeries,
- TopicYearlyData
)
-from .trend_logic import (
+from .trend_query_builder import (
+ AKTUELLES_SEARCH_FIELDS,
DEFAULT_INSTITUTION_ID,
- DEFAULT_INSTITUTION_NAME
+ DEFAULT_INSTITUTION_NAME,
+ TrendMetadataResolver,
+ TrendQueryBuilder,
+ clean_inst_id,
+ to_full_inst_url,
)
logger = logging.getLogger(__name__)
-class TrendStrategy(abc.ABC):
- @abc.abstractmethod
- async def get_trend(
- self,
- topics: List[str],
- keywords: Optional[List[str]] = None,
- fuzzy: bool = True,
- institutions: Optional[List[str]] = None,
- countries: Optional[List[str]] = None,
- regions: Optional[List[str]] = None,
- authors: Optional[List[str]] = None,
- ) -> TrendResponse:
- pass
-
- def _normalize_series(
- self,
- years_range: List[int],
- accumulated_data: Dict[str, Dict[str, Dict[int, tuple]]],
- topics: List[str]
- ) -> Dict[tuple, Dict[str, List[float]]]:
- series_keys = []
- raw_lists = []
- cumsum_lists = []
-
- for entity_key, topic_dict in accumulated_data.items():
- for topic, year_dict in topic_dict.items():
- raw_counts = []
- for yr in years_range:
- count, _ = year_dict[yr]
- raw_counts.append(count)
-
- cumulative_counts = list(np.cumsum(raw_counts))
- series_keys.append((entity_key, topic))
- raw_lists.append(raw_counts)
- cumsum_lists.append(cumulative_counts)
-
- normalized_lookup = {}
- if raw_lists:
- raw_matrix = np.array(raw_lists, dtype=float).T
- cumsum_matrix = np.array(cumsum_lists, dtype=float).T
-
- scaler_raw = MinMaxScaler()
- normalized_matrix = scaler_raw.fit_transform(raw_matrix)
-
- scaler_cumsum = MinMaxScaler()
- normalized_cumsum_matrix = scaler_cumsum.fit_transform(cumsum_matrix)
-
- normalized_lists = normalized_matrix.T.tolist()
- normalized_cumsum_lists = normalized_cumsum_matrix.T.tolist()
-
- for idx, (entity_key, topic) in enumerate(series_keys):
- normalized_lookup[(entity_key, topic)] = {
- "normalized": normalized_lists[idx],
- "cumulative": normalized_cumsum_lists[idx]
- }
- return normalized_lookup
-
-
-class PublicationsTrendStrategy(TrendStrategy):
- async def get_trend(
- self,
- topics: List[str],
- keywords: Optional[List[str]] = None,
- fuzzy: bool = True,
- institutions: Optional[List[str]] = None,
- countries: Optional[List[str]] = None,
- regions: Optional[List[str]] = None,
- authors: Optional[List[str]] = None,
- ) -> TrendResponse:
- start_year = 2000
- end_year = datetime.datetime.now().year - 1
- years_range = list(range(start_year, end_year + 1))
-
- primary_inst_id = DEFAULT_INSTITUTION_ID
- primary_inst_name = DEFAULT_INSTITUTION_NAME
-
- query_institutions = []
- if institutions:
- query_institutions = [i.strip() for i in institutions]
- if primary_inst_id not in query_institutions:
- query_institutions.insert(0, primary_inst_id)
-
- query_countries = countries or []
- query_regions = regions or []
-
- clean_countries = [c.strip().upper() for c in query_countries]
- clean_regions = [r.strip() for r in query_regions]
- ids_to_resolve = list(set(query_institutions))
-
- # Resolution lookups
- async def fetch_institutions():
- names = {primary_inst_id: primary_inst_name}
- codes = {}
- if not ids_to_resolve:
- return names, codes
- try:
- res = await elasticsearch.search(
- index=str(ESIndex.OPENALEX_INSTITUTIONS),
- query={"terms": {"id": ids_to_resolve}},
- size=len(ids_to_resolve),
- source=["id", "display_name", "country_code"],
- cluster="nes"
- )
- for hit in res.get("hits", {}).get("hits", []):
- source = hit["_source"]
- names[source["id"]] = source.get("display_name", source["id"])
- codes[source["id"]] = source.get("country_code", "")
- except Exception as e:
- logger.warning("Failed to resolve institution details from ES: %s", e)
- return names, codes
-
- async def fetch_countries():
- names = {}
- if not clean_countries:
- return names
- try:
- res = await elasticsearch.search(
- index=str(ESIndex.OPENALEX_COUNTRIES),
- query={"terms": {"country_code": clean_countries}},
- size=len(clean_countries),
- source=["country_code", "display_name"],
- cluster="nes"
- )
- for hit in res.get("hits", {}).get("hits", []):
- source = hit["_source"]
- names[source["country_code"]] = source["display_name"]
- except Exception as e:
- logger.warning("Failed to resolve country names from ES: %s", e)
- return names
-
- async def fetch_continents():
- names = {}
- ccodes = {}
- if not clean_regions:
- return names, ccodes
- try:
- res = await elasticsearch.search(
- index=str(ESIndex.OPENALEX_CONTINENTS),
- query={
- "bool": {
- "should": [
- {"terms": {"wikidata_id.keyword": clean_regions}},
- {"terms": {"id": [f"https://openalex.org/continents/{r}" for r in clean_regions]}}
- ]
- }
- },
- size=len(clean_regions),
- source=["id", "display_name", "wikidata_id", "countries"],
- cluster="nes"
- )
- for hit in res.get("hits", {}).get("hits", []):
- source = hit["_source"]
- c_code = source.get("wikidata_id") or source["id"].split("/")[-1]
- names[c_code] = source["display_name"]
- ccodes[c_code] = [c["id"].split("/")[-1].upper() for c in source.get("countries", [])]
- except Exception as e:
- logger.warning("Failed to resolve continent names from ES: %s", e)
- return names, ccodes
-
- async def fetch_topics():
- t_ids = {}
- try:
- res = await elasticsearch.search(
- index="openalex-topics",
- query={"bool": {"should": [{"match_phrase": {"display_name": t}} for t in topics]}},
- size=len(topics) * 2,
- source=["id", "display_name"],
- cluster="nes"
- )
- for hit in res.get("hits", {}).get("hits", []):
- source = hit["_source"]
- for t in topics:
- if t.lower() in source["display_name"].lower():
- t_ids[t] = source["id"]
- except Exception as e:
- logger.warning("Failed to resolve topic IDs from ES: %s", e)
- return t_ids
-
- (
- (resolved_names, resolved_country_codes),
- resolved_country_names,
- (resolved_continent_names, continent_country_codes),
- resolved_topic_ids
- ) = await asyncio.gather(fetch_institutions(), fetch_countries(), fetch_continents(), fetch_topics())
-
- location_mappings = continent_country_codes.copy()
-
- filters_map = {}
- for inst_id in query_institutions:
- filters_map[f"inst_{inst_id}"] = {
- "nested": {
- "path": "authorships.institutions",
- "query": {"term": {"authorships.institutions.id": inst_id}}
- }
- }
- for cc in clean_countries:
- filters_map[f"country_{cc}"] = {
- "nested": {
- "path": "authorships.institutions",
- "query": {"term": {"authorships.institutions.country_code": cc}}
- }
- }
- for r_code, member_ccs in continent_country_codes.items():
- if member_ccs:
- filters_map[f"region_{r_code}"] = {
- "nested": {
- "path": "authorships.institutions",
- "query": {"terms": {"authorships.institutions.country_code": member_ccs}}
- }
- }
-
- if not filters_map:
- return TrendResponse(series=[], years=years_range, location_mappings=location_mappings)
-
- accumulated_data = {
- key: {t: {yr: (0, 1) for yr in years_range} for t in topics}
- for key in filters_map
- }
-
- topic_clauses = []
- topic_filters = {}
- for idx, t in enumerate(topics):
- if not fuzzy and keywords and idx < len(keywords):
- kw_val = keywords[idx]
- clause = {
- "bool": {
- "should": [
- {"nested": {"path": "keywords", "query": {"match_phrase": {"keywords.display_name": kw_val}}}},
- {"match_phrase": {"primary_topic.display_name": kw_val}},
- {"match_phrase": {"display_name": kw_val}},
- {"match_phrase": {"abstract": kw_val}}
- ],
- "minimum_should_match": 1
- }
- }
- else:
- tid = resolved_topic_ids.get(t)
- if tid:
- clause = {"term": {"primary_topic.id": tid}}
- else:
- clause = {"match_phrase": {"primary_topic.display_name": t}}
- topic_clauses.append(clause)
- topic_filters[t] = clause
-
- entity_should_clauses = []
- if query_institutions:
- entity_should_clauses.append({
- "nested": {
- "path": "authorships.institutions",
- "query": {"terms": {"authorships.institutions.id": query_institutions}}
- }
- })
- if clean_countries:
- entity_should_clauses.append({
- "nested": {
- "path": "authorships.institutions",
- "query": {"terms": {"authorships.institutions.country_code": clean_countries}}
- }
- })
- all_continent_countries = []
- for member_ccs in continent_country_codes.values():
- all_continent_countries.extend(member_ccs)
- if all_continent_countries:
- entity_should_clauses.append({
- "nested": {
- "path": "authorships.institutions",
- "query": {"terms": {"authorships.institutions.country_code": list(set(all_continent_countries))}}
- }
- })
-
- filter_clauses = [
- {"range": {"publication_year": {"gte": start_year, "lte": end_year}}},
- {"bool": {"should": topic_clauses, "minimum_should_match": 1}}
- ]
- if entity_should_clauses:
- filter_clauses.append({"bool": {"should": entity_should_clauses, "minimum_should_match": 1}})
-
- query = {"bool": {"filter": filter_clauses}}
- aggregations = {
- "topics_agg": {
- "filters": {"filters": topic_filters},
- "aggs": {
- "entities_agg": {
- "filters": {"filters": filters_map},
- "aggs": {
- "by_year": {
- "terms": {"field": "publication_year", "size": len(years_range) * 2}
- }
- }
- }
- }
- }
- }
-
- try:
- res = await elasticsearch.search(
- index=f"{str(ESIndex.OPENALEX_WORKS)}*",
- body={"query": query, "aggs": aggregations},
- size=0,
- cluster="nes"
- )
- topics_buckets = res.get("aggregations", {}).get("topics_agg", {}).get("buckets", {})
- for t_name, t_bucket in topics_buckets.items():
- entities_buckets = t_bucket.get("entities_agg", {}).get("buckets", {})
- for entity_key, e_bucket in entities_buckets.items():
- year_buckets = e_bucket.get("by_year", {}).get("buckets", [])
- for yr_bucket in year_buckets:
- yr = int(yr_bucket.get("key"))
- count = int(yr_bucket.get("doc_count", 0))
- if yr in years_range:
- accumulated_data[entity_key][t_name][yr] = (count, 1)
- except Exception as e:
- logger.error("Error executing Elasticsearch publication trend: %s", e)
-
- normalized_lookup = self._normalize_series(years_range, accumulated_data, topics)
-
- series_list = []
- for entity_key, topic_dict in accumulated_data.items():
- if entity_key.startswith("inst_"):
- entity_id = entity_key[len("inst_"):]
- entity_name = resolved_names.get(entity_id, entity_id)
- entity_type = "institution"
- elif entity_key.startswith("country_"):
- entity_id = entity_key[len("country_"):]
- entity_name = resolved_country_names.get(entity_id, f"Country {entity_id}")
- entity_type = "country"
- elif entity_key.startswith("region_"):
- entity_id = entity_key[len("region_"):]
- entity_name = resolved_continent_names.get(entity_id, f"Continent {entity_id}")
- entity_type = "region"
- else:
- continue
-
- topic_data_map = {}
- for topic, year_dict in topic_dict.items():
- yearly_data_items = []
- lookup = normalized_lookup.get((entity_key, topic), {})
- norm_vals = lookup.get("normalized", [0.0] * len(years_range))
- cum_vals = lookup.get("cumulative", [0.0] * len(years_range))
-
- for idx, yr in enumerate(years_range):
- count, _ = year_dict[yr]
- yearly_data_items.append(TopicYearlyData(
- year=yr,
- raw=count,
- normalized=norm_vals[idx],
- cumulative=cum_vals[idx],
- institutions_count=1
- ))
- topic_data_map[topic] = yearly_data_items
-
- series_list.append(TrendSeries(
- entity_id=entity_id,
- entity_name=entity_name,
- entity_type=entity_type,
- country_code=resolved_country_codes.get(entity_id) if entity_type == "institution" else None,
- topic_data=topic_data_map
- ))
-
- return TrendResponse(series=series_list, years=years_range, location_mappings=location_mappings)
-
-
-class AuthorsTrendStrategy(TrendStrategy):
- async def get_trend(
- self,
- topics: List[str],
- keywords: Optional[List[str]] = None,
- fuzzy: bool = True,
- institutions: Optional[List[str]] = None,
- countries: Optional[List[str]] = None,
- regions: Optional[List[str]] = None,
- authors: Optional[List[str]] = None,
- ) -> TrendResponse:
- start_year = 2000
- end_year = datetime.datetime.now().year - 1
- years_range = list(range(start_year, end_year + 1))
-
- query_authors = authors or []
- if not query_authors:
- return TrendResponse(series=[], years=years_range)
-
- # Resolve author names from openalex-authors index using document ids
- query_authors_clean = [
- a.split("/")[-1].upper() if a.startswith("http") else a.upper()
- for a in query_authors
- ]
- resolved_names = {}
- try:
- res = await elasticsearch.search(
- index="openalex-authors",
- body={"query": {"ids": {"values": query_authors_clean}}},
- size=len(query_authors_clean),
- source=["display_name"],
- cluster="nes"
- )
- for hit in res.get("hits", {}).get("hits", []):
- short_id = hit["_id"]
- full_id = f"https://openalex.org/{short_id}"
- display_name = hit["_source"].get("display_name", short_id)
- resolved_names[short_id] = display_name
- resolved_names[full_id] = display_name
- except Exception as e:
- logger.warning("Failed to resolve author details from ES: %s", e)
-
- # Fetch topic IDs
- resolved_topic_ids = {}
- try:
- res = await elasticsearch.search(
- index="openalex-topics",
- query={"bool": {"should": [{"match_phrase": {"display_name": t}} for t in topics]}},
- size=len(topics) * 2,
- source=["id", "display_name"],
- cluster="nes"
- )
- for hit in res.get("hits", {}).get("hits", []):
- source = hit["_source"]
- for t in topics:
- if t.lower() in source["display_name"].lower():
- resolved_topic_ids[t] = source["id"]
- except Exception as e:
- logger.warning("Failed to resolve topic IDs from ES: %s", e)
-
- query_authors_full = [
- a if a.startswith("https://openalex.org/") else f"https://openalex.org/{a.upper()}"
- for a in query_authors
- ]
-
- filters_map = {}
- for auth_id in query_authors:
- auth_url = auth_id if auth_id.startswith("https://openalex.org/") else f"https://openalex.org/{auth_id.upper()}"
- filters_map[f"author_{auth_id}"] = {
- "nested": {
- "path": "authorships",
- "query": {"term": {"authorships.author.id": auth_url}}
- }
- }
-
- accumulated_data = {
- key: {t: {yr: (0, 1) for yr in years_range} for t in topics}
- for key in filters_map
- }
-
- topic_clauses = []
- topic_filters = {}
- for idx, t in enumerate(topics):
- if not fuzzy and keywords and idx < len(keywords):
- kw_val = keywords[idx]
- clause = {
- "bool": {
- "should": [
- {"nested": {"path": "keywords", "query": {"match_phrase": {"keywords.display_name": kw_val}}}},
- {"match_phrase": {"primary_topic.display_name": kw_val}},
- {"match_phrase": {"display_name": kw_val}},
- {"match_phrase": {"abstract": kw_val}}
- ],
- "minimum_should_match": 1
- }
- }
- else:
- tid = resolved_topic_ids.get(t)
- if tid:
- clause = {"term": {"primary_topic.id": tid}}
- else:
- clause = {"match_phrase": {"primary_topic.display_name": t}}
- topic_clauses.append(clause)
- topic_filters[t] = clause
-
- entity_should_clauses = [{
- "nested": {
- "path": "authorships",
- "query": {"terms": {"authorships.author.id": query_authors_full}}
- }
- }]
-
- filter_clauses = [
- {"range": {"publication_year": {"gte": start_year, "lte": end_year}}},
- {"bool": {"should": topic_clauses, "minimum_should_match": 1}},
- {"bool": {"should": entity_should_clauses, "minimum_should_match": 1}}
- ]
-
- query = {"bool": {"filter": filter_clauses}}
- aggregations = {
- "topics_agg": {
- "filters": {"filters": topic_filters},
- "aggs": {
- "entities_agg": {
- "filters": {"filters": filters_map},
- "aggs": {
- "by_year": {
- "terms": {"field": "publication_year", "size": len(years_range) * 2}
- }
- }
- }
- }
- }
- }
-
- try:
- res = await elasticsearch.search(
- index=f"{str(ESIndex.OPENALEX_WORKS)}*",
- body={"query": query, "aggs": aggregations},
- size=0,
- cluster="nes"
- )
- topics_buckets = res.get("aggregations", {}).get("topics_agg", {}).get("buckets", {})
- for t_name, t_bucket in topics_buckets.items():
- entities_buckets = t_bucket.get("entities_agg", {}).get("buckets", {})
- for entity_key, e_bucket in entities_buckets.items():
- year_buckets = e_bucket.get("by_year", {}).get("buckets", [])
- for yr_bucket in year_buckets:
- yr = int(yr_bucket.get("key"))
- count = int(yr_bucket.get("doc_count", 0))
- if yr in years_range:
- accumulated_data[entity_key][t_name][yr] = (count, 1)
- except Exception as e:
- logger.error("Error executing Elasticsearch author trend: %s", e)
-
- normalized_lookup = self._normalize_series(years_range, accumulated_data, topics)
-
- series_list = []
- for entity_key, topic_dict in accumulated_data.items():
- entity_id = entity_key[len("author_"):]
- entity_name = resolved_names.get(entity_id, entity_id)
-
- topic_data_map = {}
- for topic, year_dict in topic_dict.items():
- yearly_data_items = []
- lookup = normalized_lookup.get((entity_key, topic), {})
- norm_vals = lookup.get("normalized", [0.0] * len(years_range))
- cum_vals = lookup.get("cumulative", [0.0] * len(years_range))
-
- for idx, yr in enumerate(years_range):
- count, _ = year_dict[yr]
- yearly_data_items.append(TopicYearlyData(
- year=yr,
- raw=count,
- normalized=norm_vals[idx],
- cumulative=cum_vals[idx],
- institutions_count=1
- ))
- topic_data_map[topic] = yearly_data_items
-
- series_list.append(TrendSeries(
- entity_id=entity_id,
- entity_name=entity_name,
- entity_type="author",
- topic_data=topic_data_map
- ))
-
- return TrendResponse(series=series_list, years=years_range)
-
USPTO_PATENT_FIELDS = [
"title",
"abstract",
@@ -592,21 +47,416 @@ EPO_PATENT_FIELDS = [
"openalex_topics.topic_id",
]
+DFG_INSTITUTION_FIELDS = [
+ "Antragstellende Institution",
+ "Mitantragstellende Institution",
+ "Beteiligte Einrichtung",
+ "Beteiligte Hochschule",
+ "Beteiligte Institution",
+ "IGK-Partnerinstitution",
+ "Partnerorganisation",
+ "Unternehmen",
+]
+
+
+class TrendStrategy(abc.ABC):
+ @abc.abstractmethod
+ async def get_trend(
+ self,
+ topics: list[str],
+ keywords: list[str] | None = None,
+ fuzzy: bool = True,
+ institutions: list[str] | None = None,
+ countries: list[str] | None = None,
+ regions: list[str] | None = None,
+ authors: list[str] | None = None,
+ ) -> TrendResponse:
+ pass
+
+ def _get_years_range(self, start_year: int = 2000) -> list[int]:
+ end_year = datetime.datetime.now().year - 1
+ return list(range(start_year, end_year + 1))
+
+ def _normalize_series(
+ self,
+ years_range: list[int],
+ accumulated_data: dict[str, dict[str, dict[int, tuple]]],
+ topics: list[str],
+ ) -> dict[tuple, dict[str, list[float]]]:
+ series_keys = []
+ raw_lists = []
+ cumsum_lists = []
+
+ for entity_key, topic_dict in accumulated_data.items():
+ for topic, year_dict in topic_dict.items():
+ raw_counts = []
+ for yr in years_range:
+ count, _ = year_dict[yr]
+ raw_counts.append(count)
+
+ cumulative_counts = list(np.cumsum(raw_counts))
+ series_keys.append((entity_key, topic))
+ raw_lists.append(raw_counts)
+ cumsum_lists.append(cumulative_counts)
+
+ normalized_lookup = {}
+ if raw_lists:
+ raw_matrix = np.array(raw_lists, dtype=float).T
+ cumsum_matrix = np.array(cumsum_lists, dtype=float).T
+
+ scaler_raw = MinMaxScaler()
+ normalized_matrix = scaler_raw.fit_transform(raw_matrix)
+
+ scaler_cumsum = MinMaxScaler()
+ normalized_cumsum_matrix = scaler_cumsum.fit_transform(cumsum_matrix)
+
+ normalized_lists = normalized_matrix.T.tolist()
+ normalized_cumsum_lists = normalized_cumsum_matrix.T.tolist()
+
+ for idx, (entity_key, topic) in enumerate(series_keys):
+ normalized_lookup[(entity_key, topic)] = {
+ "normalized": normalized_lists[idx],
+ "cumulative": normalized_cumsum_lists[idx],
+ }
+ return normalized_lookup
+
+
+class PublicationsTrendStrategy(TrendStrategy):
+ async def get_trend(
+ self,
+ topics: list[str],
+ keywords: list[str] | None = None,
+ fuzzy: bool = True,
+ institutions: list[str] | None = None,
+ countries: list[str] | None = None,
+ regions: list[str] | None = None,
+ authors: list[str] | None = None,
+ ) -> TrendResponse:
+ years_range = self._get_years_range()
+ start_year, end_year = years_range[0], years_range[-1]
+
+ query_institutions = [i.strip() for i in (institutions or []) if i.strip()]
+ if DEFAULT_INSTITUTION_ID not in query_institutions:
+ query_institutions.insert(0, DEFAULT_INSTITUTION_ID)
+
+ meta = await TrendMetadataResolver.resolve_all(
+ query_institutions=query_institutions,
+ query_countries=countries,
+ query_regions=regions,
+ topics=topics,
+ )
+
+ resolved_names = meta["inst_names"]
+ resolved_country_codes = meta["inst_country_codes"]
+ resolved_country_names = meta["country_names"]
+ resolved_continent_names = meta["continent_names"]
+ continent_country_codes = meta["continent_country_codes"]
+ resolved_topic_ids = meta["resolved_topic_ids"]
+
+ location_mappings = continent_country_codes.copy()
+
+ filters_map: dict[str, dict[str, Any]] = {}
+ for inst_id in query_institutions:
+ full_url = to_full_inst_url(inst_id)
+ filters_map[f"inst_{full_url}"] = {
+ "nested": {
+ "path": "authorships.institutions",
+ "query": {"term": {"authorships.institutions.id": full_url}},
+ }
+ }
+
+ clean_countries = [c.strip().upper() for c in (countries or []) if c.strip()]
+ for cc in clean_countries:
+ filters_map[f"country_{cc}"] = {
+ "nested": {
+ "path": "authorships.institutions",
+ "query": {"term": {"authorships.institutions.country_code": cc}},
+ }
+ }
+
+ for r_code, member_ccs in continent_country_codes.items():
+ if member_ccs:
+ filters_map[f"region_{r_code}"] = {
+ "nested": {
+ "path": "authorships.institutions",
+ "query": {"terms": {"authorships.institutions.country_code": member_ccs}},
+ }
+ }
+
+ if not filters_map:
+ return TrendResponse(series=[], years=years_range, location_mappings=location_mappings)
+
+ accumulated_data: dict[str, dict[str, dict[int, tuple]]] = {
+ key: {t: {yr: (0, 1) for yr in years_range} for t in topics}
+ for key in filters_map
+ }
+
+ topic_clauses = []
+ topic_filters = {}
+ for idx, t in enumerate(topics):
+ kw_val = keywords[idx] if (keywords and idx < len(keywords)) else None
+ clause = TrendQueryBuilder.build_topic_clause(
+ topic_display_name=t,
+ resolved_topic_id=resolved_topic_ids.get(t),
+ keyword=kw_val,
+ fuzzy=fuzzy,
+ )
+ topic_clauses.append(clause)
+ topic_filters[t] = clause
+
+ all_continent_countries = []
+ for member_ccs in continent_country_codes.values():
+ all_continent_countries.extend(member_ccs)
+
+ inst_urls = [to_full_inst_url(i) for i in query_institutions]
+ entity_filter = TrendQueryBuilder.build_entity_nested_filter(
+ inst_ids=inst_urls,
+ country_codes=list(set(clean_countries + all_continent_countries)),
+ )
+
+ filter_clauses = [
+ TrendQueryBuilder.build_date_range_filter("publication_year", start_year, end_year),
+ {"bool": {"should": topic_clauses, "minimum_should_match": 1}},
+ entity_filter,
+ ]
+
+ query = {"bool": {"filter": filter_clauses}}
+ aggregations = TrendQueryBuilder.build_trend_aggregations(
+ topic_filters=topic_filters,
+ entity_filters=filters_map,
+ years_count=len(years_range),
+ )
+
+ try:
+ res = await elasticsearch.search(
+ index=f"{ESIndex.OPENALEX_WORKS!s}*",
+ body={"query": query, "aggs": aggregations},
+ size=0,
+ cluster=ESCluster.NES,
+ )
+ topics_buckets = res.get("aggregations", {}).get("topics_agg", {}).get("buckets", {})
+ for t_name, t_bucket in topics_buckets.items():
+ entities_buckets = t_bucket.get("entities_agg", {}).get("buckets", {})
+ for entity_key, e_bucket in entities_buckets.items():
+ year_buckets = e_bucket.get("by_year", {}).get("buckets", [])
+ for yr_bucket in year_buckets:
+ yr = int(yr_bucket.get("key"))
+ count = int(yr_bucket.get("doc_count", 0))
+ if yr in years_range:
+ accumulated_data[entity_key][t_name][yr] = (count, 1)
+ except Exception as e:
+ logger.error("Error executing Elasticsearch publication trend: %s", e)
+
+ normalized_lookup = self._normalize_series(years_range, accumulated_data, topics)
+
+ series_list: list[TrendSeries] = []
+ for entity_key, topic_dict in accumulated_data.items():
+ if entity_key.startswith("inst_"):
+ entity_id = entity_key[len("inst_"):]
+ entity_name = resolved_names.get(entity_id, resolved_names.get(clean_inst_id(entity_id), entity_id))
+ entity_type = "institution"
+ elif entity_key.startswith("country_"):
+ entity_id = entity_key[len("country_"):]
+ entity_name = resolved_country_names.get(entity_id, f"Country {entity_id}")
+ entity_type = "country"
+ elif entity_key.startswith("region_"):
+ entity_id = entity_key[len("region_"):]
+ entity_name = resolved_continent_names.get(entity_id, f"Continent {entity_id}")
+ entity_type = "region"
+ else:
+ continue
+
+ topic_data_map: dict[str, list[TopicYearlyData]] = {}
+ for topic, year_dict in topic_dict.items():
+ yearly_data_items: list[TopicYearlyData] = []
+ lookup = normalized_lookup.get((entity_key, topic), {})
+ norm_vals = lookup.get("normalized", [0.0] * len(years_range))
+ cum_vals = lookup.get("cumulative", [0.0] * len(years_range))
+
+ for idx, yr in enumerate(years_range):
+ count, _ = year_dict[yr]
+ yearly_data_items.append(
+ TopicYearlyData(
+ year=yr,
+ raw=count,
+ normalized=norm_vals[idx],
+ cumulative=cum_vals[idx],
+ institutions_count=1,
+ )
+ )
+ topic_data_map[topic] = yearly_data_items
+
+ series_list.append(
+ TrendSeries(
+ entity_id=entity_id,
+ entity_name=entity_name,
+ entity_type=entity_type,
+ country_code=resolved_country_codes.get(entity_id) if entity_type == "institution" else None,
+ topic_data=topic_data_map,
+ )
+ )
+
+ return TrendResponse(series=series_list, years=years_range, location_mappings=location_mappings)
+
+
+class AuthorsTrendStrategy(TrendStrategy):
+ async def get_trend(
+ self,
+ topics: list[str],
+ keywords: list[str] | None = None,
+ fuzzy: bool = True,
+ institutions: list[str] | None = None,
+ countries: list[str] | None = None,
+ regions: list[str] | None = None,
+ authors: list[str] | None = None,
+ ) -> TrendResponse:
+ years_range = self._get_years_range()
+ start_year, end_year = years_range[0], years_range[-1]
+
+ query_authors = authors or []
+ if not query_authors:
+ return TrendResponse(series=[], years=years_range)
+
+ query_authors_clean = [clean_inst_id(a) for a in query_authors if a]
+
+ # Resolve author display names
+ resolved_names: dict[str, str] = {}
+ try:
+ res = await elasticsearch.search(
+ index="openalex-authors",
+ body={"query": {"ids": {"values": query_authors_clean}}},
+ size=len(query_authors_clean),
+ source=["display_name"],
+ cluster=ESCluster.NES,
+ )
+ for hit in res.get("hits", {}).get("hits", []):
+ short_id = clean_inst_id(hit["_id"])
+ full_id = f"https://openalex.org/{short_id}"
+ display_name = hit["_source"].get("display_name", short_id)
+ resolved_names[short_id] = display_name
+ resolved_names[full_id] = display_name
+ except Exception as e:
+ logger.warning("Failed to resolve author details from ES: %s", e)
+
+ meta = await TrendMetadataResolver.resolve_all(topics=topics)
+ resolved_topic_ids = meta["resolved_topic_ids"]
+
+ query_authors_full = [to_full_inst_url(a) for a in query_authors if a]
+
+ filters_map: dict[str, dict[str, Any]] = {}
+ for auth_id, auth_url in zip(query_authors, query_authors_full):
+ clean_id = clean_inst_id(auth_id)
+ filters_map[f"author_{clean_id}"] = {
+ "nested": {
+ "path": "authorships",
+ "query": {"term": {"authorships.author.id": auth_url}},
+ }
+ }
+
+ accumulated_data: dict[str, dict[str, dict[int, tuple]]] = {
+ key: {t: {yr: (0, 1) for yr in years_range} for t in topics}
+ for key in filters_map
+ }
+
+ topic_clauses = []
+ topic_filters = {}
+ for idx, t in enumerate(topics):
+ kw_val = keywords[idx] if (keywords and idx < len(keywords)) else None
+ clause = TrendQueryBuilder.build_topic_clause(
+ topic_display_name=t,
+ resolved_topic_id=resolved_topic_ids.get(t),
+ keyword=kw_val,
+ fuzzy=fuzzy,
+ )
+ topic_clauses.append(clause)
+ topic_filters[t] = clause
+
+ entity_filter = TrendQueryBuilder.build_entity_nested_filter(author_urls=query_authors_full)
+
+ filter_clauses = [
+ TrendQueryBuilder.build_date_range_filter("publication_year", start_year, end_year),
+ {"bool": {"should": topic_clauses, "minimum_should_match": 1}},
+ entity_filter,
+ ]
+
+ query = {"bool": {"filter": filter_clauses}}
+ aggregations = TrendQueryBuilder.build_trend_aggregations(
+ topic_filters=topic_filters,
+ entity_filters=filters_map,
+ years_count=len(years_range),
+ )
+
+ try:
+ res = await elasticsearch.search(
+ index=f"{ESIndex.OPENALEX_WORKS!s}*",
+ body={"query": query, "aggs": aggregations},
+ size=0,
+ cluster=ESCluster.NES,
+ )
+ topics_buckets = res.get("aggregations", {}).get("topics_agg", {}).get("buckets", {})
+ for t_name, t_bucket in topics_buckets.items():
+ entities_buckets = t_bucket.get("entities_agg", {}).get("buckets", {})
+ for entity_key, e_bucket in entities_buckets.items():
+ year_buckets = e_bucket.get("by_year", {}).get("buckets", [])
+ for yr_bucket in year_buckets:
+ yr = int(yr_bucket.get("key"))
+ count = int(yr_bucket.get("doc_count", 0))
+ if yr in years_range:
+ accumulated_data[entity_key][t_name][yr] = (count, 1)
+ except Exception as e:
+ logger.error("Error executing Elasticsearch author trend: %s", e)
+
+ normalized_lookup = self._normalize_series(years_range, accumulated_data, topics)
+
+ series_list: list[TrendSeries] = []
+ for entity_key, topic_dict in accumulated_data.items():
+ entity_id = entity_key[len("author_"):]
+ entity_name = resolved_names.get(entity_id, resolved_names.get(clean_inst_id(entity_id), entity_id))
+
+ topic_data_map: dict[str, list[TopicYearlyData]] = {}
+ for topic, year_dict in topic_dict.items():
+ yearly_data_items: list[TopicYearlyData] = []
+ lookup = normalized_lookup.get((entity_key, topic), {})
+ norm_vals = lookup.get("normalized", [0.0] * len(years_range))
+ cum_vals = lookup.get("cumulative", [0.0] * len(years_range))
+
+ for idx, yr in enumerate(years_range):
+ count, _ = year_dict[yr]
+ yearly_data_items.append(
+ TopicYearlyData(
+ year=yr,
+ raw=count,
+ normalized=norm_vals[idx],
+ cumulative=cum_vals[idx],
+ institutions_count=1,
+ )
+ )
+ topic_data_map[topic] = yearly_data_items
+
+ series_list.append(
+ TrendSeries(
+ entity_id=entity_id,
+ entity_name=entity_name,
+ entity_type="author",
+ topic_data=topic_data_map,
+ )
+ )
+
+ return TrendResponse(series=series_list, years=years_range)
+
+
class PatentsTrendStrategy(TrendStrategy):
async def get_trend(
self,
- topics: List[str],
- keywords: Optional[List[str]] = None,
+ topics: list[str],
+ keywords: list[str] | None = None,
fuzzy: bool = True,
- institutions: Optional[List[str]] = None,
- countries: Optional[List[str]] = None,
- regions: Optional[List[str]] = None,
- authors: Optional[List[str]] = None,
+ institutions: list[str] | None = None,
+ countries: list[str] | None = None,
+ regions: list[str] | None = None,
+ authors: list[str] | None = None,
) -> TrendResponse:
- start_year = 2000
- end_year = datetime.datetime.now().year - 1
- years_range = list(range(start_year, end_year + 1))
-
+ years_range = self._get_years_range()
primary_inst_id = DEFAULT_INSTITUTION_ID
primary_inst_name = DEFAULT_INSTITUTION_NAME
world_inst_id = "WORLD"
@@ -617,18 +467,27 @@ class PatentsTrendStrategy(TrendStrategy):
(world_inst_id, world_inst_name),
]
- # 1. Fetch UDE patents using get_org_patents_by_institution_id
+ # 1. Fetch UDE patents without page limits / truncation
from inse.patents.org.logic import get_org_patents_by_institution_id
ude_patents = []
try:
- res = await get_org_patents_by_institution_id(
- institution_id=primary_inst_id,
- match_type="all",
- page=0,
- size=10000,
- )
- ude_patents = res.patents
+ # Stream all patent pages if multiple exist
+ page = 0
+ page_size = 1000
+ while True:
+ res = await get_org_patents_by_institution_id(
+ institution_id=primary_inst_id,
+ match_type="all",
+ page=page,
+ size=page_size,
+ )
+ if not res or not res.patents:
+ break
+ ude_patents.extend(res.patents)
+ if len(res.patents) < page_size or (res.total is not None and len(ude_patents) >= res.total):
+ break
+ page += 1
except Exception as e:
logger.error("Failed to fetch org-patents for UDE: %s", e)
@@ -645,28 +504,25 @@ class PatentsTrendStrategy(TrendStrategy):
return True
return False
- def matches_patent(patent, topic: str, keyword: Optional[str], is_fuzzy: bool) -> bool:
+ def matches_patent(patent, topic: str, keyword: str | None, is_fuzzy: bool) -> bool:
if matches_topic(patent, topic):
return True
- if not is_fuzzy and keyword:
+ t_lower = topic.lower()
+ if patent.title and t_lower in patent.title.lower():
+ return True
+ if patent.abstract and t_lower in patent.abstract.lower():
+ return True
+ if keyword:
kw_lower = keyword.lower()
if patent.title and kw_lower in patent.title.lower():
return True
if patent.abstract and kw_lower in patent.abstract.lower():
return True
- if patent.openalex_topics:
- for ot in patent.openalex_topics:
- if ot.topic_display_name and kw_lower in ot.topic_display_name.lower():
- return True
return False
- accumulated_data = {
- f"inst_{primary_inst_id}": {
- t: {yr: (0, 1) for yr in years_range} for t in topics
- },
- f"inst_{world_inst_id}": {
- t: {yr: (0, 1) for yr in years_range} for t in topics
- },
+ accumulated_data: dict[str, dict[str, dict[int, tuple]]] = {
+ f"inst_{primary_inst_id}": {t: {yr: (0, 1) for yr in years_range} for t in topics},
+ f"inst_{world_inst_id}": {t: {yr: (0, 1) for yr in years_range} for t in topics},
}
# Filter UDE patents per topic
@@ -682,16 +538,18 @@ class PatentsTrendStrategy(TrendStrategy):
except Exception:
pass
- # 2. Fetch Global / Rest der Welt patent counts via ES aggregations across EPO and USPTO
+ # 2. Fetch Global / Rest der Welt patent counts via ES multi-search (_msearch)
+ msearch_queries = []
+ topic_search_indices = []
+
for idx, t in enumerate(topics):
- search_term = (
- t if fuzzy else (keywords[idx] if keywords and idx < len(keywords) else t)
- )
+ search_term = t if fuzzy else (keywords[idx] if keywords and idx < len(keywords) else t)
if not search_term:
continue
uspto_query = {
"size": 0,
+ "_source": False,
"query": {
"multi_match": {
"query": search_term,
@@ -700,15 +558,11 @@ class PatentsTrendStrategy(TrendStrategy):
"operator": "or",
}
},
- "aggs": {
- "by_year": {
- "terms": {"field": "publication_year", "size": 50}
- }
- },
+ "aggs": {"by_year": {"terms": {"field": "publication_year", "size": 100}}},
}
-
epo_query = {
"size": 0,
+ "_source": False,
"query": {
"multi_match": {
"query": search_term,
@@ -717,63 +571,43 @@ class PatentsTrendStrategy(TrendStrategy):
"operator": "or",
}
},
- "aggs": {
- "by_year": {
- "terms": {"field": "date_publication_year", "size": 50}
- }
- },
+ "aggs": {"by_year": {"terms": {"field": "date_publication_year", "size": 100}}},
}
+ msearch_queries.append((ESIndex.USPTO_INDEX.value, uspto_query))
+ msearch_queries.append((ESIndex.EPO_INDEX.value, epo_query))
+ topic_search_indices.append(t)
+
+ if msearch_queries:
try:
- uspto_res, epo_res = await asyncio.gather(
- elasticsearch.search(
- index="uspto_patents_3.0",
- body=uspto_query,
- cluster=ESCluster.INSE,
- ),
- elasticsearch.search(
- index="epo_index_1.0",
- body=epo_query,
- cluster=ESCluster.INSE,
- ),
- return_exceptions=True,
- )
-
- if not isinstance(uspto_res, Exception):
- buckets = uspto_res.get("aggregations", {}).get("by_year", {}).get("buckets", [])
+ responses = await elasticsearch.msearch(msearch_queries, cluster=ESCluster.INSE)
+ for i, res in enumerate(responses):
+ t_name = topic_search_indices[i // 2]
+ buckets = res.get("aggregations", {}).get("by_year", {}).get("buckets", [])
for b in buckets:
try:
yr_val = int(b.get("key"))
if yr_val in years_range:
- cnt, _ = accumulated_data[f"inst_{world_inst_id}"][t][yr_val]
- accumulated_data[f"inst_{world_inst_id}"][t][yr_val] = (cnt + int(b.get("doc_count", 0)), 1)
+ cnt, _ = accumulated_data[f"inst_{world_inst_id}"][t_name][yr_val]
+ accumulated_data[f"inst_{world_inst_id}"][t_name][yr_val] = (
+ cnt + int(b.get("doc_count", 0)),
+ 1,
+ )
except Exception:
pass
-
- if not isinstance(epo_res, Exception):
- buckets = epo_res.get("aggregations", {}).get("by_year", {}).get("buckets", [])
- for b in buckets:
- try:
- yr_val = int(b.get("key"))
- if yr_val in years_range:
- cnt, _ = accumulated_data[f"inst_{world_inst_id}"][t][yr_val]
- accumulated_data[f"inst_{world_inst_id}"][t][yr_val] = (cnt + int(b.get("doc_count", 0)), 1)
- except Exception:
- pass
-
except Exception as exc:
- logger.error("Failed to query global patent trends: %s", exc)
+ logger.error("Failed to query global patent trends via msearch: %s", exc)
normalized_lookup = self._normalize_series(years_range, accumulated_data, topics)
- series_list = []
+ series_list: list[TrendSeries] = []
for inst_id, entity_name in series_entities:
entity_key = f"inst_{inst_id}"
topic_dict = accumulated_data[entity_key]
- topic_data_map = {}
+ topic_data_map: dict[str, list[TopicYearlyData]] = {}
for topic, year_dict in topic_dict.items():
- yearly_data_items = []
+ yearly_data_items: list[TopicYearlyData] = []
lookup = normalized_lookup.get((entity_key, topic), {})
norm_vals = lookup.get("normalized", [0.0] * len(years_range))
cum_vals = lookup.get("cumulative", [0.0] * len(years_range))
@@ -801,174 +635,58 @@ class PatentsTrendStrategy(TrendStrategy):
)
)
- return TrendResponse(
- series=series_list, years=years_range, location_mappings={}
- )
+ return TrendResponse(series=series_list, years=years_range, location_mappings={})
-DFG_INSTITUTION_FIELDS = [
- "Antragstellende Institution",
- "Mitantragstellende Institution",
- "Beteiligte Einrichtung",
- "Beteiligte Hochschule",
- "Beteiligte Institution",
- "IGK-Partnerinstitution",
- "Partnerorganisation",
- "Unternehmen",
-]
-
class ProjectsTrendStrategy(TrendStrategy):
async def get_trend(
self,
- topics: List[str],
- keywords: Optional[List[str]] = None,
+ topics: list[str],
+ keywords: list[str] | None = None,
fuzzy: bool = True,
- institutions: Optional[List[str]] = None,
- countries: Optional[List[str]] = None,
- regions: Optional[List[str]] = None,
- authors: Optional[List[str]] = None,
+ institutions: list[str] | None = None,
+ countries: list[str] | None = None,
+ regions: list[str] | None = None,
+ authors: list[str] | None = None,
) -> TrendResponse:
- start_year = 2000
- end_year = datetime.datetime.now().year - 1
- years_range = list(range(start_year, end_year + 1))
-
- primary_inst_id = DEFAULT_INSTITUTION_ID
- primary_inst_name = DEFAULT_INSTITUTION_NAME
-
- def clean_inst_id(id_str: str) -> str:
- return id_str.split("/")[-1] if id_str and "/" in id_str else id_str
+ years_range = self._get_years_range()
+ start_year, end_year = years_range[0], years_range[-1]
primary_inst_short = clean_inst_id(DEFAULT_INSTITUTION_ID)
- primary_inst_full = f"https://openalex.org/{primary_inst_short}"
+ primary_inst_full = to_full_inst_url(DEFAULT_INSTITUTION_ID)
raw_insts = institutions or []
query_insts_short = [clean_inst_id(i) for i in raw_insts if i]
if primary_inst_short not in query_insts_short:
query_insts_short.insert(0, primary_inst_short)
- # Preserve order while deduplicating
- seen_insts = set()
- dedup_inst_shorts = []
- for s_id in query_insts_short:
- if s_id not in seen_insts:
- seen_insts.add(s_id)
- dedup_inst_shorts.append(s_id)
+ dedup_inst_shorts = list(dict.fromkeys(query_insts_short))
+ ids_to_resolve = [to_full_inst_url(i) for i in dedup_inst_shorts]
- query_institutions = dedup_inst_shorts
- ids_to_resolve = [f"https://openalex.org/{i}" for i in query_institutions]
+ meta = await TrendMetadataResolver.resolve_all(
+ query_institutions=ids_to_resolve,
+ query_countries=countries,
+ query_regions=regions,
+ include_aliases=True,
+ )
- query_countries = countries or []
- query_regions = regions or []
-
- clean_countries = [c.strip().upper() for c in query_countries]
- clean_regions = [r.strip() for r in query_regions]
-
- # 1. Resolve institution names & aliases, country names, and regions
- async def fetch_institutions():
- names = {primary_inst_full: DEFAULT_INSTITUTION_NAME, primary_inst_short: DEFAULT_INSTITUTION_NAME}
- codes = {}
- aliases_map = {}
- if not ids_to_resolve:
- return names, codes, aliases_map
- try:
- from inse.institutions.institutions_search_client import InstitutionsSearchClient
- client = InstitutionsSearchClient()
- res = await elasticsearch.search(
- index=ESIndex.OPENALEX_INSTITUTIONS.value,
- query={"terms": {"id": ids_to_resolve}},
- size=len(ids_to_resolve),
- source=["id", "display_name", "country_code"],
- cluster="nes"
- )
- for hit in res.get("hits", {}).get("hits", []):
- source = hit["_source"]
- full_id = source["id"]
- short_id = clean_inst_id(full_id)
- d_name = source.get("display_name", full_id)
- c_code = source.get("country_code", "")
- names[full_id] = d_name
- names[short_id] = d_name
- codes[full_id] = c_code
- codes[short_id] = c_code
-
- async def get_aliases(inst_short_id):
- try:
- resolved = await client.get_institution_aliases_by_oa_institution_id(inst_short_id)
- return inst_short_id, resolved or [names.get(inst_short_id, inst_short_id)]
- except Exception as e:
- logger.warning("Failed to get aliases for %s: %s", inst_short_id, e)
- return inst_short_id, [names.get(inst_short_id, inst_short_id)]
-
- alias_results = await asyncio.gather(*(get_aliases(i) for i in query_institutions))
- for inst_short_id, aliases in alias_results:
- aliases_map[inst_short_id] = aliases
- aliases_map[f"https://openalex.org/{inst_short_id}"] = aliases
- except Exception as e:
- logger.warning("Failed to resolve institution details from ES: %s", e)
- return names, codes, aliases_map
-
- async def fetch_countries():
- names = {}
- if not clean_countries:
- return names
- try:
- res = await elasticsearch.search(
- index=ESIndex.OPENALEX_COUNTRIES.value,
- query={"terms": {"country_code": clean_countries}},
- size=len(clean_countries),
- source=["country_code", "display_name"],
- cluster="nes"
- )
- for hit in res.get("hits", {}).get("hits", []):
- source = hit["_source"]
- names[source["country_code"]] = source["display_name"]
- except Exception as e:
- logger.warning("Failed to resolve country names from ES: %s", e)
- return names
-
- async def fetch_continents():
- names = {}
- ccodes = {}
- if not clean_regions:
- return names, ccodes
- try:
- res = await elasticsearch.search(
- index=ESIndex.OPENALEX_CONTINENTS.value,
- query={
- "bool": {
- "should": [
- {"terms": {"wikidata_id.keyword": clean_regions}},
- {"terms": {"id": [f"https://openalex.org/continents/{r}" for r in clean_regions]}}
- ]
- }
- },
- size=len(clean_regions),
- source=["id", "display_name", "wikidata_id", "countries"],
- cluster="nes"
- )
- for hit in res.get("hits", {}).get("hits", []):
- source = hit["_source"]
- c_code = source.get("wikidata_id") or source["id"].split("/")[-1]
- names[c_code] = source["display_name"]
- ccodes[c_code] = [c["id"].split("/")[-1].upper() for c in source.get("countries", [])]
- except Exception as e:
- logger.warning("Failed to resolve continent names from ES: %s", e)
- return names, ccodes
-
- (
- (resolved_names, resolved_country_codes, resolved_aliases),
- resolved_country_names,
- (resolved_continent_names, continent_country_codes)
- ) = await asyncio.gather(fetch_institutions(), fetch_countries(), fetch_continents())
+ resolved_names = meta["inst_names"]
+ resolved_country_codes = meta["inst_country_codes"]
+ resolved_aliases = meta["inst_aliases"]
+ resolved_country_names = meta["country_names"]
+ resolved_continent_names = meta["continent_names"]
+ continent_country_codes = meta["continent_country_codes"]
location_mappings = continent_country_codes.copy()
- # Build list of entities
- filters_map = {}
- for inst_id in query_institutions:
+ filters_map: dict[str, tuple[str, Any]] = {}
+ for inst_id in dedup_inst_shorts:
filters_map[f"inst_{inst_id}"] = ("institution", inst_id)
+
+ clean_countries = [c.strip().upper() for c in (countries or []) if c.strip()]
for cc in clean_countries:
filters_map[f"country_{cc}"] = ("country", cc)
+
for r_code, member_ccs in continent_country_codes.items():
if member_ccs:
filters_map[f"region_{r_code}"] = ("region", member_ccs)
@@ -976,136 +694,128 @@ class ProjectsTrendStrategy(TrendStrategy):
if not filters_map:
return TrendResponse(series=[], years=years_range, location_mappings=location_mappings)
- from inse.patents.search_client import PatentSearchClient
- patent_client = PatentSearchClient()
+ # Resolve DFG project IDs for institutions via scan/search without size limit cutoffs
+ dfg_institution_projects: dict[str, list[str]] = {}
- # Resolve DFG project IDs for institutions using dfg_institutes_2.0 root_name_en matches
- dfg_institution_projects = {}
- async def resolve_dfg_projects_for_inst(inst_id):
+ async def resolve_dfg_projects(inst_id: str) -> tuple[str, list[str]]:
aliases = resolved_aliases.get(inst_id, [])
if not aliases:
return inst_id, []
-
- should_clauses = []
- for alias in aliases:
- should_clauses.append({
- "match": {
- "root_name_en": {
- "query": alias,
- "operator": "and"
- }
- }
- })
+ should_clauses = [{"match": {"root_name_en": {"query": alias, "operator": "and"}}} for alias in aliases]
try:
- res = await patent_client._search(
+ p_ids = set()
+ async for hit in elasticsearch.scan(
index=ESIndex.DFG_INSTITUTES.value,
- payload={
- "query": {
- "bool": {
- "should": should_clauses,
- "minimum_should_match": 1
- }
- },
- "size": 1000
- }
- )
- hits = res.get("hits", {}).get("hits", [])
- p_ids = []
- for hit in hits:
- source = hit.get("_source", {})
- for p in source.get("projects", []):
+ query={"bool": {"should": should_clauses, "minimum_should_match": 1}},
+ source=["projects"],
+ cluster=ESCluster.INSE,
+ ):
+ for p in hit.get("_source", {}).get("projects", []):
pid = p.get("project_id")
if pid:
- p_ids.append(str(pid))
- return inst_id, list(set(p_ids))
+ p_ids.add(str(pid))
+ return inst_id, list(p_ids)
except Exception as e:
- logger.warning("Failed to query dfg_institutes_2.0 for %s: %s", inst_id, e)
+ logger.warning("Failed to query dfg_institutes for %s: %s", inst_id, e)
return inst_id, []
- if query_institutions:
- dfg_resolve_results = await asyncio.gather(*(
- resolve_dfg_projects_for_inst(inst_id) for inst_id in query_institutions
- ))
+ if dedup_inst_shorts:
+ dfg_resolve_results = await asyncio.gather(*(resolve_dfg_projects(i) for i in dedup_inst_shorts))
for inst_id, p_ids in dfg_resolve_results:
dfg_institution_projects[inst_id] = p_ids
- # 2. Fetch matched project IDs for each topic (if fuzzy is True)
- topic_project_ids = {}
+ # Fetch matched project IDs for each topic using elasticsearch.scan (uncapped full retrieval)
+ topic_project_ids: dict[str, dict[str, list[str]]] = {}
indices_mapping = {
- ESIndex.PROJECTS_CORDIS_EU_HEUROPE_TOPICS.value: (ESIndex.CORDIS_EU_HORIZON_EUROPE_ORGANIZATIONS, ESIndex.CORDIS_EU_HORIZON_EUROPE_PROJECTS),
- ESIndex.PROJECTS_CORDIS_EU_H2020_TOPICS.value: (ESIndex.CORDIS_EU_HORIZON_2020_ORGANIZATIONS, ESIndex.CORDIS_EU_HORIZON_2020_PROJECTS),
- ESIndex.PROJECTS_CORDIS_EU_FP7_TOPICS_MAPPING.value: (ESIndex.CORDIS_EU_FP7_ORGANIZATIONS, ESIndex.CORDIS_EU_FP7_PROJECTS),
+ ESIndex.PROJECTS_CORDIS_EU_HEUROPE_TOPICS.value: (
+ ESIndex.CORDIS_EU_HORIZON_EUROPE_ORGANIZATIONS,
+ ESIndex.CORDIS_EU_HORIZON_EUROPE_PROJECTS,
+ ),
+ ESIndex.PROJECTS_CORDIS_EU_H2020_TOPICS.value: (
+ ESIndex.CORDIS_EU_HORIZON_2020_ORGANIZATIONS,
+ ESIndex.CORDIS_EU_HORIZON_2020_PROJECTS,
+ ),
+ ESIndex.PROJECTS_CORDIS_EU_FP7_TOPICS_MAPPING.value: (
+ ESIndex.CORDIS_EU_FP7_ORGANIZATIONS,
+ ESIndex.CORDIS_EU_FP7_PROJECTS,
+ ),
ESIndex.PROJECTS_BUND_TOPICS.value: (ESIndex.PROJECTS_BUND_V1, None),
- ESIndex.PROJECTS_DFG_TOPICS.value: (ESIndex.DFG_PROJECTS, None)
+ ESIndex.PROJECTS_DFG_TOPICS.value: (ESIndex.DFG_PROJECTS, None),
}
if fuzzy:
- for idx, t in enumerate(topics):
+ for t in topics:
topic_project_ids[t] = {ind: [] for ind in indices_mapping}
- map_query = {
- "query": {
- "term": {
- "topic_matches.topic_display_name.keyword": t
- }
- },
- "size": 10000
- }
+ map_query = {"term": {"topic_matches.topic_display_name.keyword": t}}
- map_tasks = []
- ind_list = list(indices_mapping.keys())
- for ind in ind_list:
- map_tasks.append(patent_client._search(index=ind, payload=map_query))
+ async def scan_topic_projects(mapping_index: str) -> tuple[str, list[str]]:
+ p_ids = set()
+ try:
+ async for hit in elasticsearch.scan(
+ index=mapping_index,
+ query=map_query,
+ source=["project_id"],
+ cluster=ESCluster.INSE,
+ ):
+ pid = hit.get("_source", {}).get("project_id")
+ if pid:
+ p_ids.add(str(pid))
+ except Exception as ex:
+ logger.warning("Failed scanning project topic mapping index %s: %s", mapping_index, ex)
+ return mapping_index, list(p_ids)
- map_responses = await asyncio.gather(*map_tasks, return_exceptions=True)
- for m_idx, res_map in enumerate(map_responses):
- if isinstance(res_map, Exception):
- logger.warning("Failed to query mapping index %s: %s", ind_list[m_idx], res_map)
- continue
- hits = res_map.get("hits", {}).get("hits", [])
- p_ids = [h["_source"]["project_id"] for h in hits if h.get("_source", {}).get("project_id")]
- topic_project_ids[t][ind_list[m_idx]] = p_ids
+ scan_results = await asyncio.gather(*(scan_topic_projects(ind) for ind in indices_mapping))
+ for ind_name, p_ids in scan_results:
+ topic_project_ids[t][ind_name] = p_ids
- # 3. For each entity & topic, filter actual indices and aggregate
- accumulated_data = {
+ accumulated_data: dict[str, dict[str, dict[int, tuple]]] = {
key: {t: {yr: (0, 1) for yr in years_range} for t in topics}
for key in filters_map
}
- async def query_project_trends(entity_key, entity_type, entity_val, topic, keyword):
- # Fetch entity_project_ids for EU cordis indices (HEU, H2020, FP7)
- async def get_eu_entity_project_ids(org_index):
+ # Batch all project queries into single msearch request
+ msearch_queries = []
+ meta_indices: list[tuple[str, str, str]] = [] # (entity_key, topic, agg_type)
+
+ async def prepare_project_trend_queries(entity_key: str, entity_type: str, entity_val: Any, topic: str, keyword: str):
+ eu_indices = [
+ (
+ ESIndex.CORDIS_EU_HORIZON_EUROPE_ORGANIZATIONS,
+ ESIndex.CORDIS_EU_HORIZON_EUROPE_PROJECTS,
+ ESIndex.PROJECTS_CORDIS_EU_HEUROPE_TOPICS.value,
+ ),
+ (
+ ESIndex.CORDIS_EU_HORIZON_2020_ORGANIZATIONS,
+ ESIndex.CORDIS_EU_HORIZON_2020_PROJECTS,
+ ESIndex.PROJECTS_CORDIS_EU_H2020_TOPICS.value,
+ ),
+ (
+ ESIndex.CORDIS_EU_FP7_ORGANIZATIONS,
+ ESIndex.CORDIS_EU_FP7_PROJECTS,
+ ESIndex.PROJECTS_CORDIS_EU_FP7_TOPICS_MAPPING.value,
+ ),
+ ]
+
+ async def get_eu_entity_project_ids(org_index: ESIndex) -> list[str]:
filter_clauses = []
if entity_type == "institution":
aliases = resolved_aliases.get(entity_val, [])
- filter_clauses.append({
- "terms": {
- "name.keyword": [alias.upper() for alias in aliases]
- }
- })
+ filter_clauses.append({"terms": {"name.keyword": [alias.upper() for alias in aliases]}})
elif entity_type == "country":
filter_clauses.append({"term": {"country": entity_val}})
elif entity_type == "region":
filter_clauses.append({"terms": {"country": entity_val}})
-
+
try:
- res = await patent_client._search(
+ res = await elasticsearch.search(
index=org_index.value,
- payload={
- "query": {
- "bool": {
- "filter": filter_clauses
- }
- },
+ body={
+ "query": {"bool": {"filter": filter_clauses}},
"size": 0,
- "aggs": {
- "project_ids": {
- "terms": {
- "field": "projectID",
- "size": 65536
- }
- }
- }
- }
+ "_source": False,
+ "aggs": {"project_ids": {"terms": {"field": "projectID", "size": 65536}}},
+ },
+ cluster=ESCluster.INSE,
)
buckets = res.get("aggregations", {}).get("project_ids", {}).get("buckets", [])
return [b["key"] for b in buckets]
@@ -1113,47 +823,21 @@ class ProjectsTrendStrategy(TrendStrategy):
logger.warning("Failed to query CORDIS orgs index %s: %s", org_index.value, e)
return []
- eu_indices = [
- (ESIndex.CORDIS_EU_HORIZON_EUROPE_ORGANIZATIONS, ESIndex.CORDIS_EU_HORIZON_EUROPE_PROJECTS, "projects_cordiseu_heurope_openalex_topics"),
- (ESIndex.CORDIS_EU_HORIZON_2020_ORGANIZATIONS, ESIndex.CORDIS_EU_HORIZON_2020_PROJECTS, "projects_cordiseu_h2020_openalex_topics"),
- (ESIndex.CORDIS_EU_FP7_ORGANIZATIONS, ESIndex.CORDIS_EU_FP7_PROJECTS, "projects_cordiseu_fp7_openalex_topics")
- ]
-
- eu_org_tasks = [get_eu_entity_project_ids(org_idx) for org_idx, _, _ in eu_indices]
- eu_org_ids_list = await asyncio.gather(*eu_org_tasks)
-
- actual_tasks = []
-
- # 1. BUND
+ eu_org_ids_list = await asyncio.gather(*(get_eu_entity_project_ids(org_idx) for org_idx, _, _ in eu_indices))
+
+ # BUND
include_bund = True
- if entity_type == "country" and entity_val != "DE":
+ if entity_type == "country" and entity_val != "DE" or entity_type == "region" and "DE" not in entity_val:
include_bund = False
- elif entity_type == "region" and "DE" not in entity_val:
- include_bund = False
-
+
if include_bund:
bund_filters = []
if entity_type == "institution":
aliases = resolved_aliases.get(entity_val, [])
- bund_filters.append({
- "bool": {
- "should": [
- {
- "match": {
- "Zuwendungsempfänger": {
- "query": alias,
- "operator": "and"
- }
- }
- }
- for alias in aliases
- ],
- "minimum_should_match": 1
- }
- })
-
+ bund_filters.append(TrendQueryBuilder.build_bund_receiver_clause(aliases))
+
if fuzzy:
- p_ids = topic_project_ids[topic].get("projects_bund_openalex_topics", [])
+ p_ids = topic_project_ids[topic].get(ESIndex.PROJECTS_BUND_TOPICS.value, [])
if p_ids:
bund_filters.append({"ids": {"values": p_ids}})
bund_query = {"query": {"bool": {"filter": bund_filters}}}
@@ -1163,53 +847,34 @@ class ProjectsTrendStrategy(TrendStrategy):
bund_query = {
"query": {
"bool": {
- "filter": [
- {
- "bool": {
- "should": [
- {"match": {"Thema": keyword}},
- {"match": {"Klartext Leistungsplansystematik": keyword}},
- {"match": {"Förderprofil": keyword}},
- {"match": {"Leistungsplansystematik_fullname": keyword}}
- ],
- "minimum_should_match": 1
- }
- }
- ] + bund_filters
+ "filter": [TrendQueryBuilder.build_bund_keyword_query(keyword)] + bund_filters
}
}
}
-
+
if bund_query:
bund_payload = {
**bund_query,
"size": 0,
+ "_source": False,
"aggs": {
"projects_by_year": {
"date_histogram": {
"field": "funding_start",
"calendar_interval": "year",
- "format": "yyyy"
+ "format": "yyyy",
}
}
- }
+ },
}
- async def process_bund():
- try:
- res = await patent_client._search(index=ESIndex.PROJECTS_BUND_V1.value, payload=bund_payload)
- return "date", res.get("aggregations", {}).get("projects_by_year", {}).get("buckets", [])
- except Exception as e:
- logger.warning("Failed to query BUND projects: %s", e)
- return "date", []
- actual_tasks.append(process_bund())
+ msearch_queries.append((ESIndex.PROJECTS_BUND_V1.value, bund_payload))
+ meta_indices.append((entity_key, topic, "date"))
- # 2. DFG
+ # DFG
include_dfg = True
- if entity_type == "country" and entity_val != "DE":
+ if entity_type == "country" and entity_val != "DE" or entity_type == "region" and "DE" not in entity_val:
include_dfg = False
- elif entity_type == "region" and "DE" not in entity_val:
- include_dfg = False
-
+
if include_dfg:
dfg_filters = []
dfg_inst_pids = None
@@ -1235,73 +900,24 @@ class ProjectsTrendStrategy(TrendStrategy):
else:
if dfg_inst_pids is not None:
dfg_filters.append({"ids": {"values": dfg_inst_pids}})
-
- dfg_filters.append({
- "bool": {
- "should": [
- {"match": {"title_de": keyword}},
- {"match": {"title_en": keyword}},
- {"match": {"description": keyword}},
- {"match": {"subject_area_de": keyword}},
- {"match": {"subject_area_en": keyword}},
- {"match": {"abstract_de": keyword}},
- {"match": {"abstract_en": keyword}},
- {"match": {"final_report_abstract_de": keyword}},
- {"match": {"final_report_abstract_en": keyword}},
- {
- "nested": {
- "path": "publications",
- "query": {"match": {"publications.title": keyword}}
- }
- },
- {
- "nested": {
- "path": "subject_classification",
- "query": {
- "bool": {
- "should": [
- {"match": {"subject_classification.fach": keyword}},
- {"match": {"subject_classification.fachkollegium": keyword}},
- {"match": {"subject_classification.wissenschaftsbereich": keyword}}
- ],
- "minimum_should_match": 1
- }
- }
- }
- }
- ],
- "minimum_should_match": 1
- }
- })
+ dfg_filters.append(TrendQueryBuilder.build_dfg_keyword_query(keyword))
if include_dfg:
dfg_payload = {
"query": {"bool": {"filter": dfg_filters}},
"size": 0,
- "aggs": {
- "projects_by_year": {
- "terms": {
- "field": "funding_start",
- "size": 100
- }
- }
- }
+ "_source": False,
+ "aggs": {"projects_by_year": {"terms": {"field": "funding_start", "size": 100}}},
}
- async def process_dfg():
- try:
- res = await patent_client._search(index=ESIndex.DFG_PROJECTS.value, payload=dfg_payload)
- return "terms", res.get("aggregations", {}).get("projects_by_year", {}).get("buckets", [])
- except Exception as e:
- logger.warning("Failed to query DFG projects: %s", e)
- return "terms", []
- actual_tasks.append(process_dfg())
+ msearch_queries.append((ESIndex.DFG_PROJECTS.value, dfg_payload))
+ meta_indices.append((entity_key, topic, "terms"))
- # 3. EU Cordis
+ # EU CORDIS
for eu_idx, (org_index, proj_index, mapping_key) in enumerate(eu_indices):
entity_project_ids = eu_org_ids_list[eu_idx]
if not entity_project_ids:
continue
-
+
if fuzzy:
p_ids = topic_project_ids[topic].get(mapping_key, [])
common_ids = list(set(p_ids) & set(entity_project_ids))
@@ -1315,88 +931,76 @@ class ProjectsTrendStrategy(TrendStrategy):
"bool": {
"filter": [
{"terms": {"id": entity_project_ids}},
- {
- "bool": {
- "should": [
- {"match": {"title": keyword}},
- {"match": {"objective": keyword}}
- ],
- "minimum_should_match": 1
- }
- }
+ TrendQueryBuilder.build_cordis_keyword_query(keyword),
]
}
}
}
-
+
if proj_query:
proj_payload = {
**proj_query,
"size": 0,
+ "_source": False,
"aggs": {
"projects_by_year": {
"date_histogram": {
"field": "startDate",
"calendar_interval": "year",
- "format": "yyyy"
+ "format": "yyyy",
}
}
- }
+ },
}
- async def process_cordis(p_idx=proj_index, payload=proj_payload):
- try:
- res = await patent_client._search(index=p_idx.value, payload=payload)
- return "date", res.get("aggregations", {}).get("projects_by_year", {}).get("buckets", [])
- except Exception as e:
- logger.warning("Failed to query CORDIS projects index %s: %s", p_idx.value, e)
- return "date", []
- actual_tasks.append(process_cordis())
+ msearch_queries.append((proj_index.value, proj_payload))
+ meta_indices.append((entity_key, topic, "date"))
- if not actual_tasks:
- return
-
- results = await asyncio.gather(*actual_tasks)
- year_counts = {}
- for agg_type, buckets in results:
- for b in buckets:
- if agg_type == "date":
- yr_str = b.get("key_as_string") or str(b.get("key", ""))
- if yr_str:
- try:
- yr = int(yr_str[:4])
- if start_year <= yr <= end_year:
- year_counts[yr] = year_counts.get(yr, 0) + b.get("doc_count", 0)
- except ValueError:
- pass
- else: # terms
- yr_val = b.get("key")
- if yr_val is not None:
- try:
- yr = int(str(yr_val)[:4])
- if start_year <= yr <= end_year:
- year_counts[yr] = year_counts.get(yr, 0) + b.get("doc_count", 0)
- except ValueError:
- pass
-
- for yr, count in year_counts.items():
- accumulated_data[entity_key][topic][yr] = (count, 1)
-
- tasks = []
+ prep_tasks = []
for entity_key, (entity_type, entity_val) in filters_map.items():
for idx, topic in enumerate(topics):
keyword = keywords[idx] if (keywords and idx < len(keywords)) else topic
- tasks.append(query_project_trends(entity_key, entity_type, entity_val, topic, keyword))
+ prep_tasks.append(prepare_project_trend_queries(entity_key, entity_type, entity_val, topic, keyword))
- await asyncio.gather(*tasks)
+ await asyncio.gather(*prep_tasks)
+
+ if msearch_queries:
+ try:
+ responses = await elasticsearch.msearch(msearch_queries, cluster=ESCluster.INSE)
+ for idx, res in enumerate(responses):
+ entity_key, topic, agg_type = meta_indices[idx]
+ buckets = res.get("aggregations", {}).get("projects_by_year", {}).get("buckets", [])
+ for b in buckets:
+ if agg_type == "date":
+ yr_str = b.get("key_as_string") or str(b.get("key", ""))
+ if yr_str:
+ try:
+ yr = int(yr_str[:4])
+ if start_year <= yr <= end_year:
+ c_cnt, _ = accumulated_data[entity_key][topic][yr]
+ accumulated_data[entity_key][topic][yr] = (c_cnt + b.get("doc_count", 0), 1)
+ except ValueError:
+ pass
+ else:
+ yr_val = b.get("key")
+ if yr_val is not None:
+ try:
+ yr = int(str(yr_val)[:4])
+ if start_year <= yr <= end_year:
+ c_cnt, _ = accumulated_data[entity_key][topic][yr]
+ accumulated_data[entity_key][topic][yr] = (c_cnt + b.get("doc_count", 0), 1)
+ except ValueError:
+ pass
+ except Exception as e:
+ logger.error("Failed to execute msearch for project trends: %s", e)
normalized_lookup = self._normalize_series(years_range, accumulated_data, topics)
- series_list = []
+ series_list: list[TrendSeries] = []
for entity_key, topic_dict in accumulated_data.items():
entity_type, entity_val = filters_map[entity_key]
if entity_type == "institution":
- entity_id = entity_val if entity_val.startswith("http") else f"https://openalex.org/{entity_val}"
- entity_name = resolved_names.get(entity_val, entity_val).split("/")[-1]
+ entity_id = to_full_inst_url(entity_val)
+ entity_name = resolved_names.get(entity_val, resolved_names.get(clean_inst_id(entity_val), entity_val))
elif entity_type == "country":
entity_id = entity_val
entity_name = resolved_country_names.get(entity_id, f"Country {entity_id}")
@@ -1404,64 +1008,78 @@ class ProjectsTrendStrategy(TrendStrategy):
entity_id = entity_key[len("region_"):]
entity_name = resolved_continent_names.get(entity_id, f"Continent {entity_id}")
- topic_data_map = {}
+ topic_data_map: dict[str, list[TopicYearlyData]] = {}
for topic, year_dict in topic_dict.items():
- yearly_data_items = []
+ yearly_data_items: list[TopicYearlyData] = []
lookup = normalized_lookup.get((entity_key, topic), {})
norm_vals = lookup.get("normalized", [0.0] * len(years_range))
cum_vals = lookup.get("cumulative", [0.0] * len(years_range))
for idx, yr in enumerate(years_range):
count, _ = year_dict[yr]
- yearly_data_items.append(TopicYearlyData(
- year=yr,
- raw=count,
- normalized=norm_vals[idx],
- cumulative=cum_vals[idx],
- institutions_count=1
- ))
+ yearly_data_items.append(
+ TopicYearlyData(
+ year=yr,
+ raw=count,
+ normalized=norm_vals[idx],
+ cumulative=cum_vals[idx],
+ institutions_count=1,
+ )
+ )
topic_data_map[topic] = yearly_data_items
- series_list.append(TrendSeries(
- entity_id=entity_id,
- entity_name=entity_name,
- entity_type=entity_type,
- country_code=resolved_country_codes.get(entity_id) if entity_type == "institution" else None,
- topic_data=topic_data_map
- ))
+ series_list.append(
+ TrendSeries(
+ entity_id=entity_id,
+ entity_name=entity_name,
+ entity_type=entity_type,
+ country_code=resolved_country_codes.get(entity_id) if entity_type == "institution" else None,
+ topic_data=topic_data_map,
+ )
+ )
return TrendResponse(series=series_list, years=years_range, location_mappings=location_mappings)
-### requires proper index (currently only workaround)
+
class NewsTrendStrategy(TrendStrategy):
async def get_trend(
self,
- topics: List[str],
- keywords: Optional[List[str]] = None,
+ topics: list[str],
+ keywords: list[str] | None = None,
fuzzy: bool = True,
- institutions: Optional[List[str]] = None,
- countries: Optional[List[str]] = None,
- regions: Optional[List[str]] = None,
- authors: Optional[List[str]] = None,
+ institutions: list[str] | None = None,
+ countries: list[str] | None = None,
+ regions: list[str] | None = None,
+ authors: list[str] | None = None,
) -> TrendResponse:
- start_year = 2000
- end_year = datetime.datetime.now().year - 1
- years_range = list(range(start_year, end_year + 1))
+ years_range = self._get_years_range()
+ start_year, end_year = years_range[0], years_range[-1]
- # Each series entity represents one topic/keyword.
accumulated_data = {
f"news_topic_{t}": {top: {yr: (0, 1) for yr in years_range} for top in topics}
for t in topics
}
- AKTUELLES_SEARCH_FIELDS = ["main_content", "full_content", "maintitle", "subtitle", "intro_content"]
STOP_WORDS = {"in", "and", "or", "und", "oder", "der", "die", "das", "von", "mit", "zu", "at", "by", "on", "for", "to", "a", "an", "the"}
- # Query UDE news postprocessed index to get matching news IDs without 10k capping
- async def fetch_news_ids_for_term(idx: int, t_name: str) -> List[str]:
+ # Scan UDE news OpenAlex topics index to get matching news IDs without size limit cutoffs
+ async def fetch_news_ids_for_term(idx: int, t_name: str) -> list[str]:
+ news_ids: Set[str] = set()
if fuzzy:
term = t_name
- es_query = {"match": {"topics.display_name": term}}
+ es_query = {"term": {"topic_matches.topic_display_name.keyword": term}}
+ try:
+ async for hit in elasticsearch.scan(
+ index=ESIndex.AKTUELLES_OPENALEX_TOPICS.value,
+ query=es_query,
+ source=["news_id"],
+ cluster=ESCluster.INSE,
+ ):
+ nid = hit.get("_source", {}).get("news_id") or hit.get("_id")
+ if nid:
+ news_ids.add(str(nid))
+ except Exception as e:
+ logger.warning("Failed to scan UDE news OpenAlex topics index %s: %s", ESIndex.AKTUELLES_OPENALEX_TOPICS.value, e)
else:
if keywords and idx < len(keywords) and keywords[idx]:
raw_kw = keywords[idx]
@@ -1470,125 +1088,117 @@ class NewsTrendStrategy(TrendStrategy):
term = t_name
else:
term = t_name
- es_query = {"match": {"keywords": term}}
- news_ids = set()
- try:
- async for hit in elasticsearch.scan(
- index="aktuell_postproc",
- query=es_query,
- source=["news_id"],
- cluster="inse"
- ):
- nid = hit.get("_source", {}).get("news_id")
- if nid:
- news_ids.add(nid)
- except Exception as e:
- logger.warning("Failed to scan UDE news postproc: %s", e)
-
- # If non-fuzzy keyword search, also search article content fields in 'aktuell' index
- if not fuzzy and term and term.lower() not in STOP_WORDS and len(term.strip()) > 1:
- try:
- content_query = {
- "query_string": {
- "query": term,
- "fields": AKTUELLES_SEARCH_FIELDS,
- "default_operator": "AND"
+ # If non-fuzzy keyword search, search article content fields in 'aktuell' index
+ if term and term.lower() not in STOP_WORDS and len(term.strip()) > 1:
+ try:
+ content_query = {
+ "query_string": {
+ "query": term,
+ "fields": AKTUELLES_SEARCH_FIELDS,
+ "default_operator": "AND",
+ }
}
- }
- async for hit in elasticsearch.scan(
- index="aktuell",
- query=content_query,
- source=["news_id"],
- cluster="inse"
- ):
- nid = hit.get("_id") or hit.get("_source", {}).get("news_id")
- if nid:
- news_ids.add(nid)
- except Exception as e:
- logger.warning("Failed to scan UDE news content in aktuell: %s", e)
+ async for hit in elasticsearch.scan(
+ index=ESIndex.AKTUELLES.value,
+ query=content_query,
+ source=["news_id"],
+ cluster=ESCluster.INSE,
+ ):
+ nid = hit.get("_id") or hit.get("_source", {}).get("news_id")
+ if nid:
+ news_ids.add(str(nid))
+ except Exception as e:
+ logger.warning("Failed to scan UDE news content in aktuell: %s", e)
return list(news_ids)
- # Find all matching news IDs concurrently
- matching_ids_list = await asyncio.gather(*[
- fetch_news_ids_for_term(idx, t) for idx, t in enumerate(topics)
- ])
+ matching_ids_list = await asyncio.gather(*(fetch_news_ids_for_term(idx, t) for idx, t in enumerate(topics)))
- async def count_by_year(t_name: str, news_ids: List[str]):
+ async def count_by_year(t_name: str, news_ids: list[str]):
if not news_ids:
return
entity_key = f"news_topic_{t_name}"
- # Batch news_ids in chunks of 2000 to avoid ES query clause limits
- for i in range(0, len(news_ids), 2000):
- chunk = news_ids[i:i+2000]
- try:
- res = await elasticsearch.search(
- index="aktuell",
- body={
- "query": {"bool": {"filter": [
- {"ids": {"values": chunk}},
- {"range": {"date_year": {"gte": start_year, "lte": end_year}}}
- ]}},
- "aggs": {
- "by_year": {
- "terms": {"field": "date_year", "size": len(years_range) * 2}
- }
- }
- },
- size=0,
- cluster="inse"
- )
- buckets = res.get("aggregations", {}).get("by_year", {}).get("buckets", [])
- for b in buckets:
- yr = int(b.get("key"))
- count = int(b.get("doc_count", 0))
- if yr in years_range:
- prev_count, _ = accumulated_data[entity_key][t_name][yr]
- accumulated_data[entity_key][t_name][yr] = (prev_count + count, 1)
- except Exception as e:
- logger.warning("Failed to aggregate news years from ES for chunk: %s", e)
- # Aggregate news publication years concurrently
- await asyncio.gather(*[
- count_by_year(t, ids) for t, ids in zip(topics, matching_ids_list)
- ])
+ # Prepare multi-search payloads for chunks of news_ids to avoid payload limits
+ chunk_queries = []
+ for i in range(0, len(news_ids), 2000):
+ chunk = news_ids[i : i + 2000]
+ q_body = {
+ "query": {
+ "bool": {
+ "filter": [
+ {
+ "bool": {
+ "should": [
+ {"ids": {"values": chunk}},
+ {"terms": {"news_id.keyword": chunk}},
+ {"terms": {"news_id": chunk}},
+ ],
+ "minimum_should_match": 1,
+ }
+ },
+ TrendQueryBuilder.build_date_range_filter("date_year", start_year, end_year),
+ ]
+ }
+ },
+ "aggs": {"by_year": {"terms": {"field": "date_year", "size": len(years_range) * 2}}},
+ "size": 0,
+ "_source": False,
+ }
+ chunk_queries.append((ESIndex.AKTUELLES.value, q_body))
+
+ if chunk_queries:
+ try:
+ responses = await elasticsearch.msearch(chunk_queries, cluster=ESCluster.INSE)
+ for res in responses:
+ buckets = res.get("aggregations", {}).get("by_year", {}).get("buckets", [])
+ for b in buckets:
+ yr = int(b.get("key"))
+ count = int(b.get("doc_count", 0))
+ if yr in years_range:
+ prev_count, _ = accumulated_data[entity_key][t_name][yr]
+ accumulated_data[entity_key][t_name][yr] = (prev_count + count, 1)
+ except Exception as e:
+ logger.warning("Failed to aggregate news years from ES via msearch: %s", e)
+
+ await asyncio.gather(*(count_by_year(t, ids) for t, ids in zip(topics, matching_ids_list)))
normalized_lookup = self._normalize_series(years_range, accumulated_data, topics)
- series_list = []
+ series_list: list[TrendSeries] = []
for t_name in topics:
entity_key = f"news_topic_{t_name}"
- topic_data_map = {}
+ topic_data_map: dict[str, list[TopicYearlyData]] = {}
- # Extract yearly data items for t_name from accumulated_data[entity_key][t_name]
lookup = normalized_lookup.get((entity_key, t_name), {})
norm_vals = lookup.get("normalized", [0.0] * len(years_range))
cum_vals = lookup.get("cumulative", [0.0] * len(years_range))
- yearly_data_items = []
+ yearly_data_items: list[TopicYearlyData] = []
for idx, yr in enumerate(years_range):
count, _ = accumulated_data[entity_key][t_name][yr]
- yearly_data_items.append(TopicYearlyData(
- year=yr,
- raw=count,
- normalized=norm_vals[idx],
- cumulative=cum_vals[idx],
- institutions_count=1
- ))
+ yearly_data_items.append(
+ TopicYearlyData(
+ year=yr,
+ raw=count,
+ normalized=norm_vals[idx],
+ cumulative=cum_vals[idx],
+ institutions_count=1,
+ )
+ )
- # Populate topic_data_map for ALL topic keys in topics with t_name's yearly items.
- # This ensures uni-trend-chart accessing topic_data[selectedTopic] for any selected topic
- # always gets t_name's true data items for series t_name.
for topic in topics:
topic_data_map[topic] = yearly_data_items
- series_list.append(TrendSeries(
- entity_id=entity_key,
- entity_name=t_name,
- entity_type="institution",
- topic_data=topic_data_map
- ))
+ series_list.append(
+ TrendSeries(
+ entity_id=entity_key,
+ entity_name=t_name,
+ entity_type="institution",
+ topic_data=topic_data_map,
+ )
+ )
return TrendResponse(series=series_list, years=years_range)
@@ -1596,17 +1206,17 @@ class NewsTrendStrategy(TrendStrategy):
class AllTrendStrategy(TrendStrategy):
async def get_trend(
self,
- topics: List[str],
- keywords: Optional[List[str]] = None,
+ topics: list[str],
+ keywords: list[str] | None = None,
fuzzy: bool = True,
- institutions: Optional[List[str]] = None,
- countries: Optional[List[str]] = None,
- regions: Optional[List[str]] = None,
- authors: Optional[List[str]] = None,
+ institutions: list[str] | None = None,
+ countries: list[str] | None = None,
+ regions: list[str] | None = None,
+ authors: list[str] | None = None,
) -> TrendResponse:
- target_inst = institutions[0] if institutions and len(institutions) > 0 else DEFAULT_INSTITUTION_ID
- short_id = target_inst.split("/")[-1].upper()
- is_ude = (short_id == "I62318514")
+ target_inst = institutions[0] if (institutions and len(institutions) > 0) else DEFAULT_INSTITUTION_ID
+ short_id = clean_inst_id(target_inst).upper()
+ is_ude = short_id == "I62318514"
pub_strat = PublicationsTrendStrategy()
pat_strat = PatentsTrendStrategy()
@@ -1615,7 +1225,7 @@ class AllTrendStrategy(TrendStrategy):
tasks = [
pub_strat.get_trend(topics, keywords, fuzzy, institutions=[target_inst]),
pat_strat.get_trend(topics, keywords, fuzzy, institutions=[target_inst]),
- proj_strat.get_trend(topics, keywords, fuzzy, institutions=[target_inst])
+ proj_strat.get_trend(topics, keywords, fuzzy, institutions=[target_inst]),
]
if is_ude:
@@ -1628,18 +1238,16 @@ class AllTrendStrategy(TrendStrategy):
proj_res = results[2]
news_res = results[3] if is_ude else None
- start_year = 2000
- end_year = datetime.datetime.now().year - 1
- years_range = list(range(start_year, end_year + 1))
+ years_range = self._get_years_range()
pub_series = pub_res.series[0] if pub_res.series else None
pat_series = pat_res.series[0] if pat_res.series else None
proj_series = proj_res.series[0] if proj_res.series else None
- composite_series = []
+ composite_series: list[TrendSeries] = []
- def add_composite(series_obj: Optional[TrendSeries], c_id: str, c_name: str):
- topic_data_map = {}
+ def add_composite(series_obj: TrendSeries | None, c_id: str, c_name: str):
+ topic_data_map: dict[str, list[TopicYearlyData]] = {}
for topic in topics:
if series_obj and topic in series_obj.topic_data:
topic_data_map[topic] = series_obj.topic_data[topic]
@@ -1648,19 +1256,21 @@ class AllTrendStrategy(TrendStrategy):
TopicYearlyData(year=yr, raw=0, normalized=0.0, cumulative=0.0, institutions_count=1)
for yr in years_range
]
- composite_series.append(TrendSeries(
- entity_id=c_id,
- entity_name=c_name,
- entity_type="institution",
- topic_data=topic_data_map
- ))
+ composite_series.append(
+ TrendSeries(
+ entity_id=c_id,
+ entity_name=c_name,
+ entity_type="institution",
+ topic_data=topic_data_map,
+ )
+ )
add_composite(pub_series, "publications", "Akademische Publikationen")
add_composite(pat_series, "patents", "Patentanmeldungen")
add_composite(proj_series, "projects", "Drittmittelförderung")
if is_ude and news_res:
- merged_news_topic_data = {}
+ merged_news_topic_data: dict[str, list[TopicYearlyData]] = {}
for topic in topics:
term_key = f"news_topic_{topic}"
matching_series = next((s for s in news_res.series if s.entity_id == term_key), None)
@@ -1676,7 +1286,7 @@ class AllTrendStrategy(TrendStrategy):
entity_id="news",
entity_name="UDE Campus Aktuell Beiträge",
entity_type="institution",
- topic_data=merged_news_topic_data
+ topic_data=merged_news_topic_data,
)
add_composite(news_series, "news", "UDE Campus Aktuell Beiträge")
diff --git a/service/src/main/inse/util.py b/service/src/main/inse/util.py
index 5848c92e..f59020aa 100644
--- a/service/src/main/inse/util.py
+++ b/service/src/main/inse/util.py
@@ -1,60 +1,72 @@
-#!/usr/bin/env python
-# -*- coding: utf-8 -*-
-"""
- This module contains utility functions
- for the service implementation.
-"""
-from typing import Optional
-from typing import TypeVar
-from inse.models.openalex import Author
-from . import model
-from inse.exceptions import NotFoundException
-
-T = TypeVar('T')
-
-def raise_not_found_if_none(value: Optional[T]) -> T:
- ''' Returns the value, if it is set, or raises a 404, if the value is None.'''
- if value == None:
- raise NotFoundException("Not found.")
- else:
- return value
-
-def get_persons_data(hit:dict):
- source = hit.get("_source", {})
- source_copy = dict(source)
- source_copy["id"] = hit.get("_id", "") or source_copy.get("id")
-
- # Resilient sanitization of IDs to protect against model regeneration type conflicts (#Generated)
- ids = source_copy.get("ids")
- if isinstance(ids, dict):
- ids_copy = {}
- orcid_val = ids.get("orcid")
- if orcid_val:
- ids_copy["orcid"] = str(orcid_val)
- source_copy["ids"] = ids_copy
-
- author = Author.from_dict(source_copy)
- return author
-
-from sentence_transformers import SentenceTransformer
-from .config import settings
-# Sentence Transformer Model
-_model: SentenceTransformer | None = None
-
-def get_model():
- global _model
- if _model is None:
- import os
- # If SENTENCE_TRANSFORMERS_HOME is not set, check if container-baked /models folder is available
- if "SENTENCE_TRANSFORMERS_HOME" not in os.environ:
- if os.path.exists("/models"):
- os.environ["SENTENCE_TRANSFORMERS_HOME"] = "/models"
- os.environ["HF_HUB_OFFLINE"] = "1"
- else:
- # If it is set to /models, enforce offline mode as it is baked into the image
- if os.environ.get("SENTENCE_TRANSFORMERS_HOME") == "/models":
- os.environ["HF_HUB_OFFLINE"] = "1"
-
- model_name = settings.sentence_transformers_model_name
- _model = SentenceTransformer(model_name)
- return _model
\ No newline at end of file
+
+"""
+ This module contains utility functions
+ for the service implementation.
+"""
+from typing import TypeVar
+
+from inse.exceptions import NotFoundException
+from inse.models.openalex import Author
+
+T = TypeVar('T')
+
+def raise_not_found_if_none(value: T | None) -> T:
+ ''' Returns the value, if it is set, or raises a 404, if the value is None.'''
+ if value == None:
+ raise NotFoundException("Not found.")
+ else:
+ return value
+
+def get_persons_data(hit:dict):
+ source = hit.get("_source", {})
+ source_copy = dict(source)
+ source_copy["id"] = hit.get("_id", "") or source_copy.get("id")
+
+ # Resilient sanitization of IDs to protect against model regeneration type conflicts (#Generated)
+ ids = source_copy.get("ids")
+ if isinstance(ids, dict):
+ ids_copy = {}
+ orcid_val = ids.get("orcid")
+ if orcid_val:
+ ids_copy["orcid"] = str(orcid_val)
+ source_copy["ids"] = ids_copy
+
+ author = Author.from_dict(source_copy)
+ return author
+
+from sentence_transformers import SentenceTransformer
+
+from .config import settings
+
+# Sentence Transformer Model
+_model: SentenceTransformer | None = None
+
+def get_model():
+ global _model
+ if _model is None:
+ import os
+ # Determine offline mode
+ is_offline = os.environ.get("HF_HUB_OFFLINE") == "1"
+ if "SENTENCE_TRANSFORMERS_HOME" not in os.environ:
+ if os.path.exists("/models"):
+ os.environ["SENTENCE_TRANSFORMERS_HOME"] = "/models"
+ os.environ["HF_HOME"] = "/models"
+ is_offline = True
+ elif os.environ.get("SENTENCE_TRANSFORMERS_HOME") == "/models":
+ is_offline = True
+
+ if is_offline:
+ os.environ["HF_HUB_OFFLINE"] = "1"
+ os.environ["TRANSFORMERS_OFFLINE"] = "1"
+ os.environ["HF_DATASETS_OFFLINE"] = "1"
+
+ model_name = settings.sentence_transformers_model_name
+ try:
+ if is_offline:
+ _model = SentenceTransformer(model_name, local_files_only=True)
+ else:
+ _model = SentenceTransformer(model_name)
+ except Exception:
+ # Fallback if local_files_only fails in unexpected local dev environments
+ _model = SentenceTransformer(model_name)
+ return _model
diff --git a/service/src/main/inse/utils.py b/service/src/main/inse/utils.py
index 5feacd56..5eee5a23 100644
--- a/service/src/main/inse/utils.py
+++ b/service/src/main/inse/utils.py
@@ -1,6 +1,5 @@
import re
-
author_id_pattern = re.compile(r"https://openalex\.org/A\d+", re.IGNORECASE)
work_id_pattern = re.compile(r"https://openalex\.org/W\d+", re.IGNORECASE)
diff --git a/service/src/main/inse/works/__init__.py b/service/src/main/inse/works/__init__.py
index fe9a01ed..fa5b98ea 100644
--- a/service/src/main/inse/works/__init__.py
+++ b/service/src/main/inse/works/__init__.py
@@ -1,5 +1,4 @@
-#!/usr/bin/env python
-# -*- coding: utf-8 -*-
+
"""
Works domain package.
"""
diff --git a/service/src/main/inse/works/logic.py b/service/src/main/inse/works/logic.py
index 6384b39b..11355c84 100644
--- a/service/src/main/inse/works/logic.py
+++ b/service/src/main/inse/works/logic.py
@@ -1,28 +1,29 @@
-#!/usr/bin/env python
-# -*- coding: utf-8 -*-
+
"""
Business logic for publication works.
"""
import logging
-from time import time
-from typing import Any, List
+from typing import Any
from pydantic import ValidationError
-from starlette.status import HTTP_404_NOT_FOUND
-from inse import config
+from inse.exceptions import (
+ ElasticsearchException,
+ UpstreamAPIException,
+)
from inse.integrations import elasticsearch
+from inse.model import ESCluster, ESIndex
+from inse.models.openalex.meta import Meta
+from inse.models.openalex.topic_count import TopicCount
+from inse.models.openalex.topics_by_time import TopicsByTime
+from inse.models.openalex.topics_by_year import TopicsByYear
from inse.models.openalex.work import Work
from inse.models.openalex.work_page import WorkPage
from inse.models.openalex.works_list_response import WorksListResponse
-from inse.models.openalex.meta import Meta
-from inse.models.openalex.topic_count import TopicCount
-from inse.models.openalex.topics_by_year import TopicsByYear
-from inse.models.openalex.topics_by_time import TopicsByTime
-from inse.exceptions import MissingApiKeyError, ElasticsearchException, UpstreamAPIException
+
from .search_client import OpenAlexWorksSearchClient
-from inse.model import ESCluster, ESIndex
+
logger = logging.getLogger(__name__)
TOPIC_DETAIL_SOURCE_FIELDS = [
@@ -120,7 +121,7 @@ async def get_all_author_works(
async def get_primary_topic_counts(
author_id: str,
client: OpenAlexWorksSearchClient | None = None,
-) -> List[TopicCount]:
+) -> list[TopicCount]:
topic_counts = await _get_primary_topic_counts_from_es(author_id)
topic_ids = [item["id"] for item in topic_counts if item["id"]]
@@ -187,7 +188,7 @@ async def _get_primary_topic_counts_from_es(author_id: str) -> list[dict]:
cluster=ESCluster.NES,
body=body,
)
- except ElasticsearchException as exc:
+ except ElasticsearchException:
logger.exception("OpenAlex primary topic aggregation request failed.")
raise
@@ -234,7 +235,7 @@ async def get_work(
return elements[0]
-async def enrich_topic_descriptions(topics: List) -> None:
+async def enrich_topic_descriptions(topics: list) -> None:
"""Batch-fill missing descriptions on dehydrated topics.
OpenAlex work and author documents carry dehydrated topics without a
@@ -256,7 +257,7 @@ async def enrich_topic_descriptions(topics: List) -> None:
topic.description = info.get("description")
-async def _enrich_work_topic_descriptions(works: List[Work]) -> None:
+async def _enrich_work_topic_descriptions(works: list[Work]) -> None:
topics = []
for work in works:
@@ -268,7 +269,7 @@ async def _enrich_work_topic_descriptions(works: List[Work]) -> None:
await enrich_topic_descriptions(topics)
-async def _get_topic_details(topic_ids: List[str]) -> dict[str, dict]:
+async def _get_topic_details(topic_ids: list[str]) -> dict[str, dict]:
if not topic_ids:
return {}
@@ -704,7 +705,7 @@ async def _get_publication_year_counts_from_es(author_id: str) -> tuple[list[dic
cluster=ESCluster.NES,
body=body,
)
- except ElasticsearchException as exc:
+ except ElasticsearchException:
logger.exception("OpenAlex publication year aggregation request failed.")
raise
@@ -773,7 +774,7 @@ async def _get_timeline_topic_counts_from_es(
cluster=ESCluster.NES,
body=body,
)
- except ElasticsearchException as exc:
+ except ElasticsearchException:
logger.exception("OpenAlex timeline topic aggregation request failed.")
raise
@@ -998,7 +999,7 @@ def _parse_full_work_search_response(data: dict) -> tuple[list[Work], int]:
async def get_publication_dois_of_author(
raw_oa_author_id: str,
-) -> List[str]:
+) -> list[str]:
query = {
"bool": {
"must": [
@@ -1025,7 +1026,7 @@ async def get_publication_dois_of_author(
query=query,
cluster=ESCluster.NES,
)
- except ElasticsearchException as exc:
+ except ElasticsearchException:
logger.exception("Request for publication DOIs of author failed.")
raise
diff --git a/service/src/main/inse/works/model.py b/service/src/main/inse/works/model.py
index e16d723a..93fe4320 100644
--- a/service/src/main/inse/works/model.py
+++ b/service/src/main/inse/works/model.py
@@ -1,36 +1,32 @@
-#!/usr/bin/env python
-# -*- coding: utf-8 -*-
+
"""
Pydantic models for publication works.
"""
-from typing import List
-from typing import Optional
-from pydantic import BaseModel
-from pydantic import Field
+from pydantic import BaseModel, Field
from inse.models.openalex.work import Work
class WorkSummary(BaseModel):
- doi: Optional[str] = Field(
+ doi: str | None = Field(
default=None, description="The optional DOI of the work."
)
- title: Optional[str] = Field(default=None, description="The title of the work.")
- type: Optional[str] = Field(default=None, description="The work type.")
- language: Optional[str] = Field(default=None, description="The work language.")
- publication_year: Optional[int] = Field(
+ title: str | None = Field(default=None, description="The title of the work.")
+ type: str | None = Field(default=None, description="The work type.")
+ language: str | None = Field(default=None, description="The work language.")
+ publication_year: int | None = Field(
default=None, description="The publication year."
)
cited_by_count: int = Field(default=0, description="The number of citations.")
- topics: List[str] = Field(
+ topics: list[str] = Field(
default_factory=list, description="The display names of the work topics."
)
class WorkPage(BaseModel):
- elements: List[WorkSummary] = Field(
+ elements: list[WorkSummary] = Field(
default_factory=list, description="The works on this page."
)
page: int = Field(default=1, description="The current page number.")
@@ -39,5 +35,5 @@ class WorkPage(BaseModel):
class WorkList(BaseModel):
- elements: List[Work] = Field(default_factory=list, description="All works.")
+ elements: list[Work] = Field(default_factory=list, description="All works.")
total: int = Field(default=0, description="The total number of works.")
diff --git a/service/src/main/inse/works/search_client.py b/service/src/main/inse/works/search_client.py
index 2e52a9a6..1db79d30 100644
--- a/service/src/main/inse/works/search_client.py
+++ b/service/src/main/inse/works/search_client.py
@@ -1,16 +1,16 @@
-#!/usr/bin/env python
-# -*- coding: utf-8 -*-
+
"""
HTTP client for the OpenAlex works Elasticsearch index.
"""
import logging
+import urllib
from typing import Any
-import urllib
-from .. import config
+from inse.exceptions import MissingApiKeyError
from inse.integrations import elasticsearch
from inse.model import ESCluster, ESIndex
-from inse.exceptions import MissingApiKeyError
+
+from .. import config
logger = logging.getLogger(__name__)
diff --git a/service/src/main/inse/works/service.py b/service/src/main/inse/works/service.py
index ead6daad..0a4357c0 100644
--- a/service/src/main/inse/works/service.py
+++ b/service/src/main/inse/works/service.py
@@ -1,24 +1,20 @@
-#!/usr/bin/env python
-# -*- coding: utf-8 -*-
+
"""
REST API for publication works.
"""
-from typing import Annotated, Literal, Optional
+from typing import Annotated, Literal
-from fastapi import APIRouter
-from fastapi import Path
-from fastapi import Query
+from fastapi import APIRouter, Path, Query
+from inse.models.openalex.topic_count import TopicCount
+from inse.models.openalex.topics_by_time import TopicsByTime
+from inse.models.openalex.work import Work
+from inse.models.openalex.work_page import WorkPage
+from inse.models.openalex.works_list_response import WorksListResponse
from inse.tags import Tags
from . import logic
-from inse.models.openalex.work_page import WorkPage
-from inse.models.openalex.work import Work
-from inse.models.openalex.works_list_response import WorksListResponse
-from inse.models.openalex.topic_count import TopicCount
-from inse.models.openalex.topics_by_time import TopicsByTime
-
router = APIRouter(prefix="/api/works", tags=[Tags.WORKS])
@@ -147,7 +143,7 @@ async def get_work_by_identifier(
),
],
title: Annotated[
- Optional[str],
+ str | None,
Query(
description="Do we want to fallback to title search if ID and DOI dont work?"
),
diff --git a/service/src/main/inse/works/test_openalex_logic.py b/service/src/main/inse/works/test_openalex_logic.py
index 48f01cef..0ad3f5a8 100644
--- a/service/src/main/inse/works/test_openalex_logic.py
+++ b/service/src/main/inse/works/test_openalex_logic.py
@@ -1,11 +1,5 @@
-import json
-import httpx
-import pytest
-from fastapi import HTTPException
-from inse.works import logic
-from inse.works.search_client import OpenAlexWorksSearchClient
# @pytest.fixture
diff --git a/service/src/main/inse/works/test_search_client.py b/service/src/main/inse/works/test_search_client.py
index 1f3c905e..83405f9f 100644
--- a/service/src/main/inse/works/test_search_client.py
+++ b/service/src/main/inse/works/test_search_client.py
@@ -1,4 +1,3 @@
-import json
import pytest
diff --git a/service/src/main/inse/works/test_service.py b/service/src/main/inse/works/test_service.py
index e910b8a9..3a51837c 100644
--- a/service/src/main/inse/works/test_service.py
+++ b/service/src/main/inse/works/test_service.py
@@ -1,15 +1,7 @@
from fastapi.testclient import TestClient
-from inse import config
-from inse.works import logic
-from inse.models.openalex.work import Work
-from inse.models.openalex.work_page import WorkPage
-from inse.models.openalex.works_list_response import WorksListResponse
-from inse.models.openalex.meta import Meta
-from inse.models.openalex.work_topic import WorkTopic
from inse.main import app
-
client = TestClient(app)
diff --git a/service/src/main/inse/works/v2/model.py b/service/src/main/inse/works/v2/model.py
index 121ea2cc..3a37ae79 100644
--- a/service/src/main/inse/works/v2/model.py
+++ b/service/src/main/inse/works/v2/model.py
@@ -1,12 +1,10 @@
from datetime import datetime
from enum import StrEnum
-from typing import Dict, Optional, List
-
-from pydantic import BaseModel, Field
-
+from typing import Optional
from inse.model import Page
from inse.models.openalex.work import Work
+from pydantic import BaseModel, Field
class WorkSortBy(StrEnum):
@@ -34,28 +32,28 @@ class WorkPrimaryCategory(StrEnum):
class WorkClassificationAuthor(BaseModel):
"""An author entry within a work classification document."""
- id: Optional[str] = Field(default=None, description="The OpenAlex author id.")
- display_name: Optional[str] = Field(
+ id: str | None = Field(default=None, description="The OpenAlex author id.")
+ display_name: str | None = Field(
default=None, description="The author's display name."
)
- orcid: Optional[str] = Field(default=None, description="The author's ORCID id.")
+ orcid: str | None = Field(default=None, description="The author's ORCID id.")
class WorkClassificationInstitution(BaseModel):
"""An institution entry within a work classification document."""
- id: Optional[str] = Field(default=None, description="The OpenAlex institution id.")
- display_name: Optional[str] = Field(
+ id: str | None = Field(default=None, description="The OpenAlex institution id.")
+ display_name: str | None = Field(
default=None, description="The institution's display name."
)
- ror: Optional[str] = Field(default=None, description="The institution's ROR id.")
+ ror: str | None = Field(default=None, description="The institution's ROR id.")
class WorkClassificationTopicGroup(BaseModel):
"""A domain/field/subfield group referenced within a classification topic."""
- id: Optional[str] = Field(default=None, description="The id of the group.")
- display_name: Optional[str] = Field(
+ id: str | None = Field(default=None, description="The id of the group.")
+ display_name: str | None = Field(
default=None, description="The display name of the group."
)
@@ -63,20 +61,20 @@ class WorkClassificationTopicGroup(BaseModel):
class WorkClassificationTopic(BaseModel):
"""A topic entry within a work classification document."""
- id: Optional[str] = Field(default=None, description="The OpenAlex topic id.")
- display_name: Optional[str] = Field(
+ id: str | None = Field(default=None, description="The OpenAlex topic id.")
+ display_name: str | None = Field(
default=None, description="The topic's display name."
)
- score: Optional[float] = Field(
+ score: float | None = Field(
default=None, description="The relevance score of the topic."
)
- domain: Optional[WorkClassificationTopicGroup] = Field(
+ domain: WorkClassificationTopicGroup | None = Field(
default=None, description="The topic's domain."
)
- field: Optional[WorkClassificationTopicGroup] = Field(
+ field: WorkClassificationTopicGroup | None = Field(
default=None, description="The topic's field."
)
- subfield: Optional[WorkClassificationTopicGroup] = Field(
+ subfield: WorkClassificationTopicGroup | None = Field(
default=None, description="The topic's subfield."
)
@@ -84,28 +82,28 @@ class WorkClassificationTopic(BaseModel):
class WorkClassificationDetails(BaseModel):
"""The core classification result for a work."""
- primary_category: Optional[WorkPrimaryCategory] = Field(
+ primary_category: WorkPrimaryCategory | None = Field(
default=None,
description="The primary classification category assigned to the work.",
)
- confidence: Optional[str] = Field(
+ confidence: str | None = Field(
default=None, description="The confidence level of the classification."
)
- pasteur_quadrant: Optional[str] = Field(
+ pasteur_quadrant: str | None = Field(
default=None, description="The Pasteur quadrant classification, if applicable."
)
- applied_orientation_score: Optional[int] = Field(
+ applied_orientation_score: int | None = Field(
default=None,
description="The applied orientation score for the classification.",
)
- insufficient_context: Optional[bool] = Field(
+ insufficient_context: bool | None = Field(
default=None,
description="Whether there was insufficient context to classify confidently.",
)
- signals_used: Optional[List[str]] = Field(
+ signals_used: list[str] | None = Field(
default=None, description="The signals used to arrive at the classification."
)
- classification_reason: Optional[str] = Field(
+ classification_reason: str | None = Field(
default=None, description="The reasoning behind the classification."
)
@@ -113,14 +111,14 @@ class WorkClassificationDetails(BaseModel):
class WorkClassificationMeta(BaseModel):
"""Metadata about how and when a classification was produced."""
- model: Optional[str] = Field(
+ model: str | None = Field(
default=None, description="The model used to produce the classification."
)
- prompt_version: Optional[str] = Field(
+ prompt_version: str | None = Field(
default=None,
description="The version of the prompt used to produce the classification.",
)
- classified_at: Optional[datetime] = Field(
+ classified_at: datetime | None = Field(
default=None,
description="The timestamp at which the classification was produced.",
)
@@ -129,13 +127,13 @@ class WorkClassificationMeta(BaseModel):
class WorkClassificationValidation(BaseModel):
"""Validation results for a classification."""
- valid: Optional[bool] = Field(
+ valid: bool | None = Field(
default=None, description="Whether the classification passed validation."
)
- errors: Optional[List[str]] = Field(
+ errors: list[str] | None = Field(
default=None, description="Validation errors, if any."
)
- corrections: Optional[List[str]] = Field(
+ corrections: list[str] | None = Field(
default=None, description="Corrections applied, if any."
)
@@ -144,30 +142,30 @@ class WorkClassification(BaseModel):
"""Represents a full work-classification document."""
work_id: str = Field(description="The full OpenAlex work id/URL.")
- doi: Optional[str] = Field(default=None, description="The DOI of the work.")
- title: Optional[str] = Field(default=None, description="The title of the work.")
- publication_year: Optional[int] = Field(
+ doi: str | None = Field(default=None, description="The DOI of the work.")
+ title: str | None = Field(default=None, description="The title of the work.")
+ publication_year: int | None = Field(
default=None, description="The publication year of the work."
)
- publication_type: Optional[str] = Field(
+ publication_type: str | None = Field(
default=None, description="The OpenAlex publication type of the work."
)
- authors: List[WorkClassificationAuthor] = Field(
+ authors: list[WorkClassificationAuthor] = Field(
default_factory=list, description="The authors of the work."
)
- institutions: List[WorkClassificationInstitution] = Field(
+ institutions: list[WorkClassificationInstitution] = Field(
default_factory=list, description="The institutions associated with the work."
)
- topics: List[WorkClassificationTopic] = Field(
+ topics: list[WorkClassificationTopic] = Field(
default_factory=list, description="The topics associated with the work."
)
- classification: Optional[WorkClassificationDetails] = Field(
+ classification: WorkClassificationDetails | None = Field(
default=None, description="The classification result for the work."
)
- classification_meta: Optional[WorkClassificationMeta] = Field(
+ classification_meta: WorkClassificationMeta | None = Field(
default=None, description="Metadata about the classification."
)
- validation: Optional[WorkClassificationValidation] = Field(
+ validation: WorkClassificationValidation | None = Field(
default=None, description="Validation results for the classification."
)
@@ -184,7 +182,7 @@ class WorkClassificationPage(Page[WorkClassification]):
class PrimaryCategoryYearAggregation(BaseModel):
publication_year: int = Field(description="The publication year.")
- categories: Dict[WorkPrimaryCategory, int] = Field(
+ categories: dict[WorkPrimaryCategory, int] = Field(
default_factory=dict,
description="A mapping of primary categories to their counts for the given year.",
)
diff --git a/service/src/main/inse/works/v2/router.py b/service/src/main/inse/works/v2/router.py
index 76ae238c..87596cdd 100644
--- a/service/src/main/inse/works/v2/router.py
+++ b/service/src/main/inse/works/v2/router.py
@@ -1,10 +1,14 @@
import logging
from typing import Annotated
+import inse.works.v2.service as works_service
from fastapi import APIRouter, Path, Query
-
-from inse.tags import Tags
+from inse.auth.model import AccessTokenMetadata
+from inse.auth.service import CurrentUserAccessTokenPayloadDep
from inse.model import SortDirection
+from inse.models.openalex.work import Work
+from inse.router_prefixes import RouterPrefixes
+from inse.tags import Tags
from inse.works.v2.model import (
PrimaryCategoryYearAggregationPage,
WorkClassification,
@@ -12,16 +16,84 @@ from inse.works.v2.model import (
WorkPageV2,
WorkSortBy,
)
-from inse.auth.model import AccessTokenMetadata
-from inse.auth.service import CurrentUserAccessTokenPayloadDep
-import inse.works.v2.service as works_service
-
-WORKS_v2_PREFIX = "/api/v2/works"
logger = logging.getLogger(__name__)
-router = APIRouter(prefix=WORKS_v2_PREFIX, tags=[Tags.WORKS_V2])
+router = APIRouter(prefix=RouterPrefixes.WORKS_V2, tags=[Tags.WORKS_V2])
+
+
+@router.get(
+ "/{raw_oa_work_id}",
+ operation_id="getWorkById",
+ summary="Returns a work based on its ID.",
+)
+async def get_work_by_id(
+ raw_oa_work_id: Annotated[str, Path(description="The raw OpenAlex work id.")],
+) -> Work:
+ return await works_service.get_work_by_id_or_raise(raw_oa_work_id=raw_oa_work_id)
+
+
+@router.get(
+ "/search",
+ operation_id="searchWorks",
+ summary="Search works with filters.",
+)
+async def search_works(
+ page: Annotated[
+ int, Query(description="The page number to retrieve. (0-based)", ge=0)
+ ] = 0,
+ size: Annotated[
+ int,
+ Query(description="The number of works to retrieve per page.", ge=1, le=100),
+ ] = 10,
+ title: Annotated[
+ str, Query(description="A title to filter by (partial matches allowed).")
+ ] = "",
+ publication_years: Annotated[
+ list[int] | None,
+ Query(description="A list of publication years to filter by."),
+ ] = None,
+ publication_types: Annotated[
+ list[str] | None,
+ Query(description="A list of publication types to filter by."),
+ ] = None,
+ author_ids: Annotated[
+ list[str] | None,
+ Query(description="A list of author IDs to filter by."),
+ ] = None,
+ institution_ids: Annotated[
+ list[str] | None,
+ Query(description="A list of institution IDs to filter by."),
+ ] = None,
+ topic_ids: Annotated[
+ list[str] | None,
+ Query(description="A list of topic IDs to filter by."),
+ ] = None,
+ language_codes: Annotated[
+ list[str] | None,
+ Query(description="A list of language codes to filter by."),
+ ] = None,
+ sort_by: Annotated[
+ WorkSortBy, Query(description="The field to sort by.")
+ ] = WorkSortBy.PUBLICATION_YEAR,
+ sort_order: Annotated[
+ SortDirection, Query(description="The order to sort by.")
+ ] = SortDirection.DESCENDING,
+) -> WorkPageV2:
+ return await works_service.search_works(
+ page=page,
+ size=size,
+ title=title,
+ publication_years=publication_years or [],
+ publication_types=publication_types or [],
+ author_ids=author_ids or [],
+ institution_ids=institution_ids or [],
+ topic_ids=topic_ids or [],
+ language_codes=language_codes or [],
+ sort_by=sort_by,
+ sort_order=sort_order,
+ )
@router.get(
@@ -42,25 +114,25 @@ async def get_author_works(
str, Query(description="A title to filter by (partial matches allowed).")
] = "",
publication_years: Annotated[
- list[int],
+ list[int] | None,
Query(description="A list of publication years to filter by."),
- ] = [],
+ ] = None,
publication_types: Annotated[
- list[str],
+ list[str] | None,
Query(description="A list of publication types to filter by."),
- ] = [],
+ ] = None,
institution_ids: Annotated[
- list[str],
+ list[str] | None,
Query(description="A list of institution IDs to filter by."),
- ] = [],
+ ] = None,
topic_ids: Annotated[
- list[str],
+ list[str] | None,
Query(description="A list of topic IDs to filter by."),
- ] = [],
+ ] = None,
language_codes: Annotated[
- list[str],
+ list[str] | None,
Query(description="A list of language codes to filter by."),
- ] = [],
+ ] = None,
sort_by: Annotated[
WorkSortBy, Query(description="The field to sort by.")
] = WorkSortBy.PUBLICATION_YEAR,
@@ -179,25 +251,25 @@ async def get_institution_works(
Query(description="The number of works to retrieve per page.", ge=1, le=100),
] = 10,
publication_years: Annotated[
- list[int],
+ list[int] | None,
Query(description="A list of publication years to filter by."),
- ] = [],
+ ] = None,
publication_types: Annotated[
- list[str],
+ list[str] | None,
Query(description="A list of publication types to filter by."),
- ] = [],
+ ] = None,
author_ids: Annotated[
- list[str],
+ list[str] | None,
Query(description="A list of author IDs to filter by."),
- ] = [],
+ ] = None,
topic_ids: Annotated[
- list[str],
+ list[str] | None,
Query(description="A list of topic IDs to filter by."),
- ] = [],
+ ] = None,
language_codes: Annotated[
- list[str],
+ list[str] | None,
Query(description="A list of language codes to filter by."),
- ] = [],
+ ] = None,
sort_by: Annotated[
WorkSortBy, Query(description="The field to sort by.")
] = WorkSortBy.PUBLICATION_YEAR,
@@ -220,6 +292,65 @@ async def get_institution_works(
)
+@router.get(
+ "/topic/{raw_oa_topic_id}",
+ operation_id="getTopicWorkPage",
+ summary="Returns a paginated list of works for a given topic based on its ID.",
+)
+async def get_topic_works(
+ raw_oa_topic_id: Annotated[str, Path(description="The raw OpenAlex topic id.")],
+ page: Annotated[
+ int, Query(description="The page number to retrieve. (0-based)", ge=0)
+ ] = 0,
+ size: Annotated[
+ int,
+ Query(description="The number of works to retrieve per page.", ge=1, le=100),
+ ] = 10,
+ title: Annotated[
+ str, Query(description="A title to filter by (partial matches allowed).")
+ ] = "",
+ publication_years: Annotated[
+ list[int] | None,
+ Query(description="A list of publication years to filter by."),
+ ] = None,
+ publication_types: Annotated[
+ list[str] | None,
+ Query(description="A list of publication types to filter by."),
+ ] = None,
+ author_ids: Annotated[
+ list[str] | None,
+ Query(description="A list of author IDs to filter by."),
+ ] = None,
+ institution_ids: Annotated[
+ list[str] | None,
+ Query(description="A list of institution IDs to filter by."),
+ ] = None,
+ language_codes: Annotated[
+ list[str] | None,
+ Query(description="A list of language codes to filter by."),
+ ] = None,
+ sort_by: Annotated[
+ WorkSortBy, Query(description="The field to sort by.")
+ ] = WorkSortBy.PUBLICATION_YEAR,
+ sort_order: Annotated[
+ SortDirection, Query(description="The order to sort by.")
+ ] = SortDirection.DESCENDING,
+) -> WorkPageV2:
+ return await works_service.get_topic_works(
+ raw_oa_topic_id=raw_oa_topic_id,
+ page=page,
+ size=size,
+ title=title,
+ publication_years=publication_years or [],
+ publication_types=publication_types or [],
+ author_ids=author_ids or [],
+ institution_ids=institution_ids or [],
+ language_codes=language_codes or [],
+ sort_by=sort_by,
+ sort_order=sort_order,
+ )
+
+
@router.get(
"/classification/work/{raw_oa_work_id}",
operation_id="getWorkClassificationByWorkId",
@@ -246,11 +377,17 @@ async def get_work_classifications_by_work_ids(
AccessTokenMetadata, CurrentUserAccessTokenPayloadDep
],
work_ids: Annotated[
- list[str],
+ list[str] | None,
Query(
description="A list of OpenAlex work IDs to retrieve classifications for."
),
- ] = [],
+ ] = None,
+ raw_oa_author_id: Annotated[
+ str | None, Query(description="The raw OpenAlex author id to filter by.")
+ ] = None,
+ raw_oa_institution_id: Annotated[
+ str | None, Query(description="The raw OpenAlex institution id to filter by.")
+ ] = None,
page: Annotated[
int, Query(description="The page number to retrieve. (0-based)", ge=0)
] = 0,
@@ -266,6 +403,8 @@ async def get_work_classifications_by_work_ids(
return await works_service.get_work_classifications_by_work_ids(
access_token_metadata=access_token_metadata,
work_ids=work_ids or [],
+ raw_oa_author_id=raw_oa_author_id,
+ raw_oa_institution_id=raw_oa_institution_id,
page=page,
size=size,
)
diff --git a/service/src/main/inse/works/v2/service.py b/service/src/main/inse/works/v2/service.py
index 9c86b65e..f1fa10d2 100644
--- a/service/src/main/inse/works/v2/service.py
+++ b/service/src/main/inse/works/v2/service.py
@@ -1,10 +1,8 @@
import logging
-from typing import Dict, List, Optional
import inse.authors.v2.service as author_service
-from fastapi import Query
from inse.auth.model import AccessTokenMetadata
-from inse.exceptions import ElasticsearchNotFoundException
+from inse.exceptions import ElasticsearchNotFoundException, NotFoundException
from inse.integrations import elasticsearch
from inse.model import ESCluster, ESIndex, SortDirection
from inse.models.openalex.work import Work
@@ -21,7 +19,7 @@ logger = logging.getLogger(__name__)
logger.setLevel(logging.DEBUG)
-def _authors_nested_query(author_ids: List[str]) -> Dict:
+def _authors_nested_query(author_ids: list[str]) -> dict:
"""Returns a nested query for filtering works by a list of author IDs.
Args:
@@ -39,7 +37,7 @@ def _authors_nested_query(author_ids: List[str]) -> Dict:
}
-def _institutions_nested_query(institution_ids: List[str]) -> Dict:
+def _institutions_nested_query(institution_ids: list[str]) -> dict:
"""Returns a nested query for filtering works by a list of institution IDs.
Args:
@@ -62,7 +60,20 @@ def _institutions_nested_query(institution_ids: List[str]) -> Dict:
}
-def _title_query(title: str) -> Dict:
+def _topics_nested_query(topic_ids: list[str]) -> dict:
+ """Returns a nested query for filtering works by a list of topic IDs.
+
+ Args:
+ topic_ids (list[str]): A list of topic IDs to filter by.
+
+ Returns:
+ dict: A nested query for filtering works by the specified topic IDs.
+ """
+ prefixed = [_prefix_id(tid) for tid in topic_ids]
+ return {"nested": {"path": "topics", "query": {"terms": {"topics.id": prefixed}}}}
+
+
+def _title_query(title: str) -> dict:
"""Returns a query for filtering works by title using a multi-match query.
Args:
@@ -85,12 +96,11 @@ def _title_query(title: str) -> Dict:
def _apply_common_filters(
- must: List,
- publication_years: Optional[List[int]],
- publication_types: Optional[List[str]],
- language_codes: Optional[List[str]],
- topic_ids: Optional[List[str]],
- title: Optional[str] = None,
+ must: list,
+ publication_years: list[int] | None,
+ publication_types: list[str] | None,
+ language_codes: list[str] | None,
+ title: str | None = None,
) -> None:
"""Applies common filters to the provided list of must conditions for filtering works.
@@ -108,15 +118,11 @@ def _apply_common_filters(
must.append({"terms": {"type": publication_types}})
if language_codes:
must.append({"terms": {"language": language_codes}})
- if topic_ids:
- must.append(
- {"nested": {"path": "topics", "query": {"terms": {"topics.id": topic_ids}}}}
- )
if title and len(title.strip()) > 0:
must.append(_title_query(title))
-def _build_sort(sort_by: WorkSortBy, sort_order: SortDirection) -> List[Dict]:
+def _build_sort(sort_by: WorkSortBy, sort_order: SortDirection) -> list[dict]:
"""Builds a sort criteria list for sorting works based on the specified sort_by and sort_order.
Args:
@@ -132,7 +138,7 @@ def _build_sort(sort_by: WorkSortBy, sort_order: SortDirection) -> List[Dict]:
async def _execute_works_search(
- must: List[Dict],
+ must: list[dict],
page: int,
size: int,
sort_by: WorkSortBy,
@@ -150,7 +156,7 @@ async def _execute_works_search(
Returns:
WorkPageV2: The page of works matching the search criteria.
"""
- return await search_works(
+ return await _search_works(
source=[
"id",
"title",
@@ -174,15 +180,13 @@ async def _execute_works_search(
async def get_works(
page: int,
size: int,
- raw_oa_author_id: Optional[str] = None,
- raw_oa_institution_id: Optional[str] = None,
- title: Optional[str] = None,
- author_ids: Optional[List[str]] = None,
- institution_ids: Optional[List[str]] = None,
- publication_years: Optional[List[int]] = None,
- publication_types: Optional[List[str]] = None,
- topic_ids: Optional[List[str]] = None,
- language_codes: Optional[List[str]] = None,
+ title: str | None = None,
+ author_ids: list[str] | None = None,
+ institution_ids: list[str] | None = None,
+ publication_years: list[int] | None = None,
+ publication_types: list[str] | None = None,
+ topic_ids: list[str] | None = None,
+ language_codes: list[str] | None = None,
sort_by: WorkSortBy = WorkSortBy.PUBLICATION_YEAR,
sort_order: SortDirection = SortDirection.DESCENDING,
) -> WorkPageV2:
@@ -191,8 +195,6 @@ async def get_works(
Args:
page (int): The page number for pagination.
size (int): The number of results per page.
- raw_oa_author_id (Optional[str], optional): The ID of the author to filter by. Defaults to None.
- raw_oa_institution_id (Optional[str], optional): The ID of the institution to filter by. Defaults to None.
title (Optional[str], optional): The title of the works to filter by. Defaults to None.
author_ids (Optional[List[str]], optional): A list of author IDs to filter by. Defaults to None.
institution_ids (Optional[List[str]], optional): A list of institution IDs to filter by. Defaults to None.
@@ -203,65 +205,52 @@ async def get_works(
sort_by (WorkSortBy, optional): The field to sort by. Defaults to WorkSortBy.PUBLICATION_YEAR.
sort_order (SortDirection, optional): The direction to sort in. Defaults to SortDirection.DESCENDING.
- Raises:
- ValueError: If neither raw_oa_author_id nor raw_oa_institution_id is provided.
-
Returns:
WorkPageV2: The page of works matching the criteria.
"""
- if not raw_oa_author_id and not raw_oa_institution_id:
- raise ValueError(
- "get_works requires at least one of raw_oa_author_id or raw_oa_institution_id"
- )
+ must: list = []
- must: List = []
+ if author_ids:
+ must.append(_authors_nested_query(author_ids=author_ids))
- if raw_oa_author_id:
- must.append(_authors_nested_query([raw_oa_author_id]))
- elif author_ids:
- must.append(_authors_nested_query(author_ids))
+ if institution_ids:
+ must.append(_institutions_nested_query(institution_ids=institution_ids))
- if raw_oa_institution_id:
- must.append(_institutions_nested_query([raw_oa_institution_id]))
- elif institution_ids:
- must.append(_institutions_nested_query(institution_ids))
+ if topic_ids:
+ must.append(_topics_nested_query(topic_ids=topic_ids))
_apply_common_filters(
- must, publication_years, publication_types, language_codes, topic_ids, title
+ must=must,
+ publication_years=publication_years,
+ publication_types=publication_types,
+ language_codes=language_codes,
+ title=title,
)
- return await _execute_works_search(must, page, size, sort_by, sort_order)
+ return await _execute_works_search(
+ must=must, page=page, size=size, sort_by=sort_by, sort_order=sort_order
+ )
async def get_works_by_keywords(
- topics: Optional[List[str]] = Query(None, description="List of topics to match."),
- topic_ids: Optional[List[str]] = Query(
- None, description="List of topic IDs to match."
- ),
- filter_topic_ids: Optional[List[str]] = Query(
- None,
- description="Additional topic IDs to filter results by (OR semantics), "
- "applied independently of the fuzzy/keyword search mode.",
- ),
- keywords: Optional[List[str]] = Query(
- None, description="Raw keywords to search in title/abstract."
- ),
- title: Optional[str] = None,
- fuzzy: bool = Query(
- True, description="Use topic resolution if True, otherwise use raw keywords."
- ),
- publication_year: Optional[List[int]] = Query(None),
- publication_type: Optional[List[str]] = Query(None, alias="type"),
- language: Optional[List[str]] = Query(None),
- institution_ids: Optional[List[str]] = Query(None),
- author_ids: Optional[List[str]] = Query(None),
+ topics: list[str] | None = None,
+ topic_ids: list[str] | None = None,
+ filter_topic_ids: list[str] | None = None,
+ keywords: list[str] | None = None,
+ title: str | None = None,
+ fuzzy: bool = True,
+ publication_year: list[int] | None = None,
+ publication_type: list[str] | None = None,
+ language: list[str] | None = None,
+ institution_ids: list[str] | None = None,
+ author_ids: list[str] | None = None,
page: int = 0,
size: int = 10,
- sort_by: WorkSortBy = Query(WorkSortBy.PUBLICATION_YEAR),
- sort_order: SortDirection = Query(SortDirection.DESCENDING),
+ sort_by: WorkSortBy = WorkSortBy.PUBLICATION_YEAR,
+ sort_order: SortDirection = SortDirection.DESCENDING,
) -> WorkPageV2:
# print(f"get_works_by_keywords called with topics={topics}, topic_ids={topic_ids}, filter_topic_ids={filter_topic_ids}, keywords={keywords}, fuzzy={fuzzy}, publication_year={publication_year}, publication_type={publication_type}, language={language},title={title}, institution_ids={institution_ids}, page={page}, size={size}, sort_by={sort_by}, sort_order={sort_order}")
- def _topics_nested_clause(should_clauses: List[Dict]) -> Dict:
+ def _topics_nested_clause(should_clauses: list[dict]) -> dict:
return {
"nested": {
"path": "topics",
@@ -275,7 +264,7 @@ async def get_works_by_keywords(
}
}
- def _single_topic_id_match(topic_id: str) -> Dict:
+ def _single_topic_id_match(topic_id: str) -> dict:
return {
"bool": {
"should": [
@@ -392,7 +381,7 @@ async def get_works_by_keywords(
total = hits_block.get("total", {}).get("value", 0)
hits = hits_block.get("hits", [])
- elements: List[Work] = []
+ elements: list[Work] = []
for hit in hits:
source = hit.get("_source", {})
logger.debug(f"Hit source for keyword search: {source}")
@@ -409,11 +398,11 @@ async def get_author_works(
page: int,
size: int,
title: str = "",
- publication_years: Optional[List[int]] = None,
- publication_types: Optional[List[str]] = None,
- institution_ids: Optional[List[str]] = None,
- topic_ids: Optional[List[str]] = None,
- language_codes: Optional[List[str]] = None,
+ publication_years: list[int] | None = None,
+ publication_types: list[str] | None = None,
+ institution_ids: list[str] | None = None,
+ topic_ids: list[str] | None = None,
+ language_codes: list[str] | None = None,
sort_by: WorkSortBy = WorkSortBy.PUBLICATION_YEAR,
sort_order: SortDirection = SortDirection.DESCENDING,
) -> WorkPageV2:
@@ -439,7 +428,7 @@ async def get_author_works(
return await get_works(
page=page,
size=size,
- raw_oa_author_id=raw_oa_author_id,
+ author_ids=[raw_oa_author_id],
title=title,
institution_ids=institution_ids,
publication_years=publication_years,
@@ -456,11 +445,11 @@ async def get_institution_works(
page: int,
size: int,
title: str = "",
- publication_years: Optional[List[int]] = None,
- publication_types: Optional[List[str]] = None,
- author_ids: Optional[List[str]] = None,
- topic_ids: Optional[List[str]] = None,
- language_codes: Optional[List[str]] = None,
+ publication_years: list[int] | None = None,
+ publication_types: list[str] | None = None,
+ author_ids: list[str] | None = None,
+ topic_ids: list[str] | None = None,
+ language_codes: list[str] | None = None,
sort_by: WorkSortBy = WorkSortBy.PUBLICATION_YEAR,
sort_order: SortDirection = SortDirection.DESCENDING,
) -> WorkPageV2:
@@ -486,7 +475,7 @@ async def get_institution_works(
return await get_works(
page=page,
size=size,
- raw_oa_institution_id=raw_oa_institution_id,
+ institution_ids=[raw_oa_institution_id],
author_ids=author_ids,
title=title,
publication_years=publication_years,
@@ -498,8 +487,102 @@ async def get_institution_works(
)
-async def get_work(
- raw_oa_work_id: str, source: Optional[List[str]] = None
+async def get_topic_works(
+ raw_oa_topic_id: str,
+ page: int,
+ size: int,
+ title: str = "",
+ publication_years: list[int] | None = None,
+ publication_types: list[str] | None = None,
+ institution_ids: list[str] | None = None,
+ author_ids: list[str] | None = None,
+ language_codes: list[str] | None = None,
+ sort_by: WorkSortBy = WorkSortBy.PUBLICATION_YEAR,
+ sort_order: SortDirection = SortDirection.DESCENDING,
+) -> WorkPageV2:
+ """Retrieves works for a specific topic based on the provided criteria.
+
+ Args:
+ raw_oa_topic_id (str): The ID of the topic for whom to retrieve works.
+ page (int): The page number of the results to retrieve.
+ size (int): The number of results per page.
+ title (str, optional): The title of the works to filter by. Defaults to "".
+ publication_years (Optional[List[int]], optional): A list of publication years to filter by. Defaults to None.
+ publication_types (Optional[List[str]], optional): A list of publication types to filter by. Defaults to None.
+ institution_ids (Optional[List[str]], optional): A list of institution IDs to filter by. Defaults to None.
+ author_ids (Optional[List[str]], optional): A list of author IDs to filter by. Defaults to None.
+ language_codes (Optional[List[str]], optional): A list of language codes to filter by. Defaults to None.
+ sort_by (WorkSortBy, optional): The field by which to sort the results. Defaults to WorkSortBy.PUBLICATION_YEAR.
+ sort_order (SortDirection, optional): The direction to sort in. Defaults to SortDirection.DESCENDING.
+
+ Returns:
+ WorkPageV2: The page of works matching the criteria.
+ """
+
+ return await get_works(
+ page=page,
+ size=size,
+ topic_ids=[raw_oa_topic_id],
+ title=title,
+ institution_ids=institution_ids,
+ author_ids=author_ids,
+ publication_years=publication_years,
+ publication_types=publication_types,
+ language_codes=language_codes,
+ sort_by=sort_by,
+ sort_order=sort_order,
+ )
+
+
+async def search_works(
+ page: int,
+ size: int,
+ title: str | None = None,
+ author_ids: list[str] | None = None,
+ institution_ids: list[str] | None = None,
+ publication_years: list[int] | None = None,
+ publication_types: list[str] | None = None,
+ topic_ids: list[str] | None = None,
+ language_codes: list[str] | None = None,
+ sort_by: WorkSortBy = WorkSortBy.PUBLICATION_YEAR,
+ sort_order: SortDirection = SortDirection.DESCENDING,
+) -> WorkPageV2:
+ """Searches for works based on the provided criteria.
+
+ Args:
+ page (int): The page number of the results to retrieve.
+ size (int): The number of results per page.
+ title (str | None, optional): The title of the works to filter by. Defaults to None.
+ author_ids (list[str] | None, optional): A list of author IDs to filter by. Defaults to None.
+ institution_ids (list[str] | None, optional): A list of institution IDs to filter by. Defaults to None.
+ publication_years (list[int] | None, optional): A list of publication years to filter by. Defaults to None.
+ publication_types (list[str] | None, optional): A list of publication types to filter by. Defaults to None.
+ topic_ids (list[str] | None, optional): A list of topic IDs to filter by. Defaults to None.
+ language_codes (list[str] | None, optional): A list of language codes to filter by. Defaults to None.
+ sort_by (WorkSortBy, optional): The field by which to sort the results. Defaults to WorkSortBy.PUBLICATION_YEAR.
+ sort_order (SortDirection, optional): The direction to sort in. Defaults to SortDirection.DESCENDING.
+
+ Returns:
+ WorkPageV2: The page of works matching the criteria.
+ """
+
+ return await get_works(
+ page=page,
+ size=size,
+ title=title,
+ author_ids=author_ids,
+ institution_ids=institution_ids,
+ publication_years=publication_years,
+ publication_types=publication_types,
+ topic_ids=topic_ids,
+ language_codes=language_codes,
+ sort_by=sort_by,
+ sort_order=sort_order,
+ )
+
+
+async def get_work_by_id(
+ raw_oa_work_id: str, source: list[str] | None = None
) -> Work | None:
"""Retrieves a work based on its OpenAlex ID.
@@ -512,7 +595,7 @@ async def get_work(
"""
# search instead of get, because multiple indices are used for works
- work_page = await search_works(
+ work_page = await _search_works(
query={"term": {"id": _prefix_id(raw_oa_work_id)}},
source=source,
page=0,
@@ -524,12 +607,33 @@ async def get_work(
return None
-async def search_works(
- query: Optional[Dict] = None,
- source: Optional[List[str]] = None,
+async def get_work_by_id_or_raise(
+ raw_oa_work_id: str, source: list[str] | None = None
+) -> Work:
+ """Retrieves a work based on its OpenAlex ID or raises an exception if not found.
+
+ Args:
+ raw_oa_work_id (str): The ID of the work to retrieve.
+ source (Optional[List[str]], optional): A list of fields to include in the response. Defaults to None.
+
+ Returns:
+ Work: The retrieved work.
+
+ Raises:
+ NotFoundException: If the work is not found.
+ """
+ work = await get_work_by_id(raw_oa_work_id=raw_oa_work_id, source=source)
+ if work is None:
+ raise NotFoundException(f"Work with id {raw_oa_work_id} not found.")
+ return work
+
+
+async def _search_works(
+ query: dict | None = None,
+ source: list[str] | None = None,
page: int = 0,
size: int = 10,
- sort: Optional[List[Dict]] = None,
+ sort: list[dict] | None = None,
) -> WorkPageV2:
"""Searches for works based on the provided criteria.
@@ -554,7 +658,7 @@ async def search_works(
hits_block = response.get("hits", {})
total = hits_block.get("total", {}).get("value", 0)
- works: List[Work] = []
+ works: list[Work] = []
for hit in hits_block.get("hits", []):
work = Work.from_dict(hit.get("_source", {})) # type: ignore
if work is not None:
@@ -564,7 +668,7 @@ async def search_works(
async def _get_works_by_work_ids_and_institution_id(
- work_ids: List[str], raw_oa_institution_id: str | None
+ work_ids: list[str], raw_oa_institution_id: str | None
) -> WorkPageV2:
"""Retrieves works based on a list of work IDs and filters them by the specified institution ID.
@@ -582,7 +686,7 @@ async def _get_works_by_work_ids_and_institution_id(
prefixed_work_ids = [_prefix_id(wid) for wid in work_ids]
prefixed_institution_id = _prefix_id(raw_oa_institution_id)
- return await search_works(
+ return await _search_works(
query={
"bool": {
"must": [
@@ -637,8 +741,8 @@ def _work_has_authorship_with_institution_id(
async def search_work_classifications(
- query: Optional[Dict] = None,
- source: Optional[List[str]] = None,
+ query: dict | None = None,
+ source: list[str] | None = None,
page: int = 0,
size: int = 10,
) -> WorkClassificationPage:
@@ -663,7 +767,7 @@ async def search_work_classifications(
hits_block = response.get("hits", {})
total = hits_block.get("total", {}).get("value", 0)
- classifications: List[WorkClassification] = []
+ classifications: list[WorkClassification] = []
for hit in hits_block.get("hits", []):
classification = WorkClassification.from_dict(hit.get("_source", {})) # type: ignore
if classification is not None:
@@ -675,7 +779,7 @@ async def search_work_classifications(
async def _get_work_classifications_by_work_ids(
- work_ids: List[str],
+ work_ids: list[str],
page: int = 0,
size: int = 10000,
) -> WorkClassificationPage:
@@ -714,7 +818,9 @@ async def _get_work_classifications_by_work_ids(
async def get_work_classifications_by_work_ids(
access_token_metadata: AccessTokenMetadata,
- work_ids: List[str],
+ work_ids: list[str],
+ raw_oa_author_id: str | None = None,
+ raw_oa_institution_id: str | None = None,
page: int = 0,
size: int = 10000,
) -> WorkClassificationPage:
@@ -723,30 +829,102 @@ async def get_work_classifications_by_work_ids(
Args:
access_token_metadata (AccessTokenMetadata): The access token metadata containing the effective institution ID.
work_ids (List[str]): The list of work IDs to retrieve classifications for.
+ raw_oa_author_id (Optional[str], optional): The ID of the author to filter by. Defaults to None.
+ raw_oa_institution_id (Optional[str], optional): The ID of the institution to filter by. Defaults to None.
page (int, optional): The page number. Defaults to 0.
size (int, optional): The number of results per page. Defaults to 10000.
Returns:
WorkClassificationPage: The page of work classifications matching the criteria.
"""
- raw_account_institution_id = access_token_metadata.effective_institution_id
+ if raw_oa_author_id:
+ return await _get_author_work_classifications_by_work_ids(
+ access_token_metadata=access_token_metadata,
+ work_ids=work_ids,
+ raw_oa_author_id=raw_oa_author_id,
+ page=page,
+ size=size,
+ )
+ elif raw_oa_institution_id:
+ return await _get_institution_work_classifications_by_work_ids(
+ access_token_metadata=access_token_metadata,
+ work_ids=work_ids,
+ raw_oa_institution_id=raw_oa_institution_id,
+ page=page,
+ size=size,
+ )
+ else:
+ raise ValueError(
+ "get_work_classifications_by_work_ids requires at least one of raw_oa_author_id or raw_oa_institution_id"
+ )
- work_page = await _get_works_by_work_ids_and_institution_id(
- work_ids=work_ids, raw_oa_institution_id=raw_account_institution_id
- )
- allowed_work_ids: List[str] = [
- work.id for work in work_page.elements if work.id is not None
- ]
+async def _get_author_work_classifications_by_work_ids(
+ access_token_metadata: AccessTokenMetadata,
+ work_ids: list[str],
+ raw_oa_author_id: str,
+ page: int = 0,
+ size: int = 10000,
+) -> WorkClassificationPage:
+ """Retrieves work classifications for a list of work IDs, filtered by the effective institution ID from the access token metadata and the specified author ID.
+
+ Args:
+ access_token_metadata (AccessTokenMetadata): The access token metadata containing the effective institution ID.
+ work_ids (list[str]): The list of work IDs to retrieve classifications for.
+ raw_oa_author_id (str): The ID of the author to filter by.
+ page (int, optional): The page number. Defaults to 0.
+ size (int, optional): The number of results per page. Defaults to 10000.
+
+ Returns:
+ WorkClassificationPage: The page of work classifications matching the criteria.
+ """
+
+ account_institution_id = access_token_metadata.effective_institution_id
+ if not account_institution_id:
+ return WorkClassificationPage(elements=[], total=0, page=page, size=size)
+ if not await author_service.author_currently_belongs_to_institution(
+ raw_oa_author_id=raw_oa_author_id, raw_oa_institution_id=account_institution_id
+ ):
+ return WorkClassificationPage(elements=[], total=0, page=page, size=size)
return await _get_work_classifications_by_work_ids(
- work_ids=allowed_work_ids, page=page, size=size
+ work_ids=work_ids, page=page, size=size
+ )
+
+
+async def _get_institution_work_classifications_by_work_ids(
+ access_token_metadata: AccessTokenMetadata,
+ work_ids: list[str],
+ raw_oa_institution_id: str,
+ page: int = 0,
+ size: int = 10000,
+) -> WorkClassificationPage:
+ """Retrieves work classifications for a list of work IDs, filtered by the effective institution ID from the access token metadata.
+
+ Args:
+ access_token_metadata (AccessTokenMetadata): The access token metadata containing the effective institution ID.
+ work_ids (list[str]): The list of work IDs to retrieve classifications for.
+ raw_oa_institution_id (str): The ID of the institution to filter by.
+ page (int, optional): The page number. Defaults to 0.
+ size (int, optional): The number of results per page. Defaults to 10000.
+
+ Returns:
+ WorkClassificationPage: The page of work classifications matching the criteria.
+ """
+ account_institution_id = access_token_metadata.effective_institution_id
+ if not account_institution_id:
+ return WorkClassificationPage(elements=[], total=0, page=page, size=size)
+ if account_institution_id != raw_oa_institution_id:
+ return WorkClassificationPage(elements=[], total=0, page=page, size=size)
+
+ return await _get_work_classifications_by_work_ids(
+ work_ids=work_ids, page=page, size=size
)
async def _get_work_classification_by_work_id(
- raw_oa_work_id: str, source: Optional[List[str]] = None
-) -> Optional[WorkClassification]:
+ raw_oa_work_id: str, source: list[str] | None = None
+) -> WorkClassification | None:
"""Retrieves a work classification for a specific work ID.
Args:
@@ -776,7 +954,7 @@ async def _get_work_classification_by_work_id(
async def get_work_classification_by_work_id(
access_token_metadata: AccessTokenMetadata,
raw_oa_work_id: str,
-) -> Optional[WorkClassification]:
+) -> WorkClassification | None:
"""Retrieves a work classification for a specific work ID, filtered by the effective institution ID from the access token metadata.
Args:
@@ -791,7 +969,7 @@ async def get_work_classification_by_work_id(
if not raw_account_institution_id:
return None
- work = await get_work(
+ work = await get_work_by_id(
raw_oa_work_id=raw_oa_work_id, source=["id", "authorships.author.id"]
)
if not work:
@@ -886,7 +1064,7 @@ async def _get_primary_category_year_aggregations(
response.get("aggregations", {}).get("by_year", {}).get("buckets", [])
)
- results: List[PrimaryCategoryYearAggregation] = []
+ results: list[PrimaryCategoryYearAggregation] = []
for year_bucket in year_buckets:
category_buckets = year_bucket.get("by_category", {}).get("buckets", [])
categories = {cb["key"]: cb["doc_count"] for cb in category_buckets}
diff --git a/webapp/angular.json b/webapp/angular.json
index bf59135f..dadf2610 100644
--- a/webapp/angular.json
+++ b/webapp/angular.json
@@ -25,10 +25,7 @@
"tsConfig": "tsconfig.app.json",
"inlineStyleLanguage": "scss",
"assets": ["src/favicon.ico", "src/assets"],
- "styles": [
- "@angular/material/prebuilt-themes/indigo-pink.css",
- "src/styles.scss"
- ],
+ "styles": ["src/styles.scss"],
"scripts": []
},
"configurations": {
@@ -41,8 +38,8 @@
},
{
"type": "anyComponentStyle",
- "maximumWarning": "5kb",
- "maximumError": "10kb"
+ "maximumWarning": "10kb",
+ "maximumError": "20kb"
}
],
"outputHashing": "all"
@@ -83,10 +80,7 @@
"tsConfig": "tsconfig.spec.json",
"inlineStyleLanguage": "scss",
"assets": ["src/favicon.ico", "src/assets"],
- "styles": [
- "@angular/material/prebuilt-themes/indigo-pink.css",
- "src/styles.scss"
- ],
+ "styles": ["src/styles.scss"],
"scripts": []
}
}
diff --git a/webapp/src/app/api/.openapi-generator/FILES b/webapp/src/app/api/.openapi-generator/FILES
index 9122548b..e751f4aa 100644
--- a/webapp/src/app/api/.openapi-generator/FILES
+++ b/webapp/src/app/api/.openapi-generator/FILES
@@ -6,6 +6,8 @@ api.module.ts
api/api.ts
api/auth.service.ts
api/authorsV2.service.ts
+api/bUNDInstitutions.service.ts
+api/backgroundJobs.service.ts
api/bookmarks.service.ts
api/companyConnections.service.ts
api/dFGInstitutions.service.ts
@@ -19,7 +21,6 @@ api/keywords.service.ts
api/news.service.ts
api/organization.service.ts
api/patents.service.ts
-api/personNetwork.service.ts
api/persons.service.ts
api/projects.service.ts
api/ranking.service.ts
@@ -42,7 +43,10 @@ model/authorAffiliationsInner.ts
model/authorCountsByYearInner.ts
model/authorIds.ts
model/authorMetricsRequest.ts
-model/authorNetworkNode.ts
+model/authorNode.ts
+model/authorOrientationProfile.ts
+model/authorOrientationProfileStatus.ts
+model/authorOrientationProfilesRequest.ts
model/authorPage.ts
model/authorParsedLongestName.ts
model/authorPositionCount.ts
@@ -50,33 +54,36 @@ model/authorStaticStats.ts
model/authorSummaryStats.ts
model/authorTopicProfile.ts
model/authorTopicStats.ts
-model/authorsFilterProperties.ts
model/authorsListResponse.ts
model/authorship.ts
model/autocompleteLocationItem.ts
model/autocompleteResponse.ts
model/autocompleteResponseMeta.ts
model/autocompleteResponseResultsInner.ts
+model/availableImages.ts
model/award.ts
+model/backgroundJobTask.ts
+model/bmbfProjectStatusStatistics.ts
model/bodyChangePassword.ts
model/bodyGetAccessToken.ts
model/bodyLogin.ts
model/bodyRequestOtk.ts
model/bodyRequestPasswordReset.ts
model/bodyResetPassword.ts
-model/bundProject.ts
+model/bundInstitutionSummary.ts
+model/bundInstitutionSummaryPage.ts
model/bundProjectDetails.ts
model/bundProjectPage.ts
+model/bundProjectSummary.ts
model/careerMetrics.ts
model/careerStage.ts
-model/collaborationNetwork.ts
-model/collaborationNetworkEdge.ts
-model/collaborationNetworkNodeType.ts
+model/collaborationGraph.ts
+model/collaborationGraphStatus.ts
+model/collaborationGraphStatusResponse.ts
model/companyConnection.ts
+model/companyConnectionsAvailability.ts
model/companyConnectionsResponse.ts
model/companyStatusFilter.ts
-model/cordisEuProject.ts
-model/cordisEuProjectPage.ts
model/costUsd.ts
model/createAccountRequest.ts
model/createOrganizationRequest.ts
@@ -95,8 +102,18 @@ model/dfgInstitutionSummaryPage.ts
model/dfgPersonSummary.ts
model/dfgPersonSummaryPage.ts
model/dfgProjectDetails.ts
+model/dfgProjectInstitutionRole.ts
model/dfgProjectPage.ts
+model/dfgProjectPersonRole.ts
+model/dfgProjectPublicationSummary.ts
+model/dfgProjectStatusStatistics.ts
+model/dfgProjectSubjectArea.ts
+model/dfgProjectSubprojectSummary.ts
model/dfgProjectSummary.ts
+model/dfgProjectTopic.ts
+model/dfgProjectTopics.ts
+model/dockerHealth.ts
+model/edge.ts
model/euCordisEurosciVocSummary.ts
model/euCordisOrganizationSelectorPage.ts
model/euCordisOrganizationSelectorSummary.ts
@@ -106,15 +123,12 @@ model/euCordisProjectSearchPage.ts
model/euCordisProjectSummary.ts
model/euCordisProjectType.ts
model/euCordisTopicSummary.ts
-model/euOrganizationProjectSummary.ts
-model/euOrganizationProjectSummaryPage.ts
model/euProjectData.ts
+model/euProjectStatusStatistics.ts
model/extractedKeywords.ts
model/extractedKeywordsLLM.ts
model/extractedKeywordsResponse.ts
model/fileUpload.ts
-model/filterInformation.ts
-model/filterProperties.ts
model/filterType.ts
model/fp7EurosciVoc.ts
model/fp7LegalBasis.ts
@@ -158,12 +172,17 @@ model/institution.ts
model/institutionFunderSummary.ts
model/institutionGeo.ts
model/institutionIds.ts
-model/institutionInformation.ts
-model/institutionNetworkNode.ts
+model/institutionNode.ts
model/institutionPage.ts
model/institutionPageV2.ts
model/institutionsListResponse.ts
model/ipcClassification.ts
+model/jobDefinitionCreateRequest.ts
+model/jobDefinitionUpdateRequest.ts
+model/jobRun.ts
+model/jobRunLogs.ts
+model/jobRunStatus.ts
+model/jobTriggeredBy.ts
model/keywordEntry.ts
model/keywordEntryWithTopic.ts
model/keywordEvidence.ts
@@ -175,7 +194,6 @@ model/keywordPatentSearchDiagnostics.ts
model/keywordPatentSearchItem.ts
model/keywordToAuthorRequest.ts
model/keywordTopicMatch.ts
-model/keywords.ts
model/keywordsRequest.ts
model/keywordsTopicsRequest.ts
model/keywordsTopicsResponse.ts
@@ -219,9 +237,11 @@ model/rankedAuthor.ts
model/rankingResponse.ts
model/rankingWeights.ts
model/rebuildResponse.ts
+model/registryHealth.ts
model/score.ts
model/selectedAuthorsRequest.ts
model/sortDirection.ts
+model/startCollaborationGraphResponse.ts
model/subfieldShare.ts
model/timespan.ts
model/tokenType.ts
@@ -236,12 +256,16 @@ model/topicDomain.ts
model/topicField.ts
model/topicHeatmap.ts
model/topicHeatmapField.ts
+model/topicHeatmapSubfield.ts
+model/topicHeatmapTopic.ts
model/topicHeatmapValue.ts
model/topicIds.ts
model/topicPageV2.ts
+model/topicSortBy.ts
model/topicSubfield.ts
+model/topicWordCloud.ts
+model/topicWordCloudWord.ts
model/topicYearlyData.ts
-model/topics.ts
model/topicsByTime.ts
model/topicsByYear.ts
model/topicsListResponse.ts
@@ -274,7 +298,7 @@ model/workHasContent.ts
model/workIds.ts
model/workKeyword.ts
model/workMeshInner.ts
-model/workNetworkNode.ts
+model/workNode.ts
model/workPage.ts
model/workPageV2.ts
model/workPrimaryCategory.ts
@@ -283,9 +307,7 @@ model/workSustainableDevelopmentGoalsInner.ts
model/workTopic.ts
model/workTopicDomain.ts
model/workTopicField.ts
-model/workTopicInformation.ts
model/workTopicSubfield.ts
-model/worksFilterProperties.ts
model/worksListResponse.ts
model/yearlyData.ts
param.ts
diff --git a/webapp/src/app/api/api/api.ts b/webapp/src/app/api/api/api.ts
index e8dd68e8..154e0dc5 100644
--- a/webapp/src/app/api/api/api.ts
+++ b/webapp/src/app/api/api/api.ts
@@ -2,6 +2,10 @@ export * from './auth.service';
import { AuthService } from './auth.service';
export * from './authorsV2.service';
import { AuthorsV2Service } from './authorsV2.service';
+export * from './bUNDInstitutions.service';
+import { BUNDInstitutionsService } from './bUNDInstitutions.service';
+export * from './backgroundJobs.service';
+import { BackgroundJobsService } from './backgroundJobs.service';
export * from './bookmarks.service';
import { BookmarksService } from './bookmarks.service';
export * from './companyConnections.service';
@@ -28,12 +32,12 @@ export * from './organization.service';
import { OrganizationService } from './organization.service';
export * from './patents.service';
import { PatentsService } from './patents.service';
-export * from './personNetwork.service';
-import { PersonNetworkService } from './personNetwork.service';
export * from './persons.service';
import { PersonsService } from './persons.service';
export * from './projects.service';
import { ProjectsService } from './projects.service';
+export * from './ranking.service';
+import { RankingService } from './ranking.service';
export * from './topics.service';
import { TopicsService } from './topics.service';
export * from './topicsV2.service';
@@ -42,13 +46,13 @@ export * from './universityRankings.service';
import { UniversityRankingsService } from './universityRankings.service';
export * from './works.service';
import { WorksService } from './works.service';
-export * from './ranking.service';
-import { RankingService } from './ranking.service';
export * from './worksV2.service';
import { WorksV2Service } from './worksV2.service';
export const APIS = [
AuthService,
AuthorsV2Service,
+ BUNDInstitutionsService,
+ BackgroundJobsService,
BookmarksService,
CompanyConnectionsService,
DFGInstitutionsService,
@@ -62,7 +66,6 @@ export const APIS = [
NewsService,
OrganizationService,
PatentsService,
- PersonNetworkService,
PersonsService,
ProjectsService,
RankingService,
diff --git a/webapp/src/app/api/api/authorsV2.service.ts b/webapp/src/app/api/api/authorsV2.service.ts
index aa247f9e..3facf7f0 100644
--- a/webapp/src/app/api/api/authorsV2.service.ts
+++ b/webapp/src/app/api/api/authorsV2.service.ts
@@ -22,10 +22,16 @@ import {
import { CustomHttpParameterCodec } from '../encoder';
import { Observable } from 'rxjs';
+// @ts-ignore
+import { Author } from '../model/author';
// @ts-ignore
import { AuthorPage } from '../model/authorPage';
// @ts-ignore
+import { CollaborationGraphStatusResponse } from '../model/collaborationGraphStatusResponse';
+// @ts-ignore
import { HTTPValidationError } from '../model/hTTPValidationError';
+// @ts-ignore
+import { StartCollaborationGraphResponse } from '../model/startCollaborationGraphResponse';
// @ts-ignore
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
@@ -46,7 +52,7 @@ export class AuthorsV2Service extends BaseService {
/**
* Returns a paginated list of authors for a given search term based on their display name.
- * @endpoint get /api/v2/authors/autocomplete/selector
+ * @endpoint get /api/authors/v2/autocomplete/selector
* @param query A search term to filter authors by (partial matches allowed).
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
@@ -128,7 +134,7 @@ export class AuthorsV2Service extends BaseService {
}
}
- let localVarPath = `/api/v2/authors/autocomplete/selector`;
+ let localVarPath = `/api/authors/v2/autocomplete/selector`;
const { basePath, withCredentials } = this.configuration;
return this.httpClient.request(
'get',
@@ -148,9 +154,111 @@ export class AuthorsV2Service extends BaseService {
);
}
+ /**
+ * Returns an author for a given author ID.
+ * @endpoint get /api/authors/v2/{raw_oa_author_id}
+ * @param rawOaAuthorId The ID of the author to retrieve.
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
+ * @param reportProgress flag to report request and response progress.
+ */
+ public getAuthorById(
+ rawOaAuthorId: string,
+ observe?: 'body',
+ reportProgress?: boolean,
+ options?: {
+ httpHeaderAccept?: 'application/json';
+ context?: HttpContext;
+ transferCache?: boolean;
+ },
+ ): Observable;
+ public getAuthorById(
+ rawOaAuthorId: string,
+ observe?: 'response',
+ reportProgress?: boolean,
+ options?: {
+ httpHeaderAccept?: 'application/json';
+ context?: HttpContext;
+ transferCache?: boolean;
+ },
+ ): Observable>;
+ public getAuthorById(
+ rawOaAuthorId: string,
+ observe?: 'events',
+ reportProgress?: boolean,
+ options?: {
+ httpHeaderAccept?: 'application/json';
+ context?: HttpContext;
+ transferCache?: boolean;
+ },
+ ): Observable>;
+ public getAuthorById(
+ rawOaAuthorId: string,
+ observe: any = 'body',
+ reportProgress: boolean = false,
+ options?: {
+ httpHeaderAccept?: 'application/json';
+ context?: HttpContext;
+ transferCache?: boolean;
+ },
+ ): Observable {
+ if (rawOaAuthorId === null || rawOaAuthorId === undefined) {
+ throw new Error(
+ 'Required parameter rawOaAuthorId was null or undefined when calling getAuthorById.',
+ );
+ }
+
+ let localVarHeaders = this.defaultHeaders;
+
+ const localVarHttpHeaderAcceptSelected: string | undefined =
+ options?.httpHeaderAccept ??
+ this.configuration.selectHeaderAccept(['application/json']);
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
+ localVarHeaders = localVarHeaders.set(
+ 'Accept',
+ localVarHttpHeaderAcceptSelected,
+ );
+ }
+
+ const localVarHttpContext: HttpContext =
+ options?.context ?? new HttpContext();
+
+ const localVarTransferCache: boolean = options?.transferCache ?? true;
+
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
+ if (localVarHttpHeaderAcceptSelected) {
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
+ responseType_ = 'text';
+ } else if (
+ this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)
+ ) {
+ responseType_ = 'json';
+ } else {
+ responseType_ = 'blob';
+ }
+ }
+
+ let localVarPath = `/api/authors/v2/${this.configuration.encodeParam({ name: 'rawOaAuthorId', value: rawOaAuthorId, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
+ const { basePath, withCredentials } = this.configuration;
+ return this.httpClient.request(
+ 'get',
+ `${basePath}${localVarPath}`,
+ {
+ context: localVarHttpContext,
+ responseType: responseType_,
+ ...(withCredentials ? { withCredentials } : {}),
+ headers: localVarHeaders,
+ observe: observe,
+ ...(localVarTransferCache !== undefined
+ ? { transferCache: localVarTransferCache }
+ : {}),
+ reportProgress: reportProgress,
+ },
+ );
+ }
+
/**
* Returns a paginated list of authors for a given list of author IDs.
- * @endpoint get /api/v2/authors/authors/id
+ * @endpoint get /api/authors/v2/authors/id
* @param authorIds A list of author IDs to retrieve.
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
@@ -236,7 +344,7 @@ export class AuthorsV2Service extends BaseService {
}
}
- let localVarPath = `/api/v2/authors/authors/id`;
+ let localVarPath = `/api/authors/v2/authors/id`;
const { basePath, withCredentials } = this.configuration;
return this.httpClient.request(
'get',
@@ -255,4 +363,284 @@ export class AuthorsV2Service extends BaseService {
},
);
}
+
+ /**
+ * Returns the status of a collaboration graph generation task.
+ * @endpoint get /api/authors/v2/collaboration-graph/{graph_id}/status
+ * @param graphId The ID of the collaboration graph generation task.
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
+ * @param reportProgress flag to report request and response progress.
+ */
+ public getCollaborationGraphStatus(
+ graphId: string,
+ observe?: 'body',
+ reportProgress?: boolean,
+ options?: {
+ httpHeaderAccept?: 'application/json';
+ context?: HttpContext;
+ transferCache?: boolean;
+ },
+ ): Observable;
+ public getCollaborationGraphStatus(
+ graphId: string,
+ observe?: 'response',
+ reportProgress?: boolean,
+ options?: {
+ httpHeaderAccept?: 'application/json';
+ context?: HttpContext;
+ transferCache?: boolean;
+ },
+ ): Observable>;
+ public getCollaborationGraphStatus(
+ graphId: string,
+ observe?: 'events',
+ reportProgress?: boolean,
+ options?: {
+ httpHeaderAccept?: 'application/json';
+ context?: HttpContext;
+ transferCache?: boolean;
+ },
+ ): Observable>;
+ public getCollaborationGraphStatus(
+ graphId: string,
+ observe: any = 'body',
+ reportProgress: boolean = false,
+ options?: {
+ httpHeaderAccept?: 'application/json';
+ context?: HttpContext;
+ transferCache?: boolean;
+ },
+ ): Observable {
+ if (graphId === null || graphId === undefined) {
+ throw new Error(
+ 'Required parameter graphId was null or undefined when calling getCollaborationGraphStatus.',
+ );
+ }
+
+ let localVarHeaders = this.defaultHeaders;
+
+ const localVarHttpHeaderAcceptSelected: string | undefined =
+ options?.httpHeaderAccept ??
+ this.configuration.selectHeaderAccept(['application/json']);
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
+ localVarHeaders = localVarHeaders.set(
+ 'Accept',
+ localVarHttpHeaderAcceptSelected,
+ );
+ }
+
+ const localVarHttpContext: HttpContext =
+ options?.context ?? new HttpContext();
+
+ const localVarTransferCache: boolean = options?.transferCache ?? true;
+
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
+ if (localVarHttpHeaderAcceptSelected) {
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
+ responseType_ = 'text';
+ } else if (
+ this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)
+ ) {
+ responseType_ = 'json';
+ } else {
+ responseType_ = 'blob';
+ }
+ }
+
+ let localVarPath = `/api/authors/v2/collaboration-graph/${this.configuration.encodeParam({ name: 'graphId', value: graphId, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/status`;
+ const { basePath, withCredentials } = this.configuration;
+ return this.httpClient.request(
+ 'get',
+ `${basePath}${localVarPath}`,
+ {
+ context: localVarHttpContext,
+ responseType: responseType_,
+ ...(withCredentials ? { withCredentials } : {}),
+ headers: localVarHeaders,
+ observe: observe,
+ ...(localVarTransferCache !== undefined
+ ? { transferCache: localVarTransferCache }
+ : {}),
+ reportProgress: reportProgress,
+ },
+ );
+ }
+
+ /**
+ * Returns a collaboration graph for a given author ID.
+ * @endpoint post /api/authors/v2/collaboration-graph
+ * @param rawOaAuthorId The raw OpenAlex author ID for which to retrieve the collaboration graph.
+ * @param yearFrom The starting year to filter the works by (optional).
+ * @param yearTo The ending year to filter the works by (optional).
+ * @param minCollaborators The minimum number of collaborators to filter the works by (optional).
+ * @param maxCollaborators The maximum number of collaborators to filter the works by (optional).
+ * @param topicIds A list of topic IDs to filter the works by (optional).
+ * @param institutionIds A list of institution IDs to filter the works by (optional).
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
+ * @param reportProgress flag to report request and response progress.
+ */
+ public startCollaborationGraph(
+ rawOaAuthorId: string,
+ yearFrom?: number,
+ yearTo?: number,
+ minCollaborators?: number,
+ maxCollaborators?: number,
+ topicIds?: Array,
+ institutionIds?: Array,
+ observe?: 'body',
+ reportProgress?: boolean,
+ options?: {
+ httpHeaderAccept?: 'application/json';
+ context?: HttpContext;
+ transferCache?: boolean;
+ },
+ ): Observable;
+ public startCollaborationGraph(
+ rawOaAuthorId: string,
+ yearFrom?: number,
+ yearTo?: number,
+ minCollaborators?: number,
+ maxCollaborators?: number,
+ topicIds?: Array,
+ institutionIds?: Array,
+ observe?: 'response',
+ reportProgress?: boolean,
+ options?: {
+ httpHeaderAccept?: 'application/json';
+ context?: HttpContext;
+ transferCache?: boolean;
+ },
+ ): Observable>;
+ public startCollaborationGraph(
+ rawOaAuthorId: string,
+ yearFrom?: number,
+ yearTo?: number,
+ minCollaborators?: number,
+ maxCollaborators?: number,
+ topicIds?: Array,
+ institutionIds?: Array,
+ observe?: 'events',
+ reportProgress?: boolean,
+ options?: {
+ httpHeaderAccept?: 'application/json';
+ context?: HttpContext;
+ transferCache?: boolean;
+ },
+ ): Observable>;
+ public startCollaborationGraph(
+ rawOaAuthorId: string,
+ yearFrom?: number,
+ yearTo?: number,
+ minCollaborators?: number,
+ maxCollaborators?: number,
+ topicIds?: Array,
+ institutionIds?: Array,
+ observe: any = 'body',
+ reportProgress: boolean = false,
+ options?: {
+ httpHeaderAccept?: 'application/json';
+ context?: HttpContext;
+ transferCache?: boolean;
+ },
+ ): Observable {
+ if (rawOaAuthorId === null || rawOaAuthorId === undefined) {
+ throw new Error(
+ 'Required parameter rawOaAuthorId was null or undefined when calling startCollaborationGraph.',
+ );
+ }
+
+ let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
+ localVarQueryParameters = this.addToHttpParams(
+ localVarQueryParameters,
+ rawOaAuthorId,
+ 'raw_oa_author_id',
+ );
+ localVarQueryParameters = this.addToHttpParams(
+ localVarQueryParameters,
+ yearFrom,
+ 'year_from',
+ );
+ localVarQueryParameters = this.addToHttpParams(
+ localVarQueryParameters,
+ yearTo,
+ 'year_to',
+ );
+ localVarQueryParameters = this.addToHttpParams(
+ localVarQueryParameters,
+ minCollaborators,
+ 'min_collaborators',
+ );
+ localVarQueryParameters = this.addToHttpParams(
+ localVarQueryParameters,
+ maxCollaborators,
+ 'max_collaborators',
+ );
+ if (topicIds) {
+ topicIds.forEach((element) => {
+ localVarQueryParameters = this.addToHttpParams(
+ localVarQueryParameters,
+ element,
+ 'topic_ids',
+ );
+ });
+ }
+ if (institutionIds) {
+ institutionIds.forEach((element) => {
+ localVarQueryParameters = this.addToHttpParams(
+ localVarQueryParameters,
+ element,
+ 'institution_ids',
+ );
+ });
+ }
+
+ let localVarHeaders = this.defaultHeaders;
+
+ const localVarHttpHeaderAcceptSelected: string | undefined =
+ options?.httpHeaderAccept ??
+ this.configuration.selectHeaderAccept(['application/json']);
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
+ localVarHeaders = localVarHeaders.set(
+ 'Accept',
+ localVarHttpHeaderAcceptSelected,
+ );
+ }
+
+ const localVarHttpContext: HttpContext =
+ options?.context ?? new HttpContext();
+
+ const localVarTransferCache: boolean = options?.transferCache ?? true;
+
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
+ if (localVarHttpHeaderAcceptSelected) {
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
+ responseType_ = 'text';
+ } else if (
+ this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)
+ ) {
+ responseType_ = 'json';
+ } else {
+ responseType_ = 'blob';
+ }
+ }
+
+ let localVarPath = `/api/authors/v2/collaboration-graph`;
+ const { basePath, withCredentials } = this.configuration;
+ return this.httpClient.request(
+ 'post',
+ `${basePath}${localVarPath}`,
+ {
+ context: localVarHttpContext,
+ params: localVarQueryParameters,
+ responseType: responseType_,
+ ...(withCredentials ? { withCredentials } : {}),
+ headers: localVarHeaders,
+ observe: observe,
+ ...(localVarTransferCache !== undefined
+ ? { transferCache: localVarTransferCache }
+ : {}),
+ reportProgress: reportProgress,
+ },
+ );
+ }
}
diff --git a/webapp/src/app/api/api/bUNDInstitutions.service.ts b/webapp/src/app/api/api/bUNDInstitutions.service.ts
new file mode 100644
index 00000000..1e01fb85
--- /dev/null
+++ b/webapp/src/app/api/api/bUNDInstitutions.service.ts
@@ -0,0 +1,258 @@
+/**
+ * Innovation Search Engine API
+ *
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ */
+/* tslint:disable:no-unused-variable member-ordering */
+
+import { Inject, Injectable, Optional } from '@angular/core';
+import {
+ HttpClient,
+ HttpHeaders,
+ HttpParams,
+ HttpResponse,
+ HttpEvent,
+ HttpParameterCodec,
+ HttpContext,
+} from '@angular/common/http';
+import { CustomHttpParameterCodec } from '../encoder';
+import { Observable } from 'rxjs';
+
+// @ts-ignore
+import { BundInstitutionSummaryPage } from '../model/bundInstitutionSummaryPage';
+// @ts-ignore
+import { HTTPValidationError } from '../model/hTTPValidationError';
+
+// @ts-ignore
+import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
+import { Configuration } from '../configuration';
+import { BaseService } from '../api.base.service';
+
+@Injectable({
+ providedIn: 'root',
+})
+export class BUNDInstitutionsService extends BaseService {
+ constructor(
+ protected httpClient: HttpClient,
+ @Optional() @Inject(BASE_PATH) basePath: string | string[],
+ @Optional() configuration?: Configuration,
+ ) {
+ super(basePath, configuration);
+ }
+
+ /**
+ * Returns a list of institutions based on a search term for autocomplete functionality.
+ * @endpoint get /api/bund/institutions/autocomplete/selector
+ * @param query A search term to filter institutions by (partial matches allowed).
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
+ * @param reportProgress flag to report request and response progress.
+ */
+ public getBundInstitutionAutocompleteForSelector(
+ query?: string,
+ observe?: 'body',
+ reportProgress?: boolean,
+ options?: {
+ httpHeaderAccept?: 'application/json';
+ context?: HttpContext;
+ transferCache?: boolean;
+ },
+ ): Observable;
+ public getBundInstitutionAutocompleteForSelector(
+ query?: string,
+ observe?: 'response',
+ reportProgress?: boolean,
+ options?: {
+ httpHeaderAccept?: 'application/json';
+ context?: HttpContext;
+ transferCache?: boolean;
+ },
+ ): Observable>;
+ public getBundInstitutionAutocompleteForSelector(
+ query?: string,
+ observe?: 'events',
+ reportProgress?: boolean,
+ options?: {
+ httpHeaderAccept?: 'application/json';
+ context?: HttpContext;
+ transferCache?: boolean;
+ },
+ ): Observable>;
+ public getBundInstitutionAutocompleteForSelector(
+ query?: string,
+ observe: any = 'body',
+ reportProgress: boolean = false,
+ options?: {
+ httpHeaderAccept?: 'application/json';
+ context?: HttpContext;
+ transferCache?: boolean;
+ },
+ ): Observable {
+ let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
+ localVarQueryParameters = this.addToHttpParams(
+ localVarQueryParameters,
+ query,
+ 'query',
+ );
+
+ let localVarHeaders = this.defaultHeaders;
+
+ const localVarHttpHeaderAcceptSelected: string | undefined =
+ options?.httpHeaderAccept ??
+ this.configuration.selectHeaderAccept(['application/json']);
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
+ localVarHeaders = localVarHeaders.set(
+ 'Accept',
+ localVarHttpHeaderAcceptSelected,
+ );
+ }
+
+ const localVarHttpContext: HttpContext =
+ options?.context ?? new HttpContext();
+
+ const localVarTransferCache: boolean = options?.transferCache ?? true;
+
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
+ if (localVarHttpHeaderAcceptSelected) {
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
+ responseType_ = 'text';
+ } else if (
+ this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)
+ ) {
+ responseType_ = 'json';
+ } else {
+ responseType_ = 'blob';
+ }
+ }
+
+ let localVarPath = `/api/bund/institutions/autocomplete/selector`;
+ const { basePath, withCredentials } = this.configuration;
+ return this.httpClient.request(
+ 'get',
+ `${basePath}${localVarPath}`,
+ {
+ context: localVarHttpContext,
+ params: localVarQueryParameters,
+ responseType: responseType_,
+ ...(withCredentials ? { withCredentials } : {}),
+ headers: localVarHeaders,
+ observe: observe,
+ ...(localVarTransferCache !== undefined
+ ? { transferCache: localVarTransferCache }
+ : {}),
+ reportProgress: reportProgress,
+ },
+ );
+ }
+
+ /**
+ * Returns a list of institutions based on their names.
+ * @endpoint get /api/bund/institutions/names
+ * @param institutionNames A list of institution names to retrieve.
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
+ * @param reportProgress flag to report request and response progress.
+ */
+ public getBundInstitutionsByName(
+ institutionNames?: Array,
+ observe?: 'body',
+ reportProgress?: boolean,
+ options?: {
+ httpHeaderAccept?: 'application/json';
+ context?: HttpContext;
+ transferCache?: boolean;
+ },
+ ): Observable;
+ public getBundInstitutionsByName(
+ institutionNames?: Array,
+ observe?: 'response',
+ reportProgress?: boolean,
+ options?: {
+ httpHeaderAccept?: 'application/json';
+ context?: HttpContext;
+ transferCache?: boolean;
+ },
+ ): Observable>;
+ public getBundInstitutionsByName(
+ institutionNames?: Array,
+ observe?: 'events',
+ reportProgress?: boolean,
+ options?: {
+ httpHeaderAccept?: 'application/json';
+ context?: HttpContext;
+ transferCache?: boolean;
+ },
+ ): Observable>;
+ public getBundInstitutionsByName(
+ institutionNames?: Array,
+ observe: any = 'body',
+ reportProgress: boolean = false,
+ options?: {
+ httpHeaderAccept?: 'application/json';
+ context?: HttpContext;
+ transferCache?: boolean;
+ },
+ ): Observable {
+ let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
+ if (institutionNames) {
+ institutionNames.forEach((element) => {
+ localVarQueryParameters = this.addToHttpParams(
+ localVarQueryParameters,
+ element,
+ 'institution_names',
+ );
+ });
+ }
+
+ let localVarHeaders = this.defaultHeaders;
+
+ const localVarHttpHeaderAcceptSelected: string | undefined =
+ options?.httpHeaderAccept ??
+ this.configuration.selectHeaderAccept(['application/json']);
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
+ localVarHeaders = localVarHeaders.set(
+ 'Accept',
+ localVarHttpHeaderAcceptSelected,
+ );
+ }
+
+ const localVarHttpContext: HttpContext =
+ options?.context ?? new HttpContext();
+
+ const localVarTransferCache: boolean = options?.transferCache ?? true;
+
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
+ if (localVarHttpHeaderAcceptSelected) {
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
+ responseType_ = 'text';
+ } else if (
+ this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)
+ ) {
+ responseType_ = 'json';
+ } else {
+ responseType_ = 'blob';
+ }
+ }
+
+ let localVarPath = `/api/bund/institutions/names`;
+ const { basePath, withCredentials } = this.configuration;
+ return this.httpClient.request(
+ 'get',
+ `${basePath}${localVarPath}`,
+ {
+ context: localVarHttpContext,
+ params: localVarQueryParameters,
+ responseType: responseType_,
+ ...(withCredentials ? { withCredentials } : {}),
+ headers: localVarHeaders,
+ observe: observe,
+ ...(localVarTransferCache !== undefined
+ ? { transferCache: localVarTransferCache }
+ : {}),
+ reportProgress: reportProgress,
+ },
+ );
+ }
+}
diff --git a/webapp/src/app/api/api/backgroundJobs.service.ts b/webapp/src/app/api/api/backgroundJobs.service.ts
new file mode 100644
index 00000000..c8b6c411
--- /dev/null
+++ b/webapp/src/app/api/api/backgroundJobs.service.ts
@@ -0,0 +1,1334 @@
+/**
+ * Innovation Search Engine API
+ *
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ */
+/* tslint:disable:no-unused-variable member-ordering */
+
+import { Inject, Injectable, Optional } from '@angular/core';
+import {
+ HttpClient,
+ HttpHeaders,
+ HttpParams,
+ HttpResponse,
+ HttpEvent,
+ HttpParameterCodec,
+ HttpContext,
+} from '@angular/common/http';
+import { CustomHttpParameterCodec } from '../encoder';
+import { Observable } from 'rxjs';
+
+// @ts-ignore
+import { AvailableImages } from '../model/availableImages';
+// @ts-ignore
+import { BackgroundJobTask } from '../model/backgroundJobTask';
+// @ts-ignore
+import { DockerHealth } from '../model/dockerHealth';
+// @ts-ignore
+import { HTTPValidationError } from '../model/hTTPValidationError';
+// @ts-ignore
+import { JobDefinitionCreateRequest } from '../model/jobDefinitionCreateRequest';
+// @ts-ignore
+import { JobDefinitionUpdateRequest } from '../model/jobDefinitionUpdateRequest';
+// @ts-ignore
+import { JobRun } from '../model/jobRun';
+// @ts-ignore
+import { JobRunLogs } from '../model/jobRunLogs';
+// @ts-ignore
+import { RegistryHealth } from '../model/registryHealth';
+
+// @ts-ignore
+import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
+import { Configuration } from '../configuration';
+import { BaseService } from '../api.base.service';
+
+@Injectable({
+ providedIn: 'root',
+})
+export class BackgroundJobsService extends BaseService {
+ constructor(
+ protected httpClient: HttpClient,
+ @Optional() @Inject(BASE_PATH) basePath: string | string[],
+ @Optional() configuration?: Configuration,
+ ) {
+ super(basePath, configuration);
+ }
+
+ /**
+ * Create Task
+ * @endpoint post /api/background-jobs/tasks
+ * @param jobDefinitionCreateRequest
+ * @param secureFgpAcc
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
+ * @param reportProgress flag to report request and response progress.
+ */
+ public createBackgroundJobTask(
+ jobDefinitionCreateRequest: JobDefinitionCreateRequest,
+ secureFgpAcc?: string,
+ observe?: 'body',
+ reportProgress?: boolean,
+ options?: {
+ httpHeaderAccept?: 'application/json';
+ context?: HttpContext;
+ transferCache?: boolean;
+ },
+ ): Observable;
+ public createBackgroundJobTask(
+ jobDefinitionCreateRequest: JobDefinitionCreateRequest,
+ secureFgpAcc?: string,
+ observe?: 'response',
+ reportProgress?: boolean,
+ options?: {
+ httpHeaderAccept?: 'application/json';
+ context?: HttpContext;
+ transferCache?: boolean;
+ },
+ ): Observable>;
+ public createBackgroundJobTask(
+ jobDefinitionCreateRequest: JobDefinitionCreateRequest,
+ secureFgpAcc?: string,
+ observe?: 'events',
+ reportProgress?: boolean,
+ options?: {
+ httpHeaderAccept?: 'application/json';
+ context?: HttpContext;
+ transferCache?: boolean;
+ },
+ ): Observable>;
+ public createBackgroundJobTask(
+ jobDefinitionCreateRequest: JobDefinitionCreateRequest,
+ secureFgpAcc?: string,
+ observe: any = 'body',
+ reportProgress: boolean = false,
+ options?: {
+ httpHeaderAccept?: 'application/json';
+ context?: HttpContext;
+ transferCache?: boolean;
+ },
+ ): Observable {
+ if (
+ jobDefinitionCreateRequest === null ||
+ jobDefinitionCreateRequest === undefined
+ ) {
+ throw new Error(
+ 'Required parameter jobDefinitionCreateRequest was null or undefined when calling createBackgroundJobTask.',
+ );
+ }
+
+ let localVarHeaders = this.defaultHeaders;
+
+ // authentication (HTTPBearer) required
+ localVarHeaders = this.configuration.addCredentialToHeaders(
+ 'HTTPBearer',
+ 'Authorization',
+ localVarHeaders,
+ 'Bearer ',
+ );
+
+ const localVarHttpHeaderAcceptSelected: string | undefined =
+ options?.httpHeaderAccept ??
+ this.configuration.selectHeaderAccept(['application/json']);
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
+ localVarHeaders = localVarHeaders.set(
+ 'Accept',
+ localVarHttpHeaderAcceptSelected,
+ );
+ }
+
+ const localVarHttpContext: HttpContext =
+ options?.context ?? new HttpContext();
+
+ const localVarTransferCache: boolean = options?.transferCache ?? true;
+
+ // to determine the Content-Type header
+ const consumes: string[] = ['application/json'];
+ const httpContentTypeSelected: string | undefined =
+ this.configuration.selectHeaderContentType(consumes);
+ if (httpContentTypeSelected !== undefined) {
+ localVarHeaders = localVarHeaders.set(
+ 'Content-Type',
+ httpContentTypeSelected,
+ );
+ }
+
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
+ if (localVarHttpHeaderAcceptSelected) {
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
+ responseType_ = 'text';
+ } else if (
+ this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)
+ ) {
+ responseType_ = 'json';
+ } else {
+ responseType_ = 'blob';
+ }
+ }
+
+ let localVarPath = `/api/background-jobs/tasks`;
+ const { basePath, withCredentials } = this.configuration;
+ return this.httpClient.request(
+ 'post',
+ `${basePath}${localVarPath}`,
+ {
+ context: localVarHttpContext,
+ body: jobDefinitionCreateRequest,
+ responseType: responseType_,
+ ...(withCredentials ? { withCredentials } : {}),
+ headers: localVarHeaders,
+ observe: observe,
+ ...(localVarTransferCache !== undefined
+ ? { transferCache: localVarTransferCache }
+ : {}),
+ reportProgress: reportProgress,
+ },
+ );
+ }
+
+ /**
+ * Delete Task
+ * @endpoint delete /api/background-jobs/tasks/{task_id}
+ * @param taskId
+ * @param secureFgpAcc
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
+ * @param reportProgress flag to report request and response progress.
+ */
+ public deleteBackgroundJobTask(
+ taskId: number,
+ secureFgpAcc?: string,
+ observe?: 'body',
+ reportProgress?: boolean,
+ options?: {
+ httpHeaderAccept?: 'application/json';
+ context?: HttpContext;
+ transferCache?: boolean;
+ },
+ ): Observable;
+ public deleteBackgroundJobTask(
+ taskId: number,
+ secureFgpAcc?: string,
+ observe?: 'response',
+ reportProgress?: boolean,
+ options?: {
+ httpHeaderAccept?: 'application/json';
+ context?: HttpContext;
+ transferCache?: boolean;
+ },
+ ): Observable>;
+ public deleteBackgroundJobTask(
+ taskId: number,
+ secureFgpAcc?: string,
+ observe?: 'events',
+ reportProgress?: boolean,
+ options?: {
+ httpHeaderAccept?: 'application/json';
+ context?: HttpContext;
+ transferCache?: boolean;
+ },
+ ): Observable>;
+ public deleteBackgroundJobTask(
+ taskId: number,
+ secureFgpAcc?: string,
+ observe: any = 'body',
+ reportProgress: boolean = false,
+ options?: {
+ httpHeaderAccept?: 'application/json';
+ context?: HttpContext;
+ transferCache?: boolean;
+ },
+ ): Observable {
+ if (taskId === null || taskId === undefined) {
+ throw new Error(
+ 'Required parameter taskId was null or undefined when calling deleteBackgroundJobTask.',
+ );
+ }
+
+ let localVarHeaders = this.defaultHeaders;
+
+ // authentication (HTTPBearer) required
+ localVarHeaders = this.configuration.addCredentialToHeaders(
+ 'HTTPBearer',
+ 'Authorization',
+ localVarHeaders,
+ 'Bearer ',
+ );
+
+ const localVarHttpHeaderAcceptSelected: string | undefined =
+ options?.httpHeaderAccept ??
+ this.configuration.selectHeaderAccept(['application/json']);
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
+ localVarHeaders = localVarHeaders.set(
+ 'Accept',
+ localVarHttpHeaderAcceptSelected,
+ );
+ }
+
+ const localVarHttpContext: HttpContext =
+ options?.context ?? new HttpContext();
+
+ const localVarTransferCache: boolean = options?.transferCache ?? true;
+
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
+ if (localVarHttpHeaderAcceptSelected) {
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
+ responseType_ = 'text';
+ } else if (
+ this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)
+ ) {
+ responseType_ = 'json';
+ } else {
+ responseType_ = 'blob';
+ }
+ }
+
+ let localVarPath = `/api/background-jobs/tasks/${this.configuration.encodeParam({ name: 'taskId', value: taskId, in: 'path', style: 'simple', explode: false, dataType: 'number', dataFormat: undefined })}`;
+ const { basePath, withCredentials } = this.configuration;
+ return this.httpClient.request(
+ 'delete',
+ `${basePath}${localVarPath}`,
+ {
+ context: localVarHttpContext,
+ responseType: responseType_,
+ ...(withCredentials ? { withCredentials } : {}),
+ headers: localVarHeaders,
+ observe: observe,
+ ...(localVarTransferCache !== undefined
+ ? { transferCache: localVarTransferCache }
+ : {}),
+ reportProgress: reportProgress,
+ },
+ );
+ }
+
+ /**
+ * Get Available Images
+ * @endpoint get /api/background-jobs/available-images
+ * @param secureFgpAcc
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
+ * @param reportProgress flag to report request and response progress.
+ */
+ public getBackgroundJobAvailableImages(
+ secureFgpAcc?: string,
+ observe?: 'body',
+ reportProgress?: boolean,
+ options?: {
+ httpHeaderAccept?: 'application/json';
+ context?: HttpContext;
+ transferCache?: boolean;
+ },
+ ): Observable;
+ public getBackgroundJobAvailableImages(
+ secureFgpAcc?: string,
+ observe?: 'response',
+ reportProgress?: boolean,
+ options?: {
+ httpHeaderAccept?: 'application/json';
+ context?: HttpContext;
+ transferCache?: boolean;
+ },
+ ): Observable>;
+ public getBackgroundJobAvailableImages(
+ secureFgpAcc?: string,
+ observe?: 'events',
+ reportProgress?: boolean,
+ options?: {
+ httpHeaderAccept?: 'application/json';
+ context?: HttpContext;
+ transferCache?: boolean;
+ },
+ ): Observable>;
+ public getBackgroundJobAvailableImages(
+ secureFgpAcc?: string,
+ observe: any = 'body',
+ reportProgress: boolean = false,
+ options?: {
+ httpHeaderAccept?: 'application/json';
+ context?: HttpContext;
+ transferCache?: boolean;
+ },
+ ): Observable {
+ let localVarHeaders = this.defaultHeaders;
+
+ // authentication (HTTPBearer) required
+ localVarHeaders = this.configuration.addCredentialToHeaders(
+ 'HTTPBearer',
+ 'Authorization',
+ localVarHeaders,
+ 'Bearer ',
+ );
+
+ const localVarHttpHeaderAcceptSelected: string | undefined =
+ options?.httpHeaderAccept ??
+ this.configuration.selectHeaderAccept(['application/json']);
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
+ localVarHeaders = localVarHeaders.set(
+ 'Accept',
+ localVarHttpHeaderAcceptSelected,
+ );
+ }
+
+ const localVarHttpContext: HttpContext =
+ options?.context ?? new HttpContext();
+
+ const localVarTransferCache: boolean = options?.transferCache ?? true;
+
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
+ if (localVarHttpHeaderAcceptSelected) {
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
+ responseType_ = 'text';
+ } else if (
+ this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)
+ ) {
+ responseType_ = 'json';
+ } else {
+ responseType_ = 'blob';
+ }
+ }
+
+ let localVarPath = `/api/background-jobs/available-images`;
+ const { basePath, withCredentials } = this.configuration;
+ return this.httpClient.request(
+ 'get',
+ `${basePath}${localVarPath}`,
+ {
+ context: localVarHttpContext,
+ responseType: responseType_,
+ ...(withCredentials ? { withCredentials } : {}),
+ headers: localVarHeaders,
+ observe: observe,
+ ...(localVarTransferCache !== undefined
+ ? { transferCache: localVarTransferCache }
+ : {}),
+ reportProgress: reportProgress,
+ },
+ );
+ }
+
+ /**
+ * Get Run Logs
+ * @endpoint get /api/background-jobs/runs/{run_id}/logs
+ * @param runId
+ * @param secureFgpAcc
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
+ * @param reportProgress flag to report request and response progress.
+ */
+ public getBackgroundJobRunLogs(
+ runId: number,
+ secureFgpAcc?: string,
+ observe?: 'body',
+ reportProgress?: boolean,
+ options?: {
+ httpHeaderAccept?: 'application/json';
+ context?: HttpContext;
+ transferCache?: boolean;
+ },
+ ): Observable;
+ public getBackgroundJobRunLogs(
+ runId: number,
+ secureFgpAcc?: string,
+ observe?: 'response',
+ reportProgress?: boolean,
+ options?: {
+ httpHeaderAccept?: 'application/json';
+ context?: HttpContext;
+ transferCache?: boolean;
+ },
+ ): Observable>;
+ public getBackgroundJobRunLogs(
+ runId: number,
+ secureFgpAcc?: string,
+ observe?: 'events',
+ reportProgress?: boolean,
+ options?: {
+ httpHeaderAccept?: 'application/json';
+ context?: HttpContext;
+ transferCache?: boolean;
+ },
+ ): Observable>;
+ public getBackgroundJobRunLogs(
+ runId: number,
+ secureFgpAcc?: string,
+ observe: any = 'body',
+ reportProgress: boolean = false,
+ options?: {
+ httpHeaderAccept?: 'application/json';
+ context?: HttpContext;
+ transferCache?: boolean;
+ },
+ ): Observable {
+ if (runId === null || runId === undefined) {
+ throw new Error(
+ 'Required parameter runId was null or undefined when calling getBackgroundJobRunLogs.',
+ );
+ }
+
+ let localVarHeaders = this.defaultHeaders;
+
+ // authentication (HTTPBearer) required
+ localVarHeaders = this.configuration.addCredentialToHeaders(
+ 'HTTPBearer',
+ 'Authorization',
+ localVarHeaders,
+ 'Bearer ',
+ );
+
+ const localVarHttpHeaderAcceptSelected: string | undefined =
+ options?.httpHeaderAccept ??
+ this.configuration.selectHeaderAccept(['application/json']);
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
+ localVarHeaders = localVarHeaders.set(
+ 'Accept',
+ localVarHttpHeaderAcceptSelected,
+ );
+ }
+
+ const localVarHttpContext: HttpContext =
+ options?.context ?? new HttpContext();
+
+ const localVarTransferCache: boolean = options?.transferCache ?? true;
+
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
+ if (localVarHttpHeaderAcceptSelected) {
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
+ responseType_ = 'text';
+ } else if (
+ this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)
+ ) {
+ responseType_ = 'json';
+ } else {
+ responseType_ = 'blob';
+ }
+ }
+
+ let localVarPath = `/api/background-jobs/runs/${this.configuration.encodeParam({ name: 'runId', value: runId, in: 'path', style: 'simple', explode: false, dataType: 'number', dataFormat: undefined })}/logs`;
+ const { basePath, withCredentials } = this.configuration;
+ return this.httpClient.request(
+ 'get',
+ `${basePath}${localVarPath}`,
+ {
+ context: localVarHttpContext,
+ responseType: responseType_,
+ ...(withCredentials ? { withCredentials } : {}),
+ headers: localVarHeaders,
+ observe: observe,
+ ...(localVarTransferCache !== undefined
+ ? { transferCache: localVarTransferCache }
+ : {}),
+ reportProgress: reportProgress,
+ },
+ );
+ }
+
+ /**
+ * Get Task Runs
+ * @endpoint get /api/background-jobs/tasks/{task_id}/runs
+ * @param taskId
+ * @param limit
+ * @param secureFgpAcc
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
+ * @param reportProgress flag to report request and response progress.
+ */
+ public getBackgroundJobTaskRuns(
+ taskId: number,
+ limit?: number,
+ secureFgpAcc?: string,
+ observe?: 'body',
+ reportProgress?: boolean,
+ options?: {
+ httpHeaderAccept?: 'application/json';
+ context?: HttpContext;
+ transferCache?: boolean;
+ },
+ ): Observable>;
+ public getBackgroundJobTaskRuns(
+ taskId: number,
+ limit?: number,
+ secureFgpAcc?: string,
+ observe?: 'response',
+ reportProgress?: boolean,
+ options?: {
+ httpHeaderAccept?: 'application/json';
+ context?: HttpContext;
+ transferCache?: boolean;
+ },
+ ): Observable>>;
+ public getBackgroundJobTaskRuns(
+ taskId: number,
+ limit?: number,
+ secureFgpAcc?: string,
+ observe?: 'events',
+ reportProgress?: boolean,
+ options?: {
+ httpHeaderAccept?: 'application/json';
+ context?: HttpContext;
+ transferCache?: boolean;
+ },
+ ): Observable>>;
+ public getBackgroundJobTaskRuns(
+ taskId: number,
+ limit?: number,
+ secureFgpAcc?: string,
+ observe: any = 'body',
+ reportProgress: boolean = false,
+ options?: {
+ httpHeaderAccept?: 'application/json';
+ context?: HttpContext;
+ transferCache?: boolean;
+ },
+ ): Observable {
+ if (taskId === null || taskId === undefined) {
+ throw new Error(
+ 'Required parameter taskId was null or undefined when calling getBackgroundJobTaskRuns.',
+ );
+ }
+
+ let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
+ localVarQueryParameters = this.addToHttpParams(
+ localVarQueryParameters,
+ limit,
+ 'limit',
+ );
+
+ let localVarHeaders = this.defaultHeaders;
+
+ // authentication (HTTPBearer) required
+ localVarHeaders = this.configuration.addCredentialToHeaders(
+ 'HTTPBearer',
+ 'Authorization',
+ localVarHeaders,
+ 'Bearer ',
+ );
+
+ const localVarHttpHeaderAcceptSelected: string | undefined =
+ options?.httpHeaderAccept ??
+ this.configuration.selectHeaderAccept(['application/json']);
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
+ localVarHeaders = localVarHeaders.set(
+ 'Accept',
+ localVarHttpHeaderAcceptSelected,
+ );
+ }
+
+ const localVarHttpContext: HttpContext =
+ options?.context ?? new HttpContext();
+
+ const localVarTransferCache: boolean = options?.transferCache ?? true;
+
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
+ if (localVarHttpHeaderAcceptSelected) {
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
+ responseType_ = 'text';
+ } else if (
+ this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)
+ ) {
+ responseType_ = 'json';
+ } else {
+ responseType_ = 'blob';
+ }
+ }
+
+ let localVarPath = `/api/background-jobs/tasks/${this.configuration.encodeParam({ name: 'taskId', value: taskId, in: 'path', style: 'simple', explode: false, dataType: 'number', dataFormat: undefined })}/runs`;
+ const { basePath, withCredentials } = this.configuration;
+ return this.httpClient.request>(
+ 'get',
+ `${basePath}${localVarPath}`,
+ {
+ context: localVarHttpContext,
+ params: localVarQueryParameters,
+ responseType: responseType_,
+ ...(withCredentials ? { withCredentials } : {}),
+ headers: localVarHeaders,
+ observe: observe,
+ ...(localVarTransferCache !== undefined
+ ? { transferCache: localVarTransferCache }
+ : {}),
+ reportProgress: reportProgress,
+ },
+ );
+ }
+
+ /**
+ * Get Tasks
+ * @endpoint get /api/background-jobs/tasks
+ * @param secureFgpAcc
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
+ * @param reportProgress flag to report request and response progress.
+ */
+ public getBackgroundJobTasks(
+ secureFgpAcc?: string,
+ observe?: 'body',
+ reportProgress?: boolean,
+ options?: {
+ httpHeaderAccept?: 'application/json';
+ context?: HttpContext;
+ transferCache?: boolean;
+ },
+ ): Observable>;
+ public getBackgroundJobTasks(
+ secureFgpAcc?: string,
+ observe?: 'response',
+ reportProgress?: boolean,
+ options?: {
+ httpHeaderAccept?: 'application/json';
+ context?: HttpContext;
+ transferCache?: boolean;
+ },
+ ): Observable>>;
+ public getBackgroundJobTasks(
+ secureFgpAcc?: string,
+ observe?: 'events',
+ reportProgress?: boolean,
+ options?: {
+ httpHeaderAccept?: 'application/json';
+ context?: HttpContext;
+ transferCache?: boolean;
+ },
+ ): Observable>>;
+ public getBackgroundJobTasks(
+ secureFgpAcc?: string,
+ observe: any = 'body',
+ reportProgress: boolean = false,
+ options?: {
+ httpHeaderAccept?: 'application/json';
+ context?: HttpContext;
+ transferCache?: boolean;
+ },
+ ): Observable {
+ let localVarHeaders = this.defaultHeaders;
+
+ // authentication (HTTPBearer) required
+ localVarHeaders = this.configuration.addCredentialToHeaders(
+ 'HTTPBearer',
+ 'Authorization',
+ localVarHeaders,
+ 'Bearer ',
+ );
+
+ const localVarHttpHeaderAcceptSelected: string | undefined =
+ options?.httpHeaderAccept ??
+ this.configuration.selectHeaderAccept(['application/json']);
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
+ localVarHeaders = localVarHeaders.set(
+ 'Accept',
+ localVarHttpHeaderAcceptSelected,
+ );
+ }
+
+ const localVarHttpContext: HttpContext =
+ options?.context ?? new HttpContext();
+
+ const localVarTransferCache: boolean = options?.transferCache ?? true;
+
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
+ if (localVarHttpHeaderAcceptSelected) {
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
+ responseType_ = 'text';
+ } else if (
+ this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)
+ ) {
+ responseType_ = 'json';
+ } else {
+ responseType_ = 'blob';
+ }
+ }
+
+ let localVarPath = `/api/background-jobs/tasks`;
+ const { basePath, withCredentials } = this.configuration;
+ return this.httpClient.request>(
+ 'get',
+ `${basePath}${localVarPath}`,
+ {
+ context: localVarHttpContext,
+ responseType: responseType_,
+ ...(withCredentials ? { withCredentials } : {}),
+ headers: localVarHeaders,
+ observe: observe,
+ ...(localVarTransferCache !== undefined
+ ? { transferCache: localVarTransferCache }
+ : {}),
+ reportProgress: reportProgress,
+ },
+ );
+ }
+
+ /**
+ * Docker Health
+ * @endpoint get /api/background-jobs/docker-health
+ * @param secureFgpAcc
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
+ * @param reportProgress flag to report request and response progress.
+ */
+ public getBackgroundJobsDockerHealth(
+ secureFgpAcc?: string,
+ observe?: 'body',
+ reportProgress?: boolean,
+ options?: {
+ httpHeaderAccept?: 'application/json';
+ context?: HttpContext;
+ transferCache?: boolean;
+ },
+ ): Observable;
+ public getBackgroundJobsDockerHealth(
+ secureFgpAcc?: string,
+ observe?: 'response',
+ reportProgress?: boolean,
+ options?: {
+ httpHeaderAccept?: 'application/json';
+ context?: HttpContext;
+ transferCache?: boolean;
+ },
+ ): Observable>;
+ public getBackgroundJobsDockerHealth(
+ secureFgpAcc?: string,
+ observe?: 'events',
+ reportProgress?: boolean,
+ options?: {
+ httpHeaderAccept?: 'application/json';
+ context?: HttpContext;
+ transferCache?: boolean;
+ },
+ ): Observable>;
+ public getBackgroundJobsDockerHealth(
+ secureFgpAcc?: string,
+ observe: any = 'body',
+ reportProgress: boolean = false,
+ options?: {
+ httpHeaderAccept?: 'application/json';
+ context?: HttpContext;
+ transferCache?: boolean;
+ },
+ ): Observable {
+ let localVarHeaders = this.defaultHeaders;
+
+ // authentication (HTTPBearer) required
+ localVarHeaders = this.configuration.addCredentialToHeaders(
+ 'HTTPBearer',
+ 'Authorization',
+ localVarHeaders,
+ 'Bearer ',
+ );
+
+ const localVarHttpHeaderAcceptSelected: string | undefined =
+ options?.httpHeaderAccept ??
+ this.configuration.selectHeaderAccept(['application/json']);
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
+ localVarHeaders = localVarHeaders.set(
+ 'Accept',
+ localVarHttpHeaderAcceptSelected,
+ );
+ }
+
+ const localVarHttpContext: HttpContext =
+ options?.context ?? new HttpContext();
+
+ const localVarTransferCache: boolean = options?.transferCache ?? true;
+
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
+ if (localVarHttpHeaderAcceptSelected) {
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
+ responseType_ = 'text';
+ } else if (
+ this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)
+ ) {
+ responseType_ = 'json';
+ } else {
+ responseType_ = 'blob';
+ }
+ }
+
+ let localVarPath = `/api/background-jobs/docker-health`;
+ const { basePath, withCredentials } = this.configuration;
+ return this.httpClient.request(
+ 'get',
+ `${basePath}${localVarPath}`,
+ {
+ context: localVarHttpContext,
+ responseType: responseType_,
+ ...(withCredentials ? { withCredentials } : {}),
+ headers: localVarHeaders,
+ observe: observe,
+ ...(localVarTransferCache !== undefined
+ ? { transferCache: localVarTransferCache }
+ : {}),
+ reportProgress: reportProgress,
+ },
+ );
+ }
+
+ /**
+ * Registry Health
+ * @endpoint get /api/background-jobs/registry-health
+ * @param secureFgpAcc
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
+ * @param reportProgress flag to report request and response progress.
+ */
+ public getBackgroundJobsRegistryHealth(
+ secureFgpAcc?: string,
+ observe?: 'body',
+ reportProgress?: boolean,
+ options?: {
+ httpHeaderAccept?: 'application/json';
+ context?: HttpContext;
+ transferCache?: boolean;
+ },
+ ): Observable;
+ public getBackgroundJobsRegistryHealth(
+ secureFgpAcc?: string,
+ observe?: 'response',
+ reportProgress?: boolean,
+ options?: {
+ httpHeaderAccept?: 'application/json';
+ context?: HttpContext;
+ transferCache?: boolean;
+ },
+ ): Observable>;
+ public getBackgroundJobsRegistryHealth(
+ secureFgpAcc?: string,
+ observe?: 'events',
+ reportProgress?: boolean,
+ options?: {
+ httpHeaderAccept?: 'application/json';
+ context?: HttpContext;
+ transferCache?: boolean;
+ },
+ ): Observable>;
+ public getBackgroundJobsRegistryHealth(
+ secureFgpAcc?: string,
+ observe: any = 'body',
+ reportProgress: boolean = false,
+ options?: {
+ httpHeaderAccept?: 'application/json';
+ context?: HttpContext;
+ transferCache?: boolean;
+ },
+ ): Observable {
+ let localVarHeaders = this.defaultHeaders;
+
+ // authentication (HTTPBearer) required
+ localVarHeaders = this.configuration.addCredentialToHeaders(
+ 'HTTPBearer',
+ 'Authorization',
+ localVarHeaders,
+ 'Bearer ',
+ );
+
+ const localVarHttpHeaderAcceptSelected: string | undefined =
+ options?.httpHeaderAccept ??
+ this.configuration.selectHeaderAccept(['application/json']);
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
+ localVarHeaders = localVarHeaders.set(
+ 'Accept',
+ localVarHttpHeaderAcceptSelected,
+ );
+ }
+
+ const localVarHttpContext: HttpContext =
+ options?.context ?? new HttpContext();
+
+ const localVarTransferCache: boolean = options?.transferCache ?? true;
+
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
+ if (localVarHttpHeaderAcceptSelected) {
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
+ responseType_ = 'text';
+ } else if (
+ this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)
+ ) {
+ responseType_ = 'json';
+ } else {
+ responseType_ = 'blob';
+ }
+ }
+
+ let localVarPath = `/api/background-jobs/registry-health`;
+ const { basePath, withCredentials } = this.configuration;
+ return this.httpClient.request(
+ 'get',
+ `${basePath}${localVarPath}`,
+ {
+ context: localVarHttpContext,
+ responseType: responseType_,
+ ...(withCredentials ? { withCredentials } : {}),
+ headers: localVarHeaders,
+ observe: observe,
+ ...(localVarTransferCache !== undefined
+ ? { transferCache: localVarTransferCache }
+ : {}),
+ reportProgress: reportProgress,
+ },
+ );
+ }
+
+ /**
+ * Run Task
+ * @endpoint post /api/background-jobs/tasks/{task_id}/run
+ * @param taskId
+ * @param secureFgpAcc
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
+ * @param reportProgress flag to report request and response progress.
+ */
+ public runBackgroundJobTask(
+ taskId: number,
+ secureFgpAcc?: string,
+ observe?: 'body',
+ reportProgress?: boolean,
+ options?: {
+ httpHeaderAccept?: 'application/json';
+ context?: HttpContext;
+ transferCache?: boolean;
+ },
+ ): Observable;
+ public runBackgroundJobTask(
+ taskId: number,
+ secureFgpAcc?: string,
+ observe?: 'response',
+ reportProgress?: boolean,
+ options?: {
+ httpHeaderAccept?: 'application/json';
+ context?: HttpContext;
+ transferCache?: boolean;
+ },
+ ): Observable>;
+ public runBackgroundJobTask(
+ taskId: number,
+ secureFgpAcc?: string,
+ observe?: 'events',
+ reportProgress?: boolean,
+ options?: {
+ httpHeaderAccept?: 'application/json';
+ context?: HttpContext;
+ transferCache?: boolean;
+ },
+ ): Observable>;
+ public runBackgroundJobTask(
+ taskId: number,
+ secureFgpAcc?: string,
+ observe: any = 'body',
+ reportProgress: boolean = false,
+ options?: {
+ httpHeaderAccept?: 'application/json';
+ context?: HttpContext;
+ transferCache?: boolean;
+ },
+ ): Observable {
+ if (taskId === null || taskId === undefined) {
+ throw new Error(
+ 'Required parameter taskId was null or undefined when calling runBackgroundJobTask.',
+ );
+ }
+
+ let localVarHeaders = this.defaultHeaders;
+
+ // authentication (HTTPBearer) required
+ localVarHeaders = this.configuration.addCredentialToHeaders(
+ 'HTTPBearer',
+ 'Authorization',
+ localVarHeaders,
+ 'Bearer ',
+ );
+
+ const localVarHttpHeaderAcceptSelected: string | undefined =
+ options?.httpHeaderAccept ??
+ this.configuration.selectHeaderAccept(['application/json']);
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
+ localVarHeaders = localVarHeaders.set(
+ 'Accept',
+ localVarHttpHeaderAcceptSelected,
+ );
+ }
+
+ const localVarHttpContext: HttpContext =
+ options?.context ?? new HttpContext();
+
+ const localVarTransferCache: boolean = options?.transferCache ?? true;
+
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
+ if (localVarHttpHeaderAcceptSelected) {
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
+ responseType_ = 'text';
+ } else if (
+ this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)
+ ) {
+ responseType_ = 'json';
+ } else {
+ responseType_ = 'blob';
+ }
+ }
+
+ let localVarPath = `/api/background-jobs/tasks/${this.configuration.encodeParam({ name: 'taskId', value: taskId, in: 'path', style: 'simple', explode: false, dataType: 'number', dataFormat: undefined })}/run`;
+ const { basePath, withCredentials } = this.configuration;
+ return this.httpClient.request(
+ 'post',
+ `${basePath}${localVarPath}`,
+ {
+ context: localVarHttpContext,
+ responseType: responseType_,
+ ...(withCredentials ? { withCredentials } : {}),
+ headers: localVarHeaders,
+ observe: observe,
+ ...(localVarTransferCache !== undefined
+ ? { transferCache: localVarTransferCache }
+ : {}),
+ reportProgress: reportProgress,
+ },
+ );
+ }
+
+ /**
+ * Stop Run
+ * @endpoint post /api/background-jobs/runs/{run_id}/stop
+ * @param runId
+ * @param secureFgpAcc
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
+ * @param reportProgress flag to report request and response progress.
+ */
+ public stopBackgroundJobRun(
+ runId: number,
+ secureFgpAcc?: string,
+ observe?: 'body',
+ reportProgress?: boolean,
+ options?: {
+ httpHeaderAccept?: 'application/json';
+ context?: HttpContext;
+ transferCache?: boolean;
+ },
+ ): Observable;
+ public stopBackgroundJobRun(
+ runId: number,
+ secureFgpAcc?: string,
+ observe?: 'response',
+ reportProgress?: boolean,
+ options?: {
+ httpHeaderAccept?: 'application/json';
+ context?: HttpContext;
+ transferCache?: boolean;
+ },
+ ): Observable>;
+ public stopBackgroundJobRun(
+ runId: number,
+ secureFgpAcc?: string,
+ observe?: 'events',
+ reportProgress?: boolean,
+ options?: {
+ httpHeaderAccept?: 'application/json';
+ context?: HttpContext;
+ transferCache?: boolean;
+ },
+ ): Observable>;
+ public stopBackgroundJobRun(
+ runId: number,
+ secureFgpAcc?: string,
+ observe: any = 'body',
+ reportProgress: boolean = false,
+ options?: {
+ httpHeaderAccept?: 'application/json';
+ context?: HttpContext;
+ transferCache?: boolean;
+ },
+ ): Observable {
+ if (runId === null || runId === undefined) {
+ throw new Error(
+ 'Required parameter runId was null or undefined when calling stopBackgroundJobRun.',
+ );
+ }
+
+ let localVarHeaders = this.defaultHeaders;
+
+ // authentication (HTTPBearer) required
+ localVarHeaders = this.configuration.addCredentialToHeaders(
+ 'HTTPBearer',
+ 'Authorization',
+ localVarHeaders,
+ 'Bearer ',
+ );
+
+ const localVarHttpHeaderAcceptSelected: string | undefined =
+ options?.httpHeaderAccept ??
+ this.configuration.selectHeaderAccept(['application/json']);
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
+ localVarHeaders = localVarHeaders.set(
+ 'Accept',
+ localVarHttpHeaderAcceptSelected,
+ );
+ }
+
+ const localVarHttpContext: HttpContext =
+ options?.context ?? new HttpContext();
+
+ const localVarTransferCache: boolean = options?.transferCache ?? true;
+
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
+ if (localVarHttpHeaderAcceptSelected) {
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
+ responseType_ = 'text';
+ } else if (
+ this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)
+ ) {
+ responseType_ = 'json';
+ } else {
+ responseType_ = 'blob';
+ }
+ }
+
+ let localVarPath = `/api/background-jobs/runs/${this.configuration.encodeParam({ name: 'runId', value: runId, in: 'path', style: 'simple', explode: false, dataType: 'number', dataFormat: undefined })}/stop`;
+ const { basePath, withCredentials } = this.configuration;
+ return this.httpClient.request(
+ 'post',
+ `${basePath}${localVarPath}`,
+ {
+ context: localVarHttpContext,
+ responseType: responseType_,
+ ...(withCredentials ? { withCredentials } : {}),
+ headers: localVarHeaders,
+ observe: observe,
+ ...(localVarTransferCache !== undefined
+ ? { transferCache: localVarTransferCache }
+ : {}),
+ reportProgress: reportProgress,
+ },
+ );
+ }
+
+ /**
+ * Update Task
+ * @endpoint patch /api/background-jobs/tasks/{task_id}
+ * @param taskId
+ * @param jobDefinitionUpdateRequest
+ * @param secureFgpAcc
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
+ * @param reportProgress flag to report request and response progress.
+ */
+ public updateBackgroundJobTask(
+ taskId: number,
+ jobDefinitionUpdateRequest: JobDefinitionUpdateRequest,
+ secureFgpAcc?: string,
+ observe?: 'body',
+ reportProgress?: boolean,
+ options?: {
+ httpHeaderAccept?: 'application/json';
+ context?: HttpContext;
+ transferCache?: boolean;
+ },
+ ): Observable;
+ public updateBackgroundJobTask(
+ taskId: number,
+ jobDefinitionUpdateRequest: JobDefinitionUpdateRequest,
+ secureFgpAcc?: string,
+ observe?: 'response',
+ reportProgress?: boolean,
+ options?: {
+ httpHeaderAccept?: 'application/json';
+ context?: HttpContext;
+ transferCache?: boolean;
+ },
+ ): Observable>;
+ public updateBackgroundJobTask(
+ taskId: number,
+ jobDefinitionUpdateRequest: JobDefinitionUpdateRequest,
+ secureFgpAcc?: string,
+ observe?: 'events',
+ reportProgress?: boolean,
+ options?: {
+ httpHeaderAccept?: 'application/json';
+ context?: HttpContext;
+ transferCache?: boolean;
+ },
+ ): Observable>;
+ public updateBackgroundJobTask(
+ taskId: number,
+ jobDefinitionUpdateRequest: JobDefinitionUpdateRequest,
+ secureFgpAcc?: string,
+ observe: any = 'body',
+ reportProgress: boolean = false,
+ options?: {
+ httpHeaderAccept?: 'application/json';
+ context?: HttpContext;
+ transferCache?: boolean;
+ },
+ ): Observable {
+ if (taskId === null || taskId === undefined) {
+ throw new Error(
+ 'Required parameter taskId was null or undefined when calling updateBackgroundJobTask.',
+ );
+ }
+ if (
+ jobDefinitionUpdateRequest === null ||
+ jobDefinitionUpdateRequest === undefined
+ ) {
+ throw new Error(
+ 'Required parameter jobDefinitionUpdateRequest was null or undefined when calling updateBackgroundJobTask.',
+ );
+ }
+
+ let localVarHeaders = this.defaultHeaders;
+
+ // authentication (HTTPBearer) required
+ localVarHeaders = this.configuration.addCredentialToHeaders(
+ 'HTTPBearer',
+ 'Authorization',
+ localVarHeaders,
+ 'Bearer ',
+ );
+
+ const localVarHttpHeaderAcceptSelected: string | undefined =
+ options?.httpHeaderAccept ??
+ this.configuration.selectHeaderAccept(['application/json']);
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
+ localVarHeaders = localVarHeaders.set(
+ 'Accept',
+ localVarHttpHeaderAcceptSelected,
+ );
+ }
+
+ const localVarHttpContext: HttpContext =
+ options?.context ?? new HttpContext();
+
+ const localVarTransferCache: boolean = options?.transferCache ?? true;
+
+ // to determine the Content-Type header
+ const consumes: string[] = ['application/json'];
+ const httpContentTypeSelected: string | undefined =
+ this.configuration.selectHeaderContentType(consumes);
+ if (httpContentTypeSelected !== undefined) {
+ localVarHeaders = localVarHeaders.set(
+ 'Content-Type',
+ httpContentTypeSelected,
+ );
+ }
+
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
+ if (localVarHttpHeaderAcceptSelected) {
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
+ responseType_ = 'text';
+ } else if (
+ this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)
+ ) {
+ responseType_ = 'json';
+ } else {
+ responseType_ = 'blob';
+ }
+ }
+
+ let localVarPath = `/api/background-jobs/tasks/${this.configuration.encodeParam({ name: 'taskId', value: taskId, in: 'path', style: 'simple', explode: false, dataType: 'number', dataFormat: undefined })}`;
+ const { basePath, withCredentials } = this.configuration;
+ return this.httpClient.request(
+ 'patch',
+ `${basePath}${localVarPath}`,
+ {
+ context: localVarHttpContext,
+ body: jobDefinitionUpdateRequest,
+ responseType: responseType_,
+ ...(withCredentials ? { withCredentials } : {}),
+ headers: localVarHeaders,
+ observe: observe,
+ ...(localVarTransferCache !== undefined
+ ? { transferCache: localVarTransferCache }
+ : {}),
+ reportProgress: reportProgress,
+ },
+ );
+ }
+}
diff --git a/webapp/src/app/api/api/companyConnections.service.ts b/webapp/src/app/api/api/companyConnections.service.ts
index 59c13e2a..e9018fad 100644
--- a/webapp/src/app/api/api/companyConnections.service.ts
+++ b/webapp/src/app/api/api/companyConnections.service.ts
@@ -50,11 +50,13 @@ export class CompanyConnectionsService extends BaseService {
* Check whether company connections are available for an author.
* @endpoint get /api/inse-service/authors/{author_id}/company-connections/availability
* @param authorId
+ * @param secureFgpAcc
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
*/
public getCompanyConnectionsAvailability(
authorId: string,
+ secureFgpAcc?: string,
observe?: 'body',
reportProgress?: boolean,
options?: {
@@ -65,6 +67,7 @@ export class CompanyConnectionsService extends BaseService {
): Observable;
public getCompanyConnectionsAvailability(
authorId: string,
+ secureFgpAcc?: string,
observe?: 'response',
reportProgress?: boolean,
options?: {
@@ -75,6 +78,7 @@ export class CompanyConnectionsService extends BaseService {
): Observable>;
public getCompanyConnectionsAvailability(
authorId: string,
+ secureFgpAcc?: string,
observe?: 'events',
reportProgress?: boolean,
options?: {
@@ -85,6 +89,7 @@ export class CompanyConnectionsService extends BaseService {
): Observable>;
public getCompanyConnectionsAvailability(
authorId: string,
+ secureFgpAcc?: string,
observe: any = 'body',
reportProgress: boolean = false,
options?: {
@@ -101,6 +106,14 @@ export class CompanyConnectionsService extends BaseService {
let localVarHeaders = this.defaultHeaders;
+ // authentication (HTTPBearer) required
+ localVarHeaders = this.configuration.addCredentialToHeaders(
+ 'HTTPBearer',
+ 'Authorization',
+ localVarHeaders,
+ 'Bearer ',
+ );
+
const localVarHttpHeaderAcceptSelected: string | undefined =
options?.httpHeaderAccept ??
this.configuration.selectHeaderAccept(['application/json']);
@@ -152,11 +165,13 @@ export class CompanyConnectionsService extends BaseService {
* Get possible company connections by OpenAlex author ID.
* @endpoint get /api/inse-service/authors/{author_id}/company-connections
* @param authorId
+ * @param secureFgpAcc
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
*/
public getCompanyConnectionsByAuthor(
authorId: string,
+ secureFgpAcc?: string,
observe?: 'body',
reportProgress?: boolean,
options?: {
@@ -167,6 +182,7 @@ export class CompanyConnectionsService extends BaseService {
): Observable;
public getCompanyConnectionsByAuthor(
authorId: string,
+ secureFgpAcc?: string,
observe?: 'response',
reportProgress?: boolean,
options?: {
@@ -177,6 +193,7 @@ export class CompanyConnectionsService extends BaseService {
): Observable>;
public getCompanyConnectionsByAuthor(
authorId: string,
+ secureFgpAcc?: string,
observe?: 'events',
reportProgress?: boolean,
options?: {
@@ -187,6 +204,7 @@ export class CompanyConnectionsService extends BaseService {
): Observable>;
public getCompanyConnectionsByAuthor(
authorId: string,
+ secureFgpAcc?: string,
observe: any = 'body',
reportProgress: boolean = false,
options?: {
@@ -203,6 +221,14 @@ export class CompanyConnectionsService extends BaseService {
let localVarHeaders = this.defaultHeaders;
+ // authentication (HTTPBearer) required
+ localVarHeaders = this.configuration.addCredentialToHeaders(
+ 'HTTPBearer',
+ 'Authorization',
+ localVarHeaders,
+ 'Bearer ',
+ );
+
const localVarHttpHeaderAcceptSelected: string | undefined =
options?.httpHeaderAccept ??
this.configuration.selectHeaderAccept(['application/json']);
diff --git a/webapp/src/app/api/api/dashboard.service.ts b/webapp/src/app/api/api/dashboard.service.ts
index 247dfab8..a7dfe885 100644
--- a/webapp/src/app/api/api/dashboard.service.ts
+++ b/webapp/src/app/api/api/dashboard.service.ts
@@ -22,16 +22,26 @@ import {
import { CustomHttpParameterCodec } from '../encoder';
import { Observable } from 'rxjs';
+// @ts-ignore
+import { BmbfProjectStatusStatistics } from '../model/bmbfProjectStatusStatistics';
// @ts-ignore
import { DashboardStatisticValue } from '../model/dashboardStatisticValue';
// @ts-ignore
import { DashboardStatistics } from '../model/dashboardStatistics';
// @ts-ignore
+import { DfgProjectStatusStatistics } from '../model/dfgProjectStatusStatistics';
+// @ts-ignore
+import { DfgProjectTopics } from '../model/dfgProjectTopics';
+// @ts-ignore
+import { EuProjectStatusStatistics } from '../model/euProjectStatusStatistics';
+// @ts-ignore
import { HTTPValidationError } from '../model/hTTPValidationError';
// @ts-ignore
import { TopAuthorStatistics } from '../model/topAuthorStatistics';
// @ts-ignore
import { TopicHeatmap } from '../model/topicHeatmap';
+// @ts-ignore
+import { TopicWordCloud } from '../model/topicWordCloud';
// @ts-ignore
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
@@ -50,14 +60,145 @@ export class DashboardService extends BaseService {
super(basePath, configuration);
}
+ /**
+ * Dashboard Bmbf Project Statuses
+ * @endpoint get /api/dashboard/projects/bmbf/status
+ * @param fromYear
+ * @param toYear
+ * @param secureFgpAcc
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
+ * @param reportProgress flag to report request and response progress.
+ */
+ public getDashboardBmbfProjectStatuses(
+ fromYear?: number,
+ toYear?: number,
+ secureFgpAcc?: string,
+ observe?: 'body',
+ reportProgress?: boolean,
+ options?: {
+ httpHeaderAccept?: 'application/json';
+ context?: HttpContext;
+ transferCache?: boolean;
+ },
+ ): Observable;
+ public getDashboardBmbfProjectStatuses(
+ fromYear?: number,
+ toYear?: number,
+ secureFgpAcc?: string,
+ observe?: 'response',
+ reportProgress?: boolean,
+ options?: {
+ httpHeaderAccept?: 'application/json';
+ context?: HttpContext;
+ transferCache?: boolean;
+ },
+ ): Observable>;
+ public getDashboardBmbfProjectStatuses(
+ fromYear?: number,
+ toYear?: number,
+ secureFgpAcc?: string,
+ observe?: 'events',
+ reportProgress?: boolean,
+ options?: {
+ httpHeaderAccept?: 'application/json';
+ context?: HttpContext;
+ transferCache?: boolean;
+ },
+ ): Observable>;
+ public getDashboardBmbfProjectStatuses(
+ fromYear?: number,
+ toYear?: number,
+ secureFgpAcc?: string,
+ observe: any = 'body',
+ reportProgress: boolean = false,
+ options?: {
+ httpHeaderAccept?: 'application/json';
+ context?: HttpContext;
+ transferCache?: boolean;
+ },
+ ): Observable {
+ let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
+ localVarQueryParameters = this.addToHttpParams(
+ localVarQueryParameters,
+ fromYear,
+ 'from_year',
+ );
+ localVarQueryParameters = this.addToHttpParams(
+ localVarQueryParameters,
+ toYear,
+ 'to_year',
+ );
+
+ let localVarHeaders = this.defaultHeaders;
+
+ // authentication (HTTPBearer) required
+ localVarHeaders = this.configuration.addCredentialToHeaders(
+ 'HTTPBearer',
+ 'Authorization',
+ localVarHeaders,
+ 'Bearer ',
+ );
+
+ const localVarHttpHeaderAcceptSelected: string | undefined =
+ options?.httpHeaderAccept ??
+ this.configuration.selectHeaderAccept(['application/json']);
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
+ localVarHeaders = localVarHeaders.set(
+ 'Accept',
+ localVarHttpHeaderAcceptSelected,
+ );
+ }
+
+ const localVarHttpContext: HttpContext =
+ options?.context ?? new HttpContext();
+
+ const localVarTransferCache: boolean = options?.transferCache ?? true;
+
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
+ if (localVarHttpHeaderAcceptSelected) {
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
+ responseType_ = 'text';
+ } else if (
+ this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)
+ ) {
+ responseType_ = 'json';
+ } else {
+ responseType_ = 'blob';
+ }
+ }
+
+ let localVarPath = `/api/dashboard/projects/bmbf/status`;
+ const { basePath, withCredentials } = this.configuration;
+ return this.httpClient.request(
+ 'get',
+ `${basePath}${localVarPath}`,
+ {
+ context: localVarHttpContext,
+ params: localVarQueryParameters,
+ responseType: responseType_,
+ ...(withCredentials ? { withCredentials } : {}),
+ headers: localVarHeaders,
+ observe: observe,
+ ...(localVarTransferCache !== undefined
+ ? { transferCache: localVarTransferCache }
+ : {}),
+ reportProgress: reportProgress,
+ },
+ );
+ }
+
/**
* Dashboard Bmbf Projects
* @endpoint get /api/dashboard/statistics/projects/bmbf
+ * @param fromYear
+ * @param toYear
* @param secureFgpAcc
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
*/
public getDashboardBmbfProjects(
+ fromYear?: number,
+ toYear?: number,
secureFgpAcc?: string,
observe?: 'body',
reportProgress?: boolean,
@@ -68,6 +209,8 @@ export class DashboardService extends BaseService {
},
): Observable;
public getDashboardBmbfProjects(
+ fromYear?: number,
+ toYear?: number,
secureFgpAcc?: string,
observe?: 'response',
reportProgress?: boolean,
@@ -78,6 +221,8 @@ export class DashboardService extends BaseService {
},
): Observable>;
public getDashboardBmbfProjects(
+ fromYear?: number,
+ toYear?: number,
secureFgpAcc?: string,
observe?: 'events',
reportProgress?: boolean,
@@ -88,6 +233,8 @@ export class DashboardService extends BaseService {
},
): Observable>;
public getDashboardBmbfProjects(
+ fromYear?: number,
+ toYear?: number,
secureFgpAcc?: string,
observe: any = 'body',
reportProgress: boolean = false,
@@ -97,6 +244,18 @@ export class DashboardService extends BaseService {
transferCache?: boolean;
},
): Observable {
+ let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
+ localVarQueryParameters = this.addToHttpParams(
+ localVarQueryParameters,
+ fromYear,
+ 'from_year',
+ );
+ localVarQueryParameters = this.addToHttpParams(
+ localVarQueryParameters,
+ toYear,
+ 'to_year',
+ );
+
let localVarHeaders = this.defaultHeaders;
// authentication (HTTPBearer) required
@@ -142,6 +301,261 @@ export class DashboardService extends BaseService {
`${basePath}${localVarPath}`,
{
context: localVarHttpContext,
+ params: localVarQueryParameters,
+ responseType: responseType_,
+ ...(withCredentials ? { withCredentials } : {}),
+ headers: localVarHeaders,
+ observe: observe,
+ ...(localVarTransferCache !== undefined
+ ? { transferCache: localVarTransferCache }
+ : {}),
+ reportProgress: reportProgress,
+ },
+ );
+ }
+
+ /**
+ * Dashboard Dfg Project Statuses
+ * @endpoint get /api/dashboard/projects/dfg/status
+ * @param fromYear
+ * @param toYear
+ * @param secureFgpAcc
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
+ * @param reportProgress flag to report request and response progress.
+ */
+ public getDashboardDfgProjectStatuses(
+ fromYear?: number,
+ toYear?: number,
+ secureFgpAcc?: string,
+ observe?: 'body',
+ reportProgress?: boolean,
+ options?: {
+ httpHeaderAccept?: 'application/json';
+ context?: HttpContext;
+ transferCache?: boolean;
+ },
+ ): Observable;
+ public getDashboardDfgProjectStatuses(
+ fromYear?: number,
+ toYear?: number,
+ secureFgpAcc?: string,
+ observe?: 'response',
+ reportProgress?: boolean,
+ options?: {
+ httpHeaderAccept?: 'application/json';
+ context?: HttpContext;
+ transferCache?: boolean;
+ },
+ ): Observable>;
+ public getDashboardDfgProjectStatuses(
+ fromYear?: number,
+ toYear?: number,
+ secureFgpAcc?: string,
+ observe?: 'events',
+ reportProgress?: boolean,
+ options?: {
+ httpHeaderAccept?: 'application/json';
+ context?: HttpContext;
+ transferCache?: boolean;
+ },
+ ): Observable>;
+ public getDashboardDfgProjectStatuses(
+ fromYear?: number,
+ toYear?: number,
+ secureFgpAcc?: string,
+ observe: any = 'body',
+ reportProgress: boolean = false,
+ options?: {
+ httpHeaderAccept?: 'application/json';
+ context?: HttpContext;
+ transferCache?: boolean;
+ },
+ ): Observable {
+ let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
+ localVarQueryParameters = this.addToHttpParams(
+ localVarQueryParameters,
+ fromYear,
+ 'from_year',
+ );
+ localVarQueryParameters = this.addToHttpParams(
+ localVarQueryParameters,
+ toYear,
+ 'to_year',
+ );
+
+ let localVarHeaders = this.defaultHeaders;
+
+ // authentication (HTTPBearer) required
+ localVarHeaders = this.configuration.addCredentialToHeaders(
+ 'HTTPBearer',
+ 'Authorization',
+ localVarHeaders,
+ 'Bearer ',
+ );
+
+ const localVarHttpHeaderAcceptSelected: string | undefined =
+ options?.httpHeaderAccept ??
+ this.configuration.selectHeaderAccept(['application/json']);
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
+ localVarHeaders = localVarHeaders.set(
+ 'Accept',
+ localVarHttpHeaderAcceptSelected,
+ );
+ }
+
+ const localVarHttpContext: HttpContext =
+ options?.context ?? new HttpContext();
+
+ const localVarTransferCache: boolean = options?.transferCache ?? true;
+
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
+ if (localVarHttpHeaderAcceptSelected) {
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
+ responseType_ = 'text';
+ } else if (
+ this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)
+ ) {
+ responseType_ = 'json';
+ } else {
+ responseType_ = 'blob';
+ }
+ }
+
+ let localVarPath = `/api/dashboard/projects/dfg/status`;
+ const { basePath, withCredentials } = this.configuration;
+ return this.httpClient.request(
+ 'get',
+ `${basePath}${localVarPath}`,
+ {
+ context: localVarHttpContext,
+ params: localVarQueryParameters,
+ responseType: responseType_,
+ ...(withCredentials ? { withCredentials } : {}),
+ headers: localVarHeaders,
+ observe: observe,
+ ...(localVarTransferCache !== undefined
+ ? { transferCache: localVarTransferCache }
+ : {}),
+ reportProgress: reportProgress,
+ },
+ );
+ }
+
+ /**
+ * Dashboard Dfg Project Topics
+ * @endpoint get /api/dashboard/projects/dfg/topics
+ * @param fromYear
+ * @param toYear
+ * @param secureFgpAcc
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
+ * @param reportProgress flag to report request and response progress.
+ */
+ public getDashboardDfgProjectTopics(
+ fromYear?: number,
+ toYear?: number,
+ secureFgpAcc?: string,
+ observe?: 'body',
+ reportProgress?: boolean,
+ options?: {
+ httpHeaderAccept?: 'application/json';
+ context?: HttpContext;
+ transferCache?: boolean;
+ },
+ ): Observable;
+ public getDashboardDfgProjectTopics(
+ fromYear?: number,
+ toYear?: number,
+ secureFgpAcc?: string,
+ observe?: 'response',
+ reportProgress?: boolean,
+ options?: {
+ httpHeaderAccept?: 'application/json';
+ context?: HttpContext;
+ transferCache?: boolean;
+ },
+ ): Observable>;
+ public getDashboardDfgProjectTopics(
+ fromYear?: number,
+ toYear?: number,
+ secureFgpAcc?: string,
+ observe?: 'events',
+ reportProgress?: boolean,
+ options?: {
+ httpHeaderAccept?: 'application/json';
+ context?: HttpContext;
+ transferCache?: boolean;
+ },
+ ): Observable>;
+ public getDashboardDfgProjectTopics(
+ fromYear?: number,
+ toYear?: number,
+ secureFgpAcc?: string,
+ observe: any = 'body',
+ reportProgress: boolean = false,
+ options?: {
+ httpHeaderAccept?: 'application/json';
+ context?: HttpContext;
+ transferCache?: boolean;
+ },
+ ): Observable {
+ let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
+ localVarQueryParameters = this.addToHttpParams(
+ localVarQueryParameters,
+ fromYear,
+ 'from_year',
+ );
+ localVarQueryParameters = this.addToHttpParams(
+ localVarQueryParameters,
+ toYear,
+ 'to_year',
+ );
+
+ let localVarHeaders = this.defaultHeaders;
+
+ // authentication (HTTPBearer) required
+ localVarHeaders = this.configuration.addCredentialToHeaders(
+ 'HTTPBearer',
+ 'Authorization',
+ localVarHeaders,
+ 'Bearer ',
+ );
+
+ const localVarHttpHeaderAcceptSelected: string | undefined =
+ options?.httpHeaderAccept ??
+ this.configuration.selectHeaderAccept(['application/json']);
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
+ localVarHeaders = localVarHeaders.set(
+ 'Accept',
+ localVarHttpHeaderAcceptSelected,
+ );
+ }
+
+ const localVarHttpContext: HttpContext =
+ options?.context ?? new HttpContext();
+
+ const localVarTransferCache: boolean = options?.transferCache ?? true;
+
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
+ if (localVarHttpHeaderAcceptSelected) {
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
+ responseType_ = 'text';
+ } else if (
+ this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)
+ ) {
+ responseType_ = 'json';
+ } else {
+ responseType_ = 'blob';
+ }
+ }
+
+ let localVarPath = `/api/dashboard/projects/dfg/topics`;
+ const { basePath, withCredentials } = this.configuration;
+ return this.httpClient.request(
+ 'get',
+ `${basePath}${localVarPath}`,
+ {
+ context: localVarHttpContext,
+ params: localVarQueryParameters,
responseType: responseType_,
...(withCredentials ? { withCredentials } : {}),
headers: localVarHeaders,
@@ -157,11 +571,15 @@ export class DashboardService extends BaseService {
/**
* Dashboard Dfg Projects
* @endpoint get /api/dashboard/statistics/projects/dfg
+ * @param fromYear
+ * @param toYear
* @param secureFgpAcc
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
*/
public getDashboardDfgProjects(
+ fromYear?: number,
+ toYear?: number,
secureFgpAcc?: string,
observe?: 'body',
reportProgress?: boolean,
@@ -172,6 +590,8 @@ export class DashboardService extends BaseService {
},
): Observable;
public getDashboardDfgProjects(
+ fromYear?: number,
+ toYear?: number,
secureFgpAcc?: string,
observe?: 'response',
reportProgress?: boolean,
@@ -182,6 +602,8 @@ export class DashboardService extends BaseService {
},
): Observable>;
public getDashboardDfgProjects(
+ fromYear?: number,
+ toYear?: number,
secureFgpAcc?: string,
observe?: 'events',
reportProgress?: boolean,
@@ -192,6 +614,8 @@ export class DashboardService extends BaseService {
},
): Observable>;
public getDashboardDfgProjects(
+ fromYear?: number,
+ toYear?: number,
secureFgpAcc?: string,
observe: any = 'body',
reportProgress: boolean = false,
@@ -201,6 +625,18 @@ export class DashboardService extends BaseService {
transferCache?: boolean;
},
): Observable {
+ let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
+ localVarQueryParameters = this.addToHttpParams(
+ localVarQueryParameters,
+ fromYear,
+ 'from_year',
+ );
+ localVarQueryParameters = this.addToHttpParams(
+ localVarQueryParameters,
+ toYear,
+ 'to_year',
+ );
+
let localVarHeaders = this.defaultHeaders;
// authentication (HTTPBearer) required
@@ -246,6 +682,134 @@ export class DashboardService extends BaseService {
`${basePath}${localVarPath}`,
{
context: localVarHttpContext,
+ params: localVarQueryParameters,
+ responseType: responseType_,
+ ...(withCredentials ? { withCredentials } : {}),
+ headers: localVarHeaders,
+ observe: observe,
+ ...(localVarTransferCache !== undefined
+ ? { transferCache: localVarTransferCache }
+ : {}),
+ reportProgress: reportProgress,
+ },
+ );
+ }
+
+ /**
+ * Dashboard Eu Project Statuses
+ * @endpoint get /api/dashboard/projects/eu/status
+ * @param fromYear
+ * @param toYear
+ * @param secureFgpAcc
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
+ * @param reportProgress flag to report request and response progress.
+ */
+ public getDashboardEuProjectStatuses(
+ fromYear?: number,
+ toYear?: number,
+ secureFgpAcc?: string,
+ observe?: 'body',
+ reportProgress?: boolean,
+ options?: {
+ httpHeaderAccept?: 'application/json';
+ context?: HttpContext;
+ transferCache?: boolean;
+ },
+ ): Observable;
+ public getDashboardEuProjectStatuses(
+ fromYear?: number,
+ toYear?: number,
+ secureFgpAcc?: string,
+ observe?: 'response',
+ reportProgress?: boolean,
+ options?: {
+ httpHeaderAccept?: 'application/json';
+ context?: HttpContext;
+ transferCache?: boolean;
+ },
+ ): Observable>;
+ public getDashboardEuProjectStatuses(
+ fromYear?: number,
+ toYear?: number,
+ secureFgpAcc?: string,
+ observe?: 'events',
+ reportProgress?: boolean,
+ options?: {
+ httpHeaderAccept?: 'application/json';
+ context?: HttpContext;
+ transferCache?: boolean;
+ },
+ ): Observable>;
+ public getDashboardEuProjectStatuses(
+ fromYear?: number,
+ toYear?: number,
+ secureFgpAcc?: string,
+ observe: any = 'body',
+ reportProgress: boolean = false,
+ options?: {
+ httpHeaderAccept?: 'application/json';
+ context?: HttpContext;
+ transferCache?: boolean;
+ },
+ ): Observable {
+ let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
+ localVarQueryParameters = this.addToHttpParams(
+ localVarQueryParameters,
+ fromYear,
+ 'from_year',
+ );
+ localVarQueryParameters = this.addToHttpParams(
+ localVarQueryParameters,
+ toYear,
+ 'to_year',
+ );
+
+ let localVarHeaders = this.defaultHeaders;
+
+ // authentication (HTTPBearer) required
+ localVarHeaders = this.configuration.addCredentialToHeaders(
+ 'HTTPBearer',
+ 'Authorization',
+ localVarHeaders,
+ 'Bearer ',
+ );
+
+ const localVarHttpHeaderAcceptSelected: string | undefined =
+ options?.httpHeaderAccept ??
+ this.configuration.selectHeaderAccept(['application/json']);
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
+ localVarHeaders = localVarHeaders.set(
+ 'Accept',
+ localVarHttpHeaderAcceptSelected,
+ );
+ }
+
+ const localVarHttpContext: HttpContext =
+ options?.context ?? new HttpContext();
+
+ const localVarTransferCache: boolean = options?.transferCache ?? true;
+
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
+ if (localVarHttpHeaderAcceptSelected) {
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
+ responseType_ = 'text';
+ } else if (
+ this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)
+ ) {
+ responseType_ = 'json';
+ } else {
+ responseType_ = 'blob';
+ }
+ }
+
+ let localVarPath = `/api/dashboard/projects/eu/status`;
+ const { basePath, withCredentials } = this.configuration;
+ return this.httpClient.request(
+ 'get',
+ `${basePath}${localVarPath}`,
+ {
+ context: localVarHttpContext,
+ params: localVarQueryParameters,
responseType: responseType_,
...(withCredentials ? { withCredentials } : {}),
headers: localVarHeaders,
@@ -261,11 +825,15 @@ export class DashboardService extends BaseService {
/**
* Dashboard Eu Projects
* @endpoint get /api/dashboard/statistics/projects/eu
+ * @param fromYear
+ * @param toYear
* @param secureFgpAcc
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
*/
public getDashboardEuProjects(
+ fromYear?: number,
+ toYear?: number,
secureFgpAcc?: string,
observe?: 'body',
reportProgress?: boolean,
@@ -276,6 +844,8 @@ export class DashboardService extends BaseService {
},
): Observable;
public getDashboardEuProjects(
+ fromYear?: number,
+ toYear?: number,
secureFgpAcc?: string,
observe?: 'response',
reportProgress?: boolean,
@@ -286,6 +856,8 @@ export class DashboardService extends BaseService {
},
): Observable>;
public getDashboardEuProjects(
+ fromYear?: number,
+ toYear?: number,
secureFgpAcc?: string,
observe?: 'events',
reportProgress?: boolean,
@@ -296,6 +868,8 @@ export class DashboardService extends BaseService {
},
): Observable>;
public getDashboardEuProjects(
+ fromYear?: number,
+ toYear?: number,
secureFgpAcc?: string,
observe: any = 'body',
reportProgress: boolean = false,
@@ -305,6 +879,18 @@ export class DashboardService extends BaseService {
transferCache?: boolean;
},
): Observable {
+ let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
+ localVarQueryParameters = this.addToHttpParams(
+ localVarQueryParameters,
+ fromYear,
+ 'from_year',
+ );
+ localVarQueryParameters = this.addToHttpParams(
+ localVarQueryParameters,
+ toYear,
+ 'to_year',
+ );
+
let localVarHeaders = this.defaultHeaders;
// authentication (HTTPBearer) required
@@ -350,6 +936,134 @@ export class DashboardService extends BaseService {
`${basePath}${localVarPath}`,
{
context: localVarHttpContext,
+ params: localVarQueryParameters,
+ responseType: responseType_,
+ ...(withCredentials ? { withCredentials } : {}),
+ headers: localVarHeaders,
+ observe: observe,
+ ...(localVarTransferCache !== undefined
+ ? { transferCache: localVarTransferCache }
+ : {}),
+ reportProgress: reportProgress,
+ },
+ );
+ }
+
+ /**
+ * Dashboard Patents
+ * @endpoint get /api/dashboard/statistics/patents
+ * @param fromYear
+ * @param toYear
+ * @param secureFgpAcc
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
+ * @param reportProgress flag to report request and response progress.
+ */
+ public getDashboardPatents(
+ fromYear?: number,
+ toYear?: number,
+ secureFgpAcc?: string,
+ observe?: 'body',
+ reportProgress?: boolean,
+ options?: {
+ httpHeaderAccept?: 'application/json';
+ context?: HttpContext;
+ transferCache?: boolean;
+ },
+ ): Observable;
+ public getDashboardPatents(
+ fromYear?: number,
+ toYear?: number,
+ secureFgpAcc?: string,
+ observe?: 'response',
+ reportProgress?: boolean,
+ options?: {
+ httpHeaderAccept?: 'application/json';
+ context?: HttpContext;
+ transferCache?: boolean;
+ },
+ ): Observable>;
+ public getDashboardPatents(
+ fromYear?: number,
+ toYear?: number,
+ secureFgpAcc?: string,
+ observe?: 'events',
+ reportProgress?: boolean,
+ options?: {
+ httpHeaderAccept?: 'application/json';
+ context?: HttpContext;
+ transferCache?: boolean;
+ },
+ ): Observable>;
+ public getDashboardPatents(
+ fromYear?: number,
+ toYear?: number,
+ secureFgpAcc?: string,
+ observe: any = 'body',
+ reportProgress: boolean = false,
+ options?: {
+ httpHeaderAccept?: 'application/json';
+ context?: HttpContext;
+ transferCache?: boolean;
+ },
+ ): Observable {
+ let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
+ localVarQueryParameters = this.addToHttpParams(
+ localVarQueryParameters,
+ fromYear,
+ 'from_year',
+ );
+ localVarQueryParameters = this.addToHttpParams(
+ localVarQueryParameters,
+ toYear,
+ 'to_year',
+ );
+
+ let localVarHeaders = this.defaultHeaders;
+
+ // authentication (HTTPBearer) required
+ localVarHeaders = this.configuration.addCredentialToHeaders(
+ 'HTTPBearer',
+ 'Authorization',
+ localVarHeaders,
+ 'Bearer ',
+ );
+
+ const localVarHttpHeaderAcceptSelected: string | undefined =
+ options?.httpHeaderAccept ??
+ this.configuration.selectHeaderAccept(['application/json']);
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
+ localVarHeaders = localVarHeaders.set(
+ 'Accept',
+ localVarHttpHeaderAcceptSelected,
+ );
+ }
+
+ const localVarHttpContext: HttpContext =
+ options?.context ?? new HttpContext();
+
+ const localVarTransferCache: boolean = options?.transferCache ?? true;
+
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
+ if (localVarHttpHeaderAcceptSelected) {
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
+ responseType_ = 'text';
+ } else if (
+ this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)
+ ) {
+ responseType_ = 'json';
+ } else {
+ responseType_ = 'blob';
+ }
+ }
+
+ let localVarPath = `/api/dashboard/statistics/patents`;
+ const { basePath, withCredentials } = this.configuration;
+ return this.httpClient.request(
+ 'get',
+ `${basePath}${localVarPath}`,
+ {
+ context: localVarHttpContext,
+ params: localVarQueryParameters,
responseType: responseType_,
...(withCredentials ? { withCredentials } : {}),
headers: localVarHeaders,
@@ -365,11 +1079,15 @@ export class DashboardService extends BaseService {
/**
* Dashboard Persons
* @endpoint get /api/dashboard/statistics/persons
+ * @param fromYear
+ * @param toYear
* @param secureFgpAcc
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
*/
public getDashboardPersons(
+ fromYear?: number,
+ toYear?: number,
secureFgpAcc?: string,
observe?: 'body',
reportProgress?: boolean,
@@ -380,6 +1098,8 @@ export class DashboardService extends BaseService {
},
): Observable;
public getDashboardPersons(
+ fromYear?: number,
+ toYear?: number,
secureFgpAcc?: string,
observe?: 'response',
reportProgress?: boolean,
@@ -390,6 +1110,8 @@ export class DashboardService extends BaseService {
},
): Observable>;
public getDashboardPersons(
+ fromYear?: number,
+ toYear?: number,
secureFgpAcc?: string,
observe?: 'events',
reportProgress?: boolean,
@@ -400,6 +1122,8 @@ export class DashboardService extends BaseService {
},
): Observable>;
public getDashboardPersons(
+ fromYear?: number,
+ toYear?: number,
secureFgpAcc?: string,
observe: any = 'body',
reportProgress: boolean = false,
@@ -409,6 +1133,18 @@ export class DashboardService extends BaseService {
transferCache?: boolean;
},
): Observable {
+ let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
+ localVarQueryParameters = this.addToHttpParams(
+ localVarQueryParameters,
+ fromYear,
+ 'from_year',
+ );
+ localVarQueryParameters = this.addToHttpParams(
+ localVarQueryParameters,
+ toYear,
+ 'to_year',
+ );
+
let localVarHeaders = this.defaultHeaders;
// authentication (HTTPBearer) required
@@ -454,6 +1190,7 @@ export class DashboardService extends BaseService {
`${basePath}${localVarPath}`,
{
context: localVarHttpContext,
+ params: localVarQueryParameters,
responseType: responseType_,
...(withCredentials ? { withCredentials } : {}),
headers: localVarHeaders,
@@ -469,11 +1206,15 @@ export class DashboardService extends BaseService {
/**
* Dashboard Publications
* @endpoint get /api/dashboard/statistics/publications
+ * @param fromYear
+ * @param toYear
* @param secureFgpAcc
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
*/
public getDashboardPublications(
+ fromYear?: number,
+ toYear?: number,
secureFgpAcc?: string,
observe?: 'body',
reportProgress?: boolean,
@@ -484,6 +1225,8 @@ export class DashboardService extends BaseService {
},
): Observable;
public getDashboardPublications(
+ fromYear?: number,
+ toYear?: number,
secureFgpAcc?: string,
observe?: 'response',
reportProgress?: boolean,
@@ -494,6 +1237,8 @@ export class DashboardService extends BaseService {
},
): Observable>;
public getDashboardPublications(
+ fromYear?: number,
+ toYear?: number,
secureFgpAcc?: string,
observe?: 'events',
reportProgress?: boolean,
@@ -504,6 +1249,8 @@ export class DashboardService extends BaseService {
},
): Observable>;
public getDashboardPublications(
+ fromYear?: number,
+ toYear?: number,
secureFgpAcc?: string,
observe: any = 'body',
reportProgress: boolean = false,
@@ -513,6 +1260,18 @@ export class DashboardService extends BaseService {
transferCache?: boolean;
},
): Observable {
+ let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
+ localVarQueryParameters = this.addToHttpParams(
+ localVarQueryParameters,
+ fromYear,
+ 'from_year',
+ );
+ localVarQueryParameters = this.addToHttpParams(
+ localVarQueryParameters,
+ toYear,
+ 'to_year',
+ );
+
let localVarHeaders = this.defaultHeaders;
// authentication (HTTPBearer) required
@@ -558,6 +1317,7 @@ export class DashboardService extends BaseService {
`${basePath}${localVarPath}`,
{
context: localVarHttpContext,
+ params: localVarQueryParameters,
responseType: responseType_,
...(withCredentials ? { withCredentials } : {}),
headers: localVarHeaders,
@@ -678,12 +1438,16 @@ export class DashboardService extends BaseService {
* Dashboard Top Authors
* @endpoint get /api/dashboard/top-authors
* @param worksPeriod
+ * @param fromYear
+ * @param toYear
* @param secureFgpAcc
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
*/
public getDashboardTopAuthors(
worksPeriod?: 'all_time' | 'last_5_years',
+ fromYear?: number,
+ toYear?: number,
secureFgpAcc?: string,
observe?: 'body',
reportProgress?: boolean,
@@ -695,6 +1459,8 @@ export class DashboardService extends BaseService {
): Observable;
public getDashboardTopAuthors(
worksPeriod?: 'all_time' | 'last_5_years',
+ fromYear?: number,
+ toYear?: number,
secureFgpAcc?: string,
observe?: 'response',
reportProgress?: boolean,
@@ -706,6 +1472,8 @@ export class DashboardService extends BaseService {
): Observable>;
public getDashboardTopAuthors(
worksPeriod?: 'all_time' | 'last_5_years',
+ fromYear?: number,
+ toYear?: number,
secureFgpAcc?: string,
observe?: 'events',
reportProgress?: boolean,
@@ -717,6 +1485,8 @@ export class DashboardService extends BaseService {
): Observable>;
public getDashboardTopAuthors(
worksPeriod?: 'all_time' | 'last_5_years',
+ fromYear?: number,
+ toYear?: number,
secureFgpAcc?: string,
observe: any = 'body',
reportProgress: boolean = false,
@@ -732,6 +1502,16 @@ export class DashboardService extends BaseService {
worksPeriod,
'works_period',
);
+ localVarQueryParameters = this.addToHttpParams(
+ localVarQueryParameters,
+ fromYear,
+ 'from_year',
+ );
+ localVarQueryParameters = this.addToHttpParams(
+ localVarQueryParameters,
+ toYear,
+ 'to_year',
+ );
let localVarHeaders = this.defaultHeaders;
@@ -927,4 +1707,157 @@ export class DashboardService extends BaseService {
},
);
}
+
+ /**
+ * Dashboard Topic Word Cloud
+ * @endpoint get /api/dashboard/topic-wordcloud
+ * @param topicId
+ * @param fromYear
+ * @param toYear
+ * @param limit
+ * @param secureFgpAcc
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
+ * @param reportProgress flag to report request and response progress.
+ */
+ public getDashboardTopicWordCloud(
+ topicId: string,
+ fromYear?: number,
+ toYear?: number,
+ limit?: number,
+ secureFgpAcc?: string,
+ observe?: 'body',
+ reportProgress?: boolean,
+ options?: {
+ httpHeaderAccept?: 'application/json';
+ context?: HttpContext;
+ transferCache?: boolean;
+ },
+ ): Observable;
+ public getDashboardTopicWordCloud(
+ topicId: string,
+ fromYear?: number,
+ toYear?: number,
+ limit?: number,
+ secureFgpAcc?: string,
+ observe?: 'response',
+ reportProgress?: boolean,
+ options?: {
+ httpHeaderAccept?: 'application/json';
+ context?: HttpContext;
+ transferCache?: boolean;
+ },
+ ): Observable>;
+ public getDashboardTopicWordCloud(
+ topicId: string,
+ fromYear?: number,
+ toYear?: number,
+ limit?: number,
+ secureFgpAcc?: string,
+ observe?: 'events',
+ reportProgress?: boolean,
+ options?: {
+ httpHeaderAccept?: 'application/json';
+ context?: HttpContext;
+ transferCache?: boolean;
+ },
+ ): Observable>;
+ public getDashboardTopicWordCloud(
+ topicId: string,
+ fromYear?: number,
+ toYear?: number,
+ limit?: number,
+ secureFgpAcc?: string,
+ observe: any = 'body',
+ reportProgress: boolean = false,
+ options?: {
+ httpHeaderAccept?: 'application/json';
+ context?: HttpContext;
+ transferCache?: boolean;
+ },
+ ): Observable {
+ if (topicId === null || topicId === undefined) {
+ throw new Error(
+ 'Required parameter topicId was null or undefined when calling getDashboardTopicWordCloud.',
+ );
+ }
+
+ let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
+ localVarQueryParameters = this.addToHttpParams(
+ localVarQueryParameters,
+ topicId,
+ 'topicId',
+ );
+ localVarQueryParameters = this.addToHttpParams(
+ localVarQueryParameters,
+ fromYear,
+ 'from_year',
+ );
+ localVarQueryParameters = this.addToHttpParams(
+ localVarQueryParameters,
+ toYear,
+ 'to_year',
+ );
+ localVarQueryParameters = this.addToHttpParams(
+ localVarQueryParameters,
+ limit,
+ 'limit',
+ );
+
+ let localVarHeaders = this.defaultHeaders;
+
+ // authentication (HTTPBearer) required
+ localVarHeaders = this.configuration.addCredentialToHeaders(
+ 'HTTPBearer',
+ 'Authorization',
+ localVarHeaders,
+ 'Bearer ',
+ );
+
+ const localVarHttpHeaderAcceptSelected: string | undefined =
+ options?.httpHeaderAccept ??
+ this.configuration.selectHeaderAccept(['application/json']);
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
+ localVarHeaders = localVarHeaders.set(
+ 'Accept',
+ localVarHttpHeaderAcceptSelected,
+ );
+ }
+
+ const localVarHttpContext: HttpContext =
+ options?.context ?? new HttpContext();
+
+ const localVarTransferCache: boolean = options?.transferCache ?? true;
+
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
+ if (localVarHttpHeaderAcceptSelected) {
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
+ responseType_ = 'text';
+ } else if (
+ this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)
+ ) {
+ responseType_ = 'json';
+ } else {
+ responseType_ = 'blob';
+ }
+ }
+
+ let localVarPath = `/api/dashboard/topic-wordcloud`;
+ const { basePath, withCredentials } = this.configuration;
+ return this.httpClient.request(
+ 'get',
+ `${basePath}${localVarPath}`,
+ {
+ context: localVarHttpContext,
+ params: localVarQueryParameters,
+ responseType: responseType_,
+ ...(withCredentials ? { withCredentials } : {}),
+ headers: localVarHeaders,
+ observe: observe,
+ ...(localVarTransferCache !== undefined
+ ? { transferCache: localVarTransferCache }
+ : {}),
+ reportProgress: reportProgress,
+ },
+ );
+ }
}
diff --git a/webapp/src/app/api/api/institutionsV2.service.ts b/webapp/src/app/api/api/institutionsV2.service.ts
index a3675dec..dba5034e 100644
--- a/webapp/src/app/api/api/institutionsV2.service.ts
+++ b/webapp/src/app/api/api/institutionsV2.service.ts
@@ -25,6 +25,8 @@ import { Observable } from 'rxjs';
// @ts-ignore
import { HTTPValidationError } from '../model/hTTPValidationError';
// @ts-ignore
+import { Institution } from '../model/institution';
+// @ts-ignore
import { InstitutionPageV2 } from '../model/institutionPageV2';
// @ts-ignore
@@ -46,7 +48,7 @@ export class InstitutionsV2Service extends BaseService {
/**
* Returns a list of institutions based on a search term for autocomplete functionality.
- * @endpoint get /api/v2/institutions/autocomplete/selector
+ * @endpoint get /api/institutions/v2/autocomplete/selector
* @param query A search term to filter institutions by (partial matches allowed).
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
@@ -128,7 +130,7 @@ export class InstitutionsV2Service extends BaseService {
}
}
- let localVarPath = `/api/v2/institutions/autocomplete/selector`;
+ let localVarPath = `/api/institutions/v2/autocomplete/selector`;
const { basePath, withCredentials } = this.configuration;
return this.httpClient.request(
'get',
@@ -148,9 +150,111 @@ export class InstitutionsV2Service extends BaseService {
);
}
+ /**
+ * Returns an institution based on its ID.
+ * @endpoint get /api/institutions/v2/single/{institution_id}
+ * @param institutionId The ID of the institution to retrieve.
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
+ * @param reportProgress flag to report request and response progress.
+ */
+ public getInstitutionById2(
+ institutionId: string,
+ observe?: 'body',
+ reportProgress?: boolean,
+ options?: {
+ httpHeaderAccept?: 'application/json';
+ context?: HttpContext;
+ transferCache?: boolean;
+ },
+ ): Observable;
+ public getInstitutionById2(
+ institutionId: string,
+ observe?: 'response',
+ reportProgress?: boolean,
+ options?: {
+ httpHeaderAccept?: 'application/json';
+ context?: HttpContext;
+ transferCache?: boolean;
+ },
+ ): Observable>;
+ public getInstitutionById2(
+ institutionId: string,
+ observe?: 'events',
+ reportProgress?: boolean,
+ options?: {
+ httpHeaderAccept?: 'application/json';
+ context?: HttpContext;
+ transferCache?: boolean;
+ },
+ ): Observable>;
+ public getInstitutionById2(
+ institutionId: string,
+ observe: any = 'body',
+ reportProgress: boolean = false,
+ options?: {
+ httpHeaderAccept?: 'application/json';
+ context?: HttpContext;
+ transferCache?: boolean;
+ },
+ ): Observable {
+ if (institutionId === null || institutionId === undefined) {
+ throw new Error(
+ 'Required parameter institutionId was null or undefined when calling getInstitutionById2.',
+ );
+ }
+
+ let localVarHeaders = this.defaultHeaders;
+
+ const localVarHttpHeaderAcceptSelected: string | undefined =
+ options?.httpHeaderAccept ??
+ this.configuration.selectHeaderAccept(['application/json']);
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
+ localVarHeaders = localVarHeaders.set(
+ 'Accept',
+ localVarHttpHeaderAcceptSelected,
+ );
+ }
+
+ const localVarHttpContext: HttpContext =
+ options?.context ?? new HttpContext();
+
+ const localVarTransferCache: boolean = options?.transferCache ?? true;
+
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
+ if (localVarHttpHeaderAcceptSelected) {
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
+ responseType_ = 'text';
+ } else if (
+ this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)
+ ) {
+ responseType_ = 'json';
+ } else {
+ responseType_ = 'blob';
+ }
+ }
+
+ let localVarPath = `/api/institutions/v2/single/${this.configuration.encodeParam({ name: 'institutionId', value: institutionId, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
+ const { basePath, withCredentials } = this.configuration;
+ return this.httpClient.request(
+ 'get',
+ `${basePath}${localVarPath}`,
+ {
+ context: localVarHttpContext,
+ responseType: responseType_,
+ ...(withCredentials ? { withCredentials } : {}),
+ headers: localVarHeaders,
+ observe: observe,
+ ...(localVarTransferCache !== undefined
+ ? { transferCache: localVarTransferCache }
+ : {}),
+ reportProgress: reportProgress,
+ },
+ );
+ }
+
/**
* Returns a list of institutions based on their IDs.
- * @endpoint get /api/v2/institutions/ids
+ * @endpoint get /api/institutions/v2/multiple/ids
* @param institutionIds A list of institution IDs to retrieve.
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
@@ -236,7 +340,7 @@ export class InstitutionsV2Service extends BaseService {
}
}
- let localVarPath = `/api/v2/institutions/ids`;
+ let localVarPath = `/api/institutions/v2/multiple/ids`;
const { basePath, withCredentials } = this.configuration;
return this.httpClient.request(
'get',
diff --git a/webapp/src/app/api/api/personNetwork.service.ts b/webapp/src/app/api/api/personNetwork.service.ts
deleted file mode 100644
index b1183ff6..00000000
--- a/webapp/src/app/api/api/personNetwork.service.ts
+++ /dev/null
@@ -1,109 +0,0 @@
-/**
- * Innovation Search Engine API
- *
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-/* tslint:disable:no-unused-variable member-ordering */
-
-import { Inject, Injectable, Optional } from '@angular/core';
-import { HttpClient, HttpHeaders, HttpParams,
- HttpResponse, HttpEvent, HttpParameterCodec, HttpContext
- } from '@angular/common/http';
-import { CustomHttpParameterCodec } from '../encoder';
-import { Observable } from 'rxjs';
-
-// @ts-ignore
-import { CollaborationNetwork } from '../model/collaborationNetwork';
-// @ts-ignore
-import { FilterProperties } from '../model/filterProperties';
-// @ts-ignore
-import { HTTPValidationError } from '../model/hTTPValidationError';
-
-// @ts-ignore
-import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
-import { Configuration } from '../configuration';
-import { BaseService } from '../api.base.service';
-
-
-
-@Injectable({
- providedIn: 'root'
-})
-export class PersonNetworkService extends BaseService {
-
- constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) {
- super(basePath, configuration);
- }
-
- /**
- * Get a person\'s collaboration network.
- * Returns a person\'s collaboration network based on their works and co-authors.
- * @endpoint post /api/person/network/{raw_user_id}
- * @param rawUserId The raw user ID of the person.
- * @param filterProperties
- * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
- * @param reportProgress flag to report request and response progress.
- */
- public getCollaborationNetwork(rawUserId: string, filterProperties?: FilterProperties, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable;
- public getCollaborationNetwork(rawUserId: string, filterProperties?: FilterProperties, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>;
- public getCollaborationNetwork(rawUserId: string, filterProperties?: FilterProperties, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>;
- public getCollaborationNetwork(rawUserId: string, filterProperties?: FilterProperties, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable {
- if (rawUserId === null || rawUserId === undefined) {
- throw new Error('Required parameter rawUserId was null or undefined when calling getCollaborationNetwork.');
- }
-
- let localVarHeaders = this.defaultHeaders;
-
- const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
- 'application/json'
- ]);
- if (localVarHttpHeaderAcceptSelected !== undefined) {
- localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
- }
-
- const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
-
- const localVarTransferCache: boolean = options?.transferCache ?? true;
-
-
- // to determine the Content-Type header
- const consumes: string[] = [
- 'application/json'
- ];
- const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
- if (httpContentTypeSelected !== undefined) {
- localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
- }
-
- let responseType_: 'text' | 'json' | 'blob' = 'json';
- if (localVarHttpHeaderAcceptSelected) {
- if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
- responseType_ = 'text';
- } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
- responseType_ = 'json';
- } else {
- responseType_ = 'blob';
- }
- }
-
- let localVarPath = `/api/person/network/${this.configuration.encodeParam({name: "rawUserId", value: rawUserId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`;
- const { basePath, withCredentials } = this.configuration;
- return this.httpClient.request('post', `${basePath}${localVarPath}`,
- {
- context: localVarHttpContext,
- body: filterProperties,
- responseType: responseType_,
- ...(withCredentials ? { withCredentials } : {}),
- headers: localVarHeaders,
- observe: observe,
- ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
- reportProgress: reportProgress
- }
- );
- }
-
-}
diff --git a/webapp/src/app/api/api/persons.service.ts b/webapp/src/app/api/api/persons.service.ts
index 2dd47272..8f9ef03d 100644
--- a/webapp/src/app/api/api/persons.service.ts
+++ b/webapp/src/app/api/api/persons.service.ts
@@ -1074,8 +1074,9 @@ export class PersonsService extends BaseService {
* @param pageSize Results per page
* @param include Comma-separated include tags
* @param yearFilterEnabled Apply the selected affiliation year rule
- * @param filterMode Filter mode: \'in\' or \'from\'
+ * @param filterMode Affiliation year filter mode
* @param filterYear Filter year
+ * @param filterYearTo Upper filter year for \'between\'
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
*/
@@ -1089,8 +1090,9 @@ export class PersonsService extends BaseService {
pageSize?: number,
include?: string,
yearFilterEnabled?: boolean,
- filterMode?: string,
+ filterMode?: 'in' | 'from' | 'between',
filterYear?: number,
+ filterYearTo?: number,
observe?: 'body',
reportProgress?: boolean,
options?: {
@@ -1109,8 +1111,9 @@ export class PersonsService extends BaseService {
pageSize?: number,
include?: string,
yearFilterEnabled?: boolean,
- filterMode?: string,
+ filterMode?: 'in' | 'from' | 'between',
filterYear?: number,
+ filterYearTo?: number,
observe?: 'response',
reportProgress?: boolean,
options?: {
@@ -1129,8 +1132,9 @@ export class PersonsService extends BaseService {
pageSize?: number,
include?: string,
yearFilterEnabled?: boolean,
- filterMode?: string,
+ filterMode?: 'in' | 'from' | 'between',
filterYear?: number,
+ filterYearTo?: number,
observe?: 'events',
reportProgress?: boolean,
options?: {
@@ -1149,8 +1153,9 @@ export class PersonsService extends BaseService {
pageSize?: number,
include?: string,
yearFilterEnabled?: boolean,
- filterMode?: string,
+ filterMode?: 'in' | 'from' | 'between',
filterYear?: number,
+ filterYearTo?: number,
observe: any = 'body',
reportProgress: boolean = false,
options?: {
@@ -1219,6 +1224,11 @@ export class PersonsService extends BaseService {
filterYear,
'filterYear',
);
+ localVarQueryParameters = this.addToHttpParams(
+ localVarQueryParameters,
+ filterYearTo,
+ 'filterYearTo',
+ );
let localVarHeaders = this.defaultHeaders;
@@ -1282,8 +1292,9 @@ export class PersonsService extends BaseService {
* @param pageSize Results per page
* @param include Comma-separated include tags
* @param yearFilterEnabled Apply the selected affiliation year rule
- * @param filterMode Filter mode: \'in\' or \'from\'
+ * @param filterMode Affiliation year filter mode
* @param filterYear Filter year
+ * @param filterYearTo Upper filter year for \'between\'
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
*/
@@ -1297,8 +1308,9 @@ export class PersonsService extends BaseService {
pageSize?: number,
include?: string,
yearFilterEnabled?: boolean,
- filterMode?: string,
+ filterMode?: 'in' | 'from' | 'between',
filterYear?: number,
+ filterYearTo?: number,
observe?: 'body',
reportProgress?: boolean,
options?: {
@@ -1317,8 +1329,9 @@ export class PersonsService extends BaseService {
pageSize?: number,
include?: string,
yearFilterEnabled?: boolean,
- filterMode?: string,
+ filterMode?: 'in' | 'from' | 'between',
filterYear?: number,
+ filterYearTo?: number,
observe?: 'response',
reportProgress?: boolean,
options?: {
@@ -1337,8 +1350,9 @@ export class PersonsService extends BaseService {
pageSize?: number,
include?: string,
yearFilterEnabled?: boolean,
- filterMode?: string,
+ filterMode?: 'in' | 'from' | 'between',
filterYear?: number,
+ filterYearTo?: number,
observe?: 'events',
reportProgress?: boolean,
options?: {
@@ -1357,8 +1371,9 @@ export class PersonsService extends BaseService {
pageSize?: number,
include?: string,
yearFilterEnabled?: boolean,
- filterMode?: string,
+ filterMode?: 'in' | 'from' | 'between',
filterYear?: number,
+ filterYearTo?: number,
observe: any = 'body',
reportProgress: boolean = false,
options?: {
@@ -1427,6 +1442,11 @@ export class PersonsService extends BaseService {
filterYear,
'filterYear',
);
+ localVarQueryParameters = this.addToHttpParams(
+ localVarQueryParameters,
+ filterYearTo,
+ 'filterYearTo',
+ );
let localVarHeaders = this.defaultHeaders;
diff --git a/webapp/src/app/api/api/projects.service.ts b/webapp/src/app/api/api/projects.service.ts
index a63fc5bc..dfa4eed4 100644
--- a/webapp/src/app/api/api/projects.service.ts
+++ b/webapp/src/app/api/api/projects.service.ts
@@ -27,8 +27,6 @@ import { BundProjectDetails } from '../model/bundProjectDetails';
// @ts-ignore
import { BundProjectPage } from '../model/bundProjectPage';
// @ts-ignore
-import { CordisEuProjectPage } from '../model/cordisEuProjectPage';
-// @ts-ignore
import { DfgProjectDetails } from '../model/dfgProjectDetails';
// @ts-ignore
import { DfgProjectPage } from '../model/dfgProjectPage';
@@ -41,8 +39,6 @@ import { EuCordisProjectSearchPage } from '../model/euCordisProjectSearchPage';
// @ts-ignore
import { EuCordisProjectType } from '../model/euCordisProjectType';
// @ts-ignore
-import { EuOrganizationProjectSummaryPage } from '../model/euOrganizationProjectSummaryPage';
-// @ts-ignore
import { FundingProjectPage } from '../model/fundingProjectPage';
// @ts-ignore
import { HTTPValidationError } from '../model/hTTPValidationError';
@@ -78,8 +74,9 @@ export class ProjectsService extends BaseService {
* Get DFG projects.
* Returns a page of DFG projects based on the provided pagination parameters and optional institution filter.
* @endpoint get /api/projects/person/dfg/search
+ * @param rawOaInstitutionId The openalex institution ID to filter by.
* @param authorId The openalex author ID to filter by.
- * @param authorFilterIds The author IDs to filter by.
+ * @param authorFilterIds The dfg author IDs to filter by.
* @param institutionIds The institution IDs to filter by.
* @param title The title to filter by.
* @param keywords Raw keywords to search in title/abstract/subject fields.
@@ -96,6 +93,7 @@ export class ProjectsService extends BaseService {
* @param reportProgress flag to report request and response progress.
*/
public getDfgProjects(
+ rawOaInstitutionId?: string,
authorId?: string,
authorFilterIds?: Array,
institutionIds?: Array,
@@ -119,6 +117,7 @@ export class ProjectsService extends BaseService {
},
): Observable;
public getDfgProjects(
+ rawOaInstitutionId?: string,
authorId?: string,
authorFilterIds?: Array,
institutionIds?: Array,
@@ -142,6 +141,7 @@ export class ProjectsService extends BaseService {
},
): Observable>;
public getDfgProjects(
+ rawOaInstitutionId?: string,
authorId?: string,
authorFilterIds?: Array,
institutionIds?: Array,
@@ -165,6 +165,7 @@ export class ProjectsService extends BaseService {
},
): Observable>;
public getDfgProjects(
+ rawOaInstitutionId?: string,
authorId?: string,
authorFilterIds?: Array,
institutionIds?: Array,
@@ -188,6 +189,11 @@ export class ProjectsService extends BaseService {
},
): Observable {
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
+ localVarQueryParameters = this.addToHttpParams(
+ localVarQueryParameters,
+ rawOaInstitutionId,
+ 'raw_oa_institution_id',
+ );
localVarQueryParameters = this.addToHttpParams(
localVarQueryParameters,
authorId,
@@ -569,119 +575,36 @@ export class ProjectsService extends BaseService {
);
}
- /**
- * Get EU projects for an author.
- * Returns a list of EU projects associated with the specified author ID.
- * @endpoint get /api/projects/author/{raw_oa_author_id}/eu
- * @param rawOaAuthorId The author ID to filter by.
- * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
- * @param reportProgress flag to report request and response progress.
- */
- public getEuProjectsForAuthor(
- rawOaAuthorId: string,
- observe?: 'body',
- reportProgress?: boolean,
- options?: {
- httpHeaderAccept?: 'application/json';
- context?: HttpContext;
- transferCache?: boolean;
- },
- ): Observable;
- public getEuProjectsForAuthor(
- rawOaAuthorId: string,
- observe?: 'response',
- reportProgress?: boolean,
- options?: {
- httpHeaderAccept?: 'application/json';
- context?: HttpContext;
- transferCache?: boolean;
- },
- ): Observable