From bc7b7784ea978c0847f8b96785ae0f022c526b4f Mon Sep 17 00:00:00 2001 From: Khuder Khalti Date: Sun, 14 Jun 2026 11:43:48 +0200 Subject: [PATCH 01/41] feat: add patent-to-researchers backend and frontend --- service/src/main/inse/.env | 16 +- service/src/main/inse/config.py | 5 + service/src/main/inse/main.py | 2 + service/src/main/inse/patents/__init__.py | 5 + .../inse/patents/elastic_search_client.py | 140 +++++++++ service/src/main/inse/patents/logic.py | 269 ++++++++++++++++ service/src/main/inse/patents/model.py | 22 ++ service/src/main/inse/patents/service.py | 21 ++ webapp/src/app/api/api/patents.service.ts | 167 ++++++++++ webapp/src/app/app.routes.ts | 7 + .../person-patents.component.html | 150 +++++++++ .../person-patents.component.scss | 293 ++++++++++++++++++ .../person-patents.component.ts | 157 ++++++++++ .../app/modules/person/person.component.ts | 1 + 14 files changed, 1249 insertions(+), 6 deletions(-) create mode 100644 service/src/main/inse/patents/__init__.py create mode 100644 service/src/main/inse/patents/elastic_search_client.py create mode 100644 service/src/main/inse/patents/logic.py create mode 100644 service/src/main/inse/patents/model.py create mode 100644 service/src/main/inse/patents/service.py create mode 100644 webapp/src/app/api/api/patents.service.ts create mode 100644 webapp/src/app/modules/person-patents/person-patents.component.html create mode 100644 webapp/src/app/modules/person-patents/person-patents.component.scss create mode 100644 webapp/src/app/modules/person-patents/person-patents.component.ts diff --git a/service/src/main/inse/.env b/service/src/main/inse/.env index f2fc4762..44365fb2 100644 --- a/service/src/main/inse/.env +++ b/service/src/main/inse/.env @@ -1,6 +1,10 @@ -ELASTICSEARCH_URL=https://project.nes.uni-due.de/elastic/ -ELASTICSEARCH_API_KEY=am1wWXBaMEJEVWJoZkE5MnBaUlk6TWlvbW1LRlMzNjdDUHgzYmVkUmI5UQ - -LLM_API_URL=https://project.nes.uni-due.de/llm2/v1/ -LLM_API_KEY=c2d5e7ccf7a4760dd3d19bed2caed9d85ff7437400e0ea82a6d6f912ebc2f212 -LLM_MODEL=gemma4-e4b \ No newline at end of file +ELASTICSEARCH_URL=https://project.nes.uni-due.de/elastic/ +ELASTICSEARCH_API_KEY=am1wWXBaMEJEVWJoZkE5MnBaUlk6TWlvbW1LRlMzNjdDUHgzYmVkUmI5UQ + +LLM_API_URL=https://project.nes.uni-due.de/llm2/v1/ +LLM_API_KEY=c2d5e7ccf7a4760dd3d19bed2caed9d85ff7437400e0ea82a6d6f912ebc2f212 +LLM_MODEL=gemma4-e4b + +# Patent search (EPO + USPTO) +PATENT_ELASTICSEARCH_URL=https://inse.nes.uni-due.de/elastic +PATENT_ELASTICSEARCH_API_KEY=bG1NSWc1NEJPZ3FnTGZCZXRSSEg6VnJXRFd5SnpSTTNWc1VPT01FMEhMZw== \ No newline at end of file diff --git a/service/src/main/inse/config.py b/service/src/main/inse/config.py index 4d83fe03..cdc232d5 100644 --- a/service/src/main/inse/config.py +++ b/service/src/main/inse/config.py @@ -39,6 +39,11 @@ class Settings(BaseSettings): openalex_api_key: Optional[str] = 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: str = "" + + # LLM config llm_api_url: Optional[str] = None llm_api_key: Optional[str] = None diff --git a/service/src/main/inse/main.py b/service/src/main/inse/main.py index a1e4614e..52fa7b1f 100644 --- a/service/src/main/inse/main.py +++ b/service/src/main/inse/main.py @@ -16,6 +16,7 @@ from inse.topics.service import router as topics_service_router from inse.works.service import router as works_service_router from inse.persons.service import router as persons_service_router from inse.funders.service import router as funders_service_router +from inse.patents.service import router as patents_service_router from . import config from .service import router as service_router @@ -42,6 +43,7 @@ app.include_router(persons_service_router) app.include_router(funders_service_router) app.include_router(service_router) app.include_router(account_router) +app.include_router(patents_service_router) app.add_middleware( CORSMiddleware, diff --git a/service/src/main/inse/patents/__init__.py b/service/src/main/inse/patents/__init__.py new file mode 100644 index 00000000..d10d63ca --- /dev/null +++ b/service/src/main/inse/patents/__init__.py @@ -0,0 +1,5 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- +""" + Patents domain package. +""" diff --git a/service/src/main/inse/patents/elastic_search_client.py b/service/src/main/inse/patents/elastic_search_client.py new file mode 100644 index 00000000..ac20fbb2 --- /dev/null +++ b/service/src/main/inse/patents/elastic_search_client.py @@ -0,0 +1,140 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- +""" + HTTP client for patent searches in EPO and USPTO Elasticsearch indices. +""" +from typing import Any + +import httpx + +from .. import config + +EPO_INDEX = "epo_index_1.0" +USPTO_INDEX = "uspto_patents_2.0" + + +class MissingApiKeyError(Exception): + pass + + +class PatentSearchClient: + def __init__( + self, + base_url: str | None = None, + api_key: str | None = None, + timeout: float = 30.0, + transport: httpx.AsyncBaseTransport | None = None, + ): + self.base_url = (base_url or config.settings.patent_elasticsearch_url).rstrip("/") + self.api_key = api_key if api_key is not None else config.settings.patent_elasticsearch_api_key + self.timeout = timeout + self.transport = transport + + def _headers(self) -> dict[str, str]: + if not self.api_key: + raise MissingApiKeyError("Patent Elasticsearch API key is not configured.") + return { + "Authorization": f"ApiKey {self.api_key}", + "Content-Type": "application/json", + } + + def epo_query_by_inventor(self, last_name: str, size: int = 100) -> dict[str, Any]: + """Search EPO index by inventor last name.""" + return { + "size": size, + "track_total_hits": True, + "_source": [ + "doc_number", + "country", + "kind", + "date_publication", + "date_publication_year", + "title_en", + "title_de", + "abstract", + "inventors_name", + "applicants_name", + "ipc", + "ipc_text", + ], + "query": { + "bool": { + "should": [ + { + "match": { + "inventors_name_text": { + "query": last_name, + "operator": "and", + } + } + }, + { + "term": { + "inventors_name": last_name + } + }, + ], + "minimum_should_match": 1, + } + }, + } + + def uspto_query_by_inventor(self, last_name: str, size: int = 100) -> dict[str, Any]: + """Search USPTO index by inventor last name.""" + return { + "size": size, + "track_total_hits": True, + "_source": [ + "publication_number", + "country", + "publication_date", + "publication_year", + "title", + "abstract", + "inventors_names", + "inventors_names_text", + "assignees_orgs", + "ipcr", + "ipcr_text", + ], + "query": { + "bool": { + "should": [ + { + "match": { + "inventors_names_text": { + "query": last_name, + "operator": "and", + } + } + }, + { + "term": { + "inventors_names": last_name + } + }, + ], + "minimum_should_match": 1, + } + }, + } + + async def search_epo(self, payload: dict[str, Any]) -> dict[str, Any]: + return await self._search(EPO_INDEX, payload) + + async def search_uspto(self, payload: dict[str, Any]) -> dict[str, Any]: + return await self._search(USPTO_INDEX, payload) + + async def _search(self, index: str, payload: dict[str, Any]) -> dict[str, Any]: + async with httpx.AsyncClient( + base_url=self.base_url, + timeout=self.timeout, + transport=self.transport, + ) as client: + response = await client.post( + f"/{index}/_search", + headers=self._headers(), + json=payload, + ) + response.raise_for_status() + return response.json() \ No newline at end of file diff --git a/service/src/main/inse/patents/logic.py b/service/src/main/inse/patents/logic.py new file mode 100644 index 00000000..e503f042 --- /dev/null +++ b/service/src/main/inse/patents/logic.py @@ -0,0 +1,269 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- +""" + Business logic for patent matching by author name. +""" +import logging +from collections import defaultdict + +import httpx +from fastapi import HTTPException +from starlette.status import HTTP_502_BAD_GATEWAY +from starlette.status import HTTP_503_SERVICE_UNAVAILABLE + +from ..persons import logic as person_logic +from ..models.author import Author +from . import model +from .elastic_search_client import MissingApiKeyError +from .elastic_search_client import PatentSearchClient + +logger = logging.getLogger(__name__) + +_MIN_CONFIDENCE_SCORE = 4 + + +async def get_patents_by_author_id( + author_id: str, + client: PatentSearchClient | None = None, +) -> model.PatentsByAuthorResponse: + search_client = client or PatentSearchClient() + + author = _get_author(author_id) + if not author: + return model.PatentsByAuthorResponse( + author_id=author_id, + author_name=None, + patent_count=0, + patents=[], + ) + + author_name = author.display_name + last_name = _extract_last_name(author_name) + first_name = _extract_first_name(author_name) + + if not last_name: + return model.PatentsByAuthorResponse( + author_id=author_id, + author_name=author_name, + patent_count=0, + patents=[], + ) + + institutions = _extract_all_institutions(author) + topics = _extract_topics(author) + orcid = _extract_orcid(author) + + try: + epo_data, uspto_data = await _search_both_indices(search_client, last_name) + except MissingApiKeyError as exc: + raise HTTPException(status_code=HTTP_503_SERVICE_UNAVAILABLE, + detail="Patent search is not configured.") from exc + except httpx.HTTPError as exc: + raise HTTPException(status_code=HTTP_502_BAD_GATEWAY, + detail="Patent search request failed.") from exc + + all_patents = _parse_epo_hits(epo_data) + _parse_uspto_hits(uspto_data) + + # Group by patent_id to check all versions together + grouped: dict[str, list[model.PatentEntry]] = defaultdict(list) + for patent in all_patents: + grouped[patent.patent_id].append(patent) + + result_patents = [] + for patent_id, versions in grouped.items(): + + # Step 1: Check if first+last name appear together in ONE inventor entry + # across any version + if first_name and last_name: + name_ok = any( + first_name.lower() in inv.lower() and last_name.lower() in inv.lower() + for version in versions + for inv in version.inventors + ) + if not name_ok: + continue + + # Step 2: Check institution across ALL versions that have assignees + # If ANY version has assignees that don't match our institutions → reject all + versions_with_assignees = [v for v in versions if v.assignees] + if versions_with_assignees: + institution_ok = False + for version in versions_with_assignees: + for institution in institutions: + inst_words = set(institution.lower().split()) + for asg in version.assignees: + asg_words = set(asg.lower().split()) + meaningful = {w for w in (inst_words & asg_words) if len(w) > 3} + if len(meaningful) >= 2: + institution_ok = True + break + if institution_ok: + break + if institution_ok: + break + if not institution_ok: + continue + + # Step 3: Score all versions, keep best + best: model.PatentEntry | None = None + for patent in versions: + score = _compute_score(patent, first_name, last_name, + orcid, institutions, topics) + if score >= _MIN_CONFIDENCE_SCORE: + patent.confidence_score = score + if best is None or score > best.confidence_score: + best = patent + + if best: + result_patents.append(best) + + result_patents.sort(key=lambda p: p.confidence_score, reverse=True) + + return model.PatentsByAuthorResponse( + author_id=author_id, + author_name=author_name, + patent_count=len(result_patents), + patents=result_patents, + ) + + +def _compute_score( + patent: model.PatentEntry, + first_name: str | None, + last_name: str | None, + orcid: str | None, + institutions: list[str], + topics: list[str], +) -> int: + score = 0 + inventors_lower = [inv.lower() for inv in patent.inventors] + title_abstract = ((patent.title or "") + " " + (patent.abstract or "")).lower() + + # Last name match (+2) + if last_name and any(last_name.lower() in inv for inv in inventors_lower): + score += 2 + + # First name match (+2) + if first_name and any(first_name.lower() in inv for inv in inventors_lower): + score += 2 + + # Institution match (+3) + for institution in institutions: + inst_words = set(institution.lower().split()) + for asg in patent.assignees: + asg_words = set(asg.lower().split()) + meaningful = {w for w in (inst_words & asg_words) if len(w) > 3} + if len(meaningful) >= 2: + score += 3 + break + + # ORCID match (+5) + if orcid and getattr(patent, "orcid", None): + if orcid.lower() in patent.orcid.lower(): + score += 5 + + # Topics match (+1 each, max +3) + topic_score = 0 + for topic in topics: + if topic.lower() in title_abstract: + topic_score += 1 + if topic_score >= 3: + break + score += topic_score + + return score + + +async def _search_both_indices(client, last_name): + import asyncio + epo_result, uspto_result = await asyncio.gather( + client.search_epo(client.epo_query_by_inventor(last_name)), + client.search_uspto(client.uspto_query_by_inventor(last_name)), + ) + return epo_result, uspto_result + + +def _parse_epo_hits(data: dict) -> list[model.PatentEntry]: + patents = [] + for hit in data.get("hits", {}).get("hits", []): + src = hit.get("_source", {}) + inventors = src.get("inventors_name") or [] + applicants = src.get("applicants_name") or [] + ipc = src.get("ipc") or [] + patents.append(model.PatentEntry( + patent_id=f"EP{src.get('doc_number', hit.get('_id', ''))}", + source="EPO", + title=src.get("title_en") or src.get("title_de"), + abstract=src.get("abstract"), + publication_date=src.get("date_publication"), + publication_year=src.get("date_publication_year"), + inventors=inventors if isinstance(inventors, list) else [inventors], + assignees=applicants if isinstance(applicants, list) else [applicants], + ipc=ipc if isinstance(ipc, list) else [ipc], + country=src.get("country", "EP"), + )) + return patents + + +def _parse_uspto_hits(data: dict) -> list[model.PatentEntry]: + patents = [] + for hit in data.get("hits", {}).get("hits", []): + src = hit.get("_source", {}) + inventors = src.get("inventors_names") or [] + assignees = src.get("assignees_orgs") or [] + ipc = src.get("ipcr") or [] + patents.append(model.PatentEntry( + patent_id=f"US{src.get('publication_number', hit.get('_id', ''))}", + source="USPTO", + title=src.get("title"), + abstract=src.get("abstract"), + publication_date=src.get("publication_date"), + publication_year=src.get("publication_year"), + inventors=inventors if isinstance(inventors, list) else [inventors], + assignees=assignees if isinstance(assignees, list) else [assignees], + ipc=ipc if isinstance(ipc, list) else [ipc], + country=src.get("country", "US"), + )) + return patents + + +def _get_author(author_id: str) -> Author | None: + short_id = author_id.replace("https://openalex.org/", "") + result = person_logic.search_persons(author_id=short_id) + return result.results[0] if result.results else None + + +def _extract_last_name(name: str | None) -> str | None: + if not name: + return None + parts = name.strip().split() + return parts[-1] if parts else None + + +def _extract_first_name(name: str | None) -> str | None: + if not name: + return None + parts = name.strip().split() + return parts[0] if len(parts) > 1 else None + + +def _extract_orcid(author: Author) -> str | None: + if author.ids and author.ids.orcid: + return str(author.ids.orcid) + return str(author.orcid) if author.orcid else None + + +def _extract_all_institutions(author: Author) -> list[str]: + institutions: set[str] = set() + for inst in (author.last_known_institutions or []): + if inst and inst.display_name: + institutions.add(inst.display_name) + for aff in (author.affiliations or []): + inst = getattr(aff, "institution", None) + if inst and getattr(inst, "display_name", None): + institutions.add(inst.display_name) + return list(institutions) + + +def _extract_topics(author: Author) -> list[str]: + return [t.display_name for t in (author.topics or []) if t and t.display_name] \ No newline at end of file diff --git a/service/src/main/inse/patents/model.py b/service/src/main/inse/patents/model.py new file mode 100644 index 00000000..2bed084c --- /dev/null +++ b/service/src/main/inse/patents/model.py @@ -0,0 +1,22 @@ +from pydantic import BaseModel, Field + + +class PatentEntry(BaseModel): + patent_id: str + source: str # "EPO" or "USPTO" + title: str | None = None + abstract: str | None = None + publication_date: str | None = None + publication_year: str | None = None + inventors: list[str] = Field(default_factory=list) + assignees: list[str] = Field(default_factory=list) + ipc: list[str] = Field(default_factory=list) + country: str | None = None + confidence_score: int = 0 + + +class PatentsByAuthorResponse(BaseModel): + author_id: str + author_name: str | None = None + patent_count: int + patents: list[PatentEntry] \ No newline at end of file diff --git a/service/src/main/inse/patents/service.py b/service/src/main/inse/patents/service.py new file mode 100644 index 00000000..7bdcbb82 --- /dev/null +++ b/service/src/main/inse/patents/service.py @@ -0,0 +1,21 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- +""" + REST API for patent matching by author. +""" +from fastapi import APIRouter + +from . import logic +from . import model + +router = APIRouter(prefix="/api/inse-service/authors", tags=["Patents"]) + + +@router.get( + "/{author_id}/patents", + operation_id="getPatentsByAuthor", + response_model=model.PatentsByAuthorResponse, + summary="Get patents matched to an author by name.", +) +async def get_patents_by_author(author_id: str): + return await logic.get_patents_by_author_id(author_id) \ No newline at end of file diff --git a/webapp/src/app/api/api/patents.service.ts b/webapp/src/app/api/api/patents.service.ts new file mode 100644 index 00000000..880467cb --- /dev/null +++ b/webapp/src/app/api/api/patents.service.ts @@ -0,0 +1,167 @@ +/** + * Innovation Search Engine API + */ +/* 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 { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; +import { BaseService } from '../api.base.service'; + +export interface PatentEntry { + patent_id: string; + source: string; + title: string | null; + abstract: string | null; + publication_date: string | null; + publication_year: string | null; + inventors: string[]; + assignees: string[]; + ipc: string[]; + country: string | null; + confidence_score: number; +} + +export interface PatentsByAuthorResponse { + author_id: string; + author_name: string | null; + patent_count: number; + patents: PatentEntry[]; +} + +@Injectable({ + providedIn: 'root', +}) +export class PatentsService extends BaseService { + constructor( + protected httpClient: HttpClient, + @Optional() @Inject(BASE_PATH) basePath: string | string[], + @Optional() configuration?: Configuration, + ) { + super(basePath, configuration); + } + + /** + * Get patents by author. + * @endpoint get /api/inse-service/authors/{author_id}/patents + * @param authorId + * @param observe + * @param reportProgress + */ + public getPatentsByAuthor( + authorId: string, + observe?: 'body', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable; + public getPatentsByAuthor( + authorId: string, + observe?: 'response', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public getPatentsByAuthor( + authorId: string, + observe?: 'events', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public getPatentsByAuthor( + authorId: string, + observe: any = 'body', + reportProgress: boolean = false, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable { + if (authorId === null || authorId === undefined) { + throw new Error( + 'Required parameter authorId was null or undefined when calling getPatentsByAuthor.', + ); + } + + 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/inse-service/authors/${this.configuration.encodeParam({ + name: 'authorId', + value: authorId, + in: 'path', + style: 'simple', + explode: false, + dataType: 'string', + dataFormat: undefined, + })}/patents`; + + 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, + }, + ); + } +} diff --git a/webapp/src/app/app.routes.ts b/webapp/src/app/app.routes.ts index 23a85220..7b6ab180 100644 --- a/webapp/src/app/app.routes.ts +++ b/webapp/src/app/app.routes.ts @@ -126,6 +126,13 @@ export const routes: Routes = [ (mod) => mod.PersonFundingComponent, ), }, + { + path: 'patents', + loadComponent: () => + import('./modules/person-patents/person-patents.component').then( + (mod) => mod.PersonPatentsComponent, + ), + }, ], }, { diff --git a/webapp/src/app/modules/person-patents/person-patents.component.html b/webapp/src/app/modules/person-patents/person-patents.component.html new file mode 100644 index 00000000..8d083698 --- /dev/null +++ b/webapp/src/app/modules/person-patents/person-patents.component.html @@ -0,0 +1,150 @@ +@if (loading) { +

Lade Patente...

+} @else if (error) { +

Fehler beim Laden der Patente.

+} @else if (patents.length === 0) { +

Keine Patente gefunden.

+} @else { +
+ +
+

+ {{ filteredPatents.length }} + Patente +

+

+ {{ getEpoCount() }} + EPO +

+

+ {{ getUsptoCount() }} + USPTO +

+
+ +
+ +
+
+
+ Filter nach Quelle: + + + +
+ +
+ + + + + + + + + + + + @for (patent of getPagedPatents(); track patent.patent_id) { + + + + + + + } + +
PatentQuelleJahrScore
{{ patent.title ?? patent.patent_id }} + + {{ patent.source }} + + {{ patent.publication_year ?? '-' }}{{ patent.confidence_score }}
+ + @if (hasPagination()) { + + } +
+ + @if (selectedPatent) { +
+

{{ selectedPatent.title ?? selectedPatent.patent_id }}

+ +
+
+ Quelle + {{ selectedPatent.source }} +
+
+ Patent-Nr. + {{ selectedPatent.patent_id }} +
+
+ Datum + {{ formatDate(selectedPatent.publication_date) }} +
+
+ Relevanz + {{ selectedPatent.confidence_score }} +
+
+ + @if (selectedPatent.abstract) { +
+

Abstract

+

{{ selectedPatent.abstract }}

+
+ } + +
+

Erfinder

+
    + @for (inventor of selectedPatent.inventors; track inventor) { +
  • {{ inventor }}
  • + } +
+
+ + @if (selectedPatent.assignees.length > 0) { +
+

Anmelder

+
    + @for (assignee of selectedPatent.assignees; track assignee) { +
  • {{ assignee }}
  • + } +
+
+ } + + @if (selectedPatent.ipc.length > 0) { +
+

Klassifikation (IPC)

+
    + @for (ipc of selectedPatent.ipc; track ipc) { +
  • {{ ipc }}
  • + } +
+
+ } +
+ } @else { +
+

Klicke auf ein Patent für Details.

+
+ } + +
+
+} diff --git a/webapp/src/app/modules/person-patents/person-patents.component.scss b/webapp/src/app/modules/person-patents/person-patents.component.scss new file mode 100644 index 00000000..762cf458 --- /dev/null +++ b/webapp/src/app/modules/person-patents/person-patents.component.scss @@ -0,0 +1,293 @@ +.message { + padding: 16px; + color: #666; +} + +.patents-container { + padding: 16px; + display: flex; + flex-direction: column; + gap: 16px; +} + +.patents-summary { + margin-bottom: 8px; + display: flex; + gap: 24px; + + .summary-line { + margin: 0; + font-size: 14px; + color: #333; + } + + .summary-label { + color: #333; + } + + .summary-value { + font-weight: 600; + color: #333; + } +} + +.filter-bar { + display: flex; + align-items: center; + gap: 8px; + flex-wrap: wrap; + + span { + font-weight: 500; + color: #555; + } + + button { + padding: 6px 14px; + border: 1px solid #ccc; + border-radius: 20px; + background: white; + cursor: pointer; + font-size: 14px; + + &:hover { + background: #f0f0f0; + } + + &.active { + background: #f0f6ff; + color: #0b63ce; + border-color: #bdd4ff; + font-weight: 600; + } + } +} + +.sort-control { + display: inline-flex; + align-items: center; + gap: 6px; + width: fit-content; + padding: 10px 14px; + border-radius: 20px; + background: #f2f2f2; + color: #333; + font-size: 14px; + + span { + color: #555; + } + + select { + border: 0; + background: transparent; + color: #111827; + font: inherit; + cursor: pointer; + outline: none; + } +} + +.patents-content { + display: flex; + gap: 24px; + align-items: flex-start; +} + +.patents-list { + flex: 1; + + .patents-list-toolbar { + display: flex; + align-items: center; + justify-content: space-between; + gap: 16px; + margin-bottom: 18px; + flex-wrap: wrap; + } + + table { + width: 100%; + border-collapse: collapse; + + th { + text-align: left; + padding: 10px 12px; + border-bottom: 2px solid #e0e0e0; + font-weight: 600; + color: #333; + } + + tr { + cursor: pointer; + + &:hover { + background: #f5f5f5; + } + + &.selected { + background: #f0f0f0; + } + } + + td { + padding: 10px 12px; + border-bottom: 1px solid #f0f0f0; + } + + .patent-title { + color: #333; + font-weight: 500; + max-width: 400px; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; + } + } +} + +.source-badge { + display: inline-flex; + align-items: center; + padding: 3px 10px; + border-radius: 999px; + font-size: 0.75rem; + font-weight: 700; + + &--epo { + background: #effaf3; + color: #24834f; + border: 1px solid #bdebcf; + } + + &--uspto { + background: #f0f6ff; + color: #0b63ce; + border: 1px solid #bdd4ff; + } +} + +.patent-detail { + width: 440px; + border: 1px solid #e0e0e0; + border-radius: 8px; + padding: 20px; + background: #fafafa; + + &.empty { + display: flex; + align-items: center; + justify-content: center; + color: #999; + min-height: 200px; + } + + h3 { + margin: 0 0 16px 0; + font-size: 16px; + color: #333; + line-height: 1.4; + } + + h4 { + margin: 16px 0 8px 0; + font-size: 14px; + color: #555; + font-weight: 600; + } + + p { + font-size: 13px; + color: #444; + line-height: 1.6; + margin: 0; + } +} + +.detail-stats { + display: grid; + grid-template-columns: 1fr 1fr; + gap: 10px; + margin-bottom: 16px; + + .stat { + background: white; + border: 1px solid #e0e0e0; + border-radius: 8px; + padding: 10px; + text-align: center; + + .stat-label { + display: block; + font-size: 11px; + color: #666; + margin-bottom: 4px; + text-transform: uppercase; + letter-spacing: 0.03em; + } + + .stat-value { + display: block; + font-size: 15px; + font-weight: bold; + color: #333; + } + } +} + +.detail-section { + margin-top: 12px; + padding-top: 12px; + border-top: 1px solid #eee; +} + +.tag-list { + display: flex; + flex-wrap: wrap; + gap: 6px; + margin: 0; + padding: 0; + list-style: none; + + &--compact .tag { + font-size: 0.75rem; + padding: 3px 8px; + } +} + +.tag { + padding: 4px 10px; + border-radius: 999px; + background: #f0f6ff; + border: 1px solid #dbeafe; + color: #1e40af; + font-size: 0.8rem; + line-height: 1.3; +} + +.pagination { + display: flex; + align-items: center; + justify-content: space-between; + gap: 8px; + margin-top: 12px; + + button { + padding: 4px 10px; + border: 1px solid #d0d0d0; + border-radius: 6px; + background: white; + cursor: pointer; + font-size: 12px; + + &:disabled { + opacity: 0.5; + cursor: default; + } + } + + span { + font-size: 12px; + color: #666; + } +} diff --git a/webapp/src/app/modules/person-patents/person-patents.component.ts b/webapp/src/app/modules/person-patents/person-patents.component.ts new file mode 100644 index 00000000..4d73e943 --- /dev/null +++ b/webapp/src/app/modules/person-patents/person-patents.component.ts @@ -0,0 +1,157 @@ +import { Component, OnInit, inject } from '@angular/core'; +import { CommonModule } from '@angular/common'; +import { ActivatedRoute, Router } from '@angular/router'; +import { PatentsService, PatentEntry } from '../../api/api/patents.service'; + +type SortMode = 'score' | 'date' | 'title'; +type SourceFilter = 'all' | 'EPO' | 'USPTO'; + +@Component({ + selector: 'app-person-patents', + imports: [CommonModule], + templateUrl: './person-patents.component.html', + styleUrl: './person-patents.component.scss', +}) +export class PersonPatentsComponent implements OnInit { + private route = inject(ActivatedRoute); + private router = inject(Router); + private patentsApi = inject(PatentsService); + + patents: PatentEntry[] = []; + filteredPatents: PatentEntry[] = []; + authorName: string | null = null; + selectedPatent: PatentEntry | null = null; + + loading = true; + error = false; + + activeFilter: SourceFilter = 'all'; + sortMode: SortMode = 'score'; + + selectedPage = 1; + readonly pageSize = 10; + + ngOnInit(): void { + this.route.parent?.paramMap.subscribe((params) => { + const authorId = params.get('id') ?? ''; + + const filterFromUrl = this.route.snapshot.queryParamMap.get('filter'); + const sortFromUrl = this.route.snapshot.queryParamMap.get('sortBy'); + + if (this.isValidFilter(filterFromUrl)) { + this.activeFilter = filterFromUrl; + } + if (this.isValidSortMode(sortFromUrl)) { + this.sortMode = sortFromUrl; + } + + if (authorId) { + this.patentsApi.getPatentsByAuthor(authorId, 'body').subscribe({ + next: (result) => { + this.patents = result.patents ?? []; + this.authorName = result.author_name ?? null; + this.applyFilter(); + this.loading = false; + }, + error: () => { + this.error = true; + this.loading = false; + }, + }); + } + }); + } + + setFilter(filter: SourceFilter): void { + this.activeFilter = filter; + this.selectedPage = 1; + this.selectedPatent = null; + this.applyFilter(); + this.updateQueryParams(); + } + + setSortMode(sortMode: SortMode): void { + this.sortMode = sortMode; + this.applyFilter(); + this.updateQueryParams(); + } + + selectPatent(patent: PatentEntry): void { + this.selectedPatent = patent; + this.updateQueryParams(); + } + + private applyFilter(): void { + let patents = this.patents; + + if (this.activeFilter !== 'all') { + patents = patents.filter((p) => p.source === this.activeFilter); + } + + this.filteredPatents = this.sortPatents(patents); + } + + private sortPatents(patents: PatentEntry[]): PatentEntry[] { + return [...patents].sort((a, b) => { + if (this.sortMode === 'score') { + return b.confidence_score - a.confidence_score; + } + if (this.sortMode === 'date') { + return (b.publication_date ?? '').localeCompare(a.publication_date ?? ''); + } + return (a.title ?? '').localeCompare(b.title ?? '', 'de', { sensitivity: 'base' }); + }); + } + + private updateQueryParams(): void { + this.router.navigate([], { + relativeTo: this.route, + queryParams: { + filter: this.activeFilter, + sortBy: this.sortMode, + }, + queryParamsHandling: 'merge', + replaceUrl: true, + }); + } + + private isValidFilter(value: string | null): value is SourceFilter { + return value === 'all' || value === 'EPO' || value === 'USPTO'; + } + + private isValidSortMode(value: string | null): value is SortMode { + return value === 'score' || value === 'date' || value === 'title'; + } + + getPagedPatents(): PatentEntry[] { + const start = (this.selectedPage - 1) * this.pageSize; + return this.filteredPatents.slice(start, start + this.pageSize); + } + + getPageCount(): number { + return Math.max(1, Math.ceil(this.filteredPatents.length / this.pageSize)); + } + + hasPagination(): boolean { + return this.getPageCount() > 1; + } + + setPage(page: number): void { + this.selectedPage = Math.min(Math.max(page, 1), this.getPageCount()); + this.updateQueryParams(); + } + + formatDate(date: string | null): string { + if (!date) return '-'; + const d = date.replace(/(\d{4})(\d{2})(\d{2})/, '$1-$2-$3'); + return new Intl.DateTimeFormat('de-DE').format(new Date(d)); + } + + getEpoCount(): number { + return this.patents.filter((p) => p.source === 'EPO').length; + } + + getUsptoCount(): number { + return this.patents.filter((p) => p.source === 'USPTO').length; + } +} diff --git a/webapp/src/app/modules/person/person.component.ts b/webapp/src/app/modules/person/person.component.ts index 8c88f580..bbbb9988 100644 --- a/webapp/src/app/modules/person/person.component.ts +++ b/webapp/src/app/modules/person/person.component.ts @@ -195,6 +195,7 @@ export class PersonComponent { { label: 'Netzwerk', path: 'network', disabled: false }, { label: 'Gründungen', path: 'foundings', disabled: true }, { label: 'Förderungen', path: 'funding', disabled: false }, + { label: 'Patente', path: 'patents', disabled: false }, ]; onInterestingTagClick(selection: { id: string; name: string }): void { From 0dd03e0ae0ea25cccebb24aa5c7a22096b4f2f36 Mon Sep 17 00:00:00 2001 From: taguesokoudjou Date: Mon, 15 Jun 2026 20:27:21 +0200 Subject: [PATCH 02/41] feat: improve patent matching with disambiguation pipeline and caching --- service/src/main/inse/config.py | 6 + .../src/main/inse/patents/author_profile.py | 195 ++++++++++ .../src/main/inse/patents/disambiguation.py | 130 +++++++ .../inse/patents/elastic_search_client.py | 315 +++++++++++++--- service/src/main/inse/patents/logic.py | 350 ++++++------------ service/src/main/inse/patents/model.py | 35 +- service/src/main/inse/patents/pipeline.py | 209 +++++++++++ service/src/main/inse/patents/repository.py | 182 +++++++++ service/src/main/inse/patents/service.py | 58 ++- service/src/main/inse/patents/test_logic.py | 228 ++++++++++++ service/src/main/inse/schema.py | 47 ++- webapp/src/app/api/api/patents.service.ts | 47 +++ .../person-patents.component.html | 26 ++ .../person-patents.component.scss | 29 ++ .../person-patents.component.ts | 99 ++++- 15 files changed, 1642 insertions(+), 314 deletions(-) create mode 100644 service/src/main/inse/patents/author_profile.py create mode 100644 service/src/main/inse/patents/disambiguation.py create mode 100644 service/src/main/inse/patents/pipeline.py create mode 100644 service/src/main/inse/patents/repository.py create mode 100644 service/src/main/inse/patents/test_logic.py diff --git a/service/src/main/inse/config.py b/service/src/main/inse/config.py index cdc232d5..cbd9597b 100644 --- a/service/src/main/inse/config.py +++ b/service/src/main/inse/config.py @@ -42,6 +42,12 @@ class Settings(BaseSettings): # Patent elasticsearch config patent_elasticsearch_url: str = "https://inse.nes.uni-due.de/elastic" patent_elasticsearch_api_key: str = "" + patent_es_page_size: int = 500 + patent_es_max_pages: int = 20 + patent_disambiguation_min_score_full_name: int = 6 + patent_disambiguation_min_score_partial: int = 8 + patent_link_cache_ttl_hours: int = 168 + patent_publication_context_max_pages: int = 10 # LLM config diff --git a/service/src/main/inse/patents/author_profile.py b/service/src/main/inse/patents/author_profile.py new file mode 100644 index 00000000..517a2a89 --- /dev/null +++ b/service/src/main/inse/patents/author_profile.py @@ -0,0 +1,195 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- +""" + Build author search profiles and publication context for patent disambiguation. +""" +from __future__ import annotations + +import logging +from dataclasses import dataclass, field + +from .. import config +from ..models.author import Author +from ..works.search_client import OpenAlexWorksSearchClient + +logger = logging.getLogger(__name__) + +_NAME_PREFIXES = frozenset({ + "dr", "prof", "mr", "mrs", "ms", "dipl", "ing", "med", +}) + + +@dataclass +class AuthorProfile: + author_id: str + display_name: str + first_name: str | None + last_name: str | None + name_variants: list[str] = field(default_factory=list) + institutions: list[str] = field(default_factory=list) + topics: list[str] = field(default_factory=list) + orcid: str | None = None + coauthor_last_names: set[str] = field(default_factory=set) + publication_keywords: set[str] = field(default_factory=set) + + +def normalize_author_id(author_id: str) -> str: + short_id = author_id.strip().removeprefix("https://openalex.org/") + return f"https://openalex.org/{short_id}" + + +def build_author_profile(author: Author, author_id: str) -> AuthorProfile: + display_name = author.display_name or "" + first_name, last_name = extract_name_parts(display_name) + institutions = _extract_institutions(author) + topics = [ + topic.display_name + for topic in (author.topics or []) + if topic and topic.display_name + ] + orcid = _extract_orcid(author) + variants = _build_name_variants(first_name, last_name, display_name) + + return AuthorProfile( + author_id=normalize_author_id(author_id), + display_name=display_name, + first_name=first_name, + last_name=last_name, + name_variants=variants, + institutions=institutions, + topics=topics, + orcid=orcid, + ) + + +async def enrich_with_publication_context( + profile: AuthorProfile, + works_client: OpenAlexWorksSearchClient | None = None, +) -> AuthorProfile: + client = works_client or OpenAlexWorksSearchClient() + settings = config.settings + page = 1 + page_size = 100 + max_pages = settings.patent_publication_context_max_pages + normalized_id = profile.author_id + + try: + while page <= max_pages: + data = await client.search_author_works( + normalized_id.removeprefix("https://openalex.org/"), + page, + page_size, + ) + hits = data.get("hits", {}).get("hits", []) + total = data.get("hits", {}).get("total", {}).get("value", 0) + + for hit in hits: + source = hit.get("_source", {}) + _collect_coauthors(source, normalized_id, profile.coauthor_last_names) + _collect_publication_keywords(source, profile.publication_keywords) + + if not hits or page * page_size >= total: + break + page += 1 + except Exception as exc: + logger.warning( + "Publication context unavailable for author %s: %s", + profile.author_id, + exc, + ) + + return profile + + +def extract_name_parts(display_name: str | None) -> tuple[str | None, str | None]: + if not display_name: + return None, None + + parts = [ + part + for part in display_name.strip().split() + if part.lower().rstrip(".") not in _NAME_PREFIXES + ] + if not parts: + return None, None + if len(parts) == 1: + return None, parts[0] + return parts[0], parts[-1] + + +def _build_name_variants( + first_name: str | None, + last_name: str | None, + display_name: str, +) -> list[str]: + variants: list[str] = [] + if display_name.strip(): + variants.append(display_name.strip()) + if first_name and last_name: + variants.append(f"{first_name} {last_name}") + variants.append(f"{last_name}, {first_name}") + variants.append(f"{last_name} {first_name}") + if len(first_name) > 0: + variants.append(f"{first_name[0]}. {last_name}") + if last_name: + variants.append(last_name) + + seen: set[str] = set() + unique: list[str] = [] + for variant in variants: + key = variant.lower() + if key not in seen: + seen.add(key) + unique.append(variant) + return unique + + +def _collect_coauthors( + source: dict, + author_id: str, + coauthor_last_names: set[str], +) -> None: + for authorship in source.get("authorships", []): + author = authorship.get("author", {}) + other_id = author.get("id", "") + if not other_id or other_id == author_id: + continue + other_name = author.get("display_name", "") + _, last_name = extract_name_parts(other_name) + if last_name: + coauthor_last_names.add(last_name.lower()) + + +def _collect_publication_keywords(source: dict, keywords: set[str]) -> None: + for topic in source.get("topics", []) or []: + display_name = topic.get("display_name") + if display_name: + keywords.add(display_name.lower()) + + primary_topic = source.get("primary_topic") or {} + display_name = primary_topic.get("display_name") + if display_name: + keywords.add(display_name.lower()) + + for keyword in source.get("keywords", []) or []: + display_name = keyword.get("display_name") + if display_name: + keywords.add(display_name.lower()) + + +def _extract_orcid(author: Author) -> str | None: + if author.ids and author.ids.orcid: + return str(author.ids.orcid) + return str(author.orcid) if author.orcid else None + + +def _extract_institutions(author: Author) -> list[str]: + institutions: set[str] = set() + for institution in author.last_known_institutions or []: + if institution and institution.display_name: + institutions.add(institution.display_name) + for affiliation in author.affiliations or []: + inst = getattr(affiliation, "institution", None) + if inst and getattr(inst, "display_name", None): + institutions.add(inst.display_name) + return list(institutions) diff --git a/service/src/main/inse/patents/disambiguation.py b/service/src/main/inse/patents/disambiguation.py new file mode 100644 index 00000000..6c278253 --- /dev/null +++ b/service/src/main/inse/patents/disambiguation.py @@ -0,0 +1,130 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- +""" + Rule-based patent-author disambiguation with publication cross-validation. +""" +from __future__ import annotations + +from dataclasses import dataclass + +from .. import config +from . import model +from .author_profile import AuthorProfile + + +@dataclass +class DisambiguationResult: + score: int + signals: list[str] + accepted: bool + + +def disambiguate_patent_group( + versions: list[model.PatentEntry], + profile: AuthorProfile, +) -> model.PatentEntry | None: + best: model.PatentEntry | None = None + best_result: DisambiguationResult | None = None + + for patent in versions: + result = score_patent(patent, profile) + if not result.accepted: + continue + patent.confidence_score = result.score + patent.match_signals = result.signals + if best is None or result.score > best_result.score: # type: ignore[union-attr] + best = patent + best_result = result + + return best + + +def score_patent( + patent: model.PatentEntry, + profile: AuthorProfile, +) -> DisambiguationResult: + settings = config.settings + signals: list[str] = [] + score = 0 + + inventors_lower = [inventor.lower() for inventor in patent.inventors] + title_abstract = ((patent.title or "") + " " + (patent.abstract or "")).lower() + + full_name_match = False + if profile.first_name and profile.last_name: + full_name_match = any( + profile.first_name.lower() in inventor + and profile.last_name.lower() in inventor + for inventor in inventors_lower + ) + if full_name_match: + score += 5 + signals.append("full_name_match") + + if profile.last_name and any(profile.last_name.lower() in inventor for inventor in inventors_lower): + score += 2 + if "last_name_match" not in signals: + signals.append("last_name_match") + + if profile.first_name and any(profile.first_name.lower() in inventor for inventor in inventors_lower): + score += 2 + if "first_name_match" not in signals: + signals.append("first_name_match") + + for institution in profile.institutions: + institution_words = set(institution.lower().split()) + for assignee in patent.assignees: + assignee_words = set(assignee.lower().split()) + meaningful = { + word for word in (institution_words & assignee_words) if len(word) > 3 + } + if len(meaningful) >= 2: + score += 3 + signals.append("institution_match") + break + if "institution_match" in signals: + break + + if profile.orcid and patent.orcid and profile.orcid.lower() in patent.orcid.lower(): + score += 5 + signals.append("orcid_match") + + topic_hits = 0 + for topic in profile.topics: + if topic.lower() in title_abstract: + topic_hits += 1 + score += 1 + if topic_hits == 1: + signals.append("topic_match") + if topic_hits >= 3: + break + + coauthor_hits = 0 + for coauthor_last_name in profile.coauthor_last_names: + if any(coauthor_last_name in inventor for inventor in inventors_lower): + coauthor_hits += 1 + score += 2 + if coauthor_hits == 1: + signals.append("coauthor_match") + if coauthor_hits >= 2: + break + + keyword_hits = 0 + for keyword in profile.publication_keywords: + if len(keyword) > 4 and keyword in title_abstract: + keyword_hits += 1 + score += 1 + if keyword_hits == 1: + signals.append("publication_topic_match") + if keyword_hits >= 2: + break + + threshold = ( + settings.patent_disambiguation_min_score_full_name + if full_name_match + else settings.patent_disambiguation_min_score_partial + ) + has_name_signal = "last_name_match" in signals or "full_name_match" in signals + accepted = score >= threshold and has_name_signal + + return DisambiguationResult(score=score, signals=signals, accepted=accepted) diff --git a/service/src/main/inse/patents/elastic_search_client.py b/service/src/main/inse/patents/elastic_search_client.py index ac20fbb2..5fb58366 100644 --- a/service/src/main/inse/patents/elastic_search_client.py +++ b/service/src/main/inse/patents/elastic_search_client.py @@ -3,15 +3,51 @@ """ HTTP client for patent searches in EPO and USPTO Elasticsearch indices. """ +from __future__ import annotations + +import logging from typing import Any import httpx from .. import config +from . import model +from .author_profile import AuthorProfile + +logger = logging.getLogger(__name__) EPO_INDEX = "epo_index_1.0" USPTO_INDEX = "uspto_patents_2.0" +_EPO_SOURCE_FIELDS = [ + "doc_number", + "country", + "kind", + "date_publication", + "date_publication_year", + "title_en", + "title_de", + "abstract", + "inventors_name", + "applicants_name", + "ipc", + "ipc_text", +] + +_USPTO_SOURCE_FIELDS = [ + "publication_number", + "country", + "publication_date", + "publication_year", + "title", + "abstract", + "inventors_names", + "inventors_names_text", + "assignees_orgs", + "ipcr", + "ipcr_text", +] + class MissingApiKeyError(Exception): pass @@ -38,84 +74,128 @@ class PatentSearchClient: "Content-Type": "application/json", } - def epo_query_by_inventor(self, last_name: str, size: int = 100) -> dict[str, Any]: - """Search EPO index by inventor last name.""" + def epo_query_by_profile( + self, + profile: AuthorProfile, + page: int, + size: int, + ) -> dict[str, Any]: return { + "from": (page - 1) * size, "size": size, "track_total_hits": True, - "_source": [ - "doc_number", - "country", - "kind", - "date_publication", - "date_publication_year", - "title_en", - "title_de", - "abstract", - "inventors_name", - "applicants_name", - "ipc", - "ipc_text", - ], + "_source": _EPO_SOURCE_FIELDS, + "query": self._inventor_bool_query( + profile, + text_field="inventors_name_text", + keyword_field="inventors_name", + ), + } + + def uspto_query_by_profile( + self, + profile: AuthorProfile, + page: int, + size: int, + ) -> dict[str, Any]: + return { + "from": (page - 1) * size, + "size": size, + "track_total_hits": True, + "_source": _USPTO_SOURCE_FIELDS, + "query": self._inventor_bool_query( + profile, + text_field="inventors_names_text", + keyword_field="inventors_names", + ), + } + + def epo_query_by_patent_id(self, patent_id: str) -> dict[str, Any]: + doc_number = patent_id.removeprefix("EP") + return { + "size": 1, + "track_total_hits": True, + "_source": _EPO_SOURCE_FIELDS, "query": { "bool": { "should": [ - { - "match": { - "inventors_name_text": { - "query": last_name, - "operator": "and", - } - } - }, - { - "term": { - "inventors_name": last_name - } - }, + {"term": {"doc_number": doc_number}}, + {"term": {"_id": patent_id}}, ], "minimum_should_match": 1, - } + }, }, } - def uspto_query_by_inventor(self, last_name: str, size: int = 100) -> dict[str, Any]: - """Search USPTO index by inventor last name.""" + def uspto_query_by_patent_id(self, patent_id: str) -> dict[str, Any]: + publication_number = patent_id.removeprefix("US") return { - "size": size, + "size": 1, "track_total_hits": True, - "_source": [ - "publication_number", - "country", - "publication_date", - "publication_year", - "title", - "abstract", - "inventors_names", - "inventors_names_text", - "assignees_orgs", - "ipcr", - "ipcr_text", - ], + "_source": _USPTO_SOURCE_FIELDS, "query": { "bool": { "should": [ - { - "match": { - "inventors_names_text": { - "query": last_name, - "operator": "and", - } - } - }, - { - "term": { - "inventors_names": last_name - } - }, + {"term": {"publication_number": publication_number}}, + {"term": {"_id": patent_id}}, ], "minimum_should_match": 1, - } + }, + }, + } + + @staticmethod + def _inventor_bool_query( + profile: AuthorProfile, + *, + text_field: str, + keyword_field: str, + ) -> dict[str, Any]: + should: list[dict[str, Any]] = [] + + if profile.first_name and profile.last_name: + full_name = f"{profile.first_name} {profile.last_name}" + should.extend([ + { + "match": { + text_field: { + "query": full_name, + "operator": "and", + }, + }, + }, + { + "match_phrase": { + text_field: f"{profile.last_name}, {profile.first_name}", + }, + }, + { + "bool": { + "must": [ + {"term": {keyword_field: profile.last_name}}, + {"match": {text_field: profile.first_name}}, + ], + }, + }, + ]) + + for variant in profile.name_variants: + should.append({ + "match": { + text_field: { + "query": variant, + "operator": "and", + }, + }, + }) + + if profile.last_name: + should.append({"term": {keyword_field: profile.last_name}}) + + return { + "bool": { + "should": should, + "minimum_should_match": 1, }, } @@ -125,6 +205,66 @@ class PatentSearchClient: async def search_uspto(self, payload: dict[str, Any]) -> dict[str, Any]: return await self._search(USPTO_INDEX, payload) + async def fetch_all_epo(self, profile: AuthorProfile) -> tuple[int, list[dict[str, Any]]]: + return await self._fetch_all_pages( + profile, + self.epo_query_by_profile, + self.search_epo, + ) + + async def fetch_all_uspto(self, profile: AuthorProfile) -> tuple[int, list[dict[str, Any]]]: + return await self._fetch_all_pages( + profile, + self.uspto_query_by_profile, + self.search_uspto, + ) + + async def lookup_patent(self, patent_id: str) -> model.PatentEntry | None: + source = patent_id[:2].upper() + if source == "EP": + data = await self.search_epo(self.epo_query_by_patent_id(patent_id)) + patents = parse_epo_hits(data) + elif source == "US": + data = await self.search_uspto(self.uspto_query_by_patent_id(patent_id)) + patents = parse_uspto_hits(data) + else: + return None + return patents[0] if patents else None + + async def _fetch_all_pages( + self, + profile: AuthorProfile, + query_builder, + search_fn, + ) -> tuple[int, list[dict[str, Any]]]: + settings = config.settings + page = 1 + page_size = settings.patent_es_page_size + max_pages = settings.patent_es_max_pages + total_hits = 0 + all_hits: list[dict[str, Any]] = [] + + while page <= max_pages: + payload = query_builder(profile, page, page_size) + data = await search_fn(payload) + total_hits = data.get("hits", {}).get("total", {}).get("value", 0) + hits = data.get("hits", {}).get("hits", []) + all_hits.extend(hits) + + if not hits or page * page_size >= total_hits: + break + page += 1 + + if page > max_pages and page * page_size < total_hits: + logger.warning( + "Patent search truncated for author %s at %s pages (total hits: %s).", + profile.author_id, + max_pages, + total_hits, + ) + + return total_hits, all_hits + async def _search(self, index: str, payload: dict[str, Any]) -> dict[str, Any]: async with httpx.AsyncClient( base_url=self.base_url, @@ -137,4 +277,57 @@ class PatentSearchClient: json=payload, ) response.raise_for_status() - return response.json() \ No newline at end of file + return response.json() + + +def _normalize_str_list(value: Any) -> list[str]: + if value is None: + return [] + if isinstance(value, list): + return [str(item) for item in value if item is not None and str(item).strip()] + return [str(value)] if str(value).strip() else [] + + +def _optional_str(value: Any) -> str | None: + if value is None: + return None + text = str(value).strip() + return text or None + + +def parse_epo_hits(data: dict[str, Any]) -> list[model.PatentEntry]: + patents: list[model.PatentEntry] = [] + for hit in data.get("hits", {}).get("hits", []): + source = hit.get("_source", {}) + patents.append(model.PatentEntry( + patent_id=f"EP{source.get('doc_number', hit.get('_id', ''))}", + source="EPO", + title=source.get("title_en") or source.get("title_de"), + abstract=source.get("abstract"), + publication_date=_optional_str(source.get("date_publication")), + publication_year=_optional_str(source.get("date_publication_year")), + inventors=_normalize_str_list(source.get("inventors_name")), + assignees=_normalize_str_list(source.get("applicants_name")), + ipc=_normalize_str_list(source.get("ipc")), + country=source.get("country", "EP"), + )) + return patents + + +def parse_uspto_hits(data: dict[str, Any]) -> list[model.PatentEntry]: + patents: list[model.PatentEntry] = [] + for hit in data.get("hits", {}).get("hits", []): + source = hit.get("_source", {}) + patents.append(model.PatentEntry( + patent_id=f"US{source.get('publication_number', hit.get('_id', ''))}", + source="USPTO", + title=source.get("title"), + abstract=source.get("abstract"), + publication_date=_optional_str(source.get("publication_date")), + publication_year=_optional_str(source.get("publication_year")), + inventors=_normalize_str_list(source.get("inventors_names")), + assignees=_normalize_str_list(source.get("assignees_orgs")), + ipc=_normalize_str_list(source.get("ipcr")), + country=source.get("country", "US"), + )) + return patents diff --git a/service/src/main/inse/patents/logic.py b/service/src/main/inse/patents/logic.py index e503f042..ecd75b2f 100644 --- a/service/src/main/inse/patents/logic.py +++ b/service/src/main/inse/patents/logic.py @@ -1,269 +1,155 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- """ - Business logic for patent matching by author name. + Business logic for patent matching by author. """ +from __future__ import annotations + import logging -from collections import defaultdict import httpx from fastapi import HTTPException +from sqlalchemy.orm import Session +from starlette.status import HTTP_400_BAD_REQUEST from starlette.status import HTTP_502_BAD_GATEWAY from starlette.status import HTTP_503_SERVICE_UNAVAILABLE -from ..persons import logic as person_logic -from ..models.author import Author from . import model -from .elastic_search_client import MissingApiKeyError -from .elastic_search_client import PatentSearchClient +from . import repository +from .author_profile import normalize_author_id +from .elastic_search_client import MissingApiKeyError, PatentSearchClient +from .pipeline import rebuild_author_patents, load_author_patents logger = logging.getLogger(__name__) -_MIN_CONFIDENCE_SCORE = 4 - async def get_patents_by_author_id( author_id: str, + db: Session, + *, + refresh: bool = False, client: PatentSearchClient | None = None, ) -> model.PatentsByAuthorResponse: - search_client = client or PatentSearchClient() + normalized_id = normalize_author_id(author_id) + build_meta = repository.get_build_meta(db, normalized_id) - author = _get_author(author_id) - if not author: - return model.PatentsByAuthorResponse( - author_id=author_id, - author_name=None, - patent_count=0, - patents=[], - ) + if refresh or build_meta is None or not repository.is_cache_fresh(build_meta.built_at): + try: + return await rebuild_author_patents(author_id, db, client=client) + except MissingApiKeyError as exc: + cached = load_author_patents(db, author_id) + if cached.patent_count > 0: + return cached + raise HTTPException( + status_code=HTTP_503_SERVICE_UNAVAILABLE, + detail="Patent search is not configured.", + ) from exc + except httpx.HTTPError as exc: + cached = load_author_patents(db, author_id) + if cached.patent_count > 0: + return cached + raise HTTPException( + status_code=HTTP_502_BAD_GATEWAY, + detail="Patent search request failed.", + ) from exc - author_name = author.display_name - last_name = _extract_last_name(author_name) - first_name = _extract_first_name(author_name) + return load_author_patents(db, author_id) - if not last_name: - return model.PatentsByAuthorResponse( - author_id=author_id, - author_name=author_name, - patent_count=0, - patents=[], - ) - - institutions = _extract_all_institutions(author) - topics = _extract_topics(author) - orcid = _extract_orcid(author) +async def rebuild_patents_for_author( + author_id: str, + db: Session, + *, + client: PatentSearchClient | None = None, +) -> model.PatentsByAuthorResponse: try: - epo_data, uspto_data = await _search_both_indices(search_client, last_name) + return await rebuild_author_patents(author_id, db, client=client) except MissingApiKeyError as exc: - raise HTTPException(status_code=HTTP_503_SERVICE_UNAVAILABLE, - detail="Patent search is not configured.") from exc + raise HTTPException( + status_code=HTTP_503_SERVICE_UNAVAILABLE, + detail="Patent search is not configured.", + ) from exc except httpx.HTTPError as exc: - raise HTTPException(status_code=HTTP_502_BAD_GATEWAY, - detail="Patent search request failed.") from exc + raise HTTPException( + status_code=HTTP_502_BAD_GATEWAY, + detail="Patent search request failed.", + ) from exc - all_patents = _parse_epo_hits(epo_data) + _parse_uspto_hits(uspto_data) - # Group by patent_id to check all versions together - grouped: dict[str, list[model.PatentEntry]] = defaultdict(list) - for patent in all_patents: - grouped[patent.patent_id].append(patent) +async def set_patent_override( + author_id: str, + patent_id: str, + request: model.PatentOverrideRequest, + db: Session, + *, + client: PatentSearchClient | None = None, +) -> model.PatentOverrideResponse: + action = request.action.strip().lower() + if action not in {"include", "exclude"}: + raise HTTPException( + status_code=HTTP_400_BAD_REQUEST, + detail='action must be "include" or "exclude".', + ) - result_patents = [] - for patent_id, versions in grouped.items(): + normalized_id = normalize_author_id(author_id) + patent: model.PatentEntry | None = None - # Step 1: Check if first+last name appear together in ONE inventor entry - # across any version - if first_name and last_name: - name_ok = any( - first_name.lower() in inv.lower() and last_name.lower() in inv.lower() - for version in versions - for inv in version.inventors - ) - if not name_ok: - continue + if action == "include": + links = repository.get_links(db, author_id) + existing = next( + (entry for entry in repository.links_to_patents(links) if entry.patent_id == patent_id), + None, + ) + if existing is not None: + patent = existing + else: + search_client = client or PatentSearchClient() + try: + patent = await search_client.lookup_patent(patent_id) + except MissingApiKeyError as exc: + raise HTTPException( + status_code=HTTP_503_SERVICE_UNAVAILABLE, + detail="Patent search is not configured.", + ) from exc + except httpx.HTTPError as exc: + raise HTTPException( + status_code=HTTP_502_BAD_GATEWAY, + detail="Patent lookup failed.", + ) from exc - # Step 2: Check institution across ALL versions that have assignees - # If ANY version has assignees that don't match our institutions → reject all - versions_with_assignees = [v for v in versions if v.assignees] - if versions_with_assignees: - institution_ok = False - for version in versions_with_assignees: - for institution in institutions: - inst_words = set(institution.lower().split()) - for asg in version.assignees: - asg_words = set(asg.lower().split()) - meaningful = {w for w in (inst_words & asg_words) if len(w) > 3} - if len(meaningful) >= 2: - institution_ok = True - break - if institution_ok: - break - if institution_ok: - break - if not institution_ok: - continue + if patent is None: + raise HTTPException( + status_code=HTTP_400_BAD_REQUEST, + detail=f"Patent {patent_id} was not found in EPO/USPTO indices.", + ) + patent.confidence_score = max(patent.confidence_score, 10) + patent.match_signals = ["manual_include"] - # Step 3: Score all versions, keep best - best: model.PatentEntry | None = None - for patent in versions: - score = _compute_score(patent, first_name, last_name, - orcid, institutions, topics) - if score >= _MIN_CONFIDENCE_SCORE: - patent.confidence_score = score - if best is None or score > best.confidence_score: - best = patent + repository.upsert_override( + db, + normalized_id, + patent_id, + action, + reason=request.reason, + patent=patent, + ) + db.commit() - if best: - result_patents.append(best) - - result_patents.sort(key=lambda p: p.confidence_score, reverse=True) - - return model.PatentsByAuthorResponse( - author_id=author_id, - author_name=author_name, - patent_count=len(result_patents), - patents=result_patents, + return model.PatentOverrideResponse( + author_id=normalized_id, + patent_id=patent_id, + action=action, + reason=request.reason, + patent=patent, ) -def _compute_score( - patent: model.PatentEntry, - first_name: str | None, - last_name: str | None, - orcid: str | None, - institutions: list[str], - topics: list[str], -) -> int: - score = 0 - inventors_lower = [inv.lower() for inv in patent.inventors] - title_abstract = ((patent.title or "") + " " + (patent.abstract or "")).lower() - - # Last name match (+2) - if last_name and any(last_name.lower() in inv for inv in inventors_lower): - score += 2 - - # First name match (+2) - if first_name and any(first_name.lower() in inv for inv in inventors_lower): - score += 2 - - # Institution match (+3) - for institution in institutions: - inst_words = set(institution.lower().split()) - for asg in patent.assignees: - asg_words = set(asg.lower().split()) - meaningful = {w for w in (inst_words & asg_words) if len(w) > 3} - if len(meaningful) >= 2: - score += 3 - break - - # ORCID match (+5) - if orcid and getattr(patent, "orcid", None): - if orcid.lower() in patent.orcid.lower(): - score += 5 - - # Topics match (+1 each, max +3) - topic_score = 0 - for topic in topics: - if topic.lower() in title_abstract: - topic_score += 1 - if topic_score >= 3: - break - score += topic_score - - return score - - -async def _search_both_indices(client, last_name): - import asyncio - epo_result, uspto_result = await asyncio.gather( - client.search_epo(client.epo_query_by_inventor(last_name)), - client.search_uspto(client.uspto_query_by_inventor(last_name)), - ) - return epo_result, uspto_result - - -def _parse_epo_hits(data: dict) -> list[model.PatentEntry]: - patents = [] - for hit in data.get("hits", {}).get("hits", []): - src = hit.get("_source", {}) - inventors = src.get("inventors_name") or [] - applicants = src.get("applicants_name") or [] - ipc = src.get("ipc") or [] - patents.append(model.PatentEntry( - patent_id=f"EP{src.get('doc_number', hit.get('_id', ''))}", - source="EPO", - title=src.get("title_en") or src.get("title_de"), - abstract=src.get("abstract"), - publication_date=src.get("date_publication"), - publication_year=src.get("date_publication_year"), - inventors=inventors if isinstance(inventors, list) else [inventors], - assignees=applicants if isinstance(applicants, list) else [applicants], - ipc=ipc if isinstance(ipc, list) else [ipc], - country=src.get("country", "EP"), - )) - return patents - - -def _parse_uspto_hits(data: dict) -> list[model.PatentEntry]: - patents = [] - for hit in data.get("hits", {}).get("hits", []): - src = hit.get("_source", {}) - inventors = src.get("inventors_names") or [] - assignees = src.get("assignees_orgs") or [] - ipc = src.get("ipcr") or [] - patents.append(model.PatentEntry( - patent_id=f"US{src.get('publication_number', hit.get('_id', ''))}", - source="USPTO", - title=src.get("title"), - abstract=src.get("abstract"), - publication_date=src.get("publication_date"), - publication_year=src.get("publication_year"), - inventors=inventors if isinstance(inventors, list) else [inventors], - assignees=assignees if isinstance(assignees, list) else [assignees], - ipc=ipc if isinstance(ipc, list) else [ipc], - country=src.get("country", "US"), - )) - return patents - - -def _get_author(author_id: str) -> Author | None: - short_id = author_id.replace("https://openalex.org/", "") - result = person_logic.search_persons(author_id=short_id) - return result.results[0] if result.results else None - - -def _extract_last_name(name: str | None) -> str | None: - if not name: - return None - parts = name.strip().split() - return parts[-1] if parts else None - - -def _extract_first_name(name: str | None) -> str | None: - if not name: - return None - parts = name.strip().split() - return parts[0] if len(parts) > 1 else None - - -def _extract_orcid(author: Author) -> str | None: - if author.ids and author.ids.orcid: - return str(author.ids.orcid) - return str(author.orcid) if author.orcid else None - - -def _extract_all_institutions(author: Author) -> list[str]: - institutions: set[str] = set() - for inst in (author.last_known_institutions or []): - if inst and inst.display_name: - institutions.add(inst.display_name) - for aff in (author.affiliations or []): - inst = getattr(aff, "institution", None) - if inst and getattr(inst, "display_name", None): - institutions.add(inst.display_name) - return list(institutions) - - -def _extract_topics(author: Author) -> list[str]: - return [t.display_name for t in (author.topics or []) if t and t.display_name] \ No newline at end of file +def clear_patent_override( + author_id: str, + patent_id: str, + db: Session, +) -> bool: + deleted = repository.delete_override(db, author_id, patent_id) + if deleted: + db.commit() + return deleted diff --git a/service/src/main/inse/patents/model.py b/service/src/main/inse/patents/model.py index 2bed084c..478e53ff 100644 --- a/service/src/main/inse/patents/model.py +++ b/service/src/main/inse/patents/model.py @@ -1,3 +1,5 @@ +from datetime import datetime + from pydantic import BaseModel, Field @@ -12,11 +14,42 @@ class PatentEntry(BaseModel): assignees: list[str] = Field(default_factory=list) ipc: list[str] = Field(default_factory=list) country: str | None = None + orcid: str | None = None confidence_score: int = 0 + match_signals: list[str] = Field(default_factory=list) + + +class PatentSearchMeta(BaseModel): + epo_total_hits: int = 0 + uspto_total_hits: int = 0 + epo_returned_hits: int = 0 + uspto_returned_hits: int = 0 + matched_count: int = 0 + epo_truncated: bool = False + uspto_truncated: bool = False + coauthor_signals: int = 0 + publication_keywords: int = 0 + rebuild_failed: bool = False class PatentsByAuthorResponse(BaseModel): author_id: str author_name: str | None = None patent_count: int - patents: list[PatentEntry] \ No newline at end of file + patents: list[PatentEntry] + from_cache: bool = False + last_built_at: datetime | None = None + search_meta: PatentSearchMeta | None = None + + +class PatentOverrideRequest(BaseModel): + action: str = Field(description='Either "include" or "exclude".') + reason: str | None = None + + +class PatentOverrideResponse(BaseModel): + author_id: str + patent_id: str + action: str + reason: str | None = None + patent: PatentEntry | None = None diff --git a/service/src/main/inse/patents/pipeline.py b/service/src/main/inse/patents/pipeline.py new file mode 100644 index 00000000..ee1d7492 --- /dev/null +++ b/service/src/main/inse/patents/pipeline.py @@ -0,0 +1,209 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- +""" + Disambiguation pipeline: search patents, score matches, persist links. +""" +from __future__ import annotations + +import logging +from collections import defaultdict +from datetime import datetime, timezone + +import httpx +from sqlalchemy.orm import Session + +from ..persons import logic as person_logic +from ..models.author import Author +from . import model +from .author_profile import ( + AuthorProfile, + build_author_profile, + enrich_with_publication_context, + normalize_author_id, +) +from .disambiguation import disambiguate_patent_group +from .elastic_search_client import ( + MissingApiKeyError, + PatentSearchClient, + parse_epo_hits, + parse_uspto_hits, +) +from . import repository + +logger = logging.getLogger(__name__) + + +async def rebuild_author_patents( + author_id: str, + db: Session, + *, + client: PatentSearchClient | None = None, +) -> model.PatentsByAuthorResponse: + search_client = client or PatentSearchClient() + normalized_id = normalize_author_id(author_id) + + author = _get_author(author_id) + if not author: + return _empty_response(normalized_id) + + profile = build_author_profile(author, author_id) + profile = await enrich_with_publication_context(profile) + + try: + epo_total, epo_hits = await search_client.fetch_all_epo(profile) + uspto_total, uspto_hits = await search_client.fetch_all_uspto(profile) + except MissingApiKeyError: + return _response_from_cache_or_empty( + db, + normalized_id, + author.display_name, + from_cache=True, + rebuild_failed=True, + ) + except httpx.HTTPError as exc: + logger.error("Patent search failed for author %s: %s", normalized_id, exc) + return _response_from_cache_or_empty( + db, + normalized_id, + author.display_name, + from_cache=True, + rebuild_failed=True, + ) + + all_patents = ( + parse_epo_hits({"hits": {"hits": epo_hits}}) + + parse_uspto_hits({"hits": {"hits": uspto_hits}}) + ) + + grouped: dict[str, list[model.PatentEntry]] = defaultdict(list) + for patent in all_patents: + grouped[patent.patent_id].append(patent) + + matched_patents: list[model.PatentEntry] = [] + for versions in grouped.values(): + best = disambiguate_patent_group(versions, profile) + if best is not None: + matched_patents.append(best) + + matched_patents.sort(key=lambda patent: patent.confidence_score, reverse=True) + + search_meta = model.PatentSearchMeta( + epo_total_hits=epo_total, + uspto_total_hits=uspto_total, + epo_returned_hits=len(epo_hits), + uspto_returned_hits=len(uspto_hits), + matched_count=len(matched_patents), + epo_truncated=len(epo_hits) < epo_total, + uspto_truncated=len(uspto_hits) < uspto_total, + coauthor_signals=len(profile.coauthor_last_names), + publication_keywords=len(profile.publication_keywords), + ) + + built_at = datetime.now(timezone.utc) + repository.replace_links( + db, + normalized_id, + matched_patents, + author_name=author.display_name, + search_meta=search_meta, + built_at=built_at, + ) + db.commit() + + return _build_response( + db, + normalized_id, + author.display_name, + from_cache=False, + built_at=built_at, + search_meta=search_meta, + ) + + +def load_author_patents( + db: Session, + author_id: str, +) -> model.PatentsByAuthorResponse: + normalized_id = normalize_author_id(author_id) + build_meta = repository.get_build_meta(db, normalized_id) + search_meta = None + built_at = None + author_name = None + + if build_meta is not None: + author_name = build_meta.author_name + built_at = build_meta.built_at + search_meta = model.PatentSearchMeta.model_validate_json(build_meta.search_meta) + + return _build_response( + db, + normalized_id, + author_name, + from_cache=True, + built_at=built_at, + search_meta=search_meta, + ) + + +def _build_response( + db: Session, + author_id: str, + author_name: str | None, + *, + from_cache: bool, + built_at: datetime | None, + search_meta: model.PatentSearchMeta | None, +) -> model.PatentsByAuthorResponse: + links = repository.get_links(db, author_id) + patents = repository.apply_overrides( + repository.links_to_patents(links), + repository.get_overrides(db, author_id), + ) + return model.PatentsByAuthorResponse( + author_id=author_id, + author_name=author_name, + patent_count=len(patents), + patents=patents, + from_cache=from_cache, + last_built_at=built_at, + search_meta=search_meta, + ) + + +def _response_from_cache_or_empty( + db: Session, + author_id: str, + author_name: str | None, + *, + from_cache: bool, + rebuild_failed: bool, +) -> model.PatentsByAuthorResponse: + links = repository.get_links(db, author_id) + if links: + return load_author_patents(db, author_id) + + search_meta = model.PatentSearchMeta(rebuild_failed=rebuild_failed) if rebuild_failed else None + return model.PatentsByAuthorResponse( + author_id=author_id, + author_name=author_name, + patent_count=0, + patents=[], + from_cache=from_cache, + search_meta=search_meta, + ) + + +def _empty_response(author_id: str) -> model.PatentsByAuthorResponse: + return model.PatentsByAuthorResponse( + author_id=author_id, + author_name=None, + patent_count=0, + patents=[], + from_cache=False, + ) + + +def _get_author(author_id: str) -> Author | None: + short_id = author_id.replace("https://openalex.org/", "") + result = person_logic.search_persons(author_id=short_id) + return result.results[0] if result.results else None diff --git a/service/src/main/inse/patents/repository.py b/service/src/main/inse/patents/repository.py new file mode 100644 index 00000000..5a049f54 --- /dev/null +++ b/service/src/main/inse/patents/repository.py @@ -0,0 +1,182 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- +""" + Persistence layer for author-patent links and manual overrides. +""" +from __future__ import annotations + +import json +from datetime import datetime, timedelta, timezone + +from sqlalchemy import delete, select +from sqlalchemy.orm import Session + +from .. import config +from .. import schema +from . import model +from .author_profile import normalize_author_id + + +def is_cache_fresh(built_at: datetime | None) -> bool: + if built_at is None: + return False + ttl = timedelta(hours=config.settings.patent_link_cache_ttl_hours) + now = datetime.now(timezone.utc) + if built_at.tzinfo is None: + built_at = built_at.replace(tzinfo=timezone.utc) + return now - built_at < ttl + + +def get_build_meta(db: Session, author_id: str) -> schema.AuthorPatentBuildMeta | None: + normalized_id = normalize_author_id(author_id) + return db.get(schema.AuthorPatentBuildMeta, normalized_id) + + +def get_links(db: Session, author_id: str) -> list[schema.AuthorPatentLink]: + normalized_id = normalize_author_id(author_id) + return list( + db.scalars( + select(schema.AuthorPatentLink) + .where(schema.AuthorPatentLink.author_id == normalized_id) + .order_by(schema.AuthorPatentLink.confidence_score.desc()) + ).all() + ) + + +def get_overrides(db: Session, author_id: str) -> list[schema.AuthorPatentOverride]: + normalized_id = normalize_author_id(author_id) + return list( + db.scalars( + select(schema.AuthorPatentOverride) + .where(schema.AuthorPatentOverride.author_id == normalized_id) + ).all() + ) + + +def replace_links( + db: Session, + author_id: str, + patents: list[model.PatentEntry], + *, + author_name: str | None, + search_meta: model.PatentSearchMeta, + built_at: datetime | None = None, +) -> None: + normalized_id = normalize_author_id(author_id) + timestamp = built_at or datetime.now(timezone.utc) + + db.execute( + delete(schema.AuthorPatentLink).where( + schema.AuthorPatentLink.author_id == normalized_id + ) + ) + + for patent in patents: + db.add( + schema.AuthorPatentLink( + author_id=normalized_id, + patent_id=patent.patent_id, + source=patent.source, + confidence_score=patent.confidence_score, + match_signals=json.dumps(patent.match_signals), + patent_data=patent.model_dump_json(), + built_at=timestamp, + ) + ) + + existing_meta = db.get(schema.AuthorPatentBuildMeta, normalized_id) + if existing_meta is None: + existing_meta = schema.AuthorPatentBuildMeta(author_id=normalized_id) + db.add(existing_meta) + + existing_meta.author_name = author_name + existing_meta.built_at = timestamp + existing_meta.search_meta = search_meta.model_dump_json() + + +def upsert_override( + db: Session, + author_id: str, + patent_id: str, + action: str, + *, + reason: str | None = None, + patent: model.PatentEntry | None = None, +) -> schema.AuthorPatentOverride: + normalized_id = normalize_author_id(author_id) + existing = db.scalar( + select(schema.AuthorPatentOverride).where( + schema.AuthorPatentOverride.author_id == normalized_id, + schema.AuthorPatentOverride.patent_id == patent_id, + ) + ) + + patent_data = patent.model_dump_json() if patent is not None else None + if existing is None: + existing = schema.AuthorPatentOverride( + author_id=normalized_id, + patent_id=patent_id, + action=action, + reason=reason, + patent_data=patent_data, + created_at=datetime.now(timezone.utc), + ) + db.add(existing) + return existing + + existing.action = action + existing.reason = reason + if patent_data is not None: + existing.patent_data = patent_data + return existing + + +def delete_override(db: Session, author_id: str, patent_id: str) -> bool: + normalized_id = normalize_author_id(author_id) + override = db.scalar( + select(schema.AuthorPatentOverride).where( + schema.AuthorPatentOverride.author_id == normalized_id, + schema.AuthorPatentOverride.patent_id == patent_id, + ) + ) + if override is None: + return False + db.delete(override) + return True + + +def links_to_patents(links: list[schema.AuthorPatentLink]) -> list[model.PatentEntry]: + patents: list[model.PatentEntry] = [] + for link in links: + patent = model.PatentEntry.model_validate_json(link.patent_data) + patent.confidence_score = link.confidence_score + patent.match_signals = json.loads(link.match_signals or "[]") + patents.append(patent) + return patents + + +def apply_overrides( + patents: list[model.PatentEntry], + overrides: list[schema.AuthorPatentOverride], +) -> list[model.PatentEntry]: + excluded_ids = { + override.patent_id + for override in overrides + if override.action == "exclude" + } + result = [patent for patent in patents if patent.patent_id not in excluded_ids] + existing_ids = {patent.patent_id for patent in result} + + for override in overrides: + if override.action != "include" or override.patent_id in existing_ids: + continue + if not override.patent_data: + continue + patent = model.PatentEntry.model_validate_json(override.patent_data) + if "manual_include" not in patent.match_signals: + patent.match_signals.append("manual_include") + result.append(patent) + existing_ids.add(patent.patent_id) + + result.sort(key=lambda patent: patent.confidence_score, reverse=True) + return result diff --git a/service/src/main/inse/patents/service.py b/service/src/main/inse/patents/service.py index 7bdcbb82..2c41647e 100644 --- a/service/src/main/inse/patents/service.py +++ b/service/src/main/inse/patents/service.py @@ -3,8 +3,11 @@ """ REST API for patent matching by author. """ -from fastapi import APIRouter +from fastapi import APIRouter, Depends, HTTPException, Query +from sqlalchemy.orm import Session +from starlette.status import HTTP_404_NOT_FOUND +from .. import database from . import logic from . import model @@ -15,7 +18,54 @@ router = APIRouter(prefix="/api/inse-service/authors", tags=["Patents"]) "/{author_id}/patents", operation_id="getPatentsByAuthor", response_model=model.PatentsByAuthorResponse, - summary="Get patents matched to an author by name.", + summary="Get patents matched to an author.", ) -async def get_patents_by_author(author_id: str): - return await logic.get_patents_by_author_id(author_id) \ No newline at end of file +async def get_patents_by_author( + author_id: str, + refresh: bool = Query(False, description="Force a rebuild of the patent links."), + db: Session = Depends(database.get), +): + return await logic.get_patents_by_author_id(author_id, db, refresh=refresh) + + +@router.post( + "/{author_id}/patents/rebuild", + operation_id="rebuildPatentsByAuthor", + response_model=model.PatentsByAuthorResponse, + summary="Rebuild patent links for an author via the disambiguation pipeline.", +) +async def rebuild_patents_by_author( + author_id: str, + db: Session = Depends(database.get), +): + return await logic.rebuild_patents_for_author(author_id, db) + + +@router.put( + "/{author_id}/patents/{patent_id}/override", + operation_id="setPatentOverride", + response_model=model.PatentOverrideResponse, + summary="Manually include or exclude a patent for an author.", +) +async def set_patent_override( + author_id: str, + patent_id: str, + body: model.PatentOverrideRequest, + db: Session = Depends(database.get), +): + return await logic.set_patent_override(author_id, patent_id, body, db) + + +@router.delete( + "/{author_id}/patents/{patent_id}/override", + operation_id="clearPatentOverride", + status_code=204, + summary="Remove a manual patent override for an author.", +) +async def clear_patent_override( + author_id: str, + patent_id: str, + db: Session = Depends(database.get), +): + if not logic.clear_patent_override(author_id, patent_id, db): + raise HTTPException(status_code=HTTP_404_NOT_FOUND, detail="Override not found.") diff --git a/service/src/main/inse/patents/test_logic.py b/service/src/main/inse/patents/test_logic.py new file mode 100644 index 00000000..49a15ac1 --- /dev/null +++ b/service/src/main/inse/patents/test_logic.py @@ -0,0 +1,228 @@ +import json + +import httpx +import pytest +from sqlalchemy import create_engine +from sqlalchemy.orm import sessionmaker + +from inse import schema +from inse.patents import model +from inse.patents.author_profile import AuthorProfile, build_author_profile, extract_name_parts +from inse.patents.disambiguation import disambiguate_patent_group, score_patent +from inse.patents.elastic_search_client import PatentSearchClient, parse_epo_hits, parse_uspto_hits +from inse.patents import repository +from inse.models.author import Author +from inse.models.author_ids import AuthorIds +from inse.models.dehydrated_institution import DehydratedInstitution + + +@pytest.fixture +def anyio_backend(): + return "asyncio" + + +@pytest.fixture +def db_session(): + engine = create_engine("sqlite:///:memory:") + schema.Base.metadata.create_all(engine) + session = sessionmaker(bind=engine)() + try: + yield session + finally: + session.close() + + +def _sample_author() -> Author: + return Author( + id="https://openalex.org/A123", + display_name="Max Mustermann", + orcid="https://orcid.org/0000-0001-2345-6789", + ids=AuthorIds(openalex="https://openalex.org/A123", orcid="https://orcid.org/0000-0001-2345-6789"), + last_known_institutions=[ + DehydratedInstitution(display_name="University of Example"), + ], + topics=[], + affiliations=[], + ) + + +def test_extract_name_parts_strips_titles(): + first, last = extract_name_parts("Prof. Dr. Max Mustermann") + assert first == "Max" + assert last == "Mustermann" + + +def test_score_patent_accepts_full_name_and_institution(): + author = _sample_author() + profile = build_author_profile(author, "A123") + profile.coauthor_last_names.add("schmidt") + + patent = model.PatentEntry( + patent_id="EP100", + source="EPO", + title="Machine learning system", + inventors=["Max Mustermann", "Anna Schmidt"], + assignees=["University of Example Research"], + ) + + result = score_patent(patent, profile) + assert result.accepted is True + assert result.score >= 6 + assert "full_name_match" in result.signals + assert "institution_match" in result.signals + assert "coauthor_match" in result.signals + + +def test_disambiguate_patent_group_keeps_best_version(): + author = _sample_author() + profile = build_author_profile(author, "A123") + + weak = model.PatentEntry( + patent_id="EP100", + source="EPO", + inventors=["Mustermann"], + assignees=[], + ) + strong = model.PatentEntry( + patent_id="EP100", + source="EPO", + inventors=["Max Mustermann"], + assignees=["University of Example"], + ) + + best = disambiguate_patent_group([weak, strong], profile) + assert best is not None + assert best.inventors == ["Max Mustermann"] + assert best.confidence_score >= 6 + + +def test_repository_apply_overrides_include_and_exclude(db_session): + patent = model.PatentEntry( + patent_id="EP1", + source="EPO", + inventors=["Max Mustermann"], + confidence_score=8, + match_signals=["full_name_match"], + ) + repository.replace_links( + db_session, + "A123", + [patent], + author_name="Max Mustermann", + search_meta=model.PatentSearchMeta(matched_count=1), + ) + repository.upsert_override(db_session, "A123", "EP1", "exclude") + repository.upsert_override( + db_session, + "A123", + "EP2", + "include", + patent=model.PatentEntry( + patent_id="EP2", + source="EPO", + inventors=["Max Mustermann"], + confidence_score=10, + match_signals=["manual_include"], + ), + ) + db_session.commit() + + patents = repository.apply_overrides( + repository.links_to_patents(repository.get_links(db_session, "A123")), + repository.get_overrides(db_session, "A123"), + ) + patent_ids = {entry.patent_id for entry in patents} + assert "EP1" not in patent_ids + assert "EP2" in patent_ids + + +@pytest.mark.anyio +async def test_rebuild_author_patents_persists_links(db_session, monkeypatch): + from inse.patents.pipeline import rebuild_author_patents + + author = _sample_author() + + monkeypatch.setattr( + "inse.patents.pipeline._get_author", + lambda author_id: author, + ) + async def fake_enrich(profile, works_client=None): + return profile + + monkeypatch.setattr( + "inse.patents.pipeline.enrich_with_publication_context", + fake_enrich, + ) + + class FakeClient: + async def fetch_all_epo(self, profile): + return 1, [{ + "_source": { + "doc_number": "100", + "title_en": "Example patent", + "inventors_name": ["Max Mustermann"], + "applicants_name": ["University of Example"], + }, + }] + + async def fetch_all_uspto(self, profile): + return 0, [] + + response = await rebuild_author_patents("A123", db_session, client=FakeClient()) + assert response.patent_count == 1 + assert response.patents[0].patent_id == "EP100" + assert response.from_cache is False + assert response.search_meta is not None + assert response.search_meta.matched_count == 1 + + cached = repository.get_links(db_session, "A123") + assert len(cached) == 1 + + +def test_patent_search_client_builds_full_name_query(): + profile = AuthorProfile( + author_id="https://openalex.org/A123", + display_name="Max Mustermann", + first_name="Max", + last_name="Mustermann", + name_variants=["Max Mustermann", "Mustermann, Max"], + ) + client = PatentSearchClient(api_key="test-key") + query = client.epo_query_by_profile(profile, page=1, size=100) + assert query["from"] == 0 + assert query["size"] == 100 + should = query["query"]["bool"]["should"] + assert any( + clause.get("match", {}).get("inventors_name_text", {}).get("query") == "Max Mustermann" + for clause in should + ) + + +def test_parse_epo_and_uspto_hits(): + epo = parse_epo_hits({ + "hits": { + "hits": [{ + "_source": { + "doc_number": "123", + "title_en": "EPO title", + "inventors_name": ["Max Mustermann", None], + "date_publication_year": 2015, + }, + }], + }, + }) + uspto = parse_uspto_hits({ + "hits": { + "hits": [{ + "_source": { + "publication_number": "456", + "title": "US title", + "inventors_names": ["Max Mustermann"], + }, + }], + }, + }) + assert epo[0].patent_id == "EP123" + assert epo[0].inventors == ["Max Mustermann"] + assert epo[0].publication_year == "2015" + assert uspto[0].patent_id == "US456" diff --git a/service/src/main/inse/schema.py b/service/src/main/inse/schema.py index d03a1b33..b1b59c1b 100644 --- a/service/src/main/inse/schema.py +++ b/service/src/main/inse/schema.py @@ -4,7 +4,9 @@ This module defines the schema for the database used by the service using sql alchemy. """ -from sqlalchemy import String +from datetime import datetime + +from sqlalchemy import DateTime, String, Text, UniqueConstraint from sqlalchemy.orm import DeclarativeBase from sqlalchemy.orm import Mapped from sqlalchemy.orm import mapped_column @@ -22,3 +24,46 @@ class Item(Base): description: Mapped[str] = mapped_column(String(2000)) def __repr__(self) -> str: return f"Item(id={self.id!r}, name={self.name!r})" + + +class AuthorPatentLink(Base): + """Persisted author-to-patent match produced by the disambiguation pipeline.""" + __tablename__ = "author_patent_link" + __table_args__ = ( + UniqueConstraint("author_id", "patent_id", name="uq_author_patent_link"), + ) + + id: Mapped[int] = mapped_column(primary_key=True, autoincrement=True) + author_id: Mapped[str] = mapped_column(String(128), index=True) + patent_id: Mapped[str] = mapped_column(String(64), index=True) + source: Mapped[str] = mapped_column(String(16)) + confidence_score: Mapped[int] = mapped_column() + match_signals: Mapped[str] = mapped_column(Text) + patent_data: Mapped[str] = mapped_column(Text) + built_at: Mapped[datetime] = mapped_column(DateTime) + + +class AuthorPatentOverride(Base): + """Manual include/exclude overrides for author-patent links.""" + __tablename__ = "author_patent_override" + __table_args__ = ( + UniqueConstraint("author_id", "patent_id", name="uq_author_patent_override"), + ) + + id: Mapped[int] = mapped_column(primary_key=True, autoincrement=True) + author_id: Mapped[str] = mapped_column(String(128), index=True) + patent_id: Mapped[str] = mapped_column(String(64), index=True) + action: Mapped[str] = mapped_column(String(16)) + reason: Mapped[str | None] = mapped_column(String(500), nullable=True) + patent_data: Mapped[str | None] = mapped_column(Text, nullable=True) + created_at: Mapped[datetime] = mapped_column(DateTime) + + +class AuthorPatentBuildMeta(Base): + """Metadata for the last disambiguation run per author.""" + __tablename__ = "author_patent_build_meta" + + author_id: Mapped[str] = mapped_column(String(128), primary_key=True) + author_name: Mapped[str | None] = mapped_column(String(300), nullable=True) + built_at: Mapped[datetime] = mapped_column(DateTime) + search_meta: Mapped[str] = mapped_column(Text) diff --git a/webapp/src/app/api/api/patents.service.ts b/webapp/src/app/api/api/patents.service.ts index 880467cb..ef47c2cd 100644 --- a/webapp/src/app/api/api/patents.service.ts +++ b/webapp/src/app/api/api/patents.service.ts @@ -32,7 +32,22 @@ export interface PatentEntry { assignees: string[]; ipc: string[]; country: string | null; + orcid?: string | null; confidence_score: number; + match_signals?: string[]; +} + +export interface PatentSearchMeta { + epo_total_hits: number; + uspto_total_hits: number; + epo_returned_hits: number; + uspto_returned_hits: number; + matched_count: number; + epo_truncated: boolean; + uspto_truncated: boolean; + coauthor_signals: number; + publication_keywords: number; + rebuild_failed?: boolean; } export interface PatentsByAuthorResponse { @@ -40,6 +55,9 @@ export interface PatentsByAuthorResponse { author_name: string | null; patent_count: number; patents: PatentEntry[]; + from_cache?: boolean; + last_built_at?: string | null; + search_meta?: PatentSearchMeta | null; } @Injectable({ @@ -99,6 +117,7 @@ export class PatentsService extends BaseService { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean; + refresh?: boolean; }, ): Observable { if (authorId === null || authorId === undefined) { @@ -147,12 +166,18 @@ export class PatentsService extends BaseService { dataFormat: undefined, })}/patents`; + let localVarQueryParameters = new HttpParams({ encoder: new CustomHttpParameterCodec() }); + if (options?.refresh) { + localVarQueryParameters = localVarQueryParameters.set('refresh', 'true'); + } + const { basePath, withCredentials } = this.configuration; return this.httpClient.request( 'get', `${basePath}${localVarPath}`, { context: localVarHttpContext, + params: localVarQueryParameters, responseType: responseType_, ...(withCredentials ? { withCredentials } : {}), headers: localVarHeaders, @@ -164,4 +189,26 @@ export class PatentsService extends BaseService { }, ); } + + public rebuildPatentsByAuthor(authorId: string): Observable { + const localVarPath = `/api/inse-service/authors/${this.configuration.encodeParam({ + name: 'authorId', + value: authorId, + in: 'path', + style: 'simple', + explode: false, + dataType: 'string', + dataFormat: undefined, + })}/patents/rebuild`; + + const { basePath, withCredentials } = this.configuration; + return this.httpClient.post( + `${basePath}${localVarPath}`, + null, + { + ...(withCredentials ? { withCredentials } : {}), + headers: this.defaultHeaders, + }, + ); + } } diff --git a/webapp/src/app/modules/person-patents/person-patents.component.html b/webapp/src/app/modules/person-patents/person-patents.component.html index 8d083698..2ca11d99 100644 --- a/webapp/src/app/modules/person-patents/person-patents.component.html +++ b/webapp/src/app/modules/person-patents/person-patents.component.html @@ -20,6 +20,21 @@ {{ getUsptoCount() }} USPTO

+ @if (fromCache) { +

+ Aus Cache + @if (lastBuiltAt) { + · {{ formatDate(lastBuiltAt) }} + } +

+ } +
@@ -101,6 +116,17 @@
+ @if (selectedPatent.match_signals?.length) { +
+

Zuordnungs-Signale

+
    + @for (signal of selectedPatent.match_signals; track signal) { +
  • {{ formatSignal(signal) }}
  • + } +
+
+ } + @if (selectedPatent.abstract) {

Abstract

diff --git a/webapp/src/app/modules/person-patents/person-patents.component.scss b/webapp/src/app/modules/person-patents/person-patents.component.scss index 762cf458..f2c2c91b 100644 --- a/webapp/src/app/modules/person-patents/person-patents.component.scss +++ b/webapp/src/app/modules/person-patents/person-patents.component.scss @@ -14,6 +14,8 @@ margin-bottom: 8px; display: flex; gap: 24px; + align-items: center; + flex-wrap: wrap; .summary-line { margin: 0; @@ -21,6 +23,27 @@ color: #333; } + .summary-line--meta { + color: #666; + font-size: 13px; + } + + .rebuild-button { + margin-left: auto; + padding: 8px 14px; + border: 1px solid #bdd4ff; + border-radius: 20px; + background: #f0f6ff; + color: #0b63ce; + cursor: pointer; + font-size: 14px; + + &:disabled { + opacity: 0.6; + cursor: default; + } + } + .summary-label { color: #333; } @@ -263,6 +286,12 @@ color: #1e40af; font-size: 0.8rem; line-height: 1.3; + + &--signal { + background: #eef7ee; + border-color: #cfe6cf; + color: #2f6b2f; + } } .pagination { diff --git a/webapp/src/app/modules/person-patents/person-patents.component.ts b/webapp/src/app/modules/person-patents/person-patents.component.ts index 4d73e943..cfe874b6 100644 --- a/webapp/src/app/modules/person-patents/person-patents.component.ts +++ b/webapp/src/app/modules/person-patents/person-patents.component.ts @@ -1,11 +1,27 @@ import { Component, OnInit, inject } from '@angular/core'; import { CommonModule } from '@angular/common'; import { ActivatedRoute, Router } from '@angular/router'; -import { PatentsService, PatentEntry } from '../../api/api/patents.service'; +import { + PatentsService, + PatentEntry, + PatentSearchMeta, +} from '../../api/api/patents.service'; type SortMode = 'score' | 'date' | 'title'; type SourceFilter = 'all' | 'EPO' | 'USPTO'; +const SIGNAL_LABELS: Record = { + full_name_match: 'Vollständiger Name', + last_name_match: 'Nachname', + first_name_match: 'Vorname', + institution_match: 'Institution', + orcid_match: 'ORCID', + topic_match: 'Forschungsthema', + coauthor_match: 'Ko-Autor', + publication_topic_match: 'Publikations-Thema', + manual_include: 'Manuell hinzugefügt', +}; + @Component({ selector: 'app-person-patents', imports: [CommonModule], @@ -21,9 +37,14 @@ export class PersonPatentsComponent implements OnInit { filteredPatents: PatentEntry[] = []; authorName: string | null = null; selectedPatent: PatentEntry | null = null; + searchMeta: PatentSearchMeta | null = null; + fromCache = false; + lastBuiltAt: string | null = null; loading = true; + rebuilding = false; error = false; + authorId = ''; activeFilter: SourceFilter = 'all'; sortMode: SortMode = 'score'; @@ -33,7 +54,7 @@ export class PersonPatentsComponent implements OnInit { ngOnInit(): void { this.route.parent?.paramMap.subscribe((params) => { - const authorId = params.get('id') ?? ''; + this.authorId = params.get('id') ?? ''; const filterFromUrl = this.route.snapshot.queryParamMap.get('filter'); const sortFromUrl = this.route.snapshot.queryParamMap.get('sortBy'); @@ -45,23 +66,51 @@ export class PersonPatentsComponent implements OnInit { this.sortMode = sortFromUrl; } - if (authorId) { - this.patentsApi.getPatentsByAuthor(authorId, 'body').subscribe({ - next: (result) => { - this.patents = result.patents ?? []; - this.authorName = result.author_name ?? null; - this.applyFilter(); - this.loading = false; - }, - error: () => { - this.error = true; - this.loading = false; - }, - }); + if (this.authorId) { + this.loadPatents(); } }); } + loadPatents(refresh = false): void { + this.loading = true; + this.error = false; + + this.patentsApi + .getPatentsByAuthor(this.authorId, 'body', false, { + refresh, + transferCache: false, + }) + .subscribe({ + next: (result) => this.applyResult(result), + error: () => { + this.error = true; + this.loading = false; + }, + }); + } + + rebuildPatents(): void { + if (!this.authorId || this.rebuilding) { + return; + } + + this.rebuilding = true; + this.error = false; + + this.patentsApi.rebuildPatentsByAuthor(this.authorId).subscribe({ + next: (result) => { + this.applyResult(result); + this.rebuilding = false; + }, + error: () => { + this.error = true; + this.rebuilding = false; + this.loading = false; + }, + }); + } + setFilter(filter: SourceFilter): void { this.activeFilter = filter; this.selectedPage = 1; @@ -81,6 +130,26 @@ export class PersonPatentsComponent implements OnInit { this.updateQueryParams(); } + formatSignal(signal: string): string { + return SIGNAL_LABELS[signal] ?? signal; + } + + private applyResult(result: { + patents?: PatentEntry[]; + author_name?: string | null; + from_cache?: boolean; + last_built_at?: string | null; + search_meta?: PatentSearchMeta | null; + }): void { + this.patents = result.patents ?? []; + this.authorName = result.author_name ?? null; + this.fromCache = result.from_cache ?? false; + this.lastBuiltAt = result.last_built_at ?? null; + this.searchMeta = result.search_meta ?? null; + this.applyFilter(); + this.loading = false; + } + private applyFilter(): void { let patents = this.patents; From c298a388d0ab64c44f00a13734b047ae3e8cf20e Mon Sep 17 00:00:00 2001 From: taguesokoudjou Date: Mon, 15 Jun 2026 20:41:32 +0200 Subject: [PATCH 03/41] fix: resolve patents build error --- webapp/src/app/api/api/patents.service.ts | 32 +++++++------------ .../person-patents.component.html | 8 ----- .../person-patents.component.scss | 5 --- .../person-patents.component.ts | 6 ---- 4 files changed, 11 insertions(+), 40 deletions(-) diff --git a/webapp/src/app/api/api/patents.service.ts b/webapp/src/app/api/api/patents.service.ts index ef47c2cd..fcf20411 100644 --- a/webapp/src/app/api/api/patents.service.ts +++ b/webapp/src/app/api/api/patents.service.ts @@ -60,6 +60,13 @@ export interface PatentsByAuthorResponse { search_meta?: PatentSearchMeta | null; } +type GetPatentsByAuthorOptions = { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + refresh?: boolean; +}; + @Injectable({ providedIn: 'root', }) @@ -83,42 +90,25 @@ export class PatentsService extends BaseService { authorId: string, observe?: 'body', reportProgress?: boolean, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, + options?: GetPatentsByAuthorOptions, ): Observable; public getPatentsByAuthor( authorId: string, observe?: 'response', reportProgress?: boolean, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, + options?: GetPatentsByAuthorOptions, ): Observable>; public getPatentsByAuthor( authorId: string, observe?: 'events', reportProgress?: boolean, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, + options?: GetPatentsByAuthorOptions, ): Observable>; public getPatentsByAuthor( authorId: string, observe: any = 'body', reportProgress: boolean = false, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - refresh?: boolean; - }, + options?: GetPatentsByAuthorOptions, ): Observable { if (authorId === null || authorId === undefined) { throw new Error( diff --git a/webapp/src/app/modules/person-patents/person-patents.component.html b/webapp/src/app/modules/person-patents/person-patents.component.html index 2ca11d99..841c1ba1 100644 --- a/webapp/src/app/modules/person-patents/person-patents.component.html +++ b/webapp/src/app/modules/person-patents/person-patents.component.html @@ -20,14 +20,6 @@ {{ getUsptoCount() }} USPTO

- @if (fromCache) { -

- Aus Cache - @if (lastBuiltAt) { - · {{ formatDate(lastBuiltAt) }} - } -

- }
@@ -110,13 +110,6 @@ {{ maxYear }}
- -
- -
diff --git a/webapp/src/app/modules/person-overview/components/research-timeline/research-timeline.component.scss b/webapp/src/app/modules/person-overview/components/research-timeline/research-timeline.component.scss index e1b43d09..adf3af43 100644 --- a/webapp/src/app/modules/person-overview/components/research-timeline/research-timeline.component.scss +++ b/webapp/src/app/modules/person-overview/components/research-timeline/research-timeline.component.scss @@ -38,7 +38,7 @@ .timeline-header { display: grid; - grid-template-columns: minmax(260px, 1fr) auto minmax(260px, 1fr); + grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: flex-start; gap: 24px; margin-bottom: 28px; @@ -103,6 +103,7 @@ border: 1px solid #dbe5f6; border-radius: 10px; background: #fbfdff; + box-sizing: border-box; } .year-filter-top, diff --git a/webapp/src/app/modules/person-overview/person-overview.component.html b/webapp/src/app/modules/person-overview/person-overview.component.html index 3d3ffa2d..31ac9ae8 100644 --- a/webapp/src/app/modules/person-overview/person-overview.component.html +++ b/webapp/src/app/modules/person-overview/person-overview.component.html @@ -14,26 +14,6 @@ (topicSelect)="onTimelineTopicSelect($event)" (yearSelect)="onTimelineYearSelect($event)" (loadEarlierYears)="onTimelineLoadEarlierYears()"> -
- @if (loadingWordCloud) { - Themen laden ... - } @else if (wordCloudOptions && sliderMax > 5) { - {{ topN }} Themen -
-
- -
- } @else { - Themen - } -
-
@if (loadingWordCloud) {
Forschungsthemen werden geladen ...
diff --git a/webapp/src/app/modules/person-overview/person-overview.component.scss b/webapp/src/app/modules/person-overview/person-overview.component.scss index 7b40485a..7e0732ce 100644 --- a/webapp/src/app/modules/person-overview/person-overview.component.scss +++ b/webapp/src/app/modules/person-overview/person-overview.component.scss @@ -5,91 +5,6 @@ box-sizing: border-box; } -.word-cloud-slider-wrapper { - display: flex; - align-items: center; - justify-content: center; - gap: 0.75rem; - min-height: 86px; -} - -.slider-label { - font-size: 13px; - color: var(--sg-text-muted); - white-space: nowrap; - min-width: 4.5rem; - text-align: right; -} - -.word-cloud-slider { - --accent: #0057ff; - --range-value: 50%; - - position: relative; - width: 160px; - height: 22px; - - .range-track { - position: absolute; - top: 50%; - left: 0; - right: 0; - height: 5px; - transform: translateY(-50%); - border-radius: 999px; - background: linear-gradient( - to right, - var(--accent) 0%, - var(--accent) var(--range-value), - #d8e2f4 var(--range-value), - #d8e2f4 100% - ); - } - - input[type='range'] { - position: absolute; - inset: 0; - width: 100%; - height: 22px; - margin: 0; - appearance: none; - background: transparent; - - &::-webkit-slider-runnable-track, - &::-moz-range-track { - height: 5px; - background: transparent; - border: none; - } - - &::-webkit-slider-thumb { - appearance: none; - width: 15px; - height: 15px; - margin-top: -5px; - border: 2px solid #ffffff; - border-radius: 50%; - background: var(--accent); - box-shadow: - 0 0 0 1px #9ab7ff, - 0 2px 6px rgba(0, 87, 255, 0.22); - cursor: pointer; - } - - &::-moz-range-thumb { - width: 15px; - height: 15px; - border: 2px solid #ffffff; - border-radius: 50%; - background: var(--accent); - box-shadow: - 0 0 0 1px #9ab7ff, - 0 2px 6px rgba(0, 87, 255, 0.22); - cursor: pointer; - } - } -} - .word-cloud-view { min-height: 420px; } diff --git a/webapp/src/app/modules/person-overview/person-overview.component.ts b/webapp/src/app/modules/person-overview/person-overview.component.ts index 57d2275c..5c6c0420 100644 --- a/webapp/src/app/modules/person-overview/person-overview.component.ts +++ b/webapp/src/app/modules/person-overview/person-overview.component.ts @@ -54,32 +54,10 @@ export class PersonOverviewComponent implements OnInit { loadingWordCloud = false; wordCloudEmpty = false; - topN = 30; - sliderMax = 50; - - get sliderPercent(): string { - if (this.sliderMax <= 5) return '100%'; - return `${(((this.topN - 5) / (this.sliderMax - 5)) * 100).toFixed(1)}%`; - } - - onTopNChange(event: Event): void { - this.topN = Number((event.target as HTMLInputElement).value); - this.rebuildWordCloud(); - } - - private allTopicData: Array<{ + private rawTopicOccurrences: Array<{ name: string; - value: number; - topicId: string | undefined; - textStyle: { color: string; fontSize: number }; - emphasis: { - textStyle: { - fontSize: number; - color: string; - shadowBlur: number; - shadowColor: string; - }; - }; + topicId: string; + year: number | undefined; }> = []; ngOnInit(): void { @@ -123,6 +101,7 @@ export class PersonOverviewComponent implements OnInit { onTimelineYearRangeChange(range: TimelineYearRange): void { this.timelineStartYear = range.startYear; this.timelineEndYear = range.endYear; + this.rebuildWordCloud(); this.updateTimelineQueryParams( { @@ -308,30 +287,20 @@ export class PersonOverviewComponent implements OnInit { this.timelineEarlierYearsLoadFailed = false; } - private readonly blueShades = [ - '#0057ff', - '#1a6fff', - '#2952d9', - '#3d7cff', - '#1240cc', - '#5a90ff', - '#0044cc', - '#4d85ff', - '#0b4fe0', - '#2563eb', + private readonly timelineColors = [ + '#7255d9', + '#2678e8', + '#39a96b', + '#f59e0b', + '#e0527c', ]; - private topicColor(name: string): string { - const hash = name.split('').reduce((acc, c) => acc + c.charCodeAt(0), 0); - return this.blueShades[hash % this.blueShades.length]; - } - private loadWordCloud(authorId: string): void { if (!authorId || authorId === '0') { this.wordCloudOptions = null; this.wordCloudEmpty = false; this.loadingWordCloud = false; - this.allTopicData = []; + this.rawTopicOccurrences = []; return; } @@ -344,64 +313,28 @@ export class PersonOverviewComponent implements OnInit { .pipe(takeUntilDestroyed(this.destroyRef)) .subscribe({ next: (page) => { - const counts = new Map(); - const nameToId = new Map(); - + this.rawTopicOccurrences = []; page.elements?.forEach((work) => { + const year = work.publication_year ?? undefined; work.topics?.forEach((topic) => { if (topic.display_name && topic.id) { - counts.set( - topic.display_name, - (counts.get(topic.display_name) ?? 0) + 1, - ); - if (!nameToId.has(topic.display_name)) { - nameToId.set(topic.display_name, topic.id); - } + this.rawTopicOccurrences.push({ + name: topic.display_name, + topicId: topic.id, + year, + }); } }); }); - const allValues = Array.from(counts.values()); - const minVal = Math.min(...allValues); - const maxVal = Math.max(...allValues); - const computeSize = (v: number): number => - maxVal === minVal - ? 22 - : Math.round(12 + ((v - minVal) / (maxVal - minVal)) * (32 - 12)); - - this.allTopicData = Array.from(counts.entries()) - .sort((a, b) => b[1] - a[1]) - .map(([name, value]) => { - const fontSize = computeSize(value); - return { - name, - value, - topicId: nameToId.get(name), - textStyle: { color: this.topicColor(name), fontSize }, - emphasis: { - textStyle: { - fontSize: Math.round(fontSize * 1.1), - color: '#101a3d', - shadowBlur: 16, - shadowColor: 'rgba(0, 87, 255, 0.35)', - }, - }, - }; - }); - this.loadingWordCloud = false; - if (this.allTopicData.length === 0) { + if (this.rawTopicOccurrences.length === 0) { this.wordCloudEmpty = true; return; } - this.sliderMax = Math.min(50, this.allTopicData.length); - this.topN = Math.min(30, this.sliderMax); - - setTimeout(() => { - this.rebuildWordCloud(); - }); + setTimeout(() => this.rebuildWordCloud()); }, error: (error) => { console.error('Word cloud could not be loaded.', error); @@ -412,8 +345,57 @@ export class PersonOverviewComponent implements OnInit { } private rebuildWordCloud(): void { - const data = this.allTopicData.slice(0, this.topN); - if (data.length === 0) return; + const start = this.timelineStartYear; + const end = this.timelineEndYear; + const counts = new Map(); + const nameToId = new Map(); + + for (const occ of this.rawTopicOccurrences) { + if (start !== undefined && (occ.year === undefined || occ.year < start)) + continue; + if (end !== undefined && (occ.year === undefined || occ.year > end)) + continue; + counts.set(occ.name, (counts.get(occ.name) ?? 0) + 1); + if (!nameToId.has(occ.name)) nameToId.set(occ.name, occ.topicId); + } + + if (counts.size === 0) { + this.wordCloudOptions = null; + this.wordCloudEmpty = true; + return; + } + + this.wordCloudEmpty = false; + + const allValues = Array.from(counts.values()); + const minVal = Math.min(...allValues); + const maxVal = Math.max(...allValues); + const computeSize = (v: number): number => + maxVal === minVal + ? 22 + : Math.round(12 + ((v - minVal) / (maxVal - minVal)) * (32 - 12)); + + const sorted = Array.from(counts.entries()).sort((a, b) => b[1] - a[1]); + + const data = sorted.slice(0, 30).map(([name, value], i) => { + const fontSize = computeSize(value); + const color = this.timelineColors[i % this.timelineColors.length]; + return { + name, + value, + topicId: nameToId.get(name), + textStyle: { color, fontSize }, + emphasis: { + textStyle: { + fontSize: Math.round(fontSize * 1.1), + color, + shadowBlur: 16, + shadowColor: 'rgba(0, 87, 255, 0.35)', + }, + }, + }; + }); + // eslint-disable-next-line @typescript-eslint/no-explicit-any this.wordCloudOptions = { series: [ From 9ac9e1785e3894bce33ab0302264fe78ec6f5217 Mon Sep 17 00:00:00 2001 From: Roman Date: Mon, 15 Jun 2026 23:55:21 +0200 Subject: [PATCH 07/41] v1 --- .../main/inse/company_connections/__init__.py | 0 .../main/inse/company_connections/logic.py | 298 ++++++++ .../main/inse/company_connections/model.py | 44 ++ .../inse/company_connections/search_client.py | 141 ++++ .../main/inse/company_connections/service.py | 25 + service/src/main/inse/main.py | 2 + webapp/src/app/api/api/api.ts | 4 + .../api/api/company-connections.service.ts | 152 ++++ .../company-connections.serviceInterface.ts | 33 + .../src/app/api/model/company-connection.ts | 25 + .../api/model/company-connections-response.ts | 23 + webapp/src/app/api/model/matched-officer.ts | 21 + webapp/src/app/api/model/models.ts | 3 + webapp/src/app/app.routes.ts | 7 + .../person-company-connections.component.html | 260 +++++++ .../person-company-connections.component.scss | 572 +++++++++++++++ .../person-company-connections.component.ts | 654 ++++++++++++++++++ .../app/modules/person/person.component.ts | 6 +- webapp/tsconfig.json | 1 + 19 files changed, 2269 insertions(+), 2 deletions(-) create mode 100644 service/src/main/inse/company_connections/__init__.py create mode 100644 service/src/main/inse/company_connections/logic.py create mode 100644 service/src/main/inse/company_connections/model.py create mode 100644 service/src/main/inse/company_connections/search_client.py create mode 100644 service/src/main/inse/company_connections/service.py create mode 100644 webapp/src/app/api/api/company-connections.service.ts create mode 100644 webapp/src/app/api/api/company-connections.serviceInterface.ts create mode 100644 webapp/src/app/api/model/company-connection.ts create mode 100644 webapp/src/app/api/model/company-connections-response.ts create mode 100644 webapp/src/app/api/model/matched-officer.ts create mode 100644 webapp/src/app/modules/person-company-connections/person-company-connections.component.html create mode 100644 webapp/src/app/modules/person-company-connections/person-company-connections.component.scss create mode 100644 webapp/src/app/modules/person-company-connections/person-company-connections.component.ts diff --git a/service/src/main/inse/company_connections/__init__.py b/service/src/main/inse/company_connections/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/service/src/main/inse/company_connections/logic.py b/service/src/main/inse/company_connections/logic.py new file mode 100644 index 00000000..1ffea295 --- /dev/null +++ b/service/src/main/inse/company_connections/logic.py @@ -0,0 +1,298 @@ +import logging +from typing import Any + +import httpx +from fastapi import HTTPException +from starlette.status import HTTP_502_BAD_GATEWAY, HTTP_503_SERVICE_UNAVAILABLE + +from . import model +from .search_client import CompanyConnectionsSearchClient, MissingApiKeyError + +logger = logging.getLogger(__name__) + +UDE_OPENALEX_ID = "https://openalex.org/I62318514" +UDE_ROR = "https://ror.org/04mz5ra38" +UDE_DISPLAY_NAME = "University of Duisburg-Essen" + +MATCHING_METHOD = "exact_openalex_display_name_to_handelsregister_officer_name" + + +async def get_company_connections_by_author_id( + author_id: str, + client: CompanyConnectionsSearchClient | None = None, +) -> model.CompanyConnectionsResponse: + search_client = client or CompanyConnectionsSearchClient() + + try: + author_hit = await search_client.get_openalex_author(author_id) + except MissingApiKeyError as exc: + raise HTTPException( + status_code=HTTP_503_SERVICE_UNAVAILABLE, + detail="Elasticsearch is not configured.", + ) from exc + except httpx.HTTPError as exc: + logger.exception("OpenAlex author lookup failed for %s.", author_id) + raise HTTPException( + status_code=HTTP_502_BAD_GATEWAY, + detail="OpenAlex author lookup failed.", + ) from exc + + if author_hit is None: + raise HTTPException(status_code=404, detail=f"Author {author_id} not found.") + + source = author_hit.get("_source", {}) + display_name = _clean(source.get("display_name")) + institution_scope, matching_institutions = _get_ude_institution_scope(source) + is_ude_author = institution_scope is not None + + if not is_ude_author or not display_name: + return model.CompanyConnectionsResponse( + author_id=author_id, + display_name=display_name or None, + is_ude_author=is_ude_author, + institution_scope=institution_scope, + matching_institutions=matching_institutions, + matching_method=None, + company_count=0, + has_more_results=False, + common_name_warning=False, + connections=[], + ) + + try: + hr_response = await search_client.search_handelsregister_by_officer_name( + display_name + ) + except MissingApiKeyError as exc: + raise HTTPException( + status_code=HTTP_503_SERVICE_UNAVAILABLE, + detail="Elasticsearch is not configured.", + ) from exc + except httpx.HTTPError as exc: + logger.exception("Handelsregister lookup failed for %s.", display_name) + raise HTTPException( + status_code=HTTP_502_BAD_GATEWAY, + detail="Handelsregister lookup failed.", + ) from exc + + company_count, company_count_relation = _parse_total(hr_response) + connections = _parse_company_connections( + response=hr_response, + matched_person_name=display_name, + ) + + has_more_results = company_count_relation == "gte" or company_count > len( + connections + ) + common_name_warning = has_more_results or company_count > 3 + + return model.CompanyConnectionsResponse( + author_id=author_id, + display_name=display_name, + is_ude_author=True, + institution_scope=institution_scope, + matching_institutions=matching_institutions, + matching_method=MATCHING_METHOD, + company_count=company_count, + has_more_results=has_more_results, + common_name_warning=common_name_warning, + connections=connections, + ) + + +def _get_ude_institution_scope(source: dict[str, Any]) -> tuple[str | None, list[str]]: + institutions = source.get("last_known_institutions") or [] + + direct_matches: list[str] = [] + child_matches: list[str] = [] + + for institution in institutions: + if not isinstance(institution, dict): + continue + + institution_id = _clean(institution.get("id")) + ror = _clean(institution.get("ror")) + name = _clean(institution.get("display_name")) + lineage = institution.get("lineage") or [] + + label = name or institution_id or ror + + is_direct = ( + institution_id == UDE_OPENALEX_ID + or ror == UDE_ROR + or name == UDE_DISPLAY_NAME + ) + is_child = UDE_OPENALEX_ID in lineage and not is_direct + + if is_direct: + direct_matches.append(label) + elif is_child: + child_matches.append(label) + + if direct_matches: + return "direct_ude", sorted(set(direct_matches)) + + if child_matches: + return "child_of_ude", sorted(set(child_matches)) + + return None, [] + + +def _parse_total(response: dict[str, Any]) -> tuple[int, str]: + total = response.get("hits", {}).get("total", 0) + + if isinstance(total, dict): + return int(total.get("value") or 0), total.get("relation") or "eq" + + return int(total or 0), "eq" + + +def _parse_company_connections( + response: dict[str, Any], + matched_person_name: str, +) -> list[model.CompanyConnection]: + connections: list[model.CompanyConnection] = [] + + hits = response.get("hits", {}).get("hits", []) + + for hit in hits: + source = hit.get("_source", {}) + + matched_officers = _parse_inner_hit_officers(hit) + officers = _parse_source_officers( + source=source, + matched_person_name=matched_person_name, + ) + + connections.append( + model.CompanyConnection( + company_number=source.get("company_number"), + company_name=source.get("name"), + company_status=source.get("current_status"), + register_art=source.get("register_art"), + register_nummer=source.get("register_nummer"), + native_company_number=source.get("native_company_number"), + registrar=source.get("registrar"), + registered_office=source.get("registered_office"), + registered_address=source.get("registered_address"), + retrieved_at=source.get("retrieved_at"), + matched_officers=matched_officers, + officers=officers, + ) + ) + + return connections + + +def _parse_inner_hit_officers(hit: dict[str, Any]) -> list[model.MatchedOfficer]: + inner_hits = ( + hit.get("inner_hits", {}).get("officers", {}).get("hits", {}).get("hits", []) + ) + + officers: list[model.MatchedOfficer] = [] + + for inner_hit in inner_hits: + source = inner_hit.get("_source", {}) + officer_source = _normalize_officer_source(source) + + officers.append( + _to_officer( + officer_source, + is_matched_person=True, + ) + ) + + return _deduplicate_officers(officers) + + +def _parse_source_officers( + source: dict[str, Any], + matched_person_name: str, +) -> list[model.MatchedOfficer]: + raw_officers = source.get("officers") or [] + + if not isinstance(raw_officers, list): + return [] + + officers: list[model.MatchedOfficer] = [] + + for raw_officer in raw_officers: + if not isinstance(raw_officer, dict): + continue + + if _clean(raw_officer.get("type")) != "person": + continue + + officer_name = _clean(raw_officer.get("name")) + is_matched_person = officer_name == matched_person_name + + officers.append( + _to_officer( + raw_officer, + is_matched_person=is_matched_person, + ) + ) + + return _deduplicate_officers(officers) + + +def _to_officer( + source: dict[str, Any], + is_matched_person: bool, +) -> model.MatchedOfficer: + return model.MatchedOfficer( + name=_clean_or_none(source.get("name")), + firstname=_clean_or_none(source.get("firstname")), + lastname=_clean_or_none(source.get("lastname")), + city=_clean_or_none(source.get("city")), + position=_clean_or_none(source.get("position")), + start_date=_clean_or_none(source.get("start_date")), + type=_clean_or_none(source.get("type")), + flag=_clean_or_none(source.get("flag")), + is_matched_person=is_matched_person, + ) + + +def _deduplicate_officers( + officers: list[model.MatchedOfficer], +) -> list[model.MatchedOfficer]: + seen: set[tuple[str, str, str, str]] = set() + deduplicated: list[model.MatchedOfficer] = [] + + for officer in officers: + key = ( + officer.name or "", + officer.position or "", + officer.city or "", + officer.start_date or "", + ) + + if key in seen: + continue + + seen.add(key) + deduplicated.append(officer) + + return deduplicated + + +def _normalize_officer_source(source: dict[str, Any]) -> dict[str, Any]: + officers = source.get("officers") + + if isinstance(officers, dict): + return officers + + return source + + +def _clean_or_none(value: Any) -> str | None: + cleaned = _clean(value) + + return cleaned or None + + +def _clean(value: Any) -> str: + if value is None: + return "" + + return str(value).strip() diff --git a/service/src/main/inse/company_connections/model.py b/service/src/main/inse/company_connections/model.py new file mode 100644 index 00000000..dd7d28c0 --- /dev/null +++ b/service/src/main/inse/company_connections/model.py @@ -0,0 +1,44 @@ +from pydantic import BaseModel, Field + + +class MatchedOfficer(BaseModel): + name: str | None = None + firstname: str | None = None + lastname: str | None = None + city: str | None = None + position: str | None = None + start_date: str | None = None + type: str | None = None + flag: str | None = None + is_matched_person: bool = False + + +class CompanyConnection(BaseModel): + company_number: str | None = None + company_name: str | None = None + company_status: str | None = None + register_art: str | None = None + register_nummer: str | None = None + native_company_number: str | None = None + registrar: str | None = None + registered_office: str | None = None + registered_address: str | None = None + retrieved_at: str | None = None + matched_officers: list[MatchedOfficer] = Field(default_factory=list) + officers: list[MatchedOfficer] = Field(default_factory=list) + + +class CompanyConnectionsResponse(BaseModel): + author_id: str + display_name: str | None = None + is_ude_author: bool + institution_scope: str | None = None + matching_institutions: list[str] = Field(default_factory=list) + + matching_method: str | None = None + + company_count: int + has_more_results: bool + common_name_warning: bool + + connections: list[CompanyConnection] = Field(default_factory=list) diff --git a/service/src/main/inse/company_connections/search_client.py b/service/src/main/inse/company_connections/search_client.py new file mode 100644 index 00000000..80934c96 --- /dev/null +++ b/service/src/main/inse/company_connections/search_client.py @@ -0,0 +1,141 @@ +from typing import Any + +import httpx + +from .. import config + + +class MissingApiKeyError(Exception): + pass + + +class CompanyConnectionsSearchClient: + def __init__( + self, + base_url: str | None = None, + api_key: str | None = None, + openalex_index: str = "openalex-authors", + handelsregister_index: str = "handelsregister", + timeout: float = 30.0, + transport: httpx.AsyncBaseTransport | None = None, + ): + self.base_url = ( + base_url + or config.settings.elasticsearch_url + or config.settings.openalex_works_search_base_url + ).rstrip("/") + self.api_key = ( + api_key + if api_key is not None + else config.settings.elasticsearch_api_key + or config.settings.openalex_works_api_key + ) + self.openalex_index = openalex_index + self.handelsregister_index = handelsregister_index + self.timeout = timeout + self.transport = transport + + @staticmethod + def openalex_doc_id(author_id: str) -> str: + return author_id.strip().removeprefix("https://openalex.org/") + + async def get_openalex_author(self, author_id: str) -> dict[str, Any] | None: + if not self.api_key: + raise MissingApiKeyError("Elasticsearch API key is not configured.") + + doc_id = self.openalex_doc_id(author_id) + + async with httpx.AsyncClient( + base_url=self.base_url, + timeout=self.timeout, + transport=self.transport, + ) as client: + response = await client.get( + f"/{self.openalex_index}/_doc/{doc_id}", + headers={"Authorization": f"ApiKey {self.api_key}"}, + ) + + if response.status_code == 404: + return None + + response.raise_for_status() + return response.json() + + async def search_handelsregister_by_officer_name( + self, + officer_name: str, + size: int = 10000, + track_total_hits: bool = True, + ) -> dict[str, Any]: + if not self.api_key: + raise MissingApiKeyError("Elasticsearch API key is not configured.") + + payload = self.handelsregister_officer_name_query( + officer_name=officer_name, + size=size, + track_total_hits=track_total_hits, + ) + + async with httpx.AsyncClient( + base_url=self.base_url, + timeout=self.timeout, + transport=self.transport, + ) as client: + response = await client.post( + f"/{self.handelsregister_index}/_search", + headers={"Authorization": f"ApiKey {self.api_key}"}, + json=payload, + ) + response.raise_for_status() + return response.json() + + @staticmethod + def handelsregister_officer_name_query( + officer_name: str, + size: int, + track_total_hits: bool, + ) -> dict[str, Any]: + return { + "track_total_hits": track_total_hits, + "size": size, + "_source": [ + "company_number", + "name", + "current_status", + "registered_address", + "registered_office", + "registrar", + "register_art", + "register_nummer", + "native_company_number", + "retrieved_at", + "officers", + ], + "query": { + "nested": { + "path": "officers", + "query": { + "bool": { + "filter": [ + {"term": {"officers.type": "person"}}, + {"term": {"officers.name.keyword": officer_name}}, + ] + } + }, + "inner_hits": { + "size": 10, + "_source": [ + "officers.name", + "officers.firstname", + "officers.lastname", + "officers.city", + "officers.position", + "officers.start_date", + "officers.type", + "officers.flag", + ], + }, + } + }, + "sort": [{"company_number": {"order": "asc"}}], + } diff --git a/service/src/main/inse/company_connections/service.py b/service/src/main/inse/company_connections/service.py new file mode 100644 index 00000000..a739aa1c --- /dev/null +++ b/service/src/main/inse/company_connections/service.py @@ -0,0 +1,25 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- +""" +REST API for possible company connections of OpenAlex authors. +""" + +from fastapi import APIRouter + +from . import logic, model + +router = APIRouter( + prefix="/api/inse-service/authors", + tags=["Company Connections"], +) + + +@router.get( + "/{author_id}/company-connections", + operation_id="getCompanyConnectionsByAuthor", + response_model=model.CompanyConnectionsResponse, + response_model_exclude_none=True, + summary="Get possible company connections by OpenAlex author ID.", +) +async def get_company_connections_by_author(author_id: str): + return await logic.get_company_connections_by_author_id(author_id) diff --git a/service/src/main/inse/main.py b/service/src/main/inse/main.py index a1e4614e..c846bab1 100644 --- a/service/src/main/inse/main.py +++ b/service/src/main/inse/main.py @@ -16,6 +16,7 @@ from inse.topics.service import router as topics_service_router from inse.works.service import router as works_service_router from inse.persons.service import router as persons_service_router from inse.funders.service import router as funders_service_router +from inse.company_connections.service import router as company_connections_router from . import config from .service import router as service_router @@ -40,6 +41,7 @@ app.include_router(topics_service_router) app.include_router(works_service_router) app.include_router(persons_service_router) app.include_router(funders_service_router) +app.include_router(company_connections_router) app.include_router(service_router) app.include_router(account_router) diff --git a/webapp/src/app/api/api/api.ts b/webapp/src/app/api/api/api.ts index a51f46b8..bb98ffe2 100644 --- a/webapp/src/app/api/api/api.ts +++ b/webapp/src/app/api/api/api.ts @@ -25,6 +25,9 @@ export * from './topics.serviceInterface'; export * from './works.service'; import { WorksService } from './works.service'; export * from './works.serviceInterface'; +export * from './company-connections.service'; +import { CompanyConnectionsService } from './company-connections.service'; +export * from './company-connections.serviceInterface'; export const APIS = [ FundingService, INSEAccountServiceService, @@ -35,4 +38,5 @@ export const APIS = [ PersonsService, TopicsService, WorksService, + CompanyConnectionsService, ]; diff --git a/webapp/src/app/api/api/company-connections.service.ts b/webapp/src/app/api/api/company-connections.service.ts new file mode 100644 index 00000000..b21e9556 --- /dev/null +++ b/webapp/src/app/api/api/company-connections.service.ts @@ -0,0 +1,152 @@ +/** + * 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 { CompanyConnectionsResponse } from '../model/company-connections-response'; +// @ts-ignore +import { HTTPValidationError } from '../model/http-validation-error'; + +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; +import { BaseService } from '../api.base.service'; +import { CompanyConnectionsServiceInterface } from './company-connections.serviceInterface'; + +@Injectable({ + providedIn: 'root', +}) +export class CompanyConnectionsService + extends BaseService + implements CompanyConnectionsServiceInterface +{ + constructor( + protected httpClient: HttpClient, + @Optional() @Inject(BASE_PATH) basePath: string | string[], + @Optional() configuration?: Configuration, + ) { + super(basePath, configuration); + } + + /** + * Get possible company connections by OpenAlex author ID. + * @endpoint get /api/inse-service/authors/{author_id}/company-connections + * @param authorId + * @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, + observe?: 'body', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable; + public getCompanyConnectionsByAuthor( + authorId: string, + observe?: 'response', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public getCompanyConnectionsByAuthor( + authorId: string, + observe?: 'events', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public getCompanyConnectionsByAuthor( + authorId: string, + observe: any = 'body', + reportProgress: boolean = false, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable { + if (authorId === null || authorId === undefined) { + throw new Error( + 'Required parameter authorId was null or undefined when calling getCompanyConnectionsByAuthor.', + ); + } + + 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/inse-service/authors/${this.configuration.encodeParam({ name: 'authorId', value: authorId, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/company-connections`; + 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, + }, + ); + } +} diff --git a/webapp/src/app/api/api/company-connections.serviceInterface.ts b/webapp/src/app/api/api/company-connections.serviceInterface.ts new file mode 100644 index 00000000..f5001758 --- /dev/null +++ b/webapp/src/app/api/api/company-connections.serviceInterface.ts @@ -0,0 +1,33 @@ +/** + * 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. + */ +import { HttpHeaders } from '@angular/common/http'; + +import { Observable } from 'rxjs'; + +import { CompanyConnectionsResponse } from '../model/models'; +import { HTTPValidationError } from '../model/models'; + +import { Configuration } from '../configuration'; + +export interface CompanyConnectionsServiceInterface { + defaultHeaders: HttpHeaders; + configuration: Configuration; + + /** + * Get possible company connections by OpenAlex author ID. + * + * @endpoint get /api/inse-service/authors/{author_id}/company-connections + * @param authorId + */ + getCompanyConnectionsByAuthor( + authorId: string, + extraHttpRequestParams?: any, + ): Observable; +} diff --git a/webapp/src/app/api/model/company-connection.ts b/webapp/src/app/api/model/company-connection.ts new file mode 100644 index 00000000..0eb1fa5b --- /dev/null +++ b/webapp/src/app/api/model/company-connection.ts @@ -0,0 +1,25 @@ +/** + * 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. + */ +import { MatchedOfficer } from './matched-officer'; + +export interface CompanyConnection { + company_number?: string | null; + company_name?: string | null; + company_status?: string | null; + register_art?: string | null; + register_nummer?: string | null; + native_company_number?: string | null; + registrar?: string | null; + registered_office?: string | null; + registered_address?: string | null; + retrieved_at?: string | null; + matched_officers?: Array; + officers?: Array; +} diff --git a/webapp/src/app/api/model/company-connections-response.ts b/webapp/src/app/api/model/company-connections-response.ts new file mode 100644 index 00000000..0af604f9 --- /dev/null +++ b/webapp/src/app/api/model/company-connections-response.ts @@ -0,0 +1,23 @@ +/** + * 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. + */ +import { CompanyConnection } from './company-connection'; + +export interface CompanyConnectionsResponse { + author_id: string; + display_name?: string | null; + is_ude_author: boolean; + institution_scope?: string | null; + matching_institutions?: Array; + matching_method?: string | null; + company_count: number; + has_more_results: boolean; + common_name_warning: boolean; + connections?: Array; +} diff --git a/webapp/src/app/api/model/matched-officer.ts b/webapp/src/app/api/model/matched-officer.ts new file mode 100644 index 00000000..a9f00939 --- /dev/null +++ b/webapp/src/app/api/model/matched-officer.ts @@ -0,0 +1,21 @@ +/** + * 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. + */ + +export interface MatchedOfficer { + name?: string | null; + firstname?: string | null; + lastname?: string | null; + city?: string | null; + position?: string | null; + start_date?: string | null; + type?: string | null; + flag?: string | null; + is_matched_person?: boolean; +} diff --git a/webapp/src/app/api/model/models.ts b/webapp/src/app/api/model/models.ts index cd44ec17..6336ba04 100644 --- a/webapp/src/app/api/model/models.ts +++ b/webapp/src/app/api/model/models.ts @@ -84,3 +84,6 @@ export * from './work-topic-information'; export * from './work-topic-subfield'; export * from './works-filter-properties'; export * from './works-list-response'; +export * from './company-connection'; +export * from './company-connections-response'; +export * from './matched-officer'; diff --git a/webapp/src/app/app.routes.ts b/webapp/src/app/app.routes.ts index c19c5b60..a489b444 100644 --- a/webapp/src/app/app.routes.ts +++ b/webapp/src/app/app.routes.ts @@ -135,6 +135,13 @@ export const routes: Routes = [ (mod) => mod.PersonFundingComponent, ), }, + { + path: 'company-connections', + loadComponent: () => + import('./modules/person-company-connections/person-company-connections.component').then( + (mod) => mod.PersonCompanyConnectionsComponent, + ), + }, ], }, { diff --git a/webapp/src/app/modules/person-company-connections/person-company-connections.component.html b/webapp/src/app/modules/person-company-connections/person-company-connections.component.html new file mode 100644 index 00000000..7cb40edc --- /dev/null +++ b/webapp/src/app/modules/person-company-connections/person-company-connections.component.html @@ -0,0 +1,260 @@ +@if (loading) { +
+ + Verbindungen zu Unternehmen werden geladen ... +
+} @else if (error) { +
+ Verbindungen zu Unternehmen konnten nicht geladen werden. +
+} @else if (data && !data.is_ude_author) { +
+

Keine Unternehmenssuche verfügbar

+

Für diese Person wird aktuell keine Suche nach Unternehmen angezeigt.

+
+} @else if (data && connections.length === 0) { +
+

Keine Treffer im Handelsregister

+

+ Für diese Person wurden keine passenden Treffer im Handelsregister + gefunden. +

+
+} @else if (data) { +
+ + + @if (data.common_name_warning) { +
+ Für diesen Namen gibt es mehrere Treffer im Handelsregister. Die + Ergebnisse sollten besonders vorsichtig interpretiert werden. +
+ } + +
+
+ @if (graphOptions) { +
+
+ +
+ +
+
+
+ + @if (roleLegendItems.length > 0) { +
+ @for (item of roleLegendItems; track item.role) { + + + {{ item.role }} + + } +
+ } + + @if (connections.length > 10) { +

+ Der Graph zeigt die ersten 10 Unternehmen. Die vollständige + Liste ist rechts sichtbar. +

+ } +
+ } + +

+ {{ disclaimer }} +

+
+ +
+
+
+ Unternehmen + Rolle +
+ +
+ @for (connection of connections; track getCompanyKey(connection)) { + @let officer = getPrimaryOfficer(connection); + @let companyKey = getCompanyKey(connection); + @let relatedOfficers = getRelatedOfficers(connection); + +
+
+ + {{ connection.company_name || 'Unbekanntes Unternehmen' }} + + + + {{ officer?.position || '—' }} + +
+ + @if (companyKey === selectedCompanyKey) { +
+
+
+ Register + + {{ getCompanyRegisterLabel(connection) }} + +
+ +
+ Amtsgericht + + {{ getRegistrarLabel(connection) }} + +
+ +
+ Adresse + + {{ getCompanyAddressLabel(connection) }} + +
+ +
+ Unternehmensstatus + + {{ getCompanyStatusLabel(connection.company_status) }} + +
+ +
+ Gegenstand + + {{ getGegenstandLabel() }} + +
+
+ + @if (relatedOfficers.length > 0) { + + + @if (isCompanyOfficersExpanded(connection)) { + + } + } +
+ } +
+ } +
+
+
+
+
+} diff --git a/webapp/src/app/modules/person-company-connections/person-company-connections.component.scss b/webapp/src/app/modules/person-company-connections/person-company-connections.component.scss new file mode 100644 index 00000000..b051e2a2 --- /dev/null +++ b/webapp/src/app/modules/person-company-connections/person-company-connections.component.scss @@ -0,0 +1,572 @@ +$author-color: #5470c6; +$timeline-purple: #7255d9; +$timeline-purple-bg: #f6f0ff; + +$timeline-green-bg: #effaf3; +$timeline-green-border: #bdebcf; + +$timeline-orange-bg: #fff7e8; +$timeline-orange-border: #ffd796; +$timeline-orange-text: #c67500; + +$card-border: #dbe5f6; +$text-main: #07163d; +$text-muted: #64718f; + +:host { + display: block; +} + +.company-connections { + display: flex; + flex-direction: column; + gap: 16px; + padding: 20px 28px 32px; +} + +.page-header { + h2 { + margin: 0 0 6px; + color: $text-main; + font-size: 20px; + font-weight: 700; + line-height: 1.25; + } + + p { + margin: 0; + color: $text-muted; + font-size: 14px; + line-height: 1.4; + } +} + +.state { + display: flex; + align-items: center; + justify-content: center; + gap: 14px; + min-height: 220px; + color: $text-muted; + font-size: 14px; +} + +.state-error { + color: #b42318; +} + +.empty-state { + margin: 14px 28px; + padding: 18px 22px; + border: 1px solid $card-border; + border-radius: 16px; + background: #ffffff; + box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04); + + h2 { + margin: 0 0 6px; + color: $text-main; + font-size: 18px; + font-weight: 700; + line-height: 1.3; + } + + p { + margin: 0; + color: $text-muted; + font-size: 14px; + line-height: 1.4; + } +} + +.warning-box { + padding: 12px 14px; + border: 1px solid $timeline-orange-border; + border-radius: 12px; + background: $timeline-orange-bg; + color: $timeline-orange-text; + font-size: 14px; + line-height: 1.45; +} + +.main-layout { + display: grid; + grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); + gap: 18px; + height: 680px; + align-items: stretch; +} + +.graph-column, +.list-column { + min-width: 0; + min-height: 0; + display: flex; + flex-direction: column; +} + +.graph-card, +.connection-list { + border: 1px solid $card-border; + border-radius: 16px; + background: #ffffff; + box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04); + overflow: hidden; +} + +.graph-card { + flex: 1 1 auto; + min-height: 0; + display: flex; + flex-direction: column; +} + +.graph-toolbar { + flex: 0 0 auto; + padding: 12px 18px 8px; + border-bottom: 1px solid #edf2fb; +} + +.related-toggle { + display: inline-flex; + align-items: center; + gap: 10px; + max-width: 100%; + padding: 0; + border: 0; + background: transparent; + color: $text-main; + cursor: pointer; +} + +.toggle-switch { + position: relative; + flex: 0 0 auto; + width: 44px; + height: 24px; + border-radius: 999px; + background: #dbe5f6; + transition: background 160ms ease; +} + +.toggle-knob { + position: absolute; + top: 3px; + left: 3px; + width: 18px; + height: 18px; + border-radius: 999px; + background: #ffffff; + box-shadow: 0 1px 4px rgba(15, 23, 42, 0.24); + transition: transform 160ms ease; +} + +.related-toggle.active .toggle-switch { + background: #e95590; +} + +.related-toggle.active .toggle-knob { + transform: translateX(20px); +} + +.toggle-text { + min-width: 0; + color: $text-main; + font-size: 13px; + font-weight: 600; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; +} + +.graph-stage { + flex: 1 1 auto; + min-height: 0; + overflow: hidden; +} + +.graph { + width: 100%; + height: 100%; + min-height: 0; + overscroll-behavior: contain; + touch-action: none; + user-select: none; + cursor: grab; +} + +.graph:active { + cursor: grabbing; +} + +.role-legend { + flex: 0 0 auto; + display: flex; + flex-wrap: wrap; + align-items: center; + justify-content: center; + gap: 10px 18px; + padding: 10px 18px 6px; +} + +.role-legend-item { + display: inline-flex; + align-items: center; + gap: 8px; + min-width: 0; + color: $text-muted; + font-size: 12px; + font-weight: 600; +} + +.role-legend-line { + flex: 0 0 auto; + display: inline-block; + width: 24px; + height: 3px; + border-radius: 999px; +} + +.role-legend-text { + min-width: 0; + max-width: 260px; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; +} + +.graph-note { + flex: 0 0 auto; + margin: 0; + padding: 4px 18px 16px; + color: $text-muted; + font-size: 13px; + line-height: 1.35; + text-align: left; +} + +.disclaimer { + flex: 0 0 auto; + margin: 14px 0 0; + padding: 12px 14px; + border-left: 3px solid $timeline-purple; + border-radius: 8px; + background: $timeline-purple-bg; + color: $text-muted; + font-size: 13px; + line-height: 1.45; +} + +.connection-list { + flex: 1 1 auto; + min-height: 0; + display: flex; + flex-direction: column; +} + +.list-header, +.connection-row { + display: grid; + grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); + gap: clamp(10px, 1vw, 18px); + align-items: center; +} + +.list-header { + flex: 0 0 auto; + padding: 12px 16px; + border-bottom: 1px solid $card-border; + background: #fbfdff; + color: $text-muted; + font-size: 11px; + font-weight: 700; + text-transform: uppercase; + letter-spacing: 0.02em; + line-height: 1.3; +} + +.list-header span, +.connection-row span { + min-width: 0; +} + +.list-header span { + white-space: normal; +} + +.list-header span, +.connection-row span { + justify-self: start; + text-align: left; +} + +.list-scroll { + flex: 1 1 auto; + min-height: 0; + overflow-y: auto; +} + +.connection-item { + border-bottom: 1px solid #edf2fb; +} + +.connection-row { + padding: 14px 16px; + color: $text-main; + font-size: 14px; + cursor: pointer; + + &:hover { + background: #f8fbff; + } + + &.selected { + background: #f0f6ff; + box-shadow: inset 3px 0 0 $author-color; + } + + &.removed { + color: $text-muted; + } +} + +.company-name, +.role-value, +.detail-value, +.officer-name, +.officer-role { + display: block; + max-width: 100%; + min-width: 0; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; +} + +.company-name { + min-width: 0; +} + +.company-name { + font-weight: 700; +} + +.detail-value.detail-status { + display: block; + margin: 0; + padding: 0; + border: 0; + border-radius: 0; + background: transparent; + font-size: 13px; + font-weight: 700; + line-height: 1.35; +} + +.detail-value.detail-status--active { + color: #218354; +} + +.detail-value.detail-status--removed { + color: #6b7280; +} + +.role-value { + width: auto; + padding-left: 8px; + border-left: 3px solid; + color: $text-main; +} + +.connection-detail { + padding: 0 16px 16px; + background: #f8fbff; +} + +.detail-grid { + display: grid; + grid-template-columns: repeat(2, minmax(0, 1fr)); + gap: 10px 18px; + padding: 14px 0 4px; + border-top: 1px solid #e5edf8; +} + +.detail-field { + min-width: 0; +} + +.detail-field--wide { + grid-column: 1 / -1; +} + +.detail-field--address .detail-value, +.detail-field--wide .detail-value { + overflow: visible; + text-overflow: unset; + white-space: normal; +} + +.detail-label { + display: block; + margin-bottom: 3px; + color: $text-muted; + font-size: 11px; + font-weight: 700; + text-transform: uppercase; + letter-spacing: 0.02em; +} + +.detail-value { + color: $text-main; + font-size: 13px; + line-height: 1.35; +} + +.officers-toggle { + display: flex; + justify-content: space-between; + align-items: center; + width: 100%; + margin-top: 14px; + padding: 12px 0 0; + border: 0; + border-top: 1px solid #e5edf8; + background: transparent; + color: $text-muted; + font-size: 11px; + font-weight: 700; + text-align: left; + text-transform: uppercase; + letter-spacing: 0.02em; + cursor: pointer; +} + +.related-officers { + display: flex; + flex-direction: column; + gap: 6px; + margin: 8px 0 0; + padding: 0; + list-style: none; +} + +.related-officer { + display: grid; + grid-template-columns: minmax(0, 1fr) minmax(0, 0.72fr) 28px; + gap: 12px; + align-items: center; + padding-right: 34px; + color: $text-main; + font-size: 13px; +} + +.officer-name { + color: $text-main; + font-weight: 400; +} + +.officer-role { + display: block; + max-width: 100%; + min-width: 0; + padding-left: 10px; + border-left: 4px solid #8a95b3; + color: $text-main; + font-weight: 600; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; +} + +.officer-open-link { + --mdc-icon-button-state-layer-size: 28px; + --mat-icon-button-state-layer-size: 28px; + + justify-self: center; + display: inline-flex; + align-items: center; + justify-content: center; + width: 28px; + height: 28px; + padding: 0; + border-radius: 6px; + color: $author-color; + line-height: 1; +} + +.officer-open-link:hover { + background: rgba(47, 76, 190, 0.08); +} + +.officer-open-link .mat-icon { + width: 20px; + height: 20px; + font-size: 20px; + line-height: 20px; +} + +.officer-open-placeholder { + display: block; + width: 28px; + height: 28px; +} + +@media (max-width: 1450px) { + .main-layout { + grid-template-columns: 1fr; + height: auto; + } + + .graph-card { + height: 520px; + } + + .connection-list { + height: 520px; + } +} + +@media (max-width: 760px) { + .company-connections { + padding: 18px 16px 28px; + } + + .empty-state { + margin: 14px 16px; + } + + .graph-card { + height: 420px; + } + + .list-header { + display: none; + } + + .connection-row { + grid-template-columns: 1fr; + gap: 8px; + } + + .detail-grid { + grid-template-columns: 1fr; + } + + .related-officer { + grid-template-columns: minmax(0, 1fr) 28px; + gap: 6px 10px; + padding-right: 0; + } + + .officer-role { + grid-column: 1 / 2; + } + + .officer-open-link, + .officer-open-placeholder { + grid-column: 2 / 3; + grid-row: 1 / 3; + align-self: center; + justify-self: center; + } +} diff --git a/webapp/src/app/modules/person-company-connections/person-company-connections.component.ts b/webapp/src/app/modules/person-company-connections/person-company-connections.component.ts new file mode 100644 index 00000000..8e7b1c03 --- /dev/null +++ b/webapp/src/app/modules/person-company-connections/person-company-connections.component.ts @@ -0,0 +1,654 @@ +import { CommonModule, LocationStrategy } from '@angular/common'; +import { Component, ElementRef, OnInit, inject } from '@angular/core'; +import { MatButtonModule } from '@angular/material/button'; +import { MatIconModule } from '@angular/material/icon'; +import { MatProgressSpinnerModule } from '@angular/material/progress-spinner'; +import { ActivatedRoute, Router, RouterModule } from '@angular/router'; +import { EChartsOption } from 'echarts'; +import { NgxEchartsDirective } from 'ngx-echarts'; + +import { + CompanyConnection, + CompanyConnectionsResponse, + CompanyConnectionsService, + MatchedOfficer, +} from '../../api'; + +interface RoleLegendItem { + role: string; + color: string; +} + +@Component({ + selector: 'app-person-company-connections', + imports: [ + CommonModule, + MatProgressSpinnerModule, + NgxEchartsDirective, + MatButtonModule, + MatIconModule, + RouterModule, + ], + templateUrl: './person-company-connections.component.html', + styleUrl: './person-company-connections.component.scss', +}) +export class PersonCompanyConnectionsComponent implements OnInit { + private readonly route = inject(ActivatedRoute); + private readonly router = inject(Router); + private readonly locationStrategy = inject(LocationStrategy); + private readonly host = inject(ElementRef); + private readonly companyConnectionsApi = inject(CompanyConnectionsService); + + private readonly graphCompanyLimit = 10; + private readonly searchInstitutionName = 'University of Duisburg-Essen'; + + private readonly personCategoryIndex = 0; + private readonly activeCompanyCategoryIndex = 1; + private readonly removedCompanyCategoryIndex = 2; + private readonly registerPersonCategoryIndex = 3; + + private readonly personCategoryName = 'Person'; + private readonly activeCompanyCategoryName = 'Aktives Unternehmen'; + private readonly removedCompanyCategoryName = 'Gelöschtes Unternehmen'; + private readonly registerPersonCategoryName = 'Registerperson'; + + private readonly authorColor = '#7255d9'; + private readonly companyActiveColor = '#39a96b'; + private readonly companyRemovedColor = '#8a95b3'; + private readonly relatedPersonColor = '#4f8df5'; + private readonly fallbackRoleColor = '#8a95b3'; + + private readonly roleColors: Record = { + Geschäftsführer: '#2678e8', + Prokurist: '#39a96b', + 'Persönlich haftender Gesellschafter': '#7255d9', + Liquidator: '#f59e0b', + Inhaber: '#e0527c', + Vorstand: '#0f766e', + }; + + readonly disclaimer = + 'Die angezeigten Verbindungen basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten.'; + + loading = true; + error = false; + data: CompanyConnectionsResponse | null = null; + + graphOptions: EChartsOption | null = null; + roleLegendItems: RoleLegendItem[] = []; + + selectedCompanyKey: string | null = null; + expandedOfficersCompanyKey: string | null = null; + showRelatedPersons = false; + + get connections(): CompanyConnection[] { + return this.data?.connections ?? []; + } + + ngOnInit(): void { + this.route.parent?.paramMap.subscribe((params) => { + const authorId = params.get('id'); + + if (!authorId) { + this.loading = false; + this.error = true; + return; + } + + this.loadCompanyConnections(authorId); + }); + } + + getPrimaryOfficer(connection: CompanyConnection): MatchedOfficer | null { + return connection.matched_officers?.[0] ?? null; + } + + getRelatedOfficers(connection: CompanyConnection): MatchedOfficer[] { + const displayName = this.data?.display_name?.trim(); + + return (connection.officers ?? []).filter((officer) => { + const officerName = officer.name?.trim(); + + if (!officerName) { + return false; + } + + if (officer.is_matched_person) { + return false; + } + + return officerName !== displayName; + }); + } + + getCompanyStatusLabel(status?: string | null): string { + if (status === 'currently registered') { + return 'Aktiv'; + } + + if (status === 'removed') { + return 'Gelöscht'; + } + + return status || 'Unbekannt'; + } + + getCompanyKey(connection: CompanyConnection): string { + return ( + connection.company_number || + `${connection.company_name}-${connection.register_art}-${connection.register_nummer}` + ); + } + + getCompanyRegisterLabel(connection: CompanyConnection): string { + const parts = [connection.register_art, connection.register_nummer].filter( + Boolean, + ); + + return parts.length > 0 ? parts.join(' ') : '—'; + } + + getRegistrarLabel(connection: CompanyConnection): string { + return connection.registrar || '—'; + } + + getCompanyAddressLabel(connection: CompanyConnection): string { + return connection.registered_address || connection.registered_office || '—'; + } + + getGegenstandLabel(): string { + return 'Noch nicht verfügbar.'; + } + + getResultCountLabel(): string { + if (!this.data) { + return ''; + } + + const companyCount = this.data.company_count ?? this.connections.length; + + if (companyCount === 1) { + return '1 Treffer'; + } + + return `${companyCount} Treffer`; + } + + getRoleColor(role?: string | null): string { + if (!role) { + return this.fallbackRoleColor; + } + + return this.roleColors[role] ?? this.fallbackRoleColor; + } + + isCompanySelected(connection: CompanyConnection): boolean { + return this.selectedCompanyKey === this.getCompanyKey(connection); + } + + isCompanyOfficersExpanded(connection: CompanyConnection): boolean { + return this.expandedOfficersCompanyKey === this.getCompanyKey(connection); + } + + selectCompany(connection: CompanyConnection): void { + const companyKey = this.getCompanyKey(connection); + + if (this.selectedCompanyKey === companyKey) { + this.selectedCompanyKey = null; + this.expandedOfficersCompanyKey = null; + return; + } + + this.selectedCompanyKey = companyKey; + this.expandedOfficersCompanyKey = null; + } + + toggleCompanyOfficers(connection: CompanyConnection, event: Event): void { + event.stopPropagation(); + + const companyKey = this.getCompanyKey(connection); + + if (this.expandedOfficersCompanyKey === companyKey) { + this.expandedOfficersCompanyKey = null; + return; + } + + this.expandedOfficersCompanyKey = companyKey; + } + + toggleRelatedPersons(): void { + this.showRelatedPersons = !this.showRelatedPersons; + this.refreshGraph(); + } + + onGraphClick(event: any): void { + if (event.dataType !== 'node') { + return; + } + + if (event.data?.category === this.personCategoryIndex) { + return; + } + + if (this.isCompanyNodeCategory(event.data?.category)) { + this.selectedCompanyKey = event.data.id; + this.expandedOfficersCompanyKey = null; + this.scrollSelectedCompanyIntoView(); + return; + } + + if (event.data?.category === this.registerPersonCategoryIndex) { + this.openPersonSearchInNewTab(event.data.searchName || event.data.name); + } + } + + onGraphWheel(event: WheelEvent): void { + event.preventDefault(); + } + + private isCompanyNodeCategory(category: unknown): boolean { + return ( + category === this.activeCompanyCategoryIndex || + category === this.removedCompanyCategoryIndex + ); + } + + private loadCompanyConnections(authorId: string): void { + this.loading = true; + this.error = false; + this.data = null; + this.graphOptions = null; + this.roleLegendItems = []; + this.selectedCompanyKey = null; + this.expandedOfficersCompanyKey = null; + this.showRelatedPersons = false; + + this.companyConnectionsApi + .getCompanyConnectionsByAuthor(authorId) + .subscribe({ + next: (response) => { + this.data = response; + this.graphOptions = this.createGraphOptions(response); + this.loading = false; + }, + error: (error) => { + console.error('Failed to load company connections:', error); + this.error = true; + this.loading = false; + }, + }); + } + + private refreshGraph(): void { + if (!this.data) { + this.graphOptions = null; + this.roleLegendItems = []; + return; + } + + this.graphOptions = this.createGraphOptions(this.data); + } + + private createGraphOptions( + response: CompanyConnectionsResponse, + ): EChartsOption | null { + const connections = response.connections ?? []; + + if (!response.is_ude_author || connections.length === 0) { + return null; + } + + const graphConnections = connections.slice(0, this.graphCompanyLimit); + + this.roleLegendItems = this.createRoleLegendItems(graphConnections); + + const personNodeId = `author-${response.author_id}`; + + const nodes: any[] = [ + { + id: personNodeId, + name: response.display_name || 'Person', + category: this.personCategoryIndex, + symbol: 'circle', + symbolSize: 44, + itemStyle: { + color: this.authorColor, + }, + label: { + show: true, + position: 'bottom', + fontWeight: 700, + color: '#07163d', + }, + }, + ]; + + const links: any[] = []; + + for (const connection of graphConnections) { + const companyKey = this.getCompanyKey(connection); + const isRemoved = connection.company_status === 'removed'; + + nodes.push({ + id: companyKey, + name: connection.company_name || 'Unbekanntes Unternehmen', + category: isRemoved + ? this.removedCompanyCategoryIndex + : this.activeCompanyCategoryIndex, + symbol: 'roundRect', + symbolSize: [48, 34], + itemStyle: { + color: isRemoved ? this.companyRemovedColor : this.companyActiveColor, + }, + label: { + show: true, + position: 'bottom', + color: '#07163d', + width: 125, + overflow: 'truncate', + }, + }); + + const officer = this.getPrimaryOfficer(connection); + const role = officer?.position || 'Unbekannte Rolle'; + const color = this.getRoleColor(officer?.position); + + links.push({ + source: personNodeId, + target: companyKey, + value: role, + lineStyle: { + color, + width: 2.4, + opacity: 1, + }, + }); + + if (this.showRelatedPersons) { + const relatedOfficers = this.getRelatedOfficers(connection); + + relatedOfficers.forEach((relatedOfficer, index) => { + const relatedOfficerId = `officer-${companyKey}-${index}`; + const relatedRole = relatedOfficer.position || 'Unbekannte Rolle'; + + nodes.push({ + id: relatedOfficerId, + name: relatedOfficer.name || 'Registerperson', + searchName: relatedOfficer.name, + role: relatedRole, + category: this.registerPersonCategoryIndex, + symbol: 'circle', + symbolSize: 28, + itemStyle: { + color: this.relatedPersonColor, + }, + label: { + show: true, + position: 'bottom', + color: '#07163d', + width: 110, + overflow: 'truncate', + fontSize: 11, + }, + }); + + links.push({ + source: companyKey, + target: relatedOfficerId, + value: relatedRole, + lineStyle: { + color: this.getRoleColor(relatedOfficer.position), + width: 1.8, + opacity: 1, + }, + }); + }); + } + } + + const graphSeries: any = { + type: 'graph', + layout: 'force', + roam: true, + roamTrigger: 'global', + animation: false, + top: 24, + left: 20, + right: 20, + bottom: 64, + data: nodes, + links, + categories: this.createGraphCategories(), + force: { + repulsion: this.showRelatedPersons ? 760 : 620, + edgeLength: this.showRelatedPersons ? 145 : 170, + gravity: 0.08, + }, + lineStyle: { + curveness: 0.05, + opacity: 1, + }, + edgeSymbol: ['none', 'none'], + emphasis: { + focus: 'adjacency', + lineStyle: { + width: 3.5, + }, + }, + }; + + return { + legend: { + data: this.createNodeLegendData(graphConnections), + bottom: 8, + left: 'center', + orient: 'horizontal', + itemGap: 18, + itemWidth: 18, + itemHeight: 14, + selectedMode: false, + textStyle: { + color: '#3f4659', + fontSize: 13, + fontWeight: 500, + }, + }, + tooltip: { + trigger: 'item', + formatter: (params: any) => { + if (params.dataType === 'node') { + if (params.data?.category === this.registerPersonCategoryIndex) { + return params.data?.role + ? `${params.data.name}
Rolle: ${params.data.role}` + : params.data?.name; + } + + return params.data?.name ?? ''; + } + + if (params.dataType === 'edge') { + return params.data?.value + ? `Rolle: ${params.data.value}` + : 'Verbindung'; + } + + return ''; + }, + }, + series: [graphSeries], + } as EChartsOption; + } + + private createGraphCategories(): any[] { + return [ + { + name: this.personCategoryName, + symbol: 'circle', + itemStyle: { + color: this.authorColor, + }, + }, + { + name: this.activeCompanyCategoryName, + symbol: 'roundRect', + itemStyle: { + color: this.companyActiveColor, + }, + }, + { + name: this.removedCompanyCategoryName, + symbol: 'roundRect', + itemStyle: { + color: this.companyRemovedColor, + }, + }, + { + name: this.registerPersonCategoryName, + symbol: 'circle', + itemStyle: { + color: this.relatedPersonColor, + }, + }, + ]; + } + + private createNodeLegendData(connections: CompanyConnection[]): any[] { + const hasActiveCompany = connections.some( + (connection) => connection.company_status !== 'removed', + ); + const hasRemovedCompany = connections.some( + (connection) => connection.company_status === 'removed', + ); + + const legendData = [ + { + name: this.personCategoryName, + icon: 'circle', + itemStyle: { + color: this.authorColor, + }, + }, + ]; + + if (hasActiveCompany) { + legendData.push({ + name: this.activeCompanyCategoryName, + icon: 'roundRect', + itemStyle: { + color: this.companyActiveColor, + }, + }); + } + + if (hasRemovedCompany) { + legendData.push({ + name: this.removedCompanyCategoryName, + icon: 'roundRect', + itemStyle: { + color: this.companyRemovedColor, + }, + }); + } + + if (this.showRelatedPersons) { + legendData.push({ + name: this.registerPersonCategoryName, + icon: 'circle', + itemStyle: { + color: this.relatedPersonColor, + }, + }); + } + + return legendData; + } + + private createRoleLegendItems( + connections: CompanyConnection[], + ): RoleLegendItem[] { + const usedRoles = new Set(); + + for (const connection of connections) { + const role = this.getPrimaryOfficer(connection)?.position; + + if (role) { + usedRoles.add(role); + } + + if (this.showRelatedPersons) { + for (const officer of this.getRelatedOfficers(connection)) { + if (officer.position) { + usedRoles.add(officer.position); + } + } + } + } + + return [...usedRoles] + .sort((a, b) => a.localeCompare(b)) + .map((role) => ({ + role, + color: this.getRoleColor(role), + })); + } + + openPersonSearchInNewTab(name?: string | null): void { + const url = this.createPersonSearchUrl(name); + + if (!url) { + return; + } + + window.open(url, '_blank', 'noopener,noreferrer'); + } + + private createPersonSearchUrl(name?: string | null): string | null { + const query = name?.trim(); + + if (!query) { + return null; + } + + const urlTree = this.router.createUrlTree(['/persons'], { + queryParams: this.getPersonSearchQueryParams(query), + }); + + const internalUrl = this.router.serializeUrl(urlTree); + + return this.locationStrategy.prepareExternalUrl(internalUrl); + } + + getPersonSearchQueryParams(name?: string | null): { + institutionName: string; + query: string; + page: number; + } { + return { + institutionName: this.searchInstitutionName, + query: name?.trim() ?? '', + page: 1, + }; + } + + private scrollSelectedCompanyIntoView(): void { + window.setTimeout(() => { + if (!this.selectedCompanyKey) { + return; + } + + const rows = Array.from( + this.host.nativeElement.querySelectorAll('.connection-row'), + ) as HTMLElement[]; + + for (const row of rows) { + if (row.dataset['companyKey'] === this.selectedCompanyKey) { + row.scrollIntoView({ + block: 'nearest', + behavior: 'smooth', + }); + return; + } + } + }); + } +} diff --git a/webapp/src/app/modules/person/person.component.ts b/webapp/src/app/modules/person/person.component.ts index ad9cf516..a451093c 100644 --- a/webapp/src/app/modules/person/person.component.ts +++ b/webapp/src/app/modules/person/person.component.ts @@ -139,7 +139,9 @@ export class PersonComponent { ); readonly worksCount = computed(() => this.person()?.works_count ?? null); readonly citedByCount = computed(() => this.person()?.cited_by_count ?? null); - readonly h_index = computed(() => this.person()?.summary_stats?.h_index ?? null); + readonly h_index = computed( + () => this.person()?.summary_stats?.h_index ?? null, + ); readonly orcid = computed(() => { const rawOrcid = this.getId('orcid'); if (!rawOrcid) { @@ -171,7 +173,7 @@ export class PersonComponent { { label: 'Projekte', path: 'projects', disabled: true }, { label: 'Publikationen', path: 'publications', disabled: false }, { label: 'Netzwerk', path: 'network', disabled: false }, - { label: 'Gründungen', path: 'foundings', disabled: true }, + { label: 'Unternehmen', path: 'company-connections', disabled: false }, { label: 'Förderungen', path: 'funding', disabled: false }, ]; diff --git a/webapp/tsconfig.json b/webapp/tsconfig.json index 84fdc5b7..67e4dfe6 100644 --- a/webapp/tsconfig.json +++ b/webapp/tsconfig.json @@ -3,6 +3,7 @@ "compileOnSave": false, "compilerOptions": { "outDir": "./dist/out-tsc", + "rootDir": "./src", "strict": true, "noImplicitOverride": true, "noPropertyAccessFromIndexSignature": true, From 563ade40e9ac2a9d267f1ad2946171774f319cdf Mon Sep 17 00:00:00 2001 From: Roman Date: Mon, 15 Jun 2026 23:58:26 +0200 Subject: [PATCH 08/41] sample --- openalex_ude_hr_sample.csv | 1360 ++++++++++++++++++++++++++++++++++++ 1 file changed, 1360 insertions(+) create mode 100644 openalex_ude_hr_sample.csv diff --git a/openalex_ude_hr_sample.csv b/openalex_ude_hr_sample.csv new file mode 100644 index 00000000..807b8407 --- /dev/null +++ b/openalex_ude_hr_sample.csv @@ -0,0 +1,1360 @@ +openalex_author_id,openalex_source_id,display_name,orcid,works_count,cited_by_count,institution_scope,matching_institution,company_count,roles,statuses,common_name_warning,warning_de +A5040796987,https://openalex.org/A5040796987,Ahmet Karkar,https://orcid.org/0000-0003-3338-5202,3,30,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:2,currently registered:1,no, +A5119657791,https://openalex.org/A5119657791,Aleksandar Milosevic,,1,0,direct_ude,University of Duisburg-Essen,1,Persönlich haftender Gesellschafter:1,currently registered:1,no, +A5114121778,https://openalex.org/A5114121778,Alexander Eitner,,1,7,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,removed:1,no, +A5038673553,https://openalex.org/A5038673553,Alexander Hoppe,https://orcid.org/0000-0001-6710-788X,29,142,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,removed:1,no, +A5048333515,https://openalex.org/A5048333515,Alexander Porsch,,4,27,direct_ude,University of Duisburg-Essen,1,Inhaber:1,currently registered:1,no, +A5086212982,https://openalex.org/A5086212982,Alexander Possberg,https://orcid.org/0000-0002-9149-1938,11,33,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:2,removed:1,no, +A5042180141,https://openalex.org/A5042180141,Alexander Weitz,,7,234,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5015160914,https://openalex.org/A5015160914,Alexandra Beckmann,,1,87,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5006118048,https://openalex.org/A5006118048,Alexandra Heinrich,,4,21,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,removed:1,no, +A5102559736,https://openalex.org/A5102559736,Alina Becker,,1,5,direct_ude,University of Duisburg-Essen,1,Prokurist:1,currently registered:1,no, +A5095550948,https://openalex.org/A5095550948,Andrea Budde,,1,0,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5041659654,https://openalex.org/A5041659654,Andrea Kiesewetter,https://orcid.org/0000-0002-7805-9294,1,12,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,removed:1,no, +A5094255071,https://openalex.org/A5094255071,Andrea van Wasen,,1,13,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5082709720,https://openalex.org/A5082709720,Andreas Clément,,9,0,child_of_ude,Institut für Energie- und Umwelttechnik,1,Prokurist:1,removed:1,no, +A5123856046,https://openalex.org/A5123856046,Andreas Metzger,,2,0,direct_ude,University of Duisburg-Essen,1,Persönlich haftender Gesellschafter:1,currently registered:1,no, +A5124394183,https://openalex.org/A5124394183,Andreas Metzger,,1,0,direct_ude,University of Duisburg-Essen,1,Persönlich haftender Gesellschafter:1,currently registered:1,no, +A5102482202,https://openalex.org/A5102482202,Andreas Mueller,,2,78,direct_ude,University of Duisburg-Essen,1,Prokurist:1,currently registered:1,no, +A5111642526,https://openalex.org/A5111642526,Andreas Mueller,,2,17,direct_ude,University of Duisburg-Essen,1,Prokurist:1,currently registered:1,no, +A5055408774,https://openalex.org/A5055408774,Andreas Ranft,https://orcid.org/0000-0003-4424-7569,151,3148,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5121527342,https://openalex.org/A5121527342,Andreas Ranft,,1,0,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5040303703,https://openalex.org/A5040303703,Andreas Scharff,,22,435,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5045510897,https://openalex.org/A5045510897,Andreas Smolka,,1,24,child_of_ude,Institut für Energie- und Umwelttechnik,1,Geschäftsführer:1,removed:1,no, +A5000133541,https://openalex.org/A5000133541,Andreas Tacke,,2,4,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5050109106,https://openalex.org/A5050109106,Andreas Unterberger,https://orcid.org/0000-0002-5216-1514,22,279,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:2; Prokurist:2,currently registered:1,no, +A5070284444,https://openalex.org/A5070284444,Andreas Wohlleben,,1,52,child_of_ude,Institut für Energie- und Umwelttechnik,1,Geschäftsführer:1,currently registered:1,no, +A5043288842,https://openalex.org/A5043288842,Andrey Krekhov,https://orcid.org/0000-0003-0637-6263,33,335,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1; Liquidator:1,currently registered:1,no, +A5045504111,https://openalex.org/A5045504111,Anette Reinders,,1,52,direct_ude,University of Duisburg-Essen,1,Prokurist:1,removed:1,no, +A5024125758,https://openalex.org/A5024125758,Angelika Pietsch,,17,1452,direct_ude,University of Duisburg-Essen,1,Prokurist:2,currently registered:1,no, +A5128214934,https://openalex.org/A5128214934,Anh Duc Vu,,2,0,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5052830111,https://openalex.org/A5052830111,Anita Winter,,48,550,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5021812220,https://openalex.org/A5021812220,Anja Stecker,,1,12,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5078754334,https://openalex.org/A5078754334,Anja Stein,https://orcid.org/0000-0002-0497-4609,125,1780,direct_ude,University of Duisburg-Essen,1,Prokurist:1,currently registered:1,no, +A5000474957,https://openalex.org/A5000474957,Anke Kramer,,2,14,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5029441982,https://openalex.org/A5029441982,Anna Michel,https://orcid.org/0000-0003-1420-5878,40,1684,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:2,currently registered:1,no, +A5111354878,https://openalex.org/A5111354878,Anna Volz,https://orcid.org/0000-0003-0444-1893,30,127,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5023261750,https://openalex.org/A5023261750,Anna Zeller,,1,27,direct_ude,University of Duisburg-Essen,1,Inhaber:2,currently registered:1,no, +A5106082671,https://openalex.org/A5106082671,Anne Pfeiffer,,1,29,direct_ude,University of Duisburg-Essen,1,Prokurist:1,removed:1,no, +A5110587738,https://openalex.org/A5110587738,Annette Förster,,50,76,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5076856973,https://openalex.org/A5076856973,Annika Becker,https://orcid.org/0000-0003-2374-6502,4,5,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5055641653,https://openalex.org/A5055641653,Annika Lenkeit,https://orcid.org/0000-0002-9698-4723,13,95,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,removed:1,no, +A5113291297,https://openalex.org/A5113291297,Anto Filipovic,,1,7,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5078752887,https://openalex.org/A5078752887,Arne Sönnichsen,https://orcid.org/0000-0002-4921-3758,13,10,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5103427814,https://openalex.org/A5103427814,Barbara Vogt,,1,3,direct_ude,University of Duisburg-Essen,1,Inhaber:1,currently registered:1,no, +A5123684310,https://openalex.org/A5123684310,Bastian Wegner,,1,0,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,removed:1,no, +A5003893010,https://openalex.org/A5003893010,Beate Römer,,3,46,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,removed:1,no, +A5007119880,https://openalex.org/A5007119880,Benedikt Frank,https://orcid.org/0000-0001-8837-9489,123,1863,direct_ude,University of Duisburg-Essen,1,Prokurist:1,currently registered:1,no, +A5020852620,https://openalex.org/A5020852620,Benjamin Kersten,,2,7,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1; Liquidator:1,currently registered:1,no, +A5048760511,https://openalex.org/A5048760511,Benjamin Scheller,,3,14,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1; Prokurist:1,currently registered:1,no, +A5128122987,https://openalex.org/A5128122987,Bernd Ringel,,1,0,direct_ude,University of Duisburg-Essen,1,Persönlich haftender Gesellschafter:1,currently registered:1,no, +A5040027495,https://openalex.org/A5040027495,Bernd Schultze,,26,107,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,removed:1,no, +A5047506887,https://openalex.org/A5047506887,Bettina Binder,,3,101,direct_ude,University of Duisburg-Essen,1,Prokurist:2,currently registered:1,no, +A5099050002,https://openalex.org/A5099050002,Bianca Nowak,https://orcid.org/0000-0001-5858-6735,6,5,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:2,removed:1,no, +A5008086801,https://openalex.org/A5008086801,Bianca Reitberger,,1,6,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5042450540,https://openalex.org/A5042450540,Birgit Kremer,,7,9,direct_ude,University of Duisburg-Essen,1,Prokurist:1,currently registered:1,no, +A5058122544,https://openalex.org/A5058122544,Birgit Maranca-Hüwel,,1,7,direct_ude,University of Duisburg-Essen,1,Prokurist:1,currently registered:1,no, +A5094640509,https://openalex.org/A5094640509,Brigitte Mai,,1,0,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1; Liquidator:1,removed:1,no, +A5062262517,https://openalex.org/A5062262517,Brunhilde Krüger,,4,77,direct_ude,University of Duisburg-Essen,1,Persönlich haftender Gesellschafter:1,currently registered:1,no, +A5090497666,https://openalex.org/A5090497666,Bruno Albrecht,,13,309,direct_ude,University of Duisburg-Essen,1,Prokurist:1,removed:1,no, +A5109563230,https://openalex.org/A5109563230,Bruno Schramm,,3,1,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5040325392,https://openalex.org/A5040325392,Carina Büttner,,3,1,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:2,currently registered:1,no, +A5117488673,https://openalex.org/A5117488673,Carl Barthel,,1,0,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:2,removed:1,no, +A5038023543,https://openalex.org/A5038023543,Carsten Hohendorf,,3,38,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:2,currently registered:1,no, +A5079004093,https://openalex.org/A5079004093,Carsten Seeger,,2,38,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:2,currently registered:1,no, +A5077645687,https://openalex.org/A5077645687,Cemal Öztürk,https://orcid.org/0000-0003-3607-1356,52,340,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,removed:1,no, +A5127327286,https://openalex.org/A5127327286,Cemal Öztürk,,5,0,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,removed:1,no, +A5061307187,https://openalex.org/A5061307187,Charlotte Rudolph,https://orcid.org/0000-0001-9060-8850,18,141,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:2; Liquidator:1,removed:1,no, +A5049180230,https://openalex.org/A5049180230,Christian Fehring,,2,112,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5087346407,https://openalex.org/A5087346407,Christian Heid,https://orcid.org/0000-0003-3344-6909,16,402,direct_ude,University of Duisburg-Essen,1,Prokurist:1,currently registered:1,no, +A5020001154,https://openalex.org/A5020001154,Christian Högel,,1,0,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5009387190,https://openalex.org/A5009387190,Christian Jenne,,4,1,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5119533775,https://openalex.org/A5119533775,Christian Mütze,,1,0,direct_ude,University of Duisburg-Essen,1,Prokurist:1,currently registered:1,no, +A5084543947,https://openalex.org/A5084543947,Christian Stienen,,20,54,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5121031569,https://openalex.org/A5121031569,Christian Taube,,4,0,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,removed:1,no, +A5017500482,https://openalex.org/A5017500482,Christian Wiethoff,,7,105,direct_ude,University of Duisburg-Essen,1,Prokurist:1,currently registered:1,no, +A5012023718,https://openalex.org/A5012023718,Christiane Jürgens,,5,7,direct_ude,University of Duisburg-Essen,1,Prokurist:1,currently registered:1,no, +A5080114872,https://openalex.org/A5080114872,Christiane Lübke,,31,288,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:2,removed:1,no, +A5058580008,https://openalex.org/A5058580008,Christine Heil,https://orcid.org/0009-0000-5232-6924,7,2,direct_ude,University of Duisburg-Essen,1,Prokurist:2,currently registered:1,no, +A5122756265,https://openalex.org/A5122756265,Christof Schulz,,3,0,direct_ude,University of Duisburg-Essen,1,Prokurist:2; Geschäftsführer:1,currently registered:1,no, +A5113697261,https://openalex.org/A5113697261,Christoph Hassel,,5,138,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:3,currently registered:1,no, +A5012658572,https://openalex.org/A5012658572,Christoph Katzer,,3,90,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5056018215,https://openalex.org/A5056018215,Christoph Warnecke,,2,1,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5071643310,https://openalex.org/A5071643310,Christoph Wotzlaw,,23,1531,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5029514013,https://openalex.org/A5029514013,Christoph Wölper,,1126,4801,direct_ude,University of Duisburg-Essen,1,Inhaber:1,currently registered:1,no, +A5047171248,https://openalex.org/A5047171248,Christopher Eckert,,14,152,direct_ude,University of Duisburg-Essen,1,Prokurist:2; Geschäftsführer:1,currently registered:1,no, +A5091701081,https://openalex.org/A5091701081,Christopher Kruse,https://orcid.org/0000-0001-8490-8363,9,59,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5056320023,https://openalex.org/A5056320023,Christopher Schroeder,https://orcid.org/0000-0002-9283-3012,105,2301,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:2,removed:1,no, +A5108151622,https://openalex.org/A5108151622,Christopher Schroeder,,3,226,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:2,removed:1,no, +A5126942232,https://openalex.org/A5126942232,Claudia Graser,,2,0,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:2,removed:1,no, +A5046218941,https://openalex.org/A5046218941,Claudia Lenzen,,4,127,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5062074938,https://openalex.org/A5062074938,Claudia Padberg,https://orcid.org/0000-0002-2475-1525,6,90,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5043039034,https://openalex.org/A5043039034,Claudia Pieper,https://orcid.org/0000-0001-5986-9788,35,371,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,removed:1,no, +A5017886365,https://openalex.org/A5017886365,Claudia Veltkamp,,2,33,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5068914203,https://openalex.org/A5068914203,Claudia Veltkamp,,25,2419,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5085149735,https://openalex.org/A5085149735,Daniel Brandenburger,,8,35,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:2,removed:1,no, +A5058208716,https://openalex.org/A5058208716,Daniel Kilimann,,3,10,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5050883082,https://openalex.org/A5050883082,Daniel Sacher,,21,222,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5043673838,https://openalex.org/A5043673838,Daniel Sager,,4,154,direct_ude,University of Duisburg-Essen,1,Liquidator:1,removed:1,no, +A5065290634,https://openalex.org/A5065290634,Daniela Freyer,,2,66,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,removed:1,no, +A5101998061,https://openalex.org/A5101998061,David Schuster,https://orcid.org/0000-0003-4868-7107,82,212,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5016239306,https://openalex.org/A5016239306,Dennis Dreyer,,1,92,child_of_ude,Institut für Energie- und Umwelttechnik,1,Geschäftsführer:1,currently registered:1,no, +A5024576582,https://openalex.org/A5024576582,Diana Lindner,https://orcid.org/0000-0001-5477-769X,117,4555,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5113506669,https://openalex.org/A5113506669,Dieter Hoffmeister,,1,27,direct_ude,University of Duisburg-Essen,1,Inhaber:1,removed:1,no, +A5057831135,https://openalex.org/A5057831135,Dietmar Knop,,17,563,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5069955866,https://openalex.org/A5069955866,Dietmar Lohmann,https://orcid.org/0000-0002-2624-9889,313,11546,direct_ude,University of Duisburg-Essen,1,Liquidator:1,removed:1,no, +A5045510904,https://openalex.org/A5045510904,Dirk Straub,,3,3,direct_ude,University of Duisburg-Essen,1,Prokurist:1,currently registered:1,no, +A5070772777,https://openalex.org/A5070772777,Dominic Winter,https://orcid.org/0000-0001-6788-6641,105,3612,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5008449217,https://openalex.org/A5008449217,Dominik Raab,https://orcid.org/0000-0003-4514-1053,25,38,direct_ude,University of Duisburg-Essen,1,Prokurist:1,currently registered:1,no, +A5020803751,https://openalex.org/A5020803751,Dominik Reiner,https://orcid.org/0000-0002-9255-3686,4,67,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5107653304,https://openalex.org/A5107653304,Doris Brandt,,1,0,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5101478947,https://openalex.org/A5101478947,Ekaterina Morozova,https://orcid.org/0009-0001-1024-512X,35,193,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:2; Liquidator:1,removed:1,no, +A5114144035,https://openalex.org/A5114144035,Elisabeth Funk,,2,1,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:2,currently registered:1,no, +A5026676335,https://openalex.org/A5026676335,Enno Lohmann,,2,0,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:2,removed:1,no, +A5038704518,https://openalex.org/A5038704518,Erik Lange,,3,15,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:2,currently registered:1,no, +A5045815179,https://openalex.org/A5045815179,Erwin Amann,https://orcid.org/0000-0001-6396-2061,79,464,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5117255976,https://openalex.org/A5117255976,Erwin Amann,,3,1,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5117255984,https://openalex.org/A5117255984,Erwin Amann,,1,0,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5005872032,https://openalex.org/A5005872032,Eva Koch,,4,4,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5050141868,https://openalex.org/A5050141868,Eva Overfeld,,1,20,direct_ude,University of Duisburg-Essen,1,Prokurist:1,currently registered:1,no, +A5039035463,https://openalex.org/A5039035463,Eva Ziegler,,2,20,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:2,removed:1,no, +A5000766657,https://openalex.org/A5000766657,Fabian Hübner,,2,5,child_of_ude,Institut für Energie- und Umwelttechnik,1,Geschäftsführer:1,removed:1,no, +A5004725011,https://openalex.org/A5004725011,Fabian Lutz,,3,17,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5000166770,https://openalex.org/A5000166770,Fawad Sheikh,https://orcid.org/0000-0003-4112-5988,66,577,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5062848747,https://openalex.org/A5062848747,Felix Meurer,,5,6,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5101894409,https://openalex.org/A5101894409,Feng Zheng,https://orcid.org/0000-0002-9031-5043,83,837,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5045333748,https://openalex.org/A5045333748,Florian Blum,https://orcid.org/0000-0002-2307-2387,16,151,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5089485313,https://openalex.org/A5089485313,Florian Stehling,https://orcid.org/0000-0002-2417-2048,157,2194,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1; Liquidator:1,removed:1,no, +A5037918949,https://openalex.org/A5037918949,Frank Bonin,,8,1213,direct_ude,University of Duisburg-Essen,1,Inhaber:1,currently registered:1,no, +A5059162112,https://openalex.org/A5059162112,Frank Kensy,,33,1425,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:2,currently registered:1,no, +A5041417063,https://openalex.org/A5041417063,Frank Liepold,,2,4,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5073457797,https://openalex.org/A5073457797,Frank Saßmannshausen,,1,11,direct_ude,University of Duisburg-Essen,1,Prokurist:1,currently registered:1,no, +A5090814925,https://openalex.org/A5090814925,Frank Schreier,,6,90,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5011988694,https://openalex.org/A5011988694,Frank Stock,,3,177,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,removed:1,no, +A5085471055,https://openalex.org/A5085471055,Franz-Josef Schumacher,,12,162,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:2,currently registered:1,no, +A5104724077,https://openalex.org/A5104724077,Frederik Hamm,https://orcid.org/0009-0002-2482-9916,7,56,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5112848045,https://openalex.org/A5112848045,Friederike Schmidt,,84,877,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5077223798,https://openalex.org/A5077223798,Friedrich Waag,,22,1043,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5004249555,https://openalex.org/A5004249555,Gabriel Gomez,https://orcid.org/0000-0003-1917-8768,33,260,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5040165911,https://openalex.org/A5040165911,Gabriele Gauß,,15,116,direct_ude,University of Duisburg-Essen,1,Inhaber:1,currently registered:1,no, +A5027843014,https://openalex.org/A5027843014,Gaby Herrmann,,14,213,direct_ude,University of Duisburg-Essen,1,Prokurist:1,currently registered:1,no, +A5070896019,https://openalex.org/A5070896019,Georg Hennecke,,2,12,direct_ude,University of Duisburg-Essen,1,Persönlich haftender Gesellschafter:2,currently registered:1,no, +A5105675784,https://openalex.org/A5105675784,Gerhard Bösch,https://orcid.org/0000-0002-7629-985X,421,3209,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5002241289,https://openalex.org/A5002241289,Gerhard Rapp,,4,10,child_of_ude,Institut für Energie- und Umwelttechnik,1,Geschäftsführer:1; Liquidator:1,currently registered:1,no, +A5060415016,https://openalex.org/A5060415016,Günther Hilger,,1,0,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5076616002,https://openalex.org/A5076616002,Halil-Ibrahim Karadag,,3,17,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,removed:1,no, +A5111945828,https://openalex.org/A5111945828,Hans Dieter Sitz,,2,54,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5017865330,https://openalex.org/A5017865330,Hans Rupp,,33,277,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5036866194,https://openalex.org/A5036866194,Hans-Christian Schnack,,2,6,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1; Liquidator:1,currently registered:1,no, +A5090778840,https://openalex.org/A5090778840,Hans-Jörg Köhler,,1,0,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5081070872,https://openalex.org/A5081070872,Harald Sanders,,3,28,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1; Liquidator:1,removed:1,no, +A5030236051,https://openalex.org/A5030236051,Harpreet Kaur,https://orcid.org/0009-0006-3209-0890,164,1545,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,removed:1,no, +A5087755476,https://openalex.org/A5087755476,Hauke Springer,https://orcid.org/0000-0002-4288-6431,161,6647,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5080797073,https://openalex.org/A5080797073,Heidi Meyer,,7,5,direct_ude,University of Duisburg-Essen,1,Persönlich haftender Gesellschafter:2,currently registered:1,no, +A5080795837,https://openalex.org/A5080795837,Heike Hesse,https://orcid.org/0000-0002-8398-2518,26,143,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,removed:1,no, +A5076442919,https://openalex.org/A5076442919,Heike Heuer,https://orcid.org/0000-0001-7094-6959,186,5774,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,removed:1,no, +A5064670118,https://openalex.org/A5064670118,Heinz Kaminski,,88,2400,child_of_ude,Institut für Energie- und Umwelttechnik,1,Geschäftsführer:1,currently registered:1,no, +A5067868124,https://openalex.org/A5067868124,Helmut Breier,,2,10,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5109552942,https://openalex.org/A5109552942,Hendrik Schäfer,,5,8,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5020103124,https://openalex.org/A5020103124,Henrik Hanke,,7,9,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5118899748,https://openalex.org/A5118899748,Henrik Schneider,https://orcid.org/0009-0002-5072-5758,389,68,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5061706562,https://openalex.org/A5061706562,Herbert Marschall,,10,4,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5093728336,https://openalex.org/A5093728336,Horst Tonn,,1,0,direct_ude,University of Duisburg-Essen,1,Prokurist:2,currently registered:1,no, +A5047671213,https://openalex.org/A5047671213,Hubertus von Stein,,2,7,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5017272004,https://openalex.org/A5017272004,Ina Schumann,,1,17,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5088398932,https://openalex.org/A5088398932,Irmgard Winkels,,4,16,direct_ude,University of Duisburg-Essen,1,Prokurist:1,removed:1,no, +A5061578974,https://openalex.org/A5061578974,Isabelle Kraft,,3,19,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5071231662,https://openalex.org/A5071231662,Israa Al-Qaysi,,4,6,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5066538226,https://openalex.org/A5066538226,Ivan Radev,https://orcid.org/0000-0002-3895-6871,60,799,child_of_ude,The Hydrogen and Fuel Cell Center,1,Geschäftsführer:2,removed:1,no, +A5128575435,https://openalex.org/A5128575435,Ivan Radev,,1,0,child_of_ude,The Hydrogen and Fuel Cell Center,1,Geschäftsführer:2,removed:1,no, +A5128676335,https://openalex.org/A5128676335,Ivan Radev,,1,0,child_of_ude,The Hydrogen and Fuel Cell Center,1,Geschäftsführer:2,removed:1,no, +A5068780119,https://openalex.org/A5068780119,Ivana Radulovic,https://orcid.org/0000-0003-4949-6011,3,30,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:2,currently registered:1,no, +A5057279620,https://openalex.org/A5057279620,Jacqueline Hassel,,6,8,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5004726913,https://openalex.org/A5004726913,Jan Gehrmann,,1,30,direct_ude,University of Duisburg-Essen,1,Prokurist:1,removed:1,no, +A5110748857,https://openalex.org/A5110748857,Jan Martini,,1,0,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5114492513,https://openalex.org/A5114492513,Jan Siefert,,1,0,direct_ude,University of Duisburg-Essen,1,Persönlich haftender Gesellschafter:1,currently registered:1,no, +A5118574914,https://openalex.org/A5118574914,Jan Siefert,,1,0,direct_ude,University of Duisburg-Essen,1,Persönlich haftender Gesellschafter:1,currently registered:1,no, +A5108666196,https://openalex.org/A5108666196,Janine Biermann,,37,536,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,removed:1,no, +A5008876995,https://openalex.org/A5008876995,Jelka Müller,,1,55,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5036054187,https://openalex.org/A5036054187,Jennifer Klatt,,13,299,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,removed:1,no, +A5072503343,https://openalex.org/A5072503343,Jennifer Schäfer,,6,51,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5005916878,https://openalex.org/A5005916878,Jens Leber,https://orcid.org/0009-0004-3369-9310,8,7,direct_ude,University of Duisburg-Essen,1,Persönlich haftender Gesellschafter:1,removed:1,no, +A5070743643,https://openalex.org/A5070743643,Jens Leister,,1,46,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5019237165,https://openalex.org/A5019237165,Jens Voskuhl,https://orcid.org/0000-0002-9612-2306,191,2824,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:2,currently registered:1,no, +A5039380118,https://openalex.org/A5039380118,Jessica Wagner,,34,1379,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:3,currently registered:1,no, +A5065950441,https://openalex.org/A5065950441,Joachim Felix,,2,64,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5093010306,https://openalex.org/A5093010306,Jochen Laub,,1,2,child_of_ude,Institute for Advanced Study in the Humanities Essen,1,Geschäftsführer:2; Liquidator:1,currently registered:1,no, +A5052002212,https://openalex.org/A5052002212,Jochen Schiemann,,8,123,child_of_ude,Institut für Energie- und Umwelttechnik,1,Liquidator:1,removed:1,no, +A5039240740,https://openalex.org/A5039240740,Jochen Welker,,1,6,direct_ude,University of Duisburg-Essen,1,Inhaber:1,currently registered:1,no, +A5070209669,https://openalex.org/A5070209669,Johanna Christina Czeschik,https://orcid.org/0000-0002-9254-0084,29,1692,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5048923333,https://openalex.org/A5048923333,Johannes Fuß,https://orcid.org/0000-0003-0445-5021,143,3507,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5120144706,https://openalex.org/A5120144706,Johannes Fuß,,4,0,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5129542229,https://openalex.org/A5129542229,Johannes Fuß,,1,0,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5112955990,https://openalex.org/A5112955990,Johannes Kubacki,,1,4,direct_ude,University of Duisburg-Essen,1,Inhaber:1,currently registered:1,no, +A5092455758,https://openalex.org/A5092455758,Johannes Morzeck,,3,4,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5032636758,https://openalex.org/A5032636758,Johannes Tiemer,,1,7,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5062591501,https://openalex.org/A5062591501,Jonas Dorlöchter,,2,1,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:2,currently registered:1,no, +A5049096789,https://openalex.org/A5049096789,Jonas Schäfer,,4,75,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5013982747,https://openalex.org/A5013982747,Julia Kotte,,3,0,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5104300770,https://openalex.org/A5104300770,Julia Specht,,3,4,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5037354453,https://openalex.org/A5037354453,Julia Wiedmann,,4,6,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,removed:1,no, +A5010618332,https://openalex.org/A5010618332,Julian Börner,,1,0,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5048272221,https://openalex.org/A5048272221,Julian Friedrich,https://orcid.org/0000-0003-1364-4596,17,222,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1; Prokurist:1,currently registered:1,no, +A5071196344,https://openalex.org/A5071196344,Julian Klein,https://orcid.org/0000-0003-2349-6953,14,555,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1; Liquidator:1,currently registered:1,no, +A5049967267,https://openalex.org/A5049967267,Juliane Hauschild,,2,5,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5030302430,https://openalex.org/A5030302430,Jutta Langer,,1,26,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:2,currently registered:1,no, +A5038720735,https://openalex.org/A5038720735,Jörg Uhlemann,https://orcid.org/0000-0001-9542-7055,57,420,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1; Prokurist:1,currently registered:1,no, +A5056682397,https://openalex.org/A5056682397,Jörg Wissler,https://orcid.org/0000-0002-2099-2444,15,59,direct_ude,University of Duisburg-Essen,1,Persönlich haftender Gesellschafter:1,currently registered:1,no, +A5024741328,https://openalex.org/A5024741328,Jürgen Turek,,1,0,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5071760917,https://openalex.org/A5071760917,Karin Kress,,2,0,direct_ude,University of Duisburg-Essen,1,Prokurist:2,removed:1,no, +A5013765314,https://openalex.org/A5013765314,Katharina Nebel,,25,690,direct_ude,University of Duisburg-Essen,1,Prokurist:1,currently registered:1,no, +A5050045690,https://openalex.org/A5050045690,Kathrin Bischof,,2,12,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5073438747,https://openalex.org/A5073438747,Katrin Moses,,7,914,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5027732212,https://openalex.org/A5027732212,Kerstin Heise,,11,428,direct_ude,University of Duisburg-Essen,1,Persönlich haftender Gesellschafter:1,currently registered:1,no, +A5016450244,https://openalex.org/A5016450244,Kerstin Linke,,2,20,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:2,currently registered:1,no, +A5020366724,https://openalex.org/A5020366724,Kerstin Schiffer,,2,2,direct_ude,University of Duisburg-Essen,1,Prokurist:1,currently registered:1,no, +A5016337319,https://openalex.org/A5016337319,Kira Schmidt,https://orcid.org/0000-0002-2308-509X,20,144,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1; Liquidator:1,currently registered:1,no, +A5036108521,https://openalex.org/A5036108521,Konrad Mueller,,14,493,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5071311431,https://openalex.org/A5071311431,Kurt Retter,,1,0,direct_ude,University of Duisburg-Essen,1,Prokurist:1,currently registered:1,no, +A5013704112,https://openalex.org/A5013704112,Lars Großmann,,15,549,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5093724216,https://openalex.org/A5093724216,Lars Mohren,,2,6,direct_ude,University of Duisburg-Essen,1,Prokurist:1,currently registered:1,no, +A5094240143,https://openalex.org/A5094240143,Lars Mohren,https://orcid.org/0009-0002-8990-7487,3,32,direct_ude,University of Duisburg-Essen,1,Prokurist:1,currently registered:1,no, +A5060428160,https://openalex.org/A5060428160,Lars Pape,https://orcid.org/0000-0002-3635-6418,396,8930,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5114129179,https://openalex.org/A5114129179,Lars Pape,,2,3,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5014404906,https://openalex.org/A5014404906,Laura Beutel,,4,4,direct_ude,University of Duisburg-Essen,1,Prokurist:1,currently registered:1,no, +A5065808255,https://openalex.org/A5065808255,Lena Zimmer,,1,26,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5066702983,https://openalex.org/A5066702983,Leoni Bussmann,,3,14,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5121364042,https://openalex.org/A5121364042,Li Song,,1,0,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5056185884,https://openalex.org/A5056185884,Lina Philipp,,1,2,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5009329425,https://openalex.org/A5009329425,Linda Sauter,,3,653,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5108670181,https://openalex.org/A5108670181,Lisa Kroll,,2,200,direct_ude,University of Duisburg-Essen,1,Persönlich haftender Gesellschafter:1,currently registered:1,no, +A5024649380,https://openalex.org/A5024649380,Lisa Richter,,14,124,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:2,currently registered:1,no, +A5103009677,https://openalex.org/A5103009677,Lisa Walter,https://orcid.org/0000-0003-3453-1304,11,169,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5118565942,https://openalex.org/A5118565942,Lisa Walter,,1,0,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5064923908,https://openalex.org/A5064923908,Lisa Zimmer,https://orcid.org/0000-0002-3680-3521,376,20577,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5126334393,https://openalex.org/A5126334393,Lisa Zimmer,,17,0,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5066213830,https://openalex.org/A5066213830,Lothar Wefers,,3,20,child_of_ude,Deutsches Textilforschungszentrum Nord-West,1,Geschäftsführer:1,currently registered:1,no, +A5093091778,https://openalex.org/A5093091778,Lucas Schulz,,2,2,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5098906756,https://openalex.org/A5098906756,Lukas Höptner,,1,0,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5064434141,https://openalex.org/A5064434141,Maic Masuch,https://orcid.org/0000-0002-7965-6269,135,2233,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,removed:1,no, +A5126271856,https://openalex.org/A5126271856,Maic Masuch,,5,0,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,removed:1,no, +A5114071897,https://openalex.org/A5114071897,Maik Arnold,,1,0,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5078750152,https://openalex.org/A5078750152,Maik Dreyer,https://orcid.org/0000-0001-8158-3946,17,241,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,removed:1,no, +A5036867308,https://openalex.org/A5036867308,Maike Reinders,,3,5,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5053746965,https://openalex.org/A5053746965,Maike Uhlig,,1,35,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5057673751,https://openalex.org/A5057673751,Mandy Sander,https://orcid.org/0000-0003-3335-6217,15,195,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5113171169,https://openalex.org/A5113171169,Manfred Jensen,,49,1236,direct_ude,University of Duisburg-Essen,1,Liquidator:1,currently registered:1,no, +A5068530955,https://openalex.org/A5068530955,Manja Jonas,,8,7,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5047587792,https://openalex.org/A5047587792,Marc Bosse,,5,21,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5054058904,https://openalex.org/A5054058904,Marc Hitzke,,2,49,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5113907885,https://openalex.org/A5113907885,Marcel Rohde,,2,3,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:2,currently registered:1,no, +A5005068080,https://openalex.org/A5005068080,Marcel Wöllbrink,,2,20,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5019879976,https://openalex.org/A5019879976,Marcin Krawczyk,https://orcid.org/0000-0002-0113-0777,574,7435,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,removed:1,no, +A5049534528,https://openalex.org/A5049534528,Marco Russ,,5,59,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:2,currently registered:1,no, +A5007170803,https://openalex.org/A5007170803,Marcus Handte,https://orcid.org/0000-0003-4054-1306,107,843,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5079117291,https://openalex.org/A5079117291,Maren Schulze,https://orcid.org/0000-0002-4577-6473,58,1306,direct_ude,University of Duisburg-Essen,1,Prokurist:1,currently registered:1,no, +A5033725849,https://openalex.org/A5033725849,Marion Gallus,,4,88,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:2,currently registered:1,no, +A5079458733,https://openalex.org/A5079458733,Marion Lindner,https://orcid.org/0000-0002-4689-8659,28,274,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5024781039,https://openalex.org/A5024781039,Marius Reinders,,2,113,child_of_ude,Institut für Energie- und Umwelttechnik,1,Geschäftsführer:2,currently registered:1,no, +A5110087827,https://openalex.org/A5110087827,Mark Bormann,,1,54,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:2,removed:1,no, +A5058616263,https://openalex.org/A5058616263,Markus Feurstein,,72,1273,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:2,removed:1,no, +A5073381146,https://openalex.org/A5073381146,Markus Großweischede,,9,10,direct_ude,University of Duisburg-Essen,1,Prokurist:1,currently registered:1,no, +A5008210663,https://openalex.org/A5008210663,Markus Kuepper,,7,75,direct_ude,University of Duisburg-Essen,1,Prokurist:1,removed:1,no, +A5001509958,https://openalex.org/A5001509958,Marten Clausen,,35,492,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5049699371,https://openalex.org/A5049699371,Martin Braunersreuther,,1,7,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5001167896,https://openalex.org/A5001167896,Martin Glas,https://orcid.org/0000-0003-3167-3403,450,6081,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:2,currently registered:1,no, +A5013459956,https://openalex.org/A5013459956,Martin Goeke,https://orcid.org/0000-0003-1026-8716,21,55,direct_ude,University of Duisburg-Essen,1,Prokurist:2,currently registered:1,no, +A5057981860,https://openalex.org/A5057981860,Martin Heisler,,8,133,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5078670601,https://openalex.org/A5078670601,Martin Kowalski,,5,12,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,removed:1,no, +A5050989539,https://openalex.org/A5050989539,Martin Mackowiak,,2,120,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1; Liquidator:1,removed:1,no, +A5110936047,https://openalex.org/A5110936047,Martin Pelzer,,2,53,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5074197647,https://openalex.org/A5074197647,Martin Rosenkranz,,5,7,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,removed:1,no, +A5100167482,https://openalex.org/A5100167482,Martin Schlosser,,1,0,child_of_ude,Institute for Advanced Study in the Humanities Essen,1,Prokurist:1,currently registered:1,no, +A5106679393,https://openalex.org/A5106679393,Martina Velten,,1,0,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5067906488,https://openalex.org/A5067906488,Matthias Czerwonka,,3,16,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5078302132,https://openalex.org/A5078302132,Matthias Stüwe,,2,0,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,removed:1,no, +A5006138482,https://openalex.org/A5006138482,Max Frei,https://orcid.org/0000-0001-8992-7205,17,207,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5055234849,https://openalex.org/A5055234849,Maximilian Petri,https://orcid.org/0000-0002-1424-2815,27,1510,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5081973623,https://openalex.org/A5081973623,Mehmet Sanlialp,https://orcid.org/0000-0003-1159-1427,16,754,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:2,currently registered:1,no, +A5104045857,https://openalex.org/A5104045857,Melanie Baumann,,21,286,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5087645890,https://openalex.org/A5087645890,Melanie Kaufmann,,1,5,direct_ude,University of Duisburg-Essen,1,Persönlich haftender Gesellschafter:1,currently registered:1,no, +A5062241567,https://openalex.org/A5062241567,Michael Beißwenger,https://orcid.org/0000-0001-9442-5402,101,807,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5105097515,https://openalex.org/A5105097515,Michael Beißwenger,,7,0,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5080063285,https://openalex.org/A5080063285,Michael Ehrmann,https://orcid.org/0000-0002-1927-260X,354,20372,direct_ude,University of Duisburg-Essen,1,Persönlich haftender Gesellschafter:1,currently registered:1,no, +A5108960748,https://openalex.org/A5108960748,Michael Ehrmann,,3,1,direct_ude,University of Duisburg-Essen,1,Persönlich haftender Gesellschafter:1,currently registered:1,no, +A5034866368,https://openalex.org/A5034866368,Michael Eisinger,,16,252,direct_ude,University of Duisburg-Essen,1,Persönlich haftender Gesellschafter:1,currently registered:1,no, +A5057021245,https://openalex.org/A5057021245,Michael Lorke,https://orcid.org/0000-0002-9716-855X,121,2558,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5128167886,https://openalex.org/A5128167886,Michael Lorke,,1,0,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5006409004,https://openalex.org/A5006409004,Michael Michalski,,2,10,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5015834718,https://openalex.org/A5015834718,Michael Neurath,,3,4,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5013942006,https://openalex.org/A5013942006,Michael Noweski,https://orcid.org/0000-0002-7113-9320,29,58,direct_ude,University of Duisburg-Essen,1,Prokurist:2,currently registered:1,no, +A5011767928,https://openalex.org/A5011767928,Michael Pingen,,4,25,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5015241303,https://openalex.org/A5015241303,Michael Siebers,https://orcid.org/0000-0003-1891-3572,54,463,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5120585934,https://openalex.org/A5120585934,Michael Siebers,https://orcid.org/0000-0002-1400-2176,1,0,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5041200016,https://openalex.org/A5041200016,Michael Wagenknecht,,5,0,direct_ude,University of Duisburg-Essen,1,Prokurist:2,currently registered:1,no, +A5054232482,https://openalex.org/A5054232482,Michael Wohlgemuth,,4,101,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5088820865,https://openalex.org/A5088820865,Michelle Kulbatzki,,1,20,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5064463286,https://openalex.org/A5064463286,Ming Sun,https://orcid.org/0000-0002-6416-312X,87,1147,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,removed:1,no, +A5047402970,https://openalex.org/A5047402970,Mirco Kaponig,,2,66,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:2,currently registered:1,no, +A5107202957,https://openalex.org/A5107202957,Miriam Schilling,,4,1,direct_ude,University of Duisburg-Essen,1,Liquidator:1,currently registered:1,no, +A5115559958,https://openalex.org/A5115559958,Mohamed Hassoun,,2,5,direct_ude,University of Duisburg-Essen,1,Inhaber:1,currently registered:1,no, +A5090678919,https://openalex.org/A5090678919,Mohammed Youssef,,1,16,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5034793612,https://openalex.org/A5034793612,Monika Hardt,,7,61,direct_ude,University of Duisburg-Essen,1,Inhaber:2,removed:1,no, +A5044829228,https://openalex.org/A5044829228,Monika Rogge,,7,81,direct_ude,University of Duisburg-Essen,1,Liquidator:1,removed:1,no, +A5069356501,https://openalex.org/A5069356501,Muhammad Asif,https://orcid.org/0000-0002-6944-5214,6,60,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,removed:1,no, +A5037609071,https://openalex.org/A5037609071,Nadine Coym,,1,10,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1; Liquidator:1,currently registered:1,no, +A5103228465,https://openalex.org/A5103228465,Nadine Schroeder,https://orcid.org/0000-0003-0909-9572,2,25,direct_ude,University of Duisburg-Essen,1,Inhaber:1,removed:1,no, +A5110970122,https://openalex.org/A5110970122,Nadine Schroeder,,4,47,direct_ude,University of Duisburg-Essen,1,Inhaber:1,removed:1,no, +A5053960816,https://openalex.org/A5053960816,Natalie Wolff,,8,106,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5005921146,https://openalex.org/A5005921146,Nico Koch,,3,20,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5127359118,https://openalex.org/A5127359118,Nico Schreiber,,1,0,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5126212355,https://openalex.org/A5126212355,Nico Schwarz,,2,0,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5079749161,https://openalex.org/A5079749161,Nicole Hülsmann,,2,0,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5015620831,https://openalex.org/A5015620831,Nicole Lewandowski,,16,930,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1; Liquidator:1,removed:1,no, +A5013799951,https://openalex.org/A5013799951,Nikolai Fischer,,1,15,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1; Liquidator:1,currently registered:1,no, +A5112613860,https://openalex.org/A5112613860,Nils Dieckmann,,5,18,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5068650603,https://openalex.org/A5068650603,Nils Hartmann,https://orcid.org/0000-0001-6804-514X,93,1333,direct_ude,University of Duisburg-Essen,1,Persönlich haftender Gesellschafter:1,currently registered:1,no, +A5048433515,https://openalex.org/A5048433515,Nina Winkler,,2,32,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:2,currently registered:1,no, +A5062473614,https://openalex.org/A5062473614,Nora Meyer,,2,4,child_of_ude,Institute for Advanced Study in the Humanities Essen,1,Geschäftsführer:1,currently registered:1,no, +A5017423020,https://openalex.org/A5017423020,Norbert Fröhler,,40,50,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,removed:1,no, +A5012071823,https://openalex.org/A5012071823,Norbert Runge,,2,0,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5009985094,https://openalex.org/A5009985094,Norbert Schwab,,2,3,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5014326133,https://openalex.org/A5014326133,Olaf Wiesner,,71,2681,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:2,removed:1,no, +A5108364487,https://openalex.org/A5108364487,Oliver Woll,,1,6,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5107158979,https://openalex.org/A5107158979,Onur Keskin,,1,2,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1; Liquidator:1,removed:1,no, +A5017974502,https://openalex.org/A5017974502,Patrick Clasen,https://orcid.org/0000-0002-5804-2057,3,9,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,removed:1,no, +A5102793926,https://openalex.org/A5102793926,Patrick Urban,https://orcid.org/0000-0003-1051-5086,2,15,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5039495249,https://openalex.org/A5039495249,Paul Mauer,,11,5,direct_ude,University of Duisburg-Essen,1,Prokurist:1,removed:1,no, +A5036166423,https://openalex.org/A5036166423,Peter Czerner,,6,121,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:2,currently registered:1,no, +A5062834348,https://openalex.org/A5062834348,Peter Englisch,,2,0,direct_ude,University of Duisburg-Essen,1,Prokurist:1,currently registered:1,no, +A5061591858,https://openalex.org/A5061591858,Peter Faupel,,8,38,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5050784184,https://openalex.org/A5050784184,Peter Hüsken,,4,21,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5034367329,https://openalex.org/A5034367329,Peter Sutter,,2,46,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:2,currently registered:1,no, +A5016091481,https://openalex.org/A5016091481,Petra Mersmann,,8,727,child_of_ude,Deutsches Textilforschungszentrum Nord-West,1,Geschäftsführer:1,currently registered:1,no, +A5083616686,https://openalex.org/A5083616686,Petra Wyrowski,,1,55,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5108471127,https://openalex.org/A5108471127,Philip Vogel,,10,120,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5127716714,https://openalex.org/A5127716714,Philipp Jansen,,1,0,direct_ude,University of Duisburg-Essen,1,Prokurist:2,currently registered:1,no, +A5101606624,https://openalex.org/A5101606624,Ping Zhou,https://orcid.org/0000-0003-3837-8458,338,7011,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5123782002,https://openalex.org/A5123782002,Ping Zhou,,1,0,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5089821209,https://openalex.org/A5089821209,Ralf Flassenberg,,1,24,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5007200360,https://openalex.org/A5007200360,Ralf Maibaum,,1,372,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:2; Prokurist:2,currently registered:1,no, +A5028172633,https://openalex.org/A5028172633,Ralf Reißmann,,5,12,direct_ude,University of Duisburg-Essen,1,Prokurist:2; Geschäftsführer:1,currently registered:1,no, +A5112890667,https://openalex.org/A5112890667,Regina König,,3,2,direct_ude,University of Duisburg-Essen,1,Inhaber:1,currently registered:1,no, +A5053507266,https://openalex.org/A5053507266,Regina Schleicher,,18,1,direct_ude,University of Duisburg-Essen,1,Prokurist:1,currently registered:1,no, +A5029651565,https://openalex.org/A5029651565,Robert Marks,https://orcid.org/0000-0002-8196-8114,15,203,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5109458583,https://openalex.org/A5109458583,Robert Potthoff,,5,118,direct_ude,University of Duisburg-Essen,1,Prokurist:1,currently registered:1,no, +A5025407978,https://openalex.org/A5025407978,Robin Sprenger,,11,4,direct_ude,University of Duisburg-Essen,1,Inhaber:1,removed:1,no, +A5065126328,https://openalex.org/A5065126328,Roland Broll,https://orcid.org/0000-0002-9223-8141,3,47,direct_ude,University of Duisburg-Essen,1,Prokurist:1,currently registered:1,no, +A5011282396,https://openalex.org/A5011282396,Rolf Moeller,,3,7,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5064030128,https://openalex.org/A5064030128,Sabine Erkens,,1,0,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:2,removed:1,no, +A5060940363,https://openalex.org/A5060940363,Sabine Schramm,,27,864,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5102793521,https://openalex.org/A5102793521,Sarah Hofmann,,7,24,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:3,currently registered:1,no, +A5101692938,https://openalex.org/A5101692938,Sarah Schmid,https://orcid.org/0000-0002-2392-7234,27,632,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:2; Liquidator:1,currently registered:1,no, +A5012945966,https://openalex.org/A5012945966,Sarah Tillmann,,2,52,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,removed:1,no, +A5018830497,https://openalex.org/A5018830497,Sascha Lang,https://orcid.org/0000-0001-6850-0464,7,126,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5103336903,https://openalex.org/A5103336903,Sascha Lang,,1,8,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5062425859,https://openalex.org/A5062425859,Sascha Nolte,,1,1,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5039669109,https://openalex.org/A5039669109,Saskia Schmidt,https://orcid.org/0000-0001-8043-7912,4,29,direct_ude,University of Duisburg-Essen,1,Inhaber:1,currently registered:1,no, +A5030054874,https://openalex.org/A5030054874,Sebastian Bartling,,4,0,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5050737096,https://openalex.org/A5050737096,Sebastian Bartling,,3,0,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5035946845,https://openalex.org/A5035946845,Sebastian Blume,https://orcid.org/0000-0001-6504-0343,28,217,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:2,currently registered:1,no, +A5029172573,https://openalex.org/A5029172573,Sebastian Hofmeister,,3,19,direct_ude,University of Duisburg-Essen,1,Prokurist:2,removed:1,no, +A5112675659,https://openalex.org/A5112675659,Sebastian Hofmeister,,5,119,direct_ude,University of Duisburg-Essen,1,Prokurist:2,removed:1,no, +A5013243118,https://openalex.org/A5013243118,Sebastian Jeschke,,39,155,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5054728144,https://openalex.org/A5054728144,Sebastian Krull,,6,0,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:2,currently registered:1,no, +A5090567165,https://openalex.org/A5090567165,Sebastian Putz,,2,25,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1; Liquidator:1,removed:1,no, +A5010475697,https://openalex.org/A5010475697,Sebastian Tewes,,7,20,direct_ude,University of Duisburg-Essen,1,Prokurist:1,currently registered:1,no, +A5053166425,https://openalex.org/A5053166425,Sebastian Tewes,,2,0,direct_ude,University of Duisburg-Essen,1,Prokurist:1,currently registered:1,no, +A5033560201,https://openalex.org/A5033560201,Siegfried Frey,,2,1,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5020497154,https://openalex.org/A5020497154,Siegfried Jahnke,https://orcid.org/0000-0002-4086-2567,120,3004,direct_ude,University of Duisburg-Essen,1,Liquidator:1,removed:1,no, +A5112745971,https://openalex.org/A5112745971,Silke Dittmer,,9,205,direct_ude,University of Duisburg-Essen,1,Liquidator:1,currently registered:1,no, +A5094406658,https://openalex.org/A5094406658,Simon Heide,,1,0,direct_ude,University of Duisburg-Essen,1,Liquidator:1,removed:1,no, +A5058898852,https://openalex.org/A5058898852,Simon Thies,https://orcid.org/0000-0002-7041-145X,6,63,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:2,currently registered:1,no, +A5022438334,https://openalex.org/A5022438334,Solveig Hofmann,,4,61,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,removed:1,no, +A5063699777,https://openalex.org/A5063699777,Songül Özdemir,,1,13,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,removed:1,no, +A5110829775,https://openalex.org/A5110829775,Sonja Krebs,,1,3,direct_ude,University of Duisburg-Essen,1,Liquidator:1,currently registered:1,no, +A5080839320,https://openalex.org/A5080839320,Sonja Schmittmann,https://orcid.org/0000-0003-3886-3453,6,29,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5007861447,https://openalex.org/A5007861447,Stefan Kasper,https://orcid.org/0000-0002-5947-8733,294,13092,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5069191084,https://openalex.org/A5069191084,Stefan Kirschner,,3,25,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5051936861,https://openalex.org/A5051936861,Stefan Löbbecke,,46,524,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:2,currently registered:1,no, +A5062839956,https://openalex.org/A5062839956,Stefan Schmiedel,,2,0,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5026810932,https://openalex.org/A5026810932,Stefan Sell,,2,0,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5045604426,https://openalex.org/A5045604426,Stefan Zillmann,,1,0,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5057341721,https://openalex.org/A5057341721,Stefan Zöllner,,43,1274,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5056027753,https://openalex.org/A5056027753,Stefanie Beckmann,,2,134,child_of_ude,Institut für Energie- und Umwelttechnik,1,Geschäftsführer:2,currently registered:1,no, +A5091298186,https://openalex.org/A5091298186,Stefanie Köhler,https://orcid.org/0000-0002-7176-1240,5,73,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,removed:1,no, +A5112814108,https://openalex.org/A5112814108,Steffen Bender,,12,8,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5016825386,https://openalex.org/A5016825386,Stephan Brauckmann,,6,124,direct_ude,University of Duisburg-Essen,1,Liquidator:1,removed:1,no, +A5051908628,https://openalex.org/A5051908628,Stephan Durst,,3,309,direct_ude,University of Duisburg-Essen,1,Prokurist:1,currently registered:1,no, +A5033015229,https://openalex.org/A5033015229,Stephan Schweig,https://orcid.org/0000-0001-9869-2479,19,58,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5053376953,https://openalex.org/A5053376953,Stephan Tiedemann,,2,263,direct_ude,University of Duisburg-Essen,1,Prokurist:1,currently registered:1,no, +A5069502596,https://openalex.org/A5069502596,Susanne Fiedler,,8,432,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5034766781,https://openalex.org/A5034766781,Susanne Gäde,,3,17,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5059835114,https://openalex.org/A5059835114,Susanne Löhr,,2,1,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1; Liquidator:1,currently registered:1,no, +A5091297759,https://openalex.org/A5091297759,Sven Sachse,https://orcid.org/0009-0006-7742-4743,4,3,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5089516451,https://openalex.org/A5089516451,Swen Hesse,https://orcid.org/0000-0002-2055-2764,274,5314,direct_ude,University of Duisburg-Essen,1,Prokurist:1,removed:1,no, +A5061378179,https://openalex.org/A5061378179,Sylvia Hartmann,https://orcid.org/0000-0003-3424-1091,262,9391,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1; Liquidator:1,removed:1,no, +A5101314779,https://openalex.org/A5101314779,Sören Köhler,,4,0,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5118718256,https://openalex.org/A5118718256,Tanja Ulrich,,2,0,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,removed:1,no, +A5106922500,https://openalex.org/A5106922500,Thomas Beckers,,8,358,direct_ude,University of Duisburg-Essen,1,Inhaber:1,removed:1,no, +A5115787598,https://openalex.org/A5115787598,Thomas Homm,,1,5,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5023405815,https://openalex.org/A5023405815,Thomas Johanndeiter,,2,20,direct_ude,University of Duisburg-Essen,1,Prokurist:1,currently registered:1,no, +A5030597886,https://openalex.org/A5030597886,Thomas Rampp,,119,1687,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5124530922,https://openalex.org/A5124530922,Thomas Rampp,,1,0,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5084945725,https://openalex.org/A5084945725,Thomas Retzmann,,45,147,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5081741992,https://openalex.org/A5081741992,Thomas Sawitowski,,31,1263,direct_ude,University of Duisburg-Essen,1,Prokurist:2,currently registered:1,no, +A5009457064,https://openalex.org/A5009457064,Thomas Scholten,,2,31,direct_ude,University of Duisburg-Essen,1,Prokurist:1,removed:1,no, +A5015351093,https://openalex.org/A5015351093,Thomas Schweer,,2,19,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5060560919,https://openalex.org/A5060560919,Thomas Schweer,,1,0,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5027775756,https://openalex.org/A5027775756,Thomas Spitzley,,47,59,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5022478353,https://openalex.org/A5022478353,Thomas Theiselmann,,1,1,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5030354170,https://openalex.org/A5030354170,Thorsten Brenner,https://orcid.org/0000-0002-4570-877X,351,8344,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:2,currently registered:1,no, +A5125191411,https://openalex.org/A5125191411,Thorsten Brenner,,6,0,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:2,currently registered:1,no, +A5126942268,https://openalex.org/A5126942268,Thorsten Brenner,,1,0,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:2,currently registered:1,no, +A5087080432,https://openalex.org/A5087080432,Tim Brand,https://orcid.org/0000-0002-3375-3178,21,206,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5083757409,https://openalex.org/A5083757409,Timo Bartel,,3,19,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5112755428,https://openalex.org/A5112755428,Timo Bartel,,22,129,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5043034757,https://openalex.org/A5043034757,Tobias Hagemeier,,2,22,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:2,removed:1,no, +A5102457222,https://openalex.org/A5102457222,Tobias Kollmann,,45,2,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5021881029,https://openalex.org/A5021881029,Torsten Binder,https://orcid.org/0000-0001-6578-8992,7,77,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5013171104,https://openalex.org/A5013171104,Torsten Endres,https://orcid.org/0000-0001-8100-3921,55,433,direct_ude,University of Duisburg-Essen,1,Prokurist:1,currently registered:1,no, +A5123411133,https://openalex.org/A5123411133,Torsten Endres,,1,0,direct_ude,University of Duisburg-Essen,1,Prokurist:1,currently registered:1,no, +A5111443707,https://openalex.org/A5111443707,Torsten Heine,,3,126,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5015797087,https://openalex.org/A5015797087,Ulrich Dierkes,https://orcid.org/0000-0002-6938-6912,72,834,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5036657126,https://openalex.org/A5036657126,Ulrich Kilian,,4,1,direct_ude,University of Duisburg-Essen,1,Liquidator:1,removed:1,no, +A5095550945,https://openalex.org/A5095550945,Ulrike Berger,,1,0,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5074941150,https://openalex.org/A5074941150,Ute Pascher,,10,18,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,removed:1,no, +A5095550961,https://openalex.org/A5095550961,Ute Reusch,,1,0,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1; Liquidator:1,removed:1,no, +A5036671939,https://openalex.org/A5036671939,Uwe Knierim,,2,6,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5000119283,https://openalex.org/A5000119283,Uwe Pflaum,,1,5,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5052599699,https://openalex.org/A5052599699,Verena Beck,,15,1013,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5027154134,https://openalex.org/A5027154134,Werner Gaulke,,22,127,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5071766547,https://openalex.org/A5071766547,Wilfried Eberhardt,https://orcid.org/0000-0003-4284-3586,496,38376,direct_ude,University of Duisburg-Essen,1,Prokurist:1,currently registered:1,no, +A5019228221,https://openalex.org/A5019228221,Wilhelm Koop,,14,88,direct_ude,University of Duisburg-Essen,1,Inhaber:1,currently registered:1,no, +A5095335388,https://openalex.org/A5095335388,Willi Eßer,,2,4,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,removed:1,no, +A5063395947,https://openalex.org/A5063395947,Wojciech Kowalczyk,https://orcid.org/0000-0002-7390-2836,87,718,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5097337259,https://openalex.org/A5097337259,Wolfgang Kleem,,2,20,direct_ude,University of Duisburg-Essen,1,Prokurist:1,currently registered:1,no, +A5062554171,https://openalex.org/A5062554171,Xiaoxiao Zhou,,104,1760,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5007716502,https://openalex.org/A5007716502,Xiaxiao Zhou,,1,0,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,removed:1,no, +A5055394334,https://openalex.org/A5055394334,Yan Qi,,3,25,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5065806273,https://openalex.org/A5065806273,Yan Qi,https://orcid.org/0009-0007-4565-7232,19,63,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5023904510,https://openalex.org/A5023904510,Yingying Wang,https://orcid.org/0000-0002-9437-8447,4,29,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,removed:1,no, +A5101477617,https://openalex.org/A5101477617,Yuqing Wu,https://orcid.org/0009-0002-7623-5677,34,1185,direct_ude,University of Duisburg-Essen,1,Geschäftsführer:1,currently registered:1,no, +A5030044886,https://openalex.org/A5030044886,Alexander Berges,,1,11,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:1; removed:1,no, +A5028232392,https://openalex.org/A5028232392,Alexander Bäuerle,,15,27,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:2,no, +A5083878535,https://openalex.org/A5083878535,Alexander Bäuerle,https://orcid.org/0000-0003-1488-8592,138,2805,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:2,no, +A5124212331,https://openalex.org/A5124212331,Alexander Bäuerle,,1,0,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:2,no, +A5125542871,https://openalex.org/A5125542871,Alexander Bäuerle,,1,0,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:2,no, +A5125724201,https://openalex.org/A5125724201,Alexander Bäuerle,,1,0,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:2,no, +A5126543706,https://openalex.org/A5126543706,Alexander Bäuerle,,4,0,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:2,no, +A5126964584,https://openalex.org/A5126964584,Alexander Bäuerle,,1,0,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:2,no, +A5120154138,https://openalex.org/A5120154138,Alexander Kuß,https://orcid.org/0000-0002-9304-8403,1,3,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:1; removed:1,no, +A5074256634,https://openalex.org/A5074256634,Alexander Neuhaus,https://orcid.org/0000-0003-0477-3281,26,621,direct_ude,University of Duisburg-Essen,2,Liquidator:1; Prokurist:1,currently registered:1; removed:1,no, +A5102914099,https://openalex.org/A5102914099,Alexander Neuhaus,https://orcid.org/0009-0001-6844-1924,4,34,direct_ude,University of Duisburg-Essen,2,Liquidator:1; Prokurist:1,currently registered:1; removed:1,no, +A5124241431,https://openalex.org/A5124241431,Alexander Neuhaus,,1,0,direct_ude,University of Duisburg-Essen,2,Liquidator:1; Prokurist:1,currently registered:1; removed:1,no, +A5036432950,https://openalex.org/A5036432950,Alexandra Frey,https://orcid.org/0000-0001-5502-581X,50,293,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:2,no, +A5012900736,https://openalex.org/A5012900736,Amir Ahmadi,https://orcid.org/0000-0002-5747-7112,103,3534,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:2,no, +A5023371876,https://openalex.org/A5023371876,Andreas Jaekel,,7,109,direct_ude,University of Duisburg-Essen,2,Prokurist:2; Liquidator:1,removed:2,no, +A5038964333,https://openalex.org/A5038964333,André Heuer,,16,96,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:1; Prokurist:1,currently registered:1; removed:1,no, +A5056731063,https://openalex.org/A5056731063,André Niemann,https://orcid.org/0009-0001-6428-9427,37,193,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:1; Prokurist:1,currently registered:2,no, +A5061572098,https://openalex.org/A5061572098,Angelika Eßer,,16,28,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:3; Liquidator:2,currently registered:1; removed:1,no, +A5040988642,https://openalex.org/A5040988642,Anja Mayer,,3,66,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:1; Prokurist:1,currently registered:2,no, +A5072170197,https://openalex.org/A5072170197,Anna Caspari,,4,27,child_of_ude,Institut für Energie- und Umwelttechnik,2,Geschäftsführer:2,currently registered:1; removed:1,no, +A5113404409,https://openalex.org/A5113404409,Anna Knorr,https://orcid.org/0009-0004-6377-4529,5,8,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,removed:2,no, +A5039446944,https://openalex.org/A5039446944,Annette Kaiser,https://orcid.org/0000-0001-7873-3958,58,1211,direct_ude,University of Duisburg-Essen,2,Inhaber:2; Prokurist:1,currently registered:2,no, +A5085521861,https://openalex.org/A5085521861,Arne Grundmann,,1,2,direct_ude,University of Duisburg-Essen,2,Liquidator:2; Geschäftsführer:1,removed:2,no, +A5103103785,https://openalex.org/A5103103785,Barbara König,https://orcid.org/0000-0002-4193-2889,229,2070,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:1; Prokurist:1,currently registered:2,no, +A5122594045,https://openalex.org/A5122594045,Barbara König,,4,0,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:1; Prokurist:1,currently registered:2,no, +A5086434486,https://openalex.org/A5086434486,Beate Lux,,10,510,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:2,no, +A5117522592,https://openalex.org/A5117522592,Benedikt Roth,,1,0,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:1; Prokurist:1,currently registered:2,no, +A5051561955,https://openalex.org/A5051561955,Benedikt Sommer,,4,85,direct_ude,University of Duisburg-Essen,2,Prokurist:2; Geschäftsführer:1,currently registered:2,no, +A5047053024,https://openalex.org/A5047053024,Benjamin Hildebrandt,https://orcid.org/0000-0002-0011-3801,3,7,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:2,no, +A5022511826,https://openalex.org/A5022511826,Bernhard Neuhaus,,5,294,direct_ude,University of Duisburg-Essen,2,Liquidator:1; Prokurist:1,currently registered:1; removed:1,no, +A5037766479,https://openalex.org/A5037766479,Bernhard Schütz,https://orcid.org/0000-0002-9449-5088,53,562,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:1; Liquidator:1,currently registered:1; removed:1,no, +A5004181272,https://openalex.org/A5004181272,Birgit Meier,,2,30,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:3,currently registered:1; removed:1,no, +A5100614119,https://openalex.org/A5100614119,Bo Yu,https://orcid.org/0000-0002-0910-2228,13,380,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:1; removed:1,no, +A5091592150,https://openalex.org/A5091592150,Britta Ervens,https://orcid.org/0000-0001-9534-9616,1,2,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:2,no, +A5035407848,https://openalex.org/A5035407848,Burkhard Stüve,,11,124,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:3,currently registered:2,no, +A5109274767,https://openalex.org/A5109274767,Carmen Nickel,,24,1871,child_of_ude,Institut für Energie- und Umwelttechnik,2,Geschäftsführer:2,currently registered:2,no, +A5113286606,https://openalex.org/A5113286606,Carsten Schroeder,,6,22,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:3,currently registered:1; removed:1,no, +A5047582798,https://openalex.org/A5047582798,Chris Schönherr,,1,11,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:3; Liquidator:1,currently registered:1; removed:1,no, +A5058870391,https://openalex.org/A5058870391,Christian Schweiger,,2,456,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2; Liquidator:1,currently registered:1; removed:1,no, +A5113313442,https://openalex.org/A5113313442,Christian Temme,,1,3,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:3,currently registered:2,no, +A5065413632,https://openalex.org/A5065413632,Christina Alt,,9,1836,direct_ude,University of Duisburg-Essen,2,Prokurist:2; Geschäftsführer:1,currently registered:2,no, +A5031278214,https://openalex.org/A5031278214,Christine Kube,,19,106,child_of_ude,Institut für Energie- und Umwelttechnik,2,Geschäftsführer:2,currently registered:2,no, +A5076386821,https://openalex.org/A5076386821,Christoph Leonhardt,,24,28,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:4,currently registered:2,no, +A5100905519,https://openalex.org/A5100905519,Christoph Mueller,,5,7,direct_ude,University of Duisburg-Essen,2,Prokurist:2; Geschäftsführer:1; Liquidator:1,currently registered:2,no, +A5113921527,https://openalex.org/A5113921527,Christoph Mueller,,2,92,direct_ude,University of Duisburg-Essen,2,Prokurist:2; Geschäftsführer:1; Liquidator:1,currently registered:2,no, +A5074697803,https://openalex.org/A5074697803,Christoph Oster,https://orcid.org/0000-0002-0683-0430,62,224,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:2,no, +A5096227567,https://openalex.org/A5096227567,Christoph Oster,,1,1,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:2,no, +A5111926807,https://openalex.org/A5111926807,Claudia Voigt,,13,269,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:2,no, +A5104165371,https://openalex.org/A5104165371,Dana Hofmann,,1,0,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:3,currently registered:2,no, +A5087006281,https://openalex.org/A5087006281,Daniel Preuß,,3,14,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:3,currently registered:2,no, +A5057327561,https://openalex.org/A5057327561,Daniel Reimann,https://orcid.org/0000-0002-9083-4396,1,0,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:1; removed:1,no, +A5058315719,https://openalex.org/A5058315719,Dennis Michels,https://orcid.org/0000-0002-7530-9104,23,78,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2; Prokurist:1,currently registered:2,no, +A5113426808,https://openalex.org/A5113426808,Dennis Nagel,https://orcid.org/0009-0004-2911-9301,6,16,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:3,currently registered:1; removed:1,no, +A5003692129,https://openalex.org/A5003692129,Diana Klein,https://orcid.org/0000-0002-1770-443X,137,3054,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2; Liquidator:1,currently registered:1; removed:1,no, +A5061726728,https://openalex.org/A5061726728,Dieter Loos,,5,18,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:3,currently registered:1; removed:1,no, +A5047514819,https://openalex.org/A5047514819,Dirk Blasius,,5,1,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2; Liquidator:1,currently registered:2,no, +A5027161261,https://openalex.org/A5027161261,Dobromir Dobrev,https://orcid.org/0000-0002-4612-117X,640,61209,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:2,no, +A5126402560,https://openalex.org/A5126402560,Dobromir Dobrev,,3,0,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:2,no, +A5127444535,https://openalex.org/A5127444535,Dobromir Dobrev,,1,0,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:2,no, +A5130073673,https://openalex.org/A5130073673,Dobromir Dobrev,,1,0,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:2,no, +A5016661814,https://openalex.org/A5016661814,Dominik Esser,,16,754,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:2,no, +A5116347062,https://openalex.org/A5116347062,Dorothee Nitsch,,1,0,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:1; Prokurist:1,currently registered:1; removed:1,no, +A5009897292,https://openalex.org/A5009897292,Elisabeth Maurer,,2,33,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:1; removed:1,no, +A5061252774,https://openalex.org/A5061252774,Elke Wessel,,7,185,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2; Liquidator:1,currently registered:1; removed:1,no, +A5011988398,https://openalex.org/A5011988398,Fatih Özcan,https://orcid.org/0000-0002-2584-7000,43,269,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2; Liquidator:1,currently registered:1; removed:1,no, +A5086528994,https://openalex.org/A5086528994,Fatih Özcan,https://orcid.org/0000-0002-3922-7902,51,500,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2; Liquidator:1,currently registered:1; removed:1,no, +A5123512479,https://openalex.org/A5123512479,Fatih Özcan,,1,0,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2; Liquidator:1,currently registered:1; removed:1,no, +A5125278989,https://openalex.org/A5125278989,Fatih Özcan,,1,0,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2; Liquidator:1,currently registered:1; removed:1,no, +A5065356264,https://openalex.org/A5065356264,Felix Bergmann,https://orcid.org/0000-0002-1224-9036,369,5442,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2; Liquidator:1,currently registered:1; removed:1,no, +A5103117681,https://openalex.org/A5103117681,Felix Bergmann,https://orcid.org/0009-0005-5621-6972,52,521,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2; Liquidator:1,currently registered:1; removed:1,no, +A5121086538,https://openalex.org/A5121086538,Felix Bergmann,,1,0,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2; Liquidator:1,currently registered:1; removed:1,no, +A5024294120,https://openalex.org/A5024294120,Felix Kraus,,2,18,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:1; Inhaber:1; Persönlich haftender Gesellschafter:1,currently registered:2,no, +A5111920811,https://openalex.org/A5111920811,Felix Wiegand,,33,66,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:1; removed:1,no, +A5111023305,https://openalex.org/A5111023305,Ferdinand Beckmann,,1,0,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2; Persönlich haftender Gesellschafter:1,currently registered:2,no, +A5060063811,https://openalex.org/A5060063811,Florian Buchner,https://orcid.org/0000-0001-9440-1566,25,602,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:1; Persönlich haftender Gesellschafter:1,currently registered:2,no, +A5071929694,https://openalex.org/A5071929694,Frank Heidtmann,,3,16,direct_ude,University of Duisburg-Essen,2,Persönlich haftender Gesellschafter:2,currently registered:1; removed:1,no, +A5058553419,https://openalex.org/A5058553419,Franz-Josef Glandorf,,5,66,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:1; Inhaber:1,currently registered:1; removed:1,no, +A5081067232,https://openalex.org/A5081067232,Georg von Oepen,,2,0,child_of_ude,Rhein-Ruhr Institut für Sozialforschung und Politikberatung,2,Prokurist:5,currently registered:1; removed:1,no, +A5087443584,https://openalex.org/A5087443584,Gerhard Lackner,,10,266,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:4,currently registered:2,no, +A5074872047,https://openalex.org/A5074872047,Hans Josef Dohmen,https://orcid.org/0000-0003-0828-2324,102,1346,direct_ude,University of Duisburg-Essen,2,Prokurist:2,currently registered:2,no, +A5071612550,https://openalex.org/A5071612550,Hansjobst Hirschfelder,,2,1,child_of_ude,Institut für Energie- und Umwelttechnik,2,Geschäftsführer:3,currently registered:1; removed:1,no, +A5055774787,https://openalex.org/A5055774787,Heike Averbeck,,4,104,direct_ude,University of Duisburg-Essen,2,Prokurist:2,currently registered:2,no, +A5080287017,https://openalex.org/A5080287017,Heike Mauer,https://orcid.org/0000-0002-5597-2283,122,120,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:2,no, +A5087252344,https://openalex.org/A5087252344,Heike Siegert,,2,14,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:3,currently registered:2,no, +A5116888667,https://openalex.org/A5116888667,Heinrich Stork,,1,2,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:1; Liquidator:1,currently registered:1; removed:1,no, +A5034936069,https://openalex.org/A5034936069,Hendrik Kramer,,12,124,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:1; removed:1,no, +A5059829997,https://openalex.org/A5059829997,Herbert Sanders,,4,36,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,removed:2,no, +A5009182476,https://openalex.org/A5009182476,Hermann Nienhaus,https://orcid.org/0000-0002-6549-6188,143,2979,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:1; Persönlich haftender Gesellschafter:1,currently registered:2,no, +A5087499823,https://openalex.org/A5087499823,Holger Hilmer,,4,15,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,removed:2,no, +A5017579702,https://openalex.org/A5017579702,Holger Hirsch,,104,368,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:2,no, +A5106329054,https://openalex.org/A5106329054,Hülya Yildirim,,2,1,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2; Prokurist:1,currently registered:1; removed:1,no, +A5116866984,https://openalex.org/A5116866984,Hülya Yildirim,,1,0,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2; Prokurist:1,currently registered:1; removed:1,no, +A5083388613,https://openalex.org/A5083388613,Jakob Penner,,12,41,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:1; removed:1,no, +A5017110462,https://openalex.org/A5017110462,Jan Berends,https://orcid.org/0000-0003-4224-5455,3,58,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:4,currently registered:1; removed:1,no, +A5044443427,https://openalex.org/A5044443427,Jens Hämmerling,,6,20,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:2,no, +A5005124395,https://openalex.org/A5005124395,Johannes Köster,https://orcid.org/0000-0001-9818-9320,137,11545,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:2,no, +A5022044556,https://openalex.org/A5022044556,Johannes Köster,,12,611,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:2,no, +A5120888419,https://openalex.org/A5120888419,Johannes Köster,,1,0,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:2,no, +A5121626672,https://openalex.org/A5121626672,Johannes Köster,,1,0,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:2,no, +A5122765175,https://openalex.org/A5122765175,Johannes Köster,,1,0,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:2,no, +A5123007760,https://openalex.org/A5123007760,Johannes Köster,,2,0,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:2,no, +A5123186606,https://openalex.org/A5123186606,Johannes Köster,,2,0,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:2,no, +A5123260579,https://openalex.org/A5123260579,Johannes Köster,,1,0,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:2,no, +A5123387479,https://openalex.org/A5123387479,Johannes Köster,,2,0,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:2,no, +A5123477225,https://openalex.org/A5123477225,Johannes Köster,,1,0,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:2,no, +A5124078048,https://openalex.org/A5124078048,Johannes Köster,,1,0,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:2,no, +A5124781563,https://openalex.org/A5124781563,Johannes Köster,,2,0,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:2,no, +A5125090843,https://openalex.org/A5125090843,Johannes Köster,,1,0,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:2,no, +A5125141745,https://openalex.org/A5125141745,Johannes Köster,,1,0,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:2,no, +A5125388610,https://openalex.org/A5125388610,Johannes Köster,,1,0,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:2,no, +A5126295394,https://openalex.org/A5126295394,Johannes Köster,,1,0,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:2,no, +A5126796725,https://openalex.org/A5126796725,Johannes Köster,,4,0,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:2,no, +A5128643085,https://openalex.org/A5128643085,Johannes Köster,,2,0,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:2,no, +A5129873775,https://openalex.org/A5129873775,Johannes Köster,,2,0,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:2,no, +A5130620706,https://openalex.org/A5130620706,Johannes Köster,,1,0,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:2,no, +A5130740025,https://openalex.org/A5130740025,Johannes Köster,,1,0,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:2,no, +A5089418966,https://openalex.org/A5089418966,Johannes Wiebe,,3,15,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,removed:2,no, +A5103436086,https://openalex.org/A5103436086,Jonathan Herrmann,,2,220,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:2,no, +A5054049165,https://openalex.org/A5054049165,Judith Schröder,https://orcid.org/0000-0002-9916-8334,7,28,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:1; Liquidator:1; Prokurist:1,currently registered:1; removed:1,no, +A5111911281,https://openalex.org/A5111911281,Judith Wagner,,58,401,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2; Prokurist:1,currently registered:1; removed:1,no, +A5068324427,https://openalex.org/A5068324427,Jutta Walter,,2,1,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:3,removed:2,no, +A5017014003,https://openalex.org/A5017014003,Jörg Niemeyer,,5,14,direct_ude,University of Duisburg-Essen,2,Persönlich haftender Gesellschafter:1; Prokurist:1,currently registered:2,no, +A5093067464,https://openalex.org/A5093067464,Kai Schröer,,7,23,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:2,no, +A5103019792,https://openalex.org/A5103019792,Khanh Do,https://orcid.org/0000-0001-7834-3781,87,1267,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:4,currently registered:2,no, +A5050451281,https://openalex.org/A5050451281,Kristina Kirsch,,1,49,direct_ude,University of Duisburg-Essen,2,Prokurist:4,currently registered:2,no, +A5053330077,https://openalex.org/A5053330077,Lars Breuer,https://orcid.org/0000-0002-7797-9662,61,416,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:3,currently registered:1; removed:1,no, +A5123426135,https://openalex.org/A5123426135,Lars Breuer,,3,0,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:3,currently registered:1; removed:1,no, +A5047592898,https://openalex.org/A5047592898,Liane John,,3,75,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:1; removed:1,no, +A5006651872,https://openalex.org/A5006651872,Ludmilla Schumacher,,14,182,direct_ude,University of Duisburg-Essen,2,Prokurist:2; Geschäftsführer:1,currently registered:1; removed:1,no, +A5104440681,https://openalex.org/A5104440681,Manfred Baer,,17,480,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2; Prokurist:1,currently registered:2,no, +A5017950910,https://openalex.org/A5017950910,Manfred Mai,,117,398,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:1; Prokurist:1,currently registered:1; removed:1,no, +A5056975067,https://openalex.org/A5056975067,Marc Eulerich,https://orcid.org/0000-0002-9965-7584,275,2429,direct_ude,University of Duisburg-Essen,2,Liquidator:2; Geschäftsführer:1,currently registered:2,no, +A5113933991,https://openalex.org/A5113933991,Marc Eulerich,,5,92,direct_ude,University of Duisburg-Essen,2,Liquidator:2; Geschäftsführer:1,currently registered:2,no, +A5123580203,https://openalex.org/A5123580203,Marc Eulerich,,1,0,direct_ude,University of Duisburg-Essen,2,Liquidator:2; Geschäftsführer:1,currently registered:2,no, +A5128493173,https://openalex.org/A5128493173,Marc Eulerich,,1,0,direct_ude,University of Duisburg-Essen,2,Liquidator:2; Geschäftsführer:1,currently registered:2,no, +A5010126702,https://openalex.org/A5010126702,Marcus Urbani,,2,32,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2; Prokurist:2,currently registered:2,no, +A5111666539,https://openalex.org/A5111666539,Margit Schröder,,2,56,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:2,no, +A5112074473,https://openalex.org/A5112074473,Maria Schröder,,14,312,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:1; Prokurist:1,currently registered:2,no, +A5091405189,https://openalex.org/A5091405189,Marina Braun,,2,11,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2; Prokurist:1,currently registered:2,no, +A5019356146,https://openalex.org/A5019356146,Markus Deckert,,6,63,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:3,currently registered:2,no, +A5112653053,https://openalex.org/A5112653053,Markus Taube,https://orcid.org/0000-0003-1202-2023,100,1353,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:3,currently registered:2,no, +A5032578309,https://openalex.org/A5032578309,Martin Hermes,,2,47,direct_ude,University of Duisburg-Essen,2,Prokurist:2; Geschäftsführer:1,removed:2,no, +A5044199100,https://openalex.org/A5044199100,Martin Mittendorff,https://orcid.org/0000-0003-3998-2518,120,2075,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:2,no, +A5110287782,https://openalex.org/A5110287782,Martin Panitz,,1,40,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:2,no, +A5047010496,https://openalex.org/A5047010496,Matthias Jeschke,https://orcid.org/0000-0001-5110-2080,13,130,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:1; Inhaber:1,currently registered:2,no, +A5123364852,https://openalex.org/A5123364852,Matthias Jeschke,,1,1,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:1; Inhaber:1,currently registered:2,no, +A5047692972,https://openalex.org/A5047692972,Matthias Matthes,,1,7,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:1; Prokurist:1,currently registered:2,no, +A5053309957,https://openalex.org/A5053309957,Melanie Hirt,https://orcid.org/0000-0003-2085-6124,1,17,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:1; Liquidator:1,currently registered:2,no, +A5051242665,https://openalex.org/A5051242665,Michael Klocke,,2,3,direct_ude,University of Duisburg-Essen,2,Prokurist:3; Geschäftsführer:1,currently registered:2,no, +A5081701545,https://openalex.org/A5081701545,Michael Leineweber,,2,135,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2; Liquidator:1; Prokurist:1,currently registered:1; removed:1,no, +A5071583742,https://openalex.org/A5071583742,Michael Ruwe,,1,29,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:1; Inhaber:1,currently registered:2,no, +A5110739861,https://openalex.org/A5110739861,Michael Westermann,,2,71,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:1; Liquidator:1,currently registered:1; removed:1,no, +A5026680251,https://openalex.org/A5026680251,Michaela Wirtz,,20,382,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:1; Inhaber:1,currently registered:1; removed:1,no, +A5121300831,https://openalex.org/A5121300831,Michaela Wirtz,,1,0,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:1; Inhaber:1,currently registered:1; removed:1,no, +A5012499865,https://openalex.org/A5012499865,Muhammad Aslam,https://orcid.org/0000-0002-8529-4217,120,1455,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:4,currently registered:2,no, +A5083269491,https://openalex.org/A5083269491,Nico Hahn,https://orcid.org/0000-0003-0554-0076,12,22,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:2,no, +A5029227325,https://openalex.org/A5029227325,Nicole Unger,https://orcid.org/0000-0002-5161-8711,114,1781,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:2,no, +A5049371415,https://openalex.org/A5049371415,Nina Bauer,https://orcid.org/0009-0003-6137-1585,33,529,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:1; Prokurist:1,currently registered:2,no, +A5011621994,https://openalex.org/A5011621994,Nina Schulze,,36,1034,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:1; Inhaber:1,currently registered:2,no, +A5058184980,https://openalex.org/A5058184980,Nina Völkel,,3,22,direct_ude,University of Duisburg-Essen,2,Prokurist:2; Inhaber:1,currently registered:2,no, +A5082158679,https://openalex.org/A5082158679,Olga Just,,1,26,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:3,removed:2,no, +A5077536077,https://openalex.org/A5077536077,Oliver Ehret,,11,201,child_of_ude,The Hydrogen and Fuel Cell Center,2,Geschäftsführer:2,currently registered:2,no, +A5035410961,https://openalex.org/A5035410961,Oliver Kamp,https://orcid.org/0000-0001-7593-4471,38,762,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:1; Prokurist:1,currently registered:1; removed:1,no, +A5010051651,https://openalex.org/A5010051651,Pascal Krahmer,,1,17,direct_ude,University of Duisburg-Essen,2,Liquidator:2; Geschäftsführer:1,removed:2,no, +A5101791113,https://openalex.org/A5101791113,Patrick May,https://orcid.org/0000-0003-1311-6267,4,81,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:3,currently registered:1; removed:1,no, +A5025829015,https://openalex.org/A5025829015,Patrick Thiel,https://orcid.org/0000-0001-5838-4658,6,9,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:1; Inhaber:1,removed:2,no, +A5089882657,https://openalex.org/A5089882657,Paul Graf,,4,25,direct_ude,University of Duisburg-Essen,2,Prokurist:3,currently registered:2,no, +A5020390680,https://openalex.org/A5020390680,Peter Pfänder,,3,1,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:1; Liquidator:1,currently registered:1; removed:1,no, +A5094782607,https://openalex.org/A5094782607,Peter Schroth,,1,0,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2; Inhaber:1,currently registered:2,no, +A5082288318,https://openalex.org/A5082288318,Peter Waldmann,,3,17,direct_ude,University of Duisburg-Essen,2,Persönlich haftender Gesellschafter:1; Vorstand:1,currently registered:2,no, +A5050553334,https://openalex.org/A5050553334,Philipp Jahn,https://orcid.org/0000-0003-2062-1421,4,51,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:1; Persönlich haftender Gesellschafter:1,removed:2,no, +A5100405791,https://openalex.org/A5100405791,Ping Zhang,https://orcid.org/0000-0002-0647-0375,31,67,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:1; removed:1,no, +A5046113011,https://openalex.org/A5046113011,Renate Petersen,,15,37,direct_ude,University of Duisburg-Essen,2,Liquidator:2; Geschäftsführer:1,currently registered:2,no, +A5020998418,https://openalex.org/A5020998418,Robert Haensel,,1,24,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:1; Liquidator:1,currently registered:1; removed:1,no, +A5047093707,https://openalex.org/A5047093707,Robert Schaefer,https://orcid.org/0000-0002-1669-2086,223,4378,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:2,no, +A5038123873,https://openalex.org/A5038123873,Roland Schwarzer,https://orcid.org/0000-0002-7497-5180,59,736,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:2,no, +A5001845440,https://openalex.org/A5001845440,Rouven Malecki,,1,9,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:1; removed:1,no, +A5019419369,https://openalex.org/A5019419369,Rudi Schäfer,https://orcid.org/0000-0002-8987-7313,63,962,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:1; removed:1,no, +A5070249489,https://openalex.org/A5070249489,Sascha Maassen,https://orcid.org/0000-0002-1022-0563,11,106,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:1; removed:1,no, +A5064200928,https://openalex.org/A5064200928,Sebastian Eck,https://orcid.org/0000-0002-1931-1023,4,3,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:3,currently registered:2,no, +A5128723742,https://openalex.org/A5128723742,Sebastian Eck,,1,0,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:3,currently registered:2,no, +A5034621075,https://openalex.org/A5034621075,Sebastian Just,,7,165,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:3,removed:2,no, +A5083681670,https://openalex.org/A5083681670,Sebastian Urban,,4,64,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2; Liquidator:1,currently registered:1; removed:1,no, +A5021113981,https://openalex.org/A5021113981,Sebastian Willen,,8,143,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2; Liquidator:1,removed:2,no, +A5107669141,https://openalex.org/A5107669141,Sebastian Willen,,1,0,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2; Liquidator:1,removed:2,no, +A5076891196,https://openalex.org/A5076891196,Silvia Ernst,,4,59,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:2,no, +A5108495045,https://openalex.org/A5108495045,Simone Schmid,,1,5,direct_ude,University of Duisburg-Essen,2,Inhaber:1; Prokurist:1,currently registered:1; removed:1,no, +A5077785097,https://openalex.org/A5077785097,Stefan Eßer,https://orcid.org/0000-0002-3625-9650,234,5993,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:1; Liquidator:1; Persönlich haftender Gesellschafter:1,currently registered:1; removed:1,no, +A5084459124,https://openalex.org/A5084459124,Stefan Felder,https://orcid.org/0000-0002-5029-7274,241,3781,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2; Prokurist:1,currently registered:2,no, +A5024987770,https://openalex.org/A5024987770,Stefan Konermann,,2,44,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:3; Prokurist:1,currently registered:2,no, +A5061640496,https://openalex.org/A5061640496,Stefan Westermann,https://orcid.org/0000-0001-6921-9113,88,4333,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:1; removed:1,no, +A5006353407,https://openalex.org/A5006353407,Stefanie Hanke,https://orcid.org/0000-0002-9952-1919,87,1215,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:1; Prokurist:1,currently registered:1; removed:1,no, +A5054932604,https://openalex.org/A5054932604,Steffen Köcher,,6,137,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:4,currently registered:2,no, +A5089406272,https://openalex.org/A5089406272,Stephan Faust,,4,111,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2; Prokurist:1,currently registered:2,no, +A5060126568,https://openalex.org/A5060126568,Stephan Grimm,,2,6,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:1; Prokurist:1,currently registered:2,no, +A5003700004,https://openalex.org/A5003700004,Sven Brandau,https://orcid.org/0000-0002-2702-4163,288,14467,direct_ude,University of Duisburg-Essen,2,Prokurist:3; Geschäftsführer:1,currently registered:2,no, +A5125629313,https://openalex.org/A5125629313,Sven Brandau,,1,0,direct_ude,University of Duisburg-Essen,2,Prokurist:3; Geschäftsführer:1,currently registered:2,no, +A5128284510,https://openalex.org/A5128284510,Sven Brandau,,1,0,direct_ude,University of Duisburg-Essen,2,Prokurist:3; Geschäftsführer:1,currently registered:2,no, +A5002483227,https://openalex.org/A5002483227,Sven Frost,,13,143,direct_ude,University of Duisburg-Essen,2,Inhaber:2,currently registered:2,no, +A5040840923,https://openalex.org/A5040840923,Sven Manske,https://orcid.org/0000-0002-5098-1682,53,332,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,removed:2,no, +A5094303760,https://openalex.org/A5094303760,Thomas Droll,,1,0,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:2,no, +A5026909134,https://openalex.org/A5026909134,Thomas Lodzinski,,1,4,direct_ude,University of Duisburg-Essen,2,Prokurist:2,currently registered:2,no, +A5009253164,https://openalex.org/A5009253164,Thomas Mühlmann,,1,0,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:3,currently registered:2,no, +A5012875198,https://openalex.org/A5012875198,Thorsten Schultze,,10,11,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:2,no, +A5078030262,https://openalex.org/A5078030262,Thorsten Schultze,https://orcid.org/0009-0007-3690-8714,64,398,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:2,no, +A5069586127,https://openalex.org/A5069586127,Tobias Altmann,https://orcid.org/0000-0001-7294-7808,71,373,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2; Liquidator:1,currently registered:1; removed:1,no, +A5130207347,https://openalex.org/A5130207347,Tobias Hackel,,1,0,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:2,no, +A5034475438,https://openalex.org/A5034475438,Tobias Hesse,,15,82,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:1; Liquidator:1,currently registered:1; removed:1,no, +A5027780655,https://openalex.org/A5027780655,Tobias Rasche,,3,7,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:2,no, +A5012619076,https://openalex.org/A5012619076,Torsten Ulmer,,4,5,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:1; removed:1,no, +A5079685335,https://openalex.org/A5079685335,Ulrich Görtz,https://orcid.org/0000-0001-5584-0558,86,1096,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2; Liquidator:1,currently registered:1; removed:1,no, +A5055349387,https://openalex.org/A5055349387,Ulrich Schroeder,,6,106,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:1; Prokurist:1,currently registered:2,no, +A5091133675,https://openalex.org/A5091133675,Ulrike Behrens,,2,0,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:4,currently registered:2,no, +A5039550945,https://openalex.org/A5039550945,Umut Kaya,,6,20,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:3,currently registered:1; removed:1,no, +A5038671684,https://openalex.org/A5038671684,Ursula Renner,,4,1,direct_ude,University of Duisburg-Essen,2,Prokurist:2,currently registered:2,no, +A5053345209,https://openalex.org/A5053345209,Ursula Renner,,2,1,direct_ude,University of Duisburg-Essen,2,Prokurist:2,currently registered:2,no, +A5059841395,https://openalex.org/A5059841395,Valerie Lemke,,8,19,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2; Liquidator:1,currently registered:1; removed:1,no, +A5062324759,https://openalex.org/A5062324759,Verena Schröder,,7,61,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:1; Prokurist:1,currently registered:2,no, +A5094421324,https://openalex.org/A5094421324,Volker Schanz,,1,0,direct_ude,University of Duisburg-Essen,2,Inhaber:1; Persönlich haftender Gesellschafter:1,currently registered:1; removed:1,no, +A5101821492,https://openalex.org/A5101821492,Wei Cheng,https://orcid.org/0000-0003-4369-6530,27,100,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:4; Liquidator:1,removed:2,no, +A5055278591,https://openalex.org/A5055278591,Wiebke Hansen,https://orcid.org/0000-0002-6020-0886,137,4810,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:1; removed:1,no, +A5053083092,https://openalex.org/A5053083092,Wolfgang Burghardt,,59,845,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:1; Inhaber:1,currently registered:2,no, +A5026378357,https://openalex.org/A5026378357,Wolfgang Löhr,,12,154,direct_ude,University of Duisburg-Essen,2,Inhaber:1; Prokurist:1,currently registered:1; removed:1,no, +A5071475574,https://openalex.org/A5071475574,Wu Chen,https://orcid.org/0000-0002-1835-7564,426,8138,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:1; removed:1,no, +A5092103086,https://openalex.org/A5092103086,Xiaoyu Zhang,https://orcid.org/0000-0002-0565-6370,4,3,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:3,currently registered:2,no, +A5033912226,https://openalex.org/A5033912226,Yao Li,https://orcid.org/0000-0002-1151-7369,2,19,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:3,currently registered:1; removed:1,no, +A5130026761,https://openalex.org/A5130026761,Yao Wang,,1,0,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:2,currently registered:2,no, +A5015043554,https://openalex.org/A5015043554,Yvonne Krause,,7,232,direct_ude,University of Duisburg-Essen,2,Geschäftsführer:3,currently registered:1; removed:1,no, +A5082223886,https://openalex.org/A5082223886,Achim Koch,https://orcid.org/0000-0002-1616-4873,134,1632,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:3,currently registered:2; removed:1,no, +A5041164084,https://openalex.org/A5041164084,Alexander Diel,https://orcid.org/0000-0002-4362-8856,32,281,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:3; Liquidator:1,currently registered:2; removed:1,no, +A5082773640,https://openalex.org/A5082773640,Alexander Heinemann,,3,16,direct_ude,University of Duisburg-Essen,3,Liquidator:3; Geschäftsführer:2,removed:3,no, +A5077174863,https://openalex.org/A5077174863,Alexander Oldenburger,,2,0,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:3; Inhaber:1,currently registered:2; removed:1,no, +A5041217146,https://openalex.org/A5041217146,Alexander Ries,,6,87,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:2; Persönlich haftender Gesellschafter:2,currently registered:3,no, +A5017791085,https://openalex.org/A5017791085,Andreas Büchter,https://orcid.org/0000-0001-8411-1004,103,303,direct_ude,University of Duisburg-Essen,3,Persönlich haftender Gesellschafter:2; Geschäftsführer:1,currently registered:3,no, +A5030807249,https://openalex.org/A5030807249,Andreas Kunzmann,,34,802,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:3; Prokurist:2,currently registered:2; removed:1,no, +A5080262061,https://openalex.org/A5080262061,Andreas Stang,https://orcid.org/0000-0001-6363-9061,630,38057,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:2; Prokurist:1,currently registered:2; removed:1,no, +A5102144950,https://openalex.org/A5102144950,Andreas Stang,,8,51,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:2; Prokurist:1,currently registered:2; removed:1,no, +A5032121745,https://openalex.org/A5032121745,Andrej Klassen,,4,3,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:3; Liquidator:2,removed:2; currently registered:1,no, +A5063166257,https://openalex.org/A5063166257,Anja Steinbach,https://orcid.org/0000-0002-3642-2374,106,1564,direct_ude,University of Duisburg-Essen,3,Prokurist:4,currently registered:2; removed:1,no, +A5102461913,https://openalex.org/A5102461913,Anja Steinbach,,6,1,direct_ude,University of Duisburg-Essen,3,Prokurist:4,currently registered:2; removed:1,no, +A5064009668,https://openalex.org/A5064009668,Barbara Jeschke,,12,332,direct_ude,University of Duisburg-Essen,3,Inhaber:3; Geschäftsführer:1,currently registered:2; removed:1,no, +A5015901810,https://openalex.org/A5015901810,Benjamin Köhler,,5,81,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:3; Liquidator:1,currently registered:2; removed:1,no, +A5116789043,https://openalex.org/A5116789043,Benjamin Schröer,,4,2,direct_ude,University of Duisburg-Essen,3,Prokurist:2; Geschäftsführer:1,currently registered:3,no, +A5053327457,https://openalex.org/A5053327457,Bernd Schweiger,https://orcid.org/0000-0002-8037-2159,97,1240,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:4,removed:3,no, +A5123200218,https://openalex.org/A5123200218,Bernd Schweiger,,3,0,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:4,removed:3,no, +A5103078784,https://openalex.org/A5103078784,Bernd Weiß,https://orcid.org/0000-0002-1176-8408,92,738,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:2; Prokurist:1,currently registered:2; removed:1,no, +A5123007937,https://openalex.org/A5123007937,Bernd Weiß,,7,0,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:2; Prokurist:1,currently registered:2; removed:1,no, +A5030980984,https://openalex.org/A5030980984,Carsten Reinhardt,https://orcid.org/0000-0003-2905-1920,160,5068,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:5,currently registered:2; removed:1,no, +A5037448733,https://openalex.org/A5037448733,Christian Marschner,,5,0,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:2; Prokurist:1,currently registered:3,no, +A5103899403,https://openalex.org/A5103899403,Christian Mette,,19,252,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:2; Prokurist:1,currently registered:2; removed:1,no, +A5103255017,https://openalex.org/A5103255017,Christian Preuss,https://orcid.org/0009-0003-9837-0746,25,141,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:3,currently registered:2; removed:1,no, +A5109008810,https://openalex.org/A5109008810,Christine Ritter,,1,1,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:3,currently registered:3,no, +A5032774881,https://openalex.org/A5032774881,Christopher Reimann,,3,4,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:3,currently registered:2; removed:1,no, +A5109152416,https://openalex.org/A5109152416,Claudia Frank,,24,586,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:2; Prokurist:1,currently registered:3,no, +A5000724228,https://openalex.org/A5000724228,Claudia Freimuth,,2,7,direct_ude,University of Duisburg-Essen,3,Prokurist:3,currently registered:3,no, +A5015122896,https://openalex.org/A5015122896,Cornelius Grimm,,6,27,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:4,currently registered:2; removed:1,no, +A5035540236,https://openalex.org/A5035540236,Daniel Erni,https://orcid.org/0000-0002-1467-6373,398,5023,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:5,currently registered:2; removed:1,no, +A5031147249,https://openalex.org/A5031147249,Daniel Hering,https://orcid.org/0000-0002-5436-4753,326,18868,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:3; Inhaber:1; Prokurist:1,currently registered:3,no, +A5101579321,https://openalex.org/A5101579321,Daniel Wendt,https://orcid.org/0000-0001-7257-444X,246,5268,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:4,currently registered:2; removed:1,no, +A5104534944,https://openalex.org/A5104534944,Daniel Wendt,,1,1,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:4,currently registered:2; removed:1,no, +A5041645777,https://openalex.org/A5041645777,Dennis Meier,https://orcid.org/0000-0002-8623-6705,205,5614,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:4,currently registered:3,no, +A5072771601,https://openalex.org/A5072771601,Dietrich Koch,,3,129,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:5,currently registered:3,no, +A5123869890,https://openalex.org/A5123869890,Dirk Hermann,,1,0,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:2; Liquidator:1,removed:2; currently registered:1,no, +A5110137004,https://openalex.org/A5110137004,Erika König,,2,28,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:1; Liquidator:1; Prokurist:1,removed:2; currently registered:1,no, +A5029058702,https://openalex.org/A5029058702,Eva Berndt,,3,70,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:2; Inhaber:1,currently registered:2; removed:1,no, +A5114036991,https://openalex.org/A5114036991,Florian Kühne,,9,50,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:2; Liquidator:1; Persönlich haftender Gesellschafter:1,currently registered:2; removed:1,no, +A5041694590,https://openalex.org/A5041694590,Frank Kleemann,https://orcid.org/0000-0002-3588-7022,106,1097,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:3; Prokurist:1,currently registered:2; removed:1,no, +A5114433523,https://openalex.org/A5114433523,Frank Kleemann,,7,2,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:3; Prokurist:1,currently registered:2; removed:1,no, +A5023299755,https://openalex.org/A5023299755,Friedrich Jaeger,,4,1,child_of_ude,Institute for Advanced Study in the Humanities Essen,3,Geschäftsführer:4,removed:3,no, +A5111518819,https://openalex.org/A5111518819,Fritz Götz,,18,627,direct_ude,University of Duisburg-Essen,3,Prokurist:3,currently registered:3,no, +A5110262484,https://openalex.org/A5110262484,Fritz Sörgel,,247,7546,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:2; Prokurist:1,currently registered:2; removed:1,no, +A5058950547,https://openalex.org/A5058950547,Georg Hein,,59,192,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:2; Liquidator:1,removed:2; currently registered:1,no, +A5086068040,https://openalex.org/A5086068040,Gerhard Bäcker,,138,973,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:3; Prokurist:1,currently registered:3,no, +A5066679330,https://openalex.org/A5066679330,Gerhard Starke,https://orcid.org/0000-0001-5985-173X,85,1619,direct_ude,University of Duisburg-Essen,3,Prokurist:2; Geschäftsführer:1,currently registered:3,no, +A5015113224,https://openalex.org/A5015113224,Gertrud Schmitz,https://orcid.org/0000-0002-3373-7901,74,270,direct_ude,University of Duisburg-Essen,3,Prokurist:4,currently registered:3,no, +A5037573739,https://openalex.org/A5037573739,Grit Hoffmann,,6,50,direct_ude,University of Duisburg-Essen,3,Prokurist:4,currently registered:2; removed:1,no, +A5065313412,https://openalex.org/A5065313412,Guido Sieber,https://orcid.org/0000-0002-7966-5368,15,152,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:5; Prokurist:2,currently registered:3,no, +A5090395061,https://openalex.org/A5090395061,Heiko Jacobs,https://orcid.org/0000-0003-1261-6593,36,1342,direct_ude,University of Duisburg-Essen,3,Liquidator:2; Prokurist:1,removed:2; currently registered:1,no, +A5025346693,https://openalex.org/A5025346693,Hendrik Schröder,,119,684,direct_ude,University of Duisburg-Essen,3,Inhaber:2; Geschäftsführer:1,currently registered:3,no, +A5007315178,https://openalex.org/A5007315178,Holger Kraus,,2,68,child_of_ude,The Hydrogen and Fuel Cell Center,3,Prokurist:2; Geschäftsführer:1; Inhaber:1,currently registered:3,no, +A5033169519,https://openalex.org/A5033169519,Hubert Kuhn,https://orcid.org/0000-0001-5122-2189,2,0,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:1; Liquidator:1; Prokurist:1,currently registered:2; removed:1,no, +A5111939993,https://openalex.org/A5111939993,Jan Busch,,30,712,direct_ude,University of Duisburg-Essen,3,Prokurist:2; Geschäftsführer:1,currently registered:3,no, +A5075848932,https://openalex.org/A5075848932,Jan Dinter,,12,38,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:3,currently registered:3,no, +A5087145453,https://openalex.org/A5087145453,Joachim Prinz,,55,847,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:3; Liquidator:2,removed:2; currently registered:1,no, +A5031265819,https://openalex.org/A5031265819,Jochen Heß,https://orcid.org/0000-0002-9902-5368,89,871,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:3,removed:2; currently registered:1,no, +A5123334300,https://openalex.org/A5123334300,Jochen Heß,,2,0,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:3,removed:2; currently registered:1,no, +A5001673346,https://openalex.org/A5001673346,Jochen Türk,,24,208,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:1; Inhaber:1; Prokurist:1,currently registered:2; removed:1,no, +A5128463492,https://openalex.org/A5128463492,Johannes Breuer,,2,0,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:2; Inhaber:1,currently registered:2; removed:1,no, +A5129911625,https://openalex.org/A5129911625,Johannes Breuer,,4,0,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:2; Inhaber:1,currently registered:2; removed:1,no, +A5111266639,https://openalex.org/A5111266639,Johannes Jäger,https://orcid.org/0009-0003-3697-0973,14,34,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:3; Prokurist:1,currently registered:3,no, +A5031838990,https://openalex.org/A5031838990,Johannes Oertel,https://orcid.org/0000-0003-2621-8422,8,111,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:3; Liquidator:2,currently registered:3,no, +A5042511428,https://openalex.org/A5042511428,Johannes Specht,,9,239,direct_ude,University of Duisburg-Essen,3,Prokurist:2; Geschäftsführer:1,currently registered:3,no, +A5091734620,https://openalex.org/A5091734620,Jürgen Kampf,https://orcid.org/0000-0001-8370-6882,31,117,direct_ude,University of Duisburg-Essen,3,Prokurist:2; Geschäftsführer:1,currently registered:2; removed:1,no, +A5046205825,https://openalex.org/A5046205825,Katharina König,,2,4,direct_ude,University of Duisburg-Essen,3,Prokurist:3; Geschäftsführer:2,currently registered:2; removed:1,no, +A5020102768,https://openalex.org/A5020102768,Katja Bergmann,,3,45,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:1; Liquidator:1; Persönlich haftender Gesellschafter:1; Prokurist:1,currently registered:2; removed:1,no, +A5045432311,https://openalex.org/A5045432311,Kerstin Köhler,,3,61,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:2; Prokurist:2,currently registered:2; removed:1,no, +A5020367700,https://openalex.org/A5020367700,Kerstin Schmitz,,2,71,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:2; Prokurist:1,currently registered:3,no, +A5029238621,https://openalex.org/A5029238621,Kristina Wagner,,2,207,direct_ude,University of Duisburg-Essen,3,Prokurist:3; Geschäftsführer:1,currently registered:3,no, +A5112896037,https://openalex.org/A5112896037,Lina Weber,,2,5,direct_ude,University of Duisburg-Essen,3,Prokurist:2; Geschäftsführer:1,currently registered:2; removed:1,no, +A5113914021,https://openalex.org/A5113914021,Marc Stevens,,63,1318,direct_ude,University of Duisburg-Essen,3,Prokurist:3; Geschäftsführer:1,currently registered:2; removed:1,no, +A5050357599,https://openalex.org/A5050357599,Marcel Walter,,6,3,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:2; Prokurist:1,removed:2; currently registered:1,no, +A5049325057,https://openalex.org/A5049325057,Markus May,https://orcid.org/0000-0003-3869-9681,25,109,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:3,currently registered:3,no, +A5093034515,https://openalex.org/A5093034515,Martin Kurka,,1,1,direct_ude,University of Duisburg-Essen,3,Prokurist:4,currently registered:2; removed:1,no, +A5113019777,https://openalex.org/A5113019777,Martin Kurka,,2,0,direct_ude,University of Duisburg-Essen,3,Prokurist:4,currently registered:2; removed:1,no, +A5095550954,https://openalex.org/A5095550954,Martin Lücke,,1,0,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:4,currently registered:3,no, +A5074594733,https://openalex.org/A5074594733,Martin Schild,,7,189,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:5; Liquidator:1,removed:2; currently registered:1,no, +A5061363376,https://openalex.org/A5061363376,Martin Teufel,https://orcid.org/0000-0003-2120-1840,431,9270,direct_ude,University of Duisburg-Essen,3,Prokurist:2; Geschäftsführer:1,currently registered:3,no, +A5063762172,https://openalex.org/A5063762172,Martina Sauer,https://orcid.org/0000-0002-4787-3189,120,239,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:2; Prokurist:1,currently registered:3,no, +A5123363823,https://openalex.org/A5123363823,Martina Schmid,,1,0,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:3,currently registered:2; removed:1,no, +A5103929943,https://openalex.org/A5103929943,Mathias Kamp,,3,45,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:3,currently registered:3,no, +A5049457314,https://openalex.org/A5049457314,Maximilian Krug,https://orcid.org/0000-0002-8979-3099,27,143,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:2; Inhaber:1,currently registered:2; removed:1,no, +A5031978837,https://openalex.org/A5031978837,Maximilian Pohl,,16,5,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:3; Liquidator:1,currently registered:3,no, +A5045722123,https://openalex.org/A5045722123,Maximilian Pohl,,2,0,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:3; Liquidator:1,currently registered:3,no, +A5004156626,https://openalex.org/A5004156626,Melanie Fiedler,,2,9,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:3,currently registered:3,no, +A5042895787,https://openalex.org/A5042895787,Melanie Fiedler,,82,1691,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:3,currently registered:3,no, +A5124761678,https://openalex.org/A5124761678,Melanie Fiedler,,1,0,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:3,currently registered:3,no, +A5024170181,https://openalex.org/A5024170181,Melanie Geisler,,1,569,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:3,currently registered:3,no, +A5109228350,https://openalex.org/A5109228350,Michael Küper,,25,1095,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:1; Inhaber:1; Liquidator:1,currently registered:2; removed:1,no, +A5113345650,https://openalex.org/A5113345650,Michael Pfitzner,,25,53,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:1; Inhaber:1; Prokurist:1,currently registered:2; removed:1,no, +A5120461949,https://openalex.org/A5120461949,Michael Staiger,https://orcid.org/0009-0002-0975-6392,1,0,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:4; Prokurist:1,currently registered:2; removed:1,no, +A5086049958,https://openalex.org/A5086049958,Michael Thome,https://orcid.org/0009-0002-0525-7289,7,18,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:3,currently registered:3,no, +A5009526667,https://openalex.org/A5009526667,Michael Wittlinger,,16,534,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:3; Prokurist:1,currently registered:3,no, +A5045457334,https://openalex.org/A5045457334,Mohammad Sharif,https://orcid.org/0000-0002-1241-007X,55,712,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:5,currently registered:2; removed:1,no, +A5117379408,https://openalex.org/A5117379408,Mohammad Sharif,,2,1,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:5,currently registered:2; removed:1,no, +A5082612844,https://openalex.org/A5082612844,Nadine Schröder,https://orcid.org/0000-0001-6650-4656,10,45,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:3; Liquidator:1,currently registered:3,no, +A5077392508,https://openalex.org/A5077392508,Oliver Blatt,,1,16,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:3,currently registered:2; removed:1,no, +A5006686937,https://openalex.org/A5006686937,Oliver Gries,,130,587,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:3,currently registered:3,no, +A5016035673,https://openalex.org/A5016035673,Peter Roch,,15,25,direct_ude,University of Duisburg-Essen,3,Prokurist:6; Geschäftsführer:1,removed:2; currently registered:1,no, +A5091927263,https://openalex.org/A5091927263,Petra Denk,,1,0,child_of_ude,Institut für Energie- und Umwelttechnik,3,Geschäftsführer:2; Prokurist:1,currently registered:2; removed:1,no, +A5110542142,https://openalex.org/A5110542142,Phillip Becker,,1,0,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:4,removed:2; currently registered:1,no, +A5002710564,https://openalex.org/A5002710564,Pia Buck,,2,1,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:2; Persönlich haftender Gesellschafter:1,removed:2; currently registered:1,no, +A5034120685,https://openalex.org/A5034120685,Reinhard Lechner,,14,21,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:3,currently registered:3,no, +A5102665422,https://openalex.org/A5102665422,Sandy Müller,,3,17,direct_ude,University of Duisburg-Essen,3,Inhaber:2; Geschäftsführer:1,currently registered:3,no, +A5103951416,https://openalex.org/A5103951416,Sebastian Otten,,11,150,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:3; Prokurist:1,currently registered:3,no, +A5028042436,https://openalex.org/A5028042436,Sebastian Pfeifer,,4,12,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:2; Inhaber:1; Prokurist:1,currently registered:2; removed:1,no, +A5042525920,https://openalex.org/A5042525920,Sebastian Schröer,,32,118,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:3,currently registered:2; removed:1,no, +A5055485518,https://openalex.org/A5055485518,Simone Schwarz,,33,335,direct_ude,University of Duisburg-Essen,3,Liquidator:2; Inhaber:1,removed:3,no, +A5024212155,https://openalex.org/A5024212155,Stefan Hermes,https://orcid.org/0000-0001-7487-3945,33,145,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:3; Liquidator:1,currently registered:2; removed:1,no, +A5114514120,https://openalex.org/A5114514120,Stefan Hermes,,1,0,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:3; Liquidator:1,currently registered:2; removed:1,no, +A5049577078,https://openalex.org/A5049577078,Stefan Kleine,,9,349,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:3,currently registered:2; removed:1,no, +A5032635842,https://openalex.org/A5032635842,Stefan Reining,https://orcid.org/0000-0002-5295-8101,18,140,direct_ude,University of Duisburg-Essen,3,Prokurist:3; Geschäftsführer:2,currently registered:3,no, +A5060348004,https://openalex.org/A5060348004,Stefan Thür,,1,9,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:2; Prokurist:2,currently registered:3,no, +A5091427277,https://openalex.org/A5091427277,Steffen Jost,,11,1048,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:2; Persönlich haftender Gesellschafter:1,currently registered:3,no, +A5022354254,https://openalex.org/A5022354254,Steffen Spitzner,,17,5,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:6,currently registered:3,no, +A5009094490,https://openalex.org/A5009094490,Thomas Mönnig,,7,0,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:2; Liquidator:2,currently registered:2; removed:1,no, +A5054911713,https://openalex.org/A5054911713,Thomas Pfeil,,3,0,child_of_ude,Institut für Energie- und Umwelttechnik,3,Geschäftsführer:3; Inhaber:2,currently registered:3,no, +A5017921085,https://openalex.org/A5017921085,Thomas Zadow,,1,34,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:5,removed:3,no, +A5085076144,https://openalex.org/A5085076144,Tim Schulte,,6,34,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:3,currently registered:3,no, +A5009664226,https://openalex.org/A5009664226,Ulrich Hecker,,4,140,direct_ude,University of Duisburg-Essen,3,Liquidator:2; Geschäftsführer:1,currently registered:2; removed:1,no, +A5034434556,https://openalex.org/A5034434556,Ulrich Westphal,,270,6262,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:1; Persönlich haftender Gesellschafter:1; Prokurist:1,currently registered:2; removed:1,no, +A5075663980,https://openalex.org/A5075663980,Ursula Neumann,https://orcid.org/0000-0001-8578-5641,4,6,direct_ude,University of Duisburg-Essen,3,Persönlich haftender Gesellschafter:2; Geschäftsführer:1; Liquidator:1; Prokurist:1,currently registered:2; removed:1,no, +A5019626840,https://openalex.org/A5019626840,Vanessa Fischer,https://orcid.org/0000-0002-2601-3825,8,28,direct_ude,University of Duisburg-Essen,3,Prokurist:2; Geschäftsführer:1,currently registered:3,no, +A5035200670,https://openalex.org/A5035200670,Viktor Fuchs,,3,3,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:3,currently registered:3,no, +A5100357649,https://openalex.org/A5100357649,Xiaoyu Wu,https://orcid.org/0000-0003-2985-0917,101,442,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:3,currently registered:2; removed:1,no, +A5108120374,https://openalex.org/A5108120374,Xiaoyu Wu,https://orcid.org/0009-0002-5426-5373,38,688,direct_ude,University of Duisburg-Essen,3,Geschäftsführer:3,currently registered:2; removed:1,no, +A5014094111,https://openalex.org/A5014094111,Alexandra König,https://orcid.org/0000-0003-1439-1156,161,1148,direct_ude,University of Duisburg-Essen,4,Geschäftsführer:2; Persönlich haftender Gesellschafter:1; Prokurist:1,currently registered:3; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5076816539,https://openalex.org/A5076816539,Andrea Wasmuth,,1,25,direct_ude,University of Duisburg-Essen,4,Geschäftsführer:4,currently registered:2; removed:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5013535629,https://openalex.org/A5013535629,Andreas Hölzer,,19,1224,direct_ude,University of Duisburg-Essen,4,Geschäftsführer:3; Liquidator:1,currently registered:4,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5017514329,https://openalex.org/A5017514329,André Busch,https://orcid.org/0000-0002-7440-9015,64,911,direct_ude,University of Duisburg-Essen,4,Geschäftsführer:3; Prokurist:1,currently registered:3; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5007643000,https://openalex.org/A5007643000,Anke Walendzik,,4,3,direct_ude,University of Duisburg-Essen,4,Prokurist:4; Geschäftsführer:1,currently registered:2; removed:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5012054701,https://openalex.org/A5012054701,Anke Walendzik,https://orcid.org/0000-0001-9687-7525,93,199,direct_ude,University of Duisburg-Essen,4,Prokurist:4; Geschäftsführer:1,currently registered:2; removed:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5037434171,https://openalex.org/A5037434171,Aylin Yildirim,,2,203,child_of_ude,Institut für Energie- und Umwelttechnik,4,Geschäftsführer:4,currently registered:3; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5062438505,https://openalex.org/A5062438505,Bettina Kunz,,1,72,direct_ude,University of Duisburg-Essen,4,Prokurist:3; Geschäftsführer:2; Liquidator:1,currently registered:3; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5086977297,https://openalex.org/A5086977297,Björn Sossong,,2,7,direct_ude,University of Duisburg-Essen,4,Geschäftsführer:3; Prokurist:1,currently registered:4,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5067354713,https://openalex.org/A5067354713,Carmen Wolf,https://orcid.org/0000-0001-9362-942X,3,43,child_of_ude,Institut für Energie- und Umwelttechnik,4,Geschäftsführer:6,currently registered:3; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5110744314,https://openalex.org/A5110744314,Carmen Wolf,,28,189,child_of_ude,Institut für Energie- und Umwelttechnik,4,Geschäftsführer:6,currently registered:3; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5102928755,https://openalex.org/A5102928755,Christian Büscher,https://orcid.org/0000-0002-3447-6854,21,77,direct_ude,University of Duisburg-Essen,4,Geschäftsführer:3; Prokurist:2; Liquidator:1,currently registered:3; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5039677720,https://openalex.org/A5039677720,Christian Köster,,10,409,direct_ude,University of Duisburg-Essen,4,Geschäftsführer:1; Inhaber:1; Persönlich haftender Gesellschafter:1; Prokurist:1,currently registered:2; removed:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5112440783,https://openalex.org/A5112440783,Christian Lösch,,23,1181,direct_ude,University of Duisburg-Essen,4,Geschäftsführer:4,currently registered:4,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5081119418,https://openalex.org/A5081119418,Christian Pohlmann,,17,4,direct_ude,University of Duisburg-Essen,4,Geschäftsführer:2; Liquidator:1; Persönlich haftender Gesellschafter:1,currently registered:4,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5075679674,https://openalex.org/A5075679674,Christina Schröder,,143,862,direct_ude,University of Duisburg-Essen,4,Geschäftsführer:3; Prokurist:1,currently registered:4,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5045337336,https://openalex.org/A5045337336,Christoph Schlee,,3,42,direct_ude,University of Duisburg-Essen,4,Geschäftsführer:4,currently registered:2; removed:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5082105394,https://openalex.org/A5082105394,Christoph Schlee,,6,24,direct_ude,University of Duisburg-Essen,4,Geschäftsführer:4,currently registered:2; removed:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5064594118,https://openalex.org/A5064594118,Christoph Wieland,https://orcid.org/0000-0002-7020-5568,11,241,direct_ude,University of Duisburg-Essen,4,Geschäftsführer:4; Prokurist:2,currently registered:3; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5128881947,https://openalex.org/A5128881947,Christoph Wieland,,1,0,direct_ude,University of Duisburg-Essen,4,Geschäftsführer:4; Prokurist:2,currently registered:3; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5007180322,https://openalex.org/A5007180322,David Huber,,3,0,direct_ude,University of Duisburg-Essen,4,Geschäftsführer:2; Prokurist:2,currently registered:4,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5037283509,https://openalex.org/A5037283509,Dirk Bruns,,5,6,direct_ude,University of Duisburg-Essen,4,Geschäftsführer:5; Inhaber:1,currently registered:4,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5084473679,https://openalex.org/A5084473679,Falk Hoppe,,1,0,direct_ude,University of Duisburg-Essen,4,Geschäftsführer:2; Liquidator:1; Persönlich haftender Gesellschafter:1,currently registered:2; removed:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5022373299,https://openalex.org/A5022373299,Florian Schmitz,https://orcid.org/0000-0001-6368-628X,79,3610,direct_ude,University of Duisburg-Essen,4,Geschäftsführer:5,currently registered:4,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5091546460,https://openalex.org/A5091546460,Frank Hölscher,,7,63,direct_ude,University of Duisburg-Essen,4,Prokurist:3; Geschäftsführer:2; Liquidator:1,currently registered:3; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5003188843,https://openalex.org/A5003188843,Gerd Witt,,152,2279,direct_ude,University of Duisburg-Essen,4,Prokurist:3; Geschäftsführer:1,currently registered:4,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5094372701,https://openalex.org/A5094372701,Gerhard Igl,,10,0,direct_ude,University of Duisburg-Essen,4,Geschäftsführer:4,currently registered:4,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5023292691,https://openalex.org/A5023292691,Harald Stephan,,40,2848,direct_ude,University of Duisburg-Essen,4,Geschäftsführer:3; Inhaber:2; Liquidator:1; Persönlich haftender Gesellschafter:1,currently registered:3; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5059941495,https://openalex.org/A5059941495,Helmut Bendig,,1,2,child_of_ude,Institut für Energie- und Umwelttechnik,4,Prokurist:8,currently registered:3; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5072230284,https://openalex.org/A5072230284,Horst Wegner,,9,34,direct_ude,University of Duisburg-Essen,4,Geschäftsführer:3; Inhaber:1,removed:3; currently registered:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5066093773,https://openalex.org/A5066093773,Jens Neugebauer,https://orcid.org/0000-0003-2549-8354,38,260,direct_ude,University of Duisburg-Essen,4,Geschäftsführer:3; Prokurist:1,currently registered:4,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5061411374,https://openalex.org/A5061411374,Jochen Seitz,https://orcid.org/0000-0002-0110-7980,156,9308,direct_ude,University of Duisburg-Essen,4,Geschäftsführer:2; Liquidator:1; Prokurist:1,currently registered:3; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5108765608,https://openalex.org/A5108765608,Jochen Seitz,,4,0,direct_ude,University of Duisburg-Essen,4,Geschäftsführer:2; Liquidator:1; Prokurist:1,currently registered:3; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5110518795,https://openalex.org/A5110518795,Jochen Seitz,,7,0,direct_ude,University of Duisburg-Essen,4,Geschäftsführer:2; Liquidator:1; Prokurist:1,currently registered:3; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5090731199,https://openalex.org/A5090731199,Jochen Vöge,,4,191,direct_ude,University of Duisburg-Essen,4,Geschäftsführer:5,currently registered:2; removed:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5005493564,https://openalex.org/A5005493564,Johannes Deckers,,6,61,direct_ude,University of Duisburg-Essen,4,Geschäftsführer:2; Persönlich haftender Gesellschafter:2,currently registered:3; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5013058102,https://openalex.org/A5013058102,Johannes Kunkel,https://orcid.org/0000-0002-4265-8498,24,489,direct_ude,University of Duisburg-Essen,4,Geschäftsführer:4,currently registered:2; removed:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5017017370,https://openalex.org/A5017017370,Julia Schröder,https://orcid.org/0000-0002-7185-9280,4,7,direct_ude,University of Duisburg-Essen,4,Geschäftsführer:7,currently registered:3; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5045562580,https://openalex.org/A5045562580,Jörg Miller,,2,10,direct_ude,University of Duisburg-Essen,4,Geschäftsführer:4,currently registered:4,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5029505640,https://openalex.org/A5029505640,Kai Werner,,10,34,direct_ude,University of Duisburg-Essen,4,Geschäftsführer:3; Inhaber:1,currently registered:3; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5024005570,https://openalex.org/A5024005570,Klaus Küppers,,13,154,direct_ude,University of Duisburg-Essen,4,Prokurist:3; Geschäftsführer:1,currently registered:4,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5015992672,https://openalex.org/A5015992672,Lars Schulz,,2,33,direct_ude,University of Duisburg-Essen,4,Geschäftsführer:1; Inhaber:1; Liquidator:1; Prokurist:1,currently registered:3; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5110937581,https://openalex.org/A5110937581,Lena Weber,,1,0,direct_ude,University of Duisburg-Essen,4,Prokurist:4; Geschäftsführer:1; Liquidator:1,currently registered:3; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5111126900,https://openalex.org/A5111126900,Leon Müller,https://orcid.org/0009-0000-8974-3537,8,2,direct_ude,University of Duisburg-Essen,4,Prokurist:3; Geschäftsführer:2,currently registered:2; removed:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5057966782,https://openalex.org/A5057966782,Lokman Coban,,1,7,direct_ude,University of Duisburg-Essen,4,Geschäftsführer:6,currently registered:2; removed:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5035281768,https://openalex.org/A5035281768,Lukas Schmidt,,5,10,child_of_ude,The Hydrogen and Fuel Cell Center,4,Geschäftsführer:7; Prokurist:2,currently registered:3; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5009817478,https://openalex.org/A5009817478,Manuel Gruber,https://orcid.org/0000-0002-8353-4651,102,2255,direct_ude,University of Duisburg-Essen,4,Geschäftsführer:4; Prokurist:2; Liquidator:1,currently registered:3; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5111377943,https://openalex.org/A5111377943,Marcel Blum,,2,61,direct_ude,University of Duisburg-Essen,4,Geschäftsführer:4; Prokurist:1,currently registered:4,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5039476363,https://openalex.org/A5039476363,Marcel Jung,https://orcid.org/0000-0002-8277-3052,5,18,direct_ude,University of Duisburg-Essen,4,Geschäftsführer:3; Liquidator:1; Persönlich haftender Gesellschafter:1,currently registered:2; removed:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5083133917,https://openalex.org/A5083133917,Marion Meier,,1,6,direct_ude,University of Duisburg-Essen,4,Prokurist:3; Inhaber:1,currently registered:2; removed:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5050705095,https://openalex.org/A5050705095,Marion Richter,,7,442,direct_ude,University of Duisburg-Essen,4,Geschäftsführer:4,currently registered:3; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5012138747,https://openalex.org/A5012138747,Martin Dickmann,,3,31,direct_ude,University of Duisburg-Essen,4,Geschäftsführer:5; Liquidator:1,currently registered:2; removed:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5107484510,https://openalex.org/A5107484510,Mathias Baumann,,1,92,direct_ude,University of Duisburg-Essen,4,Geschäftsführer:2; Prokurist:2,currently registered:3; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5005757538,https://openalex.org/A5005757538,Mathis Richter,https://orcid.org/0000-0002-3110-6137,26,211,direct_ude,University of Duisburg-Essen,4,Geschäftsführer:5,currently registered:4,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5045407269,https://openalex.org/A5045407269,Mirko Krüger,https://orcid.org/0000-0002-4739-7151,17,125,direct_ude,University of Duisburg-Essen,4,Inhaber:5; Geschäftsführer:1,currently registered:4,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5041244680,https://openalex.org/A5041244680,Nadia Schneider,,2,22,direct_ude,University of Duisburg-Essen,4,Geschäftsführer:4,currently registered:2; removed:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5040325001,https://openalex.org/A5040325001,Nicolas Witte,,4,6,direct_ude,University of Duisburg-Essen,4,Geschäftsführer:5; Prokurist:2,currently registered:4,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5003921169,https://openalex.org/A5003921169,Norbert Knoche,,21,119,direct_ude,University of Duisburg-Essen,4,Prokurist:4,currently registered:3; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5069883065,https://openalex.org/A5069883065,Oliver Westphal,https://orcid.org/0000-0001-8947-0348,6,10,direct_ude,University of Duisburg-Essen,4,Geschäftsführer:2; Prokurist:2,currently registered:2; removed:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5071329147,https://openalex.org/A5071329147,Peter Seydel,,9,187,direct_ude,University of Duisburg-Essen,4,Geschäftsführer:2; Prokurist:2,currently registered:3; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5108210549,https://openalex.org/A5108210549,Ping Liu,,1,35,direct_ude,University of Duisburg-Essen,4,Geschäftsführer:5,currently registered:3; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5113645671,https://openalex.org/A5113645671,Rudolph Meyer,,17,375,direct_ude,University of Duisburg-Essen,4,Geschäftsführer:6,currently registered:4,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5118598124,https://openalex.org/A5118598124,Rudolph Meyer,,6,2,direct_ude,University of Duisburg-Essen,4,Geschäftsführer:6,currently registered:4,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5088354669,https://openalex.org/A5088354669,Simon Schumacher,https://orcid.org/0000-0001-5807-0878,7,184,direct_ude,University of Duisburg-Essen,4,Geschäftsführer:3; Inhaber:1,currently registered:2; removed:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5102108148,https://openalex.org/A5102108148,Simon Schumacher,,2,160,child_of_ude,Deutsches Textilforschungszentrum Nord-West,4,Geschäftsführer:3; Inhaber:1,currently registered:2; removed:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5009757205,https://openalex.org/A5009757205,Thomas Dreier,,3,33,direct_ude,University of Duisburg-Essen,4,Geschäftsführer:2; Liquidator:1; Prokurist:1,currently registered:3; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5028487967,https://openalex.org/A5028487967,Thomas Dreier,https://orcid.org/0000-0001-8313-4992,338,3764,direct_ude,University of Duisburg-Essen,4,Geschäftsführer:2; Liquidator:1; Prokurist:1,currently registered:3; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5089311554,https://openalex.org/A5089311554,Thomas Rinke,,2,3,direct_ude,University of Duisburg-Essen,4,Geschäftsführer:3; Inhaber:1,currently registered:4,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5104619148,https://openalex.org/A5104619148,Tim Richter,https://orcid.org/0009-0003-8310-6803,1,7,direct_ude,University of Duisburg-Essen,4,Geschäftsführer:4,currently registered:3; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5108850477,https://openalex.org/A5108850477,Tim Richter,,2,4,direct_ude,University of Duisburg-Essen,4,Geschäftsführer:4,currently registered:3; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5109529212,https://openalex.org/A5109529212,Ulrich Stephan,,25,178,direct_ude,University of Duisburg-Essen,4,Prokurist:3; Inhaber:1,currently registered:3; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5113843371,https://openalex.org/A5113843371,Wilhelm Kuttler,https://orcid.org/0000-0002-7789-8280,83,2332,direct_ude,University of Duisburg-Essen,4,Geschäftsführer:5,currently registered:4,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5035165383,https://openalex.org/A5035165383,Adrian Engel,,17,29,direct_ude,University of Duisburg-Essen,5,Geschäftsführer:7; Prokurist:1,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5121332174,https://openalex.org/A5121332174,Adrian Engel,,1,0,direct_ude,University of Duisburg-Essen,5,Geschäftsführer:7; Prokurist:1,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5127667725,https://openalex.org/A5127667725,Adrian Engel,,1,0,direct_ude,University of Duisburg-Essen,5,Geschäftsführer:7; Prokurist:1,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5128742521,https://openalex.org/A5128742521,Adrian Engel,,1,0,direct_ude,University of Duisburg-Essen,5,Geschäftsführer:7; Prokurist:1,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5082525618,https://openalex.org/A5082525618,Alexander Beer,,17,212,direct_ude,University of Duisburg-Essen,5,Geschäftsführer:5; Prokurist:1,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5109845912,https://openalex.org/A5109845912,Alexander Korn,https://orcid.org/0009-0002-6258-6791,2,0,direct_ude,University of Duisburg-Essen,5,Geschäftsführer:6,currently registered:5,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5032835186,https://openalex.org/A5032835186,Andreas Sprengel,,5,238,direct_ude,University of Duisburg-Essen,5,Geschäftsführer:3; Persönlich haftender Gesellschafter:1; Prokurist:1,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5036222998,https://openalex.org/A5036222998,Andreas de Vries,https://orcid.org/0000-0001-5754-2749,27,297,direct_ude,University of Duisburg-Essen,5,Geschäftsführer:5,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5016563483,https://openalex.org/A5016563483,Angelika Sommer,,2,8,direct_ude,University of Duisburg-Essen,5,Geschäftsführer:6; Prokurist:2,currently registered:5,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5064827445,https://openalex.org/A5064827445,Anja Weiß,https://orcid.org/0000-0002-9676-8326,94,977,direct_ude,University of Duisburg-Essen,5,Geschäftsführer:4; Persönlich haftender Gesellschafter:2; Liquidator:1,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5073916434,https://openalex.org/A5073916434,Astrid Müller,https://orcid.org/0000-0001-6176-2947,347,10183,direct_ude,University of Duisburg-Essen,5,Geschäftsführer:5; Inhaber:1; Prokurist:1,currently registered:3; removed:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5069214188,https://openalex.org/A5069214188,Carolin Schneider,https://orcid.org/0000-0001-7923-0965,7,25,direct_ude,University of Duisburg-Essen,5,Geschäftsführer:4; Inhaber:1,currently registered:3; removed:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5100337531,https://openalex.org/A5100337531,Chen Wang,https://orcid.org/0000-0002-0213-9642,91,2510,direct_ude,University of Duisburg-Essen,5,Geschäftsführer:6,currently registered:3; removed:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5012757803,https://openalex.org/A5012757803,Christine Ludwig,,31,563,direct_ude,University of Duisburg-Essen,5,Prokurist:2; Geschäftsführer:1; Inhaber:1; Liquidator:1; Persönlich haftender Gesellschafter:1,removed:3; currently registered:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5072032162,https://openalex.org/A5072032162,Christoph Abraham,https://orcid.org/0000-0003-3536-6507,19,122,direct_ude,University of Duisburg-Essen,5,Geschäftsführer:4; Inhaber:1; Liquidator:1,removed:3; currently registered:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5052392832,https://openalex.org/A5052392832,Christoph Jansen,https://orcid.org/0009-0008-1823-8283,36,290,direct_ude,University of Duisburg-Essen,5,Geschäftsführer:4; Prokurist:2,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5103022752,https://openalex.org/A5103022752,Christoph Jansen,https://orcid.org/0000-0001-7473-4160,90,207,direct_ude,University of Duisburg-Essen,5,Geschäftsführer:4; Prokurist:2,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5053198971,https://openalex.org/A5053198971,Daniel Jokisch,,28,1245,direct_ude,University of Duisburg-Essen,5,Geschäftsführer:5; Prokurist:1,currently registered:5,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5021967698,https://openalex.org/A5021967698,Daniel Pieper,,2,4,direct_ude,University of Duisburg-Essen,5,Geschäftsführer:4; Prokurist:2; Liquidator:1,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5081487814,https://openalex.org/A5081487814,Daniela Richter,,3,14,direct_ude,University of Duisburg-Essen,5,Prokurist:4; Geschäftsführer:3; Liquidator:1,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5021650598,https://openalex.org/A5021650598,Dieter Schramm,https://orcid.org/0000-0002-7945-1853,442,2524,direct_ude,University of Duisburg-Essen,5,Geschäftsführer:4; Inhaber:1; Liquidator:1,removed:4; currently registered:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5105506256,https://openalex.org/A5105506256,Dieter Schramm,,4,9,direct_ude,University of Duisburg-Essen,5,Geschäftsführer:4; Inhaber:1; Liquidator:1,removed:4; currently registered:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5076502958,https://openalex.org/A5076502958,Dirk Reinhardt,https://orcid.org/0000-0002-7027-4483,1032,22797,direct_ude,University of Duisburg-Essen,5,Geschäftsführer:4; Prokurist:3,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5110565330,https://openalex.org/A5110565330,Dominik Schröder,,7,153,direct_ude,University of Duisburg-Essen,5,Geschäftsführer:4; Prokurist:3,currently registered:5,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5002410327,https://openalex.org/A5002410327,Gerd Stein,,2,0,child_of_ude,Deutsches Textilforschungszentrum Nord-West,5,Prokurist:4; Geschäftsführer:1; Liquidator:1,currently registered:3; removed:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5024573522,https://openalex.org/A5024573522,Harald Heim,,19,1,child_of_ude,Deutsches Textilforschungszentrum Nord-West,5,Geschäftsführer:6; Prokurist:2,currently registered:5,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5086342121,https://openalex.org/A5086342121,Hartmut Finger,,4,103,child_of_ude,Institut für Energie- und Umwelttechnik,5,Geschäftsführer:4; Prokurist:2,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5058549966,https://openalex.org/A5058549966,Hubert Beyer,,1,21,child_of_ude,The Hydrogen and Fuel Cell Center,5,Geschäftsführer:6; Persönlich haftender Gesellschafter:2,currently registered:5,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5102174490,https://openalex.org/A5102174490,Jens Kuhn,,2,7,direct_ude,University of Duisburg-Essen,5,Geschäftsführer:5; Prokurist:3,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5088818714,https://openalex.org/A5088818714,Julia Hartmann,https://orcid.org/0000-0002-8873-1419,1,4,direct_ude,University of Duisburg-Essen,5,Prokurist:6; Geschäftsführer:1,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5004185689,https://openalex.org/A5004185689,Karsten Klemm,,3,26,direct_ude,University of Duisburg-Essen,5,Geschäftsführer:9; Liquidator:1,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5014302673,https://openalex.org/A5014302673,Klaus Hagedorn,,1,0,direct_ude,University of Duisburg-Essen,5,Geschäftsführer:6; Prokurist:1,currently registered:3; removed:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5110055012,https://openalex.org/A5110055012,Klaus Klemm,,142,1646,direct_ude,University of Duisburg-Essen,5,Geschäftsführer:9,removed:3; currently registered:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5117494989,https://openalex.org/A5117494989,Lukas Becker,,2,0,direct_ude,University of Duisburg-Essen,5,Geschäftsführer:5; Prokurist:1,currently registered:5,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5006359291,https://openalex.org/A5006359291,Magdalena Wagner,,1,4,direct_ude,University of Duisburg-Essen,5,Geschäftsführer:3; Prokurist:2,currently registered:3; removed:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5021645988,https://openalex.org/A5021645988,Martin Wagener,https://orcid.org/0000-0001-9180-268X,11,282,direct_ude,University of Duisburg-Essen,5,Geschäftsführer:7; Prokurist:2,currently registered:5,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5103485046,https://openalex.org/A5103485046,Matthias Schramm,,19,896,direct_ude,University of Duisburg-Essen,5,Geschäftsführer:3; Prokurist:2; Liquidator:1,currently registered:5,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5083099474,https://openalex.org/A5083099474,Michael Bätz,,5,120,direct_ude,University of Duisburg-Essen,5,Geschäftsführer:7,currently registered:3; removed:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5007586290,https://openalex.org/A5007586290,Michael Lehner,,5,1,direct_ude,University of Duisburg-Essen,5,Geschäftsführer:3; Inhaber:1; Prokurist:1,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5062924220,https://openalex.org/A5062924220,Michael Lehner,,2,1,direct_ude,University of Duisburg-Essen,5,Geschäftsführer:3; Inhaber:1; Prokurist:1,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5102435026,https://openalex.org/A5102435026,Niklas Müller,https://orcid.org/0009-0005-7904-3525,17,6,direct_ude,University of Duisburg-Essen,5,Geschäftsführer:4; Persönlich haftender Gesellschafter:1; Prokurist:1,currently registered:3; removed:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5071569590,https://openalex.org/A5071569590,Nils Beckmann,https://orcid.org/0000-0001-6415-0217,11,94,direct_ude,University of Duisburg-Essen,5,Geschäftsführer:7,currently registered:3; removed:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5088798409,https://openalex.org/A5088798409,Peter Brockhaus,,3,31,direct_ude,University of Duisburg-Essen,5,Geschäftsführer:6,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5070887199,https://openalex.org/A5070887199,Peter Hopp,,3,106,direct_ude,University of Duisburg-Essen,5,Geschäftsführer:4; Inhaber:1,currently registered:5,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5049104171,https://openalex.org/A5049104171,Philip Kahl,https://orcid.org/0000-0003-2362-8645,14,742,direct_ude,University of Duisburg-Essen,5,Geschäftsführer:5; Prokurist:2,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5037780525,https://openalex.org/A5037780525,Philipp Richter,,2,2,direct_ude,University of Duisburg-Essen,5,Geschäftsführer:4; Liquidator:1; Prokurist:1,currently registered:5,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5101450663,https://openalex.org/A5101450663,Philipp Richter,https://orcid.org/0000-0002-8891-3861,21,165,direct_ude,University of Duisburg-Essen,5,Geschäftsführer:4; Liquidator:1; Prokurist:1,currently registered:5,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5088027497,https://openalex.org/A5088027497,Sascha Neumann,,4,121,direct_ude,University of Duisburg-Essen,5,Geschäftsführer:7,removed:3; currently registered:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5036698793,https://openalex.org/A5036698793,Sebastian Grimm,https://orcid.org/0000-0002-7378-3224,10,117,direct_ude,University of Duisburg-Essen,5,Geschäftsführer:8,currently registered:5,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5079723288,https://openalex.org/A5079723288,Sebastian Voigt,https://orcid.org/0000-0003-1544-9903,231,5623,direct_ude,University of Duisburg-Essen,5,Geschäftsführer:5; Prokurist:1,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5020707312,https://openalex.org/A5020707312,Stefan Stoll,https://orcid.org/0000-0002-3656-417X,114,4901,direct_ude,University of Duisburg-Essen,5,Geschäftsführer:4; Inhaber:1,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5030899511,https://openalex.org/A5030899511,Sven Behnke,,4,77,direct_ude,University of Duisburg-Essen,5,Geschäftsführer:5; Inhaber:1,currently registered:5,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5125290627,https://openalex.org/A5125290627,Sven Lang,,1,0,direct_ude,University of Duisburg-Essen,5,Geschäftsführer:3; Inhaber:2; Prokurist:2,currently registered:5,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5042329879,https://openalex.org/A5042329879,Tanja Becker,,69,907,direct_ude,University of Duisburg-Essen,5,Prokurist:3; Geschäftsführer:2; Inhaber:1,currently registered:3; removed:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5041130965,https://openalex.org/A5041130965,Tanja Werner,,62,1319,direct_ude,University of Duisburg-Essen,5,Geschäftsführer:4; Inhaber:1,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5028122232,https://openalex.org/A5028122232,Thomas Bogenschütz,,7,166,direct_ude,University of Duisburg-Essen,5,Geschäftsführer:7,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5108367853,https://openalex.org/A5108367853,Tim Schmitz,,4,78,direct_ude,University of Duisburg-Essen,5,Geschäftsführer:3; Prokurist:2,currently registered:3; removed:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5060917094,https://openalex.org/A5060917094,Torsten Franz,https://orcid.org/0000-0002-8879-0814,15,217,direct_ude,University of Duisburg-Essen,5,Geschäftsführer:5,currently registered:5,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5074048659,https://openalex.org/A5074048659,Ulrich Hagemann,https://orcid.org/0000-0002-1880-6550,170,2550,direct_ude,University of Duisburg-Essen,5,Geschäftsführer:4; Liquidator:1; Prokurist:1,currently registered:3; removed:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5062127160,https://openalex.org/A5062127160,Ulrich Martin,,3,5,child_of_ude,Institut für Energie- und Umwelttechnik,5,Geschäftsführer:5; Prokurist:1,currently registered:5,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5047969867,https://openalex.org/A5047969867,Ulrich Pickartz,,2,5,direct_ude,University of Duisburg-Essen,5,Geschäftsführer:4; Prokurist:2,currently registered:5,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5001987856,https://openalex.org/A5001987856,Viktor Grünwald,https://orcid.org/0000-0003-2083-7687,637,19737,direct_ude,University of Duisburg-Essen,5,Geschäftsführer:3; Inhaber:2,currently registered:3; removed:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5130826226,https://openalex.org/A5130826226,Viktor Grünwald,,1,0,direct_ude,University of Duisburg-Essen,5,Geschäftsführer:3; Inhaber:2,currently registered:3; removed:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5012503494,https://openalex.org/A5012503494,Volker Hans,,39,303,direct_ude,University of Duisburg-Essen,5,Geschäftsführer:3; Prokurist:2; Persönlich haftender Gesellschafter:1,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5054284319,https://openalex.org/A5054284319,Wolfgang Trautmann,,4,11,direct_ude,University of Duisburg-Essen,5,Geschäftsführer:4; Inhaber:1,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5108949396,https://openalex.org/A5108949396,Ali Ahmad,,2,17,direct_ude,University of Duisburg-Essen,6,Geschäftsführer:5; Inhaber:1; Liquidator:1,currently registered:3; removed:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5111293900,https://openalex.org/A5111293900,Ali Ahmad,,8,35,direct_ude,University of Duisburg-Essen,6,Geschäftsführer:5; Inhaber:1; Liquidator:1,currently registered:3; removed:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5130533550,https://openalex.org/A5130533550,Ali Ahmad,,2,0,direct_ude,University of Duisburg-Essen,6,Geschäftsführer:5; Inhaber:1; Liquidator:1,currently registered:3; removed:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5130685520,https://openalex.org/A5130685520,Ali Ahmad,,1,0,direct_ude,University of Duisburg-Essen,6,Geschäftsführer:5; Inhaber:1; Liquidator:1,currently registered:3; removed:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5022652001,https://openalex.org/A5022652001,Andrea Herrmann,https://orcid.org/0000-0002-7850-8344,214,2110,direct_ude,University of Duisburg-Essen,6,Geschäftsführer:3; Prokurist:2; Inhaber:1,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5069736561,https://openalex.org/A5069736561,Andreas Junker,https://orcid.org/0000-0002-8063-9765,67,2524,direct_ude,University of Duisburg-Essen,6,Geschäftsführer:4; Prokurist:2,currently registered:5,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5022998651,https://openalex.org/A5022998651,Andreas Vogelsang,https://orcid.org/0000-0003-1041-0815,225,1477,direct_ude,University of Duisburg-Essen,6,Geschäftsführer:3; Inhaber:2,removed:3; currently registered:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5127045878,https://openalex.org/A5127045878,Andreas Vogelsang,,1,0,direct_ude,University of Duisburg-Essen,6,Geschäftsführer:3; Inhaber:2,removed:3; currently registered:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5026173847,https://openalex.org/A5026173847,André Giese,https://orcid.org/0000-0002-8987-8009,1,33,direct_ude,University of Duisburg-Essen,6,Geschäftsführer:5; Liquidator:2; Prokurist:1,currently registered:3; removed:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5070250060,https://openalex.org/A5070250060,Anja Neumann,https://orcid.org/0000-0002-0921-1360,200,2152,direct_ude,University of Duisburg-Essen,6,Geschäftsführer:4; Liquidator:1,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5100857275,https://openalex.org/A5100857275,Anja Neumann,,1,41,direct_ude,University of Duisburg-Essen,6,Geschäftsführer:4; Liquidator:1,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5123255867,https://openalex.org/A5123255867,Anja Neumann,,2,0,direct_ude,University of Duisburg-Essen,6,Geschäftsführer:4; Liquidator:1,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5100813838,https://openalex.org/A5100813838,Anja Schwarz,,3,1,direct_ude,University of Duisburg-Essen,6,Geschäftsführer:3; Prokurist:2; Inhaber:1,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5032007353,https://openalex.org/A5032007353,Bernhard Ganter,https://orcid.org/0000-0003-0767-1379,111,10305,child_of_ude,The Hydrogen and Fuel Cell Center,6,Geschäftsführer:4; Liquidator:3,removed:3; currently registered:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5013556611,https://openalex.org/A5013556611,Carsten Ullrich,https://orcid.org/0000-0003-2826-9821,212,2884,direct_ude,University of Duisburg-Essen,6,Geschäftsführer:5; Liquidator:1,removed:3; currently registered:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5114883287,https://openalex.org/A5114883287,Christian Scheller,,1,0,direct_ude,University of Duisburg-Essen,6,Geschäftsführer:7; Prokurist:1,currently registered:5,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5002582354,https://openalex.org/A5002582354,Christoph Blume,,6,43,direct_ude,University of Duisburg-Essen,6,Geschäftsführer:8,currently registered:3; removed:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5002857697,https://openalex.org/A5002857697,Felix Weber,https://orcid.org/0000-0002-5910-7182,26,223,direct_ude,University of Duisburg-Essen,6,Geschäftsführer:5; Prokurist:2,currently registered:5,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5111523838,https://openalex.org/A5111523838,Fritz Beck,,17,32,direct_ude,University of Duisburg-Essen,6,Geschäftsführer:3; Persönlich haftender Gesellschafter:2; Inhaber:1,currently registered:3; removed:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5093811094,https://openalex.org/A5093811094,Gerhard Stahl,,2,0,direct_ude,University of Duisburg-Essen,6,Geschäftsführer:5; Liquidator:3,currently registered:3; removed:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5111350063,https://openalex.org/A5111350063,Jasmin Schmidt,,2,1,direct_ude,University of Duisburg-Essen,6,Geschäftsführer:6,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5036037677,https://openalex.org/A5036037677,Jens Kohlmann,,5,38,direct_ude,University of Duisburg-Essen,6,Prokurist:5; Geschäftsführer:3,currently registered:5,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5082298383,https://openalex.org/A5082298383,Jessica Schneider,,4,42,direct_ude,University of Duisburg-Essen,6,Geschäftsführer:2; Liquidator:2; Prokurist:1,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5046233775,https://openalex.org/A5046233775,Joachim Schuler,,17,103,direct_ude,University of Duisburg-Essen,6,Geschäftsführer:3; Liquidator:1; Persönlich haftender Gesellschafter:1,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5103409660,https://openalex.org/A5103409660,Jochen Peters,,7,242,direct_ude,University of Duisburg-Essen,6,Geschäftsführer:5,currently registered:5,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5024590692,https://openalex.org/A5024590692,Johanna Müller,https://orcid.org/0000-0001-5699-7047,9,71,direct_ude,University of Duisburg-Essen,6,Geschäftsführer:4; Prokurist:2; Liquidator:1,removed:3; currently registered:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5010069325,https://openalex.org/A5010069325,Katharina Klein,,3,25,direct_ude,University of Duisburg-Essen,6,Geschäftsführer:5; Liquidator:1; Vorstand:1,currently registered:3; removed:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5039487332,https://openalex.org/A5039487332,Malte Weber,https://orcid.org/0009-0006-3074-4205,14,68,direct_ude,University of Duisburg-Essen,6,Prokurist:3; Geschäftsführer:1; Liquidator:1,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5108620165,https://openalex.org/A5108620165,Mario Werner,https://orcid.org/0000-0003-3432-5471,98,1176,direct_ude,University of Duisburg-Essen,6,Geschäftsführer:4; Prokurist:3; Liquidator:1,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5046094206,https://openalex.org/A5046094206,Martin Blüggel,,48,1831,direct_ude,University of Duisburg-Essen,6,Geschäftsführer:5; Prokurist:4,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5108951191,https://openalex.org/A5108951191,Martin Schuler,,5,11,direct_ude,University of Duisburg-Essen,6,Geschäftsführer:3; Inhaber:1; Prokurist:1,currently registered:5,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5123864478,https://openalex.org/A5123864478,Martin Schuler,,1,0,direct_ude,University of Duisburg-Essen,6,Geschäftsführer:3; Inhaber:1; Prokurist:1,currently registered:5,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5127353107,https://openalex.org/A5127353107,Martin Schuler,,22,0,direct_ude,University of Duisburg-Essen,6,Geschäftsführer:3; Inhaber:1; Prokurist:1,currently registered:5,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5129089154,https://openalex.org/A5129089154,Martin Schuler,,1,0,direct_ude,University of Duisburg-Essen,6,Geschäftsführer:3; Inhaber:1; Prokurist:1,currently registered:5,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5102185738,https://openalex.org/A5102185738,Maximilian Wolf,,7,41,direct_ude,University of Duisburg-Essen,6,Geschäftsführer:6,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5103891301,https://openalex.org/A5103891301,Maximilian Wolf,,32,138,direct_ude,University of Duisburg-Essen,6,Geschäftsführer:6,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5123135447,https://openalex.org/A5123135447,Maximilian Wolf,,1,0,direct_ude,University of Duisburg-Essen,6,Geschäftsführer:6,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5058513513,https://openalex.org/A5058513513,Mike Wenzel,,272,2227,child_of_ude,Institut für Energie- und Umwelttechnik,6,Geschäftsführer:3; Prokurist:2; Liquidator:1,removed:3; currently registered:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5113888013,https://openalex.org/A5113888013,Mike Wenzel,,6,210,child_of_ude,Institut für Energie- und Umwelttechnik,6,Geschäftsführer:3; Prokurist:2; Liquidator:1,removed:3; currently registered:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5103078695,https://openalex.org/A5103078695,Nicole Krämer,https://orcid.org/0000-0002-4224-0059,22,395,direct_ude,University of Duisburg-Essen,6,Geschäftsführer:7; Prokurist:1,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5030114850,https://openalex.org/A5030114850,Oliver Martens,,2,0,direct_ude,University of Duisburg-Essen,6,Geschäftsführer:4; Prokurist:1,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5088381140,https://openalex.org/A5088381140,Peter Kratzer,https://orcid.org/0000-0001-5947-1366,258,6049,direct_ude,University of Duisburg-Essen,6,Geschäftsführer:4; Prokurist:4,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5003116527,https://openalex.org/A5003116527,Qi Zhang,https://orcid.org/0009-0004-3982-1217,6,14,direct_ude,University of Duisburg-Essen,6,Geschäftsführer:6; Liquidator:1,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5100641189,https://openalex.org/A5100641189,Qi Zhang,https://orcid.org/0000-0003-3359-2172,16,101,direct_ude,University of Duisburg-Essen,6,Geschäftsführer:6; Liquidator:1,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5074280631,https://openalex.org/A5074280631,Ralf Kuhlmann,,3,13,direct_ude,University of Duisburg-Essen,6,Geschäftsführer:5; Prokurist:1,currently registered:3; removed:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5017131649,https://openalex.org/A5017131649,Robert Seifert,https://orcid.org/0000-0001-5985-7701,197,3380,direct_ude,University of Duisburg-Essen,6,Geschäftsführer:5; Inhaber:1,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5127119058,https://openalex.org/A5127119058,Robert Seifert,,3,0,direct_ude,University of Duisburg-Essen,6,Geschäftsführer:5; Inhaber:1,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5021741090,https://openalex.org/A5021741090,Rüdiger Schultz,,134,3581,direct_ude,University of Duisburg-Essen,6,Geschäftsführer:6,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5079342266,https://openalex.org/A5079342266,Sebastian Schuster,https://orcid.org/0000-0002-2055-1163,72,741,direct_ude,University of Duisburg-Essen,6,Geschäftsführer:4; Prokurist:3,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5054081254,https://openalex.org/A5054081254,Simone Weiß,,14,504,direct_ude,University of Duisburg-Essen,6,Geschäftsführer:4; Inhaber:2; Prokurist:1,currently registered:3; removed:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5022241592,https://openalex.org/A5022241592,Tobias Stein,https://orcid.org/0000-0001-5145-3630,30,71,direct_ude,University of Duisburg-Essen,6,Geschäftsführer:4; Inhaber:1,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5089753284,https://openalex.org/A5089753284,Andreas Hellmann,https://orcid.org/0000-0002-3573-5344,151,1720,direct_ude,University of Duisburg-Essen,7,Geschäftsführer:4; Liquidator:1; Prokurist:1,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5066213817,https://openalex.org/A5066213817,Andreas Hüttner,,1,7,direct_ude,University of Duisburg-Essen,7,Geschäftsführer:3; Inhaber:2,removed:3; currently registered:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5056706108,https://openalex.org/A5056706108,Andreas Roos,https://orcid.org/0000-0003-2833-0928,264,3999,direct_ude,University of Duisburg-Essen,7,Geschäftsführer:3; Prokurist:2,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5091715739,https://openalex.org/A5091715739,Andreas Roos,,28,479,direct_ude,University of Duisburg-Essen,7,Geschäftsführer:3; Prokurist:2,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5108819622,https://openalex.org/A5108819622,Andreas Roos,,24,123,direct_ude,University of Duisburg-Essen,7,Geschäftsführer:3; Prokurist:2,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5113291047,https://openalex.org/A5113291047,Andreas Roos,,7,20,direct_ude,University of Duisburg-Essen,7,Geschäftsführer:3; Prokurist:2,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5123688451,https://openalex.org/A5123688451,Andreas Roos,,1,0,direct_ude,University of Duisburg-Essen,7,Geschäftsführer:3; Prokurist:2,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5125129945,https://openalex.org/A5125129945,Andreas Roos,,1,0,direct_ude,University of Duisburg-Essen,7,Geschäftsführer:3; Prokurist:2,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5125749206,https://openalex.org/A5125749206,Andreas Roos,,1,0,direct_ude,University of Duisburg-Essen,7,Geschäftsführer:3; Prokurist:2,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5126021790,https://openalex.org/A5126021790,Andreas Roos,,1,0,direct_ude,University of Duisburg-Essen,7,Geschäftsführer:3; Prokurist:2,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5126630247,https://openalex.org/A5126630247,Andreas Roos,,1,0,direct_ude,University of Duisburg-Essen,7,Geschäftsführer:3; Prokurist:2,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5128123846,https://openalex.org/A5128123846,Andreas Roos,,1,0,direct_ude,University of Duisburg-Essen,7,Geschäftsführer:3; Prokurist:2,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5129683483,https://openalex.org/A5129683483,Andreas Roos,,1,1,direct_ude,University of Duisburg-Essen,7,Geschäftsführer:3; Prokurist:2,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5041211483,https://openalex.org/A5041211483,Anja Lange,,25,650,direct_ude,University of Duisburg-Essen,7,Prokurist:5; Geschäftsführer:2,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5028653294,https://openalex.org/A5028653294,Axel Klein,https://orcid.org/0000-0002-4203-2938,86,282,direct_ude,University of Duisburg-Essen,7,Geschäftsführer:8,currently registered:5,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5101697057,https://openalex.org/A5101697057,Axel Klein,https://orcid.org/0000-0002-1762-0201,41,189,direct_ude,University of Duisburg-Essen,7,Geschäftsführer:8,currently registered:5,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5008201488,https://openalex.org/A5008201488,Daniel Diekmann,https://orcid.org/0000-0002-0941-4096,27,177,direct_ude,University of Duisburg-Essen,7,Geschäftsführer:5,currently registered:3; removed:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5040913972,https://openalex.org/A5040913972,Dennis Schneider,,12,19,direct_ude,University of Duisburg-Essen,7,Prokurist:6; Geschäftsführer:3,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5086202332,https://openalex.org/A5086202332,Dirk Broska,,4,30,direct_ude,University of Duisburg-Essen,7,Geschäftsführer:9; Prokurist:2; Liquidator:1,removed:3; currently registered:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5108458907,https://openalex.org/A5108458907,Günter Zimmer,,17,144,direct_ude,University of Duisburg-Essen,7,Prokurist:3; Geschäftsführer:2; Persönlich haftender Gesellschafter:1,removed:4; currently registered:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5100396981,https://openalex.org/A5100396981,Hao Zhang,https://orcid.org/0000-0002-9447-1019,176,1380,direct_ude,University of Duisburg-Essen,7,Geschäftsführer:7; Liquidator:1,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5008052136,https://openalex.org/A5008052136,Jörg Schaller,https://orcid.org/0000-0003-0477-5877,139,2479,direct_ude,University of Duisburg-Essen,7,Prokurist:3; Geschäftsführer:2; Persönlich haftender Gesellschafter:2,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5125152883,https://openalex.org/A5125152883,Jörg Schaller,,3,0,direct_ude,University of Duisburg-Essen,7,Prokurist:3; Geschäftsführer:2; Persönlich haftender Gesellschafter:2,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5112788772,https://openalex.org/A5112788772,Jürgen Bruckner,,26,424,direct_ude,University of Duisburg-Essen,7,Geschäftsführer:6; Liquidator:1,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5100612485,https://openalex.org/A5100612485,Katharina Schmidt,https://orcid.org/0000-0001-9397-5285,52,557,direct_ude,University of Duisburg-Essen,7,Geschäftsführer:7; Liquidator:1,currently registered:5,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5103840064,https://openalex.org/A5103840064,Katharina Schmidt,,17,454,direct_ude,University of Duisburg-Essen,7,Geschäftsführer:7; Liquidator:1,currently registered:5,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5069715592,https://openalex.org/A5069715592,Klaus Barth,,2,1,direct_ude,University of Duisburg-Essen,7,Geschäftsführer:5; Prokurist:1,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5091584361,https://openalex.org/A5091584361,Klaus Barth,,2,0,direct_ude,University of Duisburg-Essen,7,Geschäftsführer:5; Prokurist:1,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5052755853,https://openalex.org/A5052755853,Marina Schmidt,,2,26,direct_ude,University of Duisburg-Essen,7,Geschäftsführer:4; Prokurist:1,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5102080356,https://openalex.org/A5102080356,Max Weber,,8,25,direct_ude,University of Duisburg-Essen,7,Geschäftsführer:4; Prokurist:1,currently registered:5,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5057316063,https://openalex.org/A5057316063,Michael Kloster,https://orcid.org/0000-0001-9244-4925,68,510,direct_ude,University of Duisburg-Essen,7,Geschäftsführer:7,currently registered:3; removed:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5085192643,https://openalex.org/A5085192643,Olaf Liedtke,,3,11,direct_ude,University of Duisburg-Essen,7,Prokurist:3; Geschäftsführer:2,currently registered:5,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5033748664,https://openalex.org/A5033748664,Pascal Schneider,,6,11,direct_ude,University of Duisburg-Essen,7,Geschäftsführer:3; Inhaber:2,currently registered:3; removed:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5111726893,https://openalex.org/A5111726893,Peter Rath,,25,424,direct_ude,University of Duisburg-Essen,7,Geschäftsführer:3; Persönlich haftender Gesellschafter:2; Liquidator:1,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5022560140,https://openalex.org/A5022560140,Rainer Schnell,https://orcid.org/0000-0001-7843-4974,359,3923,direct_ude,University of Duisburg-Essen,7,Geschäftsführer:5; Inhaber:1; Liquidator:1,removed:3; currently registered:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5073162924,https://openalex.org/A5073162924,Simon Ritter,,2,24,direct_ude,University of Duisburg-Essen,7,Geschäftsführer:3; Prokurist:2,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5076980201,https://openalex.org/A5076980201,Stefan Friese,,4,10,direct_ude,University of Duisburg-Essen,7,Geschäftsführer:7; Liquidator:1,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5034732630,https://openalex.org/A5034732630,Thorsten Sander,https://orcid.org/0000-0002-0880-8843,26,226,direct_ude,University of Duisburg-Essen,7,Geschäftsführer:6; Liquidator:1; Prokurist:1,currently registered:5,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5123978064,https://openalex.org/A5123978064,Thorsten Sander,,1,0,direct_ude,University of Duisburg-Essen,7,Geschäftsführer:6; Liquidator:1; Prokurist:1,currently registered:5,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5000662140,https://openalex.org/A5000662140,Tim Krüger,,2,5,direct_ude,University of Duisburg-Essen,7,Geschäftsführer:3; Prokurist:2,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5080716370,https://openalex.org/A5080716370,Volker Clausen,,52,268,direct_ude,University of Duisburg-Essen,7,Geschäftsführer:6; Prokurist:2,currently registered:5,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5076575576,https://openalex.org/A5076575576,Walter Reinhardt,https://orcid.org/0000-0002-8713-5279,68,1134,direct_ude,University of Duisburg-Essen,7,Geschäftsführer:4; Liquidator:2,removed:3; currently registered:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5014001330,https://openalex.org/A5014001330,Wolfgang Gruber,https://orcid.org/0000-0003-2186-9269,191,4152,direct_ude,University of Duisburg-Essen,7,Geschäftsführer:6,currently registered:5,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5115595123,https://openalex.org/A5115595123,Andreas Albert,,1,1,direct_ude,University of Duisburg-Essen,8,Geschäftsführer:4; Inhaber:1,currently registered:5,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5115603880,https://openalex.org/A5115603880,Andreas Albert,https://orcid.org/0000-0002-0582-2674,133,4162,direct_ude,University of Duisburg-Essen,8,Geschäftsführer:4; Inhaber:1,currently registered:5,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5063056312,https://openalex.org/A5063056312,André Haase,https://orcid.org/0000-0002-4529-1396,12,72,direct_ude,University of Duisburg-Essen,8,Geschäftsführer:5; Prokurist:2,currently registered:3; removed:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5095550956,https://openalex.org/A5095550956,Birgit Meyer,,1,0,direct_ude,University of Duisburg-Essen,8,Geschäftsführer:3; Prokurist:2,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5069912429,https://openalex.org/A5069912429,Christian Knobloch,https://orcid.org/0000-0001-5131-039X,7,7,direct_ude,University of Duisburg-Essen,8,Prokurist:3; Geschäftsführer:2,currently registered:3; removed:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5029326684,https://openalex.org/A5029326684,Christoph Horn,https://orcid.org/0000-0002-2762-6463,6,39,direct_ude,University of Duisburg-Essen,8,Geschäftsführer:5; Prokurist:1,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5102865092,https://openalex.org/A5102865092,Christopher Schröder,https://orcid.org/0000-0002-4483-8951,134,1823,direct_ude,University of Duisburg-Essen,8,Geschäftsführer:5,currently registered:5,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5062096123,https://openalex.org/A5062096123,Dirk Schlüter,,5,7,direct_ude,University of Duisburg-Essen,8,Geschäftsführer:5; Liquidator:1,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5019895745,https://openalex.org/A5019895745,Franz-Josef Meyer,,2,53,direct_ude,University of Duisburg-Essen,8,Geschäftsführer:6; Liquidator:1,removed:4; currently registered:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5069914957,https://openalex.org/A5069914957,Henning Kuhlmann,,5,22,direct_ude,University of Duisburg-Essen,8,Geschäftsführer:6; Prokurist:1,currently registered:5,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5076247663,https://openalex.org/A5076247663,Jing Zhang,https://orcid.org/0000-0002-3750-374X,548,27348,direct_ude,University of Duisburg-Essen,8,Geschäftsführer:7,currently registered:5,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5045144525,https://openalex.org/A5045144525,Jochen Vogt,,2,0,direct_ude,University of Duisburg-Essen,8,Geschäftsführer:6,currently registered:3; removed:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5039736409,https://openalex.org/A5039736409,Manuel Weber,https://orcid.org/0000-0002-8649-5977,239,4548,direct_ude,University of Duisburg-Essen,8,Geschäftsführer:4; Inhaber:1,currently registered:5,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5046636790,https://openalex.org/A5046636790,Martina Richter,,40,287,direct_ude,University of Duisburg-Essen,8,Geschäftsführer:5; Liquidator:1; Prokurist:1,currently registered:3; removed:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5100869399,https://openalex.org/A5100869399,Martina Richter,,36,62,direct_ude,University of Duisburg-Essen,8,Geschäftsführer:5; Liquidator:1; Prokurist:1,currently registered:3; removed:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5068775949,https://openalex.org/A5068775949,Matthias Benz,https://orcid.org/0000-0002-7577-9691,178,7014,direct_ude,University of Duisburg-Essen,8,Geschäftsführer:4; Prokurist:1,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5036362880,https://openalex.org/A5036362880,Patrick Bohn,https://orcid.org/0000-0002-8515-2067,39,626,direct_ude,University of Duisburg-Essen,8,Geschäftsführer:6; Liquidator:1,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5085357328,https://openalex.org/A5085357328,Peter Rettig,,1,1,direct_ude,University of Duisburg-Essen,8,Geschäftsführer:6; Prokurist:1,currently registered:5,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5100667510,https://openalex.org/A5100667510,Qi Liu,https://orcid.org/0000-0003-0110-7750,181,2253,direct_ude,University of Duisburg-Essen,8,Geschäftsführer:5,currently registered:3; removed:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5018713421,https://openalex.org/A5018713421,Sascha Hagemann,,16,532,direct_ude,University of Duisburg-Essen,8,Geschäftsführer:4; Inhaber:1,currently registered:3; removed:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5036922099,https://openalex.org/A5036922099,Thomas Bartz,,13,64,direct_ude,University of Duisburg-Essen,8,Geschäftsführer:4; Prokurist:2,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5103078122,https://openalex.org/A5103078122,Thomas Kiefer,https://orcid.org/0000-0002-7283-4990,120,2701,direct_ude,University of Duisburg-Essen,8,Geschäftsführer:2; Inhaber:1; Persönlich haftender Gesellschafter:1; Prokurist:1,currently registered:5,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5023162593,https://openalex.org/A5023162593,Tobias Braun,,2,0,direct_ude,University of Duisburg-Essen,8,Geschäftsführer:9,currently registered:5,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5102983474,https://openalex.org/A5102983474,Tobias Braun,https://orcid.org/0000-0001-9336-9306,1,28,direct_ude,University of Duisburg-Essen,8,Geschäftsführer:9,currently registered:5,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5110556007,https://openalex.org/A5110556007,Tobias Thiele,,43,501,direct_ude,University of Duisburg-Essen,8,Geschäftsführer:4; Persönlich haftender Gesellschafter:2; Inhaber:1,currently registered:3; removed:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5015016155,https://openalex.org/A5015016155,Albert Beer,,2,12,direct_ude,University of Duisburg-Essen,9,Prokurist:3; Geschäftsführer:1; Inhaber:1,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5054828466,https://openalex.org/A5054828466,Albert Beer,,6,0,direct_ude,University of Duisburg-Essen,9,Prokurist:3; Geschäftsführer:1; Inhaber:1,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5087345789,https://openalex.org/A5087345789,Alexander Brüning,,2,18,direct_ude,University of Duisburg-Essen,9,Geschäftsführer:8,removed:4; currently registered:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5006251667,https://openalex.org/A5006251667,Andreas Thieme,,6,7,direct_ude,University of Duisburg-Essen,9,Geschäftsführer:4; Prokurist:4; Persönlich haftender Gesellschafter:1,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5073100876,https://openalex.org/A5073100876,Andreas Thieme,https://orcid.org/0000-0001-6221-8601,65,585,direct_ude,University of Duisburg-Essen,9,Geschäftsführer:4; Prokurist:4; Persönlich haftender Gesellschafter:1,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5125618394,https://openalex.org/A5125618394,Andreas Thieme,,1,0,direct_ude,University of Duisburg-Essen,9,Geschäftsführer:4; Prokurist:4; Persönlich haftender Gesellschafter:1,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5102797453,https://openalex.org/A5102797453,Christoph Marx,https://orcid.org/0009-0000-7620-8017,100,231,direct_ude,University of Duisburg-Essen,9,Geschäftsführer:7,currently registered:5,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5067642493,https://openalex.org/A5067642493,Frank Pfeifer,,48,1981,direct_ude,University of Duisburg-Essen,9,Geschäftsführer:3; Inhaber:1; Persönlich haftender Gesellschafter:1,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5057804983,https://openalex.org/A5057804983,Klaus Bartl,,3,59,direct_ude,University of Duisburg-Essen,9,Geschäftsführer:8,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5056334688,https://openalex.org/A5056334688,Manuel Fiedler,,22,25,direct_ude,University of Duisburg-Essen,9,Geschäftsführer:8,currently registered:3; removed:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5125542216,https://openalex.org/A5125542216,Marcus Roth,,1,0,direct_ude,University of Duisburg-Essen,9,Geschäftsführer:9,currently registered:5,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5036507802,https://openalex.org/A5036507802,Martin Schüler,https://orcid.org/0000-0002-2166-3394,996,44791,direct_ude,University of Duisburg-Essen,9,Geschäftsführer:4; Prokurist:1,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5000482421,https://openalex.org/A5000482421,Michael Meltzer,,17,418,direct_ude,University of Duisburg-Essen,9,Geschäftsführer:5,currently registered:3; removed:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5121940305,https://openalex.org/A5121940305,Peter Hoyer,,1,0,direct_ude,University of Duisburg-Essen,9,Prokurist:3; Geschäftsführer:2; Liquidator:1,currently registered:3; removed:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5110586432,https://openalex.org/A5110586432,Stefanie Becker,,2,11,direct_ude,University of Duisburg-Essen,9,Geschäftsführer:6; Liquidator:1,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5006447283,https://openalex.org/A5006447283,Thomas Küpper,,22,1,direct_ude,University of Duisburg-Essen,9,Geschäftsführer:3; Prokurist:2,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5011345883,https://openalex.org/A5011345883,Tobias Hübner,,2,3,direct_ude,University of Duisburg-Essen,9,Geschäftsführer:7,currently registered:5,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5103027229,https://openalex.org/A5103027229,Tobias Kuhn,https://orcid.org/0000-0002-6725-3470,2,10,direct_ude,University of Duisburg-Essen,9,Geschäftsführer:6,currently registered:5,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5100380339,https://openalex.org/A5100380339,Yan Li,https://orcid.org/0000-0002-3906-9481,200,3860,direct_ude,University of Duisburg-Essen,9,Geschäftsführer:6,currently registered:3; removed:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5103876626,https://openalex.org/A5103876626,Yan Li,https://orcid.org/0000-0002-3450-6806,14,38,direct_ude,University of Duisburg-Essen,9,Geschäftsführer:6,currently registered:3; removed:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5103881897,https://openalex.org/A5103881897,Andrea Schmitz,,44,673,direct_ude,University of Duisburg-Essen,10,Prokurist:3; Geschäftsführer:2; Persönlich haftender Gesellschafter:1,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5047071096,https://openalex.org/A5047071096,Andrea Schäfer,,2,0,direct_ude,University of Duisburg-Essen,10,Geschäftsführer:5; Prokurist:1,currently registered:5,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5091806917,https://openalex.org/A5091806917,Andreas Behr,https://orcid.org/0000-0002-6818-1878,107,1172,direct_ude,University of Duisburg-Essen,10,Geschäftsführer:5; Prokurist:1,currently registered:3; removed:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5001746184,https://openalex.org/A5001746184,Andreas Kempf,,227,6307,direct_ude,University of Duisburg-Essen,10,Geschäftsführer:2; Inhaber:2; Prokurist:2,currently registered:5,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5128774002,https://openalex.org/A5128774002,Andreas Kempf,,1,0,direct_ude,University of Duisburg-Essen,10,Geschäftsführer:2; Inhaber:2; Prokurist:2,currently registered:5,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5065059084,https://openalex.org/A5065059084,Andreas Kopf,https://orcid.org/0000-0002-0111-4638,2,15,direct_ude,University of Duisburg-Essen,10,Geschäftsführer:2; Prokurist:2; Persönlich haftender Gesellschafter:1,currently registered:3; removed:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5046865796,https://openalex.org/A5046865796,Andreas Stöhr,https://orcid.org/0000-0003-1036-2120,291,5084,direct_ude,University of Duisburg-Essen,10,Geschäftsführer:5,currently registered:3; removed:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5126618638,https://openalex.org/A5126618638,Anja Niemann,,1,0,direct_ude,University of Duisburg-Essen,10,Geschäftsführer:4; Inhaber:2,currently registered:3; removed:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5026130647,https://openalex.org/A5026130647,Carsten Krause,,20,172,direct_ude,University of Duisburg-Essen,10,Geschäftsführer:4; Inhaber:1,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5112174027,https://openalex.org/A5112174027,Dieter Reinhardt,,4,5,direct_ude,University of Duisburg-Essen,10,Geschäftsführer:3; Persönlich haftender Gesellschafter:1; Prokurist:1,currently registered:3; removed:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5074831805,https://openalex.org/A5074831805,Guido Wolf,,23,46,direct_ude,University of Duisburg-Essen,10,Geschäftsführer:4; Inhaber:1; Prokurist:1,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5006001806,https://openalex.org/A5006001806,Jan Siebert,https://orcid.org/0000-0001-7378-3876,6,8,direct_ude,University of Duisburg-Essen,10,Geschäftsführer:7,currently registered:5,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5103234025,https://openalex.org/A5103234025,Jens Schumacher,https://orcid.org/0000-0003-4884-7764,10,124,direct_ude,University of Duisburg-Essen,10,Geschäftsführer:4; Prokurist:2,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5035003250,https://openalex.org/A5035003250,Klaus Pohl,,6,30,direct_ude,University of Duisburg-Essen,10,Geschäftsführer:5; Prokurist:1,currently registered:5,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5074036780,https://openalex.org/A5074036780,Klaus Pohl,https://orcid.org/0000-0003-2199-5257,306,12954,direct_ude,University of Duisburg-Essen,10,Geschäftsführer:5; Prokurist:1,currently registered:5,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5039283594,https://openalex.org/A5039283594,Marco Meier,https://orcid.org/0000-0002-6080-8904,1,8,direct_ude,University of Duisburg-Essen,10,Geschäftsführer:4; Inhaber:1; Liquidator:1,currently registered:3; removed:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5086007116,https://openalex.org/A5086007116,Matthias Linke,https://orcid.org/0000-0002-8814-6316,9,100,direct_ude,University of Duisburg-Essen,10,Geschäftsführer:5,currently registered:3; removed:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5044176437,https://openalex.org/A5044176437,Michael Erkelenz,https://orcid.org/0000-0003-3485-0380,30,868,direct_ude,University of Duisburg-Essen,10,Geschäftsführer:5; Prokurist:1,removed:4; currently registered:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5105098228,https://openalex.org/A5105098228,Michael Erkelenz,,2,0,direct_ude,University of Duisburg-Essen,10,Geschäftsführer:5; Prokurist:1,removed:4; currently registered:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5085748095,https://openalex.org/A5085748095,Michael Fleischer,https://orcid.org/0000-0002-5720-8393,39,827,direct_ude,University of Duisburg-Essen,10,Geschäftsführer:5,currently registered:5,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5079734558,https://openalex.org/A5079734558,Michael Stratmann,,3,63,direct_ude,University of Duisburg-Essen,10,Geschäftsführer:7; Liquidator:1,currently registered:5,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5062809846,https://openalex.org/A5062809846,Peter Berndt,,2,19,direct_ude,University of Duisburg-Essen,10,Geschäftsführer:4; Inhaber:1; Liquidator:1,currently registered:3; removed:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5090934184,https://openalex.org/A5090934184,Petra Stein,,60,651,direct_ude,University of Duisburg-Essen,10,Prokurist:4; Geschäftsführer:2; Inhaber:2,currently registered:3; removed:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5035669105,https://openalex.org/A5035669105,Rolf Küpper,,1,11,direct_ude,University of Duisburg-Essen,10,Prokurist:4; Geschäftsführer:2,removed:3; currently registered:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5011673386,https://openalex.org/A5011673386,Simone Lange,,11,1539,direct_ude,University of Duisburg-Essen,10,Prokurist:4; Geschäftsführer:3,currently registered:3; removed:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5053775098,https://openalex.org/A5053775098,Stefan Hölscher,,2,8,direct_ude,University of Duisburg-Essen,10,Geschäftsführer:5,currently registered:4; removed:1,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5030649192,https://openalex.org/A5030649192,Stephan Lang,https://orcid.org/0009-0000-4420-9664,873,16973,direct_ude,University of Duisburg-Essen,10,Geschäftsführer:3; Inhaber:1; Prokurist:1,currently registered:5,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5122822060,https://openalex.org/A5122822060,Stephan Lang,,2,0,direct_ude,University of Duisburg-Essen,10,Geschäftsführer:3; Inhaber:1; Prokurist:1,currently registered:5,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5125675957,https://openalex.org/A5125675957,Stephan Lang,,6,0,direct_ude,University of Duisburg-Essen,10,Geschäftsführer:3; Inhaber:1; Prokurist:1,currently registered:5,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5125682548,https://openalex.org/A5125682548,Stephan Lang,,1,0,direct_ude,University of Duisburg-Essen,10,Geschäftsführer:3; Inhaber:1; Prokurist:1,currently registered:5,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5126583281,https://openalex.org/A5126583281,Stephan Lang,,2,0,direct_ude,University of Duisburg-Essen,10,Geschäftsführer:3; Inhaber:1; Prokurist:1,currently registered:5,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5126658578,https://openalex.org/A5126658578,Stephan Lang,,1,0,direct_ude,University of Duisburg-Essen,10,Geschäftsführer:3; Inhaber:1; Prokurist:1,currently registered:5,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5130106768,https://openalex.org/A5130106768,Stephan Lang,,1,0,direct_ude,University of Duisburg-Essen,10,Geschäftsführer:3; Inhaber:1; Prokurist:1,currently registered:5,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5100383092,https://openalex.org/A5100383092,Ying Chen,https://orcid.org/0000-0002-8894-0085,15,285,direct_ude,University of Duisburg-Essen,10,Geschäftsführer:6,currently registered:3; removed:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5123572043,https://openalex.org/A5123572043,Ying Chen,,8,0,direct_ude,University of Duisburg-Essen,10,Geschäftsführer:6,currently registered:3; removed:2,no,Mehrere Handelsregister-Treffer für denselben Namen; manuelle Prüfung empfohlen. +A5120052452,https://openalex.org/A5120052452,Alex Hoppe,,1,0,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:5,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5020656602,https://openalex.org/A5020656602,Alexander Hahn,https://orcid.org/0000-0002-9305-1768,1,2,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:4; Inhaber:1,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5015660909,https://openalex.org/A5015660909,Alexander Hoffmann,https://orcid.org/0000-0002-8360-6862,129,2699,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:6; Prokurist:1,currently registered:3; removed:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5068899403,https://openalex.org/A5068899403,Alexander Huber,,18,181,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:3; Inhaber:2; Persönlich haftender Gesellschafter:1,currently registered:3; removed:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5124753921,https://openalex.org/A5124753921,Alexander Huber,,1,0,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:3; Inhaber:2; Persönlich haftender Gesellschafter:1,currently registered:3; removed:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5108639570,https://openalex.org/A5108639570,Alexander Jahn,,10,171,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:4; Prokurist:2,currently registered:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5025003490,https://openalex.org/A5025003490,Alexander Neumann,https://orcid.org/0000-0003-1457-354X,64,1058,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:5; Prokurist:4,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5013496413,https://openalex.org/A5013496413,Alexander Schmitz,https://orcid.org/0000-0002-1018-7054,16,259,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:5,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5019137844,https://openalex.org/A5019137844,Alexander Schramm,https://orcid.org/0000-0001-7670-7529,571,16274,direct_ude,University of Duisburg-Essen,>=11,Prokurist:3; Geschäftsführer:2,removed:3; currently registered:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5027254219,https://openalex.org/A5027254219,Alexander Schwarz,https://orcid.org/0000-0003-2276-5947,70,449,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:4; Inhaber:1,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5048818593,https://openalex.org/A5048818593,Alexander Thomas,https://orcid.org/0000-0003-4013-8963,15,90,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:5,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5102020873,https://openalex.org/A5102020873,Alexander Thomas,https://orcid.org/0000-0001-8185-6828,176,2011,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:5,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5103267686,https://openalex.org/A5103267686,Alexander Wagner,https://orcid.org/0000-0002-6162-4875,22,1199,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:4; Prokurist:1,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5039847128,https://openalex.org/A5039847128,Andreas Bayer,,5,44,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:6; Prokurist:4; Liquidator:1,currently registered:3; removed:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5126946569,https://openalex.org/A5126946569,Andreas Giese,,1,0,direct_ude,University of Duisburg-Essen,11,Geschäftsführer:3; Persönlich haftender Gesellschafter:2; Liquidator:1,currently registered:3; removed:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5082807445,https://openalex.org/A5082807445,Andreas Göbel,,7,66,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:4; Prokurist:2; Liquidator:1,removed:3; currently registered:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5082867129,https://openalex.org/A5082867129,Andreas Hüttmann,https://orcid.org/0000-0003-2230-3873,192,8323,direct_ude,University of Duisburg-Essen,>=11,Liquidator:3; Geschäftsführer:2,removed:3; currently registered:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5114186435,https://openalex.org/A5114186435,Andreas Hüttmann,,1,95,direct_ude,University of Duisburg-Essen,>=11,Liquidator:3; Geschäftsführer:2,removed:3; currently registered:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5125397163,https://openalex.org/A5125397163,Andreas Hüttmann,,1,0,direct_ude,University of Duisburg-Essen,>=11,Liquidator:3; Geschäftsführer:2,removed:3; currently registered:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5030957194,https://openalex.org/A5030957194,Andreas Jansen,,15,59,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:3; Prokurist:2,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5088483719,https://openalex.org/A5088483719,Andreas Kraus,,25,581,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:4; Persönlich haftender Gesellschafter:1; Prokurist:1,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5014874075,https://openalex.org/A5014874075,Andreas Köhler,https://orcid.org/0000-0001-8904-0380,16,50,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:5,currently registered:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5086206513,https://openalex.org/A5086206513,Andreas Müller,,17,17,direct_ude,University of Duisburg-Essen,>=11,Prokurist:3; Geschäftsführer:2,currently registered:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5087818310,https://openalex.org/A5087818310,Andreas Müller,https://orcid.org/0000-0002-7447-700X,132,3425,direct_ude,University of Duisburg-Essen,>=11,Prokurist:3; Geschäftsführer:2,currently registered:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5126339947,https://openalex.org/A5126339947,Andreas Müller,,1,0,direct_ude,University of Duisburg-Essen,>=11,Prokurist:3; Geschäftsführer:2,currently registered:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5128888404,https://openalex.org/A5128888404,Andreas Müller,,2,0,direct_ude,University of Duisburg-Essen,>=11,Prokurist:3; Geschäftsführer:2,currently registered:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5084350670,https://openalex.org/A5084350670,Andreas Nickel,https://orcid.org/0000-0001-6847-6011,50,268,direct_ude,University of Duisburg-Essen,>=11,Prokurist:3; Geschäftsführer:2; Inhaber:1,currently registered:3; removed:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5066427300,https://openalex.org/A5066427300,Andreas Peters,https://orcid.org/0000-0002-3868-7552,152,1212,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:4; Inhaber:1; Prokurist:1,removed:3; currently registered:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5066751418,https://openalex.org/A5066751418,Andreas Pieper,https://orcid.org/0000-0002-9054-7274,34,216,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:4; Prokurist:1,currently registered:3; removed:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5058513288,https://openalex.org/A5058513288,Andreas Schönfeld,,35,238,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:6; Prokurist:2,removed:3; currently registered:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5004942312,https://openalex.org/A5004942312,Andreas Schütte,https://orcid.org/0000-0002-9915-0601,48,956,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:5; Persönlich haftender Gesellschafter:1,removed:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5034195386,https://openalex.org/A5034195386,André Lorenz,,12,63,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:4; Inhaber:2,currently registered:3; removed:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5037792167,https://openalex.org/A5037792167,André Müller,https://orcid.org/0000-0002-7804-8640,68,409,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:6; Prokurist:1,currently registered:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5078993317,https://openalex.org/A5078993317,Benjamin Otto,,7,10,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:5,removed:4; currently registered:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5090083006,https://openalex.org/A5090083006,Bernd Menzel,,2,20,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:5,removed:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5049751836,https://openalex.org/A5049751836,Bernd Wagner,https://orcid.org/0000-0003-0877-6906,29,581,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:6; Prokurist:1,currently registered:3; removed:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5090572749,https://openalex.org/A5090572749,Bernhard Müller,https://orcid.org/0000-0002-9573-1417,284,6315,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:3; Prokurist:3; Inhaber:1; Liquidator:1,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5110010176,https://openalex.org/A5110010176,Christian Baier,,1,39,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:3; Prokurist:2,currently registered:3; removed:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5108402711,https://openalex.org/A5108402711,Christian Berg,,14,478,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:4; Prokurist:1,currently registered:3; removed:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5086730050,https://openalex.org/A5086730050,Christian Hoffmann,https://orcid.org/0000-0002-5776-439X,16,79,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:6; Prokurist:1,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5038994918,https://openalex.org/A5038994918,Christian Johannes,,69,3119,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:6,currently registered:3; removed:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5022286426,https://openalex.org/A5022286426,Christian Mayer,https://orcid.org/0000-0003-1681-0553,242,5370,direct_ude,University of Duisburg-Essen,>=11,Prokurist:3; Geschäftsführer:2; Liquidator:1,currently registered:3; removed:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5075343853,https://openalex.org/A5075343853,Christian Müller,https://orcid.org/0000-0002-2950-446X,75,630,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:4; Inhaber:1; Prokurist:1,currently registered:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5120610207,https://openalex.org/A5120610207,Christian Scholz,https://orcid.org/0009-0003-2601-2202,1,0,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:6; Persönlich haftender Gesellschafter:1,currently registered:3; removed:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5101815496,https://openalex.org/A5101815496,Christian Thiel,https://orcid.org/0000-0002-2290-8242,33,267,direct_ude,University of Duisburg-Essen,>=11,Prokurist:4; Geschäftsführer:3,currently registered:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5081725415,https://openalex.org/A5081725415,Christian Vogel,,7,23,direct_ude,University of Duisburg-Essen,>=11,Inhaber:2; Prokurist:2; Geschäftsführer:1,currently registered:3; removed:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5100603203,https://openalex.org/A5100603203,Christian Weber,https://orcid.org/0000-0003-4610-8714,1837,99587,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:5; Persönlich haftender Gesellschafter:2; Inhaber:1,currently registered:3; removed:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5103691262,https://openalex.org/A5103691262,Christian Witt,,32,526,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:7,removed:4; currently registered:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5101676729,https://openalex.org/A5101676729,Christoph Müller,https://orcid.org/0009-0006-0910-9135,11,12,direct_ude,University of Duisburg-Essen,>=11,Prokurist:3; Geschäftsführer:2; Inhaber:1,currently registered:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5013924170,https://openalex.org/A5013924170,Christoph Schramm,https://orcid.org/0000-0001-6752-0690,93,740,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:6,removed:3; currently registered:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5065790260,https://openalex.org/A5065790260,Christoph Weber,https://orcid.org/0000-0003-0197-7991,545,5820,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:5; Prokurist:1,currently registered:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5121605940,https://openalex.org/A5121605940,Christoph Weber,,1,0,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:5; Prokurist:1,currently registered:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5123271660,https://openalex.org/A5123271660,Christoph Weber,,1,1,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:5; Prokurist:1,currently registered:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5129104343,https://openalex.org/A5129104343,Christoph Weber,,2,0,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:5; Prokurist:1,currently registered:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5034523099,https://openalex.org/A5034523099,Claus Günther,,2,25,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:4; Prokurist:1,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5074555350,https://openalex.org/A5074555350,Daniel Hoffmann,https://orcid.org/0000-0003-2973-7869,332,7243,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:6; Liquidator:1,currently registered:3; removed:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5100660461,https://openalex.org/A5100660461,Daniel Huber,,7,161,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:6; Prokurist:1,currently registered:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5104102189,https://openalex.org/A5104102189,Daniel Schäfer,,24,303,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:6; Prokurist:1,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5124708205,https://openalex.org/A5124708205,Daniel Schäfer,,1,0,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:6; Prokurist:1,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5049860860,https://openalex.org/A5049860860,Daniel Steiner,https://orcid.org/0000-0002-1061-9064,34,189,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:4; Prokurist:2,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5105122933,https://openalex.org/A5105122933,Daniel Steiner,,3,0,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:4; Prokurist:2,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5125298692,https://openalex.org/A5125298692,Daniel Steiner,,1,0,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:4; Prokurist:2,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5007177481,https://openalex.org/A5007177481,Daniel Ziegler,,4,9,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:7,currently registered:3; removed:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5114803792,https://openalex.org/A5114803792,David Fuchs,https://orcid.org/0009-0008-1483-0714,15,946,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:6,currently registered:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5013220191,https://openalex.org/A5013220191,David Meyer,,12,37,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:5,removed:4; currently registered:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5024490563,https://openalex.org/A5024490563,Dieter Wolters,,1,13,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:5; Prokurist:1,removed:4; currently registered:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5086437544,https://openalex.org/A5086437544,Florian Kunz,https://orcid.org/0000-0002-6640-1814,2,23,direct_ude,University of Duisburg-Essen,11,Geschäftsführer:4; Liquidator:1,currently registered:3; removed:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5098818654,https://openalex.org/A5098818654,Frank Becker,,6,0,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:5,currently registered:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5102274030,https://openalex.org/A5102274030,Frank Becker,,2,5,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:5,currently registered:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5107174442,https://openalex.org/A5107174442,Frank Becker,,5,9,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:5,currently registered:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5016436943,https://openalex.org/A5016436943,Frank Kirchner,https://orcid.org/0000-0002-1713-9784,463,6924,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:5,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5111842190,https://openalex.org/A5111842190,Frank Schmidt,,159,4718,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:4; Prokurist:3; Liquidator:2,removed:3; currently registered:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5026728906,https://openalex.org/A5026728906,Frank Schneider,,3,65,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:7; Prokurist:2,currently registered:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5032121594,https://openalex.org/A5032121594,Frank Weber,https://orcid.org/0000-0002-0995-667X,244,5651,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:2; Persönlich haftender Gesellschafter:2; Liquidator:1; Prokurist:1,removed:4; currently registered:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5062189732,https://openalex.org/A5062189732,Frank Weber,https://orcid.org/0000-0001-8285-5544,394,9324,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:2; Persönlich haftender Gesellschafter:2; Liquidator:1; Prokurist:1,removed:4; currently registered:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5123207204,https://openalex.org/A5123207204,Frank Weber,,1,0,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:2; Persönlich haftender Gesellschafter:2; Liquidator:1; Prokurist:1,removed:4; currently registered:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5010957617,https://openalex.org/A5010957617,Georg Jansen,https://orcid.org/0000-0002-0724-3895,191,7215,direct_ude,University of Duisburg-Essen,11,Geschäftsführer:4; Prokurist:1,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5090280161,https://openalex.org/A5090280161,Gregor Braun,,4,5,direct_ude,University of Duisburg-Essen,11,Liquidator:4; Geschäftsführer:3,removed:3; currently registered:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5095407533,https://openalex.org/A5095407533,Hans Bach,,2,0,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:2; Prokurist:2; Liquidator:1,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5035617524,https://openalex.org/A5035617524,Hartmut Engler,,2,0,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:4; Prokurist:1,currently registered:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5015932441,https://openalex.org/A5015932441,Hartmut Schmidt,https://orcid.org/0000-0002-2402-7764,1031,21471,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:6; Prokurist:1,currently registered:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5064646832,https://openalex.org/A5064646832,Hartmut Schmidt,,60,371,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:6; Prokurist:1,currently registered:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5110660963,https://openalex.org/A5110660963,Heiko Schmidt,,1,38,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:6,currently registered:3; removed:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5017152518,https://openalex.org/A5017152518,Heiko Schulz,,4,7,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:4; Liquidator:2,removed:3; currently registered:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5026150065,https://openalex.org/A5026150065,Helmut Schneider,,9,7,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:6,currently registered:3; removed:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5038040583,https://openalex.org/A5038040583,Hubert Müller,,51,817,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:3; Prokurist:2; Inhaber:1; Liquidator:1,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5108956560,https://openalex.org/A5108956560,Hui Wang,,5,30,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:6; Prokurist:2; Liquidator:1,currently registered:3; removed:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5032210373,https://openalex.org/A5032210373,Jan Müller,,6,30,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:3; Inhaber:1; Prokurist:1,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5068488252,https://openalex.org/A5068488252,Jan Weber,https://orcid.org/0000-0002-2799-7352,190,4567,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:6; Liquidator:1; Prokurist:1,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5059941086,https://openalex.org/A5059941086,Jens Bauer,,20,268,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:5; Inhaber:1,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5087449583,https://openalex.org/A5087449583,Jens Krüger,https://orcid.org/0000-0002-9197-0613,67,1176,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:8; Prokurist:1,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5036965906,https://openalex.org/A5036965906,Jens Meyer,https://orcid.org/0000-0001-7265-1628,8,143,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:6; Persönlich haftender Gesellschafter:1; Prokurist:1,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5082133427,https://openalex.org/A5082133427,Jens Zimmermann,,2,2,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:4; Prokurist:3,removed:3; currently registered:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5112145711,https://openalex.org/A5112145711,Jochen Schmitz,,72,7028,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:4; Prokurist:2,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5108419254,https://openalex.org/A5108419254,Johannes Koch,,43,1006,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:3; Prokurist:3,currently registered:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5113022614,https://openalex.org/A5113022614,Johannes Koch,,2,0,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:3; Prokurist:3,currently registered:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5008300748,https://openalex.org/A5008300748,Johannes Wendt,,10,152,direct_ude,University of Duisburg-Essen,11,Prokurist:5,currently registered:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5034230486,https://openalex.org/A5034230486,Jörg Meyer,,9,388,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:3; Prokurist:3,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5101542746,https://openalex.org/A5101542746,Jörg Schröder,https://orcid.org/0000-0001-7167-6022,102,277,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:5; Prokurist:1,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5101542747,https://openalex.org/A5101542747,Jörg Schröder,https://orcid.org/0000-0001-7960-9553,550,6814,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:5; Prokurist:1,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5106830254,https://openalex.org/A5106830254,Jörg Schröder,,1,0,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:5; Prokurist:1,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5120984621,https://openalex.org/A5120984621,Jörg Schröder,,2,0,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:5; Prokurist:1,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5019933867,https://openalex.org/A5019933867,Jörg Simon,,3,209,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:5,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5109281644,https://openalex.org/A5109281644,Jürgen Berger,,5,1705,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:3; Persönlich haftender Gesellschafter:2; Prokurist:1,currently registered:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5005751493,https://openalex.org/A5005751493,Jürgen Herzog,https://orcid.org/0000-0002-2971-2859,351,8302,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:4; Prokurist:1,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5072189999,https://openalex.org/A5072189999,Jürgen Herzog,,18,268,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:4; Prokurist:1,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5110555184,https://openalex.org/A5110555184,Jürgen Herzog,,10,6,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:4; Prokurist:1,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5127161804,https://openalex.org/A5127161804,Jürgen Jung,,14,0,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:5,currently registered:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5032714872,https://openalex.org/A5032714872,Jürgen König,https://orcid.org/0000-0003-3836-4611,255,8464,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:6; Persönlich haftender Gesellschafter:2; Liquidator:1,currently registered:3; removed:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5040353606,https://openalex.org/A5040353606,Jürgen Ziegler,https://orcid.org/0000-0001-9603-5272,359,3119,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:4; Prokurist:1,currently registered:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5114019148,https://openalex.org/A5114019148,Jürgen Ziegler,,16,3,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:4; Prokurist:1,currently registered:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5127157117,https://openalex.org/A5127157117,Jürgen Ziegler,,8,0,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:4; Prokurist:1,currently registered:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5104427325,https://openalex.org/A5104427325,Karina Kruse,,1,16,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:5,currently registered:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5045780650,https://openalex.org/A5045780650,Karsten Schmidt,https://orcid.org/0000-0001-8373-9406,153,2581,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:3; Prokurist:2,currently registered:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5104361385,https://openalex.org/A5104361385,Klaus Jacobs,,2,2,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:7; Prokurist:1,removed:4; currently registered:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5108971031,https://openalex.org/A5108971031,Konrad Müller,,36,1258,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:4; Liquidator:1,currently registered:3; removed:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5005130277,https://openalex.org/A5005130277,Lars Becker,https://orcid.org/0000-0001-7876-2580,88,500,direct_ude,University of Duisburg-Essen,>=11,Persönlich haftender Gesellschafter:3; Geschäftsführer:2; Prokurist:1,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5123109097,https://openalex.org/A5123109097,Lars Becker,,1,0,direct_ude,University of Duisburg-Essen,>=11,Persönlich haftender Gesellschafter:3; Geschäftsführer:2; Prokurist:1,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5015192554,https://openalex.org/A5015192554,Lars Geiger,,16,402,direct_ude,University of Duisburg-Essen,>=11,Prokurist:5,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5025015463,https://openalex.org/A5025015463,Lars Johannsen,,38,1177,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:7,currently registered:3; removed:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5109197029,https://openalex.org/A5109197029,Lars Meyer,,103,1275,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:4; Persönlich haftender Gesellschafter:1; Prokurist:1,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5128958719,https://openalex.org/A5128958719,Lars Möller,,1,0,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:5; Vorstand:1,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5083295173,https://openalex.org/A5083295173,Lars Schmidt,,6,45,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:7; Prokurist:2,currently registered:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5105774195,https://openalex.org/A5105774195,Lars Schmidt,,10,3,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:7; Prokurist:2,currently registered:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5027311573,https://openalex.org/A5027311573,Maike Müller,,2,0,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:3; Liquidator:1; Prokurist:1,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5045955262,https://openalex.org/A5045955262,Manfred Lange,,17,228,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:5,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5083105835,https://openalex.org/A5083105835,Marc Birkner,,2,79,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:5; Prokurist:1,removed:4; currently registered:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5017148486,https://openalex.org/A5017148486,Marcel Kremer,https://orcid.org/0000-0001-9130-7670,14,121,direct_ude,University of Duisburg-Essen,>=11,Persönlich haftender Gesellschafter:4; Geschäftsführer:3,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5018246741,https://openalex.org/A5018246741,Marcel Noack,,18,57,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:8,removed:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5003062229,https://openalex.org/A5003062229,Marcus Brinkmann,https://orcid.org/0000-0001-6370-5380,28,761,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:5; Prokurist:4,removed:3; currently registered:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5127193245,https://openalex.org/A5127193245,Marcus Schmitt,,9,0,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:6,currently registered:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5027482134,https://openalex.org/A5027482134,Marion Weber,,4,12,direct_ude,University of Duisburg-Essen,11,Geschäftsführer:4; Liquidator:1,currently registered:3; removed:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5024191146,https://openalex.org/A5024191146,Markus Kaiser,https://orcid.org/0000-0002-6540-8520,359,8863,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:4; Prokurist:1,currently registered:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5028999855,https://openalex.org/A5028999855,Martin Beck,https://orcid.org/0000-0002-7397-1321,252,18495,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:5; Inhaber:1; Prokurist:1,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5049649829,https://openalex.org/A5049649829,Martin Busch,,4,191,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:5; Prokurist:2,currently registered:3; removed:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5002958357,https://openalex.org/A5002958357,Martin Friedrich,,2,19,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:3; Liquidator:1; Prokurist:1,currently registered:3; removed:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5045477517,https://openalex.org/A5045477517,Martin Lang,,2,0,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:4; Prokurist:2,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5072066931,https://openalex.org/A5072066931,Martin Lemke,,4,44,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:6; Prokurist:2,removed:3; currently registered:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5125936671,https://openalex.org/A5125936671,Martin May,,1,0,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:5; Liquidator:1; Prokurist:1,removed:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5007762483,https://openalex.org/A5007762483,Martin Schäfer,https://orcid.org/0000-0002-4580-6337,100,2270,direct_ude,University of Duisburg-Essen,>=11,Prokurist:3; Persönlich haftender Gesellschafter:2; Geschäftsführer:1; Inhaber:1,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5016786021,https://openalex.org/A5016786021,Martin Steinmetz,https://orcid.org/0000-0002-9109-0720,2,7,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:5,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5047106177,https://openalex.org/A5047106177,Matthias Brand,https://orcid.org/0000-0001-7194-7697,80,1420,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:4; Prokurist:1,currently registered:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5121446709,https://openalex.org/A5121446709,Matthias Brand,,1,0,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:4; Prokurist:1,currently registered:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5123730804,https://openalex.org/A5123730804,Matthias Brand,,1,0,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:4; Prokurist:1,currently registered:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5125038989,https://openalex.org/A5125038989,Matthias Brand,,1,1,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:4; Prokurist:1,currently registered:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5129971313,https://openalex.org/A5129971313,Matthias Brand,,1,0,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:4; Prokurist:1,currently registered:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5130612736,https://openalex.org/A5130612736,Matthias Brand,,1,0,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:4; Prokurist:1,currently registered:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5018982548,https://openalex.org/A5018982548,Matthias Bähr,https://orcid.org/0000-0003-2598-1442,27,146,child_of_ude,The Hydrogen and Fuel Cell Center,>=11,Geschäftsführer:5,currently registered:3; removed:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5083966487,https://openalex.org/A5083966487,Matthias Kramer,https://orcid.org/0000-0002-4865-7023,12,4,direct_ude,University of Duisburg-Essen,>=11,Prokurist:3; Geschäftsführer:2,currently registered:3; removed:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5003105833,https://openalex.org/A5003105833,Michael Berger,https://orcid.org/0000-0002-3469-0076,185,6927,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:4; Prokurist:2; Liquidator:1,currently registered:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5085864136,https://openalex.org/A5085864136,Michael Berger,,10,55,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:4; Prokurist:2; Liquidator:1,currently registered:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5102099848,https://openalex.org/A5102099848,Michael Berger,,41,3027,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:4; Prokurist:2; Liquidator:1,currently registered:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5125930652,https://openalex.org/A5125930652,Michael Berger,,1,0,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:4; Prokurist:2; Liquidator:1,currently registered:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5045643257,https://openalex.org/A5045643257,Michael Braun,https://orcid.org/0000-0002-3961-6211,33,608,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:4; Prokurist:2; Liquidator:1,currently registered:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5103428777,https://openalex.org/A5103428777,Michael Braun,,15,117,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:4; Prokurist:2; Liquidator:1,currently registered:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5104591730,https://openalex.org/A5104591730,Michael Faust,,1,0,direct_ude,University of Duisburg-Essen,>=11,Prokurist:3; Geschäftsführer:2,currently registered:3; removed:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5039072748,https://openalex.org/A5039072748,Michael Giese,https://orcid.org/0000-0001-6355-536X,239,3476,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:3; Inhaber:1; Prokurist:1,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5073979306,https://openalex.org/A5073979306,Michael Jahn,https://orcid.org/0000-0002-7493-205X,72,1278,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:6; Inhaber:1; Prokurist:1,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5080777994,https://openalex.org/A5080777994,Michael Kamp,https://orcid.org/0000-0001-6231-0694,71,1138,child_of_ude,Institute for Advanced Study in the Humanities Essen,>=11,Geschäftsführer:7; Prokurist:1,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5067507616,https://openalex.org/A5067507616,Michael Klein,https://orcid.org/0000-0002-1448-9535,83,908,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:5,currently registered:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5060412934,https://openalex.org/A5060412934,Michael Korn,,3,36,direct_ude,University of Duisburg-Essen,>=11,Prokurist:4; Geschäftsführer:1,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5073107581,https://openalex.org/A5073107581,Michael Philipp,,202,3070,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:3; Prokurist:3,currently registered:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5061602677,https://openalex.org/A5061602677,Michael Pies,,5,24,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:8,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5117265306,https://openalex.org/A5117265306,Michael Schmitz,,1,0,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:6,currently registered:3; removed:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5025836402,https://openalex.org/A5025836402,Michael Steffen,,42,379,child_of_ude,The Hydrogen and Fuel Cell Center,>=11,Geschäftsführer:3; Prokurist:3; Inhaber:1,currently registered:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5101742920,https://openalex.org/A5101742920,Michael Wurm,https://orcid.org/0000-0002-3419-2202,7,50,direct_ude,University of Duisburg-Essen,11,Geschäftsführer:5,currently registered:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5034259217,https://openalex.org/A5034259217,Norbert Schwarz,https://orcid.org/0000-0002-8868-7067,764,91389,direct_ude,University of Duisburg-Essen,>=11,Prokurist:3; Geschäftsführer:2; Inhaber:1; Liquidator:1,currently registered:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5007001298,https://openalex.org/A5007001298,Oliver Schwarz,https://orcid.org/0000-0003-3434-5640,209,1803,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:4; Inhaber:1,currently registered:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5118729889,https://openalex.org/A5118729889,Oliver Schwarz,https://orcid.org/0000-0003-0930-9752,1,1,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:4; Inhaber:1,currently registered:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5069695058,https://openalex.org/A5069695058,Peter Bayer,https://orcid.org/0000-0003-0435-7202,163,4001,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:7,currently registered:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5122335477,https://openalex.org/A5122335477,Peter Haase,,4,0,direct_ude,University of Duisburg-Essen,>=11,Prokurist:3; Geschäftsführer:2; Liquidator:2,removed:3; currently registered:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5126565073,https://openalex.org/A5126565073,Peter Haase,,1,0,direct_ude,University of Duisburg-Essen,>=11,Prokurist:3; Geschäftsführer:2; Liquidator:2,removed:3; currently registered:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5128761798,https://openalex.org/A5128761798,Peter Haase,,1,0,direct_ude,University of Duisburg-Essen,>=11,Prokurist:3; Geschäftsführer:2; Liquidator:2,removed:3; currently registered:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5128789493,https://openalex.org/A5128789493,Peter Haase,,1,0,direct_ude,University of Duisburg-Essen,>=11,Prokurist:3; Geschäftsführer:2; Liquidator:2,removed:3; currently registered:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5044056577,https://openalex.org/A5044056577,Peter Hinz,,2,35,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:4; Liquidator:1,currently registered:3; removed:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5015245862,https://openalex.org/A5015245862,Peter Jung,https://orcid.org/0000-0001-7679-9697,894,22945,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:4; Prokurist:1,currently registered:3; removed:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5101501818,https://openalex.org/A5101501818,Peter Jung,https://orcid.org/0000-0001-7002-8840,62,70,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:4; Prokurist:1,currently registered:3; removed:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5130157755,https://openalex.org/A5130157755,Peter Jung,,1,0,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:4; Prokurist:1,currently registered:3; removed:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5130524017,https://openalex.org/A5130524017,Peter Jung,,1,0,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:4; Prokurist:1,currently registered:3; removed:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5095512590,https://openalex.org/A5095512590,Peter Klein,,1,0,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:5; Liquidator:2; Inhaber:1; Prokurist:1,removed:4; currently registered:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5073786564,https://openalex.org/A5073786564,Peter Kramer,,4,0,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:6; Prokurist:1,currently registered:3; removed:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5005284699,https://openalex.org/A5005284699,Peter Vogel,,1,0,child_of_ude,Deutsches Textilforschungszentrum Nord-West,>=11,Geschäftsführer:3; Liquidator:1; Prokurist:1,currently registered:3; removed:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5078736126,https://openalex.org/A5078736126,Peter Vogel,,2,0,child_of_ude,Deutsches Textilforschungszentrum Nord-West,>=11,Geschäftsführer:3; Liquidator:1; Prokurist:1,currently registered:3; removed:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5073677785,https://openalex.org/A5073677785,Philipp Heim,,40,677,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:6,currently registered:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5000527934,https://openalex.org/A5000527934,Ralf Herrmann,,99,3438,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:5; Prokurist:2,currently registered:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5091333429,https://openalex.org/A5091333429,Ralf Küppers,https://orcid.org/0000-0002-6691-7191,510,44299,direct_ude,University of Duisburg-Essen,11,Geschäftsführer:4; Liquidator:1; Persönlich haftender Gesellschafter:1,currently registered:3; removed:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5103187419,https://openalex.org/A5103187419,Ralf Müller,,200,4724,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:4; Inhaber:1; Liquidator:1,currently registered:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5077021691,https://openalex.org/A5077021691,Ralf Sauer,,3,32,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:3; Inhaber:1; Prokurist:1,currently registered:3; removed:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5014597935,https://openalex.org/A5014597935,Reinhard Schulz,,1,0,direct_ude,University of Duisburg-Essen,>=11,Liquidator:3; Geschäftsführer:2; Prokurist:2,removed:3; currently registered:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5101832860,https://openalex.org/A5101832860,Robert Huber,https://orcid.org/0000-0002-0133-5334,746,81882,direct_ude,University of Duisburg-Essen,>=11,Prokurist:6,currently registered:3; removed:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5113600462,https://openalex.org/A5113600462,Robert Huber,,7,794,direct_ude,University of Duisburg-Essen,>=11,Prokurist:6,currently registered:3; removed:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5078738600,https://openalex.org/A5078738600,Rolf Braun,,4,11,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:4; Prokurist:2,currently registered:3; removed:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5129673745,https://openalex.org/A5129673745,Rudolf Walter,,1,0,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:5,removed:4; currently registered:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5122103793,https://openalex.org/A5122103793,Sebastian Bauer,,1,0,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:7; Prokurist:1,currently registered:3; removed:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5127808287,https://openalex.org/A5127808287,Sebastian Bauer,,1,0,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:7; Prokurist:1,currently registered:3; removed:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5130591899,https://openalex.org/A5130591899,Sebastian Bauer,,1,0,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:7; Prokurist:1,currently registered:3; removed:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5104110302,https://openalex.org/A5104110302,Sebastian Klein,,123,992,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:6,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5078421413,https://openalex.org/A5078421413,Sebastian Seidel,,6,72,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:6,currently registered:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5028574608,https://openalex.org/A5028574608,Stefan Behrendt,,2,31,direct_ude,University of Duisburg-Essen,11,Geschäftsführer:3; Prokurist:2,currently registered:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5058806029,https://openalex.org/A5058806029,Stefan Blum,,4,56,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:4; Prokurist:3; Inhaber:1,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5072469617,https://openalex.org/A5072469617,Stefan Esser,,19,574,direct_ude,University of Duisburg-Essen,11,Geschäftsführer:5,removed:3; currently registered:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5125494958,https://openalex.org/A5125494958,Stefan Esser,,2,0,direct_ude,University of Duisburg-Essen,11,Geschäftsführer:5,removed:3; currently registered:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5111761334,https://openalex.org/A5111761334,Stefan Franke,,1,14,direct_ude,University of Duisburg-Essen,>=11,Prokurist:3; Geschäftsführer:2; Liquidator:1,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5079997249,https://openalex.org/A5079997249,Stefan Heimann,,40,469,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:2; Prokurist:2; Liquidator:1,currently registered:3; removed:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5029839616,https://openalex.org/A5029839616,Stefan Klein,,4,29,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:5; Prokurist:3,currently registered:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5090938768,https://openalex.org/A5090938768,Stefan Wagner,https://orcid.org/0000-0001-9737-2246,123,1396,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:5; Inhaber:1; Prokurist:1,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5062639221,https://openalex.org/A5062639221,Steffen Schulze,,2,1,child_of_ude,The Hydrogen and Fuel Cell Center,>=11,Geschäftsführer:4; Prokurist:1,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5004351252,https://openalex.org/A5004351252,Stephan Schulz,https://orcid.org/0000-0003-2896-4488,991,10298,direct_ude,University of Duisburg-Essen,>=11,Prokurist:4; Geschäftsführer:3,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5081179735,https://openalex.org/A5081179735,Stephan Schulz,https://orcid.org/0000-0002-3271-0897,10,20,direct_ude,University of Duisburg-Essen,>=11,Prokurist:4; Geschäftsführer:3,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5128899158,https://openalex.org/A5128899158,Stephan Schulz,,1,0,direct_ude,University of Duisburg-Essen,>=11,Prokurist:4; Geschäftsführer:3,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5114232030,https://openalex.org/A5114232030,Sven Kaiser,,2,12,child_of_ude,The Hydrogen and Fuel Cell Center,>=11,Geschäftsführer:6; Liquidator:2,removed:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5080964269,https://openalex.org/A5080964269,Sven Schulz,https://orcid.org/0000-0002-2663-5157,76,438,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:4; Inhaber:1; Liquidator:1,currently registered:3; removed:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5039812689,https://openalex.org/A5039812689,Sven Simon,https://orcid.org/0000-0002-6204-5437,229,2665,direct_ude,University of Duisburg-Essen,>=11,Prokurist:5,currently registered:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5003438467,https://openalex.org/A5003438467,Thilo Krämer,https://orcid.org/0000-0001-8806-8138,2,26,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:7,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5126851559,https://openalex.org/A5126851559,Thomas Brock,,1,0,child_of_ude,The Hydrogen and Fuel Cell Center,11,Geschäftsführer:3; Liquidator:2; Prokurist:1,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5107844819,https://openalex.org/A5107844819,Thomas Ernst,,93,8229,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:7,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5128656245,https://openalex.org/A5128656245,Thomas Günther,,2,0,direct_ude,University of Duisburg-Essen,>=11,Prokurist:4; Geschäftsführer:2,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5104272425,https://openalex.org/A5104272425,Thomas Herold,,135,2512,direct_ude,University of Duisburg-Essen,>=11,Prokurist:4; Liquidator:1,currently registered:3; removed:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5071644998,https://openalex.org/A5071644998,Thomas Kaiser,https://orcid.org/0000-0001-9679-5968,542,5080,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:5; Prokurist:1,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5111380960,https://openalex.org/A5111380960,Thomas Kaiser,,2,43,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:5; Prokurist:1,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5112411494,https://openalex.org/A5112411494,Thomas Kaiser,,36,182,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:5; Prokurist:1,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5121025589,https://openalex.org/A5121025589,Thomas Kaiser,,1,0,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:5; Prokurist:1,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5122994949,https://openalex.org/A5122994949,Thomas Kaiser,,2,0,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:5; Prokurist:1,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5128141811,https://openalex.org/A5128141811,Thomas Kaiser,,1,0,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:5; Prokurist:1,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5043600020,https://openalex.org/A5043600020,Thomas Keller,https://orcid.org/0000-0002-0126-4206,11,56,direct_ude,University of Duisburg-Essen,>=11,Prokurist:3; Geschäftsführer:2,currently registered:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5001102432,https://openalex.org/A5001102432,Thomas Klaus,,7,73,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:6,currently registered:3; removed:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5100733589,https://openalex.org/A5100733589,Thomas Schmidt,https://orcid.org/0000-0003-0026-6450,431,2352,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:4; Inhaber:2,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5111432183,https://openalex.org/A5111432183,Thomas Schrader,,5,188,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:3; Prokurist:2; Inhaber:1,removed:3; currently registered:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5101881137,https:/A5101881137/openalex.org/,Thomas Wagner,https://orcid.org/0000-0002-6853-0572,81,2335,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:2; Persönlich haftender Gesellschafter:2; Prokurist:2; Inhaber:1,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5082063437,https://openalex.org/A5082063437,Thomas Weber,https://orcid.org/0000-0002-3758-4279,42,154,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:6; Prokurist:1,currently registered:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5089915448,https://openalex.org/A5089915448,Thomas Wilke,,2,6,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:3; Inhaber:1; Liquidator:1,removed:3; currently registered:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5001069608,https://openalex.org/A5001069608,Tim Becker,https://orcid.org/0009-0005-2072-4801,10,27,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:6,currently registered:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5102492004,https://openalex.org/A5102492004,Tim Becker,,6,1,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:6,currently registered:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5123126640,https://openalex.org/A5123126640,Tobias Koch,,2,0,child_of_ude,Institut für Energie- und Umwelttechnik,>=11,Geschäftsführer:6,currently registered:3; removed:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5036606635,https://openalex.org/A5036606635,Tobias Lerchner,https://orcid.org/0000-0003-1120-4087,15,59,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:7,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5114473811,https://openalex.org/A5114473811,Tobias Schwarz,,1,1,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:6; Prokurist:3,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5013486947,https://openalex.org/A5013486947,Ulrich Frank,https://orcid.org/0000-0002-8057-1836,281,5408,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:3; Prokurist:3,currently registered:3; removed:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5113980542,https://openalex.org/A5113980542,Ulrich Frank,,2,9,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:3; Prokurist:3,currently registered:3; removed:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5028558427,https://openalex.org/A5028558427,Ulrich Schmitz,https://orcid.org/0000-0002-9975-9716,185,985,direct_ude,University of Duisburg-Essen,>=11,Prokurist:3; Geschäftsführer:2,currently registered:3; removed:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5112081965,https://openalex.org/A5112081965,Ulrich Schneider,,9,4,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:4; Prokurist:1,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5010002069,https://openalex.org/A5010002069,Ulrich Schreiber,https://orcid.org/0000-0002-3775-5058,649,6664,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:3; Prokurist:2,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5102336075,https://openalex.org/A5102336075,Ulrich Schreiber,,6,13,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:3; Prokurist:2,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5120714179,https://openalex.org/A5120714179,Ulrich Schreiber,,1,0,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:3; Prokurist:2,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5088909041,https://openalex.org/A5088909041,Uwe Martens,,3,9,direct_ude,University of Duisburg-Essen,11,Geschäftsführer:4; Prokurist:2; Liquidator:1,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5028270597,https://openalex.org/A5028270597,Verena Schmitt,https://orcid.org/0000-0002-6951-6406,42,638,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:7,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5009676373,https://openalex.org/A5009676373,Wolfgang Franke,,4,28,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:5; Prokurist:3,currently registered:5,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5024948331,https://openalex.org/A5024948331,Wolfgang Funk,,1,2,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:5; Inhaber:2,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5102399620,https://openalex.org/A5102399620,Wolfgang Günther,,5,8,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:5; Prokurist:2,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5085834772,https://openalex.org/A5085834772,Wolfgang Schmidt,,2,0,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:4; Liquidator:1; Persönlich haftender Gesellschafter:1; Prokurist:1,currently registered:4; removed:1,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5070205178,https://openalex.org/A5070205178,Wolfgang Stein,,3,0,child_of_ude,Deutsches Textilforschungszentrum Nord-West,>=11,Geschäftsführer:5; Liquidator:1,removed:3; currently registered:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5125267612,https://openalex.org/A5125267612,Xin Wang,,4,1,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:5; Inhaber:1,removed:3; currently registered:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. +A5066622183,https://openalex.org/A5066622183,Yu Zhang,https://orcid.org/0000-0003-3579-4675,1,23,direct_ude,University of Duisburg-Essen,>=11,Geschäftsführer:5,currently registered:3; removed:2,yes,Häufig vorkommender Name: Die Ergebnisse basieren nur auf einem Namensabgleich und können gleichnamige Personen enthalten. From 1a174168f878a7d24ff14cb340d8016949848a1a Mon Sep 17 00:00:00 2001 From: genja Date: Tue, 16 Jun 2026 01:17:02 +0200 Subject: [PATCH 09/41] added uni ranking prototype to dashboard --- service/src/main/inse/main.py | 4 +- .../src/main/inse/university_ranking/logic.py | 113 ++++++++++++++++++ .../src/main/inse/university_ranking/model.py | 30 +++++ .../main/inse/university_ranking/router.py | 23 ++++ .../main/inse/university_ranking/service.py | 6 + webapp/src/app/api/.openapi-generator/FILES | 4 + .../src/app/api/api/institutions.service.ts | 65 ++++++++++ webapp/src/app/api/model/models.ts | 4 + webapp/src/app/api/model/rankingResponse.ts | 18 +++ webapp/src/app/api/model/universityRanking.ts | 30 +++++ .../src/app/api/model/universityTopicData.ts | 28 +++++ webapp/src/app/api/model/yearlyData.ts | 17 +++ .../dashboard/dashboard.component.html | 28 +++++ .../dashboard/dashboard.component.scss | 73 +++++++++++ .../modules/dashboard/dashboard.component.ts | 53 +++++++- .../services/uni-ranking-service.ts | 20 ++++ .../uni-line-chart.component.html | 6 + .../uni-line-chart.component.scss | 1 + .../uni-line-chart.component.ts | 57 +++++++++ .../uni-ranking-table.component.html | 42 +++++++ .../uni-ranking-table.component.scss | 0 .../uni-ranking-table.component.ts | 22 ++++ 22 files changed, 637 insertions(+), 7 deletions(-) create mode 100644 service/src/main/inse/university_ranking/logic.py create mode 100644 service/src/main/inse/university_ranking/model.py create mode 100644 service/src/main/inse/university_ranking/router.py create mode 100644 service/src/main/inse/university_ranking/service.py create mode 100644 webapp/src/app/api/model/rankingResponse.ts create mode 100644 webapp/src/app/api/model/universityRanking.ts create mode 100644 webapp/src/app/api/model/universityTopicData.ts create mode 100644 webapp/src/app/api/model/yearlyData.ts create mode 100644 webapp/src/app/modules/university-ranking/services/uni-ranking-service.ts create mode 100644 webapp/src/app/modules/university-ranking/uni-line-chart/uni-line-chart.component.html create mode 100644 webapp/src/app/modules/university-ranking/uni-line-chart/uni-line-chart.component.scss create mode 100644 webapp/src/app/modules/university-ranking/uni-line-chart/uni-line-chart.component.ts create mode 100644 webapp/src/app/modules/university-ranking/uni-ranking-table/uni-ranking-table.component.html create mode 100644 webapp/src/app/modules/university-ranking/uni-ranking-table/uni-ranking-table.component.scss create mode 100644 webapp/src/app/modules/university-ranking/uni-ranking-table/uni-ranking-table.component.ts diff --git a/service/src/main/inse/main.py b/service/src/main/inse/main.py index 450a4dd9..c8410faf 100644 --- a/service/src/main/inse/main.py +++ b/service/src/main/inse/main.py @@ -17,7 +17,7 @@ from inse.works.service import router as works_service_router from inse.persons.service import router as persons_service_router from inse.funders.service import router as funders_service_router from inse.projects.router import router as projects_router - +from inse.university_ranking.router import router as university_ranking_router # caching from inse.middleware.etag_cache import ETagCacheMiddleware from inse.exceptions import NotFoundException @@ -46,7 +46,7 @@ app.include_router(persons_service_router) app.include_router(funders_service_router) app.include_router(service_router) app.include_router(account_router) - +app.include_router(university_ranking_router) app.include_router(projects_router) app.add_middleware( diff --git a/service/src/main/inse/university_ranking/logic.py b/service/src/main/inse/university_ranking/logic.py new file mode 100644 index 00000000..bd1e58f9 --- /dev/null +++ b/service/src/main/inse/university_ranking/logic.py @@ -0,0 +1,113 @@ +import logging +from typing import List, Dict, Any +from .model import UniversityTopicData, YearlyData, UniversityRanking, ResearchTopic, DashboardMetric, RankingResponse +from inse.integrations import elasticsearch + +logger = logging.getLogger(__name__) + +START_YEAR = 2015 +END_YEAR = 2026 + +async def get_ranking_data(topic: ResearchTopic, metric: DashboardMetric) -> RankingResponse: + """ + Fetches real data from Elasticsearch and computes metrics for the dashboard. + """ + query = { + "bool": { + "must": [ + { + "match_phrase": { + "topics.display_name": topic + } + }, + { + "term": { + "geo.country_code": "DE" + } + } + ] + } + } + + + # Fetch top institutions for the topic by works_count + res = elasticsearch.search( + index="openalex-institutions", + query=query, + size=10, + sort=[{"works_count": "desc"}], + cluster="nes" + ) + + hits = res.get("hits", {}).get("hits", []) + timeseries: List[UniversityTopicData] = [] + + for hit in hits: + source = hit["_source"] + # Map the counts_by_year from ES to our model + # We ensure every year from START_YEAR to END_YEAR is present, defaulting to 0 + es_counts = {c["year"]: c for c in source.get("counts_by_year", [])} + + yearly_data = [] + for year in range(START_YEAR, END_YEAR + 1): + count_item = es_counts.get(year, {}) + yearly_data.append(YearlyData( + year=year, + publications=count_item.get("works_count", 0), + citations=count_item.get("cited_by_count", 0) + )) + + timeseries.append(UniversityTopicData( + university=source.get("display_name", "Unknown"), + topic=topic, + yearly_data=yearly_data + )) + + rankings = _compute_rankings(timeseries, metric) + + return RankingResponse(timeseries=timeseries, rankings=rankings) + +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]] = [] + 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)) + start_range = next((d for d in item.yearly_data if d.year == five_years_ago), YearlyData(year=five_years_ago, publications=0, citations=0)) + mover_range = next((d for d in item.yearly_data if d.year == three_years_ago), YearlyData(year=three_years_ago, publications=0, citations=0)) + + curr_val = getattr(latest, metric) or 0 + prev_val = getattr(prev, metric) or 0 + old_val = getattr(start_range, metric) or 0 + mover_old_val = getattr(mover_range, metric) or 0 + + growth_rate = ((curr_val - old_val) / old_val * 100) if old_val > 0 else 0 + recent_growth = ((curr_val - mover_old_val) / mover_old_val * 100) if mover_old_val > 0 else 0 + + processed.append({ + "university": item.university, + "publications": latest.publications, + "citations": latest.citations, + "growth_rate": growth_rate, + "trend": 'up' if curr_val > prev_val else ('down' if curr_val < prev_val else 'stable'), + "recent_growth": recent_growth, + "sort_val": curr_val + }) + + processed.sort(key=lambda x: x["sort_val"], reverse=True) + # Top movers: top 2 by recent growth + growth_sorted = sorted([p["recent_growth"] for p in processed], reverse=True) + threshold = growth_sorted[1] if len(growth_sorted) > 1 else 0 + + return [ + UniversityRanking( + rank=i + 1, + is_top_mover=p["recent_growth"] >= threshold and p["recent_growth"] > 0, + **{k: v for k, v in p.items() if k != "sort_val" and k != "recent_growth"} + ) + for i, p in enumerate(processed) + ] \ No newline at end of file diff --git a/service/src/main/inse/university_ranking/model.py b/service/src/main/inse/university_ranking/model.py new file mode 100644 index 00000000..1b4b8605 --- /dev/null +++ b/service/src/main/inse/university_ranking/model.py @@ -0,0 +1,30 @@ +from pydantic import BaseModel +from typing import List, Literal + +ResearchTopic = Literal['Artificial Intelligence', 'Quantum Computing', 'Renewable Energy', 'Biotechnology'] +DashboardMetric = Literal['publications', 'citations'] + +class YearlyData(BaseModel): + year: int + publications: int + citations: int + +class UniversityTopicData(BaseModel): + university: str + topic: ResearchTopic + yearly_data: List[YearlyData] + +class UniversityRanking(BaseModel): + rank: int + university: str + publications: int + citations: int + growth_rate: float + trend: Literal['up', 'down', 'stable'] + is_top_mover: bool + +class RankingResponse(BaseModel): + # Raw timeseries data for the ECharts line race + timeseries: List[UniversityTopicData] + # Computed metrics for the ranking table + rankings: List[UniversityRanking] \ No newline at end of file diff --git a/service/src/main/inse/university_ranking/router.py b/service/src/main/inse/university_ranking/router.py new file mode 100644 index 00000000..60c52c9d --- /dev/null +++ b/service/src/main/inse/university_ranking/router.py @@ -0,0 +1,23 @@ +from fastapi import APIRouter, Query +from . import service +from .model import RankingResponse, ResearchTopic, DashboardMetric +from inse.tags import Tags + +router = APIRouter( + prefix="/api/inse-service/university-rankings", + tags=[Tags.INSTITUTIONS] +) + +@router.get( + "", + response_model=RankingResponse, + summary="Returns data for the University Ranking Dashboard." +) +async def get_rankings( + topic: ResearchTopic = Query( + ..., + description="Research topic (e.g., 'Artificial Intelligence')" + ), + metric: DashboardMetric = Query("publications", description="Metric to rank by") +): + return await service.get_university_dashboard_data(topic, metric) \ 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 new file mode 100644 index 00000000..4eac89e6 --- /dev/null +++ b/service/src/main/inse/university_ranking/service.py @@ -0,0 +1,6 @@ +from . import logic +from .model import RankingResponse, ResearchTopic, DashboardMetric + +async def get_university_dashboard_data(topic: ResearchTopic, metric: DashboardMetric) -> RankingResponse: + """Orchestrates data retrieval and computation for the dashboard.""" + return await logic.get_ranking_data(topic, metric) \ No newline at end of file diff --git a/webapp/src/app/api/.openapi-generator/FILES b/webapp/src/app/api/.openapi-generator/FILES index 707098fd..a8f79dca 100644 --- a/webapp/src/app/api/.openapi-generator/FILES +++ b/webapp/src/app/api/.openapi-generator/FILES @@ -85,6 +85,7 @@ model/programmeNested.ts model/publicationDetailByFunder.ts model/publicationIdsByAuthorPosition.ts model/publicationsByAuthorResponse.ts +model/rankingResponse.ts model/score.ts model/topic.ts model/topicCount.ts @@ -95,6 +96,8 @@ model/topicSubfield.ts model/topicsByTime.ts model/topicsByYear.ts model/topicsListResponse.ts +model/universityRanking.ts +model/universityTopicData.ts model/user.ts model/validationError.ts model/validationErrorLocInner.ts @@ -118,6 +121,7 @@ model/workTopicInformation.ts model/workTopicSubfield.ts model/worksFilterProperties.ts model/worksListResponse.ts +model/yearlyData.ts param.ts provide-api.ts variables.ts diff --git a/webapp/src/app/api/api/institutions.service.ts b/webapp/src/app/api/api/institutions.service.ts index 89bf1fd5..98b320a0 100644 --- a/webapp/src/app/api/api/institutions.service.ts +++ b/webapp/src/app/api/api/institutions.service.ts @@ -24,6 +24,8 @@ import { HTTPValidationError } from '../model/hTTPValidationError'; import { Institution } from '../model/institution'; // @ts-ignore import { InstitutionsListResponse } from '../model/institutionsListResponse'; +// @ts-ignore +import { RankingResponse } from '../model/rankingResponse'; // @ts-ignore import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; @@ -166,6 +168,69 @@ export class InstitutionsService extends BaseService { ); } + /** + * Returns data for the University Ranking Dashboard. + * @endpoint get /api/inse-service/university-rankings + * @param topic Research topic (e.g., \'Artificial Intelligence\') + * @param metric Metric to rank 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 getRankingsApiInseServiceUniversityRankingsGet(topic: 'Artificial Intelligence' | 'Quantum Computing' | 'Renewable Energy' | 'Biotechnology', metric?: 'publications' | 'citations', observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; + public getRankingsApiInseServiceUniversityRankingsGet(topic: 'Artificial Intelligence' | 'Quantum Computing' | 'Renewable Energy' | 'Biotechnology', metric?: 'publications' | 'citations', observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public getRankingsApiInseServiceUniversityRankingsGet(topic: 'Artificial Intelligence' | 'Quantum Computing' | 'Renewable Energy' | 'Biotechnology', metric?: 'publications' | 'citations', observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public getRankingsApiInseServiceUniversityRankingsGet(topic: 'Artificial Intelligence' | 'Quantum Computing' | 'Renewable Energy' | 'Biotechnology', metric?: 'publications' | 'citations', observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { + if (topic === null || topic === undefined) { + throw new Error('Required parameter topic was null or undefined when calling getRankingsApiInseServiceUniversityRankingsGet.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + topic, 'topic'); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + metric, 'metric'); + + 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/inse-service/university-rankings`; + 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 OpenAlex institutions. * @endpoint get /api/inse-service/institutions diff --git a/webapp/src/app/api/model/models.ts b/webapp/src/app/api/model/models.ts index 7b37e6c3..483ccda3 100644 --- a/webapp/src/app/api/model/models.ts +++ b/webapp/src/app/api/model/models.ts @@ -65,6 +65,7 @@ export * from './programmeNested'; export * from './publicationDetailByFunder'; export * from './publicationIdsByAuthorPosition'; export * from './publicationsByAuthorResponse'; +export * from './rankingResponse'; export * from './score'; export * from './topic'; export * from './topicCount'; @@ -75,6 +76,8 @@ export * from './topicSubfield'; export * from './topicsByTime'; export * from './topicsByYear'; export * from './topicsListResponse'; +export * from './universityRanking'; +export * from './universityTopicData'; export * from './user'; export * from './validationError'; export * from './validationErrorLocInner'; @@ -98,3 +101,4 @@ export * from './workTopicInformation'; export * from './workTopicSubfield'; export * from './worksFilterProperties'; export * from './worksListResponse'; +export * from './yearlyData'; diff --git a/webapp/src/app/api/model/rankingResponse.ts b/webapp/src/app/api/model/rankingResponse.ts new file mode 100644 index 00000000..099ec660 --- /dev/null +++ b/webapp/src/app/api/model/rankingResponse.ts @@ -0,0 +1,18 @@ +/** + * 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. + */ +import { UniversityRanking } from './universityRanking'; +import { UniversityTopicData } from './universityTopicData'; + + +export interface RankingResponse { + timeseries: Array; + rankings: Array; +} + diff --git a/webapp/src/app/api/model/universityRanking.ts b/webapp/src/app/api/model/universityRanking.ts new file mode 100644 index 00000000..4265c8db --- /dev/null +++ b/webapp/src/app/api/model/universityRanking.ts @@ -0,0 +1,30 @@ +/** + * 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. + */ + + +export interface UniversityRanking { + rank: number; + university: string; + publications: number; + citations: number; + growth_rate: number; + trend: UniversityRanking.TrendEnum; + is_top_mover: boolean; +} +export namespace UniversityRanking { + export const TrendEnum = { + up: 'up', + down: 'down', + stable: 'stable' + } as const; + export type TrendEnum = typeof TrendEnum[keyof typeof TrendEnum]; +} + + diff --git a/webapp/src/app/api/model/universityTopicData.ts b/webapp/src/app/api/model/universityTopicData.ts new file mode 100644 index 00000000..bce5b05e --- /dev/null +++ b/webapp/src/app/api/model/universityTopicData.ts @@ -0,0 +1,28 @@ +/** + * 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. + */ +import { YearlyData } from './yearlyData'; + + +export interface UniversityTopicData { + university: string; + topic: UniversityTopicData.TopicEnum; + yearly_data: Array; +} +export namespace UniversityTopicData { + export const TopicEnum = { + Artificial_Intelligence: 'Artificial Intelligence', + Quantum_Computing: 'Quantum Computing', + Renewable_Energy: 'Renewable Energy', + Biotechnology: 'Biotechnology' + } as const; + export type TopicEnum = typeof TopicEnum[keyof typeof TopicEnum]; +} + + diff --git a/webapp/src/app/api/model/yearlyData.ts b/webapp/src/app/api/model/yearlyData.ts new file mode 100644 index 00000000..3272805e --- /dev/null +++ b/webapp/src/app/api/model/yearlyData.ts @@ -0,0 +1,17 @@ +/** + * 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. + */ + + +export interface YearlyData { + year: number; + publications: number; + citations: number; +} + diff --git a/webapp/src/app/modules/dashboard/dashboard.component.html b/webapp/src/app/modules/dashboard/dashboard.component.html index e69de29b..24af417d 100644 --- a/webapp/src/app/modules/dashboard/dashboard.component.html +++ b/webapp/src/app/modules/dashboard/dashboard.component.html @@ -0,0 +1,28 @@ +
+
+

University Performance Dashboard

+
+ + +
+ + +
+
+
+ +
+
+ +
+ + +
+
\ No newline at end of file diff --git a/webapp/src/app/modules/dashboard/dashboard.component.scss b/webapp/src/app/modules/dashboard/dashboard.component.scss index e69de29b..0545d9e8 100644 --- a/webapp/src/app/modules/dashboard/dashboard.component.scss +++ b/webapp/src/app/modules/dashboard/dashboard.component.scss @@ -0,0 +1,73 @@ +// src/app/modules/university-ranking/dashboard.component.scss +.dashboard-wrapper { + padding: 2rem; + font-family: 'Inter', sans-serif; + color: #333; + + .dashboard-header { + display: flex; + justify-content: space-between; + align-items: center; + margin-bottom: 2rem; + border-bottom: 1px solid #eee; + padding-bottom: 1rem; + } + + .content-grid { + display: grid; + grid-template-columns: 2fr 1fr; + gap: 2rem; + + @media (max-width: 1024px) { + grid-template-columns: 1fr; + } + } + + .controls { + display: flex; + gap: 1rem; + + select { + padding: 0.5rem; + border-radius: 4px; + border: 1px solid #ccc; + } + + .toggle-group { + button { + padding: 0.5rem 1rem; + border: 1px solid #0056b3; + background: white; + color: #0056b3; + cursor: pointer; + &:first-child { border-radius: 4px 0 0 4px; } + &:last-child { border-radius: 0 4px 4px 0; } + &.active { background: #0056b3; color: white; } + } + } + } +} + +// Table styling +.ranking-table { + width: 100%; + border-collapse: collapse; + font-size: 0.9rem; + + th, td { + padding: 0.75rem; + text-align: left; + border-bottom: 1px solid #f0f0f0; + } + + .top-tier { background-color: #f8fbff; font-weight: 600; } + .positive { color: #28a745; } + .negative { color: #dc3545; } + .mover-badge { margin-left: 4px; font-size: 0.8rem; } + + .trend-col { + font-weight: bold; + &[data-trend="up"] { color: #28a745; } + &[data-trend="down"] { color: #dc3545; } + } +} diff --git a/webapp/src/app/modules/dashboard/dashboard.component.ts b/webapp/src/app/modules/dashboard/dashboard.component.ts index 7d31c1db..27b8ab24 100644 --- a/webapp/src/app/modules/dashboard/dashboard.component.ts +++ b/webapp/src/app/modules/dashboard/dashboard.component.ts @@ -1,10 +1,53 @@ -import { Component } from '@angular/core'; + + +import { Component, OnInit } from '@angular/core'; +import { UniversityRankingService } from '../university-ranking/services/uni-ranking-service'; +import {UniversityLineChartComponent} from '../university-ranking/uni-line-chart/uni-line-chart.component'; +import { UniversityRankingTableComponent } from '../university-ranking/uni-ranking-table/uni-ranking-table.component'; +import { UniversityTopicData, UniversityRanking } from '../../api'; +export type ResearchTopic = 'Artificial Intelligence' | 'Quantum Computing' | 'Renewable Energy' | 'Biotechnology'; +export type DashboardMetric = 'publications' | 'citations'; @Component({ - selector: 'app-dashboard', - imports: [], + selector: 'dashboard', + imports: [UniversityLineChartComponent,UniversityRankingTableComponent], templateUrl: './dashboard.component.html', styleUrl: './dashboard.component.scss', - standalone: true, }) -export class DashboardComponent {} +export class DashboardComponent implements OnInit { + topics: ResearchTopic[] = ['Artificial Intelligence', 'Quantum Computing', 'Renewable Energy', 'Biotechnology']; + selectedTopic: ResearchTopic = 'Artificial Intelligence'; + metric: DashboardMetric = 'publications'; + + rawDataSource: UniversityTopicData[] = []; + computedRankings: UniversityRanking[] = []; + isLoading = false; + + constructor(private dataService: UniversityRankingService) {} + + ngOnInit() { + this.loadData(); + } + + onTopicChange(topic: ResearchTopic) { + this.selectedTopic = topic; + this.loadData(); // Re-fetch as rankings depend on the topic + } + + setMetric(metric: DashboardMetric) { + this.metric = metric; + this.loadData(); // Re-fetch as ranking order changes based on metric + } + + private loadData() { + this.isLoading = true; + this.dataService.getRankingData(this.selectedTopic, this.metric).subscribe(response => { + // Map backend snake_case properties to frontend camelCase if necessary, + // though OpenAPI Generator usually handles this. + console.log(response); + this.rawDataSource = (response.timeseries as any) || []; + this.computedRankings = (response.rankings as any) || []; + this.isLoading = false; + }); + } +} diff --git a/webapp/src/app/modules/university-ranking/services/uni-ranking-service.ts b/webapp/src/app/modules/university-ranking/services/uni-ranking-service.ts new file mode 100644 index 00000000..f1508357 --- /dev/null +++ b/webapp/src/app/modules/university-ranking/services/uni-ranking-service.ts @@ -0,0 +1,20 @@ +// src/app/modules/university-ranking/services/university-data.service.ts +import { inject, Injectable } from '@angular/core'; +import { Observable } from 'rxjs'; +import { InstitutionsService, RankingResponse } from '../../../api'; +export type ResearchTopic = 'Artificial Intelligence' | 'Quantum Computing' | 'Renewable Energy' | 'Biotechnology'; +export type DashboardMetric = 'publications' | 'citations'; + + +@Injectable({ providedIn: 'root' }) +export class UniversityRankingService { + private apiService = inject(InstitutionsService); + + /** + * Fetches ranking and timeseries data directly from the backend. + * Calculations for growth and trends are now handled server-side. + */ + getRankingData(topic: ResearchTopic, metric: DashboardMetric): Observable { + return this.apiService.getRankingsApiInseServiceUniversityRankingsGet(topic, metric); + } +} diff --git a/webapp/src/app/modules/university-ranking/uni-line-chart/uni-line-chart.component.html b/webapp/src/app/modules/university-ranking/uni-line-chart/uni-line-chart.component.html new file mode 100644 index 00000000..5694b596 --- /dev/null +++ b/webapp/src/app/modules/university-ranking/uni-line-chart/uni-line-chart.component.html @@ -0,0 +1,6 @@ +
+
\ No newline at end of file diff --git a/webapp/src/app/modules/university-ranking/uni-line-chart/uni-line-chart.component.scss b/webapp/src/app/modules/university-ranking/uni-line-chart/uni-line-chart.component.scss new file mode 100644 index 00000000..a4a1e7f5 --- /dev/null +++ b/webapp/src/app/modules/university-ranking/uni-line-chart/uni-line-chart.component.scss @@ -0,0 +1 @@ +.chart-container { height: 500px; width: 100%; } \ No newline at end of file diff --git a/webapp/src/app/modules/university-ranking/uni-line-chart/uni-line-chart.component.ts b/webapp/src/app/modules/university-ranking/uni-line-chart/uni-line-chart.component.ts new file mode 100644 index 00000000..5cbc4702 --- /dev/null +++ b/webapp/src/app/modules/university-ranking/uni-line-chart/uni-line-chart.component.ts @@ -0,0 +1,57 @@ +// src/app/modules/university-ranking/components/line-chart/university-line-chart.component.ts +import { Component, Input, OnChanges, SimpleChanges } from '@angular/core'; +import { EChartsOption } from 'echarts'; +import { NgxEchartsDirective} from 'ngx-echarts'; +import { UniversityTopicData, YearlyData } from '../../../api'; +export type ResearchTopic = 'Artificial Intelligence' | 'Quantum Computing' | 'Renewable Energy' | 'Biotechnology'; +export type DashboardMetric = 'publications' | 'citations'; + +@Component({ + selector: 'app-university-line-chart', + templateUrl: './uni-line-chart.component.html', + styleUrl: './uni-line-chart.component.scss', + imports: [NgxEchartsDirective], + standalone: true, + +}) +export class UniversityLineChartComponent implements OnChanges { + @Input() data: UniversityTopicData[] = []; + @Input() metric: DashboardMetric = 'publications'; + + chartOption: EChartsOption = { + title: { text: 'Research Output Over Time', left: 'center', textStyle: { fontWeight: 'lighter' } }, + tooltip: { trigger: 'axis', axisPointer: { type: 'shadow' } }, + legend: { bottom: 0 }, + grid: { left: '3%', right: '4%', bottom: '15%', containLabel: true }, + xAxis: { type: 'category', boundaryGap: false, data: [] }, + yAxis: { type: 'value', name: 'Volume' }, + dataZoom: [{ type: 'slider', show: true, bottom: 40 }], + series: [] + }; + + mergeOption: EChartsOption = {}; + + ngOnChanges(changes: SimpleChanges): void { + if (this.data.length > 0) { + this.updateChart(); + console.log("CHANGES!") + } + } + + private updateChart() { + const years = this.data[0].yearly_data.map(d => d.year); + const series = this.data.map(uni => ({ + name: uni.university, + type: 'line', + smooth: true, + emphasis: { focus: 'series' }, + animationDuration: 2000, + data: uni.yearly_data.map(d => d[this.metric]) + })); + + this.mergeOption = { + xAxis: { data: years.map(String) }, + series: series as any + }; + } +} diff --git a/webapp/src/app/modules/university-ranking/uni-ranking-table/uni-ranking-table.component.html b/webapp/src/app/modules/university-ranking/uni-ranking-table/uni-ranking-table.component.html new file mode 100644 index 00000000..09367497 --- /dev/null +++ b/webapp/src/app/modules/university-ranking/uni-ranking-table/uni-ranking-table.component.html @@ -0,0 +1,42 @@ +
+

Topic Rankings

+ @if (loading) { +
Loading rankings...
+ } @else{ + + + + + + + + + + + + @for (row of rankings; track $index) { + + + + + + + + } + +
RankUniversityLatest5Y GrowthTrend
#{{ row.rank }} + {{ row.university }} + @if (row.is_top_mover) { + 🔥 + } + {{ row.publications | number }} + {{ row.growth_rate | number: '1.0-1' }}% + + {{ getTrendIcon(row.trend) }} +
+ } +
diff --git a/webapp/src/app/modules/university-ranking/uni-ranking-table/uni-ranking-table.component.scss b/webapp/src/app/modules/university-ranking/uni-ranking-table/uni-ranking-table.component.scss new file mode 100644 index 00000000..e69de29b diff --git a/webapp/src/app/modules/university-ranking/uni-ranking-table/uni-ranking-table.component.ts b/webapp/src/app/modules/university-ranking/uni-ranking-table/uni-ranking-table.component.ts new file mode 100644 index 00000000..a07832eb --- /dev/null +++ b/webapp/src/app/modules/university-ranking/uni-ranking-table/uni-ranking-table.component.ts @@ -0,0 +1,22 @@ +// src/app/modules/university-ranking/components/ranking-table/university-ranking-table.component.ts +import { Component, Input } from '@angular/core'; +import { UniversityRanking } from '../../../api'; +import { DecimalPipe } from '@angular/common'; + +@Component({ + selector: 'app-university-ranking-table', + templateUrl: './uni-ranking-table.component.html', + styleUrls: ['./uni-ranking-table.component.scss'], + imports:[DecimalPipe], + +}) +export class UniversityRankingTableComponent { + @Input() rankings: UniversityRanking[] = []; + @Input() loading: boolean = false; + + getTrendIcon(trend: string): string { + if (trend === 'up') return '↑'; + if (trend === 'down') return '↓'; + return '→'; + } +} From 9269af4c5d823b0dfada210577b3d189f2d67fd8 Mon Sep 17 00:00:00 2001 From: genja Date: Tue, 16 Jun 2026 11:41:59 +0200 Subject: [PATCH 10/41] replaced institution autocompletion logic with wildcards --- .../institutions_search_client.py | 69 ++++++++----------- 1 file changed, 28 insertions(+), 41 deletions(-) diff --git a/service/src/main/inse/institutions/institutions_search_client.py b/service/src/main/inse/institutions/institutions_search_client.py index dd895930..7911bac0 100644 --- a/service/src/main/inse/institutions/institutions_search_client.py +++ b/service/src/main/inse/institutions/institutions_search_client.py @@ -99,49 +99,36 @@ class InstitutionsSearchClient: stripped = query_text.strip() must.append({ - "bool": { - "should": [ - # Fast prefix matching via search_as_you_type shingles - { - "multi_match": { - "query": stripped, - "type": "bool_prefix", - "fields": [ - "display_name.search", - "display_name.search._2gram", - "display_name.search._3gram", - "display_name_alternatives.search", - "display_name_alternatives.search._2gram", - ], - "boost": 2, + "bool": { + "should": [ + { + "wildcard": { + "display_name.keyword": { + "value": f"*{stripped}*", + "boost": 2 } - }, - # Exact acronym match — high confidence signal - { - "term": { - "display_name_acronyms.keyword": { - "value": stripped.upper(), - "boost": 10, - } + } + }, + { + "wildcard": { + "display_name_alternatives.keyword": { + "value": f"*{stripped}*", + "boost": 2 } - }, - # Fuzzy fallback for typos (only worth it for longer input) - *( - [{ - "match": { - "display_name": { - "query": stripped, - "fuzziness": "AUTO", - "boost": 1, - } - } - }] - if len(stripped) >= 4 else [] - ), - ], - "minimum_should_match": 1, - } - }) + } + }, + { + "wildcard": { + "display_name_acronyms.keyword": { + "value": f"*{stripped.upper()}*", + "boost": 10 + } + } + } + ], + "minimum_should_match": 1 + } + }) filter_queries = [] From 7f387ee45d57651c87640379fa687dfd569e20eb Mon Sep 17 00:00:00 2001 From: genja Date: Tue, 16 Jun 2026 14:33:21 +0200 Subject: [PATCH 11/41] regenerated model --- .../src/main/inse/models/openalex/institution.py | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/service/src/main/inse/models/openalex/institution.py b/service/src/main/inse/models/openalex/institution.py index 6121af94..1d1062b5 100644 --- a/service/src/main/inse/models/openalex/institution.py +++ b/service/src/main/inse/models/openalex/institution.py @@ -33,7 +33,7 @@ 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.") + 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.") @@ -55,20 +55,13 @@ class Institution(BaseModel): 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"] - @field_validator('created_date', mode='before') - @classmethod - def normalize_created_date(cls, v: Any) -> Any: - if isinstance(v, str) and len(v) > 10: - return v[:10] - return v - @field_validator('type') def type_validate_enum(cls, value): """Validates the enum""" if value is None: return value - if value not in set(['education','funder', 'healthcare', 'company', 'archive', 'nonprofit', 'government', 'facility', 'other']): + if value not in set(['education', 'healthcare', 'company', 'archive', 'nonprofit', 'government', 'facility', 'other']): raise ValueError("must be one of enum values ('education', 'healthcare', 'company', 'archive', 'nonprofit', 'government', 'facility', 'other')") return value @@ -161,3 +154,5 @@ class Institution(BaseModel): "updated_date": obj.get("updated_date") }) return _obj + + From 66e56fda299a2bd7512d816aaf99e0b2e94887e3 Mon Sep 17 00:00:00 2001 From: genja Date: Tue, 16 Jun 2026 14:34:48 +0200 Subject: [PATCH 12/41] removed slashes from Elastic Urls --- service/src/main/inse/.env | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/service/src/main/inse/.env b/service/src/main/inse/.env index b5adb53d..32f9c451 100644 --- a/service/src/main/inse/.env +++ b/service/src/main/inse/.env @@ -1,7 +1,7 @@ -ELASTICSEARCH_URL=https://project.nes.uni-due.de/elastic/ +ELASTICSEARCH_URL=https://project.nes.uni-due.de/elastic ELASTICSEARCH_API_KEY=am1wWXBaMEJEVWJoZkE5MnBaUlk6TWlvbW1LRlMzNjdDUHgzYmVkUmI5UQ -ELASTICSEARCH_INSE_URL=https://inse.nes.uni-due.de/elastic/ +ELASTICSEARCH_INSE_URL=https://inse.nes.uni-due.de/elastic ELASTICSEARCH_INSE_API_KEY=bG1NSWc1NEJPZ3FnTGZCZXRSSEg6VnJXRFd5SnpSTTNWc1VPT01FMEhMZw== LLM_API_URL=https://project.nes.uni-due.de/llm2/v1/ From e9935207ea521ffbf4712bbc3dc7f673777b38bf Mon Sep 17 00:00:00 2001 From: Khuder Khalti Date: Wed, 17 Jun 2026 09:55:01 +0200 Subject: [PATCH 13/41] refactor: clean up patents module --- service/src/main/inse/config.py | 8 +- .../src/main/inse/patents/author_profile.py | 186 --------- .../src/main/inse/patents/disambiguation.py | 126 ------ .../inse/patents/elastic_search_client.py | 373 +++++------------- service/src/main/inse/patents/logic.py | 236 ++++++----- service/src/main/inse/patents/model.py | 34 -- service/src/main/inse/patents/pipeline.py | 209 ---------- service/src/main/inse/patents/repository.py | 182 --------- service/src/main/inse/patents/service.py | 59 +-- service/src/main/inse/patents/test_logic.py | 228 ----------- service/src/main/inse/schema.py | 47 +-- webapp/src/app/api/api/patents.service.ts | 45 --- .../person-patents.component.html | 37 +- .../person-patents.component.scss | 58 +-- .../person-patents.component.ts | 109 ++--- 15 files changed, 275 insertions(+), 1662 deletions(-) delete mode 100644 service/src/main/inse/patents/author_profile.py delete mode 100644 service/src/main/inse/patents/disambiguation.py delete mode 100644 service/src/main/inse/patents/pipeline.py delete mode 100644 service/src/main/inse/patents/repository.py delete mode 100644 service/src/main/inse/patents/test_logic.py diff --git a/service/src/main/inse/config.py b/service/src/main/inse/config.py index cbd9597b..32c57cb2 100644 --- a/service/src/main/inse/config.py +++ b/service/src/main/inse/config.py @@ -42,13 +42,7 @@ class Settings(BaseSettings): # Patent elasticsearch config patent_elasticsearch_url: str = "https://inse.nes.uni-due.de/elastic" patent_elasticsearch_api_key: str = "" - patent_es_page_size: int = 500 - patent_es_max_pages: int = 20 - patent_disambiguation_min_score_full_name: int = 6 - patent_disambiguation_min_score_partial: int = 8 - patent_link_cache_ttl_hours: int = 168 - patent_publication_context_max_pages: int = 10 - + # LLM config llm_api_url: Optional[str] = None diff --git a/service/src/main/inse/patents/author_profile.py b/service/src/main/inse/patents/author_profile.py deleted file mode 100644 index 91819a64..00000000 --- a/service/src/main/inse/patents/author_profile.py +++ /dev/null @@ -1,186 +0,0 @@ -#!/usr/bin/env python -# -*- coding: utf-8 -*- -""" - Build author search profiles and publication context for patent disambiguation. -""" -from __future__ import annotations - -import logging -from dataclasses import dataclass, field - -from .. import config -from ..models.author import Author -from ..works.search_client import OpenAlexWorksSearchClient - -logger = logging.getLogger(__name__) - -_NAME_PREFIXES = frozenset({ - "dr", "prof", "mr", "mrs", "ms", "dipl", "ing", "med", -}) - - -@dataclass -class AuthorProfile: - author_id: str - display_name: str - first_name: str | None - last_name: str | None - name_variants: list[str] = field(default_factory=list) - institutions: list[str] = field(default_factory=list) - topics: list[str] = field(default_factory=list) - coauthor_last_names: set[str] = field(default_factory=set) - publication_keywords: set[str] = field(default_factory=set) - - -def normalize_author_id(author_id: str) -> str: - short_id = author_id.strip().removeprefix("https://openalex.org/") - return f"https://openalex.org/{short_id}" - - -def build_author_profile(author: Author, author_id: str) -> AuthorProfile: - display_name = author.display_name or "" - first_name, last_name = extract_name_parts(display_name) - institutions = _extract_institutions(author) - topics = [ - topic.display_name - for topic in (author.topics or []) - if topic and topic.display_name - ] - variants = _build_name_variants(first_name, last_name, display_name) - - return AuthorProfile( - author_id=normalize_author_id(author_id), - display_name=display_name, - first_name=first_name, - last_name=last_name, - name_variants=variants, - institutions=institutions, - topics=topics, - ) - - -async def enrich_with_publication_context( - profile: AuthorProfile, - works_client: OpenAlexWorksSearchClient | None = None, -) -> AuthorProfile: - client = works_client or OpenAlexWorksSearchClient() - settings = config.settings - page = 1 - page_size = 100 - max_pages = settings.patent_publication_context_max_pages - normalized_id = profile.author_id - - try: - while page <= max_pages: - data = await client.search_author_works( - normalized_id.removeprefix("https://openalex.org/"), - page, - page_size, - ) - hits = data.get("hits", {}).get("hits", []) - total = data.get("hits", {}).get("total", {}).get("value", 0) - - for hit in hits: - source = hit.get("_source", {}) - _collect_coauthors(source, normalized_id, profile.coauthor_last_names) - _collect_publication_keywords(source, profile.publication_keywords) - - if not hits or page * page_size >= total: - break - page += 1 - except Exception as exc: - logger.warning( - "Publication context unavailable for author %s: %s", - profile.author_id, - exc, - ) - - return profile - - -def extract_name_parts(display_name: str | None) -> tuple[str | None, str | None]: - if not display_name: - return None, None - - parts = [ - part - for part in display_name.strip().split() - if part.lower().rstrip(".") not in _NAME_PREFIXES - ] - if not parts: - return None, None - if len(parts) == 1: - return None, parts[0] - return parts[0], parts[-1] - - -def _build_name_variants( - first_name: str | None, - last_name: str | None, - display_name: str, -) -> list[str]: - variants: list[str] = [] - if display_name.strip(): - variants.append(display_name.strip()) - if first_name and last_name: - variants.append(f"{first_name} {last_name}") - variants.append(f"{last_name}, {first_name}") - variants.append(f"{last_name} {first_name}") - if len(first_name) > 0: - variants.append(f"{first_name[0]}. {last_name}") - if last_name: - variants.append(last_name) - - seen: set[str] = set() - unique: list[str] = [] - for variant in variants: - key = variant.lower() - if key not in seen: - seen.add(key) - unique.append(variant) - return unique - - -def _collect_coauthors( - source: dict, - author_id: str, - coauthor_last_names: set[str], -) -> None: - for authorship in source.get("authorships", []): - author = authorship.get("author", {}) - other_id = author.get("id", "") - if not other_id or other_id == author_id: - continue - other_name = author.get("display_name", "") - _, last_name = extract_name_parts(other_name) - if last_name: - coauthor_last_names.add(last_name.lower()) - - -def _collect_publication_keywords(source: dict, keywords: set[str]) -> None: - for topic in source.get("topics", []) or []: - display_name = topic.get("display_name") - if display_name: - keywords.add(display_name.lower()) - - primary_topic = source.get("primary_topic") or {} - display_name = primary_topic.get("display_name") - if display_name: - keywords.add(display_name.lower()) - - for keyword in source.get("keywords", []) or []: - display_name = keyword.get("display_name") - if display_name: - keywords.add(display_name.lower()) - - -def _extract_institutions(author: Author) -> list[str]: - institutions: set[str] = set() - for institution in author.last_known_institutions or []: - if institution and institution.display_name: - institutions.add(institution.display_name) - for affiliation in author.affiliations or []: - inst = getattr(affiliation, "institution", None) - if inst and getattr(inst, "display_name", None): - institutions.add(inst.display_name) - return list(institutions) diff --git a/service/src/main/inse/patents/disambiguation.py b/service/src/main/inse/patents/disambiguation.py deleted file mode 100644 index 887f103c..00000000 --- a/service/src/main/inse/patents/disambiguation.py +++ /dev/null @@ -1,126 +0,0 @@ -#!/usr/bin/env python -# -*- coding: utf-8 -*- -""" - Rule-based patent-author disambiguation with publication cross-validation. -""" -from __future__ import annotations - -from dataclasses import dataclass - -from .. import config -from . import model -from .author_profile import AuthorProfile - - -@dataclass -class DisambiguationResult: - score: int - signals: list[str] - accepted: bool - - -def disambiguate_patent_group( - versions: list[model.PatentEntry], - profile: AuthorProfile, -) -> model.PatentEntry | None: - best: model.PatentEntry | None = None - best_result: DisambiguationResult | None = None - - for patent in versions: - result = score_patent(patent, profile) - if not result.accepted: - continue - patent.confidence_score = result.score - patent.match_signals = result.signals - if best is None or result.score > best_result.score: # type: ignore[union-attr] - best = patent - best_result = result - - return best - - -def score_patent( - patent: model.PatentEntry, - profile: AuthorProfile, -) -> DisambiguationResult: - settings = config.settings - signals: list[str] = [] - score = 0 - - inventors_lower = [inventor.lower() for inventor in patent.inventors] - title_abstract = ((patent.title or "") + " " + (patent.abstract or "")).lower() - - full_name_match = False - if profile.first_name and profile.last_name: - full_name_match = any( - profile.first_name.lower() in inventor - and profile.last_name.lower() in inventor - for inventor in inventors_lower - ) - if full_name_match: - score += 5 - signals.append("full_name_match") - - if profile.last_name and any(profile.last_name.lower() in inventor for inventor in inventors_lower): - score += 2 - if "last_name_match" not in signals: - signals.append("last_name_match") - - if profile.first_name and any(profile.first_name.lower() in inventor for inventor in inventors_lower): - score += 2 - if "first_name_match" not in signals: - signals.append("first_name_match") - - for institution in profile.institutions: - institution_words = set(institution.lower().split()) - for assignee in patent.assignees: - assignee_words = set(assignee.lower().split()) - meaningful = { - word for word in (institution_words & assignee_words) if len(word) > 3 - } - if len(meaningful) >= 2: - score += 3 - signals.append("institution_match") - break - if "institution_match" in signals: - break - - topic_hits = 0 - for topic in profile.topics: - if topic.lower() in title_abstract: - topic_hits += 1 - score += 1 - if topic_hits == 1: - signals.append("topic_match") - if topic_hits >= 3: - break - - coauthor_hits = 0 - for coauthor_last_name in profile.coauthor_last_names: - if any(coauthor_last_name in inventor for inventor in inventors_lower): - coauthor_hits += 1 - score += 2 - if coauthor_hits == 1: - signals.append("coauthor_match") - if coauthor_hits >= 2: - break - - keyword_hits = 0 - for keyword in profile.publication_keywords: - if len(keyword) > 4 and keyword in title_abstract: - keyword_hits += 1 - score += 1 - if keyword_hits == 1: - signals.append("publication_topic_match") - if keyword_hits >= 2: - break - - threshold = ( - settings.patent_disambiguation_min_score_full_name - if full_name_match - else settings.patent_disambiguation_min_score_partial - ) - has_name_signal = "last_name_match" in signals or "full_name_match" in signals - accepted = score >= threshold and has_name_signal - - return DisambiguationResult(score=score, signals=signals, accepted=accepted) diff --git a/service/src/main/inse/patents/elastic_search_client.py b/service/src/main/inse/patents/elastic_search_client.py index 5fb58366..ead988af 100644 --- a/service/src/main/inse/patents/elastic_search_client.py +++ b/service/src/main/inse/patents/elastic_search_client.py @@ -3,51 +3,15 @@ """ HTTP client for patent searches in EPO and USPTO Elasticsearch indices. """ -from __future__ import annotations - -import logging from typing import Any import httpx from .. import config -from . import model -from .author_profile import AuthorProfile - -logger = logging.getLogger(__name__) EPO_INDEX = "epo_index_1.0" USPTO_INDEX = "uspto_patents_2.0" -_EPO_SOURCE_FIELDS = [ - "doc_number", - "country", - "kind", - "date_publication", - "date_publication_year", - "title_en", - "title_de", - "abstract", - "inventors_name", - "applicants_name", - "ipc", - "ipc_text", -] - -_USPTO_SOURCE_FIELDS = [ - "publication_number", - "country", - "publication_date", - "publication_year", - "title", - "abstract", - "inventors_names", - "inventors_names_text", - "assignees_orgs", - "ipcr", - "ipcr_text", -] - class MissingApiKeyError(Exception): pass @@ -74,129 +38,117 @@ class PatentSearchClient: "Content-Type": "application/json", } - def epo_query_by_profile( - self, - profile: AuthorProfile, - page: int, - size: int, - ) -> dict[str, Any]: - return { - "from": (page - 1) * size, - "size": size, - "track_total_hits": True, - "_source": _EPO_SOURCE_FIELDS, - "query": self._inventor_bool_query( - profile, - text_field="inventors_name_text", - keyword_field="inventors_name", - ), - } - - def uspto_query_by_profile( - self, - profile: AuthorProfile, - page: int, - size: int, - ) -> dict[str, Any]: - return { - "from": (page - 1) * size, - "size": size, - "track_total_hits": True, - "_source": _USPTO_SOURCE_FIELDS, - "query": self._inventor_bool_query( - profile, - text_field="inventors_names_text", - keyword_field="inventors_names", - ), - } - - def epo_query_by_patent_id(self, patent_id: str) -> dict[str, Any]: - doc_number = patent_id.removeprefix("EP") - return { - "size": 1, - "track_total_hits": True, - "_source": _EPO_SOURCE_FIELDS, - "query": { + def epo_query_by_inventor(self, last_name: str, first_name: str | None = None, size: int = 100) -> dict[str, Any]: + """Search EPO index by inventor first AND last name. + EPO stores full name e.g. 'HANDTE, Marcus' in inventors_name_text. + """ + if first_name: + query = { "bool": { - "should": [ - {"term": {"doc_number": doc_number}}, - {"term": {"_id": patent_id}}, - ], - "minimum_should_match": 1, - }, - }, - } - - def uspto_query_by_patent_id(self, patent_id: str) -> dict[str, Any]: - publication_number = patent_id.removeprefix("US") - return { - "size": 1, - "track_total_hits": True, - "_source": _USPTO_SOURCE_FIELDS, - "query": { - "bool": { - "should": [ - {"term": {"publication_number": publication_number}}, - {"term": {"_id": patent_id}}, - ], - "minimum_should_match": 1, - }, - }, - } - - @staticmethod - def _inventor_bool_query( - profile: AuthorProfile, - *, - text_field: str, - keyword_field: str, - ) -> dict[str, Any]: - should: list[dict[str, Any]] = [] - - if profile.first_name and profile.last_name: - full_name = f"{profile.first_name} {profile.last_name}" - should.extend([ - { - "match": { - text_field: { - "query": full_name, - "operator": "and", + "must": [ + { + "match": { + "inventors_name_text": { + "query": last_name, + "operator": "and", + } + } }, - }, - }, - { - "match_phrase": { - text_field: f"{profile.last_name}, {profile.first_name}", - }, - }, - { - "bool": { - "must": [ - {"term": {keyword_field: profile.last_name}}, - {"match": {text_field: profile.first_name}}, - ], - }, - }, - ]) - - for variant in profile.name_variants: - should.append({ + { + "match": { + "inventors_name_text": { + "query": first_name, + "operator": "and", + } + } + }, + ] + } + } + else: + query = { "match": { - text_field: { - "query": variant, + "inventors_name_text": { + "query": last_name, "operator": "and", - }, - }, - }) - - if profile.last_name: - should.append({"term": {keyword_field: profile.last_name}}) + } + } + } return { - "bool": { - "should": should, - "minimum_should_match": 1, - }, + "size": size, + "track_total_hits": True, + "_source": [ + "doc_number", + "country", + "kind", + "date_publication", + "date_publication_year", + "title_en", + "title_de", + "abstract", + "inventors_name", + "applicants_name", + "ipc", + "ipc_text", + ], + "query": query, + } + + def uspto_query_by_inventor(self, last_name: str, first_name: str | None = None, size: int = 100) -> dict[str, Any]: + """Search USPTO index by inventor first AND last name. + After Arman's fix, USPTO also stores first name in inventors_names. + """ + if first_name: + query = { + "bool": { + "must": [ + { + "match": { + "inventors_names_text": { + "query": last_name, + "operator": "and", + } + } + }, + { + "match": { + "inventors_names_text": { + "query": first_name, + "operator": "and", + } + } + }, + ] + } + } + else: + query = { + "match": { + "inventors_names_text": { + "query": last_name, + "operator": "and", + } + } + } + + return { + "size": size, + "track_total_hits": True, + "_source": [ + "publication_number", + "country", + "publication_date", + "publication_year", + "title", + "abstract", + "inventors_names", + "inventors_names_text", + "assignees_orgs", + "ipcr", + "ipcr_text", + ], + "query": query, } async def search_epo(self, payload: dict[str, Any]) -> dict[str, Any]: @@ -205,66 +157,6 @@ class PatentSearchClient: async def search_uspto(self, payload: dict[str, Any]) -> dict[str, Any]: return await self._search(USPTO_INDEX, payload) - async def fetch_all_epo(self, profile: AuthorProfile) -> tuple[int, list[dict[str, Any]]]: - return await self._fetch_all_pages( - profile, - self.epo_query_by_profile, - self.search_epo, - ) - - async def fetch_all_uspto(self, profile: AuthorProfile) -> tuple[int, list[dict[str, Any]]]: - return await self._fetch_all_pages( - profile, - self.uspto_query_by_profile, - self.search_uspto, - ) - - async def lookup_patent(self, patent_id: str) -> model.PatentEntry | None: - source = patent_id[:2].upper() - if source == "EP": - data = await self.search_epo(self.epo_query_by_patent_id(patent_id)) - patents = parse_epo_hits(data) - elif source == "US": - data = await self.search_uspto(self.uspto_query_by_patent_id(patent_id)) - patents = parse_uspto_hits(data) - else: - return None - return patents[0] if patents else None - - async def _fetch_all_pages( - self, - profile: AuthorProfile, - query_builder, - search_fn, - ) -> tuple[int, list[dict[str, Any]]]: - settings = config.settings - page = 1 - page_size = settings.patent_es_page_size - max_pages = settings.patent_es_max_pages - total_hits = 0 - all_hits: list[dict[str, Any]] = [] - - while page <= max_pages: - payload = query_builder(profile, page, page_size) - data = await search_fn(payload) - total_hits = data.get("hits", {}).get("total", {}).get("value", 0) - hits = data.get("hits", {}).get("hits", []) - all_hits.extend(hits) - - if not hits or page * page_size >= total_hits: - break - page += 1 - - if page > max_pages and page * page_size < total_hits: - logger.warning( - "Patent search truncated for author %s at %s pages (total hits: %s).", - profile.author_id, - max_pages, - total_hits, - ) - - return total_hits, all_hits - async def _search(self, index: str, payload: dict[str, Any]) -> dict[str, Any]: async with httpx.AsyncClient( base_url=self.base_url, @@ -277,57 +169,4 @@ class PatentSearchClient: json=payload, ) response.raise_for_status() - return response.json() - - -def _normalize_str_list(value: Any) -> list[str]: - if value is None: - return [] - if isinstance(value, list): - return [str(item) for item in value if item is not None and str(item).strip()] - return [str(value)] if str(value).strip() else [] - - -def _optional_str(value: Any) -> str | None: - if value is None: - return None - text = str(value).strip() - return text or None - - -def parse_epo_hits(data: dict[str, Any]) -> list[model.PatentEntry]: - patents: list[model.PatentEntry] = [] - for hit in data.get("hits", {}).get("hits", []): - source = hit.get("_source", {}) - patents.append(model.PatentEntry( - patent_id=f"EP{source.get('doc_number', hit.get('_id', ''))}", - source="EPO", - title=source.get("title_en") or source.get("title_de"), - abstract=source.get("abstract"), - publication_date=_optional_str(source.get("date_publication")), - publication_year=_optional_str(source.get("date_publication_year")), - inventors=_normalize_str_list(source.get("inventors_name")), - assignees=_normalize_str_list(source.get("applicants_name")), - ipc=_normalize_str_list(source.get("ipc")), - country=source.get("country", "EP"), - )) - return patents - - -def parse_uspto_hits(data: dict[str, Any]) -> list[model.PatentEntry]: - patents: list[model.PatentEntry] = [] - for hit in data.get("hits", {}).get("hits", []): - source = hit.get("_source", {}) - patents.append(model.PatentEntry( - patent_id=f"US{source.get('publication_number', hit.get('_id', ''))}", - source="USPTO", - title=source.get("title"), - abstract=source.get("abstract"), - publication_date=_optional_str(source.get("publication_date")), - publication_year=_optional_str(source.get("publication_year")), - inventors=_normalize_str_list(source.get("inventors_names")), - assignees=_normalize_str_list(source.get("assignees_orgs")), - ipc=_normalize_str_list(source.get("ipcr")), - country=source.get("country", "US"), - )) - return patents + return response.json() \ No newline at end of file diff --git a/service/src/main/inse/patents/logic.py b/service/src/main/inse/patents/logic.py index ecd75b2f..ff30648c 100644 --- a/service/src/main/inse/patents/logic.py +++ b/service/src/main/inse/patents/logic.py @@ -1,155 +1,147 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- """ - Business logic for patent matching by author. + Business logic for patent matching by author name. """ -from __future__ import annotations - import logging +from collections import defaultdict import httpx from fastapi import HTTPException -from sqlalchemy.orm import Session -from starlette.status import HTTP_400_BAD_REQUEST from starlette.status import HTTP_502_BAD_GATEWAY from starlette.status import HTTP_503_SERVICE_UNAVAILABLE +from ..persons import logic as person_logic +from ..models.author import Author from . import model -from . import repository -from .author_profile import normalize_author_id -from .elastic_search_client import MissingApiKeyError, PatentSearchClient -from .pipeline import rebuild_author_patents, load_author_patents +from .elastic_search_client import MissingApiKeyError +from .elastic_search_client import PatentSearchClient logger = logging.getLogger(__name__) async def get_patents_by_author_id( author_id: str, - db: Session, - *, - refresh: bool = False, client: PatentSearchClient | None = None, ) -> model.PatentsByAuthorResponse: - normalized_id = normalize_author_id(author_id) - build_meta = repository.get_build_meta(db, normalized_id) + search_client = client or PatentSearchClient() - if refresh or build_meta is None or not repository.is_cache_fresh(build_meta.built_at): - try: - return await rebuild_author_patents(author_id, db, client=client) - except MissingApiKeyError as exc: - cached = load_author_patents(db, author_id) - if cached.patent_count > 0: - return cached - raise HTTPException( - status_code=HTTP_503_SERVICE_UNAVAILABLE, - detail="Patent search is not configured.", - ) from exc - except httpx.HTTPError as exc: - cached = load_author_patents(db, author_id) - if cached.patent_count > 0: - return cached - raise HTTPException( - status_code=HTTP_502_BAD_GATEWAY, - detail="Patent search request failed.", - ) from exc + author = _get_author(author_id) + if not author: + return model.PatentsByAuthorResponse( + author_id=author_id, + author_name=None, + patent_count=0, + patents=[], + ) - return load_author_patents(db, author_id) + author_name = author.display_name + last_name = _extract_last_name(author_name) + first_name = _extract_first_name(author_name) + if not last_name: + return model.PatentsByAuthorResponse( + author_id=author_id, + author_name=author_name, + patent_count=0, + patents=[], + ) -async def rebuild_patents_for_author( - author_id: str, - db: Session, - *, - client: PatentSearchClient | None = None, -) -> model.PatentsByAuthorResponse: try: - return await rebuild_author_patents(author_id, db, client=client) + epo_data, uspto_data = await _search_both_indices( + search_client, last_name, first_name + ) except MissingApiKeyError as exc: - raise HTTPException( - status_code=HTTP_503_SERVICE_UNAVAILABLE, - detail="Patent search is not configured.", - ) from exc + raise HTTPException(status_code=HTTP_503_SERVICE_UNAVAILABLE, + detail="Patent search is not configured.") from exc except httpx.HTTPError as exc: - raise HTTPException( - status_code=HTTP_502_BAD_GATEWAY, - detail="Patent search request failed.", - ) from exc + raise HTTPException(status_code=HTTP_502_BAD_GATEWAY, + detail="Patent search request failed.") from exc + all_patents = _parse_epo_hits(epo_data) + _parse_uspto_hits(uspto_data) -async def set_patent_override( - author_id: str, - patent_id: str, - request: model.PatentOverrideRequest, - db: Session, - *, - client: PatentSearchClient | None = None, -) -> model.PatentOverrideResponse: - action = request.action.strip().lower() - if action not in {"include", "exclude"}: - raise HTTPException( - status_code=HTTP_400_BAD_REQUEST, - detail='action must be "include" or "exclude".', - ) + # Group by patent_id and keep one version per patent + grouped: dict[str, model.PatentEntry] = {} + for patent in all_patents: + if patent.patent_id not in grouped: + grouped[patent.patent_id] = patent - normalized_id = normalize_author_id(author_id) - patent: model.PatentEntry | None = None - - if action == "include": - links = repository.get_links(db, author_id) - existing = next( - (entry for entry in repository.links_to_patents(links) if entry.patent_id == patent_id), - None, - ) - if existing is not None: - patent = existing - else: - search_client = client or PatentSearchClient() - try: - patent = await search_client.lookup_patent(patent_id) - except MissingApiKeyError as exc: - raise HTTPException( - status_code=HTTP_503_SERVICE_UNAVAILABLE, - detail="Patent search is not configured.", - ) from exc - except httpx.HTTPError as exc: - raise HTTPException( - status_code=HTTP_502_BAD_GATEWAY, - detail="Patent lookup failed.", - ) from exc - - if patent is None: - raise HTTPException( - status_code=HTTP_400_BAD_REQUEST, - detail=f"Patent {patent_id} was not found in EPO/USPTO indices.", - ) - patent.confidence_score = max(patent.confidence_score, 10) - patent.match_signals = ["manual_include"] - - repository.upsert_override( - db, - normalized_id, - patent_id, - action, - reason=request.reason, - patent=patent, - ) - db.commit() - - return model.PatentOverrideResponse( - author_id=normalized_id, - patent_id=patent_id, - action=action, - reason=request.reason, - patent=patent, + return model.PatentsByAuthorResponse( + author_id=author_id, + author_name=author_name, + patent_count=len(grouped), + patents=list(grouped.values()), ) -def clear_patent_override( - author_id: str, - patent_id: str, - db: Session, -) -> bool: - deleted = repository.delete_override(db, author_id, patent_id) - if deleted: - db.commit() - return deleted +async def _search_both_indices(client, last_name, first_name): + import asyncio + epo_result, uspto_result = await asyncio.gather( + client.search_epo(client.epo_query_by_inventor(last_name, first_name)), + client.search_uspto(client.uspto_query_by_inventor(last_name, first_name)), + ) + return epo_result, uspto_result + + +def _parse_epo_hits(data: dict) -> list[model.PatentEntry]: + patents = [] + for hit in data.get("hits", {}).get("hits", []): + src = hit.get("_source", {}) + inventors = src.get("inventors_name") or [] + applicants = src.get("applicants_name") or [] + ipc = src.get("ipc") or [] + patents.append(model.PatentEntry( + patent_id=f"EP{src.get('doc_number', hit.get('_id', ''))}", + source="EPO", + title=src.get("title_en") or src.get("title_de"), + abstract=src.get("abstract"), + publication_date=src.get("date_publication"), + publication_year=src.get("date_publication_year"), + inventors=inventors if isinstance(inventors, list) else [inventors], + assignees=applicants if isinstance(applicants, list) else [applicants], + ipc=ipc if isinstance(ipc, list) else [ipc], + country=src.get("country", "EP"), + )) + return patents + + +def _parse_uspto_hits(data: dict) -> list[model.PatentEntry]: + patents = [] + for hit in data.get("hits", {}).get("hits", []): + src = hit.get("_source", {}) + inventors = src.get("inventors_names") or [] + assignees = src.get("assignees_orgs") or [] + ipc = src.get("ipcr") or [] + patents.append(model.PatentEntry( + patent_id=f"US{src.get('publication_number', hit.get('_id', ''))}", + source="USPTO", + title=src.get("title"), + abstract=src.get("abstract"), + publication_date=src.get("publication_date"), + publication_year=src.get("publication_year"), + inventors=inventors if isinstance(inventors, list) else [inventors], + assignees=assignees if isinstance(assignees, list) else [assignees], + ipc=ipc if isinstance(ipc, list) else [ipc], + country=src.get("country", "US"), + )) + return patents + + +def _get_author(author_id: str) -> Author | None: + short_id = author_id.replace("https://openalex.org/", "") + result = person_logic.search_persons(author_id=short_id) + return result.results[0] if result.results else None + + +def _extract_last_name(name: str | None) -> str | None: + if not name: + return None + parts = name.strip().split() + return parts[-1] if parts else None + + +def _extract_first_name(name: str | None) -> str | None: + if not name: + return None + parts = name.strip().split() + return parts[0] if len(parts) > 1 else None \ No newline at end of file diff --git a/service/src/main/inse/patents/model.py b/service/src/main/inse/patents/model.py index 0246b2d4..31ebc18c 100644 --- a/service/src/main/inse/patents/model.py +++ b/service/src/main/inse/patents/model.py @@ -1,5 +1,3 @@ -from datetime import datetime - from pydantic import BaseModel, Field @@ -14,41 +12,9 @@ class PatentEntry(BaseModel): assignees: list[str] = Field(default_factory=list) ipc: list[str] = Field(default_factory=list) country: str | None = None - confidence_score: int = 0 - match_signals: list[str] = Field(default_factory=list) - - -class PatentSearchMeta(BaseModel): - epo_total_hits: int = 0 - uspto_total_hits: int = 0 - epo_returned_hits: int = 0 - uspto_returned_hits: int = 0 - matched_count: int = 0 - epo_truncated: bool = False - uspto_truncated: bool = False - coauthor_signals: int = 0 - publication_keywords: int = 0 - rebuild_failed: bool = False - class PatentsByAuthorResponse(BaseModel): author_id: str author_name: str | None = None patent_count: int patents: list[PatentEntry] - from_cache: bool = False - last_built_at: datetime | None = None - search_meta: PatentSearchMeta | None = None - - -class PatentOverrideRequest(BaseModel): - action: str = Field(description='Either "include" or "exclude".') - reason: str | None = None - - -class PatentOverrideResponse(BaseModel): - author_id: str - patent_id: str - action: str - reason: str | None = None - patent: PatentEntry | None = None diff --git a/service/src/main/inse/patents/pipeline.py b/service/src/main/inse/patents/pipeline.py deleted file mode 100644 index ee1d7492..00000000 --- a/service/src/main/inse/patents/pipeline.py +++ /dev/null @@ -1,209 +0,0 @@ -#!/usr/bin/env python -# -*- coding: utf-8 -*- -""" - Disambiguation pipeline: search patents, score matches, persist links. -""" -from __future__ import annotations - -import logging -from collections import defaultdict -from datetime import datetime, timezone - -import httpx -from sqlalchemy.orm import Session - -from ..persons import logic as person_logic -from ..models.author import Author -from . import model -from .author_profile import ( - AuthorProfile, - build_author_profile, - enrich_with_publication_context, - normalize_author_id, -) -from .disambiguation import disambiguate_patent_group -from .elastic_search_client import ( - MissingApiKeyError, - PatentSearchClient, - parse_epo_hits, - parse_uspto_hits, -) -from . import repository - -logger = logging.getLogger(__name__) - - -async def rebuild_author_patents( - author_id: str, - db: Session, - *, - client: PatentSearchClient | None = None, -) -> model.PatentsByAuthorResponse: - search_client = client or PatentSearchClient() - normalized_id = normalize_author_id(author_id) - - author = _get_author(author_id) - if not author: - return _empty_response(normalized_id) - - profile = build_author_profile(author, author_id) - profile = await enrich_with_publication_context(profile) - - try: - epo_total, epo_hits = await search_client.fetch_all_epo(profile) - uspto_total, uspto_hits = await search_client.fetch_all_uspto(profile) - except MissingApiKeyError: - return _response_from_cache_or_empty( - db, - normalized_id, - author.display_name, - from_cache=True, - rebuild_failed=True, - ) - except httpx.HTTPError as exc: - logger.error("Patent search failed for author %s: %s", normalized_id, exc) - return _response_from_cache_or_empty( - db, - normalized_id, - author.display_name, - from_cache=True, - rebuild_failed=True, - ) - - all_patents = ( - parse_epo_hits({"hits": {"hits": epo_hits}}) - + parse_uspto_hits({"hits": {"hits": uspto_hits}}) - ) - - grouped: dict[str, list[model.PatentEntry]] = defaultdict(list) - for patent in all_patents: - grouped[patent.patent_id].append(patent) - - matched_patents: list[model.PatentEntry] = [] - for versions in grouped.values(): - best = disambiguate_patent_group(versions, profile) - if best is not None: - matched_patents.append(best) - - matched_patents.sort(key=lambda patent: patent.confidence_score, reverse=True) - - search_meta = model.PatentSearchMeta( - epo_total_hits=epo_total, - uspto_total_hits=uspto_total, - epo_returned_hits=len(epo_hits), - uspto_returned_hits=len(uspto_hits), - matched_count=len(matched_patents), - epo_truncated=len(epo_hits) < epo_total, - uspto_truncated=len(uspto_hits) < uspto_total, - coauthor_signals=len(profile.coauthor_last_names), - publication_keywords=len(profile.publication_keywords), - ) - - built_at = datetime.now(timezone.utc) - repository.replace_links( - db, - normalized_id, - matched_patents, - author_name=author.display_name, - search_meta=search_meta, - built_at=built_at, - ) - db.commit() - - return _build_response( - db, - normalized_id, - author.display_name, - from_cache=False, - built_at=built_at, - search_meta=search_meta, - ) - - -def load_author_patents( - db: Session, - author_id: str, -) -> model.PatentsByAuthorResponse: - normalized_id = normalize_author_id(author_id) - build_meta = repository.get_build_meta(db, normalized_id) - search_meta = None - built_at = None - author_name = None - - if build_meta is not None: - author_name = build_meta.author_name - built_at = build_meta.built_at - search_meta = model.PatentSearchMeta.model_validate_json(build_meta.search_meta) - - return _build_response( - db, - normalized_id, - author_name, - from_cache=True, - built_at=built_at, - search_meta=search_meta, - ) - - -def _build_response( - db: Session, - author_id: str, - author_name: str | None, - *, - from_cache: bool, - built_at: datetime | None, - search_meta: model.PatentSearchMeta | None, -) -> model.PatentsByAuthorResponse: - links = repository.get_links(db, author_id) - patents = repository.apply_overrides( - repository.links_to_patents(links), - repository.get_overrides(db, author_id), - ) - return model.PatentsByAuthorResponse( - author_id=author_id, - author_name=author_name, - patent_count=len(patents), - patents=patents, - from_cache=from_cache, - last_built_at=built_at, - search_meta=search_meta, - ) - - -def _response_from_cache_or_empty( - db: Session, - author_id: str, - author_name: str | None, - *, - from_cache: bool, - rebuild_failed: bool, -) -> model.PatentsByAuthorResponse: - links = repository.get_links(db, author_id) - if links: - return load_author_patents(db, author_id) - - search_meta = model.PatentSearchMeta(rebuild_failed=rebuild_failed) if rebuild_failed else None - return model.PatentsByAuthorResponse( - author_id=author_id, - author_name=author_name, - patent_count=0, - patents=[], - from_cache=from_cache, - search_meta=search_meta, - ) - - -def _empty_response(author_id: str) -> model.PatentsByAuthorResponse: - return model.PatentsByAuthorResponse( - author_id=author_id, - author_name=None, - patent_count=0, - patents=[], - from_cache=False, - ) - - -def _get_author(author_id: str) -> Author | None: - short_id = author_id.replace("https://openalex.org/", "") - result = person_logic.search_persons(author_id=short_id) - return result.results[0] if result.results else None diff --git a/service/src/main/inse/patents/repository.py b/service/src/main/inse/patents/repository.py deleted file mode 100644 index 5a049f54..00000000 --- a/service/src/main/inse/patents/repository.py +++ /dev/null @@ -1,182 +0,0 @@ -#!/usr/bin/env python -# -*- coding: utf-8 -*- -""" - Persistence layer for author-patent links and manual overrides. -""" -from __future__ import annotations - -import json -from datetime import datetime, timedelta, timezone - -from sqlalchemy import delete, select -from sqlalchemy.orm import Session - -from .. import config -from .. import schema -from . import model -from .author_profile import normalize_author_id - - -def is_cache_fresh(built_at: datetime | None) -> bool: - if built_at is None: - return False - ttl = timedelta(hours=config.settings.patent_link_cache_ttl_hours) - now = datetime.now(timezone.utc) - if built_at.tzinfo is None: - built_at = built_at.replace(tzinfo=timezone.utc) - return now - built_at < ttl - - -def get_build_meta(db: Session, author_id: str) -> schema.AuthorPatentBuildMeta | None: - normalized_id = normalize_author_id(author_id) - return db.get(schema.AuthorPatentBuildMeta, normalized_id) - - -def get_links(db: Session, author_id: str) -> list[schema.AuthorPatentLink]: - normalized_id = normalize_author_id(author_id) - return list( - db.scalars( - select(schema.AuthorPatentLink) - .where(schema.AuthorPatentLink.author_id == normalized_id) - .order_by(schema.AuthorPatentLink.confidence_score.desc()) - ).all() - ) - - -def get_overrides(db: Session, author_id: str) -> list[schema.AuthorPatentOverride]: - normalized_id = normalize_author_id(author_id) - return list( - db.scalars( - select(schema.AuthorPatentOverride) - .where(schema.AuthorPatentOverride.author_id == normalized_id) - ).all() - ) - - -def replace_links( - db: Session, - author_id: str, - patents: list[model.PatentEntry], - *, - author_name: str | None, - search_meta: model.PatentSearchMeta, - built_at: datetime | None = None, -) -> None: - normalized_id = normalize_author_id(author_id) - timestamp = built_at or datetime.now(timezone.utc) - - db.execute( - delete(schema.AuthorPatentLink).where( - schema.AuthorPatentLink.author_id == normalized_id - ) - ) - - for patent in patents: - db.add( - schema.AuthorPatentLink( - author_id=normalized_id, - patent_id=patent.patent_id, - source=patent.source, - confidence_score=patent.confidence_score, - match_signals=json.dumps(patent.match_signals), - patent_data=patent.model_dump_json(), - built_at=timestamp, - ) - ) - - existing_meta = db.get(schema.AuthorPatentBuildMeta, normalized_id) - if existing_meta is None: - existing_meta = schema.AuthorPatentBuildMeta(author_id=normalized_id) - db.add(existing_meta) - - existing_meta.author_name = author_name - existing_meta.built_at = timestamp - existing_meta.search_meta = search_meta.model_dump_json() - - -def upsert_override( - db: Session, - author_id: str, - patent_id: str, - action: str, - *, - reason: str | None = None, - patent: model.PatentEntry | None = None, -) -> schema.AuthorPatentOverride: - normalized_id = normalize_author_id(author_id) - existing = db.scalar( - select(schema.AuthorPatentOverride).where( - schema.AuthorPatentOverride.author_id == normalized_id, - schema.AuthorPatentOverride.patent_id == patent_id, - ) - ) - - patent_data = patent.model_dump_json() if patent is not None else None - if existing is None: - existing = schema.AuthorPatentOverride( - author_id=normalized_id, - patent_id=patent_id, - action=action, - reason=reason, - patent_data=patent_data, - created_at=datetime.now(timezone.utc), - ) - db.add(existing) - return existing - - existing.action = action - existing.reason = reason - if patent_data is not None: - existing.patent_data = patent_data - return existing - - -def delete_override(db: Session, author_id: str, patent_id: str) -> bool: - normalized_id = normalize_author_id(author_id) - override = db.scalar( - select(schema.AuthorPatentOverride).where( - schema.AuthorPatentOverride.author_id == normalized_id, - schema.AuthorPatentOverride.patent_id == patent_id, - ) - ) - if override is None: - return False - db.delete(override) - return True - - -def links_to_patents(links: list[schema.AuthorPatentLink]) -> list[model.PatentEntry]: - patents: list[model.PatentEntry] = [] - for link in links: - patent = model.PatentEntry.model_validate_json(link.patent_data) - patent.confidence_score = link.confidence_score - patent.match_signals = json.loads(link.match_signals or "[]") - patents.append(patent) - return patents - - -def apply_overrides( - patents: list[model.PatentEntry], - overrides: list[schema.AuthorPatentOverride], -) -> list[model.PatentEntry]: - excluded_ids = { - override.patent_id - for override in overrides - if override.action == "exclude" - } - result = [patent for patent in patents if patent.patent_id not in excluded_ids] - existing_ids = {patent.patent_id for patent in result} - - for override in overrides: - if override.action != "include" or override.patent_id in existing_ids: - continue - if not override.patent_data: - continue - patent = model.PatentEntry.model_validate_json(override.patent_data) - if "manual_include" not in patent.match_signals: - patent.match_signals.append("manual_include") - result.append(patent) - existing_ids.add(patent.patent_id) - - result.sort(key=lambda patent: patent.confidence_score, reverse=True) - return result diff --git a/service/src/main/inse/patents/service.py b/service/src/main/inse/patents/service.py index 2c41647e..53a27446 100644 --- a/service/src/main/inse/patents/service.py +++ b/service/src/main/inse/patents/service.py @@ -3,11 +3,7 @@ """ REST API for patent matching by author. """ -from fastapi import APIRouter, Depends, HTTPException, Query -from sqlalchemy.orm import Session -from starlette.status import HTTP_404_NOT_FOUND - -from .. import database +from fastapi import APIRouter from . import logic from . import model @@ -18,54 +14,7 @@ router = APIRouter(prefix="/api/inse-service/authors", tags=["Patents"]) "/{author_id}/patents", operation_id="getPatentsByAuthor", response_model=model.PatentsByAuthorResponse, - summary="Get patents matched to an author.", + summary="Get patents matched to an author by name.", ) -async def get_patents_by_author( - author_id: str, - refresh: bool = Query(False, description="Force a rebuild of the patent links."), - db: Session = Depends(database.get), -): - return await logic.get_patents_by_author_id(author_id, db, refresh=refresh) - - -@router.post( - "/{author_id}/patents/rebuild", - operation_id="rebuildPatentsByAuthor", - response_model=model.PatentsByAuthorResponse, - summary="Rebuild patent links for an author via the disambiguation pipeline.", -) -async def rebuild_patents_by_author( - author_id: str, - db: Session = Depends(database.get), -): - return await logic.rebuild_patents_for_author(author_id, db) - - -@router.put( - "/{author_id}/patents/{patent_id}/override", - operation_id="setPatentOverride", - response_model=model.PatentOverrideResponse, - summary="Manually include or exclude a patent for an author.", -) -async def set_patent_override( - author_id: str, - patent_id: str, - body: model.PatentOverrideRequest, - db: Session = Depends(database.get), -): - return await logic.set_patent_override(author_id, patent_id, body, db) - - -@router.delete( - "/{author_id}/patents/{patent_id}/override", - operation_id="clearPatentOverride", - status_code=204, - summary="Remove a manual patent override for an author.", -) -async def clear_patent_override( - author_id: str, - patent_id: str, - db: Session = Depends(database.get), -): - if not logic.clear_patent_override(author_id, patent_id, db): - raise HTTPException(status_code=HTTP_404_NOT_FOUND, detail="Override not found.") +async def get_patents_by_author(author_id: str): + return await logic.get_patents_by_author_id(author_id) diff --git a/service/src/main/inse/patents/test_logic.py b/service/src/main/inse/patents/test_logic.py deleted file mode 100644 index 49a15ac1..00000000 --- a/service/src/main/inse/patents/test_logic.py +++ /dev/null @@ -1,228 +0,0 @@ -import json - -import httpx -import pytest -from sqlalchemy import create_engine -from sqlalchemy.orm import sessionmaker - -from inse import schema -from inse.patents import model -from inse.patents.author_profile import AuthorProfile, build_author_profile, extract_name_parts -from inse.patents.disambiguation import disambiguate_patent_group, score_patent -from inse.patents.elastic_search_client import PatentSearchClient, parse_epo_hits, parse_uspto_hits -from inse.patents import repository -from inse.models.author import Author -from inse.models.author_ids import AuthorIds -from inse.models.dehydrated_institution import DehydratedInstitution - - -@pytest.fixture -def anyio_backend(): - return "asyncio" - - -@pytest.fixture -def db_session(): - engine = create_engine("sqlite:///:memory:") - schema.Base.metadata.create_all(engine) - session = sessionmaker(bind=engine)() - try: - yield session - finally: - session.close() - - -def _sample_author() -> Author: - return Author( - id="https://openalex.org/A123", - display_name="Max Mustermann", - orcid="https://orcid.org/0000-0001-2345-6789", - ids=AuthorIds(openalex="https://openalex.org/A123", orcid="https://orcid.org/0000-0001-2345-6789"), - last_known_institutions=[ - DehydratedInstitution(display_name="University of Example"), - ], - topics=[], - affiliations=[], - ) - - -def test_extract_name_parts_strips_titles(): - first, last = extract_name_parts("Prof. Dr. Max Mustermann") - assert first == "Max" - assert last == "Mustermann" - - -def test_score_patent_accepts_full_name_and_institution(): - author = _sample_author() - profile = build_author_profile(author, "A123") - profile.coauthor_last_names.add("schmidt") - - patent = model.PatentEntry( - patent_id="EP100", - source="EPO", - title="Machine learning system", - inventors=["Max Mustermann", "Anna Schmidt"], - assignees=["University of Example Research"], - ) - - result = score_patent(patent, profile) - assert result.accepted is True - assert result.score >= 6 - assert "full_name_match" in result.signals - assert "institution_match" in result.signals - assert "coauthor_match" in result.signals - - -def test_disambiguate_patent_group_keeps_best_version(): - author = _sample_author() - profile = build_author_profile(author, "A123") - - weak = model.PatentEntry( - patent_id="EP100", - source="EPO", - inventors=["Mustermann"], - assignees=[], - ) - strong = model.PatentEntry( - patent_id="EP100", - source="EPO", - inventors=["Max Mustermann"], - assignees=["University of Example"], - ) - - best = disambiguate_patent_group([weak, strong], profile) - assert best is not None - assert best.inventors == ["Max Mustermann"] - assert best.confidence_score >= 6 - - -def test_repository_apply_overrides_include_and_exclude(db_session): - patent = model.PatentEntry( - patent_id="EP1", - source="EPO", - inventors=["Max Mustermann"], - confidence_score=8, - match_signals=["full_name_match"], - ) - repository.replace_links( - db_session, - "A123", - [patent], - author_name="Max Mustermann", - search_meta=model.PatentSearchMeta(matched_count=1), - ) - repository.upsert_override(db_session, "A123", "EP1", "exclude") - repository.upsert_override( - db_session, - "A123", - "EP2", - "include", - patent=model.PatentEntry( - patent_id="EP2", - source="EPO", - inventors=["Max Mustermann"], - confidence_score=10, - match_signals=["manual_include"], - ), - ) - db_session.commit() - - patents = repository.apply_overrides( - repository.links_to_patents(repository.get_links(db_session, "A123")), - repository.get_overrides(db_session, "A123"), - ) - patent_ids = {entry.patent_id for entry in patents} - assert "EP1" not in patent_ids - assert "EP2" in patent_ids - - -@pytest.mark.anyio -async def test_rebuild_author_patents_persists_links(db_session, monkeypatch): - from inse.patents.pipeline import rebuild_author_patents - - author = _sample_author() - - monkeypatch.setattr( - "inse.patents.pipeline._get_author", - lambda author_id: author, - ) - async def fake_enrich(profile, works_client=None): - return profile - - monkeypatch.setattr( - "inse.patents.pipeline.enrich_with_publication_context", - fake_enrich, - ) - - class FakeClient: - async def fetch_all_epo(self, profile): - return 1, [{ - "_source": { - "doc_number": "100", - "title_en": "Example patent", - "inventors_name": ["Max Mustermann"], - "applicants_name": ["University of Example"], - }, - }] - - async def fetch_all_uspto(self, profile): - return 0, [] - - response = await rebuild_author_patents("A123", db_session, client=FakeClient()) - assert response.patent_count == 1 - assert response.patents[0].patent_id == "EP100" - assert response.from_cache is False - assert response.search_meta is not None - assert response.search_meta.matched_count == 1 - - cached = repository.get_links(db_session, "A123") - assert len(cached) == 1 - - -def test_patent_search_client_builds_full_name_query(): - profile = AuthorProfile( - author_id="https://openalex.org/A123", - display_name="Max Mustermann", - first_name="Max", - last_name="Mustermann", - name_variants=["Max Mustermann", "Mustermann, Max"], - ) - client = PatentSearchClient(api_key="test-key") - query = client.epo_query_by_profile(profile, page=1, size=100) - assert query["from"] == 0 - assert query["size"] == 100 - should = query["query"]["bool"]["should"] - assert any( - clause.get("match", {}).get("inventors_name_text", {}).get("query") == "Max Mustermann" - for clause in should - ) - - -def test_parse_epo_and_uspto_hits(): - epo = parse_epo_hits({ - "hits": { - "hits": [{ - "_source": { - "doc_number": "123", - "title_en": "EPO title", - "inventors_name": ["Max Mustermann", None], - "date_publication_year": 2015, - }, - }], - }, - }) - uspto = parse_uspto_hits({ - "hits": { - "hits": [{ - "_source": { - "publication_number": "456", - "title": "US title", - "inventors_names": ["Max Mustermann"], - }, - }], - }, - }) - assert epo[0].patent_id == "EP123" - assert epo[0].inventors == ["Max Mustermann"] - assert epo[0].publication_year == "2015" - assert uspto[0].patent_id == "US456" diff --git a/service/src/main/inse/schema.py b/service/src/main/inse/schema.py index b1b59c1b..d03a1b33 100644 --- a/service/src/main/inse/schema.py +++ b/service/src/main/inse/schema.py @@ -4,9 +4,7 @@ This module defines the schema for the database used by the service using sql alchemy. """ -from datetime import datetime - -from sqlalchemy import DateTime, String, Text, UniqueConstraint +from sqlalchemy import String from sqlalchemy.orm import DeclarativeBase from sqlalchemy.orm import Mapped from sqlalchemy.orm import mapped_column @@ -24,46 +22,3 @@ class Item(Base): description: Mapped[str] = mapped_column(String(2000)) def __repr__(self) -> str: return f"Item(id={self.id!r}, name={self.name!r})" - - -class AuthorPatentLink(Base): - """Persisted author-to-patent match produced by the disambiguation pipeline.""" - __tablename__ = "author_patent_link" - __table_args__ = ( - UniqueConstraint("author_id", "patent_id", name="uq_author_patent_link"), - ) - - id: Mapped[int] = mapped_column(primary_key=True, autoincrement=True) - author_id: Mapped[str] = mapped_column(String(128), index=True) - patent_id: Mapped[str] = mapped_column(String(64), index=True) - source: Mapped[str] = mapped_column(String(16)) - confidence_score: Mapped[int] = mapped_column() - match_signals: Mapped[str] = mapped_column(Text) - patent_data: Mapped[str] = mapped_column(Text) - built_at: Mapped[datetime] = mapped_column(DateTime) - - -class AuthorPatentOverride(Base): - """Manual include/exclude overrides for author-patent links.""" - __tablename__ = "author_patent_override" - __table_args__ = ( - UniqueConstraint("author_id", "patent_id", name="uq_author_patent_override"), - ) - - id: Mapped[int] = mapped_column(primary_key=True, autoincrement=True) - author_id: Mapped[str] = mapped_column(String(128), index=True) - patent_id: Mapped[str] = mapped_column(String(64), index=True) - action: Mapped[str] = mapped_column(String(16)) - reason: Mapped[str | None] = mapped_column(String(500), nullable=True) - patent_data: Mapped[str | None] = mapped_column(Text, nullable=True) - created_at: Mapped[datetime] = mapped_column(DateTime) - - -class AuthorPatentBuildMeta(Base): - """Metadata for the last disambiguation run per author.""" - __tablename__ = "author_patent_build_meta" - - author_id: Mapped[str] = mapped_column(String(128), primary_key=True) - author_name: Mapped[str | None] = mapped_column(String(300), nullable=True) - built_at: Mapped[datetime] = mapped_column(DateTime) - search_meta: Mapped[str] = mapped_column(Text) diff --git a/webapp/src/app/api/api/patents.service.ts b/webapp/src/app/api/api/patents.service.ts index ab42b885..6a0e0b8a 100644 --- a/webapp/src/app/api/api/patents.service.ts +++ b/webapp/src/app/api/api/patents.service.ts @@ -33,20 +33,7 @@ export interface PatentEntry { ipc: string[]; country: string | null; confidence_score: number; - match_signals?: string[]; -} -export interface PatentSearchMeta { - epo_total_hits: number; - uspto_total_hits: number; - epo_returned_hits: number; - uspto_returned_hits: number; - matched_count: number; - epo_truncated: boolean; - uspto_truncated: boolean; - coauthor_signals: number; - publication_keywords: number; - rebuild_failed?: boolean; } export interface PatentsByAuthorResponse { @@ -54,16 +41,12 @@ export interface PatentsByAuthorResponse { author_name: string | null; patent_count: number; patents: PatentEntry[]; - from_cache?: boolean; - last_built_at?: string | null; - search_meta?: PatentSearchMeta | null; } type GetPatentsByAuthorOptions = { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean; - refresh?: boolean; }; @Injectable({ @@ -155,18 +138,12 @@ export class PatentsService extends BaseService { dataFormat: undefined, })}/patents`; - let localVarQueryParameters = new HttpParams({ encoder: new CustomHttpParameterCodec() }); - if (options?.refresh) { - localVarQueryParameters = localVarQueryParameters.set('refresh', 'true'); - } - const { basePath, withCredentials } = this.configuration; return this.httpClient.request( 'get', `${basePath}${localVarPath}`, { context: localVarHttpContext, - params: localVarQueryParameters, responseType: responseType_, ...(withCredentials ? { withCredentials } : {}), headers: localVarHeaders, @@ -178,26 +155,4 @@ export class PatentsService extends BaseService { }, ); } - - public rebuildPatentsByAuthor(authorId: string): Observable { - const localVarPath = `/api/inse-service/authors/${this.configuration.encodeParam({ - name: 'authorId', - value: authorId, - in: 'path', - style: 'simple', - explode: false, - dataType: 'string', - dataFormat: undefined, - })}/patents/rebuild`; - - const { basePath, withCredentials } = this.configuration; - return this.httpClient.post( - `${basePath}${localVarPath}`, - null, - { - ...(withCredentials ? { withCredentials } : {}), - headers: this.defaultHeaders, - }, - ); - } } diff --git a/webapp/src/app/modules/person-patents/person-patents.component.html b/webapp/src/app/modules/person-patents/person-patents.component.html index 841c1ba1..03370197 100644 --- a/webapp/src/app/modules/person-patents/person-patents.component.html +++ b/webapp/src/app/modules/person-patents/person-patents.component.html @@ -20,29 +20,23 @@ {{ getUsptoCount() }} USPTO

-
-
+
+ +
-
- Relevanz - {{ selectedPatent.confidence_score }} -
- @if (selectedPatent.match_signals?.length) { -
-

Zuordnungs-Signale

-
    - @for (signal of selectedPatent.match_signals; track signal) { -
  • {{ formatSignal(signal) }}
  • - } -
-
- } - @if (selectedPatent.abstract) {

Abstract

diff --git a/webapp/src/app/modules/person-patents/person-patents.component.scss b/webapp/src/app/modules/person-patents/person-patents.component.scss index 079fffd7..9f511648 100644 --- a/webapp/src/app/modules/person-patents/person-patents.component.scss +++ b/webapp/src/app/modules/person-patents/person-patents.component.scss @@ -14,8 +14,6 @@ margin-bottom: 8px; display: flex; gap: 24px; - align-items: center; - flex-wrap: wrap; .summary-line { margin: 0; @@ -23,22 +21,6 @@ color: #333; } - .rebuild-button { - margin-left: auto; - padding: 8px 14px; - border: 1px solid #bdd4ff; - border-radius: 20px; - background: #f0f6ff; - color: #0b63ce; - cursor: pointer; - font-size: 14px; - - &:disabled { - opacity: 0.6; - cursor: default; - } - } - .summary-label { color: #333; } @@ -50,33 +32,35 @@ } .filter-bar { - display: flex; + display: inline-flex; align-items: center; - gap: 8px; - flex-wrap: wrap; + gap: 6px; + width: fit-content; + padding: 10px 14px; + border-radius: 20px; + background: #f2f2f2; + color: #333; + font-size: 14px; span { - font-weight: 500; color: #555; } button { - padding: 6px 14px; - border: 1px solid #ccc; - border-radius: 20px; - background: white; + border: 0; + background: transparent; + color: #111827; + font: inherit; cursor: pointer; - font-size: 14px; - - &:hover { - background: #f0f0f0; - } + outline: none; &.active { - background: #f0f6ff; - color: #0b63ce; - border-color: #bdd4ff; font-weight: 600; + color: #0b63ce; + } + + &:hover { + text-decoration: underline; } } } @@ -281,12 +265,6 @@ color: #1e40af; font-size: 0.8rem; line-height: 1.3; - - &--signal { - background: #eef7ee; - border-color: #cfe6cf; - color: #2f6b2f; - } } .pagination { diff --git a/webapp/src/app/modules/person-patents/person-patents.component.ts b/webapp/src/app/modules/person-patents/person-patents.component.ts index f96dcb14..507f1e88 100644 --- a/webapp/src/app/modules/person-patents/person-patents.component.ts +++ b/webapp/src/app/modules/person-patents/person-patents.component.ts @@ -1,26 +1,11 @@ import { Component, OnInit, inject } from '@angular/core'; import { CommonModule } from '@angular/common'; import { ActivatedRoute, Router } from '@angular/router'; -import { - PatentsService, - PatentEntry, - PatentSearchMeta, -} from '../../api/api/patents.service'; +import { PatentsService, PatentEntry } from '../../api/api/patents.service'; -type SortMode = 'score' | 'date' | 'title'; +type SortMode = 'date' | 'title'; type SourceFilter = 'all' | 'EPO' | 'USPTO'; -const SIGNAL_LABELS: Record = { - full_name_match: 'Vollständiger Name', - last_name_match: 'Nachname', - first_name_match: 'Vorname', - institution_match: 'Institution', - topic_match: 'Forschungsthema', - coauthor_match: 'Ko-Autor', - publication_topic_match: 'Publikations-Thema', - manual_include: 'Manuell hinzugefügt', -}; - @Component({ selector: 'app-person-patents', imports: [CommonModule], @@ -36,22 +21,19 @@ export class PersonPatentsComponent implements OnInit { filteredPatents: PatentEntry[] = []; authorName: string | null = null; selectedPatent: PatentEntry | null = null; - searchMeta: PatentSearchMeta | null = null; loading = true; - rebuilding = false; error = false; - authorId = ''; activeFilter: SourceFilter = 'all'; - sortMode: SortMode = 'score'; + sortMode: SortMode = 'date'; selectedPage = 1; readonly pageSize = 10; ngOnInit(): void { this.route.parent?.paramMap.subscribe((params) => { - this.authorId = params.get('id') ?? ''; + const authorId = params.get('id') ?? ''; const filterFromUrl = this.route.snapshot.queryParamMap.get('filter'); const sortFromUrl = this.route.snapshot.queryParamMap.get('sortBy'); @@ -63,51 +45,23 @@ export class PersonPatentsComponent implements OnInit { this.sortMode = sortFromUrl; } - if (this.authorId) { - this.loadPatents(); + if (authorId) { + this.patentsApi.getPatentsByAuthor(authorId, 'body').subscribe({ + next: (result) => { + this.patents = result.patents ?? []; + this.authorName = result.author_name ?? null; + this.applyFilter(); + this.loading = false; + }, + error: () => { + this.error = true; + this.loading = false; + }, + }); } }); } - loadPatents(refresh = false): void { - this.loading = true; - this.error = false; - - this.patentsApi - .getPatentsByAuthor(this.authorId, 'body', false, { - refresh, - transferCache: false, - }) - .subscribe({ - next: (result) => this.applyResult(result), - error: () => { - this.error = true; - this.loading = false; - }, - }); - } - - rebuildPatents(): void { - if (!this.authorId || this.rebuilding) { - return; - } - - this.rebuilding = true; - this.error = false; - - this.patentsApi.rebuildPatentsByAuthor(this.authorId).subscribe({ - next: (result) => { - this.applyResult(result); - this.rebuilding = false; - }, - error: () => { - this.error = true; - this.rebuilding = false; - this.loading = false; - }, - }); - } - setFilter(filter: SourceFilter): void { this.activeFilter = filter; this.selectedPage = 1; @@ -127,22 +81,6 @@ export class PersonPatentsComponent implements OnInit { this.updateQueryParams(); } - formatSignal(signal: string): string { - return SIGNAL_LABELS[signal] ?? signal; - } - - private applyResult(result: { - patents?: PatentEntry[]; - author_name?: string | null; - search_meta?: PatentSearchMeta | null; - }): void { - this.patents = result.patents ?? []; - this.authorName = result.author_name ?? null; - this.searchMeta = result.search_meta ?? null; - this.applyFilter(); - this.loading = false; - } - private applyFilter(): void { let patents = this.patents; @@ -155,13 +93,14 @@ export class PersonPatentsComponent implements OnInit { private sortPatents(patents: PatentEntry[]): PatentEntry[] { return [...patents].sort((a, b) => { - if (this.sortMode === 'score') { - return b.confidence_score - a.confidence_score; - } if (this.sortMode === 'date') { - return (b.publication_date ?? '').localeCompare(a.publication_date ?? ''); + return (b.publication_date ?? '').localeCompare( + a.publication_date ?? '', + ); } - return (a.title ?? '').localeCompare(b.title ?? '', 'de', { sensitivity: 'base' }); + return (a.title ?? '').localeCompare(b.title ?? '', 'de', { + sensitivity: 'base', + }); }); } @@ -182,7 +121,7 @@ export class PersonPatentsComponent implements OnInit { } private isValidSortMode(value: string | null): value is SortMode { - return value === 'score' || value === 'date' || value === 'title'; + return value === 'date' || value === 'title'; } getPagedPatents(): PatentEntry[] { From 029bdb5bca56371bd7c1d6ddbafbefc79fafd917 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mats=20Paul=20Ton=C4=8Dik?= Date: Wed, 17 Jun 2026 20:03:42 +0200 Subject: [PATCH 14/41] Added institutions search --- service/src/data/search_scores.json | 156 +- .../institutions_search_client.py | 158 +- service/src/main/inse/institutions/model.py | 17 + .../institutions/{service.py => router.py} | 58 +- service/src/main/inse/main.py | 4 +- service/src/main/inse/projects/router.py | 2 +- ude_person.http | 34 + webapp/src/app/api/.openapi-generator/FILES | 1 + webapp/src/app/api/README.md | 91 +- webapp/src/app/api/api.base.service.ts | 158 +- webapp/src/app/api/api.module.ts | 52 +- webapp/src/app/api/api/api.ts | 13 +- webapp/src/app/api/api/funding.service.ts | 366 +-- .../app/api/api/iNSEAccountService.service.ts | 482 ++- webapp/src/app/api/api/iNSEService.service.ts | 1357 +++------ .../src/app/api/api/institutions.service.ts | 711 ++--- webapp/src/app/api/api/items.service.ts | 903 ++---- .../src/app/api/api/personNetwork.service.ts | 215 +- webapp/src/app/api/api/persons.service.ts | 2592 ++++++----------- webapp/src/app/api/api/projects.service.ts | 723 ++--- webapp/src/app/api/api/topics.service.ts | 1136 +++----- webapp/src/app/api/api/works.service.ts | 1014 +++---- webapp/src/app/api/configuration.ts | 368 ++- webapp/src/app/api/encoder.ts | 24 +- webapp/src/app/api/model/accessGrant.ts | 16 +- webapp/src/app/api/model/authAccount.ts | 12 +- webapp/src/app/api/model/authScope.ts | 14 +- webapp/src/app/api/model/author.ts | 40 +- .../app/api/model/authorAffiliationsInner.ts | 10 +- .../app/api/model/authorCountsByYearInner.ts | 12 +- webapp/src/app/api/model/authorIds.ts | 12 +- webapp/src/app/api/model/authorNetworkNode.ts | 34 +- .../app/api/model/authorParsedLongestName.ts | 16 +- .../src/app/api/model/authorPositionCount.ts | 14 +- .../src/app/api/model/authorSummaryStats.ts | 12 +- .../app/api/model/authorsFilterProperties.ts | 30 +- .../src/app/api/model/authorsListResponse.ts | 12 +- webapp/src/app/api/model/authorship.ts | 20 +- .../src/app/api/model/autocompleteResponse.ts | 10 +- .../app/api/model/autocompleteResponseMeta.ts | 10 +- .../model/autocompleteResponseResultsInner.ts | 20 +- webapp/src/app/api/model/award.ts | 18 +- webapp/src/app/api/model/bundProject.ts | 62 +- webapp/src/app/api/model/bundProjectPage.ts | 38 +- webapp/src/app/api/model/categoryNested.ts | 28 +- .../src/app/api/model/collaborationNetwork.ts | 54 +- .../app/api/model/collaborationNetworkEdge.ts | 22 +- .../api/model/collaborationNetworkNodeType.ts | 13 +- webapp/src/app/api/model/costUsd.ts | 7 +- webapp/src/app/api/model/customAuthor.ts | 42 +- .../api/model/customAuthorsListResponse.ts | 14 +- webapp/src/app/api/model/dehydratedAuthor.ts | 12 +- webapp/src/app/api/model/dehydratedFunder.ts | 12 +- .../app/api/model/dehydratedInstitution.ts | 18 +- webapp/src/app/api/model/dehydratedSource.ts | 28 +- webapp/src/app/api/model/dfgProjectPage.ts | 38 +- webapp/src/app/api/model/dfgProjectSummary.ts | 32 +- .../api/model/displayCodeSplittedNested.ts | 8 +- webapp/src/app/api/model/euProject.ts | 72 +- webapp/src/app/api/model/euProjectPage.ts | 38 +- webapp/src/app/api/model/filterInformation.ts | 38 +- webapp/src/app/api/model/filterProperties.ts | 18 +- webapp/src/app/api/model/funderByAuthor.ts | 22 +- .../app/api/model/fundersByAuthorResponse.ts | 14 +- webapp/src/app/api/model/fwci.ts | 7 +- webapp/src/app/api/model/groupByResult.ts | 12 +- .../src/app/api/model/hTTPValidationError.ts | 8 +- webapp/src/app/api/model/identityGrant.ts | 14 +- webapp/src/app/api/model/institution.ts | 46 +- webapp/src/app/api/model/institutionGeo.ts | 20 +- webapp/src/app/api/model/institutionIds.ts | 18 +- .../app/api/model/institutionInformation.ts | 22 +- .../app/api/model/institutionNetworkNode.ts | 34 +- webapp/src/app/api/model/institutionPage.ts | 31 + .../app/api/model/institutionsListResponse.ts | 12 +- webapp/src/app/api/model/item.ts | 30 +- webapp/src/app/api/model/itemCreate.ts | 22 +- webapp/src/app/api/model/itemPage.ts | 38 +- webapp/src/app/api/model/keywordNested.ts | 8 +- webapp/src/app/api/model/latitude.ts | 7 +- webapp/src/app/api/model/location.ts | 24 +- webapp/src/app/api/model/longitude.ts | 7 +- webapp/src/app/api/model/meta.ts | 20 +- .../app/api/model/model2YrMeanCitedness.ts | 7 +- webapp/src/app/api/model/models.ts | 1 + webapp/src/app/api/model/openAccess.ts | 14 +- .../src/app/api/model/organizationNested.ts | 18 +- webapp/src/app/api/model/personBio.ts | 14 +- webapp/src/app/api/model/programmeNested.ts | 12 +- .../api/model/publicationDetailByFunder.ts | 68 +- .../model/publicationIdsByAuthorPosition.ts | 14 +- .../api/model/publicationsByAuthorResponse.ts | 20 +- webapp/src/app/api/model/score.ts | 7 +- webapp/src/app/api/model/topic.ts | 32 +- webapp/src/app/api/model/topicCount.ts | 26 +- webapp/src/app/api/model/topicDomain.ts | 10 +- webapp/src/app/api/model/topicField.ts | 10 +- webapp/src/app/api/model/topicIds.ts | 10 +- webapp/src/app/api/model/topicSubfield.ts | 10 +- webapp/src/app/api/model/topicsByTime.ts | 46 +- webapp/src/app/api/model/topicsByYear.ts | 38 +- .../src/app/api/model/topicsListResponse.ts | 12 +- webapp/src/app/api/model/validationError.ts | 12 +- .../app/api/model/validationErrorLocInner.ts | 7 +- webapp/src/app/api/model/value.ts | 7 +- webapp/src/app/api/model/work.ts | 82 +- webapp/src/app/api/model/workBiblio.ts | 14 +- .../model/workCitationNormalizedPercentile.ts | 12 +- .../api/model/workCitedByPercentileYear.ts | 10 +- .../app/api/model/workCountsByYearInner.ts | 10 +- webapp/src/app/api/model/workHasContent.ts | 10 +- webapp/src/app/api/model/workIds.ts | 16 +- webapp/src/app/api/model/workKeyword.ts | 12 +- webapp/src/app/api/model/workMeshInner.ts | 16 +- webapp/src/app/api/model/workNetworkNode.ts | 38 +- webapp/src/app/api/model/workPage.ts | 46 +- .../workSustainableDevelopmentGoalsInner.ts | 12 +- webapp/src/app/api/model/workTopic.ts | 18 +- webapp/src/app/api/model/workTopicDomain.ts | 10 +- webapp/src/app/api/model/workTopicField.ts | 10 +- .../src/app/api/model/workTopicInformation.ts | 22 +- webapp/src/app/api/model/workTopicSubfield.ts | 10 +- .../app/api/model/worksFilterProperties.ts | 46 +- webapp/src/app/api/model/worksListResponse.ts | 12 +- webapp/src/app/api/param.ts | 37 +- webapp/src/app/api/provide-api.ts | 24 +- webapp/src/app/api/variables.ts | 10 +- webapp/src/app/app.config.ts | 3 + webapp/src/app/app.routes.ts | 26 + .../institution-publications.component.html | 1 + .../institution-publications.component.scss | 0 .../institution-publications.component.ts | 11 + .../institution/institution.component.ts | 3 +- .../institutions/institutions.component.html | 116 + .../institutions/institutions.component.scss | 99 + .../institutions/institutions.component.ts | 108 + .../app/resolvers/institutions.resolver.ts | 29 + .../shared/ui/app-menu/app-menu.component.ts | 13 + 138 files changed, 5516 insertions(+), 7722 deletions(-) create mode 100644 service/src/main/inse/institutions/model.py rename service/src/main/inse/institutions/{service.py => router.py} (72%) create mode 100644 webapp/src/app/api/model/institutionPage.ts create mode 100644 webapp/src/app/modules/institution-publications/institution-publications.component.html create mode 100644 webapp/src/app/modules/institution-publications/institution-publications.component.scss create mode 100644 webapp/src/app/modules/institution-publications/institution-publications.component.ts create mode 100644 webapp/src/app/modules/institutions/institutions.component.html create mode 100644 webapp/src/app/modules/institutions/institutions.component.scss create mode 100644 webapp/src/app/modules/institutions/institutions.component.ts create mode 100644 webapp/src/app/resolvers/institutions.resolver.ts diff --git a/service/src/data/search_scores.json b/service/src/data/search_scores.json index 3f7d4e0b..ae1db7b2 100644 --- a/service/src/data/search_scores.json +++ b/service/src/data/search_scores.json @@ -1,150 +1,114 @@ { - "query": "Robotics", - "max_score": 22.734766, + "query": "localization", + "max_score": 23.237041, "results": [ { - "topic_name": "Soft Robotics and Applications", - "score": 22.734766 - }, - { - "topic_name": "Robotics and Automated Systems", - "score": 21.997686 - }, - { - "topic_name": "Educational Robotics and Engineering", - "score": 21.919401 - }, - { - "topic_name": "Prosthetics and Rehabilitation Robotics", - "score": 21.846806 - }, - { - "topic_name": "Micro and Nano Robotics", - "score": 21.820261 - }, - { - "topic_name": "Reinforcement Learning in Robotics", - "score": 21.757397 + "topic_name": "Indoor and Outdoor Localization Technologies", + "score": 23.237041 }, { "topic_name": "Robotics and Sensor-Based Localization", - "score": 19.993645 + "score": 21.511477 }, { - "topic_name": "Social Robot Interaction and HRI", - "score": 13.187252 + "topic_name": "Spectral Theory in Mathematical Physics", + "score": 14.039959 }, { - "topic_name": "Robotic Locomotion and Control", - "score": 12.283064 + "topic_name": "Socioeconomic Development in MENA", + "score": 11.518878 }, { - "topic_name": "Power Line Inspection Robots", - "score": 11.873396 + "topic_name": "Electrical Fault Detection and Protection", + "score": 10.770052 }, { - "topic_name": "Mechatronics Education and Applications", - "score": 11.171629 + "topic_name": "Machine Learning in Bioinformatics", + "score": 10.322677 }, { - "topic_name": "Educational Technology and Optimization", - "score": 10.924184 + "topic_name": "Software System Performance and Reliability", + "score": 10.112644 }, { - "topic_name": "Mechanical and Thermal Properties Analysis", - "score": 10.924184 + "topic_name": "Quantum many-body systems", + "score": 10.112644 }, { - "topic_name": "Psychiatry, Mental Health, Neuroscience", - "score": 10.687462 + "topic_name": "Random lasers and scattering media", + "score": 10.112644 }, { - "topic_name": "Advanced Materials and Mechanics", - "score": 10.460782 + "topic_name": "Insect Pheromone Research and Control", + "score": 9.910988 }, { - "topic_name": "Wetland Management and Conservation", - "score": 10.460782 + "topic_name": "Tactile and Sensory Interactions", + "score": 9.910988 }, { - "topic_name": "Artificial Intelligence Applications", - "score": 10.243518 + "topic_name": "Handwritten Text Recognition Techniques", + "score": 9.910988 }, { - "topic_name": "Digitalization, Law, and Regulation", - "score": 10.243518 + "topic_name": "Integrated Circuits and Semiconductor Failure Analysis", + "score": 9.910988 }, { - "topic_name": "Engineering and Technology Innovations", - "score": 10.243518 + "topic_name": "Medical Imaging and Analysis", + "score": 9.7172165 }, { - "topic_name": "Advanced Algorithms and Applications", - "score": 10.035095 + "topic_name": "Microwave Imaging and Scattering Analysis", + "score": 9.7172165 }, { - "topic_name": "Teaching and Learning Programming", - "score": 10.035095 + "topic_name": "Neurology and Historical Studies", + "score": 9.7172165 }, { - "topic_name": "Distributed Control Multi-Agent Systems", - "score": 10.035095 + "topic_name": "High-Velocity Impact and Material Behavior", + "score": 9.7172165 }, { - "topic_name": "Advanced Scientific and Engineering Studies", - "score": 9.834986 + "topic_name": "Software Engineering Research", + "score": 9.530875 }, { - "topic_name": "Space Satellite Systems and Control", - "score": 9.6427 + "topic_name": "Software Testing and Debugging Techniques", + "score": 9.530875 }, { - "topic_name": "Smart Agriculture and AI", - "score": 9.279837 + "topic_name": "Digital Media Forensic Detection", + "score": 9.530875 + }, + { + "topic_name": "Infrared Thermography in Medicine", + "score": 9.351548 + }, + { + "topic_name": "Explainable Artificial Intelligence (XAI)", + "score": 9.351548 }, { "topic_name": "Underwater Vehicles and Communication Systems", - "score": 9.279837 + "score": 9.351548 }, { - "topic_name": "Modular Robots and Swarm Intelligence", - "score": 7.7584143 + "topic_name": "Diffusion and Search Dynamics", + "score": 8.8518915 }, { - "topic_name": "Diverse Perspectives in Modern Studies", + "topic_name": "Direction-of-Arrival Estimation Techniques", + "score": 5.968384 + }, + { + "topic_name": "Retinal Imaging and Analysis", "score": 5.6107 }, { - "topic_name": "Teleoperation and Haptic Systems", - "score": 5.2510495 - }, - { - "topic_name": "Optimization and Search Problems", - "score": 5.1682277 - }, - { - "topic_name": "Adaptive Dynamic Programming Control", - "score": 4.8615155 - }, - { - "topic_name": "Robotic Mechanisms and Dynamics", - "score": 2.6450925 - }, - { - "topic_name": "Control and Dynamics of Mobile Robots", - "score": 2.5917463 - }, - { - "topic_name": "Robot Manipulation and Learning", - "score": 2.5859585 - }, - { - "topic_name": "Robotic Process Automation Applications", - "score": 1.7370787 - }, - { - "topic_name": "Robotic Path Planning Algorithms", - "score": 1.6302633 + "topic_name": "Radar Systems and Signal Processing", + "score": 4.721418 } ] -} +} \ No newline at end of file diff --git a/service/src/main/inse/institutions/institutions_search_client.py b/service/src/main/inse/institutions/institutions_search_client.py index 23a736af..19f6eb21 100644 --- a/service/src/main/inse/institutions/institutions_search_client.py +++ b/service/src/main/inse/institutions/institutions_search_client.py @@ -1,10 +1,11 @@ import logging -from typing import List, Set +from typing import Any, Dict, List, Literal, Optional, Set import httpx from inse.models.openalex.institution import Institution from inse.exceptions import NotFoundException +from inse.institutions.model import InstitutionPage logger = logging.getLogger(__name__) @@ -50,7 +51,117 @@ class InstitutionsSearchClient: f"Institution with ID '{raw_institution_id}' not found." ) - return Institution.from_dict(hits[0]["_source"]) + institution = self._convert_hit_to_institution(hits[0]) + if not institution: + raise NotFoundException( + f"Institution with ID '{raw_institution_id}' could not be parsed." + ) + + return institution + + async def get_institutions_by_name( + self, + name: str, + page: int = 0, + size: int = 10, + sort_by: Literal[ + "relevance", "name", "works_count", "citations_count" + ] = "relevance", + sorting_direction: Literal["asc", "desc"] = "asc", + ) -> InstitutionPage: + sort_config: list = [] + + if sort_by == "relevance": + sort_config.append( + { + "_score": { + "order": sorting_direction if sorting_direction else "desc" + } + } + ) + elif sort_by == "works_count": + sort_config.append({"works_count": {"order": sorting_direction}}) + elif sort_by == "citations_count": + sort_config.append({"cited_by_count": {"order": sorting_direction}}) + else: + sort_config.append({"display_name.keyword": {"order": sorting_direction}}) + + query: Dict[str, Any] = { + "from": page * size, + "size": size, + "sort": sort_config, + } + + if len(name) > 0: + query["query"] = { + "match_phrase_prefix": { + "display_name": { + "query": name, + "max_expansions": 50, + } + } + } + elif sort_by == "relevance": + query["sort"] = [{"display_name.keyword": {"order": sorting_direction}}] + + logger.debug( + "Searching institutions with name='%s', page=%d, size=%d, sorting_direction='%s', query: %s", + name, + page, + size, + sorting_direction, + query, + ) + async with httpx.AsyncClient() as client: + response = await client.post( + "https://project.nes.uni-due.de/elastic/openalex-institutions/_search", + json=query, + headers=self.headers, + ) + try: + response.raise_for_status() + except httpx.HTTPStatusError as e: + logger.exception( + "Error searching institutions with name='%s': %s, response content: %s", + name, + str(e), + response.text, + ) + return InstitutionPage(elements=[], page=page, size=size, total=0) + return self.response_to_institution_page(response.json(), page, size) + + def response_to_institution_page( + self, response: Dict[str, Any], page: int, size: int + ) -> InstitutionPage: + hits = response.get("hits", {}).get("hits", []) + + ALLOWED_TYPES = { + "education", + "healthcare", + "company", + "archive", + "nonprofit", + "government", + "facility", + "other", + } + + institutions = [] + for hit in hits: + institution = self._convert_hit_to_institution(hit) + if institution: + institutions.append(institution) + + total = response.get("hits", {}).get("total", {}).get("value", 0) + logger.debug( + "Parsed institution page: page=%d, size=%d, total=%d", page, size, total + ) + return InstitutionPage( + elements=institutions, + page=page, + size=size, + total=total, + ) async def get_authors_by_institution_id(self, raw_institution_id: str) -> List[str]: query = { @@ -192,3 +303,46 @@ class InstitutionsSearchClient: ) aliases.append(alias.replace("-", " ")) return aliases + + def _convert_hit_to_institution(self, hit: Dict[str, Any]) -> Optional[Institution]: + """Convert an Elasticsearch hit to an Institution object, applying necessary data cleaning and validation. + + Args: + hit (Dict[str, Any]): The Elasticsearch hit to convert. + + Returns: + Optional[Institution]: The converted Institution object or None if conversion fails. + """ + source = hit.get("_source") + if not source: + return None + + ALLOWED_TYPES = { + "education", + "healthcare", + "company", + "archive", + "nonprofit", + "government", + "facility", + "other", + } + + cleaned_source = {} + for key, value in source.items(): + if isinstance(value, str) and "T" in value: + cleaned_source[key] = value.split("T")[0] + + elif key == "type" and value not in ALLOWED_TYPES: + cleaned_source[key] = "other" + + else: + cleaned_source[key] = value + + try: + return Institution.model_validate(cleaned_source) + except Exception as e: + logger.exception( + "Failed to validate institution hit ID %s: %s", hit.get("_id"), e + ) + return None diff --git a/service/src/main/inse/institutions/model.py b/service/src/main/inse/institutions/model.py new file mode 100644 index 00000000..0eaf3c61 --- /dev/null +++ b/service/src/main/inse/institutions/model.py @@ -0,0 +1,17 @@ +from typing import List + +from pydantic import BaseModel, Field + +from inse.models.openalex.institution import Institution + + +class InstitutionPage(BaseModel): + 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)") + size: int = Field(default=10, description="Number of institutions per page.") + total: int = Field( + default=0, + description="Total number of institutions matching the search criteria.", + ) diff --git a/service/src/main/inse/institutions/service.py b/service/src/main/inse/institutions/router.py similarity index 72% rename from service/src/main/inse/institutions/service.py rename to service/src/main/inse/institutions/router.py index dd13b718..12ea2664 100644 --- a/service/src/main/inse/institutions/service.py +++ b/service/src/main/inse/institutions/router.py @@ -5,7 +5,7 @@ REST API for OpenAlex institutions. """ from functools import lru_cache -from typing import Annotated +from typing import Annotated, Literal from fastapi import APIRouter, Depends, status, Query @@ -14,6 +14,7 @@ from inse.models.openalex.institutions_list_response import InstitutionsListResp from inse.tags import Tags from inse.config import get_settings from inse.models.openalex.institution import Institution +from inse.institutions.model import InstitutionPage from . import logic from inse.institutions.institutions_search_client import InstitutionsSearchClient @@ -35,6 +36,61 @@ def get_institutions_search_client() -> InstitutionsSearchClient: ) +@router.get( + "/search", + summary="Searches for institutions by name.", + description="Searches for institutions by name with pagination.", + operation_id="searchInstitutionsByName", + responses={ + status.HTTP_200_OK: { + "description": "Successful Response", + "model": InstitutionPage, + }, + }, + response_model_exclude_none=True, +) +async def search_institutions_by_name( + client: Annotated[ + InstitutionsSearchClient, Depends(get_institutions_search_client) + ], + name: Annotated[ + str, + Query( + description="Institution name to search for, for example 'University of Duisburg Essen'.", + ), + ] = "", + page: Annotated[ + int, + Query(description="Page number (0-indexed).", ge=0), + ] = 0, + size: Annotated[ + int, + Query(description="Number of institutions per page.", ge=1, le=100), + ] = 10, + sort_by: Annotated[ + Literal["relevance", "name", "works_count", "citations_count"], + Query( + description="Field to sort by, either 'relevance', 'name', 'works_count', or 'citations_count'.", + regex="^(relevance|name|works_count|citations_count)$", + ), + ] = "name", + sorting_direction: Annotated[ + Literal["asc", "desc"], + Query( + description="Sorting direction, either 'asc' or 'desc'.", + regex="^(asc|desc)$", + ), + ] = "asc", +) -> InstitutionPage: + return await client.get_institutions_by_name( + name=name, + page=page, + size=size, + sort_by=sort_by, + sorting_direction=sorting_direction, + ) + + @router.get( "/{id}", summary="Returns a single institution by ID.", diff --git a/service/src/main/inse/main.py b/service/src/main/inse/main.py index 450a4dd9..3b405f50 100644 --- a/service/src/main/inse/main.py +++ b/service/src/main/inse/main.py @@ -11,7 +11,7 @@ from fastapi import FastAPI, Request from fastapi.responses import JSONResponse, RedirectResponse from fastapi.middleware.cors import CORSMiddleware from inse.collaboration_network.router import router as collaboration_network_router -from inse.institutions.service import router as institutions_service_router +from inse.institutions.router import router as institutions_router from inse.topics.service import router as topics_service_router from inse.works.service import router as works_service_router from inse.persons.service import router as persons_service_router @@ -39,7 +39,7 @@ app = FastAPI( servers=settings.servers, ) app.include_router(collaboration_network_router) -app.include_router(institutions_service_router) +app.include_router(institutions_router) app.include_router(topics_service_router) app.include_router(works_service_router) app.include_router(persons_service_router) diff --git a/service/src/main/inse/projects/router.py b/service/src/main/inse/projects/router.py index cf8e2a12..296fd58b 100644 --- a/service/src/main/inse/projects/router.py +++ b/service/src/main/inse/projects/router.py @@ -15,7 +15,7 @@ from inse.projects.projects_search_client import ( from inse.institutions.institutions_search_client import ( InstitutionsSearchClient, ) -from inse.institutions.service import get_institutions_search_client +from inse.institutions.router import get_institutions_search_client logger = logging.getLogger(__name__) diff --git a/ude_person.http b/ude_person.http index e41036ba..b2bd7353 100644 --- a/ude_person.http +++ b/ude_person.http @@ -337,6 +337,11 @@ Content-Type: application/json # } # } +### +GET https://inse.nes.uni-due.de/elastic/projects_dfg_all/_mapping +Authorization: ApiKey bG1NSWc1NEJPZ3FnTGZCZXRSSEg6VnJXRFd5SnpSTTNWc1VPT01FMEhMZw== +Content-Type: application/json + ### GET https://inse.nes.uni-due.de/elastic/projects_dfg_all/_search Authorization: ApiKey bG1NSWc1NEJPZ3FnTGZCZXRSSEg6VnJXRFd5SnpSTTNWc1VPT01FMEhMZw== @@ -688,6 +693,29 @@ GET https://project.nes.uni-due.de/elastic/openalex-authors/_search Authorization: ApiKey am1wWXBaMEJEVWJoZkE5MnBaUlk6TWlvbW1LRlMzNjdDUHgzYmVkUmI5UQ== Content-Type: application/json +{ + "query": { + "bool": { + "must": [ + { + "prefix": { + "display_name.keyword": "Marcus Roth" + } + }, + { + "nested": { + "path": "last_known_institutions", + "query": { + "match": { + "last_known_institutions.display_name": "University of Duisburg-Essen" + } + } + } + } + ] + } + } +} ### @@ -785,6 +813,12 @@ Content-Type: application/json ### +GET https://project.nes.uni-due.de/elastic/openalex-institutions/_mapping +Authorization: ApiKey am1wWXBaMEJEVWJoZkE5MnBaUlk6TWlvbW1LRlMzNjdDUHgzYmVkUmI5UQ== +Content-Type: application/json + +### + GET https://project.nes.uni-due.de/elastic/openalex-awards/_search Authorization: ApiKey am1wWXBaMEJEVWJoZkE5MnBaUlk6TWlvbW1LRlMzNjdDUHgzYmVkUmI5UQ== Content-Type: application/json diff --git a/webapp/src/app/api/.openapi-generator/FILES b/webapp/src/app/api/.openapi-generator/FILES index 8e08ac07..f01b44f9 100644 --- a/webapp/src/app/api/.openapi-generator/FILES +++ b/webapp/src/app/api/.openapi-generator/FILES @@ -67,6 +67,7 @@ model/institutionGeo.ts model/institutionIds.ts model/institutionInformation.ts model/institutionNetworkNode.ts +model/institutionPage.ts model/institutionsListResponse.ts model/item.ts model/itemCreate.ts diff --git a/webapp/src/app/api/README.md b/webapp/src/app/api/README.md index 2df9da7b..dfa7b6e7 100644 --- a/webapp/src/app/api/README.md +++ b/webapp/src/app/api/README.md @@ -46,10 +46,10 @@ npm link In your project: ```console -npm link +npm link ``` -**Note for Windows users:** The Angular CLI has troubles to use linked npm packages. +__Note for Windows users:__ The Angular CLI has troubles to use linked npm packages. Please refer to this issue for a solution / workaround. Published packages are not effected by this issue. @@ -58,22 +58,22 @@ Published packages are not effected by this issue. In your Angular project: ```typescript + import { ApplicationConfig } from '@angular/core'; import { provideHttpClient } from '@angular/common/http'; import { provideApi } from ''; export const appConfig: ApplicationConfig = { - providers: [ - // ... - provideHttpClient(), - provideApi(), - ], + providers: [ + // ... + provideHttpClient(), + provideApi() + ], }; ``` **NOTE** If you're still using `AppModule` and haven't [migrated](https://angular.dev/reference/migrations/standalone) yet, you can still import an Angular module: - ```typescript import { ApiModule } from ''; ``` @@ -86,11 +86,11 @@ import { provideHttpClient } from '@angular/common/http'; import { provideApi } from ''; export const appConfig: ApplicationConfig = { - providers: [ - // ... - provideHttpClient(), - provideApi('http://localhost:9999'), - ], + providers: [ + // ... + provideHttpClient(), + provideApi('http://localhost:9999') + ], }; ``` @@ -101,15 +101,15 @@ import { provideHttpClient } from '@angular/common/http'; import { provideApi } from ''; export const appConfig: ApplicationConfig = { - providers: [ - // ... - provideHttpClient(), - provideApi({ - withCredentials: true, - username: 'user', - password: 'password', - }), - ], + providers: [ + // ... + provideHttpClient(), + provideApi({ + withCredentials: true, + username: 'user', + password: 'password' + }) + ], }; ``` @@ -120,22 +120,21 @@ import { provideHttpClient } from '@angular/common/http'; import { provideApi, Configuration } from ''; export const appConfig: ApplicationConfig = { - providers: [ - // ... - provideHttpClient(), - { - provide: Configuration, - useFactory: (authService: AuthService) => - new Configuration({ - basePath: 'http://localhost:9999', - withCredentials: true, - username: authService.getUsername(), - password: authService.getPassword(), - }), - deps: [AuthService], - multi: false, - }, - ], + providers: [ + // ... + provideHttpClient(), + { + provide: Configuration, + useFactory: (authService: AuthService) => new Configuration({ + basePath: 'http://localhost:9999', + withCredentials: true, + username: authService.getUsername(), + password: authService.getPassword(), + }), + deps: [AuthService], + multi: false + } + ], }; ``` @@ -152,12 +151,12 @@ import { HttpClientModule } from '@angular/common/http'; import { environment } from '../environments/environment'; export const appConfig: ApplicationConfig = { - providers: [ - // ... - provideHttpClient(), - provideUserApi(environment.basePath), - provideAdminApi(environment.basePath), - ], + providers: [ + // ... + provideHttpClient(), + provideUserApi(environment.basePath), + provideAdminApi(environment.basePath), + ], }; ``` @@ -177,8 +176,8 @@ Example value for use in your Configuration-Provider: ```typescript new Configuration({ - encodeParam: (param: Param) => myFancyParamEncoder(param), -}); + encodeParam: (param: Param) => myFancyParamEncoder(param), +}) ``` [parameter-locations-url]: https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#parameter-locations diff --git a/webapp/src/app/api/api.base.service.ts b/webapp/src/app/api/api.base.service.ts index d9ec8f2e..dcf56358 100644 --- a/webapp/src/app/api/api.base.service.ts +++ b/webapp/src/app/api/api.base.service.ts @@ -1,109 +1,83 @@ /** * 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. */ -import { - HttpHeaders, - HttpParams, - HttpParameterCodec, -} from '@angular/common/http'; +import { HttpHeaders, HttpParams, HttpParameterCodec } from '@angular/common/http'; import { CustomHttpParameterCodec } from './encoder'; import { Configuration } from './configuration'; export class BaseService { - protected basePath = 'http://localhost:8000'; - public defaultHeaders = new HttpHeaders(); - public configuration: Configuration; - public encoder: HttpParameterCodec; + protected basePath = 'http://localhost:8000'; + public defaultHeaders = new HttpHeaders(); + public configuration: Configuration; + public encoder: HttpParameterCodec; - constructor(basePath?: string | string[], configuration?: Configuration) { - this.configuration = configuration || new Configuration(); - if (typeof this.configuration.basePath !== 'string') { - const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined; - if (firstBasePath != undefined) { - basePath = firstBasePath; - } + constructor(basePath?: string|string[], configuration?: Configuration) { + this.configuration = configuration || new Configuration(); + if (typeof this.configuration.basePath !== 'string') { + const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined; + if (firstBasePath != undefined) { + basePath = firstBasePath; + } - if (typeof basePath !== 'string') { - basePath = this.basePath; - } - this.configuration.basePath = basePath; - } - this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); - } - - protected canConsumeForm(consumes: string[]): boolean { - return consumes.indexOf('multipart/form-data') !== -1; - } - - protected addToHttpParams( - httpParams: HttpParams, - value: any, - key?: string, - isDeep: boolean = false, - ): HttpParams { - // If the value is an object (but not a Date), recursively add its keys. - if (typeof value === 'object' && !(value instanceof Date)) { - return this.addToHttpParamsRecursive( - httpParams, - value, - isDeep ? key : undefined, - isDeep, - ); - } - return this.addToHttpParamsRecursive(httpParams, value, key); - } - - protected addToHttpParamsRecursive( - httpParams: HttpParams, - value?: any, - key?: string, - isDeep: boolean = false, - ): HttpParams { - if (value === null || value === undefined) { - return httpParams; - } - if (typeof value === 'object') { - // If JSON format is preferred, key must be provided. - if (key != null) { - return isDeep - ? Object.keys(value as Record).reduce( - (hp, k) => hp.append(`${key}[${k}]`, value[k]), - httpParams, - ) - : httpParams.append(key, JSON.stringify(value)); - } - // Otherwise, if it's an array, add each element. - if (Array.isArray(value)) { - value.forEach( - (elem) => - (httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)), - ); - } else if (value instanceof Date) { - if (key != null) { - httpParams = httpParams.append(key, value.toISOString()); - } else { - throw Error('key may not be null if value is Date'); + if (typeof basePath !== 'string') { + basePath = this.basePath; + } + this.configuration.basePath = basePath; } - } else { - Object.keys(value).forEach((k) => { - const paramKey = key ? `${key}.${k}` : k; - httpParams = this.addToHttpParamsRecursive( - httpParams, - value[k], - paramKey, - ); - }); - } - return httpParams; - } else if (key != null) { - return httpParams.append(key, value); + this.encoder = this.configuration.encoder || new CustomHttpParameterCodec(); + } + + protected canConsumeForm(consumes: string[]): boolean { + return consumes.indexOf('multipart/form-data') !== -1; + } + + protected addToHttpParams(httpParams: HttpParams, value: any, key?: string, isDeep: boolean = false): HttpParams { + // If the value is an object (but not a Date), recursively add its keys. + if (typeof value === 'object' && !(value instanceof Date)) { + return this.addToHttpParamsRecursive(httpParams, value, isDeep ? key : undefined, isDeep); + } + return this.addToHttpParamsRecursive(httpParams, value, key); + } + + protected addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string, isDeep: boolean = false): HttpParams { + if (value === null || value === undefined) { + return httpParams; + } + if (typeof value === 'object') { + // If JSON format is preferred, key must be provided. + if (key != null) { + return isDeep + ? Object.keys(value as Record).reduce( + (hp, k) => hp.append(`${key}[${k}]`, value[k]), + httpParams, + ) + : httpParams.append(key, JSON.stringify(value)); + } + // Otherwise, if it's an array, add each element. + if (Array.isArray(value)) { + value.forEach(elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)); + } else if (value instanceof Date) { + if (key != null) { + httpParams = httpParams.append(key, value.toISOString()); + } else { + throw Error("key may not be null if value is Date"); + } + } else { + Object.keys(value).forEach(k => { + const paramKey = key ? `${key}.${k}` : k; + httpParams = this.addToHttpParamsRecursive(httpParams, value[k], paramKey); + }); + } + return httpParams; + } else if (key != null) { + return httpParams.append(key, value); + } + throw Error("key may not be null if value is not object or array"); } - throw Error('key may not be null if value is not object or array'); - } } diff --git a/webapp/src/app/api/api.module.ts b/webapp/src/app/api/api.module.ts index e29250f2..58d341fb 100644 --- a/webapp/src/app/api/api.module.ts +++ b/webapp/src/app/api/api.module.ts @@ -1,42 +1,30 @@ -import { - NgModule, - ModuleWithProviders, - SkipSelf, - Optional, -} from '@angular/core'; +import { NgModule, ModuleWithProviders, SkipSelf, Optional } from '@angular/core'; import { Configuration } from './configuration'; import { HttpClient } from '@angular/common/http'; + @NgModule({ - imports: [], + imports: [], declarations: [], - exports: [], - providers: [], + exports: [], + providers: [] }) export class ApiModule { - public static forRoot( - configurationFactory: () => Configuration, - ): ModuleWithProviders { - return { - ngModule: ApiModule, - providers: [{ provide: Configuration, useFactory: configurationFactory }], - }; - } + public static forRoot(configurationFactory: () => Configuration): ModuleWithProviders { + return { + ngModule: ApiModule, + providers: [ { provide: Configuration, useFactory: configurationFactory } ] + }; + } - constructor( - @Optional() @SkipSelf() parentModule: ApiModule, - @Optional() http: HttpClient, - ) { - if (parentModule) { - throw new Error( - 'ApiModule is already loaded. Import in your base AppModule only.', - ); + constructor( @Optional() @SkipSelf() parentModule: ApiModule, + @Optional() http: HttpClient) { + if (parentModule) { + throw new Error('ApiModule is already loaded. Import in your base AppModule only.'); + } + if (!http) { + throw new Error('You need to import the HttpClientModule in your AppModule! \n' + + 'See also https://github.com/angular/angular/issues/20575'); + } } - if (!http) { - throw new Error( - 'You need to import the HttpClientModule in your AppModule! \n' + - 'See also https://github.com/angular/angular/issues/20575', - ); - } - } } diff --git a/webapp/src/app/api/api/api.ts b/webapp/src/app/api/api/api.ts index 559a00bc..5406f421 100644 --- a/webapp/src/app/api/api/api.ts +++ b/webapp/src/app/api/api/api.ts @@ -18,15 +18,4 @@ export * from './topics.service'; import { TopicsService } from './topics.service'; export * from './works.service'; import { WorksService } from './works.service'; -export const APIS = [ - FundingService, - INSEAccountServiceService, - INSEServiceService, - InstitutionsService, - ItemsService, - PersonNetworkService, - PersonsService, - ProjectsService, - TopicsService, - WorksService, -]; +export const APIS = [FundingService, INSEAccountServiceService, INSEServiceService, InstitutionsService, ItemsService, PersonNetworkService, PersonsService, ProjectsService, TopicsService, WorksService]; diff --git a/webapp/src/app/api/api/funding.service.ts b/webapp/src/app/api/api/funding.service.ts index f1f0a1a7..46772768 100644 --- a/webapp/src/app/api/api/funding.service.ts +++ b/webapp/src/app/api/api/funding.service.ts @@ -1,7 +1,7 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,18 +9,12 @@ */ /* 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'; +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 { FundersByAuthorResponse } from '../model/fundersByAuthorResponse'; @@ -30,246 +24,138 @@ import { HTTPValidationError } from '../model/hTTPValidationError'; import { PublicationsByAuthorResponse } from '../model/publicationsByAuthorResponse'; // @ts-ignore -import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; -import { Configuration } from '../configuration'; +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; import { BaseService } from '../api.base.service'; + + @Injectable({ - providedIn: 'root', + providedIn: 'root' }) export class FundingService extends BaseService { - constructor( - protected httpClient: HttpClient, - @Optional() @Inject(BASE_PATH) basePath: string | string[], - @Optional() configuration?: Configuration, - ) { - super(basePath, configuration); - } - /** - * Get funding organizations by author. - * @endpoint get /api/inse-service/authors/{author_id}/funders - * @param authorId - * @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 getFundersByAuthor( - authorId: string, - observe?: 'body', - reportProgress?: boolean, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable; - public getFundersByAuthor( - authorId: string, - observe?: 'response', - reportProgress?: boolean, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable>; - public getFundersByAuthor( - authorId: string, - observe?: 'events', - reportProgress?: boolean, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable>; - public getFundersByAuthor( - authorId: string, - observe: any = 'body', - reportProgress: boolean = false, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable { - if (authorId === null || authorId === undefined) { - throw new Error( - 'Required parameter authorId was null or undefined when calling getFundersByAuthor.', - ); + constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) { + super(basePath, configuration); } - let localVarHeaders = this.defaultHeaders; + /** + * Get funding organizations by author. + * @endpoint get /api/inse-service/authors/{author_id}/funders + * @param authorId + * @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 getFundersByAuthor(authorId: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; + public getFundersByAuthor(authorId: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public getFundersByAuthor(authorId: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public getFundersByAuthor(authorId: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { + if (authorId === null || authorId === undefined) { + throw new Error('Required parameter authorId was null or undefined when calling getFundersByAuthor.'); + } - const localVarHttpHeaderAcceptSelected: string | undefined = - options?.httpHeaderAccept ?? - this.configuration.selectHeaderAccept(['application/json']); - if (localVarHttpHeaderAcceptSelected !== undefined) { - localVarHeaders = localVarHeaders.set( - 'Accept', - localVarHttpHeaderAcceptSelected, - ); + 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/inse-service/authors/${this.configuration.encodeParam({name: "authorId", value: authorId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/funders`; + 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 + } + ); } - const localVarHttpContext: HttpContext = - options?.context ?? new HttpContext(); + /** + * Get funded publications by author. + * @endpoint get /api/inse-service/authors/{author_id}/publications + * @param authorId + * @param page + * @param pageSize + * @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 getPublicationsByAuthor(authorId: string, page?: number, pageSize?: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; + public getPublicationsByAuthor(authorId: string, page?: number, pageSize?: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public getPublicationsByAuthor(authorId: string, page?: number, pageSize?: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public getPublicationsByAuthor(authorId: string, page?: number, pageSize?: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { + if (authorId === null || authorId === undefined) { + throw new Error('Required parameter authorId was null or undefined when calling getPublicationsByAuthor.'); + } - const localVarTransferCache: boolean = options?.transferCache ?? true; + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + page, 'page'); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + pageSize, 'page_size'); - 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 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/inse-service/authors/${this.configuration.encodeParam({name: "authorId", value: authorId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/publications`; + 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 + } + ); } - let localVarPath = `/api/inse-service/authors/${this.configuration.encodeParam({ name: 'authorId', value: authorId, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/funders`; - 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 funded publications by author. - * @endpoint get /api/inse-service/authors/{author_id}/publications - * @param authorId - * @param page - * @param pageSize - * @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 getPublicationsByAuthor( - authorId: string, - page?: number, - pageSize?: number, - observe?: 'body', - reportProgress?: boolean, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable; - public getPublicationsByAuthor( - authorId: string, - page?: number, - pageSize?: number, - observe?: 'response', - reportProgress?: boolean, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable>; - public getPublicationsByAuthor( - authorId: string, - page?: number, - pageSize?: number, - observe?: 'events', - reportProgress?: boolean, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable>; - public getPublicationsByAuthor( - authorId: string, - page?: number, - pageSize?: number, - observe: any = 'body', - reportProgress: boolean = false, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable { - if (authorId === null || authorId === undefined) { - throw new Error( - 'Required parameter authorId was null or undefined when calling getPublicationsByAuthor.', - ); - } - - let localVarQueryParameters = new HttpParams({ encoder: this.encoder }); - localVarQueryParameters = this.addToHttpParams( - localVarQueryParameters, - page, - 'page', - ); - localVarQueryParameters = this.addToHttpParams( - localVarQueryParameters, - pageSize, - 'page_size', - ); - - 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/inse-service/authors/${this.configuration.encodeParam({ name: 'authorId', value: authorId, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/publications`; - 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/iNSEAccountService.service.ts b/webapp/src/app/api/api/iNSEAccountService.service.ts index 116f1dd4..7b43eaa5 100644 --- a/webapp/src/app/api/api/iNSEAccountService.service.ts +++ b/webapp/src/app/api/api/iNSEAccountService.service.ts @@ -1,7 +1,7 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,18 +9,12 @@ */ /* 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'; +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 { AccessGrant } from '../model/accessGrant'; @@ -30,314 +24,190 @@ import { HTTPValidationError } from '../model/hTTPValidationError'; import { IdentityGrant } from '../model/identityGrant'; // @ts-ignore -import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; -import { Configuration } from '../configuration'; +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; import { BaseService } from '../api.base.service'; + + @Injectable({ - providedIn: 'root', + providedIn: 'root' }) export class INSEAccountServiceService extends BaseService { - constructor( - protected httpClient: HttpClient, - @Optional() @Inject(BASE_PATH) basePath: string | string[], - @Optional() configuration?: Configuration, - ) { - super(basePath, configuration); - } - /** - * Get Access Grant - * @endpoint post /inse-account/auth/access - * @param secret - * @param account - * @param organization - * @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 getAccessGrantInseAccountAuthAccessPost( - secret: string, - account: number, - organization: number, - observe?: 'body', - reportProgress?: boolean, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable; - public getAccessGrantInseAccountAuthAccessPost( - secret: string, - account: number, - organization: number, - observe?: 'response', - reportProgress?: boolean, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable>; - public getAccessGrantInseAccountAuthAccessPost( - secret: string, - account: number, - organization: number, - observe?: 'events', - reportProgress?: boolean, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable>; - public getAccessGrantInseAccountAuthAccessPost( - secret: string, - account: number, - organization: number, - observe: any = 'body', - reportProgress: boolean = false, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable { - if (secret === null || secret === undefined) { - throw new Error( - 'Required parameter secret was null or undefined when calling getAccessGrantInseAccountAuthAccessPost.', - ); - } - if (account === null || account === undefined) { - throw new Error( - 'Required parameter account was null or undefined when calling getAccessGrantInseAccountAuthAccessPost.', - ); - } - if (organization === null || organization === undefined) { - throw new Error( - 'Required parameter organization was null or undefined when calling getAccessGrantInseAccountAuthAccessPost.', - ); + constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) { + super(basePath, configuration); } - let localVarHeaders = this.defaultHeaders; + /** + * Get Access Grant + * @endpoint post /inse-account/auth/access + * @param secret + * @param account + * @param organization + * @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 getAccessGrantInseAccountAuthAccessPost(secret: string, account: number, organization: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; + public getAccessGrantInseAccountAuthAccessPost(secret: string, account: number, organization: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public getAccessGrantInseAccountAuthAccessPost(secret: string, account: number, organization: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public getAccessGrantInseAccountAuthAccessPost(secret: string, account: number, organization: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { + if (secret === null || secret === undefined) { + throw new Error('Required parameter secret was null or undefined when calling getAccessGrantInseAccountAuthAccessPost.'); + } + if (account === null || account === undefined) { + throw new Error('Required parameter account was null or undefined when calling getAccessGrantInseAccountAuthAccessPost.'); + } + if (organization === null || organization === undefined) { + throw new Error('Required parameter organization was null or undefined when calling getAccessGrantInseAccountAuthAccessPost.'); + } - const localVarHttpHeaderAcceptSelected: string | undefined = - options?.httpHeaderAccept ?? - this.configuration.selectHeaderAccept(['application/json']); - if (localVarHttpHeaderAcceptSelected !== undefined) { - localVarHeaders = localVarHeaders.set( - 'Accept', - localVarHttpHeaderAcceptSelected, - ); + 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/x-www-form-urlencoded' + ]; + + const canConsumeForm = this.canConsumeForm(consumes); + + let localVarFormParams: { append(param: string, value: any): any; }; + let localVarUseForm = false; + let localVarConvertFormParamsToString = false; + if (localVarUseForm) { + localVarFormParams = new FormData(); + } else { + localVarFormParams = new HttpParams({encoder: this.encoder}); + } + + if (secret !== undefined) { + localVarFormParams = localVarFormParams.append('secret', secret) as any || localVarFormParams; + } + if (account !== undefined) { + localVarFormParams = localVarFormParams.append('account', account) as any || localVarFormParams; + } + if (organization !== undefined) { + localVarFormParams = localVarFormParams.append('organization', organization) as any || localVarFormParams; + } + + 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 = `/inse-account/auth/access`; + const { basePath, withCredentials } = this.configuration; + return this.httpClient.request('post', `${basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: localVarConvertFormParamsToString ? localVarFormParams.toString() : localVarFormParams, + responseType: responseType_, + ...(withCredentials ? { withCredentials } : {}), + headers: localVarHeaders, + observe: observe, + ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), + reportProgress: reportProgress + } + ); } - const localVarHttpContext: HttpContext = - options?.context ?? new HttpContext(); + /** + * Get Identity Grant + * @endpoint post /inse-account/auth/id + * @param username + * @param password + * @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 getIdentityGrantInseAccountAuthIdPost(username: string, password: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; + public getIdentityGrantInseAccountAuthIdPost(username: string, password: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public getIdentityGrantInseAccountAuthIdPost(username: string, password: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public getIdentityGrantInseAccountAuthIdPost(username: string, password: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { + if (username === null || username === undefined) { + throw new Error('Required parameter username was null or undefined when calling getIdentityGrantInseAccountAuthIdPost.'); + } + if (password === null || password === undefined) { + throw new Error('Required parameter password was null or undefined when calling getIdentityGrantInseAccountAuthIdPost.'); + } - const localVarTransferCache: boolean = options?.transferCache ?? true; + let localVarHeaders = this.defaultHeaders; - // to determine the Content-Type header - const consumes: string[] = ['application/x-www-form-urlencoded']; + const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ + 'application/json' + ]); + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } - const canConsumeForm = this.canConsumeForm(consumes); + const localVarHttpContext: HttpContext = options?.context ?? new HttpContext(); - let localVarFormParams: { append(param: string, value: any): any }; - let localVarUseForm = false; - let localVarConvertFormParamsToString = false; - if (localVarUseForm) { - localVarFormParams = new FormData(); - } else { - localVarFormParams = new HttpParams({ encoder: this.encoder }); + const localVarTransferCache: boolean = options?.transferCache ?? true; + + // to determine the Content-Type header + const consumes: string[] = [ + 'application/x-www-form-urlencoded' + ]; + + const canConsumeForm = this.canConsumeForm(consumes); + + let localVarFormParams: { append(param: string, value: any): any; }; + let localVarUseForm = false; + let localVarConvertFormParamsToString = false; + if (localVarUseForm) { + localVarFormParams = new FormData(); + } else { + localVarFormParams = new HttpParams({encoder: this.encoder}); + } + + if (username !== undefined) { + localVarFormParams = localVarFormParams.append('username', username) as any || localVarFormParams; + } + if (password !== undefined) { + localVarFormParams = localVarFormParams.append('password', password) as any || localVarFormParams; + } + + 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 = `/inse-account/auth/id`; + const { basePath, withCredentials } = this.configuration; + return this.httpClient.request('post', `${basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: localVarConvertFormParamsToString ? localVarFormParams.toString() : localVarFormParams, + responseType: responseType_, + ...(withCredentials ? { withCredentials } : {}), + headers: localVarHeaders, + observe: observe, + ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), + reportProgress: reportProgress + } + ); } - if (secret !== undefined) { - localVarFormParams = - (localVarFormParams.append('secret', secret) as any) || - localVarFormParams; - } - if (account !== undefined) { - localVarFormParams = - (localVarFormParams.append('account', account) as any) || - localVarFormParams; - } - if (organization !== undefined) { - localVarFormParams = - (localVarFormParams.append('organization', organization) as any) || - localVarFormParams; - } - - 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 = `/inse-account/auth/access`; - const { basePath, withCredentials } = this.configuration; - return this.httpClient.request( - 'post', - `${basePath}${localVarPath}`, - { - context: localVarHttpContext, - body: localVarConvertFormParamsToString - ? localVarFormParams.toString() - : localVarFormParams, - responseType: responseType_, - ...(withCredentials ? { withCredentials } : {}), - headers: localVarHeaders, - observe: observe, - ...(localVarTransferCache !== undefined - ? { transferCache: localVarTransferCache } - : {}), - reportProgress: reportProgress, - }, - ); - } - - /** - * Get Identity Grant - * @endpoint post /inse-account/auth/id - * @param username - * @param password - * @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 getIdentityGrantInseAccountAuthIdPost( - username: string, - password: string, - observe?: 'body', - reportProgress?: boolean, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable; - public getIdentityGrantInseAccountAuthIdPost( - username: string, - password: string, - observe?: 'response', - reportProgress?: boolean, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable>; - public getIdentityGrantInseAccountAuthIdPost( - username: string, - password: string, - observe?: 'events', - reportProgress?: boolean, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable>; - public getIdentityGrantInseAccountAuthIdPost( - username: string, - password: string, - observe: any = 'body', - reportProgress: boolean = false, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable { - if (username === null || username === undefined) { - throw new Error( - 'Required parameter username was null or undefined when calling getIdentityGrantInseAccountAuthIdPost.', - ); - } - if (password === null || password === undefined) { - throw new Error( - 'Required parameter password was null or undefined when calling getIdentityGrantInseAccountAuthIdPost.', - ); - } - - 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/x-www-form-urlencoded']; - - const canConsumeForm = this.canConsumeForm(consumes); - - let localVarFormParams: { append(param: string, value: any): any }; - let localVarUseForm = false; - let localVarConvertFormParamsToString = false; - if (localVarUseForm) { - localVarFormParams = new FormData(); - } else { - localVarFormParams = new HttpParams({ encoder: this.encoder }); - } - - if (username !== undefined) { - localVarFormParams = - (localVarFormParams.append('username', username) as any) || - localVarFormParams; - } - if (password !== undefined) { - localVarFormParams = - (localVarFormParams.append('password', password) as any) || - localVarFormParams; - } - - 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 = `/inse-account/auth/id`; - const { basePath, withCredentials } = this.configuration; - return this.httpClient.request( - 'post', - `${basePath}${localVarPath}`, - { - context: localVarHttpContext, - body: localVarConvertFormParamsToString - ? localVarFormParams.toString() - : localVarFormParams, - responseType: responseType_, - ...(withCredentials ? { withCredentials } : {}), - headers: localVarHeaders, - observe: observe, - ...(localVarTransferCache !== undefined - ? { transferCache: localVarTransferCache } - : {}), - reportProgress: reportProgress, - }, - ); - } } diff --git a/webapp/src/app/api/api/iNSEService.service.ts b/webapp/src/app/api/api/iNSEService.service.ts index 8788adee..cf95d68e 100644 --- a/webapp/src/app/api/api/iNSEService.service.ts +++ b/webapp/src/app/api/api/iNSEService.service.ts @@ -1,7 +1,7 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,18 +9,12 @@ */ /* 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'; +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 { HTTPValidationError } from '../model/hTTPValidationError'; @@ -32,922 +26,513 @@ import { ItemCreate } from '../model/itemCreate'; import { ItemPage } from '../model/itemPage'; // @ts-ignore -import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; -import { Configuration } from '../configuration'; +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; import { BaseService } from '../api.base.service'; + + @Injectable({ - providedIn: 'root', + providedIn: 'root' }) export class INSEServiceService extends BaseService { - constructor( - protected httpClient: HttpClient, - @Optional() @Inject(BASE_PATH) basePath: string | string[], - @Optional() configuration?: Configuration, - ) { - super(basePath, configuration); - } - /** - * Adds a new item. - * @endpoint post /api/inse-service/items - * @param itemCreate - * @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 addItem( - itemCreate: ItemCreate, - observe?: 'body', - reportProgress?: boolean, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable; - public addItem( - itemCreate: ItemCreate, - observe?: 'response', - reportProgress?: boolean, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable>; - public addItem( - itemCreate: ItemCreate, - observe?: 'events', - reportProgress?: boolean, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable>; - public addItem( - itemCreate: ItemCreate, - observe: any = 'body', - reportProgress: boolean = false, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable { - if (itemCreate === null || itemCreate === undefined) { - throw new Error( - 'Required parameter itemCreate was null or undefined when calling addItem.', - ); + constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) { + super(basePath, configuration); } - let localVarHeaders = this.defaultHeaders; + /** + * Adds a new item. + * @endpoint post /api/inse-service/items + * @param itemCreate + * @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 addItem(itemCreate: ItemCreate, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; + public addItem(itemCreate: ItemCreate, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public addItem(itemCreate: ItemCreate, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public addItem(itemCreate: ItemCreate, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { + if (itemCreate === null || itemCreate === undefined) { + throw new Error('Required parameter itemCreate was null or undefined when calling addItem.'); + } - // authentication (bearer) required - localVarHeaders = this.configuration.addCredentialToHeaders( - 'bearer', - 'Authorization', - localVarHeaders, - 'Bearer ', - ); + let localVarHeaders = this.defaultHeaders; - const localVarHttpHeaderAcceptSelected: string | undefined = - options?.httpHeaderAccept ?? - this.configuration.selectHeaderAccept(['application/json']); - if (localVarHttpHeaderAcceptSelected !== undefined) { - localVarHeaders = localVarHeaders.set( - 'Accept', - localVarHttpHeaderAcceptSelected, - ); - } + // authentication (bearer) required + localVarHeaders = this.configuration.addCredentialToHeaders('bearer', 'Authorization', localVarHeaders, 'Bearer '); - const localVarHttpContext: HttpContext = - options?.context ?? new HttpContext(); + const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ + 'application/json' + ]); + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } - const localVarTransferCache: boolean = options?.transferCache ?? true; + const localVarHttpContext: HttpContext = options?.context ?? new HttpContext(); - // 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, - ); - } + 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/inse-service/items`; - const { basePath, withCredentials } = this.configuration; - return this.httpClient.request('post', `${basePath}${localVarPath}`, { - context: localVarHttpContext, - body: itemCreate, - responseType: responseType_, - ...(withCredentials ? { withCredentials } : {}), - headers: localVarHeaders, - observe: observe, - ...(localVarTransferCache !== undefined - ? { transferCache: localVarTransferCache } - : {}), - reportProgress: reportProgress, - }); - } + // 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); + } - /** - * Builds the topic hierarchy cache. - * @endpoint get /api/inse-service/topics/cache - * @param pageSize Page size for each search page. - * @param saveJson Persist cache JSON to data folder. - * @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 buildTopicCache( - pageSize?: number, - saveJson?: boolean, - observe?: 'body', - reportProgress?: boolean, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable; - public buildTopicCache( - pageSize?: number, - saveJson?: boolean, - observe?: 'response', - reportProgress?: boolean, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable>; - public buildTopicCache( - pageSize?: number, - saveJson?: boolean, - observe?: 'events', - reportProgress?: boolean, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable>; - public buildTopicCache( - pageSize?: number, - saveJson?: boolean, - 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, - pageSize, - 'page_size', - ); - localVarQueryParameters = this.addToHttpParams( - localVarQueryParameters, - saveJson, - 'save_json', - ); + 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 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/inse-service/topics/cache`; - 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, - }, - ); - } - - /** - * Counts topic hierarchy occurrences from cache. - * @endpoint get /api/inse-service/topics/count - * @param topic Topic names (repeat parameter). - * @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 countTopicHierarchy( - topic: Array, - observe?: 'body', - reportProgress?: boolean, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable; - public countTopicHierarchy( - topic: Array, - observe?: 'response', - reportProgress?: boolean, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable>; - public countTopicHierarchy( - topic: Array, - observe?: 'events', - reportProgress?: boolean, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable>; - public countTopicHierarchy( - topic: Array, - observe: any = 'body', - reportProgress: boolean = false, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable { - if (topic === null || topic === undefined) { - throw new Error( - 'Required parameter topic was null or undefined when calling countTopicHierarchy.', - ); - } - - let localVarQueryParameters = new HttpParams({ encoder: this.encoder }); - if (topic) { - topic.forEach((element) => { - localVarQueryParameters = this.addToHttpParams( - localVarQueryParameters, - element, - 'topic', + let localVarPath = `/api/inse-service/items`; + const { basePath, withCredentials } = this.configuration; + return this.httpClient.request('post', `${basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: itemCreate, + responseType: responseType_, + ...(withCredentials ? { withCredentials } : {}), + headers: localVarHeaders, + observe: observe, + ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), + reportProgress: reportProgress + } ); - }); } - let localVarHeaders = this.defaultHeaders; + /** + * Builds the topic hierarchy cache. + * @endpoint get /api/inse-service/topics/cache + * @param pageSize Page size for each search page. + * @param saveJson Persist cache JSON to data folder. + * @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 buildTopicCache(pageSize?: number, saveJson?: boolean, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; + public buildTopicCache(pageSize?: number, saveJson?: boolean, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public buildTopicCache(pageSize?: number, saveJson?: boolean, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public buildTopicCache(pageSize?: number, saveJson?: boolean, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { - const localVarHttpHeaderAcceptSelected: string | undefined = - options?.httpHeaderAccept ?? - this.configuration.selectHeaderAccept(['application/json']); - if (localVarHttpHeaderAcceptSelected !== undefined) { - localVarHeaders = localVarHeaders.set( - 'Accept', - localVarHttpHeaderAcceptSelected, - ); + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + pageSize, 'page_size'); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + saveJson, 'save_json'); + + 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/inse-service/topics/cache`; + 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 + } + ); } - const localVarHttpContext: HttpContext = - options?.context ?? new HttpContext(); + /** + * Counts topic hierarchy occurrences from cache. + * @endpoint get /api/inse-service/topics/count + * @param topic Topic names (repeat parameter). + * @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 countTopicHierarchy(topic: Array, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; + public countTopicHierarchy(topic: Array, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public countTopicHierarchy(topic: Array, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public countTopicHierarchy(topic: Array, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { + if (topic === null || topic === undefined) { + throw new Error('Required parameter topic was null or undefined when calling countTopicHierarchy.'); + } - const localVarTransferCache: boolean = options?.transferCache ?? true; + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (topic) { + topic.forEach((element) => { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + element, 'topic'); + }) + } - 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 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/inse-service/topics/count`; + 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 + } + ); } - let localVarPath = `/api/inse-service/topics/count`; - 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, - }, - ); - } + /** + * Deletes the item with the id. + * @endpoint delete /api/inse-service/items/{id} + * @param id The item id. + * @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 deleteItem(id: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; + public deleteItem(id: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public deleteItem(id: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public deleteItem(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { + if (id === null || id === undefined) { + throw new Error('Required parameter id was null or undefined when calling deleteItem.'); + } - /** - * Deletes the item with the id. - * @endpoint delete /api/inse-service/items/{id} - * @param id The item id. - * @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 deleteItem( - id: number, - observe?: 'body', - reportProgress?: boolean, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable; - public deleteItem( - id: number, - observe?: 'response', - reportProgress?: boolean, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable>; - public deleteItem( - id: number, - observe?: 'events', - reportProgress?: boolean, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable>; - public deleteItem( - id: number, - observe: any = 'body', - reportProgress: boolean = false, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable { - if (id === null || id === undefined) { - throw new Error( - 'Required parameter id was null or undefined when calling deleteItem.', - ); + let localVarHeaders = this.defaultHeaders; + + // authentication (bearer) required + localVarHeaders = this.configuration.addCredentialToHeaders('bearer', '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/inse-service/items/${this.configuration.encodeParam({name: "id", value: id, 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 + } + ); } - let localVarHeaders = this.defaultHeaders; + /** + * Returns the item with the id. + * @endpoint get /api/inse-service/items/{id} + * @param id The item id. + * @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 getItem(id: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; + public getItem(id: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public getItem(id: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public getItem(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { + if (id === null || id === undefined) { + throw new Error('Required parameter id was null or undefined when calling getItem.'); + } - // authentication (bearer) required - localVarHeaders = this.configuration.addCredentialToHeaders( - 'bearer', - 'Authorization', - localVarHeaders, - 'Bearer ', - ); + let localVarHeaders = this.defaultHeaders; - const localVarHttpHeaderAcceptSelected: string | undefined = - options?.httpHeaderAccept ?? - this.configuration.selectHeaderAccept(['application/json']); - if (localVarHttpHeaderAcceptSelected !== undefined) { - localVarHeaders = localVarHeaders.set( - 'Accept', - localVarHttpHeaderAcceptSelected, - ); + // authentication (bearer) required + localVarHeaders = this.configuration.addCredentialToHeaders('bearer', '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/inse-service/items/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", 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 + } + ); } - const localVarHttpContext: HttpContext = - options?.context ?? new HttpContext(); + /** + * Returns a page of items. + * @endpoint get /api/inse-service/items + * @param pageOffset The page offset. + * @param pageSize The page size. + * @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 getItems(pageOffset?: number, pageSize?: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; + public getItems(pageOffset?: number, pageSize?: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public getItems(pageOffset?: number, pageSize?: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public getItems(pageOffset?: number, pageSize?: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { - const localVarTransferCache: boolean = options?.transferCache ?? true; + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + pageOffset, 'pageOffset'); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + pageSize, 'pageSize'); - 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 localVarHeaders = this.defaultHeaders; + + // authentication (bearer) required + localVarHeaders = this.configuration.addCredentialToHeaders('bearer', '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/inse-service/items`; + 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 + } + ); } - let localVarPath = `/api/inse-service/items/${this.configuration.encodeParam({ name: 'id', value: id, 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, - }, - ); - } + /** + * Returns the nested topic hierarchy (Domains -> Fields -> Subfields -> Topics). + * @endpoint get /api/inse-service/topics/hierarchy + * @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 getTopicHierarchy(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; + public getTopicHierarchy(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public getTopicHierarchy(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public getTopicHierarchy(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { - /** - * Returns the item with the id. - * @endpoint get /api/inse-service/items/{id} - * @param id The item id. - * @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 getItem( - id: number, - observe?: 'body', - reportProgress?: boolean, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable; - public getItem( - id: number, - observe?: 'response', - reportProgress?: boolean, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable>; - public getItem( - id: number, - observe?: 'events', - reportProgress?: boolean, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable>; - public getItem( - id: number, - observe: any = 'body', - reportProgress: boolean = false, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable { - if (id === null || id === undefined) { - throw new Error( - 'Required parameter id was null or undefined when calling getItem.', - ); + 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/inse-service/topics/hierarchy`; + 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 + } + ); } - let localVarHeaders = this.defaultHeaders; + /** + * Updates the item with the id. + * @endpoint put /api/inse-service/items/{id} + * @param id The item id. + * @param itemCreate + * @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 updateItem(id: number, itemCreate: ItemCreate, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; + public updateItem(id: number, itemCreate: ItemCreate, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public updateItem(id: number, itemCreate: ItemCreate, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public updateItem(id: number, itemCreate: ItemCreate, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { + if (id === null || id === undefined) { + throw new Error('Required parameter id was null or undefined when calling updateItem.'); + } + if (itemCreate === null || itemCreate === undefined) { + throw new Error('Required parameter itemCreate was null or undefined when calling updateItem.'); + } - // authentication (bearer) required - localVarHeaders = this.configuration.addCredentialToHeaders( - 'bearer', - 'Authorization', - localVarHeaders, - 'Bearer ', - ); + let localVarHeaders = this.defaultHeaders; - const localVarHttpHeaderAcceptSelected: string | undefined = - options?.httpHeaderAccept ?? - this.configuration.selectHeaderAccept(['application/json']); - if (localVarHttpHeaderAcceptSelected !== undefined) { - localVarHeaders = localVarHeaders.set( - 'Accept', - localVarHttpHeaderAcceptSelected, - ); + // authentication (bearer) required + localVarHeaders = this.configuration.addCredentialToHeaders('bearer', '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/inse-service/items/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: undefined})}`; + const { basePath, withCredentials } = this.configuration; + return this.httpClient.request('put', `${basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: itemCreate, + responseType: responseType_, + ...(withCredentials ? { withCredentials } : {}), + headers: localVarHeaders, + observe: observe, + ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), + reportProgress: reportProgress + } + ); } - 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/inse-service/items/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'number', 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 page of items. - * @endpoint get /api/inse-service/items - * @param pageOffset The page offset. - * @param pageSize The page size. - * @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 getItems( - pageOffset?: number, - pageSize?: number, - observe?: 'body', - reportProgress?: boolean, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable; - public getItems( - pageOffset?: number, - pageSize?: number, - observe?: 'response', - reportProgress?: boolean, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable>; - public getItems( - pageOffset?: number, - pageSize?: number, - observe?: 'events', - reportProgress?: boolean, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable>; - public getItems( - pageOffset?: number, - pageSize?: number, - 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, - pageOffset, - 'pageOffset', - ); - localVarQueryParameters = this.addToHttpParams( - localVarQueryParameters, - pageSize, - 'pageSize', - ); - - let localVarHeaders = this.defaultHeaders; - - // authentication (bearer) required - localVarHeaders = this.configuration.addCredentialToHeaders( - 'bearer', - '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/inse-service/items`; - 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 the nested topic hierarchy (Domains -> Fields -> Subfields -> Topics). - * @endpoint get /api/inse-service/topics/hierarchy - * @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 getTopicHierarchy( - observe?: 'body', - reportProgress?: boolean, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable; - public getTopicHierarchy( - observe?: 'response', - reportProgress?: boolean, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable>; - public getTopicHierarchy( - observe?: 'events', - reportProgress?: boolean, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable>; - public getTopicHierarchy( - observe: any = 'body', - reportProgress: boolean = false, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable { - 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/inse-service/topics/hierarchy`; - 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, - }, - ); - } - - /** - * Updates the item with the id. - * @endpoint put /api/inse-service/items/{id} - * @param id The item id. - * @param itemCreate - * @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 updateItem( - id: number, - itemCreate: ItemCreate, - observe?: 'body', - reportProgress?: boolean, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable; - public updateItem( - id: number, - itemCreate: ItemCreate, - observe?: 'response', - reportProgress?: boolean, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable>; - public updateItem( - id: number, - itemCreate: ItemCreate, - observe?: 'events', - reportProgress?: boolean, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable>; - public updateItem( - id: number, - itemCreate: ItemCreate, - observe: any = 'body', - reportProgress: boolean = false, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable { - if (id === null || id === undefined) { - throw new Error( - 'Required parameter id was null or undefined when calling updateItem.', - ); - } - if (itemCreate === null || itemCreate === undefined) { - throw new Error( - 'Required parameter itemCreate was null or undefined when calling updateItem.', - ); - } - - let localVarHeaders = this.defaultHeaders; - - // authentication (bearer) required - localVarHeaders = this.configuration.addCredentialToHeaders( - 'bearer', - '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/inse-service/items/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'number', dataFormat: undefined })}`; - const { basePath, withCredentials } = this.configuration; - return this.httpClient.request('put', `${basePath}${localVarPath}`, { - context: localVarHttpContext, - body: itemCreate, - responseType: responseType_, - ...(withCredentials ? { withCredentials } : {}), - headers: localVarHeaders, - observe: observe, - ...(localVarTransferCache !== undefined - ? { transferCache: localVarTransferCache } - : {}), - reportProgress: reportProgress, - }); - } } diff --git a/webapp/src/app/api/api/institutions.service.ts b/webapp/src/app/api/api/institutions.service.ts index e365240f..432bd718 100644 --- a/webapp/src/app/api/api/institutions.service.ts +++ b/webapp/src/app/api/api/institutions.service.ts @@ -1,7 +1,7 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,18 +9,12 @@ */ /* 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'; +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 { AutocompleteResponse } from '../model/autocompleteResponse'; @@ -29,449 +23,300 @@ import { HTTPValidationError } from '../model/hTTPValidationError'; // @ts-ignore import { Institution } from '../model/institution'; // @ts-ignore +import { InstitutionPage } from '../model/institutionPage'; +// @ts-ignore import { InstitutionsListResponse } from '../model/institutionsListResponse'; // @ts-ignore -import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; -import { Configuration } from '../configuration'; +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; import { BaseService } from '../api.base.service'; + + @Injectable({ - providedIn: 'root', + providedIn: 'root' }) export class InstitutionsService extends BaseService { - constructor( - protected httpClient: HttpClient, - @Optional() @Inject(BASE_PATH) basePath: string | string[], - @Optional() configuration?: Configuration, - ) { - super(basePath, configuration); - } - /** - * Returns institution options for autocomplete inputs. - * @endpoint get /api/institutions/autocomplete - * @param query Institution search text, for example \'Duisburg Essen\'. - * @param countryCode Optional ISO country code filter. - * @param type Optional institution type filter. - * @param limit Maximum number of autocomplete options. - * @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 autocompleteInstitutions( - query: string, - countryCode?: string, - type?: string, - limit?: number, - observe?: 'body', - reportProgress?: boolean, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable; - public autocompleteInstitutions( - query: string, - countryCode?: string, - type?: string, - limit?: number, - observe?: 'response', - reportProgress?: boolean, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable>; - public autocompleteInstitutions( - query: string, - countryCode?: string, - type?: string, - limit?: number, - observe?: 'events', - reportProgress?: boolean, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable>; - public autocompleteInstitutions( - query: string, - countryCode?: string, - type?: string, - limit?: number, - observe: any = 'body', - reportProgress: boolean = false, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable { - if (query === null || query === undefined) { - throw new Error( - 'Required parameter query was null or undefined when calling autocompleteInstitutions.', - ); + constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) { + super(basePath, configuration); } - let localVarQueryParameters = new HttpParams({ encoder: this.encoder }); - localVarQueryParameters = this.addToHttpParams( - localVarQueryParameters, - query, - 'query', - ); - localVarQueryParameters = this.addToHttpParams( - localVarQueryParameters, - countryCode, - 'countryCode', - ); - localVarQueryParameters = this.addToHttpParams( - localVarQueryParameters, - type, - 'type', - ); - localVarQueryParameters = this.addToHttpParams( - localVarQueryParameters, - limit, - 'limit', - ); + /** + * Returns institution options for autocomplete inputs. + * @endpoint get /api/institutions/autocomplete + * @param query Institution search text, for example \'Duisburg Essen\'. + * @param countryCode Optional ISO country code filter. + * @param type Optional institution type filter. + * @param limit Maximum number of autocomplete options. + * @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 autocompleteInstitutions(query: string, countryCode?: string, type?: string, limit?: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; + public autocompleteInstitutions(query: string, countryCode?: string, type?: string, limit?: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public autocompleteInstitutions(query: string, countryCode?: string, type?: string, limit?: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public autocompleteInstitutions(query: string, countryCode?: string, type?: string, limit?: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { + if (query === null || query === undefined) { + throw new Error('Required parameter query was null or undefined when calling autocompleteInstitutions.'); + } - let localVarHeaders = this.defaultHeaders; + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + query, 'query'); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + countryCode, 'countryCode'); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + type, 'type'); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + limit, 'limit'); - const localVarHttpHeaderAcceptSelected: string | undefined = - options?.httpHeaderAccept ?? - this.configuration.selectHeaderAccept(['application/json']); - if (localVarHttpHeaderAcceptSelected !== undefined) { - localVarHeaders = localVarHeaders.set( - 'Accept', - localVarHttpHeaderAcceptSelected, - ); + 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/autocomplete`; + 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 + } + ); } - const localVarHttpContext: HttpContext = - options?.context ?? new HttpContext(); + /** + * Returns a single institution by ID. + * Returns a single institution by its OpenAlex ID. + * @endpoint get /api/institutions/{id} + * @param id + * @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 getInstitutionById(id: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; + public getInstitutionById(id: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public getInstitutionById(id: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public getInstitutionById(id: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { + if (id === null || id === undefined) { + throw new Error('Required parameter id was null or undefined when calling getInstitutionById.'); + } - const localVarTransferCache: boolean = options?.transferCache ?? true; + let localVarHeaders = this.defaultHeaders; - 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'; - } + 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/${this.configuration.encodeParam({name: "id", value: id, 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 + } + ); } - let localVarPath = `/api/institutions/autocomplete`; - 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 OpenAlex institutions. + * @endpoint get /api/institutions + * @param search Full-text search, for example \'Duisburg Essen\'. + * @param filter OpenAlex filter, for example \'country_code:DE,type:education\'. + * @param sort Sort field, for example \'works_count:desc\'. + * @param groupBy OpenAlex group_by field, for example \'country_code\'. + * @param perPage Results per page. + * @param page Page number. Use cursor for deep pagination. + * @param cursor Cursor pagination token. Use \'*\' to start. + * @param sample Random sample size. Cannot be combined with sort or page. + * @param select Comma-separated fields to return. + * @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 listInstitutions(search?: string, filter?: string, sort?: string, groupBy?: string, perPage?: number, page?: number, cursor?: string, sample?: number, select?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; + public listInstitutions(search?: string, filter?: string, sort?: string, groupBy?: string, perPage?: number, page?: number, cursor?: string, sample?: number, select?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public listInstitutions(search?: string, filter?: string, sort?: string, groupBy?: string, perPage?: number, page?: number, cursor?: string, sample?: number, select?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public listInstitutions(search?: string, filter?: string, sort?: string, groupBy?: string, perPage?: number, page?: number, cursor?: string, sample?: number, select?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { - /** - * Returns a single institution by ID. - * Returns a single institution by its OpenAlex ID. - * @endpoint get /api/institutions/{id} - * @param id - * @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 getInstitutionById( - id: string, - observe?: 'body', - reportProgress?: boolean, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable; - public getInstitutionById( - id: string, - observe?: 'response', - reportProgress?: boolean, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable>; - public getInstitutionById( - id: string, - observe?: 'events', - reportProgress?: boolean, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable>; - public getInstitutionById( - id: string, - observe: any = 'body', - reportProgress: boolean = false, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable { - if (id === null || id === undefined) { - throw new Error( - 'Required parameter id was null or undefined when calling getInstitutionById.', - ); + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + search, 'search'); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + filter, 'filter'); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + sort, 'sort'); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + groupBy, 'group_by'); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + perPage, 'per_page'); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + page, 'page'); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + cursor, 'cursor'); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + sample, 'sample'); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + select, 'select'); + + 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`; + 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 + } + ); } - let localVarHeaders = this.defaultHeaders; + /** + * Searches for institutions by name. + * Searches for institutions by name with pagination. + * @endpoint get /api/institutions/search + * @param name Institution name to search for, for example \'University of Duisburg Essen\'. + * @param page Page number (0-indexed). + * @param size Number of institutions per page. + * @param sortBy Field to sort by, either \'relevance\', \'name\', \'works_count\', or \'citations_count\'. + * @param sortingDirection Sorting direction, either \'asc\' or \'desc\'. + * @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 searchInstitutionsByName(name?: string, page?: number, size?: number, sortBy?: 'relevance' | 'name' | 'works_count' | 'citations_count', sortingDirection?: 'asc' | 'desc', observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; + public searchInstitutionsByName(name?: string, page?: number, size?: number, sortBy?: 'relevance' | 'name' | 'works_count' | 'citations_count', sortingDirection?: 'asc' | 'desc', observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public searchInstitutionsByName(name?: string, page?: number, size?: number, sortBy?: 'relevance' | 'name' | 'works_count' | 'citations_count', sortingDirection?: 'asc' | 'desc', observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public searchInstitutionsByName(name?: string, page?: number, size?: number, sortBy?: 'relevance' | 'name' | 'works_count' | 'citations_count', sortingDirection?: 'asc' | 'desc', observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { - const localVarHttpHeaderAcceptSelected: string | undefined = - options?.httpHeaderAccept ?? - this.configuration.selectHeaderAccept(['application/json']); - if (localVarHttpHeaderAcceptSelected !== undefined) { - localVarHeaders = localVarHeaders.set( - 'Accept', - localVarHttpHeaderAcceptSelected, - ); + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + name, 'name'); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + page, 'page'); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + size, 'size'); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + sortBy, 'sort_by'); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + sortingDirection, 'sorting_direction'); + + 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/search`; + 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 + } + ); } - 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/${this.configuration.encodeParam({ name: 'id', value: id, 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 OpenAlex institutions. - * @endpoint get /api/institutions - * @param search Full-text search, for example \'Duisburg Essen\'. - * @param filter OpenAlex filter, for example \'country_code:DE,type:education\'. - * @param sort Sort field, for example \'works_count:desc\'. - * @param groupBy OpenAlex group_by field, for example \'country_code\'. - * @param perPage Results per page. - * @param page Page number. Use cursor for deep pagination. - * @param cursor Cursor pagination token. Use \'*\' to start. - * @param sample Random sample size. Cannot be combined with sort or page. - * @param select Comma-separated fields to return. - * @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 listInstitutions( - search?: string, - filter?: string, - sort?: string, - groupBy?: string, - perPage?: number, - page?: number, - cursor?: string, - sample?: number, - select?: string, - observe?: 'body', - reportProgress?: boolean, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable; - public listInstitutions( - search?: string, - filter?: string, - sort?: string, - groupBy?: string, - perPage?: number, - page?: number, - cursor?: string, - sample?: number, - select?: string, - observe?: 'response', - reportProgress?: boolean, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable>; - public listInstitutions( - search?: string, - filter?: string, - sort?: string, - groupBy?: string, - perPage?: number, - page?: number, - cursor?: string, - sample?: number, - select?: string, - observe?: 'events', - reportProgress?: boolean, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable>; - public listInstitutions( - search?: string, - filter?: string, - sort?: string, - groupBy?: string, - perPage?: number, - page?: number, - cursor?: string, - sample?: number, - select?: 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, - search, - 'search', - ); - localVarQueryParameters = this.addToHttpParams( - localVarQueryParameters, - filter, - 'filter', - ); - localVarQueryParameters = this.addToHttpParams( - localVarQueryParameters, - sort, - 'sort', - ); - localVarQueryParameters = this.addToHttpParams( - localVarQueryParameters, - groupBy, - 'group_by', - ); - localVarQueryParameters = this.addToHttpParams( - localVarQueryParameters, - perPage, - 'per_page', - ); - localVarQueryParameters = this.addToHttpParams( - localVarQueryParameters, - page, - 'page', - ); - localVarQueryParameters = this.addToHttpParams( - localVarQueryParameters, - cursor, - 'cursor', - ); - localVarQueryParameters = this.addToHttpParams( - localVarQueryParameters, - sample, - 'sample', - ); - localVarQueryParameters = this.addToHttpParams( - localVarQueryParameters, - select, - 'select', - ); - - 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`; - 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/items.service.ts b/webapp/src/app/api/api/items.service.ts index bc3c2293..69cd8e54 100644 --- a/webapp/src/app/api/api/items.service.ts +++ b/webapp/src/app/api/api/items.service.ts @@ -1,7 +1,7 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,18 +9,12 @@ */ /* 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'; +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 { HTTPValidationError } from '../model/hTTPValidationError'; @@ -32,603 +26,338 @@ import { ItemCreate } from '../model/itemCreate'; import { ItemPage } from '../model/itemPage'; // @ts-ignore -import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; -import { Configuration } from '../configuration'; +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; import { BaseService } from '../api.base.service'; + + @Injectable({ - providedIn: 'root', + providedIn: 'root' }) export class ItemsService extends BaseService { - constructor( - protected httpClient: HttpClient, - @Optional() @Inject(BASE_PATH) basePath: string | string[], - @Optional() configuration?: Configuration, - ) { - super(basePath, configuration); - } - /** - * Adds a new item. - * @endpoint post /api/inse-service/items - * @param itemCreate - * @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 addItem( - itemCreate: ItemCreate, - observe?: 'body', - reportProgress?: boolean, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable; - public addItem( - itemCreate: ItemCreate, - observe?: 'response', - reportProgress?: boolean, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable>; - public addItem( - itemCreate: ItemCreate, - observe?: 'events', - reportProgress?: boolean, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable>; - public addItem( - itemCreate: ItemCreate, - observe: any = 'body', - reportProgress: boolean = false, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable { - if (itemCreate === null || itemCreate === undefined) { - throw new Error( - 'Required parameter itemCreate was null or undefined when calling addItem.', - ); + constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) { + super(basePath, configuration); } - let localVarHeaders = this.defaultHeaders; + /** + * Adds a new item. + * @endpoint post /api/inse-service/items + * @param itemCreate + * @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 addItem(itemCreate: ItemCreate, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; + public addItem(itemCreate: ItemCreate, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public addItem(itemCreate: ItemCreate, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public addItem(itemCreate: ItemCreate, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { + if (itemCreate === null || itemCreate === undefined) { + throw new Error('Required parameter itemCreate was null or undefined when calling addItem.'); + } - // authentication (bearer) required - localVarHeaders = this.configuration.addCredentialToHeaders( - 'bearer', - 'Authorization', - localVarHeaders, - 'Bearer ', - ); + let localVarHeaders = this.defaultHeaders; - const localVarHttpHeaderAcceptSelected: string | undefined = - options?.httpHeaderAccept ?? - this.configuration.selectHeaderAccept(['application/json']); - if (localVarHttpHeaderAcceptSelected !== undefined) { - localVarHeaders = localVarHeaders.set( - 'Accept', - localVarHttpHeaderAcceptSelected, - ); + // authentication (bearer) required + localVarHeaders = this.configuration.addCredentialToHeaders('bearer', '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/inse-service/items`; + const { basePath, withCredentials } = this.configuration; + return this.httpClient.request('post', `${basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: itemCreate, + responseType: responseType_, + ...(withCredentials ? { withCredentials } : {}), + headers: localVarHeaders, + observe: observe, + ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), + reportProgress: reportProgress + } + ); } - const localVarHttpContext: HttpContext = - options?.context ?? new HttpContext(); + /** + * Deletes the item with the id. + * @endpoint delete /api/inse-service/items/{id} + * @param id The item id. + * @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 deleteItem(id: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; + public deleteItem(id: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public deleteItem(id: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public deleteItem(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { + if (id === null || id === undefined) { + throw new Error('Required parameter id was null or undefined when calling deleteItem.'); + } - const localVarTransferCache: boolean = options?.transferCache ?? true; + let localVarHeaders = this.defaultHeaders; - // 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, - ); + // authentication (bearer) required + localVarHeaders = this.configuration.addCredentialToHeaders('bearer', '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/inse-service/items/${this.configuration.encodeParam({name: "id", value: id, 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 + } + ); } - 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'; - } + /** + * Returns the item with the id. + * @endpoint get /api/inse-service/items/{id} + * @param id The item id. + * @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 getItem(id: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; + public getItem(id: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public getItem(id: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public getItem(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { + if (id === null || id === undefined) { + throw new Error('Required parameter id was null or undefined when calling getItem.'); + } + + let localVarHeaders = this.defaultHeaders; + + // authentication (bearer) required + localVarHeaders = this.configuration.addCredentialToHeaders('bearer', '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/inse-service/items/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", 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 + } + ); } - let localVarPath = `/api/inse-service/items`; - const { basePath, withCredentials } = this.configuration; - return this.httpClient.request('post', `${basePath}${localVarPath}`, { - context: localVarHttpContext, - body: itemCreate, - responseType: responseType_, - ...(withCredentials ? { withCredentials } : {}), - headers: localVarHeaders, - observe: observe, - ...(localVarTransferCache !== undefined - ? { transferCache: localVarTransferCache } - : {}), - reportProgress: reportProgress, - }); - } + /** + * Returns a page of items. + * @endpoint get /api/inse-service/items + * @param pageOffset The page offset. + * @param pageSize The page size. + * @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 getItems(pageOffset?: number, pageSize?: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; + public getItems(pageOffset?: number, pageSize?: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public getItems(pageOffset?: number, pageSize?: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public getItems(pageOffset?: number, pageSize?: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { - /** - * Deletes the item with the id. - * @endpoint delete /api/inse-service/items/{id} - * @param id The item id. - * @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 deleteItem( - id: number, - observe?: 'body', - reportProgress?: boolean, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable; - public deleteItem( - id: number, - observe?: 'response', - reportProgress?: boolean, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable>; - public deleteItem( - id: number, - observe?: 'events', - reportProgress?: boolean, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable>; - public deleteItem( - id: number, - observe: any = 'body', - reportProgress: boolean = false, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable { - if (id === null || id === undefined) { - throw new Error( - 'Required parameter id was null or undefined when calling deleteItem.', - ); + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + pageOffset, 'pageOffset'); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + pageSize, 'pageSize'); + + let localVarHeaders = this.defaultHeaders; + + // authentication (bearer) required + localVarHeaders = this.configuration.addCredentialToHeaders('bearer', '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/inse-service/items`; + 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 + } + ); } - let localVarHeaders = this.defaultHeaders; + /** + * Updates the item with the id. + * @endpoint put /api/inse-service/items/{id} + * @param id The item id. + * @param itemCreate + * @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 updateItem(id: number, itemCreate: ItemCreate, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; + public updateItem(id: number, itemCreate: ItemCreate, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public updateItem(id: number, itemCreate: ItemCreate, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public updateItem(id: number, itemCreate: ItemCreate, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { + if (id === null || id === undefined) { + throw new Error('Required parameter id was null or undefined when calling updateItem.'); + } + if (itemCreate === null || itemCreate === undefined) { + throw new Error('Required parameter itemCreate was null or undefined when calling updateItem.'); + } - // authentication (bearer) required - localVarHeaders = this.configuration.addCredentialToHeaders( - 'bearer', - 'Authorization', - localVarHeaders, - 'Bearer ', - ); + let localVarHeaders = this.defaultHeaders; - const localVarHttpHeaderAcceptSelected: string | undefined = - options?.httpHeaderAccept ?? - this.configuration.selectHeaderAccept(['application/json']); - if (localVarHttpHeaderAcceptSelected !== undefined) { - localVarHeaders = localVarHeaders.set( - 'Accept', - localVarHttpHeaderAcceptSelected, - ); + // authentication (bearer) required + localVarHeaders = this.configuration.addCredentialToHeaders('bearer', '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/inse-service/items/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: undefined})}`; + const { basePath, withCredentials } = this.configuration; + return this.httpClient.request('put', `${basePath}${localVarPath}`, + { + context: localVarHttpContext, + body: itemCreate, + responseType: responseType_, + ...(withCredentials ? { withCredentials } : {}), + headers: localVarHeaders, + observe: observe, + ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), + reportProgress: reportProgress + } + ); } - 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/inse-service/items/${this.configuration.encodeParam({ name: 'id', value: id, 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, - }, - ); - } - - /** - * Returns the item with the id. - * @endpoint get /api/inse-service/items/{id} - * @param id The item id. - * @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 getItem( - id: number, - observe?: 'body', - reportProgress?: boolean, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable; - public getItem( - id: number, - observe?: 'response', - reportProgress?: boolean, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable>; - public getItem( - id: number, - observe?: 'events', - reportProgress?: boolean, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable>; - public getItem( - id: number, - observe: any = 'body', - reportProgress: boolean = false, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable { - if (id === null || id === undefined) { - throw new Error( - 'Required parameter id was null or undefined when calling getItem.', - ); - } - - let localVarHeaders = this.defaultHeaders; - - // authentication (bearer) required - localVarHeaders = this.configuration.addCredentialToHeaders( - 'bearer', - '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/inse-service/items/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'number', 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 page of items. - * @endpoint get /api/inse-service/items - * @param pageOffset The page offset. - * @param pageSize The page size. - * @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 getItems( - pageOffset?: number, - pageSize?: number, - observe?: 'body', - reportProgress?: boolean, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable; - public getItems( - pageOffset?: number, - pageSize?: number, - observe?: 'response', - reportProgress?: boolean, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable>; - public getItems( - pageOffset?: number, - pageSize?: number, - observe?: 'events', - reportProgress?: boolean, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable>; - public getItems( - pageOffset?: number, - pageSize?: number, - 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, - pageOffset, - 'pageOffset', - ); - localVarQueryParameters = this.addToHttpParams( - localVarQueryParameters, - pageSize, - 'pageSize', - ); - - let localVarHeaders = this.defaultHeaders; - - // authentication (bearer) required - localVarHeaders = this.configuration.addCredentialToHeaders( - 'bearer', - '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/inse-service/items`; - 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, - }, - ); - } - - /** - * Updates the item with the id. - * @endpoint put /api/inse-service/items/{id} - * @param id The item id. - * @param itemCreate - * @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 updateItem( - id: number, - itemCreate: ItemCreate, - observe?: 'body', - reportProgress?: boolean, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable; - public updateItem( - id: number, - itemCreate: ItemCreate, - observe?: 'response', - reportProgress?: boolean, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable>; - public updateItem( - id: number, - itemCreate: ItemCreate, - observe?: 'events', - reportProgress?: boolean, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable>; - public updateItem( - id: number, - itemCreate: ItemCreate, - observe: any = 'body', - reportProgress: boolean = false, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable { - if (id === null || id === undefined) { - throw new Error( - 'Required parameter id was null or undefined when calling updateItem.', - ); - } - if (itemCreate === null || itemCreate === undefined) { - throw new Error( - 'Required parameter itemCreate was null or undefined when calling updateItem.', - ); - } - - let localVarHeaders = this.defaultHeaders; - - // authentication (bearer) required - localVarHeaders = this.configuration.addCredentialToHeaders( - 'bearer', - '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/inse-service/items/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'number', dataFormat: undefined })}`; - const { basePath, withCredentials } = this.configuration; - return this.httpClient.request('put', `${basePath}${localVarPath}`, { - context: localVarHttpContext, - body: itemCreate, - responseType: responseType_, - ...(withCredentials ? { withCredentials } : {}), - headers: localVarHeaders, - observe: observe, - ...(localVarTransferCache !== undefined - ? { transferCache: localVarTransferCache } - : {}), - reportProgress: reportProgress, - }); - } } diff --git a/webapp/src/app/api/api/personNetwork.service.ts b/webapp/src/app/api/api/personNetwork.service.ts index 5b468938..b1183ff6 100644 --- a/webapp/src/app/api/api/personNetwork.service.ts +++ b/webapp/src/app/api/api/personNetwork.service.ts @@ -1,7 +1,7 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,18 +9,12 @@ */ /* 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'; +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'; @@ -30,139 +24,86 @@ import { FilterProperties } from '../model/filterProperties'; import { HTTPValidationError } from '../model/hTTPValidationError'; // @ts-ignore -import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; -import { Configuration } from '../configuration'; +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; import { BaseService } from '../api.base.service'; + + @Injectable({ - providedIn: 'root', + 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.', - ); + constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) { + super(basePath, configuration); } - let localVarHeaders = this.defaultHeaders; + /** + * 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.'); + } - const localVarHttpHeaderAcceptSelected: string | undefined = - options?.httpHeaderAccept ?? - this.configuration.selectHeaderAccept(['application/json']); - if (localVarHttpHeaderAcceptSelected !== undefined) { - localVarHeaders = localVarHeaders.set( - 'Accept', - localVarHttpHeaderAcceptSelected, - ); + 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 + } + ); } - 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 4c6206a2..b2ec8f84 100644 --- a/webapp/src/app/api/api/persons.service.ts +++ b/webapp/src/app/api/api/persons.service.ts @@ -1,7 +1,7 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,18 +9,12 @@ */ /* 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'; +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 { AuthorsListResponse } from '../model/authorsListResponse'; @@ -32,1749 +26,875 @@ import { HTTPValidationError } from '../model/hTTPValidationError'; import { PersonBio } from '../model/personBio'; // @ts-ignore -import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; -import { Configuration } from '../configuration'; +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; import { BaseService } from '../api.base.service'; + + @Injectable({ - providedIn: 'root', + providedIn: 'root' }) export class PersonsService extends BaseService { - constructor( - protected httpClient: HttpClient, - @Optional() @Inject(BASE_PATH) basePath: string | string[], - @Optional() configuration?: Configuration, - ) { - super(basePath, configuration); - } - /** - * Generates a bio for a person by author ID. - * @endpoint get /api/inse-service/persons/bio - * @param authorId OpenAlex author ID (e.g., A5093075883) - * @param include Comma-separated list to include tags - * @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 generatePersonBio( - authorId: string, - include?: string, - observe?: 'body', - reportProgress?: boolean, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable; - public generatePersonBio( - authorId: string, - include?: string, - observe?: 'response', - reportProgress?: boolean, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable>; - public generatePersonBio( - authorId: string, - include?: string, - observe?: 'events', - reportProgress?: boolean, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable>; - public generatePersonBio( - authorId: string, - include?: string, - observe: any = 'body', - reportProgress: boolean = false, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable { - if (authorId === null || authorId === undefined) { - throw new Error( - 'Required parameter authorId was null or undefined when calling generatePersonBio.', - ); + constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) { + super(basePath, configuration); } - let localVarQueryParameters = new HttpParams({ encoder: this.encoder }); - localVarQueryParameters = this.addToHttpParams( - localVarQueryParameters, - authorId, - 'author_id', - ); - localVarQueryParameters = this.addToHttpParams( - localVarQueryParameters, - include, - 'include', - ); - - 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/inse-service/persons/bio`; - 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, - }, - ); - } - - /** - * Searches for person by ID. - * @endpoint get /api/inse-service/person/{id} - * @param id OpenAlex author ID - * @param include Which data do we require? include tags: topics_full, topic_share, summary_stats, ids, last_known_institutions, ... - * @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 getPersonByID( - id: string, - include: string, - observe?: 'body', - reportProgress?: boolean, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable; - public getPersonByID( - id: string, - include: string, - observe?: 'response', - reportProgress?: boolean, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable>; - public getPersonByID( - id: string, - include: string, - observe?: 'events', - reportProgress?: boolean, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable>; - public getPersonByID( - id: string, - include: string, - observe: any = 'body', - reportProgress: boolean = false, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable { - if (id === null || id === undefined) { - throw new Error( - 'Required parameter id was null or undefined when calling getPersonByID.', - ); - } - if (include === null || include === undefined) { - throw new Error( - 'Required parameter include was null or undefined when calling getPersonByID.', - ); - } - - let localVarQueryParameters = new HttpParams({ encoder: this.encoder }); - localVarQueryParameters = this.addToHttpParams( - localVarQueryParameters, - include, - 'include', - ); - - 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/inse-service/person/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`; - 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, - }, - ); - } - - /** - * Searches for person by ID. - * @endpoint get /api/inse-service/person/{id} - * @param id OpenAlex author ID - * @param include Which data do we require? include tags: topics_full, topic_share, summary_stats, ids, last_known_institutions, ... - * @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 getPersonByID_1( - id: string, - include: string, - observe?: 'body', - reportProgress?: boolean, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable; - public getPersonByID_1( - id: string, - include: string, - observe?: 'response', - reportProgress?: boolean, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable>; - public getPersonByID_1( - id: string, - include: string, - observe?: 'events', - reportProgress?: boolean, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable>; - public getPersonByID_1( - id: string, - include: string, - observe: any = 'body', - reportProgress: boolean = false, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable { - if (id === null || id === undefined) { - throw new Error( - 'Required parameter id was null or undefined when calling getPersonByID_1.', - ); - } - if (include === null || include === undefined) { - throw new Error( - 'Required parameter include was null or undefined when calling getPersonByID_1.', - ); - } - - let localVarQueryParameters = new HttpParams({ encoder: this.encoder }); - localVarQueryParameters = this.addToHttpParams( - localVarQueryParameters, - include, - 'include', - ); - - 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/inse-service/person/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`; - 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, - }, - ); - } - - /** - * Searches for persons by ID or name. - * @endpoint get /api/inse-service/persons/search - * @param authorId OpenAlex author ID (e.g., A5093075883) - * @param query Search query (e.g., Arman AND Arzani) - * @param include Comma-separated include tags: topics_full, topic_share, summary_stats, ids, last_known_institutions, sources, counts_by_year, works_api_url, dates, cited_by_count_boost - * @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 searchPersons( - authorId?: string, - query?: string, - include?: string, - observe?: 'body', - reportProgress?: boolean, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable; - public searchPersons( - authorId?: string, - query?: string, - include?: string, - observe?: 'response', - reportProgress?: boolean, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable>; - public searchPersons( - authorId?: string, - query?: string, - include?: string, - observe?: 'events', - reportProgress?: boolean, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable>; - public searchPersons( - authorId?: string, - query?: string, - include?: 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, - authorId, - 'author_id', - ); - localVarQueryParameters = this.addToHttpParams( - localVarQueryParameters, - query, - 'query', - ); - localVarQueryParameters = this.addToHttpParams( - localVarQueryParameters, - include, - 'include', - ); - - 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/inse-service/persons/search`; - 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, - }, - ); - } - - /** - * Searches for person by name. - * @endpoint get /api/inse-service/persons/autocomplete - * @param authorName Authors name (e.g., Arman Arzani) - * @param include Which data do we require? include tags: topics_full, topic_share, summary_stats, ids, last_known_institutions, ... - * @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 searchPersonsAutocomplete( - authorName: string, - include: string, - observe?: 'body', - reportProgress?: boolean, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable; - public searchPersonsAutocomplete( - authorName: string, - include: string, - observe?: 'response', - reportProgress?: boolean, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable>; - public searchPersonsAutocomplete( - authorName: string, - include: string, - observe?: 'events', - reportProgress?: boolean, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable>; - public searchPersonsAutocomplete( - authorName: string, - include: string, - observe: any = 'body', - reportProgress: boolean = false, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable { - if (authorName === null || authorName === undefined) { - throw new Error( - 'Required parameter authorName was null or undefined when calling searchPersonsAutocomplete.', - ); - } - if (include === null || include === undefined) { - throw new Error( - 'Required parameter include was null or undefined when calling searchPersonsAutocomplete.', - ); - } - - let localVarQueryParameters = new HttpParams({ encoder: this.encoder }); - localVarQueryParameters = this.addToHttpParams( - localVarQueryParameters, - authorName, - 'author_name', - ); - localVarQueryParameters = this.addToHttpParams( - localVarQueryParameters, - include, - 'include', - ); - - 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/inse-service/persons/autocomplete`; - 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, - }, - ); - } - - /** - * Searches for person by name. - * @endpoint get /api/inse-service/persons/autocomplete - * @param authorName Authors name (e.g., Arman Arzani) - * @param include Which data do we require? include tags: topics_full, topic_share, summary_stats, ids, last_known_institutions, ... - * @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 searchPersonsAutocomplete_2( - authorName: string, - include: string, - observe?: 'body', - reportProgress?: boolean, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable; - public searchPersonsAutocomplete_2( - authorName: string, - include: string, - observe?: 'response', - reportProgress?: boolean, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable>; - public searchPersonsAutocomplete_2( - authorName: string, - include: string, - observe?: 'events', - reportProgress?: boolean, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable>; - public searchPersonsAutocomplete_2( - authorName: string, - include: string, - observe: any = 'body', - reportProgress: boolean = false, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable { - if (authorName === null || authorName === undefined) { - throw new Error( - 'Required parameter authorName was null or undefined when calling searchPersonsAutocomplete_2.', - ); - } - if (include === null || include === undefined) { - throw new Error( - 'Required parameter include was null or undefined when calling searchPersonsAutocomplete_2.', - ); - } - - let localVarQueryParameters = new HttpParams({ encoder: this.encoder }); - localVarQueryParameters = this.addToHttpParams( - localVarQueryParameters, - authorName, - 'author_name', - ); - localVarQueryParameters = this.addToHttpParams( - localVarQueryParameters, - include, - 'include', - ); - - 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/inse-service/persons/autocomplete`; - 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, - }, - ); - } - - /** - * Searches for persons by institution name. - * @endpoint get /api/inse-service/persons/searchByInstitution - * @param institutionName Institution name (e.g., MIT, Oxford University) - * @param include Which data do we require? include tags: topics_full, topic_share, summary_stats, ids, last_known_institutions, ... - * @param limit Limit of search page results - * @param pageOffset Offset of the result page - * @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 searchPersonsByInstitution( - institutionName: string, - include: string, - limit?: number, - pageOffset?: number, - observe?: 'body', - reportProgress?: boolean, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable; - public searchPersonsByInstitution( - institutionName: string, - include: string, - limit?: number, - pageOffset?: number, - observe?: 'response', - reportProgress?: boolean, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable>; - public searchPersonsByInstitution( - institutionName: string, - include: string, - limit?: number, - pageOffset?: number, - observe?: 'events', - reportProgress?: boolean, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable>; - public searchPersonsByInstitution( - institutionName: string, - include: string, - limit?: number, - pageOffset?: number, - observe: any = 'body', - reportProgress: boolean = false, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable { - if (institutionName === null || institutionName === undefined) { - throw new Error( - 'Required parameter institutionName was null or undefined when calling searchPersonsByInstitution.', - ); - } - if (include === null || include === undefined) { - throw new Error( - 'Required parameter include was null or undefined when calling searchPersonsByInstitution.', - ); - } - - let localVarQueryParameters = new HttpParams({ encoder: this.encoder }); - localVarQueryParameters = this.addToHttpParams( - localVarQueryParameters, - institutionName, - 'institution_name', - ); - localVarQueryParameters = this.addToHttpParams( - localVarQueryParameters, - include, - 'include', - ); - localVarQueryParameters = this.addToHttpParams( - localVarQueryParameters, - limit, - 'limit', - ); - localVarQueryParameters = this.addToHttpParams( - localVarQueryParameters, - pageOffset, - 'page_offset', - ); - - 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/inse-service/persons/searchByInstitution`; - 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, - }, - ); - } - - /** - * Searches for persons by institution name. - * @endpoint get /api/inse-service/persons/searchByInstitution - * @param institutionName Institution name (e.g., MIT, Oxford University) - * @param include Which data do we require? include tags: topics_full, topic_share, summary_stats, ids, last_known_institutions, ... - * @param limit Limit of search page results - * @param pageOffset Offset of the result page - * @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 searchPersonsByInstitution_3( - institutionName: string, - include: string, - limit?: number, - pageOffset?: number, - observe?: 'body', - reportProgress?: boolean, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable; - public searchPersonsByInstitution_3( - institutionName: string, - include: string, - limit?: number, - pageOffset?: number, - observe?: 'response', - reportProgress?: boolean, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable>; - public searchPersonsByInstitution_3( - institutionName: string, - include: string, - limit?: number, - pageOffset?: number, - observe?: 'events', - reportProgress?: boolean, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable>; - public searchPersonsByInstitution_3( - institutionName: string, - include: string, - limit?: number, - pageOffset?: number, - observe: any = 'body', - reportProgress: boolean = false, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable { - if (institutionName === null || institutionName === undefined) { - throw new Error( - 'Required parameter institutionName was null or undefined when calling searchPersonsByInstitution_3.', - ); - } - if (include === null || include === undefined) { - throw new Error( - 'Required parameter include was null or undefined when calling searchPersonsByInstitution_3.', - ); - } - - let localVarQueryParameters = new HttpParams({ encoder: this.encoder }); - localVarQueryParameters = this.addToHttpParams( - localVarQueryParameters, - institutionName, - 'institution_name', - ); - localVarQueryParameters = this.addToHttpParams( - localVarQueryParameters, - include, - 'include', - ); - localVarQueryParameters = this.addToHttpParams( - localVarQueryParameters, - limit, - 'limit', - ); - localVarQueryParameters = this.addToHttpParams( - localVarQueryParameters, - pageOffset, - 'page_offset', - ); - - 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/inse-service/persons/searchByInstitution`; - 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, - }, - ); - } - - /** - * Searches for person by name. - * @endpoint get /api/inse-service/persons/searchByName - * @param authorName Authors name (e.g., Arman Arzani) - * @param include Which data do we require? include tags: topics_full, topic_share, summary_stats, ids, last_known_institutions, ... - * @param limit Limit of search page results - * @param pageOffset Offset of the result page - * @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 searchPersonsByName( - authorName: string, - include: string, - limit?: number, - pageOffset?: number, - observe?: 'body', - reportProgress?: boolean, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable; - public searchPersonsByName( - authorName: string, - include: string, - limit?: number, - pageOffset?: number, - observe?: 'response', - reportProgress?: boolean, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable>; - public searchPersonsByName( - authorName: string, - include: string, - limit?: number, - pageOffset?: number, - observe?: 'events', - reportProgress?: boolean, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable>; - public searchPersonsByName( - authorName: string, - include: string, - limit?: number, - pageOffset?: number, - observe: any = 'body', - reportProgress: boolean = false, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable { - if (authorName === null || authorName === undefined) { - throw new Error( - 'Required parameter authorName was null or undefined when calling searchPersonsByName.', - ); - } - if (include === null || include === undefined) { - throw new Error( - 'Required parameter include was null or undefined when calling searchPersonsByName.', - ); - } - - let localVarQueryParameters = new HttpParams({ encoder: this.encoder }); - localVarQueryParameters = this.addToHttpParams( - localVarQueryParameters, - authorName, - 'author_name', - ); - localVarQueryParameters = this.addToHttpParams( - localVarQueryParameters, - include, - 'include', - ); - localVarQueryParameters = this.addToHttpParams( - localVarQueryParameters, - limit, - 'limit', - ); - localVarQueryParameters = this.addToHttpParams( - localVarQueryParameters, - pageOffset, - 'page_offset', - ); - - 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/inse-service/persons/searchByName`; - 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, - }, - ); - } - - /** - * Searches for person by name. - * @endpoint get /api/inse-service/persons/searchByName - * @param authorName Authors name (e.g., Arman Arzani) - * @param include Which data do we require? include tags: topics_full, topic_share, summary_stats, ids, last_known_institutions, ... - * @param limit Limit of search page results - * @param pageOffset Offset of the result page - * @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 searchPersonsByName_4( - authorName: string, - include: string, - limit?: number, - pageOffset?: number, - observe?: 'body', - reportProgress?: boolean, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable; - public searchPersonsByName_4( - authorName: string, - include: string, - limit?: number, - pageOffset?: number, - observe?: 'response', - reportProgress?: boolean, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable>; - public searchPersonsByName_4( - authorName: string, - include: string, - limit?: number, - pageOffset?: number, - observe?: 'events', - reportProgress?: boolean, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable>; - public searchPersonsByName_4( - authorName: string, - include: string, - limit?: number, - pageOffset?: number, - observe: any = 'body', - reportProgress: boolean = false, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable { - if (authorName === null || authorName === undefined) { - throw new Error( - 'Required parameter authorName was null or undefined when calling searchPersonsByName_4.', - ); - } - if (include === null || include === undefined) { - throw new Error( - 'Required parameter include was null or undefined when calling searchPersonsByName_4.', - ); - } - - let localVarQueryParameters = new HttpParams({ encoder: this.encoder }); - localVarQueryParameters = this.addToHttpParams( - localVarQueryParameters, - authorName, - 'author_name', - ); - localVarQueryParameters = this.addToHttpParams( - localVarQueryParameters, - include, - 'include', - ); - localVarQueryParameters = this.addToHttpParams( - localVarQueryParameters, - limit, - 'limit', - ); - localVarQueryParameters = this.addToHttpParams( - localVarQueryParameters, - pageOffset, - 'page_offset', - ); - - 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/inse-service/persons/searchByName`; - 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, - }, - ); - } - - /** - * Searches for persons with advanced filters (Topic & Institution) and pagination. - * @endpoint get /api/inse-service/persons/search-list - * @param query Search query (e.g., Arman AND Arzani) - * @param institutionName Filter by institution name - * @param sortBy Value to sort by - * @param sortOrder asc or desc? - * @param topic Filter by topic display names - * @param page Page number (1-indexed) - * @param pageSize Results per page - * @param include Comma-separated include tags - * @param strict Strict institution search by target year - * @param filterMode Filter mode: \'in\' or \'from\' - * @param filterYear Filter year - * @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 searchPersonsList( - query?: string, - institutionName?: string, - sortBy?: string, - sortOrder?: string, - topic?: Array, - page?: number, - pageSize?: number, - include?: string, - strict?: boolean, - filterMode?: string, - filterYear?: number, - observe?: 'body', - reportProgress?: boolean, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable; - public searchPersonsList( - query?: string, - institutionName?: string, - sortBy?: string, - sortOrder?: string, - topic?: Array, - page?: number, - pageSize?: number, - include?: string, - strict?: boolean, - filterMode?: string, - filterYear?: number, - observe?: 'response', - reportProgress?: boolean, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable>; - public searchPersonsList( - query?: string, - institutionName?: string, - sortBy?: string, - sortOrder?: string, - topic?: Array, - page?: number, - pageSize?: number, - include?: string, - strict?: boolean, - filterMode?: string, - filterYear?: number, - observe?: 'events', - reportProgress?: boolean, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable>; - public searchPersonsList( - query?: string, - institutionName?: string, - sortBy?: string, - sortOrder?: string, - topic?: Array, - page?: number, - pageSize?: number, - include?: string, - strict?: boolean, - filterMode?: string, - filterYear?: number, - 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', - ); - localVarQueryParameters = this.addToHttpParams( - localVarQueryParameters, - institutionName, - 'institutionName', - ); - localVarQueryParameters = this.addToHttpParams( - localVarQueryParameters, - sortBy, - 'sortBy', - ); - localVarQueryParameters = this.addToHttpParams( - localVarQueryParameters, - sortOrder, - 'sortOrder', - ); - if (topic) { - topic.forEach((element) => { - localVarQueryParameters = this.addToHttpParams( - localVarQueryParameters, - element, - 'topic', + /** + * Generates a bio for a person by author ID. + * @endpoint get /api/inse-service/persons/bio + * @param authorId OpenAlex author ID (e.g., A5093075883) + * @param include Comma-separated list to include tags + * @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 generatePersonBio(authorId: string, include?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; + public generatePersonBio(authorId: string, include?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public generatePersonBio(authorId: string, include?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public generatePersonBio(authorId: string, include?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { + if (authorId === null || authorId === undefined) { + throw new Error('Required parameter authorId was null or undefined when calling generatePersonBio.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + authorId, 'author_id'); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + include, 'include'); + + 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/inse-service/persons/bio`; + 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 + } ); - }); - } - localVarQueryParameters = this.addToHttpParams( - localVarQueryParameters, - page, - 'page', - ); - localVarQueryParameters = this.addToHttpParams( - localVarQueryParameters, - pageSize, - 'pageSize', - ); - localVarQueryParameters = this.addToHttpParams( - localVarQueryParameters, - include, - 'include', - ); - localVarQueryParameters = this.addToHttpParams( - localVarQueryParameters, - strict, - 'strict', - ); - localVarQueryParameters = this.addToHttpParams( - localVarQueryParameters, - filterMode, - 'filterMode', - ); - localVarQueryParameters = this.addToHttpParams( - localVarQueryParameters, - filterYear, - 'filterYear', - ); - - 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(); + /** + * Searches for person by ID. + * @endpoint get /api/inse-service/person/{id} + * @param id OpenAlex author ID + * @param include Which data do we require? include tags: topics_full, topic_share, summary_stats, ids, last_known_institutions, ... + * @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 getPersonByID(id: string, include: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; + public getPersonByID(id: string, include: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public getPersonByID(id: string, include: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public getPersonByID(id: string, include: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { + if (id === null || id === undefined) { + throw new Error('Required parameter id was null or undefined when calling getPersonByID.'); + } + if (include === null || include === undefined) { + throw new Error('Required parameter include was null or undefined when calling getPersonByID.'); + } - const localVarTransferCache: boolean = options?.transferCache ?? true; + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + include, 'include'); - 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 localVarHeaders = this.defaultHeaders; - let localVarPath = `/api/inse-service/persons/search-list`; - 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, - }, - ); - } + const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ + 'application/json' + ]); + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } - /** - * Searches for persons with advanced filters (Topic & Institution) and pagination. - * @endpoint get /api/inse-service/persons/search-list - * @param query Search query (e.g., Arman AND Arzani) - * @param institutionName Filter by institution name - * @param sortBy Value to sort by - * @param sortOrder asc or desc? - * @param topic Filter by topic display names - * @param page Page number (1-indexed) - * @param pageSize Results per page - * @param include Comma-separated include tags - * @param strict Strict institution search by target year - * @param filterMode Filter mode: \'in\' or \'from\' - * @param filterYear Filter year - * @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 searchPersonsList_5( - query?: string, - institutionName?: string, - sortBy?: string, - sortOrder?: string, - topic?: Array, - page?: number, - pageSize?: number, - include?: string, - strict?: boolean, - filterMode?: string, - filterYear?: number, - observe?: 'body', - reportProgress?: boolean, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable; - public searchPersonsList_5( - query?: string, - institutionName?: string, - sortBy?: string, - sortOrder?: string, - topic?: Array, - page?: number, - pageSize?: number, - include?: string, - strict?: boolean, - filterMode?: string, - filterYear?: number, - observe?: 'response', - reportProgress?: boolean, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable>; - public searchPersonsList_5( - query?: string, - institutionName?: string, - sortBy?: string, - sortOrder?: string, - topic?: Array, - page?: number, - pageSize?: number, - include?: string, - strict?: boolean, - filterMode?: string, - filterYear?: number, - observe?: 'events', - reportProgress?: boolean, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable>; - public searchPersonsList_5( - query?: string, - institutionName?: string, - sortBy?: string, - sortOrder?: string, - topic?: Array, - page?: number, - pageSize?: number, - include?: string, - strict?: boolean, - filterMode?: string, - filterYear?: number, - 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', - ); - localVarQueryParameters = this.addToHttpParams( - localVarQueryParameters, - institutionName, - 'institutionName', - ); - localVarQueryParameters = this.addToHttpParams( - localVarQueryParameters, - sortBy, - 'sortBy', - ); - localVarQueryParameters = this.addToHttpParams( - localVarQueryParameters, - sortOrder, - 'sortOrder', - ); - if (topic) { - topic.forEach((element) => { - localVarQueryParameters = this.addToHttpParams( - localVarQueryParameters, - element, - 'topic', + 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/inse-service/person/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`; + 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 + } ); - }); - } - localVarQueryParameters = this.addToHttpParams( - localVarQueryParameters, - page, - 'page', - ); - localVarQueryParameters = this.addToHttpParams( - localVarQueryParameters, - pageSize, - 'pageSize', - ); - localVarQueryParameters = this.addToHttpParams( - localVarQueryParameters, - include, - 'include', - ); - localVarQueryParameters = this.addToHttpParams( - localVarQueryParameters, - strict, - 'strict', - ); - localVarQueryParameters = this.addToHttpParams( - localVarQueryParameters, - filterMode, - 'filterMode', - ); - localVarQueryParameters = this.addToHttpParams( - localVarQueryParameters, - filterYear, - 'filterYear', - ); - - 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(); + /** + * Searches for person by ID. + * @endpoint get /api/inse-service/person/{id} + * @param id OpenAlex author ID + * @param include Which data do we require? include tags: topics_full, topic_share, summary_stats, ids, last_known_institutions, ... + * @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 getPersonByID_1(id: string, include: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; + public getPersonByID_1(id: string, include: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public getPersonByID_1(id: string, include: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public getPersonByID_1(id: string, include: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { + if (id === null || id === undefined) { + throw new Error('Required parameter id was null or undefined when calling getPersonByID_1.'); + } + if (include === null || include === undefined) { + throw new Error('Required parameter include was null or undefined when calling getPersonByID_1.'); + } - const localVarTransferCache: boolean = options?.transferCache ?? true; + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + include, 'include'); - 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 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/inse-service/person/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`; + 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 + } + ); + } + + /** + * Searches for persons by ID or name. + * @endpoint get /api/inse-service/persons/search + * @param authorId OpenAlex author ID (e.g., A5093075883) + * @param query Search query (e.g., Arman AND Arzani) + * @param include Comma-separated include tags: topics_full, topic_share, summary_stats, ids, last_known_institutions, sources, counts_by_year, works_api_url, dates, cited_by_count_boost + * @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 searchPersons(authorId?: string, query?: string, include?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; + public searchPersons(authorId?: string, query?: string, include?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public searchPersons(authorId?: string, query?: string, include?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public searchPersons(authorId?: string, query?: string, include?: 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, + authorId, 'author_id'); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + query, 'query'); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + include, 'include'); + + 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/inse-service/persons/search`; + 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 + } + ); + } + + /** + * Searches for person by name. + * @endpoint get /api/inse-service/persons/autocomplete + * @param authorName Authors name (e.g., Arman Arzani) + * @param include Which data do we require? include tags: topics_full, topic_share, summary_stats, ids, last_known_institutions, ... + * @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 searchPersonsAutocomplete(authorName: string, include: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; + public searchPersonsAutocomplete(authorName: string, include: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public searchPersonsAutocomplete(authorName: string, include: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public searchPersonsAutocomplete(authorName: string, include: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { + if (authorName === null || authorName === undefined) { + throw new Error('Required parameter authorName was null or undefined when calling searchPersonsAutocomplete.'); + } + if (include === null || include === undefined) { + throw new Error('Required parameter include was null or undefined when calling searchPersonsAutocomplete.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + authorName, 'author_name'); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + include, 'include'); + + 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/inse-service/persons/autocomplete`; + 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 + } + ); + } + + /** + * Searches for person by name. + * @endpoint get /api/inse-service/persons/autocomplete + * @param authorName Authors name (e.g., Arman Arzani) + * @param include Which data do we require? include tags: topics_full, topic_share, summary_stats, ids, last_known_institutions, ... + * @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 searchPersonsAutocomplete_2(authorName: string, include: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; + public searchPersonsAutocomplete_2(authorName: string, include: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public searchPersonsAutocomplete_2(authorName: string, include: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public searchPersonsAutocomplete_2(authorName: string, include: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { + if (authorName === null || authorName === undefined) { + throw new Error('Required parameter authorName was null or undefined when calling searchPersonsAutocomplete_2.'); + } + if (include === null || include === undefined) { + throw new Error('Required parameter include was null or undefined when calling searchPersonsAutocomplete_2.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + authorName, 'author_name'); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + include, 'include'); + + 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/inse-service/persons/autocomplete`; + 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 + } + ); + } + + /** + * Searches for persons by institution name. + * @endpoint get /api/inse-service/persons/searchByInstitution + * @param institutionName Institution name (e.g., MIT, Oxford University) + * @param include Which data do we require? include tags: topics_full, topic_share, summary_stats, ids, last_known_institutions, ... + * @param limit Limit of search page results + * @param pageOffset Offset of the result page + * @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 searchPersonsByInstitution(institutionName: string, include: string, limit?: number, pageOffset?: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; + public searchPersonsByInstitution(institutionName: string, include: string, limit?: number, pageOffset?: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public searchPersonsByInstitution(institutionName: string, include: string, limit?: number, pageOffset?: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public searchPersonsByInstitution(institutionName: string, include: string, limit?: number, pageOffset?: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { + if (institutionName === null || institutionName === undefined) { + throw new Error('Required parameter institutionName was null or undefined when calling searchPersonsByInstitution.'); + } + if (include === null || include === undefined) { + throw new Error('Required parameter include was null or undefined when calling searchPersonsByInstitution.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + institutionName, 'institution_name'); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + include, 'include'); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + limit, 'limit'); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + pageOffset, 'page_offset'); + + 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/inse-service/persons/searchByInstitution`; + 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 + } + ); + } + + /** + * Searches for persons by institution name. + * @endpoint get /api/inse-service/persons/searchByInstitution + * @param institutionName Institution name (e.g., MIT, Oxford University) + * @param include Which data do we require? include tags: topics_full, topic_share, summary_stats, ids, last_known_institutions, ... + * @param limit Limit of search page results + * @param pageOffset Offset of the result page + * @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 searchPersonsByInstitution_3(institutionName: string, include: string, limit?: number, pageOffset?: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; + public searchPersonsByInstitution_3(institutionName: string, include: string, limit?: number, pageOffset?: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public searchPersonsByInstitution_3(institutionName: string, include: string, limit?: number, pageOffset?: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public searchPersonsByInstitution_3(institutionName: string, include: string, limit?: number, pageOffset?: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { + if (institutionName === null || institutionName === undefined) { + throw new Error('Required parameter institutionName was null or undefined when calling searchPersonsByInstitution_3.'); + } + if (include === null || include === undefined) { + throw new Error('Required parameter include was null or undefined when calling searchPersonsByInstitution_3.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + institutionName, 'institution_name'); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + include, 'include'); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + limit, 'limit'); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + pageOffset, 'page_offset'); + + 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/inse-service/persons/searchByInstitution`; + 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 + } + ); + } + + /** + * Searches for person by name. + * @endpoint get /api/inse-service/persons/searchByName + * @param authorName Authors name (e.g., Arman Arzani) + * @param include Which data do we require? include tags: topics_full, topic_share, summary_stats, ids, last_known_institutions, ... + * @param limit Limit of search page results + * @param pageOffset Offset of the result page + * @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 searchPersonsByName(authorName: string, include: string, limit?: number, pageOffset?: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; + public searchPersonsByName(authorName: string, include: string, limit?: number, pageOffset?: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public searchPersonsByName(authorName: string, include: string, limit?: number, pageOffset?: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public searchPersonsByName(authorName: string, include: string, limit?: number, pageOffset?: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { + if (authorName === null || authorName === undefined) { + throw new Error('Required parameter authorName was null or undefined when calling searchPersonsByName.'); + } + if (include === null || include === undefined) { + throw new Error('Required parameter include was null or undefined when calling searchPersonsByName.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + authorName, 'author_name'); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + include, 'include'); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + limit, 'limit'); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + pageOffset, 'page_offset'); + + 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/inse-service/persons/searchByName`; + 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 + } + ); + } + + /** + * Searches for person by name. + * @endpoint get /api/inse-service/persons/searchByName + * @param authorName Authors name (e.g., Arman Arzani) + * @param include Which data do we require? include tags: topics_full, topic_share, summary_stats, ids, last_known_institutions, ... + * @param limit Limit of search page results + * @param pageOffset Offset of the result page + * @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 searchPersonsByName_4(authorName: string, include: string, limit?: number, pageOffset?: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; + public searchPersonsByName_4(authorName: string, include: string, limit?: number, pageOffset?: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public searchPersonsByName_4(authorName: string, include: string, limit?: number, pageOffset?: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public searchPersonsByName_4(authorName: string, include: string, limit?: number, pageOffset?: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { + if (authorName === null || authorName === undefined) { + throw new Error('Required parameter authorName was null or undefined when calling searchPersonsByName_4.'); + } + if (include === null || include === undefined) { + throw new Error('Required parameter include was null or undefined when calling searchPersonsByName_4.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + authorName, 'author_name'); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + include, 'include'); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + limit, 'limit'); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + pageOffset, 'page_offset'); + + 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/inse-service/persons/searchByName`; + 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 + } + ); + } + + /** + * Searches for persons with advanced filters (Topic & Institution) and pagination. + * @endpoint get /api/inse-service/persons/search-list + * @param query Search query (e.g., Arman AND Arzani) + * @param institutionName Filter by institution name + * @param sortBy Value to sort by + * @param sortOrder asc or desc? + * @param topic Filter by topic display names + * @param page Page number (1-indexed) + * @param pageSize Results per page + * @param include Comma-separated include tags + * @param strict Strict institution search by target year + * @param filterMode Filter mode: \'in\' or \'from\' + * @param filterYear Filter year + * @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 searchPersonsList(query?: string, institutionName?: string, sortBy?: string, sortOrder?: string, topic?: Array, page?: number, pageSize?: number, include?: string, strict?: boolean, filterMode?: string, filterYear?: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; + public searchPersonsList(query?: string, institutionName?: string, sortBy?: string, sortOrder?: string, topic?: Array, page?: number, pageSize?: number, include?: string, strict?: boolean, filterMode?: string, filterYear?: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public searchPersonsList(query?: string, institutionName?: string, sortBy?: string, sortOrder?: string, topic?: Array, page?: number, pageSize?: number, include?: string, strict?: boolean, filterMode?: string, filterYear?: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public searchPersonsList(query?: string, institutionName?: string, sortBy?: string, sortOrder?: string, topic?: Array, page?: number, pageSize?: number, include?: string, strict?: boolean, filterMode?: string, filterYear?: number, 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'); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + institutionName, 'institutionName'); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + sortBy, 'sortBy'); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + sortOrder, 'sortOrder'); + if (topic) { + topic.forEach((element) => { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + element, 'topic'); + }) + } + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + page, 'page'); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + pageSize, 'pageSize'); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + include, 'include'); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + strict, 'strict'); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + filterMode, 'filterMode'); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + filterYear, 'filterYear'); + + 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/inse-service/persons/search-list`; + 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 + } + ); + } + + /** + * Searches for persons with advanced filters (Topic & Institution) and pagination. + * @endpoint get /api/inse-service/persons/search-list + * @param query Search query (e.g., Arman AND Arzani) + * @param institutionName Filter by institution name + * @param sortBy Value to sort by + * @param sortOrder asc or desc? + * @param topic Filter by topic display names + * @param page Page number (1-indexed) + * @param pageSize Results per page + * @param include Comma-separated include tags + * @param strict Strict institution search by target year + * @param filterMode Filter mode: \'in\' or \'from\' + * @param filterYear Filter year + * @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 searchPersonsList_5(query?: string, institutionName?: string, sortBy?: string, sortOrder?: string, topic?: Array, page?: number, pageSize?: number, include?: string, strict?: boolean, filterMode?: string, filterYear?: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; + public searchPersonsList_5(query?: string, institutionName?: string, sortBy?: string, sortOrder?: string, topic?: Array, page?: number, pageSize?: number, include?: string, strict?: boolean, filterMode?: string, filterYear?: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public searchPersonsList_5(query?: string, institutionName?: string, sortBy?: string, sortOrder?: string, topic?: Array, page?: number, pageSize?: number, include?: string, strict?: boolean, filterMode?: string, filterYear?: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public searchPersonsList_5(query?: string, institutionName?: string, sortBy?: string, sortOrder?: string, topic?: Array, page?: number, pageSize?: number, include?: string, strict?: boolean, filterMode?: string, filterYear?: number, 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'); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + institutionName, 'institutionName'); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + sortBy, 'sortBy'); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + sortOrder, 'sortOrder'); + if (topic) { + topic.forEach((element) => { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + element, 'topic'); + }) + } + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + page, 'page'); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + pageSize, 'pageSize'); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + include, 'include'); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + strict, 'strict'); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + filterMode, 'filterMode'); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + filterYear, 'filterYear'); + + 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/inse-service/persons/search-list`; + 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 + } + ); } - let localVarPath = `/api/inse-service/persons/search-list`; - 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/projects.service.ts b/webapp/src/app/api/api/projects.service.ts index b08a911f..ef64863e 100644 --- a/webapp/src/app/api/api/projects.service.ts +++ b/webapp/src/app/api/api/projects.service.ts @@ -1,7 +1,7 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,18 +9,12 @@ */ /* 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'; +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 { BundProjectPage } from '../model/bundProjectPage'; @@ -32,502 +26,247 @@ import { EuProjectPage } from '../model/euProjectPage'; import { HTTPValidationError } from '../model/hTTPValidationError'; // @ts-ignore -import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; -import { Configuration } from '../configuration'; +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; import { BaseService } from '../api.base.service'; + + @Injectable({ - providedIn: 'root', + providedIn: 'root' }) export class ProjectsService extends BaseService { - constructor( - protected httpClient: HttpClient, - @Optional() @Inject(BASE_PATH) basePath: string | string[], - @Optional() configuration?: Configuration, - ) { - super(basePath, configuration); - } - /** - * Get bund projects. - * Returns a page of bund projects based on the provided pagination parameters and optional institution filter. - * @endpoint get /api/projects/institution/bund/search - * @param institutionId The institution ID to filter by. - * @param topic The topic to filter by. - * @param page The page number. - * @param size The page size. - * @param sortBy The field to sort by. - * @param sortDirection The sort direction (asc or desc). - * @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 getBundProjects( - institutionId: string, - topic?: string, - page?: number, - size?: number, - sortBy?: string, - sortDirection?: string, - observe?: 'body', - reportProgress?: boolean, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable; - public getBundProjects( - institutionId: string, - topic?: string, - page?: number, - size?: number, - sortBy?: string, - sortDirection?: string, - observe?: 'response', - reportProgress?: boolean, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable>; - public getBundProjects( - institutionId: string, - topic?: string, - page?: number, - size?: number, - sortBy?: string, - sortDirection?: string, - observe?: 'events', - reportProgress?: boolean, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable>; - public getBundProjects( - institutionId: string, - topic?: string, - page?: number, - size?: number, - sortBy?: string, - sortDirection?: 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 getBundProjects.', - ); + constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) { + super(basePath, configuration); } - let localVarQueryParameters = new HttpParams({ encoder: this.encoder }); - localVarQueryParameters = this.addToHttpParams( - localVarQueryParameters, - institutionId, - 'institution_id', - ); - localVarQueryParameters = this.addToHttpParams( - localVarQueryParameters, - topic, - 'topic', - ); - localVarQueryParameters = this.addToHttpParams( - localVarQueryParameters, - page, - 'page', - ); - localVarQueryParameters = this.addToHttpParams( - localVarQueryParameters, - size, - 'size', - ); - localVarQueryParameters = this.addToHttpParams( - localVarQueryParameters, - sortBy, - 'sort_by', - ); - localVarQueryParameters = this.addToHttpParams( - localVarQueryParameters, - sortDirection, - 'sort_direction', - ); + /** + * Get bund projects. + * Returns a page of bund projects based on the provided pagination parameters and optional institution filter. + * @endpoint get /api/projects/institution/bund/search + * @param institutionId The institution ID to filter by. + * @param topic The topic to filter by. + * @param page The page number. + * @param size The page size. + * @param sortBy The field to sort by. + * @param sortDirection The sort direction (asc or desc). + * @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 getBundProjects(institutionId: string, topic?: string, page?: number, size?: number, sortBy?: string, sortDirection?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; + public getBundProjects(institutionId: string, topic?: string, page?: number, size?: number, sortBy?: string, sortDirection?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public getBundProjects(institutionId: string, topic?: string, page?: number, size?: number, sortBy?: string, sortDirection?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public getBundProjects(institutionId: string, topic?: string, page?: number, size?: number, sortBy?: string, sortDirection?: 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 getBundProjects.'); + } - let localVarHeaders = this.defaultHeaders; + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + institutionId, 'institution_id'); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + topic, 'topic'); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + page, 'page'); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + size, 'size'); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + sortBy, 'sort_by'); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + sortDirection, 'sort_direction'); - const localVarHttpHeaderAcceptSelected: string | undefined = - options?.httpHeaderAccept ?? - this.configuration.selectHeaderAccept(['application/json']); - if (localVarHttpHeaderAcceptSelected !== undefined) { - localVarHeaders = localVarHeaders.set( - 'Accept', - localVarHttpHeaderAcceptSelected, - ); + 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/projects/institution/bund/search`; + 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 + } + ); } - const localVarHttpContext: HttpContext = - options?.context ?? new HttpContext(); + /** + * 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 authorId The author ID to filter by. + * @param topic The topic to filter by. + * @param page The page number. + * @param size The page size. + * @param sortBy The field to sort by. + * @param sortDirection The sort direction (asc or desc). + * @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 getDfgProjects(authorId: string, topic?: string, page?: number, size?: number, sortBy?: string, sortDirection?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; + public getDfgProjects(authorId: string, topic?: string, page?: number, size?: number, sortBy?: string, sortDirection?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public getDfgProjects(authorId: string, topic?: string, page?: number, size?: number, sortBy?: string, sortDirection?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public getDfgProjects(authorId: string, topic?: string, page?: number, size?: number, sortBy?: string, sortDirection?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { + if (authorId === null || authorId === undefined) { + throw new Error('Required parameter authorId was null or undefined when calling getDfgProjects.'); + } - const localVarTransferCache: boolean = options?.transferCache ?? true; + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + authorId, 'author_id'); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + topic, 'topic'); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + page, 'page'); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + size, 'size'); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + sortBy, 'sort_by'); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + sortDirection, 'sort_direction'); - 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 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/projects/person/dfg/search`; + 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 + } + ); } - let localVarPath = `/api/projects/institution/bund/search`; - 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 EU projects. + * Returns a page of EU projects based on the provided pagination parameters and optional institution filter. + * @endpoint get /api/projects/institution/eu/search + * @param institutionId The institution ID to filter by. + * @param topic The topic to filter by. + * @param page The page number. + * @param size The page size. + * @param sortBy The field to sort by. + * @param sortDirection The sort direction (asc or desc). + * @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 getEuProjects(institutionId: string, topic?: string, page?: number, size?: number, sortBy?: string, sortDirection?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; + public getEuProjects(institutionId: string, topic?: string, page?: number, size?: number, sortBy?: string, sortDirection?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public getEuProjects(institutionId: string, topic?: string, page?: number, size?: number, sortBy?: string, sortDirection?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public getEuProjects(institutionId: string, topic?: string, page?: number, size?: number, sortBy?: string, sortDirection?: 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 getEuProjects.'); + } - /** - * 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 authorId The author ID to filter by. - * @param topic The topic to filter by. - * @param page The page number. - * @param size The page size. - * @param sortBy The field to sort by. - * @param sortDirection The sort direction (asc or desc). - * @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 getDfgProjects( - authorId: string, - topic?: string, - page?: number, - size?: number, - sortBy?: string, - sortDirection?: string, - observe?: 'body', - reportProgress?: boolean, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable; - public getDfgProjects( - authorId: string, - topic?: string, - page?: number, - size?: number, - sortBy?: string, - sortDirection?: string, - observe?: 'response', - reportProgress?: boolean, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable>; - public getDfgProjects( - authorId: string, - topic?: string, - page?: number, - size?: number, - sortBy?: string, - sortDirection?: string, - observe?: 'events', - reportProgress?: boolean, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable>; - public getDfgProjects( - authorId: string, - topic?: string, - page?: number, - size?: number, - sortBy?: string, - sortDirection?: string, - observe: any = 'body', - reportProgress: boolean = false, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable { - if (authorId === null || authorId === undefined) { - throw new Error( - 'Required parameter authorId was null or undefined when calling getDfgProjects.', - ); + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + institutionId, 'institution_id'); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + topic, 'topic'); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + page, 'page'); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + size, 'size'); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + sortBy, 'sort_by'); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + sortDirection, 'sort_direction'); + + 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/projects/institution/eu/search`; + 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 + } + ); } - let localVarQueryParameters = new HttpParams({ encoder: this.encoder }); - localVarQueryParameters = this.addToHttpParams( - localVarQueryParameters, - authorId, - 'author_id', - ); - localVarQueryParameters = this.addToHttpParams( - localVarQueryParameters, - topic, - 'topic', - ); - localVarQueryParameters = this.addToHttpParams( - localVarQueryParameters, - page, - 'page', - ); - localVarQueryParameters = this.addToHttpParams( - localVarQueryParameters, - size, - 'size', - ); - localVarQueryParameters = this.addToHttpParams( - localVarQueryParameters, - sortBy, - 'sort_by', - ); - localVarQueryParameters = this.addToHttpParams( - localVarQueryParameters, - sortDirection, - 'sort_direction', - ); - - 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/projects/person/dfg/search`; - 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 EU projects. - * Returns a page of EU projects based on the provided pagination parameters and optional institution filter. - * @endpoint get /api/projects/institution/eu/search - * @param institutionId The institution ID to filter by. - * @param topic The topic to filter by. - * @param page The page number. - * @param size The page size. - * @param sortBy The field to sort by. - * @param sortDirection The sort direction (asc or desc). - * @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 getEuProjects( - institutionId: string, - topic?: string, - page?: number, - size?: number, - sortBy?: string, - sortDirection?: string, - observe?: 'body', - reportProgress?: boolean, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable; - public getEuProjects( - institutionId: string, - topic?: string, - page?: number, - size?: number, - sortBy?: string, - sortDirection?: string, - observe?: 'response', - reportProgress?: boolean, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable>; - public getEuProjects( - institutionId: string, - topic?: string, - page?: number, - size?: number, - sortBy?: string, - sortDirection?: string, - observe?: 'events', - reportProgress?: boolean, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable>; - public getEuProjects( - institutionId: string, - topic?: string, - page?: number, - size?: number, - sortBy?: string, - sortDirection?: 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 getEuProjects.', - ); - } - - let localVarQueryParameters = new HttpParams({ encoder: this.encoder }); - localVarQueryParameters = this.addToHttpParams( - localVarQueryParameters, - institutionId, - 'institution_id', - ); - localVarQueryParameters = this.addToHttpParams( - localVarQueryParameters, - topic, - 'topic', - ); - localVarQueryParameters = this.addToHttpParams( - localVarQueryParameters, - page, - 'page', - ); - localVarQueryParameters = this.addToHttpParams( - localVarQueryParameters, - size, - 'size', - ); - localVarQueryParameters = this.addToHttpParams( - localVarQueryParameters, - sortBy, - 'sort_by', - ); - localVarQueryParameters = this.addToHttpParams( - localVarQueryParameters, - sortDirection, - 'sort_direction', - ); - - 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/projects/institution/eu/search`; - 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/topics.service.ts b/webapp/src/app/api/api/topics.service.ts index 88d63fef..4c2902a1 100644 --- a/webapp/src/app/api/api/topics.service.ts +++ b/webapp/src/app/api/api/topics.service.ts @@ -1,7 +1,7 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,18 +9,12 @@ */ /* 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'; +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 { AutocompleteResponse } from '../model/autocompleteResponse'; @@ -30,792 +24,410 @@ import { HTTPValidationError } from '../model/hTTPValidationError'; import { TopicsListResponse } from '../model/topicsListResponse'; // @ts-ignore -import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; -import { Configuration } from '../configuration'; +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; import { BaseService } from '../api.base.service'; + + @Injectable({ - providedIn: 'root', + providedIn: 'root' }) export class TopicsService extends BaseService { - constructor( - protected httpClient: HttpClient, - @Optional() @Inject(BASE_PATH) basePath: string | string[], - @Optional() configuration?: Configuration, - ) { - super(basePath, configuration); - } - /** - * Returns topic options for autocomplete inputs. - * @endpoint get /api/topics/autocomplete - * @param query Topic search text, for example \'machine learning\'. - * @param domainId Optional OpenAlex domain id filter. - * @param fieldId Optional OpenAlex field id filter. - * @param subfieldId Optional OpenAlex subfield id filter. - * @param limit Maximum number of autocomplete options. - * @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 autocompleteTopics( - query: string, - domainId?: string, - fieldId?: string, - subfieldId?: string, - limit?: number, - observe?: 'body', - reportProgress?: boolean, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable; - public autocompleteTopics( - query: string, - domainId?: string, - fieldId?: string, - subfieldId?: string, - limit?: number, - observe?: 'response', - reportProgress?: boolean, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable>; - public autocompleteTopics( - query: string, - domainId?: string, - fieldId?: string, - subfieldId?: string, - limit?: number, - observe?: 'events', - reportProgress?: boolean, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable>; - public autocompleteTopics( - query: string, - domainId?: string, - fieldId?: string, - subfieldId?: string, - limit?: number, - observe: any = 'body', - reportProgress: boolean = false, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable { - if (query === null || query === undefined) { - throw new Error( - 'Required parameter query was null or undefined when calling autocompleteTopics.', - ); + constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) { + super(basePath, configuration); } - let localVarQueryParameters = new HttpParams({ encoder: this.encoder }); - localVarQueryParameters = this.addToHttpParams( - localVarQueryParameters, - query, - 'query', - ); - localVarQueryParameters = this.addToHttpParams( - localVarQueryParameters, - domainId, - 'domainId', - ); - localVarQueryParameters = this.addToHttpParams( - localVarQueryParameters, - fieldId, - 'fieldId', - ); - localVarQueryParameters = this.addToHttpParams( - localVarQueryParameters, - subfieldId, - 'subfieldId', - ); - localVarQueryParameters = this.addToHttpParams( - localVarQueryParameters, - limit, - 'limit', - ); + /** + * Returns topic options for autocomplete inputs. + * @endpoint get /api/topics/autocomplete + * @param query Topic search text, for example \'machine learning\'. + * @param domainId Optional OpenAlex domain id filter. + * @param fieldId Optional OpenAlex field id filter. + * @param subfieldId Optional OpenAlex subfield id filter. + * @param limit Maximum number of autocomplete options. + * @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 autocompleteTopics(query: string, domainId?: string, fieldId?: string, subfieldId?: string, limit?: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; + public autocompleteTopics(query: string, domainId?: string, fieldId?: string, subfieldId?: string, limit?: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public autocompleteTopics(query: string, domainId?: string, fieldId?: string, subfieldId?: string, limit?: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public autocompleteTopics(query: string, domainId?: string, fieldId?: string, subfieldId?: string, limit?: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { + if (query === null || query === undefined) { + throw new Error('Required parameter query was null or undefined when calling autocompleteTopics.'); + } - let localVarHeaders = this.defaultHeaders; + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + query, 'query'); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + domainId, 'domainId'); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + fieldId, 'fieldId'); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + subfieldId, 'subfieldId'); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + limit, 'limit'); - const localVarHttpHeaderAcceptSelected: string | undefined = - options?.httpHeaderAccept ?? - this.configuration.selectHeaderAccept(['application/json']); - if (localVarHttpHeaderAcceptSelected !== undefined) { - localVarHeaders = localVarHeaders.set( - 'Accept', - localVarHttpHeaderAcceptSelected, - ); - } + let localVarHeaders = this.defaultHeaders; - const localVarHttpContext: HttpContext = - options?.context ?? new HttpContext(); + const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ + 'application/json' + ]); + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } - const localVarTransferCache: boolean = options?.transferCache ?? true; + const localVarHttpContext: HttpContext = options?.context ?? new HttpContext(); - 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'; - } - } + const localVarTransferCache: boolean = options?.transferCache ?? true; - let localVarPath = `/api/topics/autocomplete`; - 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, - }, - ); - } - /** - * Builds the topic hierarchy cache. - * @endpoint get /api/inse-service/topics/cache - * @param pageSize Page size for each search page. - * @param saveJson Persist cache JSON to data folder. - * @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 buildTopicCache( - pageSize?: number, - saveJson?: boolean, - observe?: 'body', - reportProgress?: boolean, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable; - public buildTopicCache( - pageSize?: number, - saveJson?: boolean, - observe?: 'response', - reportProgress?: boolean, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable>; - public buildTopicCache( - pageSize?: number, - saveJson?: boolean, - observe?: 'events', - reportProgress?: boolean, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable>; - public buildTopicCache( - pageSize?: number, - saveJson?: boolean, - 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, - pageSize, - 'page_size', - ); - localVarQueryParameters = this.addToHttpParams( - localVarQueryParameters, - saveJson, - 'save_json', - ); + 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 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/inse-service/topics/cache`; - 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, - }, - ); - } - - /** - * Counts topic hierarchy occurrences from cache. - * @endpoint get /api/inse-service/topics/count - * @param topic Topic names (repeat parameter). - * @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 countTopicHierarchy( - topic: Array, - observe?: 'body', - reportProgress?: boolean, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable; - public countTopicHierarchy( - topic: Array, - observe?: 'response', - reportProgress?: boolean, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable>; - public countTopicHierarchy( - topic: Array, - observe?: 'events', - reportProgress?: boolean, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable>; - public countTopicHierarchy( - topic: Array, - observe: any = 'body', - reportProgress: boolean = false, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable { - if (topic === null || topic === undefined) { - throw new Error( - 'Required parameter topic was null or undefined when calling countTopicHierarchy.', - ); - } - - let localVarQueryParameters = new HttpParams({ encoder: this.encoder }); - if (topic) { - topic.forEach((element) => { - localVarQueryParameters = this.addToHttpParams( - localVarQueryParameters, - element, - 'topic', + let localVarPath = `/api/topics/autocomplete`; + 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 + } ); - }); } - let localVarHeaders = this.defaultHeaders; + /** + * Builds the topic hierarchy cache. + * @endpoint get /api/inse-service/topics/cache + * @param pageSize Page size for each search page. + * @param saveJson Persist cache JSON to data folder. + * @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 buildTopicCache(pageSize?: number, saveJson?: boolean, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; + public buildTopicCache(pageSize?: number, saveJson?: boolean, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public buildTopicCache(pageSize?: number, saveJson?: boolean, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public buildTopicCache(pageSize?: number, saveJson?: boolean, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { - const localVarHttpHeaderAcceptSelected: string | undefined = - options?.httpHeaderAccept ?? - this.configuration.selectHeaderAccept(['application/json']); - if (localVarHttpHeaderAcceptSelected !== undefined) { - localVarHeaders = localVarHeaders.set( - 'Accept', - localVarHttpHeaderAcceptSelected, - ); + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + pageSize, 'page_size'); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + saveJson, 'save_json'); + + 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/inse-service/topics/cache`; + 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 + } + ); } - const localVarHttpContext: HttpContext = - options?.context ?? new HttpContext(); + /** + * Counts topic hierarchy occurrences from cache. + * @endpoint get /api/inse-service/topics/count + * @param topic Topic names (repeat parameter). + * @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 countTopicHierarchy(topic: Array, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; + public countTopicHierarchy(topic: Array, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public countTopicHierarchy(topic: Array, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public countTopicHierarchy(topic: Array, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { + if (topic === null || topic === undefined) { + throw new Error('Required parameter topic was null or undefined when calling countTopicHierarchy.'); + } - const localVarTransferCache: boolean = options?.transferCache ?? true; + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + if (topic) { + topic.forEach((element) => { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + element, 'topic'); + }) + } - 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 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/inse-service/topics/count`; + 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 + } + ); } - let localVarPath = `/api/inse-service/topics/count`; - 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 the nested topic hierarchy (Domains -> Fields -> Subfields -> Topics). + * @endpoint get /api/inse-service/topics/hierarchy + * @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 getTopicHierarchy(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; + public getTopicHierarchy(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public getTopicHierarchy(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public getTopicHierarchy(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { - /** - * Returns the nested topic hierarchy (Domains -> Fields -> Subfields -> Topics). - * @endpoint get /api/inse-service/topics/hierarchy - * @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 getTopicHierarchy( - observe?: 'body', - reportProgress?: boolean, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable; - public getTopicHierarchy( - observe?: 'response', - reportProgress?: boolean, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable>; - public getTopicHierarchy( - observe?: 'events', - reportProgress?: boolean, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable>; - public getTopicHierarchy( - observe: any = 'body', - reportProgress: boolean = false, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable { - let localVarHeaders = this.defaultHeaders; + let localVarHeaders = this.defaultHeaders; - const localVarHttpHeaderAcceptSelected: string | undefined = - options?.httpHeaderAccept ?? - this.configuration.selectHeaderAccept(['application/json']); - if (localVarHttpHeaderAcceptSelected !== undefined) { - localVarHeaders = localVarHeaders.set( - 'Accept', - localVarHttpHeaderAcceptSelected, - ); + 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/inse-service/topics/hierarchy`; + 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 + } + ); } - const localVarHttpContext: HttpContext = - options?.context ?? new HttpContext(); + /** + * Returns a list of OpenAlex topics. + * @endpoint get /api/topics + * @param search Full-text search, for example \'machine learning\'. + * @param filter OpenAlex filter, for example \'domain.id:1,works_count:>1000\'. + * @param sort Sort field, for example \'works_count:desc\'. + * @param groupBy OpenAlex group_by field, for example \'domain.id\'. + * @param perPage Results per page. + * @param page Page number. Use cursor for deep pagination. + * @param cursor Cursor pagination token. Use \'*\' to start. + * @param sample Random sample size. Cannot be combined with sort or page. + * @param select Comma-separated fields to return. + * @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 listTopics(search?: string, filter?: string, sort?: string, groupBy?: string, perPage?: number, page?: number, cursor?: string, sample?: number, select?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; + public listTopics(search?: string, filter?: string, sort?: string, groupBy?: string, perPage?: number, page?: number, cursor?: string, sample?: number, select?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public listTopics(search?: string, filter?: string, sort?: string, groupBy?: string, perPage?: number, page?: number, cursor?: string, sample?: number, select?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public listTopics(search?: string, filter?: string, sort?: string, groupBy?: string, perPage?: number, page?: number, cursor?: string, sample?: number, select?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { - const localVarTransferCache: boolean = options?.transferCache ?? true; + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + search, 'search'); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + filter, 'filter'); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + sort, 'sort'); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + groupBy, 'group_by'); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + perPage, 'per_page'); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + page, 'page'); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + cursor, 'cursor'); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + sample, 'sample'); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + select, 'select'); - 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 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/topics`; + 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 + } + ); } - let localVarPath = `/api/inse-service/topics/hierarchy`; - 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, - }, - ); - } + /** + * Semantic / vector search for topics using a keyword/sentence. + * @endpoint get /api/topics/vector-search + * @param query Word or sentence to search by similarity. + * @param limit Maximum number of topics to return. + * @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 vectorSearchTopics(query: string, limit?: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; + public vectorSearchTopics(query: string, limit?: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public vectorSearchTopics(query: string, limit?: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public vectorSearchTopics(query: string, limit?: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { + if (query === null || query === undefined) { + throw new Error('Required parameter query was null or undefined when calling vectorSearchTopics.'); + } - /** - * Returns a list of OpenAlex topics. - * @endpoint get /api/topics - * @param search Full-text search, for example \'machine learning\'. - * @param filter OpenAlex filter, for example \'domain.id:1,works_count:>1000\'. - * @param sort Sort field, for example \'works_count:desc\'. - * @param groupBy OpenAlex group_by field, for example \'domain.id\'. - * @param perPage Results per page. - * @param page Page number. Use cursor for deep pagination. - * @param cursor Cursor pagination token. Use \'*\' to start. - * @param sample Random sample size. Cannot be combined with sort or page. - * @param select Comma-separated fields to return. - * @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 listTopics( - search?: string, - filter?: string, - sort?: string, - groupBy?: string, - perPage?: number, - page?: number, - cursor?: string, - sample?: number, - select?: string, - observe?: 'body', - reportProgress?: boolean, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable; - public listTopics( - search?: string, - filter?: string, - sort?: string, - groupBy?: string, - perPage?: number, - page?: number, - cursor?: string, - sample?: number, - select?: string, - observe?: 'response', - reportProgress?: boolean, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable>; - public listTopics( - search?: string, - filter?: string, - sort?: string, - groupBy?: string, - perPage?: number, - page?: number, - cursor?: string, - sample?: number, - select?: string, - observe?: 'events', - reportProgress?: boolean, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable>; - public listTopics( - search?: string, - filter?: string, - sort?: string, - groupBy?: string, - perPage?: number, - page?: number, - cursor?: string, - sample?: number, - select?: 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, - search, - 'search', - ); - localVarQueryParameters = this.addToHttpParams( - localVarQueryParameters, - filter, - 'filter', - ); - localVarQueryParameters = this.addToHttpParams( - localVarQueryParameters, - sort, - 'sort', - ); - localVarQueryParameters = this.addToHttpParams( - localVarQueryParameters, - groupBy, - 'group_by', - ); - localVarQueryParameters = this.addToHttpParams( - localVarQueryParameters, - perPage, - 'per_page', - ); - localVarQueryParameters = this.addToHttpParams( - localVarQueryParameters, - page, - 'page', - ); - localVarQueryParameters = this.addToHttpParams( - localVarQueryParameters, - cursor, - 'cursor', - ); - localVarQueryParameters = this.addToHttpParams( - localVarQueryParameters, - sample, - 'sample', - ); - localVarQueryParameters = this.addToHttpParams( - localVarQueryParameters, - select, - 'select', - ); + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + query, 'query'); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + limit, 'limit'); - let localVarHeaders = this.defaultHeaders; + let localVarHeaders = this.defaultHeaders; - const localVarHttpHeaderAcceptSelected: string | undefined = - options?.httpHeaderAccept ?? - this.configuration.selectHeaderAccept(['application/json']); - if (localVarHttpHeaderAcceptSelected !== undefined) { - localVarHeaders = localVarHeaders.set( - 'Accept', - localVarHttpHeaderAcceptSelected, - ); + 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/topics/vector-search`; + 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 + } + ); } - 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/topics`; - 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, - }, - ); - } - - /** - * Semantic / vector search for topics using a keyword/sentence. - * @endpoint get /api/topics/vector-search - * @param query Word or sentence to search by similarity. - * @param limit Maximum number of topics to return. - * @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 vectorSearchTopics( - query: string, - limit?: number, - observe?: 'body', - reportProgress?: boolean, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable; - public vectorSearchTopics( - query: string, - limit?: number, - observe?: 'response', - reportProgress?: boolean, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable>; - public vectorSearchTopics( - query: string, - limit?: number, - observe?: 'events', - reportProgress?: boolean, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable>; - public vectorSearchTopics( - query: string, - limit?: number, - observe: any = 'body', - reportProgress: boolean = false, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable { - if (query === null || query === undefined) { - throw new Error( - 'Required parameter query was null or undefined when calling vectorSearchTopics.', - ); - } - - let localVarQueryParameters = new HttpParams({ encoder: this.encoder }); - localVarQueryParameters = this.addToHttpParams( - localVarQueryParameters, - query, - 'query', - ); - localVarQueryParameters = this.addToHttpParams( - localVarQueryParameters, - limit, - 'limit', - ); - - 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/topics/vector-search`; - 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/works.service.ts b/webapp/src/app/api/api/works.service.ts index 20d855a3..9d95c5d8 100644 --- a/webapp/src/app/api/api/works.service.ts +++ b/webapp/src/app/api/api/works.service.ts @@ -1,7 +1,7 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,18 +9,12 @@ */ /* 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'; +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 { HTTPValidationError } from '../model/hTTPValidationError'; @@ -36,691 +30,365 @@ import { WorkPage } from '../model/workPage'; import { WorksListResponse } from '../model/worksListResponse'; // @ts-ignore -import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; -import { Configuration } from '../configuration'; +import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; +import { Configuration } from '../configuration'; import { BaseService } from '../api.base.service'; + + @Injectable({ - providedIn: 'root', + providedIn: 'root' }) export class WorksService extends BaseService { - constructor( - protected httpClient: HttpClient, - @Optional() @Inject(BASE_PATH) basePath: string | string[], - @Optional() configuration?: Configuration, - ) { - super(basePath, configuration); - } - /** - * Returns all works for an author. - * @endpoint get /api/works/{author_id}/all - * @param authorId The author id, for example A5023888391. - * @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 getAllAuthorWorks( - authorId: string, - observe?: 'body', - reportProgress?: boolean, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable; - public getAllAuthorWorks( - authorId: string, - observe?: 'response', - reportProgress?: boolean, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable>; - public getAllAuthorWorks( - authorId: string, - observe?: 'events', - reportProgress?: boolean, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable>; - public getAllAuthorWorks( - authorId: string, - observe: any = 'body', - reportProgress: boolean = false, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable { - if (authorId === null || authorId === undefined) { - throw new Error( - 'Required parameter authorId was null or undefined when calling getAllAuthorWorks.', - ); + constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) { + super(basePath, configuration); } - let localVarHeaders = this.defaultHeaders; + /** + * Returns all works for an author. + * @endpoint get /api/works/{author_id}/all + * @param authorId The author id, for example A5023888391. + * @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 getAllAuthorWorks(authorId: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; + public getAllAuthorWorks(authorId: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public getAllAuthorWorks(authorId: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public getAllAuthorWorks(authorId: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { + if (authorId === null || authorId === undefined) { + throw new Error('Required parameter authorId was null or undefined when calling getAllAuthorWorks.'); + } - // authentication (bearer) required - localVarHeaders = this.configuration.addCredentialToHeaders( - 'bearer', - 'Authorization', - localVarHeaders, - 'Bearer ', - ); + let localVarHeaders = this.defaultHeaders; - const localVarHttpHeaderAcceptSelected: string | undefined = - options?.httpHeaderAccept ?? - this.configuration.selectHeaderAccept(['application/json']); - if (localVarHttpHeaderAcceptSelected !== undefined) { - localVarHeaders = localVarHeaders.set( - 'Accept', - localVarHttpHeaderAcceptSelected, - ); - } + // authentication (bearer) required + localVarHeaders = this.configuration.addCredentialToHeaders('bearer', 'Authorization', localVarHeaders, 'Bearer '); - const localVarHttpContext: HttpContext = - options?.context ?? new HttpContext(); + const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ + 'application/json' + ]); + if (localVarHttpHeaderAcceptSelected !== undefined) { + localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); + } - const localVarTransferCache: boolean = options?.transferCache ?? true; + const localVarHttpContext: HttpContext = options?.context ?? new HttpContext(); - 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'; - } - } + const localVarTransferCache: boolean = options?.transferCache ?? true; - let localVarPath = `/api/works/${this.configuration.encodeParam({ name: 'authorId', value: authorId, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/all`; - 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 page of works for an author. - * @endpoint get /api/works/{author_id} - * @param authorId The author id, for example A5023888391. - * @param page The page number. - * @param size The page size. - * @param publicationYear Filter by publication year. Can be repeated. - * @param type Filter by publication type. Can be repeated. - * @param language Filter by language code. Can be repeated. - * @param institutionId Filter by OpenAlex institution id. Can be repeated. - * @param topicId Filter by OpenAlex topic id. Can be repeated. - * @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 getAuthorWorks( - authorId: string, - page?: number, - size?: number, - publicationYear?: Array, - type?: Array, - language?: Array, - institutionId?: Array, - topicId?: Array, - observe?: 'body', - reportProgress?: boolean, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable; - public getAuthorWorks( - authorId: string, - page?: number, - size?: number, - publicationYear?: Array, - type?: Array, - language?: Array, - institutionId?: Array, - topicId?: Array, - observe?: 'response', - reportProgress?: boolean, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable>; - public getAuthorWorks( - authorId: string, - page?: number, - size?: number, - publicationYear?: Array, - type?: Array, - language?: Array, - institutionId?: Array, - topicId?: Array, - observe?: 'events', - reportProgress?: boolean, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable>; - public getAuthorWorks( - authorId: string, - page?: number, - size?: number, - publicationYear?: Array, - type?: Array, - language?: Array, - institutionId?: Array, - topicId?: Array, - observe: any = 'body', - reportProgress: boolean = false, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable { - if (authorId === null || authorId === undefined) { - throw new Error( - 'Required parameter authorId was null or undefined when calling getAuthorWorks.', - ); - } + 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 localVarQueryParameters = new HttpParams({ encoder: this.encoder }); - localVarQueryParameters = this.addToHttpParams( - localVarQueryParameters, - page, - 'page', - ); - localVarQueryParameters = this.addToHttpParams( - localVarQueryParameters, - size, - 'size', - ); - if (publicationYear) { - publicationYear.forEach((element) => { - localVarQueryParameters = this.addToHttpParams( - localVarQueryParameters, - element, - 'publication_year', + let localVarPath = `/api/works/${this.configuration.encodeParam({name: "authorId", value: authorId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/all`; + 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 + } ); - }); } - if (type) { - type.forEach((element) => { - localVarQueryParameters = this.addToHttpParams( - localVarQueryParameters, - element, - 'type', + + /** + * Returns a page of works for an author. + * @endpoint get /api/works/{author_id} + * @param authorId The author id, for example A5023888391. + * @param page The page number. + * @param size The page size. + * @param publicationYear Filter by publication year. Can be repeated. + * @param type Filter by publication type. Can be repeated. + * @param language Filter by language code. Can be repeated. + * @param institutionId Filter by OpenAlex institution id. Can be repeated. + * @param topicId Filter by OpenAlex topic id. Can be repeated. + * @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 getAuthorWorks(authorId: string, page?: number, size?: number, publicationYear?: Array, type?: Array, language?: Array, institutionId?: Array, topicId?: Array, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; + public getAuthorWorks(authorId: string, page?: number, size?: number, publicationYear?: Array, type?: Array, language?: Array, institutionId?: Array, topicId?: Array, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public getAuthorWorks(authorId: string, page?: number, size?: number, publicationYear?: Array, type?: Array, language?: Array, institutionId?: Array, topicId?: Array, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public getAuthorWorks(authorId: string, page?: number, size?: number, publicationYear?: Array, type?: Array, language?: Array, institutionId?: Array, topicId?: Array, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { + if (authorId === null || authorId === undefined) { + throw new Error('Required parameter authorId was null or undefined when calling getAuthorWorks.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + page, 'page'); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + size, 'size'); + if (publicationYear) { + publicationYear.forEach((element) => { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + element, 'publication_year'); + }) + } + if (type) { + type.forEach((element) => { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + element, 'type'); + }) + } + if (language) { + language.forEach((element) => { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + element, 'language'); + }) + } + if (institutionId) { + institutionId.forEach((element) => { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + element, 'institution_id'); + }) + } + if (topicId) { + topicId.forEach((element) => { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + element, 'topic_id'); + }) + } + + let localVarHeaders = this.defaultHeaders; + + // authentication (bearer) required + localVarHeaders = this.configuration.addCredentialToHeaders('bearer', '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/works/${this.configuration.encodeParam({name: "authorId", value: authorId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`; + 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 + } ); - }); } - if (language) { - language.forEach((element) => { - localVarQueryParameters = this.addToHttpParams( - localVarQueryParameters, - element, - 'language', + + /** + * Returns work counts per primary topic for an author. + * @endpoint get /api/works/{author_id}/primary-topic-counts + * @param authorId The author id, for example A5023888391. + * @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 getPrimaryTopicCountsByAuthor(authorId: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public getPrimaryTopicCountsByAuthor(authorId: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>>; + public getPrimaryTopicCountsByAuthor(authorId: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>>; + public getPrimaryTopicCountsByAuthor(authorId: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { + if (authorId === null || authorId === undefined) { + throw new Error('Required parameter authorId was null or undefined when calling getPrimaryTopicCountsByAuthor.'); + } + + let localVarHeaders = this.defaultHeaders; + + // authentication (bearer) required + localVarHeaders = this.configuration.addCredentialToHeaders('bearer', '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/works/${this.configuration.encodeParam({name: "authorId", value: authorId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/primary-topic-counts`; + 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 + } ); - }); } - if (institutionId) { - institutionId.forEach((element) => { - localVarQueryParameters = this.addToHttpParams( - localVarQueryParameters, - element, - 'institution_id', + + /** + * Returns topics grouped by publication year for an author. + * @endpoint get /api/works/{author_id}/topics-by-time + * @param authorId The author id, for example A5023888391. + * @param maxTopicsPerYear The maximum number of topics per year. + * @param targetPublications Target number of publications used for the timeline. Complete years are always included. + * @param includeAll If true, all publications are used for the timeline. + * @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 getTopicsByTimeByAuthor(authorId: string, maxTopicsPerYear?: number, targetPublications?: number, includeAll?: boolean, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; + public getTopicsByTimeByAuthor(authorId: string, maxTopicsPerYear?: number, targetPublications?: number, includeAll?: boolean, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public getTopicsByTimeByAuthor(authorId: string, maxTopicsPerYear?: number, targetPublications?: number, includeAll?: boolean, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public getTopicsByTimeByAuthor(authorId: string, maxTopicsPerYear?: number, targetPublications?: number, includeAll?: boolean, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { + if (authorId === null || authorId === undefined) { + throw new Error('Required parameter authorId was null or undefined when calling getTopicsByTimeByAuthor.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + maxTopicsPerYear, 'max_topics_per_year'); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + targetPublications, 'target_publications'); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + includeAll, 'include_all'); + + let localVarHeaders = this.defaultHeaders; + + // authentication (bearer) required + localVarHeaders = this.configuration.addCredentialToHeaders('bearer', '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/works/${this.configuration.encodeParam({name: "authorId", value: authorId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/topics-by-time`; + 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 + } ); - }); } - if (topicId) { - topicId.forEach((element) => { - localVarQueryParameters = this.addToHttpParams( - localVarQueryParameters, - element, - 'topic_id', + + /** + * Returns one publication. + * @endpoint get /api/works/detail/{work_id} + * @param workId The OpenAlex work id, for example W2741809807. + * @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 getWork(workId: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; + public getWork(workId: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public getWork(workId: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public getWork(workId: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { + if (workId === null || workId === undefined) { + throw new Error('Required parameter workId was null or undefined when calling getWork.'); + } + + let localVarHeaders = this.defaultHeaders; + + // authentication (bearer) required + localVarHeaders = this.configuration.addCredentialToHeaders('bearer', '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/works/detail/${this.configuration.encodeParam({name: "workId", value: workId, 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 + } ); - }); } - let localVarHeaders = this.defaultHeaders; - - // authentication (bearer) required - localVarHeaders = this.configuration.addCredentialToHeaders( - 'bearer', - '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/works/${this.configuration.encodeParam({ name: 'authorId', value: authorId, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`; - 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 work counts per primary topic for an author. - * @endpoint get /api/works/{author_id}/primary-topic-counts - * @param authorId The author id, for example A5023888391. - * @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 getPrimaryTopicCountsByAuthor( - authorId: string, - observe?: 'body', - reportProgress?: boolean, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable>; - public getPrimaryTopicCountsByAuthor( - authorId: string, - observe?: 'response', - reportProgress?: boolean, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable>>; - public getPrimaryTopicCountsByAuthor( - authorId: string, - observe?: 'events', - reportProgress?: boolean, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable>>; - public getPrimaryTopicCountsByAuthor( - authorId: string, - observe: any = 'body', - reportProgress: boolean = false, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable { - if (authorId === null || authorId === undefined) { - throw new Error( - 'Required parameter authorId was null or undefined when calling getPrimaryTopicCountsByAuthor.', - ); - } - - let localVarHeaders = this.defaultHeaders; - - // authentication (bearer) required - localVarHeaders = this.configuration.addCredentialToHeaders( - 'bearer', - '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/works/${this.configuration.encodeParam({ name: 'authorId', value: authorId, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/primary-topic-counts`; - 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 topics grouped by publication year for an author. - * @endpoint get /api/works/{author_id}/topics-by-time - * @param authorId The author id, for example A5023888391. - * @param maxTopicsPerYear The maximum number of topics per year. - * @param targetPublications Target number of publications used for the timeline. Complete years are always included. - * @param includeAll If true, all publications are used for the timeline. - * @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 getTopicsByTimeByAuthor( - authorId: string, - maxTopicsPerYear?: number, - targetPublications?: number, - includeAll?: boolean, - observe?: 'body', - reportProgress?: boolean, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable; - public getTopicsByTimeByAuthor( - authorId: string, - maxTopicsPerYear?: number, - targetPublications?: number, - includeAll?: boolean, - observe?: 'response', - reportProgress?: boolean, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable>; - public getTopicsByTimeByAuthor( - authorId: string, - maxTopicsPerYear?: number, - targetPublications?: number, - includeAll?: boolean, - observe?: 'events', - reportProgress?: boolean, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable>; - public getTopicsByTimeByAuthor( - authorId: string, - maxTopicsPerYear?: number, - targetPublications?: number, - includeAll?: boolean, - observe: any = 'body', - reportProgress: boolean = false, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable { - if (authorId === null || authorId === undefined) { - throw new Error( - 'Required parameter authorId was null or undefined when calling getTopicsByTimeByAuthor.', - ); - } - - let localVarQueryParameters = new HttpParams({ encoder: this.encoder }); - localVarQueryParameters = this.addToHttpParams( - localVarQueryParameters, - maxTopicsPerYear, - 'max_topics_per_year', - ); - localVarQueryParameters = this.addToHttpParams( - localVarQueryParameters, - targetPublications, - 'target_publications', - ); - localVarQueryParameters = this.addToHttpParams( - localVarQueryParameters, - includeAll, - 'include_all', - ); - - let localVarHeaders = this.defaultHeaders; - - // authentication (bearer) required - localVarHeaders = this.configuration.addCredentialToHeaders( - 'bearer', - '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/works/${this.configuration.encodeParam({ name: 'authorId', value: authorId, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/topics-by-time`; - 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 one publication. - * @endpoint get /api/works/detail/{work_id} - * @param workId The OpenAlex work id, for example W2741809807. - * @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 getWork( - workId: string, - observe?: 'body', - reportProgress?: boolean, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable; - public getWork( - workId: string, - observe?: 'response', - reportProgress?: boolean, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable>; - public getWork( - workId: string, - observe?: 'events', - reportProgress?: boolean, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable>; - public getWork( - workId: string, - observe: any = 'body', - reportProgress: boolean = false, - options?: { - httpHeaderAccept?: 'application/json'; - context?: HttpContext; - transferCache?: boolean; - }, - ): Observable { - if (workId === null || workId === undefined) { - throw new Error( - 'Required parameter workId was null or undefined when calling getWork.', - ); - } - - let localVarHeaders = this.defaultHeaders; - - // authentication (bearer) required - localVarHeaders = this.configuration.addCredentialToHeaders( - 'bearer', - '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/works/detail/${this.configuration.encodeParam({ name: 'workId', value: workId, 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, - }); - } } diff --git a/webapp/src/app/api/configuration.ts b/webapp/src/app/api/configuration.ts index 664630b3..c39ce2d6 100644 --- a/webapp/src/app/api/configuration.ts +++ b/webapp/src/app/api/configuration.ts @@ -1,219 +1,193 @@ -import { - HttpHeaders, - HttpParams, - HttpParameterCodec, -} from '@angular/common/http'; +import { HttpHeaders, HttpParams, HttpParameterCodec } from '@angular/common/http'; import { Param } from './param'; export interface ConfigurationParameters { - /** - * @deprecated Since 5.0. Use credentials instead - */ - apiKeys?: { [key: string]: string }; - username?: string; - password?: string; - /** - * @deprecated Since 5.0. Use credentials instead - */ - accessToken?: string | (() => string); - basePath?: string; - withCredentials?: boolean; - /** - * Takes care of encoding query- and form-parameters. - */ - encoder?: HttpParameterCodec; - /** - * Override the default method for encoding path parameters in various - * styles. - *

- * See {@link README.md} for more details - *

- */ - encodeParam?: (param: Param) => string; - /** - * The keys are the names in the securitySchemes section of the OpenAPI - * document. They should map to the value used for authentication - * minus any standard prefixes such as 'Basic' or 'Bearer'. - */ - credentials?: { [key: string]: string | (() => string | undefined) }; + /** + * @deprecated Since 5.0. Use credentials instead + */ + apiKeys?: {[ key: string ]: string}; + username?: string; + password?: string; + /** + * @deprecated Since 5.0. Use credentials instead + */ + accessToken?: string | (() => string); + basePath?: string; + withCredentials?: boolean; + /** + * Takes care of encoding query- and form-parameters. + */ + encoder?: HttpParameterCodec; + /** + * Override the default method for encoding path parameters in various + * styles. + *

+ * See {@link README.md} for more details + *

+ */ + encodeParam?: (param: Param) => string; + /** + * The keys are the names in the securitySchemes section of the OpenAPI + * document. They should map to the value used for authentication + * minus any standard prefixes such as 'Basic' or 'Bearer'. + */ + credentials?: {[ key: string ]: string | (() => string | undefined)}; } export class Configuration { - /** - * @deprecated Since 5.0. Use credentials instead - */ - apiKeys?: { [key: string]: string }; - username?: string; - password?: string; - /** - * @deprecated Since 5.0. Use credentials instead - */ - accessToken?: string | (() => string); - basePath?: string; - withCredentials?: boolean; - /** - * Takes care of encoding query- and form-parameters. - */ - encoder?: HttpParameterCodec; - /** - * Encoding of various path parameter - * styles. - *

- * See {@link README.md} for more details - *

- */ - encodeParam: (param: Param) => string; - /** - * The keys are the names in the securitySchemes section of the OpenAPI - * document. They should map to the value used for authentication - * minus any standard prefixes such as 'Basic' or 'Bearer'. - */ - credentials: { [key: string]: string | (() => string | undefined) }; + /** + * @deprecated Since 5.0. Use credentials instead + */ + apiKeys?: {[ key: string ]: string}; + username?: string; + password?: string; + /** + * @deprecated Since 5.0. Use credentials instead + */ + accessToken?: string | (() => string); + basePath?: string; + withCredentials?: boolean; + /** + * Takes care of encoding query- and form-parameters. + */ + encoder?: HttpParameterCodec; + /** + * Encoding of various path parameter + * styles. + *

+ * See {@link README.md} for more details + *

+ */ + encodeParam: (param: Param) => string; + /** + * The keys are the names in the securitySchemes section of the OpenAPI + * document. They should map to the value used for authentication + * minus any standard prefixes such as 'Basic' or 'Bearer'. + */ + credentials: {[ key: string ]: string | (() => string | undefined)}; - constructor({ - accessToken, - apiKeys, - basePath, - credentials, - encodeParam, - encoder, - password, - username, - withCredentials, - }: ConfigurationParameters = {}) { - if (apiKeys) { - this.apiKeys = apiKeys; - } - if (username !== undefined) { - this.username = username; - } - if (password !== undefined) { - this.password = password; - } - if (accessToken !== undefined) { - this.accessToken = accessToken; - } - if (basePath !== undefined) { - this.basePath = basePath; - } - if (withCredentials !== undefined) { - this.withCredentials = withCredentials; - } - if (encoder) { - this.encoder = encoder; - } - this.encodeParam = - encodeParam ?? ((param) => this.defaultEncodeParam(param)); - this.credentials = credentials ?? {}; +constructor({ accessToken, apiKeys, basePath, credentials, encodeParam, encoder, password, username, withCredentials }: ConfigurationParameters = {}) { + if (apiKeys) { + this.apiKeys = apiKeys; + } + if (username !== undefined) { + this.username = username; + } + if (password !== undefined) { + this.password = password; + } + if (accessToken !== undefined) { + this.accessToken = accessToken; + } + if (basePath !== undefined) { + this.basePath = basePath; + } + if (withCredentials !== undefined) { + this.withCredentials = withCredentials; + } + if (encoder) { + this.encoder = encoder; + } + this.encodeParam = encodeParam ?? (param => this.defaultEncodeParam(param)); + this.credentials = credentials ?? {}; - // init default bearer credential - if (!this.credentials['bearer']) { - this.credentials['bearer'] = () => { - return typeof this.accessToken === 'function' - ? this.accessToken() - : this.accessToken; - }; - } - } - - /** - * Select the correct content-type to use for a request. - * Uses {@link Configuration#isJsonMime} to determine the correct content-type. - * If no content type is found return the first found type if the contentTypes is not empty - * @param contentTypes - the array of content types that are available for selection - * @returns the selected content-type or undefined if no selection could be made. - */ - public selectHeaderContentType(contentTypes: string[]): string | undefined { - if (contentTypes.length === 0) { - return undefined; + // init default bearer credential + if (!this.credentials['bearer']) { + this.credentials['bearer'] = () => { + return typeof this.accessToken === 'function' + ? this.accessToken() + : this.accessToken; + }; + } } - const type = contentTypes.find((x: string) => this.isJsonMime(x)); - if (type === undefined) { - return contentTypes[0]; - } - return type; - } + /** + * Select the correct content-type to use for a request. + * Uses {@link Configuration#isJsonMime} to determine the correct content-type. + * If no content type is found return the first found type if the contentTypes is not empty + * @param contentTypes - the array of content types that are available for selection + * @returns the selected content-type or undefined if no selection could be made. + */ + public selectHeaderContentType (contentTypes: string[]): string | undefined { + if (contentTypes.length === 0) { + return undefined; + } - /** - * Select the correct accept content-type to use for a request. - * Uses {@link Configuration#isJsonMime} to determine the correct accept content-type. - * If no content type is found return the first found type if the contentTypes is not empty - * @param accepts - the array of content types that are available for selection. - * @returns the selected content-type or undefined if no selection could be made. - */ - public selectHeaderAccept(accepts: string[]): string | undefined { - if (accepts.length === 0) { - return undefined; + const type = contentTypes.find((x: string) => this.isJsonMime(x)); + if (type === undefined) { + return contentTypes[0]; + } + return type; } - const type = accepts.find((x: string) => this.isJsonMime(x)); - if (type === undefined) { - return accepts[0]; + /** + * Select the correct accept content-type to use for a request. + * Uses {@link Configuration#isJsonMime} to determine the correct accept content-type. + * If no content type is found return the first found type if the contentTypes is not empty + * @param accepts - the array of content types that are available for selection. + * @returns the selected content-type or undefined if no selection could be made. + */ + public selectHeaderAccept(accepts: string[]): string | undefined { + if (accepts.length === 0) { + return undefined; + } + + const type = accepts.find((x: string) => this.isJsonMime(x)); + if (type === undefined) { + return accepts[0]; + } + return type; } - return type; - } - /** - * Check if the given MIME is a JSON MIME. - * JSON MIME examples: - * application/json - * application/json; charset=UTF8 - * APPLICATION/JSON - * application/vnd.company+json - * @param mime - MIME (Multipurpose Internet Mail Extensions) - * @return True if the given MIME is JSON, false otherwise. - */ - public isJsonMime(mime: string): boolean { - const jsonMime: RegExp = new RegExp( - '^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', - 'i', - ); - return ( - mime !== null && - (jsonMime.test(mime) || - mime.toLowerCase() === 'application/json-patch+json') - ); - } + /** + * Check if the given MIME is a JSON MIME. + * JSON MIME examples: + * application/json + * application/json; charset=UTF8 + * APPLICATION/JSON + * application/vnd.company+json + * @param mime - MIME (Multipurpose Internet Mail Extensions) + * @return True if the given MIME is JSON, false otherwise. + */ + public isJsonMime(mime: string): boolean { + const jsonMime: RegExp = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i'); + return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json'); + } - public lookupCredential(key: string): string | undefined { - const value = this.credentials[key]; - return typeof value === 'function' ? value() : value; - } + public lookupCredential(key: string): string | undefined { + const value = this.credentials[key]; + return typeof value === 'function' + ? value() + : value; + } - public addCredentialToHeaders( - credentialKey: string, - headerName: string, - headers: HttpHeaders, - prefix?: string, - ): HttpHeaders { - const value = this.lookupCredential(credentialKey); - return value ? headers.set(headerName, (prefix ?? '') + value) : headers; - } + public addCredentialToHeaders(credentialKey: string, headerName: string, headers: HttpHeaders, prefix?: string): HttpHeaders { + const value = this.lookupCredential(credentialKey); + return value + ? headers.set(headerName, (prefix ?? '') + value) + : headers; + } - public addCredentialToQuery( - credentialKey: string, - paramName: string, - query: HttpParams, - ): HttpParams { - const value = this.lookupCredential(credentialKey); - return value ? query.set(paramName, value) : query; - } + public addCredentialToQuery(credentialKey: string, paramName: string, query: HttpParams): HttpParams { + const value = this.lookupCredential(credentialKey); + return value + ? query.set(paramName, value) + : query; + } - private defaultEncodeParam(param: Param): string { - // This implementation exists as fallback for missing configuration - // and for backwards compatibility to older typescript-angular generator versions. - // It only works for the 'simple' parameter style. - // Date-handling only works for the 'date-time' format. - // All other styles and Date-formats are probably handled incorrectly. - // - // But: if that's all you need (i.e.: the most common use-case): no need for customization! + private defaultEncodeParam(param: Param): string { + // This implementation exists as fallback for missing configuration + // and for backwards compatibility to older typescript-angular generator versions. + // It only works for the 'simple' parameter style. + // Date-handling only works for the 'date-time' format. + // All other styles and Date-formats are probably handled incorrectly. + // + // But: if that's all you need (i.e.: the most common use-case): no need for customization! - const value = - param.dataFormat === 'date-time' && param.value instanceof Date - ? (param.value as Date).toISOString() - : param.value; + const value = param.dataFormat === 'date-time' && param.value instanceof Date + ? (param.value as Date).toISOString() + : param.value; - return encodeURIComponent(String(value)); - } + return encodeURIComponent(String(value)); + } } diff --git a/webapp/src/app/api/encoder.ts b/webapp/src/app/api/encoder.ts index 889ef00d..138c4d5c 100644 --- a/webapp/src/app/api/encoder.ts +++ b/webapp/src/app/api/encoder.ts @@ -5,16 +5,16 @@ import { HttpParameterCodec } from '@angular/common/http'; * Workaround for https://github.com/angular/angular/issues/18261 */ export class CustomHttpParameterCodec implements HttpParameterCodec { - encodeKey(k: string): string { - return encodeURIComponent(k); - } - encodeValue(v: string): string { - return encodeURIComponent(v); - } - decodeKey(k: string): string { - return decodeURIComponent(k); - } - decodeValue(v: string): string { - return decodeURIComponent(v); - } + encodeKey(k: string): string { + return encodeURIComponent(k); + } + encodeValue(v: string): string { + return encodeURIComponent(v); + } + decodeKey(k: string): string { + return decodeURIComponent(k); + } + decodeValue(v: string): string { + return decodeURIComponent(v); + } } diff --git a/webapp/src/app/api/model/accessGrant.ts b/webapp/src/app/api/model/accessGrant.ts index 0aa29f6f..ad1f537a 100644 --- a/webapp/src/app/api/model/accessGrant.ts +++ b/webapp/src/app/api/model/accessGrant.ts @@ -1,7 +1,7 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,10 +9,12 @@ */ import { AuthScope } from './authScope'; -export interface AccessGrant { - token_type: string; - access_token: string; - expires_in: number; - scope: AuthScope; - refresh_token: string; + +export interface AccessGrant { + token_type: string; + access_token: string; + expires_in: number; + scope: AuthScope; + refresh_token: string; } + diff --git a/webapp/src/app/api/model/authAccount.ts b/webapp/src/app/api/model/authAccount.ts index 179a3e67..0c76d8dc 100644 --- a/webapp/src/app/api/model/authAccount.ts +++ b/webapp/src/app/api/model/authAccount.ts @@ -1,15 +1,17 @@ /** * 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. */ -export interface AuthAccount { - i: number; - l: string; - o: number; + +export interface AuthAccount { + i: number; + l: string; + o: number; } + diff --git a/webapp/src/app/api/model/authScope.ts b/webapp/src/app/api/model/authScope.ts index 3ccd752e..65ffa9b5 100644 --- a/webapp/src/app/api/model/authScope.ts +++ b/webapp/src/app/api/model/authScope.ts @@ -1,7 +1,7 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,9 +9,11 @@ */ import { AuthAccount } from './authAccount'; -export interface AuthScope { - t: string; - a: AuthAccount; - d?: number | null; - r?: Array; + +export interface AuthScope { + t: string; + a: AuthAccount; + d?: number | null; + r?: Array; } + diff --git a/webapp/src/app/api/model/author.ts b/webapp/src/app/api/model/author.ts index 0a050590..9ba12273 100644 --- a/webapp/src/app/api/model/author.ts +++ b/webapp/src/app/api/model/author.ts @@ -1,7 +1,7 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -15,25 +15,27 @@ import { AuthorIds } from './authorIds'; import { AuthorSummaryStats } from './authorSummaryStats'; import { WorkTopic } from './workTopic'; + /** * A person who creates scholarly works */ -export interface Author { - id?: string | null; - orcid?: string | null; - display_name?: string | null; - display_name_alternatives?: Array | null; - longest_name?: string | null; - parsed_longest_name?: AuthorParsedLongestName | null; - works_count?: number | null; - cited_by_count?: number | null; - summary_stats?: AuthorSummaryStats | null; - affiliations?: Array | null; - last_known_institutions?: Array | null; - topics?: Array | null; - counts_by_year?: Array | null; - ids?: AuthorIds | null; - works_api_url?: string | null; - created_date?: string | null; - updated_date?: string | null; +export interface Author { + id?: string | null; + orcid?: string | null; + display_name?: string | null; + display_name_alternatives?: Array | null; + longest_name?: string | null; + parsed_longest_name?: AuthorParsedLongestName | null; + works_count?: number | null; + cited_by_count?: number | null; + summary_stats?: AuthorSummaryStats | null; + affiliations?: Array | null; + last_known_institutions?: Array | null; + topics?: Array | null; + counts_by_year?: Array | null; + ids?: AuthorIds | null; + works_api_url?: string | null; + created_date?: string | null; + updated_date?: string | null; } + diff --git a/webapp/src/app/api/model/authorAffiliationsInner.ts b/webapp/src/app/api/model/authorAffiliationsInner.ts index d1e8f764..270443ff 100644 --- a/webapp/src/app/api/model/authorAffiliationsInner.ts +++ b/webapp/src/app/api/model/authorAffiliationsInner.ts @@ -1,7 +1,7 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,10 +9,12 @@ */ import { DehydratedInstitution } from './dehydratedInstitution'; + /** * AuthorAffiliationsInner */ -export interface AuthorAffiliationsInner { - institution?: DehydratedInstitution | null; - years?: Array | null; +export interface AuthorAffiliationsInner { + institution?: DehydratedInstitution | null; + years?: Array | null; } + diff --git a/webapp/src/app/api/model/authorCountsByYearInner.ts b/webapp/src/app/api/model/authorCountsByYearInner.ts index 1fac5b45..d16c7c21 100644 --- a/webapp/src/app/api/model/authorCountsByYearInner.ts +++ b/webapp/src/app/api/model/authorCountsByYearInner.ts @@ -1,18 +1,20 @@ /** * 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. */ + /** * AuthorCountsByYearInner */ -export interface AuthorCountsByYearInner { - year?: number | null; - works_count?: number | null; - cited_by_count?: number | null; +export interface AuthorCountsByYearInner { + year?: number | null; + works_count?: number | null; + cited_by_count?: number | null; } + diff --git a/webapp/src/app/api/model/authorIds.ts b/webapp/src/app/api/model/authorIds.ts index 0b079d33..9235a207 100644 --- a/webapp/src/app/api/model/authorIds.ts +++ b/webapp/src/app/api/model/authorIds.ts @@ -1,18 +1,20 @@ /** * 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. */ + /** * External identifiers: */ -export interface AuthorIds { - openalex?: string | null; - orcid?: string | null; - scopus?: string | null; +export interface AuthorIds { + openalex?: string | null; + orcid?: string | null; + scopus?: string | null; } + diff --git a/webapp/src/app/api/model/authorNetworkNode.ts b/webapp/src/app/api/model/authorNetworkNode.ts index f67c7148..aee98d47 100644 --- a/webapp/src/app/api/model/authorNetworkNode.ts +++ b/webapp/src/app/api/model/authorNetworkNode.ts @@ -1,7 +1,7 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,18 +9,22 @@ */ import { CollaborationNetworkNodeType } from './collaborationNetworkNodeType'; -export interface AuthorNetworkNode { - /** - * 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. - */ - raw_id: string; - /** - * The display name of the node. - */ - display_name: string; - /** - * The category of the node, either \'author\', \'institution\', or \'work\'. - */ - category: CollaborationNetworkNodeType; + +export interface AuthorNetworkNode { + /** + * 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. + */ + raw_id: string; + /** + * The display name of the node. + */ + display_name: string; + /** + * The category of the node, either \'author\', \'institution\', or \'work\'. + */ + category: CollaborationNetworkNodeType; } -export namespace AuthorNetworkNode {} +export namespace AuthorNetworkNode { +} + + diff --git a/webapp/src/app/api/model/authorParsedLongestName.ts b/webapp/src/app/api/model/authorParsedLongestName.ts index f08df27d..f49e04be 100644 --- a/webapp/src/app/api/model/authorParsedLongestName.ts +++ b/webapp/src/app/api/model/authorParsedLongestName.ts @@ -1,20 +1,22 @@ /** * 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. */ + /** * The longest name parsed into its component parts. */ -export interface AuthorParsedLongestName { - first?: string | null; - middle?: string | null; - last?: string | null; - suffix?: string | null; - nickname?: string | null; +export interface AuthorParsedLongestName { + first?: string | null; + middle?: string | null; + last?: string | null; + suffix?: string | null; + nickname?: string | null; } + diff --git a/webapp/src/app/api/model/authorPositionCount.ts b/webapp/src/app/api/model/authorPositionCount.ts index 989d2c18..a02e3749 100644 --- a/webapp/src/app/api/model/authorPositionCount.ts +++ b/webapp/src/app/api/model/authorPositionCount.ts @@ -1,16 +1,18 @@ /** * 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. */ -export interface AuthorPositionCount { - first?: number; - middle?: number; - last?: number; - unknown?: number; + +export interface AuthorPositionCount { + first?: number; + middle?: number; + last?: number; + unknown?: number; } + diff --git a/webapp/src/app/api/model/authorSummaryStats.ts b/webapp/src/app/api/model/authorSummaryStats.ts index 63c35c31..1cfc0bdb 100644 --- a/webapp/src/app/api/model/authorSummaryStats.ts +++ b/webapp/src/app/api/model/authorSummaryStats.ts @@ -1,7 +1,7 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,11 +9,13 @@ */ import { Model2YrMeanCitedness } from './model2YrMeanCitedness'; + /** * Citation metrics: */ -export interface AuthorSummaryStats { - '2yr_mean_citedness'?: Model2YrMeanCitedness | null; - h_index?: number | null; - i10_index?: number | null; +export interface AuthorSummaryStats { + '2yr_mean_citedness'?: Model2YrMeanCitedness | null; + h_index?: number | null; + i10_index?: number | null; } + diff --git a/webapp/src/app/api/model/authorsFilterProperties.ts b/webapp/src/app/api/model/authorsFilterProperties.ts index 50795f2a..7312558f 100644 --- a/webapp/src/app/api/model/authorsFilterProperties.ts +++ b/webapp/src/app/api/model/authorsFilterProperties.ts @@ -1,24 +1,26 @@ /** * 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. */ -export interface AuthorsFilterProperties { - /** - * The list of raw institution IDs to include in the collaboration network. If empty, all institutions will be included. - */ - allowed_institutions?: Array; - /** - * The minimum number of collaborations required for an author to be included in the collaboration network. - */ - min_collaborations?: number; - /** - * The maximum number of collaborations allowed for an author to be included in the collaboration network. - */ - max_collaborations?: number; + +export interface AuthorsFilterProperties { + /** + * The list of raw institution IDs to include in the collaboration network. If empty, all institutions will be included. + */ + allowed_institutions?: Array; + /** + * The minimum number of collaborations required for an author to be included in the collaboration network. + */ + min_collaborations?: number; + /** + * The maximum number of collaborations allowed for an author to be included in the collaboration network. + */ + max_collaborations?: number; } + diff --git a/webapp/src/app/api/model/authorsListResponse.ts b/webapp/src/app/api/model/authorsListResponse.ts index bb1a602c..d309ae43 100644 --- a/webapp/src/app/api/model/authorsListResponse.ts +++ b/webapp/src/app/api/model/authorsListResponse.ts @@ -1,7 +1,7 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -11,11 +11,13 @@ import { Meta } from './meta'; import { Author } from './author'; import { GroupByResult } from './groupByResult'; + /** * AuthorsListResponse */ -export interface AuthorsListResponse { - meta?: Meta | null; - results?: Array | null; - group_by?: Array | null; +export interface AuthorsListResponse { + meta?: Meta | null; + results?: Array | null; + group_by?: Array | null; } + diff --git a/webapp/src/app/api/model/authorship.ts b/webapp/src/app/api/model/authorship.ts index f1b9d48e..db3a0bf0 100644 --- a/webapp/src/app/api/model/authorship.ts +++ b/webapp/src/app/api/model/authorship.ts @@ -1,7 +1,7 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -10,15 +10,17 @@ import { DehydratedInstitution } from './dehydratedInstitution'; import { DehydratedAuthor } from './dehydratedAuthor'; + /** * Author and their affiliation for a work */ -export interface Authorship { - author_position?: string | null; - author?: DehydratedAuthor | null; - institutions?: Array | null; - countries?: Array | null; - is_corresponding?: boolean | null; - raw_author_name?: string | null; - raw_affiliation_strings?: Array | null; +export interface Authorship { + author_position?: string | null; + author?: DehydratedAuthor | null; + institutions?: Array | null; + countries?: Array | null; + is_corresponding?: boolean | null; + raw_author_name?: string | null; + raw_affiliation_strings?: Array | null; } + diff --git a/webapp/src/app/api/model/autocompleteResponse.ts b/webapp/src/app/api/model/autocompleteResponse.ts index 8b52b300..e220f57b 100644 --- a/webapp/src/app/api/model/autocompleteResponse.ts +++ b/webapp/src/app/api/model/autocompleteResponse.ts @@ -1,7 +1,7 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -10,10 +10,12 @@ import { AutocompleteResponseMeta } from './autocompleteResponseMeta'; import { AutocompleteResponseResultsInner } from './autocompleteResponseResultsInner'; + /** * AutocompleteResponse */ -export interface AutocompleteResponse { - meta?: AutocompleteResponseMeta | null; - results?: Array | null; +export interface AutocompleteResponse { + meta?: AutocompleteResponseMeta | null; + results?: Array | null; } + diff --git a/webapp/src/app/api/model/autocompleteResponseMeta.ts b/webapp/src/app/api/model/autocompleteResponseMeta.ts index 5bf94a57..2e080d39 100644 --- a/webapp/src/app/api/model/autocompleteResponseMeta.ts +++ b/webapp/src/app/api/model/autocompleteResponseMeta.ts @@ -1,17 +1,19 @@ /** * 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. */ + /** * AutocompleteResponseMeta */ -export interface AutocompleteResponseMeta { - count?: number | null; - db_response_time_ms?: number | null; +export interface AutocompleteResponseMeta { + count?: number | null; + db_response_time_ms?: number | null; } + diff --git a/webapp/src/app/api/model/autocompleteResponseResultsInner.ts b/webapp/src/app/api/model/autocompleteResponseResultsInner.ts index 0fa956b7..99ba71fe 100644 --- a/webapp/src/app/api/model/autocompleteResponseResultsInner.ts +++ b/webapp/src/app/api/model/autocompleteResponseResultsInner.ts @@ -1,22 +1,24 @@ /** * 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. */ + /** * AutocompleteResponseResultsInner */ -export interface AutocompleteResponseResultsInner { - id?: string | null; - display_name?: string | null; - hint?: string | null; - cited_by_count?: number | null; - works_count?: number | null; - entity_type?: string | null; - external_id?: string | null; +export interface AutocompleteResponseResultsInner { + id?: string | null; + display_name?: string | null; + hint?: string | null; + cited_by_count?: number | null; + works_count?: number | null; + entity_type?: string | null; + external_id?: string | null; } + diff --git a/webapp/src/app/api/model/award.ts b/webapp/src/app/api/model/award.ts index a461c971..4e3b5cc9 100644 --- a/webapp/src/app/api/model/award.ts +++ b/webapp/src/app/api/model/award.ts @@ -1,21 +1,23 @@ /** * 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. */ + /** * Award */ -export interface Award { - id?: string | null; - display_name?: string | null; - funder_award_id?: string | null; - funder_id?: string | null; - funder_display_name?: string | null; - doi?: string | null; +export interface Award { + id?: string | null; + display_name?: string | null; + funder_award_id?: string | null; + funder_id?: string | null; + funder_display_name?: string | null; + doi?: string | null; } + diff --git a/webapp/src/app/api/model/bundProject.ts b/webapp/src/app/api/model/bundProject.ts index 9f291399..3463aa78 100644 --- a/webapp/src/app/api/model/bundProject.ts +++ b/webapp/src/app/api/model/bundProject.ts @@ -1,40 +1,42 @@ /** * 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. */ -export interface BundProject { - funding_code?: string | null; - department?: string | null; - department_fullname?: string | null; - referat?: string | null; - project_sponsor?: string | null; - project_sponsor_fullname?: string | null; - work_unit?: string | null; - recipient?: string | null; - municipal_code?: string | null; - municipality?: string | null; - place?: string | null; - state?: string | null; - country?: string | null; - implementing_agency?: string | null; - topic?: string | null; - performance_plan_system?: string | null; - performance_plan_system_text?: string | null; - funding_start?: string | null; - funding_end?: string | null; - grant_amount?: number | null; - funding_profile?: string | null; - joint_project?: string | null; - funding_type?: string | null; - publication_date?: string | null; - unix_timestamp?: number | null; - date?: string | null; - new?: boolean | null; - duration?: string | null; + +export interface BundProject { + funding_code?: string | null; + department?: string | null; + department_fullname?: string | null; + referat?: string | null; + project_sponsor?: string | null; + project_sponsor_fullname?: string | null; + work_unit?: string | null; + recipient?: string | null; + municipal_code?: string | null; + municipality?: string | null; + place?: string | null; + state?: string | null; + country?: string | null; + implementing_agency?: string | null; + topic?: string | null; + performance_plan_system?: string | null; + performance_plan_system_text?: string | null; + funding_start?: string | null; + funding_end?: string | null; + grant_amount?: number | null; + funding_profile?: string | null; + joint_project?: string | null; + funding_type?: string | null; + publication_date?: string | null; + unix_timestamp?: number | null; + date?: string | null; + 'new'?: boolean | null; + duration?: string | null; } + diff --git a/webapp/src/app/api/model/bundProjectPage.ts b/webapp/src/app/api/model/bundProjectPage.ts index 6c38e7a6..10514bce 100644 --- a/webapp/src/app/api/model/bundProjectPage.ts +++ b/webapp/src/app/api/model/bundProjectPage.ts @@ -1,7 +1,7 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,21 +9,23 @@ */ import { BundProject } from './bundProject'; -export interface BundProjectPage { - /** - * The current page number. - */ - page?: number; - /** - * The requested page size. - */ - size?: number; - /** - * The total number of items. - */ - total?: number; - /** - * The bund projects on this page. - */ - elements?: Array; + +export interface BundProjectPage { + /** + * The current page number. + */ + page?: number; + /** + * The requested page size. + */ + size?: number; + /** + * The total number of items. + */ + total?: number; + /** + * The bund projects on this page. + */ + elements?: Array; } + diff --git a/webapp/src/app/api/model/categoryNested.ts b/webapp/src/app/api/model/categoryNested.ts index 2e92a624..8815022d 100644 --- a/webapp/src/app/api/model/categoryNested.ts +++ b/webapp/src/app/api/model/categoryNested.ts @@ -1,7 +1,7 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,16 +9,18 @@ */ import { DisplayCodeSplittedNested } from './displayCodeSplittedNested'; -export interface CategoryNested { - category?: string | null; - code?: string | null; - display_code?: string | null; - /** - * A tokenized hierarchy breakdown of the display code represented as an array of strings. - */ - display_code_splitted?: Array; - /** - * Granular, nested breakdowns of the split parts of the display code. - */ - display_code_splitted_nested?: Array; + +export interface CategoryNested { + category?: string | null; + code?: string | null; + display_code?: string | null; + /** + * A tokenized hierarchy breakdown of the display code represented as an array of strings. + */ + display_code_splitted?: Array; + /** + * Granular, nested breakdowns of the split parts of the display code. + */ + display_code_splitted_nested?: Array; } + diff --git a/webapp/src/app/api/model/collaborationNetwork.ts b/webapp/src/app/api/model/collaborationNetwork.ts index a2fbdc5b..e439c061 100644 --- a/webapp/src/app/api/model/collaborationNetwork.ts +++ b/webapp/src/app/api/model/collaborationNetwork.ts @@ -1,7 +1,7 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -13,29 +13,31 @@ import { CollaborationNetworkEdge } from './collaborationNetworkEdge'; import { InstitutionNetworkNode } from './institutionNetworkNode'; import { AuthorNetworkNode } from './authorNetworkNode'; -export interface CollaborationNetwork { - /** - * The raw person ID of the person whose collaboration network this is. - */ - raw_person_id: string; - /** - * The work nodes in the collaboration network. - */ - work_nodes: Array; - /** - * The author nodes in the collaboration network. - */ - author_nodes: Array; - /** - * The institution nodes in the collaboration network. - */ - institution_nodes: Array; - /** - * The collaboration edges in the collaboration network. A collaboration edge represents a collaboration between two nodes. A -> W and A -> I - */ - collaboration_edges: Array; - /** - * The filter information for the collaboration network, including the minimum and maximum publication years of the works in the collaboration network. - */ - filter_information: FilterInformation; + +export interface CollaborationNetwork { + /** + * The raw person ID of the person whose collaboration network this is. + */ + raw_person_id: string; + /** + * The work nodes in the collaboration network. + */ + work_nodes: Array; + /** + * The author nodes in the collaboration network. + */ + author_nodes: Array; + /** + * The institution nodes in the collaboration network. + */ + institution_nodes: Array; + /** + * The collaboration edges in the collaboration network. A collaboration edge represents a collaboration between two nodes. A -> W and A -> I + */ + collaboration_edges: Array; + /** + * The filter information for the collaboration network, including the minimum and maximum publication years of the works in the collaboration network. + */ + filter_information: FilterInformation; } + diff --git a/webapp/src/app/api/model/collaborationNetworkEdge.ts b/webapp/src/app/api/model/collaborationNetworkEdge.ts index baffb178..16fb5fc6 100644 --- a/webapp/src/app/api/model/collaborationNetworkEdge.ts +++ b/webapp/src/app/api/model/collaborationNetworkEdge.ts @@ -1,20 +1,22 @@ /** * 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. */ -export interface CollaborationNetworkEdge { - /** - * The raw ID of the source node. - */ - raw_source_id: string; - /** - * The raw ID of the target node. - */ - raw_target_id: string; + +export interface CollaborationNetworkEdge { + /** + * The raw ID of the source node. + */ + raw_source_id: string; + /** + * The raw ID of the target node. + */ + raw_target_id: string; } + diff --git a/webapp/src/app/api/model/collaborationNetworkNodeType.ts b/webapp/src/app/api/model/collaborationNetworkNodeType.ts index 3e673f35..752e35b0 100644 --- a/webapp/src/app/api/model/collaborationNetworkNodeType.ts +++ b/webapp/src/app/api/model/collaborationNetworkNodeType.ts @@ -1,17 +1,18 @@ /** * 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. */ + export const CollaborationNetworkNodeType = { - Author: 'author', - Institution: 'institution', - Work: 'work', + Author: 'author', + Institution: 'institution', + Work: 'work' } as const; -export type CollaborationNetworkNodeType = - (typeof CollaborationNetworkNodeType)[keyof typeof CollaborationNetworkNodeType]; +export type CollaborationNetworkNodeType = typeof CollaborationNetworkNodeType[keyof typeof CollaborationNetworkNodeType]; + diff --git a/webapp/src/app/api/model/costUsd.ts b/webapp/src/app/api/model/costUsd.ts index 494cb094..c7bcbee8 100644 --- a/webapp/src/app/api/model/costUsd.ts +++ b/webapp/src/app/api/model/costUsd.ts @@ -1,14 +1,17 @@ /** * 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. */ + /** * Cost of this request in USD */ -export interface CostUsd {} +export interface CostUsd { +} + diff --git a/webapp/src/app/api/model/customAuthor.ts b/webapp/src/app/api/model/customAuthor.ts index 58943756..1117cd53 100644 --- a/webapp/src/app/api/model/customAuthor.ts +++ b/webapp/src/app/api/model/customAuthor.ts @@ -1,7 +1,7 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -15,23 +15,25 @@ import { AuthorIds } from './authorIds'; import { AuthorSummaryStats } from './authorSummaryStats'; import { WorkTopic } from './workTopic'; -export interface CustomAuthor { - id?: string | null; - orcid?: string | null; - display_name?: string | null; - display_name_alternatives?: Array | null; - longest_name?: string | null; - parsed_longest_name?: AuthorParsedLongestName | null; - works_count?: number | null; - cited_by_count?: number | null; - summary_stats?: AuthorSummaryStats | null; - affiliations?: Array | null; - last_known_institutions?: Array | null; - topics?: Array | null; - counts_by_year?: Array | null; - ids?: AuthorIds | null; - works_api_url?: string | null; - created_date?: string | null; - updated_date?: string | null; - relevance_rating?: string | null; + +export interface CustomAuthor { + id?: string | null; + orcid?: string | null; + display_name?: string | null; + display_name_alternatives?: Array | null; + longest_name?: string | null; + parsed_longest_name?: AuthorParsedLongestName | null; + works_count?: number | null; + cited_by_count?: number | null; + summary_stats?: AuthorSummaryStats | null; + affiliations?: Array | null; + last_known_institutions?: Array | null; + topics?: Array | null; + counts_by_year?: Array | null; + ids?: AuthorIds | null; + works_api_url?: string | null; + created_date?: string | null; + updated_date?: string | null; + relevance_rating?: string | null; } + diff --git a/webapp/src/app/api/model/customAuthorsListResponse.ts b/webapp/src/app/api/model/customAuthorsListResponse.ts index d1017811..f6eac14b 100644 --- a/webapp/src/app/api/model/customAuthorsListResponse.ts +++ b/webapp/src/app/api/model/customAuthorsListResponse.ts @@ -1,7 +1,7 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -12,9 +12,11 @@ import { CustomAuthor } from './customAuthor'; import { Author } from './author'; import { GroupByResult } from './groupByResult'; -export interface CustomAuthorsListResponse { - meta?: Meta | null; - results?: Array | null; - group_by?: Array | null; - placeholder?: CustomAuthor | null; + +export interface CustomAuthorsListResponse { + meta?: Meta | null; + results?: Array | null; + group_by?: Array | null; + placeholder?: CustomAuthor | null; } + diff --git a/webapp/src/app/api/model/dehydratedAuthor.ts b/webapp/src/app/api/model/dehydratedAuthor.ts index 350718ef..4d3817f1 100644 --- a/webapp/src/app/api/model/dehydratedAuthor.ts +++ b/webapp/src/app/api/model/dehydratedAuthor.ts @@ -1,18 +1,20 @@ /** * 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. */ + /** * [Dehydrated Author](/api-reference/authors#the-dehydratedauthor-object) — reduced-field version used in nested contexts */ -export interface DehydratedAuthor { - id?: string | null; - display_name?: string | null; - orcid?: string | null; +export interface DehydratedAuthor { + id?: string | null; + display_name?: string | null; + orcid?: string | null; } + diff --git a/webapp/src/app/api/model/dehydratedFunder.ts b/webapp/src/app/api/model/dehydratedFunder.ts index c4231c13..b134bbb1 100644 --- a/webapp/src/app/api/model/dehydratedFunder.ts +++ b/webapp/src/app/api/model/dehydratedFunder.ts @@ -1,18 +1,20 @@ /** * 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. */ + /** * [Dehydrated Funder](/api-reference/funders) — reduced-field version used in nested contexts */ -export interface DehydratedFunder { - id?: string | null; - display_name?: string | null; - ror?: string | null; +export interface DehydratedFunder { + id?: string | null; + display_name?: string | null; + ror?: string | null; } + diff --git a/webapp/src/app/api/model/dehydratedInstitution.ts b/webapp/src/app/api/model/dehydratedInstitution.ts index 956fc03e..7b6c9824 100644 --- a/webapp/src/app/api/model/dehydratedInstitution.ts +++ b/webapp/src/app/api/model/dehydratedInstitution.ts @@ -1,21 +1,23 @@ /** * 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. */ + /** * [Dehydrated Institution](/api-reference/institutions#the-dehydratedinstitution-object) — reduced-field version used in nested contexts */ -export interface DehydratedInstitution { - id?: string | null; - display_name?: string | null; - ror?: string | null; - country_code?: string | null; - type?: string | null; - lineage?: Array | null; +export interface DehydratedInstitution { + id?: string | null; + display_name?: string | null; + ror?: string | null; + country_code?: string | null; + type?: string | null; + lineage?: Array | null; } + diff --git a/webapp/src/app/api/model/dehydratedSource.ts b/webapp/src/app/api/model/dehydratedSource.ts index b672b5dd..ae714846 100644 --- a/webapp/src/app/api/model/dehydratedSource.ts +++ b/webapp/src/app/api/model/dehydratedSource.ts @@ -1,26 +1,28 @@ /** * 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. */ + /** * [Dehydrated Source](/api-reference/sources#the-dehydratedsource-object) — reduced-field version used in nested contexts */ -export interface DehydratedSource { - id?: string | null; - display_name?: string | null; - issn_l?: string | null; - issn?: Array | null; - is_oa?: boolean | null; - is_in_doaj?: boolean | null; - is_core?: boolean | null; - host_organization?: string | null; - host_organization_name?: string | null; - host_organization_lineage?: Array | null; - type?: string | null; +export interface DehydratedSource { + id?: string | null; + display_name?: string | null; + issn_l?: string | null; + issn?: Array | null; + is_oa?: boolean | null; + is_in_doaj?: boolean | null; + is_core?: boolean | null; + host_organization?: string | null; + host_organization_name?: string | null; + host_organization_lineage?: Array | null; + type?: string | null; } + diff --git a/webapp/src/app/api/model/dfgProjectPage.ts b/webapp/src/app/api/model/dfgProjectPage.ts index a05d81d2..8f67e170 100644 --- a/webapp/src/app/api/model/dfgProjectPage.ts +++ b/webapp/src/app/api/model/dfgProjectPage.ts @@ -1,7 +1,7 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,21 +9,23 @@ */ import { DfgProjectSummary } from './dfgProjectSummary'; -export interface DfgProjectPage { - /** - * The current page number. - */ - page?: number; - /** - * The requested page size. - */ - size?: number; - /** - * The total number of items. - */ - total?: number; - /** - * The DFG projects on this page. - */ - elements?: Array; + +export interface DfgProjectPage { + /** + * The current page number. + */ + page?: number; + /** + * The requested page size. + */ + size?: number; + /** + * The total number of items. + */ + total?: number; + /** + * The DFG projects on this page. + */ + elements?: Array; } + diff --git a/webapp/src/app/api/model/dfgProjectSummary.ts b/webapp/src/app/api/model/dfgProjectSummary.ts index 10c05a08..145dba4a 100644 --- a/webapp/src/app/api/model/dfgProjectSummary.ts +++ b/webapp/src/app/api/model/dfgProjectSummary.ts @@ -1,25 +1,27 @@ /** * 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. */ -export interface DfgProjectSummary { - /** - * The unique identifier of the DFG project. - */ - id: string; - link?: string | null; - title?: string | null; - professional_classification?: string | null; - funding_start?: string | null; - funding_end?: string | null; - /** - * The names of the researchers involved in the DFG project. - */ - names?: Array; + +export interface DfgProjectSummary { + /** + * The unique identifier of the DFG project. + */ + id: string; + link?: string | null; + title?: string | null; + professional_classification?: string | null; + funding_start?: string | null; + funding_end?: string | null; + /** + * The names of the researchers involved in the DFG project. + */ + names?: Array; } + diff --git a/webapp/src/app/api/model/displayCodeSplittedNested.ts b/webapp/src/app/api/model/displayCodeSplittedNested.ts index 8d7317dc..ea2743bf 100644 --- a/webapp/src/app/api/model/displayCodeSplittedNested.ts +++ b/webapp/src/app/api/model/displayCodeSplittedNested.ts @@ -1,13 +1,15 @@ /** * 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. */ -export interface DisplayCodeSplittedNested { - single_display_code?: string | null; + +export interface DisplayCodeSplittedNested { + single_display_code?: string | null; } + diff --git a/webapp/src/app/api/model/euProject.ts b/webapp/src/app/api/model/euProject.ts index 66469d1f..9303df6c 100644 --- a/webapp/src/app/api/model/euProject.ts +++ b/webapp/src/app/api/model/euProject.ts @@ -1,7 +1,7 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -12,38 +12,40 @@ import { KeywordNested } from './keywordNested'; import { OrganizationNested } from './organizationNested'; import { CategoryNested } from './categoryNested'; -export interface EuProject { - acronym?: string | null; - /** - * Structured lists of classification categories and taxonomy mappings assigned to the project. - */ - categories_nested?: Array; - doc_number?: string | null; - doi?: string | null; - ec_max_contribution?: string | null; - end_date?: string | null; - funding_end?: string | null; - funding_start?: string | null; - id?: string | null; - keywords?: string | null; - /** - * Strictly tokenized and isolated keywords nested for targeted search engine aggregations. - */ - keywords_nested?: Array; - link?: string | null; - objective?: string | null; - /** - * The full roster of academic, public, or private organizations participating in the project consortium. - */ - organization_nested?: Array; - /** - * The nested historical line of EU funding frameworks and structural grants supporting this project. - */ - programme_nested?: Array; - source?: string | null; - start_date?: string | null; - status?: string | null; - teaser?: string | null; - title?: string | null; - total_cost?: string | null; + +export interface EuProject { + acronym?: string | null; + /** + * Structured lists of classification categories and taxonomy mappings assigned to the project. + */ + categories_nested?: Array; + doc_number?: string | null; + doi?: string | null; + ec_max_contribution?: string | null; + end_date?: string | null; + funding_end?: string | null; + funding_start?: string | null; + id?: string | null; + keywords?: string | null; + /** + * Strictly tokenized and isolated keywords nested for targeted search engine aggregations. + */ + keywords_nested?: Array; + link?: string | null; + objective?: string | null; + /** + * The full roster of academic, public, or private organizations participating in the project consortium. + */ + organization_nested?: Array; + /** + * The nested historical line of EU funding frameworks and structural grants supporting this project. + */ + programme_nested?: Array; + source?: string | null; + start_date?: string | null; + status?: string | null; + teaser?: string | null; + title?: string | null; + total_cost?: string | null; } + diff --git a/webapp/src/app/api/model/euProjectPage.ts b/webapp/src/app/api/model/euProjectPage.ts index 276e0b06..e03e1c0f 100644 --- a/webapp/src/app/api/model/euProjectPage.ts +++ b/webapp/src/app/api/model/euProjectPage.ts @@ -1,7 +1,7 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,21 +9,23 @@ */ import { EuProject } from './euProject'; -export interface EuProjectPage { - /** - * The current page number. - */ - page?: number; - /** - * The requested page size. - */ - size?: number; - /** - * The total number of items. - */ - total?: number; - /** - * The EU projects on this page. - */ - elements?: Array; + +export interface EuProjectPage { + /** + * The current page number. + */ + page?: number; + /** + * The requested page size. + */ + size?: number; + /** + * The total number of items. + */ + total?: number; + /** + * The EU projects on this page. + */ + elements?: Array; } + diff --git a/webapp/src/app/api/model/filterInformation.ts b/webapp/src/app/api/model/filterInformation.ts index 1c4af66d..b2078376 100644 --- a/webapp/src/app/api/model/filterInformation.ts +++ b/webapp/src/app/api/model/filterInformation.ts @@ -1,7 +1,7 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -10,21 +10,23 @@ import { InstitutionInformation } from './institutionInformation'; import { WorkTopicInformation } from './workTopicInformation'; -export interface FilterInformation { - /** - * The minimum publication year of the works in the collaboration network. - */ - min_possible_year: number; - /** - * The maximum publication year of the works in the collaboration network. - */ - max_possible_year: number; - /** - * The list of institutions associated with the works in the collaboration network. - */ - institutions: Array; - /** - * The list of topics associated with the works in the collaboration network. - */ - topics: Array; + +export interface FilterInformation { + /** + * The minimum publication year of the works in the collaboration network. + */ + min_possible_year: number; + /** + * The maximum publication year of the works in the collaboration network. + */ + max_possible_year: number; + /** + * The list of institutions associated with the works in the collaboration network. + */ + institutions: Array; + /** + * The list of topics associated with the works in the collaboration network. + */ + topics: Array; } + diff --git a/webapp/src/app/api/model/filterProperties.ts b/webapp/src/app/api/model/filterProperties.ts index 7caac0b6..608acab4 100644 --- a/webapp/src/app/api/model/filterProperties.ts +++ b/webapp/src/app/api/model/filterProperties.ts @@ -1,7 +1,7 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -10,11 +10,13 @@ import { WorksFilterProperties } from './worksFilterProperties'; import { AuthorsFilterProperties } from './authorsFilterProperties'; -export interface FilterProperties { - /** - * 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. - */ - filter_by?: string; - works_filter_properties: WorksFilterProperties | null; - authors_filter_properties: AuthorsFilterProperties | null; + +export interface FilterProperties { + /** + * 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. + */ + filter_by?: string; + works_filter_properties: WorksFilterProperties | null; + authors_filter_properties: AuthorsFilterProperties | null; } + diff --git a/webapp/src/app/api/model/funderByAuthor.ts b/webapp/src/app/api/model/funderByAuthor.ts index c62110e7..247e5629 100644 --- a/webapp/src/app/api/model/funderByAuthor.ts +++ b/webapp/src/app/api/model/funderByAuthor.ts @@ -1,7 +1,7 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -11,13 +11,15 @@ import { PublicationIdsByAuthorPosition } from './publicationIdsByAuthorPosition import { AuthorPositionCount } from './authorPositionCount'; import { PublicationDetailByFunder } from './publicationDetailByFunder'; -export interface FunderByAuthor { - funder_id?: string | null; - funder_name?: string | null; - publication_count: number; - author_position_count: AuthorPositionCount; - publication_ids: PublicationIdsByAuthorPosition; - publication_urls?: { [key: string]: string }; - publication_titles?: { [key: string]: string }; - publication_details?: { [key: string]: PublicationDetailByFunder }; + +export interface FunderByAuthor { + funder_id?: string | null; + funder_name?: string | null; + publication_count: number; + author_position_count: AuthorPositionCount; + publication_ids: PublicationIdsByAuthorPosition; + publication_urls?: { [key: string]: string; }; + publication_titles?: { [key: string]: string; }; + publication_details?: { [key: string]: PublicationDetailByFunder; }; } + diff --git a/webapp/src/app/api/model/fundersByAuthorResponse.ts b/webapp/src/app/api/model/fundersByAuthorResponse.ts index d6e0e02f..1286429e 100644 --- a/webapp/src/app/api/model/fundersByAuthorResponse.ts +++ b/webapp/src/app/api/model/fundersByAuthorResponse.ts @@ -1,7 +1,7 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,9 +9,11 @@ */ import { FunderByAuthor } from './funderByAuthor'; -export interface FundersByAuthorResponse { - author_id: string; - author_name?: string | null; - funder_count: number; - funders: Array; + +export interface FundersByAuthorResponse { + author_id: string; + author_name?: string | null; + funder_count: number; + funders: Array; } + diff --git a/webapp/src/app/api/model/fwci.ts b/webapp/src/app/api/model/fwci.ts index bd7eea69..0c0cf8de 100644 --- a/webapp/src/app/api/model/fwci.ts +++ b/webapp/src/app/api/model/fwci.ts @@ -1,14 +1,17 @@ /** * 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. */ + /** * Field-weighted Citation Impact, calculated as citations received / citations expected. */ -export interface Fwci {} +export interface Fwci { +} + diff --git a/webapp/src/app/api/model/groupByResult.ts b/webapp/src/app/api/model/groupByResult.ts index 98580663..68c51855 100644 --- a/webapp/src/app/api/model/groupByResult.ts +++ b/webapp/src/app/api/model/groupByResult.ts @@ -1,18 +1,20 @@ /** * 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. */ + /** * GroupByResult */ -export interface GroupByResult { - key?: string | null; - key_display_name?: string | null; - count?: number | null; +export interface GroupByResult { + key?: string | null; + key_display_name?: string | null; + count?: number | null; } + diff --git a/webapp/src/app/api/model/hTTPValidationError.ts b/webapp/src/app/api/model/hTTPValidationError.ts index c8e65c3e..f624be37 100644 --- a/webapp/src/app/api/model/hTTPValidationError.ts +++ b/webapp/src/app/api/model/hTTPValidationError.ts @@ -1,7 +1,7 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,6 +9,8 @@ */ import { ValidationError } from './validationError'; -export interface HTTPValidationError { - detail?: Array; + +export interface HTTPValidationError { + detail?: Array; } + diff --git a/webapp/src/app/api/model/identityGrant.ts b/webapp/src/app/api/model/identityGrant.ts index 4bf172b8..9ec3fe50 100644 --- a/webapp/src/app/api/model/identityGrant.ts +++ b/webapp/src/app/api/model/identityGrant.ts @@ -1,7 +1,7 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,9 +9,11 @@ */ import { AuthScope } from './authScope'; -export interface IdentityGrant { - token_type: string; - access_token: string; - expires_in: number; - scope: AuthScope; + +export interface IdentityGrant { + token_type: string; + access_token: string; + expires_in: number; + scope: AuthScope; } + diff --git a/webapp/src/app/api/model/institution.ts b/webapp/src/app/api/model/institution.ts index c099fc57..6b1a5778 100644 --- a/webapp/src/app/api/model/institution.ts +++ b/webapp/src/app/api/model/institution.ts @@ -1,7 +1,7 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -12,28 +12,30 @@ import { AuthorCountsByYearInner } from './authorCountsByYearInner'; import { AuthorSummaryStats } from './authorSummaryStats'; import { InstitutionGeo } from './institutionGeo'; + /** * A university, research organization, or other affiliation */ -export interface Institution { - id?: string | null; - ror?: string | null; - display_name?: string | null; - country_code?: string | null; - type?: string | null; - homepage_url?: string | null; - image_url?: string | null; - image_thumbnail_url?: string | null; - display_name_acronyms?: Array | null; - display_name_alternatives?: Array | null; - works_count?: number | null; - cited_by_count?: number | null; - summary_stats?: AuthorSummaryStats | null; - geo?: InstitutionGeo | null; - lineage?: Array | null; - ids?: InstitutionIds | null; - counts_by_year?: Array | null; - works_api_url?: string | null; - created_date?: string | null; - updated_date?: string | null; +export interface Institution { + id?: string | null; + ror?: string | null; + display_name?: string | null; + country_code?: string | null; + type?: string | null; + homepage_url?: string | null; + image_url?: string | null; + image_thumbnail_url?: string | null; + display_name_acronyms?: Array | null; + display_name_alternatives?: Array | null; + works_count?: number | null; + cited_by_count?: number | null; + summary_stats?: AuthorSummaryStats | null; + geo?: InstitutionGeo | null; + lineage?: Array | null; + ids?: InstitutionIds | null; + counts_by_year?: Array | null; + works_api_url?: string | null; + created_date?: string | null; + updated_date?: string | null; } + diff --git a/webapp/src/app/api/model/institutionGeo.ts b/webapp/src/app/api/model/institutionGeo.ts index b438d37c..949b73f4 100644 --- a/webapp/src/app/api/model/institutionGeo.ts +++ b/webapp/src/app/api/model/institutionGeo.ts @@ -1,7 +1,7 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -10,15 +10,17 @@ import { Latitude } from './latitude'; import { Longitude } from './longitude'; + /** * Location information: */ -export interface InstitutionGeo { - city?: string | null; - geonames_city_id?: string | null; - region?: string | null; - country_code?: string | null; - country?: string | null; - latitude?: Latitude | null; - longitude?: Longitude | null; +export interface InstitutionGeo { + city?: string | null; + geonames_city_id?: string | null; + region?: string | null; + country_code?: string | null; + country?: string | null; + latitude?: Latitude | null; + longitude?: Longitude | null; } + diff --git a/webapp/src/app/api/model/institutionIds.ts b/webapp/src/app/api/model/institutionIds.ts index fd952098..93d801e1 100644 --- a/webapp/src/app/api/model/institutionIds.ts +++ b/webapp/src/app/api/model/institutionIds.ts @@ -1,21 +1,23 @@ /** * 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. */ + /** * External identifiers: */ -export interface InstitutionIds { - openalex?: string | null; - ror?: string | null; - mag?: number | null; - grid?: string | null; - wikipedia?: string | null; - wikidata?: string | null; +export interface InstitutionIds { + openalex?: string | null; + ror?: string | null; + mag?: number | null; + grid?: string | null; + wikipedia?: string | null; + wikidata?: string | null; } + diff --git a/webapp/src/app/api/model/institutionInformation.ts b/webapp/src/app/api/model/institutionInformation.ts index 9e12986d..e287b0fa 100644 --- a/webapp/src/app/api/model/institutionInformation.ts +++ b/webapp/src/app/api/model/institutionInformation.ts @@ -1,20 +1,22 @@ /** * 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. */ -export interface InstitutionInformation { - /** - * The raw institution ID of the institution. - */ - raw_id: string; - /** - * The display name of the institution. - */ - display_name: string; + +export interface InstitutionInformation { + /** + * The raw institution ID of the institution. + */ + raw_id: string; + /** + * The display name of the institution. + */ + display_name: string; } + diff --git a/webapp/src/app/api/model/institutionNetworkNode.ts b/webapp/src/app/api/model/institutionNetworkNode.ts index 791645b7..a558a8cf 100644 --- a/webapp/src/app/api/model/institutionNetworkNode.ts +++ b/webapp/src/app/api/model/institutionNetworkNode.ts @@ -1,7 +1,7 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,18 +9,22 @@ */ import { CollaborationNetworkNodeType } from './collaborationNetworkNodeType'; -export interface InstitutionNetworkNode { - /** - * 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. - */ - raw_id: string; - /** - * The display name of the node. - */ - display_name: string; - /** - * The category of the node, either \'author\', \'institution\', or \'work\'. - */ - category: CollaborationNetworkNodeType; + +export interface InstitutionNetworkNode { + /** + * 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. + */ + raw_id: string; + /** + * The display name of the node. + */ + display_name: string; + /** + * The category of the node, either \'author\', \'institution\', or \'work\'. + */ + category: CollaborationNetworkNodeType; } -export namespace InstitutionNetworkNode {} +export namespace InstitutionNetworkNode { +} + + diff --git a/webapp/src/app/api/model/institutionPage.ts b/webapp/src/app/api/model/institutionPage.ts new file mode 100644 index 00000000..01267ee3 --- /dev/null +++ b/webapp/src/app/api/model/institutionPage.ts @@ -0,0 +1,31 @@ +/** + * 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. + */ +import { Institution } from './institution'; + + +export interface InstitutionPage { + /** + * List of institutions in the current page. + */ + elements?: Array; + /** + * Current page number. (0-indexed) + */ + page?: number; + /** + * Number of institutions per page. + */ + size?: number; + /** + * Total number of institutions matching the search criteria. + */ + total?: number; +} + diff --git a/webapp/src/app/api/model/institutionsListResponse.ts b/webapp/src/app/api/model/institutionsListResponse.ts index 0ac2c185..908d72fe 100644 --- a/webapp/src/app/api/model/institutionsListResponse.ts +++ b/webapp/src/app/api/model/institutionsListResponse.ts @@ -1,7 +1,7 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -11,11 +11,13 @@ import { Meta } from './meta'; import { Institution } from './institution'; import { GroupByResult } from './groupByResult'; + /** * InstitutionsListResponse */ -export interface InstitutionsListResponse { - meta?: Meta | null; - results?: Array | null; - group_by?: Array | null; +export interface InstitutionsListResponse { + meta?: Meta | null; + results?: Array | null; + group_by?: Array | null; } + diff --git a/webapp/src/app/api/model/item.ts b/webapp/src/app/api/model/item.ts index 377f3a81..cc33194a 100644 --- a/webapp/src/app/api/model/item.ts +++ b/webapp/src/app/api/model/item.ts @@ -1,24 +1,26 @@ /** * 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. */ -export interface Item { - /** - * The id of the entity. - */ - id: number; - /** - * The name of the item. - */ - name: string; - /** - * The description of the item. - */ - description: string; + +export interface Item { + /** + * The id of the entity. + */ + id: number; + /** + * The name of the item. + */ + name: string; + /** + * The description of the item. + */ + description: string; } + diff --git a/webapp/src/app/api/model/itemCreate.ts b/webapp/src/app/api/model/itemCreate.ts index 36920a12..608d6910 100644 --- a/webapp/src/app/api/model/itemCreate.ts +++ b/webapp/src/app/api/model/itemCreate.ts @@ -1,20 +1,22 @@ /** * 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. */ -export interface ItemCreate { - /** - * The name of the item. - */ - name: string; - /** - * The description of the item. - */ - description: string; + +export interface ItemCreate { + /** + * The name of the item. + */ + name: string; + /** + * The description of the item. + */ + description: string; } + diff --git a/webapp/src/app/api/model/itemPage.ts b/webapp/src/app/api/model/itemPage.ts index 53a7140a..56595b8a 100644 --- a/webapp/src/app/api/model/itemPage.ts +++ b/webapp/src/app/api/model/itemPage.ts @@ -1,7 +1,7 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,21 +9,23 @@ */ import { Item } from './item'; -export interface ItemPage { - /** - * The elements of the page. - */ - elements?: Array; - /** - * The page offset in elements. - */ - offset?: number; - /** - * The total number of elements. - */ - total?: number; - /** - * The page size in elements. - */ - size?: number; + +export interface ItemPage { + /** + * The elements of the page. + */ + elements?: Array; + /** + * The page offset in elements. + */ + offset?: number; + /** + * The total number of elements. + */ + total?: number; + /** + * The page size in elements. + */ + size?: number; } + diff --git a/webapp/src/app/api/model/keywordNested.ts b/webapp/src/app/api/model/keywordNested.ts index f52bb734..52b088e8 100644 --- a/webapp/src/app/api/model/keywordNested.ts +++ b/webapp/src/app/api/model/keywordNested.ts @@ -1,13 +1,15 @@ /** * 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. */ -export interface KeywordNested { - keyword?: string | null; + +export interface KeywordNested { + keyword?: string | null; } + diff --git a/webapp/src/app/api/model/latitude.ts b/webapp/src/app/api/model/latitude.ts index 8fb58a9b..fe6b49aa 100644 --- a/webapp/src/app/api/model/latitude.ts +++ b/webapp/src/app/api/model/latitude.ts @@ -1,11 +1,14 @@ /** * 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. */ -export interface Latitude {} + +export interface Latitude { +} + diff --git a/webapp/src/app/api/model/location.ts b/webapp/src/app/api/model/location.ts index f92e2ffb..f207d751 100644 --- a/webapp/src/app/api/model/location.ts +++ b/webapp/src/app/api/model/location.ts @@ -1,7 +1,7 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,17 +9,19 @@ */ import { DehydratedSource } from './dehydratedSource'; + /** * Where a work is hosted */ -export interface Location { - is_oa?: boolean | null; - landing_page_url?: string | null; - pdf_url?: string | null; - source?: DehydratedSource | null; - license?: string | null; - license_id?: string | null; - version?: string | null; - is_accepted?: boolean | null; - is_published?: boolean | null; +export interface Location { + is_oa?: boolean | null; + landing_page_url?: string | null; + pdf_url?: string | null; + source?: DehydratedSource | null; + license?: string | null; + license_id?: string | null; + version?: string | null; + is_accepted?: boolean | null; + is_published?: boolean | null; } + diff --git a/webapp/src/app/api/model/longitude.ts b/webapp/src/app/api/model/longitude.ts index d222a6ff..b0d39fce 100644 --- a/webapp/src/app/api/model/longitude.ts +++ b/webapp/src/app/api/model/longitude.ts @@ -1,11 +1,14 @@ /** * 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. */ -export interface Longitude {} + +export interface Longitude { +} + diff --git a/webapp/src/app/api/model/meta.ts b/webapp/src/app/api/model/meta.ts index f9f56443..8481062a 100644 --- a/webapp/src/app/api/model/meta.ts +++ b/webapp/src/app/api/model/meta.ts @@ -1,7 +1,7 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,15 +9,17 @@ */ import { CostUsd } from './costUsd'; + /** * Metadata about the query results */ -export interface Meta { - count?: number | null; - db_response_time_ms?: number | null; - page?: number | null; - per_page?: number | null; - next_cursor?: string | null; - groups_count?: number | null; - cost_usd?: CostUsd | null; +export interface Meta { + count?: number | null; + db_response_time_ms?: number | null; + page?: number | null; + per_page?: number | null; + next_cursor?: string | null; + groups_count?: number | null; + cost_usd?: CostUsd | null; } + diff --git a/webapp/src/app/api/model/model2YrMeanCitedness.ts b/webapp/src/app/api/model/model2YrMeanCitedness.ts index d9c3d9df..67ec623c 100644 --- a/webapp/src/app/api/model/model2YrMeanCitedness.ts +++ b/webapp/src/app/api/model/model2YrMeanCitedness.ts @@ -1,11 +1,14 @@ /** * 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. */ -export interface Model2YrMeanCitedness {} + +export interface Model2YrMeanCitedness { +} + diff --git a/webapp/src/app/api/model/models.ts b/webapp/src/app/api/model/models.ts index 8caaecfd..ca45ff98 100644 --- a/webapp/src/app/api/model/models.ts +++ b/webapp/src/app/api/model/models.ts @@ -47,6 +47,7 @@ export * from './institutionGeo'; export * from './institutionIds'; export * from './institutionInformation'; export * from './institutionNetworkNode'; +export * from './institutionPage'; export * from './institutionsListResponse'; export * from './item'; export * from './itemCreate'; diff --git a/webapp/src/app/api/model/openAccess.ts b/webapp/src/app/api/model/openAccess.ts index 40d7b1d0..32a4ddd9 100644 --- a/webapp/src/app/api/model/openAccess.ts +++ b/webapp/src/app/api/model/openAccess.ts @@ -1,19 +1,21 @@ /** * 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. */ + /** * Open access information */ -export interface OpenAccess { - is_oa?: boolean | null; - oa_status?: string | null; - oa_url?: string | null; - any_repository_has_fulltext?: boolean | null; +export interface OpenAccess { + is_oa?: boolean | null; + oa_status?: string | null; + oa_url?: string | null; + any_repository_has_fulltext?: boolean | null; } + diff --git a/webapp/src/app/api/model/organizationNested.ts b/webapp/src/app/api/model/organizationNested.ts index 8c948d35..fdfed27e 100644 --- a/webapp/src/app/api/model/organizationNested.ts +++ b/webapp/src/app/api/model/organizationNested.ts @@ -1,18 +1,20 @@ /** * 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. */ -export interface OrganizationNested { - ec_contribution?: string | null; - id?: string | null; - name?: string | null; - net_ec_contribution?: string | null; - total_cost?: string | null; - organization_type?: string | null; + +export interface OrganizationNested { + ec_contribution?: string | null; + id?: string | null; + name?: string | null; + net_ec_contribution?: string | null; + total_cost?: string | null; + organization_type?: string | null; } + diff --git a/webapp/src/app/api/model/personBio.ts b/webapp/src/app/api/model/personBio.ts index b060c9a9..f7291e6f 100644 --- a/webapp/src/app/api/model/personBio.ts +++ b/webapp/src/app/api/model/personBio.ts @@ -1,16 +1,18 @@ /** * 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. */ -export interface PersonBio { - /** - * The generated biography. - */ - bio: string; + +export interface PersonBio { + /** + * The generated biography. + */ + bio: string; } + diff --git a/webapp/src/app/api/model/programmeNested.ts b/webapp/src/app/api/model/programmeNested.ts index 98710fdb..f13b7312 100644 --- a/webapp/src/app/api/model/programmeNested.ts +++ b/webapp/src/app/api/model/programmeNested.ts @@ -1,15 +1,17 @@ /** * 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. */ -export interface ProgrammeNested { - code?: string | null; - id?: string | null; - programme?: string | null; + +export interface ProgrammeNested { + code?: string | null; + id?: string | null; + programme?: string | null; } + diff --git a/webapp/src/app/api/model/publicationDetailByFunder.ts b/webapp/src/app/api/model/publicationDetailByFunder.ts index 0fd6b7c5..123ded7e 100644 --- a/webapp/src/app/api/model/publicationDetailByFunder.ts +++ b/webapp/src/app/api/model/publicationDetailByFunder.ts @@ -1,43 +1,45 @@ /** * 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. */ -export interface PublicationDetailByFunder { - id: string; - title: string; - abstract?: string | null; - doi?: string | null; - publication_year?: number | null; - publication_date?: string | null; - publication_type?: string | null; - language?: string | null; - publication_url?: string | null; - pdf_url?: string | null; - source_name?: string | null; - source_type?: string | null; - is_open_access?: boolean | null; - open_access_status?: string | null; - has_fulltext?: boolean | null; - license?: string | null; - cited_by_count?: number | null; - is_retracted?: boolean | null; - primary_topic?: string | null; - topic_field?: string | null; - topic_subfield?: string | null; - topic_domain?: string | null; - author_position?: string | null; - authors?: Array; - funder_names?: Array; - institutions?: Array; - countries?: Array; - topics?: Array; - keywords?: Array; - grant_labels?: Array; - counts_by_year?: Array; + +export interface PublicationDetailByFunder { + id: string; + title: string; + 'abstract'?: string | null; + doi?: string | null; + publication_year?: number | null; + publication_date?: string | null; + publication_type?: string | null; + language?: string | null; + publication_url?: string | null; + pdf_url?: string | null; + source_name?: string | null; + source_type?: string | null; + is_open_access?: boolean | null; + open_access_status?: string | null; + has_fulltext?: boolean | null; + license?: string | null; + cited_by_count?: number | null; + is_retracted?: boolean | null; + primary_topic?: string | null; + topic_field?: string | null; + topic_subfield?: string | null; + topic_domain?: string | null; + author_position?: string | null; + authors?: Array; + funder_names?: Array; + institutions?: Array; + countries?: Array; + topics?: Array; + keywords?: Array; + grant_labels?: Array; + counts_by_year?: Array; } + diff --git a/webapp/src/app/api/model/publicationIdsByAuthorPosition.ts b/webapp/src/app/api/model/publicationIdsByAuthorPosition.ts index d549f8ed..c35050ef 100644 --- a/webapp/src/app/api/model/publicationIdsByAuthorPosition.ts +++ b/webapp/src/app/api/model/publicationIdsByAuthorPosition.ts @@ -1,16 +1,18 @@ /** * 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. */ -export interface PublicationIdsByAuthorPosition { - first?: Array; - middle?: Array; - last?: Array; - unknown?: Array; + +export interface PublicationIdsByAuthorPosition { + first?: Array; + middle?: Array; + last?: Array; + unknown?: Array; } + diff --git a/webapp/src/app/api/model/publicationsByAuthorResponse.ts b/webapp/src/app/api/model/publicationsByAuthorResponse.ts index 35333880..5176fe39 100644 --- a/webapp/src/app/api/model/publicationsByAuthorResponse.ts +++ b/webapp/src/app/api/model/publicationsByAuthorResponse.ts @@ -1,19 +1,21 @@ /** * 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. */ -export interface PublicationsByAuthorResponse { - author_id: string; - page: number; - page_size: number; - total_works: number; - total: number; - results_count: number; - results: Array; + +export interface PublicationsByAuthorResponse { + author_id: string; + page: number; + page_size: number; + total_works: number; + total: number; + results_count: number; + results: Array; } + diff --git a/webapp/src/app/api/model/score.ts b/webapp/src/app/api/model/score.ts index 5b0b5935..fac39735 100644 --- a/webapp/src/app/api/model/score.ts +++ b/webapp/src/app/api/model/score.ts @@ -1,11 +1,14 @@ /** * 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. */ -export interface Score {} + +export interface Score { +} + diff --git a/webapp/src/app/api/model/topic.ts b/webapp/src/app/api/model/topic.ts index eaac16f6..9fc0ee63 100644 --- a/webapp/src/app/api/model/topic.ts +++ b/webapp/src/app/api/model/topic.ts @@ -1,7 +1,7 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -12,21 +12,23 @@ import { TopicIds } from './topicIds'; import { TopicSubfield } from './topicSubfield'; import { TopicField } from './topicField'; + /** * A research topic automatically assigned to works */ -export interface Topic { - id?: string | null; - display_name?: string | null; - description?: string | null; - keywords?: Array | null; - subfield?: TopicSubfield | null; - field?: TopicField | null; - domain?: TopicDomain | null; - works_count?: number | null; - cited_by_count?: number | null; - ids?: TopicIds | null; - works_api_url?: string | null; - created_date?: string | null; - updated_date?: string | null; +export interface Topic { + id?: string | null; + display_name?: string | null; + description?: string | null; + keywords?: Array | null; + subfield?: TopicSubfield | null; + field?: TopicField | null; + domain?: TopicDomain | null; + works_count?: number | null; + cited_by_count?: number | null; + ids?: TopicIds | null; + works_api_url?: string | null; + created_date?: string | null; + updated_date?: string | null; } + diff --git a/webapp/src/app/api/model/topicCount.ts b/webapp/src/app/api/model/topicCount.ts index 559242d9..520042ec 100644 --- a/webapp/src/app/api/model/topicCount.ts +++ b/webapp/src/app/api/model/topicCount.ts @@ -1,22 +1,24 @@ /** * 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. */ -export interface TopicCount { - id?: string | null; - /** - * The topic display name. - */ - name: string; - /** - * The number of occurrences. - */ - count?: number; - description?: string | null; + +export interface TopicCount { + id?: string | null; + /** + * The topic display name. + */ + name: string; + /** + * The number of occurrences. + */ + count?: number; + description?: string | null; } + diff --git a/webapp/src/app/api/model/topicDomain.ts b/webapp/src/app/api/model/topicDomain.ts index 573bef0d..652b1bca 100644 --- a/webapp/src/app/api/model/topicDomain.ts +++ b/webapp/src/app/api/model/topicDomain.ts @@ -1,17 +1,19 @@ /** * 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. */ + /** * The domain (highest level) containing this topic: */ -export interface TopicDomain { - id?: string | null; - display_name?: string | null; +export interface TopicDomain { + id?: string | null; + display_name?: string | null; } + diff --git a/webapp/src/app/api/model/topicField.ts b/webapp/src/app/api/model/topicField.ts index cd7d08c8..c7351675 100644 --- a/webapp/src/app/api/model/topicField.ts +++ b/webapp/src/app/api/model/topicField.ts @@ -1,17 +1,19 @@ /** * 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. */ + /** * The field (second level) containing this topic: */ -export interface TopicField { - id?: string | null; - display_name?: string | null; +export interface TopicField { + id?: string | null; + display_name?: string | null; } + diff --git a/webapp/src/app/api/model/topicIds.ts b/webapp/src/app/api/model/topicIds.ts index 22ca3343..4aa6738f 100644 --- a/webapp/src/app/api/model/topicIds.ts +++ b/webapp/src/app/api/model/topicIds.ts @@ -1,17 +1,19 @@ /** * 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. */ + /** * External identifiers: */ -export interface TopicIds { - openalex?: string | null; - wikipedia?: string | null; +export interface TopicIds { + openalex?: string | null; + wikipedia?: string | null; } + diff --git a/webapp/src/app/api/model/topicSubfield.ts b/webapp/src/app/api/model/topicSubfield.ts index 79f3c9c7..53d37842 100644 --- a/webapp/src/app/api/model/topicSubfield.ts +++ b/webapp/src/app/api/model/topicSubfield.ts @@ -1,17 +1,19 @@ /** * 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. */ + /** * The subfield (third level) containing this topic: */ -export interface TopicSubfield { - id?: string | null; - display_name?: string | null; +export interface TopicSubfield { + id?: string | null; + display_name?: string | null; } + diff --git a/webapp/src/app/api/model/topicsByTime.ts b/webapp/src/app/api/model/topicsByTime.ts index 007dc43d..8af7c9bb 100644 --- a/webapp/src/app/api/model/topicsByTime.ts +++ b/webapp/src/app/api/model/topicsByTime.ts @@ -1,7 +1,7 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,25 +9,27 @@ */ import { TopicsByYear } from './topicsByYear'; -export interface TopicsByTime { - /** - * Topics grouped by year. - */ - elements?: Array; - /** - * The number of years. - */ - total?: number; - /** - * True if the timeline contains only a limited subset of the author\'s publications. - */ - is_limited?: boolean; - /** - * The number of publications used to build the timeline. - */ - used_publications?: number; - /** - * The total number of publications found for this author. - */ - total_publications?: number; + +export interface TopicsByTime { + /** + * Topics grouped by year. + */ + elements?: Array; + /** + * The number of years. + */ + total?: number; + /** + * True if the timeline contains only a limited subset of the author\'s publications. + */ + is_limited?: boolean; + /** + * The number of publications used to build the timeline. + */ + used_publications?: number; + /** + * The total number of publications found for this author. + */ + total_publications?: number; } + diff --git a/webapp/src/app/api/model/topicsByYear.ts b/webapp/src/app/api/model/topicsByYear.ts index bb2f1820..fded8da0 100644 --- a/webapp/src/app/api/model/topicsByYear.ts +++ b/webapp/src/app/api/model/topicsByYear.ts @@ -1,7 +1,7 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,21 +9,23 @@ */ import { TopicCount } from './topicCount'; -export interface TopicsByYear { - /** - * The publication year. - */ - year: number; - /** - * The number of works in this year. - */ - publication_count?: number; - /** - * The topics in this year. - */ - topics?: Array; - /** - * The primary topics in this year. - */ - primary_topics?: Array; + +export interface TopicsByYear { + /** + * The publication year. + */ + year: number; + /** + * The number of works in this year. + */ + publication_count?: number; + /** + * The topics in this year. + */ + topics?: Array; + /** + * The primary topics in this year. + */ + primary_topics?: Array; } + diff --git a/webapp/src/app/api/model/topicsListResponse.ts b/webapp/src/app/api/model/topicsListResponse.ts index 058b45fd..43f21226 100644 --- a/webapp/src/app/api/model/topicsListResponse.ts +++ b/webapp/src/app/api/model/topicsListResponse.ts @@ -1,7 +1,7 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -11,11 +11,13 @@ import { Meta } from './meta'; import { GroupByResult } from './groupByResult'; import { Topic } from './topic'; + /** * TopicsListResponse */ -export interface TopicsListResponse { - meta?: Meta | null; - results?: Array | null; - group_by?: Array | null; +export interface TopicsListResponse { + meta?: Meta | null; + results?: Array | null; + group_by?: Array | null; } + diff --git a/webapp/src/app/api/model/validationError.ts b/webapp/src/app/api/model/validationError.ts index 18cd1b61..bdbd57ad 100644 --- a/webapp/src/app/api/model/validationError.ts +++ b/webapp/src/app/api/model/validationError.ts @@ -1,7 +1,7 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,8 +9,10 @@ */ import { ValidationErrorLocInner } from './validationErrorLocInner'; -export interface ValidationError { - loc: Array; - msg: string; - type: string; + +export interface ValidationError { + loc: Array; + msg: string; + type: string; } + diff --git a/webapp/src/app/api/model/validationErrorLocInner.ts b/webapp/src/app/api/model/validationErrorLocInner.ts index 3c1ffa29..d248a9b7 100644 --- a/webapp/src/app/api/model/validationErrorLocInner.ts +++ b/webapp/src/app/api/model/validationErrorLocInner.ts @@ -1,11 +1,14 @@ /** * 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. */ -export interface ValidationErrorLocInner {} + +export interface ValidationErrorLocInner { +} + diff --git a/webapp/src/app/api/model/value.ts b/webapp/src/app/api/model/value.ts index 016b21cb..a9fc79ba 100644 --- a/webapp/src/app/api/model/value.ts +++ b/webapp/src/app/api/model/value.ts @@ -1,11 +1,14 @@ /** * 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. */ -export interface Value {} + +export interface Value { +} + diff --git a/webapp/src/app/api/model/work.ts b/webapp/src/app/api/model/work.ts index 6c6ae99b..07d94a1c 100644 --- a/webapp/src/app/api/model/work.ts +++ b/webapp/src/app/api/model/work.ts @@ -1,7 +1,7 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -24,46 +24,48 @@ import { WorkHasContent } from './workHasContent'; import { Location } from './location'; import { WorkBiblio } from './workBiblio'; + /** * A scholarly document (article, book, dataset, thesis, etc.) */ -export interface Work { - id?: string | null; - doi?: string | null; - title?: string | null; - display_name?: string | null; - publication_year?: number | null; - publication_date?: string | null; - type?: string | null; - language?: string | null; - cited_by_count?: number | null; - is_retracted?: boolean | null; - is_paratext?: boolean | null; - primary_location?: Location | null; - locations?: Array | null; - best_oa_location?: Location | null; - open_access?: OpenAccess | null; - authorships?: Array | null; - ids?: WorkIds | null; - biblio?: WorkBiblio | null; - abstract_inverted_index?: object | null; - referenced_works?: Array | null; - referenced_works_count?: number | null; - related_works?: Array | null; - topics?: Array | null; - primary_topic?: WorkTopic | null; - keywords?: Array | null; - funders?: Array | null; - awards?: Array | null; - fwci?: Fwci | null; - citation_normalized_percentile?: WorkCitationNormalizedPercentile | null; - cited_by_percentile_year?: WorkCitedByPercentileYear | null; - counts_by_year?: Array | null; - sustainable_development_goals?: Array | null; - mesh?: Array | null; - indexed_in?: Array | null; - has_content?: WorkHasContent | null; - content_url?: string | null; - created_date?: string | null; - updated_date?: string | null; +export interface Work { + id?: string | null; + doi?: string | null; + title?: string | null; + display_name?: string | null; + publication_year?: number | null; + publication_date?: string | null; + type?: string | null; + language?: string | null; + cited_by_count?: number | null; + is_retracted?: boolean | null; + is_paratext?: boolean | null; + primary_location?: Location | null; + locations?: Array | null; + best_oa_location?: Location | null; + open_access?: OpenAccess | null; + authorships?: Array | null; + ids?: WorkIds | null; + biblio?: WorkBiblio | null; + abstract_inverted_index?: object | null; + referenced_works?: Array | null; + referenced_works_count?: number | null; + related_works?: Array | null; + topics?: Array | null; + primary_topic?: WorkTopic | null; + keywords?: Array | null; + funders?: Array | null; + awards?: Array | null; + fwci?: Fwci | null; + citation_normalized_percentile?: WorkCitationNormalizedPercentile | null; + cited_by_percentile_year?: WorkCitedByPercentileYear | null; + counts_by_year?: Array | null; + sustainable_development_goals?: Array | null; + mesh?: Array | null; + indexed_in?: Array | null; + has_content?: WorkHasContent | null; + content_url?: string | null; + created_date?: string | null; + updated_date?: string | null; } + diff --git a/webapp/src/app/api/model/workBiblio.ts b/webapp/src/app/api/model/workBiblio.ts index 65c0a34b..f6d7079b 100644 --- a/webapp/src/app/api/model/workBiblio.ts +++ b/webapp/src/app/api/model/workBiblio.ts @@ -1,19 +1,21 @@ /** * 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. */ + /** * Bibliographic info: `volume`, `issue`, `first_page`, `last_page`. */ -export interface WorkBiblio { - volume?: string | null; - issue?: string | null; - first_page?: string | null; - last_page?: string | null; +export interface WorkBiblio { + volume?: string | null; + issue?: string | null; + first_page?: string | null; + last_page?: string | null; } + diff --git a/webapp/src/app/api/model/workCitationNormalizedPercentile.ts b/webapp/src/app/api/model/workCitationNormalizedPercentile.ts index 4a2bc6d4..a587ddf6 100644 --- a/webapp/src/app/api/model/workCitationNormalizedPercentile.ts +++ b/webapp/src/app/api/model/workCitationNormalizedPercentile.ts @@ -1,7 +1,7 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,11 +9,13 @@ */ import { Value } from './value'; + /** * Percentile of citation count normalized by work type, year, and subfield. Includes `value`, `is_in_top_1_percent`, `is_in_top_10_percent`. */ -export interface WorkCitationNormalizedPercentile { - value?: Value | null; - is_in_top_1_percent?: boolean | null; - is_in_top_10_percent?: boolean | null; +export interface WorkCitationNormalizedPercentile { + value?: Value | null; + is_in_top_1_percent?: boolean | null; + is_in_top_10_percent?: boolean | null; } + diff --git a/webapp/src/app/api/model/workCitedByPercentileYear.ts b/webapp/src/app/api/model/workCitedByPercentileYear.ts index 7bcd3c85..5257eb3b 100644 --- a/webapp/src/app/api/model/workCitedByPercentileYear.ts +++ b/webapp/src/app/api/model/workCitedByPercentileYear.ts @@ -1,17 +1,19 @@ /** * 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. */ + /** * Percentile rank compared to other works published in the same year. Contains `min` and `max`. */ -export interface WorkCitedByPercentileYear { - min?: number | null; - max?: number | null; +export interface WorkCitedByPercentileYear { + min?: number | null; + max?: number | null; } + diff --git a/webapp/src/app/api/model/workCountsByYearInner.ts b/webapp/src/app/api/model/workCountsByYearInner.ts index 496a11db..76d97d77 100644 --- a/webapp/src/app/api/model/workCountsByYearInner.ts +++ b/webapp/src/app/api/model/workCountsByYearInner.ts @@ -1,17 +1,19 @@ /** * 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. */ + /** * WorkCountsByYearInner */ -export interface WorkCountsByYearInner { - year?: number | null; - cited_by_count?: number | null; +export interface WorkCountsByYearInner { + year?: number | null; + cited_by_count?: number | null; } + diff --git a/webapp/src/app/api/model/workHasContent.ts b/webapp/src/app/api/model/workHasContent.ts index 76871238..44fbe446 100644 --- a/webapp/src/app/api/model/workHasContent.ts +++ b/webapp/src/app/api/model/workHasContent.ts @@ -1,17 +1,19 @@ /** * 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. */ + /** * Information about downloadable full-text content: */ -export interface WorkHasContent { - pdf?: boolean | null; - grobid_xml?: boolean | null; +export interface WorkHasContent { + pdf?: boolean | null; + grobid_xml?: boolean | null; } + diff --git a/webapp/src/app/api/model/workIds.ts b/webapp/src/app/api/model/workIds.ts index fe562e40..e8315250 100644 --- a/webapp/src/app/api/model/workIds.ts +++ b/webapp/src/app/api/model/workIds.ts @@ -1,20 +1,22 @@ /** * 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. */ + /** * External identifiers: `openalex`, `doi`, `mag`, `pmid`, `pmcid`. */ -export interface WorkIds { - openalex?: string | null; - doi?: string | null; - mag?: number | null; - pmid?: string | null; - pmcid?: string | null; +export interface WorkIds { + openalex?: string | null; + doi?: string | null; + mag?: number | null; + pmid?: string | null; + pmcid?: string | null; } + diff --git a/webapp/src/app/api/model/workKeyword.ts b/webapp/src/app/api/model/workKeyword.ts index 7270db25..c9c99afb 100644 --- a/webapp/src/app/api/model/workKeyword.ts +++ b/webapp/src/app/api/model/workKeyword.ts @@ -1,7 +1,7 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,11 +9,13 @@ */ import { Score } from './score'; + /** * WorkKeyword */ -export interface WorkKeyword { - id?: string | null; - display_name?: string | null; - score?: Score | null; +export interface WorkKeyword { + id?: string | null; + display_name?: string | null; + score?: Score | null; } + diff --git a/webapp/src/app/api/model/workMeshInner.ts b/webapp/src/app/api/model/workMeshInner.ts index 36a0c569..40633524 100644 --- a/webapp/src/app/api/model/workMeshInner.ts +++ b/webapp/src/app/api/model/workMeshInner.ts @@ -1,20 +1,22 @@ /** * 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. */ + /** * WorkMeshInner */ -export interface WorkMeshInner { - descriptor_ui?: string | null; - descriptor_name?: string | null; - qualifier_ui?: string | null; - qualifier_name?: string | null; - is_major_topic?: boolean | null; +export interface WorkMeshInner { + descriptor_ui?: string | null; + descriptor_name?: string | null; + qualifier_ui?: string | null; + qualifier_name?: string | null; + is_major_topic?: boolean | null; } + diff --git a/webapp/src/app/api/model/workNetworkNode.ts b/webapp/src/app/api/model/workNetworkNode.ts index 445cd8ad..abc04a69 100644 --- a/webapp/src/app/api/model/workNetworkNode.ts +++ b/webapp/src/app/api/model/workNetworkNode.ts @@ -1,7 +1,7 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -10,20 +10,24 @@ import { WorkTopicInformation } from './workTopicInformation'; import { CollaborationNetworkNodeType } from './collaborationNetworkNodeType'; -export interface WorkNetworkNode { - /** - * 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. - */ - raw_id: string; - /** - * The display name of the node. - */ - display_name: string; - /** - * The category of the node, either \'author\', \'institution\', or \'work\'. - */ - category: CollaborationNetworkNodeType; - publication_year: number | null; - work_topics_information: Set | null; + +export interface WorkNetworkNode { + /** + * 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. + */ + raw_id: string; + /** + * The display name of the node. + */ + display_name: string; + /** + * The category of the node, either \'author\', \'institution\', or \'work\'. + */ + category: CollaborationNetworkNodeType; + publication_year: number | null; + work_topics_information: Set | null; } -export namespace WorkNetworkNode {} +export namespace WorkNetworkNode { +} + + diff --git a/webapp/src/app/api/model/workPage.ts b/webapp/src/app/api/model/workPage.ts index 285d2065..8490c3ab 100644 --- a/webapp/src/app/api/model/workPage.ts +++ b/webapp/src/app/api/model/workPage.ts @@ -1,7 +1,7 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,25 +9,27 @@ */ import { Work } from './work'; -export interface WorkPage { - /** - * Total number of works matching the query - */ - total: number; - /** - * List of works on the current page - */ - elements: Array; - /** - * Offset of the current page - */ - offset: number; - /** - * Size of the current page - */ - size: number; - /** - * Indicates if the current page is the last page - */ - last_page: boolean; + +export interface WorkPage { + /** + * Total number of works matching the query + */ + total: number; + /** + * List of works on the current page + */ + elements: Array; + /** + * Offset of the current page + */ + offset: number; + /** + * Size of the current page + */ + size: number; + /** + * Indicates if the current page is the last page + */ + last_page: boolean; } + diff --git a/webapp/src/app/api/model/workSustainableDevelopmentGoalsInner.ts b/webapp/src/app/api/model/workSustainableDevelopmentGoalsInner.ts index 8bc67292..c9ecd00f 100644 --- a/webapp/src/app/api/model/workSustainableDevelopmentGoalsInner.ts +++ b/webapp/src/app/api/model/workSustainableDevelopmentGoalsInner.ts @@ -1,7 +1,7 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,11 +9,13 @@ */ import { Score } from './score'; + /** * WorkSustainableDevelopmentGoalsInner */ -export interface WorkSustainableDevelopmentGoalsInner { - id?: string | null; - display_name?: string | null; - score?: Score | null; +export interface WorkSustainableDevelopmentGoalsInner { + id?: string | null; + display_name?: string | null; + score?: Score | null; } + diff --git a/webapp/src/app/api/model/workTopic.ts b/webapp/src/app/api/model/workTopic.ts index 4b326824..925ead4f 100644 --- a/webapp/src/app/api/model/workTopic.ts +++ b/webapp/src/app/api/model/workTopic.ts @@ -1,7 +1,7 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -12,14 +12,16 @@ import { WorkTopicDomain } from './workTopicDomain'; import { WorkTopicSubfield } from './workTopicSubfield'; import { WorkTopicField } from './workTopicField'; + /** * WorkTopic */ -export interface WorkTopic { - id?: string | null; - display_name?: string | null; - score?: Score | null; - subfield?: WorkTopicSubfield | null; - field?: WorkTopicField | null; - domain?: WorkTopicDomain | null; +export interface WorkTopic { + id?: string | null; + display_name?: string | null; + score?: Score | null; + subfield?: WorkTopicSubfield | null; + field?: WorkTopicField | null; + domain?: WorkTopicDomain | null; } + diff --git a/webapp/src/app/api/model/workTopicDomain.ts b/webapp/src/app/api/model/workTopicDomain.ts index 13b227df..1a9879d4 100644 --- a/webapp/src/app/api/model/workTopicDomain.ts +++ b/webapp/src/app/api/model/workTopicDomain.ts @@ -1,17 +1,19 @@ /** * 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. */ + /** * The parent [domain](/api-reference/domains) */ -export interface WorkTopicDomain { - id?: string | null; - display_name?: string | null; +export interface WorkTopicDomain { + id?: string | null; + display_name?: string | null; } + diff --git a/webapp/src/app/api/model/workTopicField.ts b/webapp/src/app/api/model/workTopicField.ts index 432b993e..1807cfc1 100644 --- a/webapp/src/app/api/model/workTopicField.ts +++ b/webapp/src/app/api/model/workTopicField.ts @@ -1,17 +1,19 @@ /** * 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. */ + /** * The parent [field](/api-reference/fields) */ -export interface WorkTopicField { - id?: string | null; - display_name?: string | null; +export interface WorkTopicField { + id?: string | null; + display_name?: string | null; } + diff --git a/webapp/src/app/api/model/workTopicInformation.ts b/webapp/src/app/api/model/workTopicInformation.ts index 5dbbfc78..ca3b9454 100644 --- a/webapp/src/app/api/model/workTopicInformation.ts +++ b/webapp/src/app/api/model/workTopicInformation.ts @@ -1,20 +1,22 @@ /** * 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. */ -export interface WorkTopicInformation { - /** - * The ID of the topic. - */ - raw_topic_id: string; - /** - * The name of the topic. - */ - display_name: string; + +export interface WorkTopicInformation { + /** + * The ID of the topic. + */ + raw_topic_id: string; + /** + * The name of the topic. + */ + display_name: string; } + diff --git a/webapp/src/app/api/model/workTopicSubfield.ts b/webapp/src/app/api/model/workTopicSubfield.ts index 49c1155b..b6e7278a 100644 --- a/webapp/src/app/api/model/workTopicSubfield.ts +++ b/webapp/src/app/api/model/workTopicSubfield.ts @@ -1,17 +1,19 @@ /** * 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. */ + /** * The parent [subfield](/api-reference/subfields) */ -export interface WorkTopicSubfield { - id?: string | null; - display_name?: string | null; +export interface WorkTopicSubfield { + id?: string | null; + display_name?: string | null; } + diff --git a/webapp/src/app/api/model/worksFilterProperties.ts b/webapp/src/app/api/model/worksFilterProperties.ts index fd25fd26..bd6cc9a4 100644 --- a/webapp/src/app/api/model/worksFilterProperties.ts +++ b/webapp/src/app/api/model/worksFilterProperties.ts @@ -1,32 +1,34 @@ /** * 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. */ -export interface WorksFilterProperties { - /** - * The start publication year for the works to include in the collaboration network. - */ - start_year?: number; - /** - * The end publication year for the works to include in the collaboration network. - */ - end_year?: number; - /** - * The list of raw topic IDs to include in the collaboration network. If empty, all topics will be included. - */ - allowed_topics?: Array; - /** - * The minimum number of contributors required for a work to be included in the collaboration network. - */ - min_contributors?: number; - /** - * The maximum number of contributors allowed for a work to be included in the collaboration network. - */ - max_contributors?: number; + +export interface WorksFilterProperties { + /** + * The start publication year for the works to include in the collaboration network. + */ + start_year?: number; + /** + * The end publication year for the works to include in the collaboration network. + */ + end_year?: number; + /** + * The list of raw topic IDs to include in the collaboration network. If empty, all topics will be included. + */ + allowed_topics?: Array; + /** + * The minimum number of contributors required for a work to be included in the collaboration network. + */ + min_contributors?: number; + /** + * The maximum number of contributors allowed for a work to be included in the collaboration network. + */ + max_contributors?: number; } + diff --git a/webapp/src/app/api/model/worksListResponse.ts b/webapp/src/app/api/model/worksListResponse.ts index bc21a41b..a65d3849 100644 --- a/webapp/src/app/api/model/worksListResponse.ts +++ b/webapp/src/app/api/model/worksListResponse.ts @@ -1,7 +1,7 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -11,11 +11,13 @@ import { Meta } from './meta'; import { Work } from './work'; import { GroupByResult } from './groupByResult'; + /** * WorksListResponse */ -export interface WorksListResponse { - meta?: Meta | null; - results?: Array | null; - group_by?: Array | null; +export interface WorksListResponse { + meta?: Meta | null; + results?: Array | null; + group_by?: Array | null; } + diff --git a/webapp/src/app/api/param.ts b/webapp/src/app/api/param.ts index 486c804e..78a2d20a 100644 --- a/webapp/src/app/api/param.ts +++ b/webapp/src/app/api/param.ts @@ -8,7 +8,8 @@ export type StandardParamStyle = | 'simple' | 'spaceDelimited' | 'pipeDelimited' - | 'deepObject'; + | 'deepObject' + ; /** * The OpenAPI standard {@link StandardParamStyle}s may be extended by custom styles by the user. @@ -24,12 +25,13 @@ export type ParamLocation = 'query' | 'header' | 'path' | 'cookie'; * Standard types as defined in OpenAPI Specification: Data Types */ export type StandardDataType = - | 'integer' - | 'number' - | 'boolean' - | 'string' - | 'object' - | 'array'; + | "integer" + | "number" + | "boolean" + | "string" + | "object" + | "array" + ; /** * Standard {@link DataType}s plus your own types/classes. @@ -40,15 +42,16 @@ export type DataType = StandardDataType | string; * Standard formats as defined in OpenAPI Specification: Data Types */ export type StandardDataFormat = - | 'int32' - | 'int64' - | 'float' - | 'double' - | 'byte' - | 'binary' - | 'date' - | 'date-time' - | 'password'; + | "int32" + | "int64" + | "float" + | "double" + | "byte" + | "binary" + | "date" + | "date-time" + | "password" + ; export type DataFormat = StandardDataFormat | string; @@ -59,7 +62,7 @@ export interface Param { name: string; value: unknown; in: ParamLocation; - style: ParamStyle; + style: ParamStyle, explode: boolean; dataType: DataType; dataFormat: DataFormat | undefined; diff --git a/webapp/src/app/api/provide-api.ts b/webapp/src/app/api/provide-api.ts index 960132f8..19c762ac 100644 --- a/webapp/src/app/api/provide-api.ts +++ b/webapp/src/app/api/provide-api.ts @@ -1,17 +1,15 @@ -import { EnvironmentProviders, makeEnvironmentProviders } from '@angular/core'; +import { EnvironmentProviders, makeEnvironmentProviders } from "@angular/core"; import { Configuration, ConfigurationParameters } from './configuration'; import { BASE_PATH } from './variables'; // Returns the service class providers, to be used in the [ApplicationConfig](https://angular.dev/api/core/ApplicationConfig). -export function provideApi( - configOrBasePath: string | ConfigurationParameters, -): EnvironmentProviders { - return makeEnvironmentProviders([ - typeof configOrBasePath === 'string' - ? { provide: BASE_PATH, useValue: configOrBasePath } - : { - provide: Configuration, - useValue: new Configuration({ ...configOrBasePath }), - }, - ]); -} +export function provideApi(configOrBasePath: string | ConfigurationParameters): EnvironmentProviders { + return makeEnvironmentProviders([ + typeof configOrBasePath === "string" + ? { provide: BASE_PATH, useValue: configOrBasePath } + : { + provide: Configuration, + useValue: new Configuration({ ...configOrBasePath }), + }, + ]); +} \ No newline at end of file diff --git a/webapp/src/app/api/variables.ts b/webapp/src/app/api/variables.ts index 2277a9cc..6fe58549 100644 --- a/webapp/src/app/api/variables.ts +++ b/webapp/src/app/api/variables.ts @@ -2,8 +2,8 @@ import { InjectionToken } from '@angular/core'; export const BASE_PATH = new InjectionToken('basePath'); export const COLLECTION_FORMATS = { - csv: ',', - tsv: ' ', - ssv: ' ', - pipes: '|', -}; + 'csv': ',', + 'tsv': ' ', + 'ssv': ' ', + 'pipes': '|' +} diff --git a/webapp/src/app/app.config.ts b/webapp/src/app/app.config.ts index fe2175b6..2f1a4645 100644 --- a/webapp/src/app/app.config.ts +++ b/webapp/src/app/app.config.ts @@ -40,6 +40,7 @@ export const appConfig: ApplicationConfig = { const router = inject(Router); const errorService = inject(ErrorService); + if ( router.url.includes('/error') || router.currentNavigation()?.extractedUrl.toString().includes('/error') @@ -51,6 +52,8 @@ export const appConfig: ApplicationConfig = { return; } + console.error('Fehler beim Navigieren:', navigationError); + const error = navigationError.error; let errorMessage: string = 'Unbekannter Fehler'; if (error instanceof HttpErrorResponse) { diff --git a/webapp/src/app/app.routes.ts b/webapp/src/app/app.routes.ts index dab2a1f0..e53e18a1 100644 --- a/webapp/src/app/app.routes.ts +++ b/webapp/src/app/app.routes.ts @@ -8,6 +8,7 @@ import { institutionResolver } from './resolvers/institution.resolver'; import { bundProjectsResolver } from './resolvers/bund-projects.resolver'; import { euProjectsResolver } from './resolvers/eu-projects.resolver'; import { dfgProjectsResolver } from './resolvers/dfg-projects.resolver'; +import { institutionsResolver } from './resolvers/institutions.resolver'; export const routes: Routes = [ { @@ -159,6 +160,24 @@ export const routes: Routes = [ }, ], }, + { + path: 'institutions', + canActivate: [userGuard], + loadComponent: () => + import('./modules/institutions/institutions.component').then( + (mod) => mod.InstitutionsComponent, + ), + resolve: { + institutionPage: institutionsResolver, + }, + runGuardsAndResolvers: (from, to) => { + const keys = ['search', 'page', 'size', 'sort_by', 'sorting_order']; + + return keys.some( + (key) => from.queryParamMap.get(key) !== to.queryParamMap.get(key), + ); + }, + }, { path: 'institution/:institutionId', canActivate: [userGuard], @@ -182,6 +201,13 @@ export const routes: Routes = [ (mod) => mod.InstitutionOverviewComponent, ), }, + { + path: 'publications', + loadComponent: () => + import('./modules/institution-publications/institution-publications.component').then( + (mod) => mod.InstitutionPublicationsComponent, + ), + }, { path: 'projects', loadComponent: () => { diff --git a/webapp/src/app/modules/institution-publications/institution-publications.component.html b/webapp/src/app/modules/institution-publications/institution-publications.component.html new file mode 100644 index 00000000..1f6b1f02 --- /dev/null +++ b/webapp/src/app/modules/institution-publications/institution-publications.component.html @@ -0,0 +1 @@ +

institution-publications works!

diff --git a/webapp/src/app/modules/institution-publications/institution-publications.component.scss b/webapp/src/app/modules/institution-publications/institution-publications.component.scss new file mode 100644 index 00000000..e69de29b diff --git a/webapp/src/app/modules/institution-publications/institution-publications.component.ts b/webapp/src/app/modules/institution-publications/institution-publications.component.ts new file mode 100644 index 00000000..f01f1378 --- /dev/null +++ b/webapp/src/app/modules/institution-publications/institution-publications.component.ts @@ -0,0 +1,11 @@ +import { Component } from '@angular/core'; + +@Component({ + selector: 'app-institution-publications', + imports: [], + templateUrl: './institution-publications.component.html', + styleUrl: './institution-publications.component.scss', +}) +export class InstitutionPublicationsComponent { + +} diff --git a/webapp/src/app/modules/institution/institution.component.ts b/webapp/src/app/modules/institution/institution.component.ts index acd4b205..1a64f762 100644 --- a/webapp/src/app/modules/institution/institution.component.ts +++ b/webapp/src/app/modules/institution/institution.component.ts @@ -26,13 +26,14 @@ export class InstitutionComponent implements OnInit { links = [ { label: 'Übersicht', path: 'overview', disabled: false }, + { label: 'Publikationen', path: 'publications', disabled: false }, { label: 'Projekte', path: 'projects', disabled: false, queryParams: { project_tab: 'bund', - page: 1, + page: 0, size: 10, search: '', sort_by: 'topic', diff --git a/webapp/src/app/modules/institutions/institutions.component.html b/webapp/src/app/modules/institutions/institutions.component.html new file mode 100644 index 00000000..4702d7fe --- /dev/null +++ b/webapp/src/app/modules/institutions/institutions.component.html @@ -0,0 +1,116 @@ +
+

Passende Institutionen finden

+ + + +
+ + Suche nach Namen + + search + + + +
+ + + +
+
+ + + + @let institutionPageValue = institutionPage(); + + @if ( + institutionPageValue.elements && institutionPageValue.elements.length > 0 + ) { +
+ @for (institution of institutionPageValue.elements; track $index) { + @let institutionId = extractInstitutionId(institution); + + + {{ getDisplayName(institution) }} + {{ institution.geo?.city }}, + {{ institution.geo?.country }} + + + + + + + + + + + + info + Übersicht + + + article + Publikationen + + + work + Projekte + + + + + } +
+ } @else { +
+

Keine passenden Institutionen gefunden.

+
+ } + + + + + +
diff --git a/webapp/src/app/modules/institutions/institutions.component.scss b/webapp/src/app/modules/institutions/institutions.component.scss new file mode 100644 index 00000000..95ff7534 --- /dev/null +++ b/webapp/src/app/modules/institutions/institutions.component.scss @@ -0,0 +1,99 @@ +.content { + display: flex; + flex-direction: column; + gap: 1rem; + padding: 1rem; +} + +.sorting { + display: flex; + justify-content: flex-end; + gap: 0.5rem; +} + +.sorting select { + padding: 0.75rem; + border: 1px solid var(--sg-border); + border-radius: var(--sg-radius-sm); + font-size: 1rem; +} + +.sorting select:hover { + cursor: pointer; +} + +.cards { + display: grid; + gap: 1.5rem; + grid-template-columns: repeat(4, 1fr); + padding: 0 1rem; +} + +@media (max-width: 900px) { + .cards { + grid-template-columns: repeat(2, 1fr); + } +} + +@media (max-width: 600px) { + .cards { + grid-template-columns: 1fr; + } +} + +mat-paginator { + background-color: var(--sg-background); +} + +.card { + padding: 0.5rem; + background-color: var(--sg-background); + transition: transform 0.3s ease; + display: flex; + flex-direction: column; + gap: 0.5rem; +} + +.card:hover { + cursor: pointer; + transform: scale(1.05); +} + +.card-content { + display: flex; + flex-direction: column; + justify-content: flex-end; + gap: 0.5rem; + flex: 1; +} + +.card-metadata { + display: flex; + flex-direction: column; + gap: 0.2rem; + font-size: 0.9rem; + color: var(--sg-text-secondary); +} + +mat-card-actions { + padding-top: 0.5rem; + display: flex; + gap: 0.5rem; +} + +mat-card-actions a { + width: 100%; + text-decoration: none; + border: 1px solid var(--sg-border); + border-radius: var(--sg-radius-sm); +} + +.no-results { + text-align: center; + padding: 2rem; + color: var(--sg-text-secondary); +} + +.search-and-sorting { + padding: 0 1rem; +} diff --git a/webapp/src/app/modules/institutions/institutions.component.ts b/webapp/src/app/modules/institutions/institutions.component.ts new file mode 100644 index 00000000..e2449349 --- /dev/null +++ b/webapp/src/app/modules/institutions/institutions.component.ts @@ -0,0 +1,108 @@ +import { Component, effect, input, signal } from '@angular/core'; +import { Institution, InstitutionPage } from '../../api'; +import { MatButtonModule } from '@angular/material/button'; +import { MatCardModule } from '@angular/material/card'; +import { MatInputModule } from '@angular/material/input'; +import { ActivatedRoute, Router, RouterModule } from '@angular/router'; +import { takeUntilDestroyed } from '@angular/core/rxjs-interop'; +import { MatIconModule } from '@angular/material/icon'; +import { DebounceDirective } from '../../directives/debounce.directive'; +import { MatPaginator, PageEvent } from '@angular/material/paginator'; +import { MatDividerModule } from '@angular/material/divider'; + +@Component({ + selector: 'app-institutions', + imports: [ + MatButtonModule, + MatCardModule, + MatInputModule, + MatIconModule, + DebounceDirective, + MatPaginator, + MatDividerModule, + RouterModule, + ], + templateUrl: './institutions.component.html', + styleUrl: './institutions.component.scss', +}) +export class InstitutionsComponent { + institutionPage = input.required(); + + urlSearchTerm = signal(''); + urlSortBy = signal('relevance'); + urlSortingOrder = signal('desc'); + + constructor( + private readonly activatedRoute: ActivatedRoute, + private readonly router: Router, + ) { + this.activatedRoute.queryParams + .pipe(takeUntilDestroyed()) + .subscribe((params) => { + this.urlSearchTerm.set(params['search'] || ''); + this.urlSortBy.set(params['sort_by'] || 'relevance'); + this.urlSortingOrder.set(params['sorting_order'] || 'desc'); + }); + + effect(() => { + const searchTerm = this.urlSearchTerm(); + this.router.navigate([], { + queryParams: { search: searchTerm }, + queryParamsHandling: 'merge', + }); + }); + } + + handleSearchTermChange(newTerm: string): void { + this.router.navigate([], { + queryParams: { search: newTerm }, + queryParamsHandling: 'merge', + }); + } + + clearSearchTerm(): void { + this.router.navigate([], { + queryParams: { search: null }, + queryParamsHandling: 'merge', + }); + } + + handlePageChange(event: PageEvent): void { + this.router.navigate([], { + queryParams: { page: event.pageIndex, size: event.pageSize }, + queryParamsHandling: 'merge', + }); + } + + extractInstitutionId(institution: Institution): string { + return institution.id?.split('/').pop() ?? ''; + } + + handleSortFieldChange(event: Event): void { + const selectElement = event.target as HTMLSelectElement; + const sortField = selectElement.value; + this.router.navigate([], { + queryParams: { sort_by: sortField }, + queryParamsHandling: 'merge', + }); + } + + handleSortOrderChange(event: Event): void { + const selectElement = event.target as HTMLSelectElement; + const sortOrder = selectElement.value; + this.router.navigate([], { + queryParams: { sorting_order: sortOrder }, + queryParamsHandling: 'merge', + }); + } + + getDisplayName(institution: Institution): string { + const primary = institution.display_name?.trim(); + if (primary && primary.length > 0) return primary; + + const alt = institution.display_name_alternatives?.[0]?.trim(); + if (alt && alt.length > 0) return alt; + + return 'Unbekannte Institution'; + } +} diff --git a/webapp/src/app/resolvers/institutions.resolver.ts b/webapp/src/app/resolvers/institutions.resolver.ts new file mode 100644 index 00000000..a0657fab --- /dev/null +++ b/webapp/src/app/resolvers/institutions.resolver.ts @@ -0,0 +1,29 @@ +import { inject } from '@angular/core'; +import { ResolveFn } from '@angular/router'; +import { InstitutionPage, InstitutionsService } from '../api'; + +export const institutionsResolver: ResolveFn = ( + route, + state, +) => { + const queryParamMap = route.queryParamMap; + const query = queryParamMap.get('search') ?? ''; + const page = Number(queryParamMap.get('page') ?? '0'); + const pageSize = Number(queryParamMap.get('size') ?? '10'); + const sortBy = (queryParamMap.get('sort_by') ?? 'works_count') as + | 'relevance' + | 'name' + | 'works_count' + | 'citations_count'; + const sortOrder = (queryParamMap.get('sorting_order') ?? 'desc') as + | 'asc' + | 'desc'; + + return inject(InstitutionsService).searchInstitutionsByName( + query, + page, + pageSize, + sortBy, + sortOrder, + ); +}; diff --git a/webapp/src/app/shared/ui/app-menu/app-menu.component.ts b/webapp/src/app/shared/ui/app-menu/app-menu.component.ts index 371cedb4..3d3359cd 100644 --- a/webapp/src/app/shared/ui/app-menu/app-menu.component.ts +++ b/webapp/src/app/shared/ui/app-menu/app-menu.component.ts @@ -35,6 +35,19 @@ export class AppMenuComponent { queryParams: { institutionName: 'University of Duisburg-Essen' }, disabled: false, }, + { + label: 'Institutionen', + icon: 'apartment', + route: '/institutions', + disabled: false, + queryParams: { + search: '', + page: 0, + size: 10, + sort_by: 'works_count', + sorting_order: 'desc', + }, + }, ]; constructor( From 51a369de4aa075f2a613bbf4a99c8f647a029b8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mats=20Paul=20Ton=C4=8Dik?= Date: Wed, 17 Jun 2026 20:48:05 +0200 Subject: [PATCH 15/41] Removed border radius on app menu --- webapp/src/app/shared/ui/app-layout/app-layout.component.scss | 1 + 1 file changed, 1 insertion(+) diff --git a/webapp/src/app/shared/ui/app-layout/app-layout.component.scss b/webapp/src/app/shared/ui/app-layout/app-layout.component.scss index 6556c59f..5afa1f9c 100644 --- a/webapp/src/app/shared/ui/app-layout/app-layout.component.scss +++ b/webapp/src/app/shared/ui/app-layout/app-layout.component.scss @@ -80,6 +80,7 @@ mat-toolbar.main { width: var(--sg-sidebar-width); background: var(--sg-surface); border-right: 1px solid var(--sg-border); + border-radius: 0; box-shadow: none; } From 82e3bb514c2eb32e1ab89d8ed6db76dabfce5870 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mats=20Paul=20Ton=C4=8Dik?= Date: Wed, 17 Jun 2026 22:33:57 +0200 Subject: [PATCH 16/41] Added funding graph for institution bund projects --- service/src/main/inse/projects/model.py | 16 +- .../inse/projects/projects_search_client.py | 20 +-- service/src/main/inse/projects/router.py | 39 ++++- service/src/main/inse/projects/service.py | 107 +++++++++--- ude_person.http | 152 +++++++++++++++-- webapp/src/app/api/.openapi-generator/FILES | 1 + webapp/src/app/api/api/projects.service.ts | 63 ++++++++ .../app/api/model/institutionFunderSummary.ts | 35 ++++ webapp/src/app/api/model/models.ts | 1 + webapp/src/app/app.routes.ts | 11 +- ...tion-projects-funding-graph.component.html | 1 + ...tion-projects-funding-graph.component.scss | 0 ...tution-projects-funding-graph.component.ts | 153 ++++++++++++++++++ .../institution-projects.component.html | 125 +++++++++----- .../institution-projects.component.scss | 23 +++ .../institution-projects.component.ts | 29 +++- .../bund-projects-funding.resolver.ts | 13 ++ 17 files changed, 673 insertions(+), 116 deletions(-) create mode 100644 webapp/src/app/api/model/institutionFunderSummary.ts create mode 100644 webapp/src/app/modules/institution-projects-funding-graph/institution-projects-funding-graph.component.html create mode 100644 webapp/src/app/modules/institution-projects-funding-graph/institution-projects-funding-graph.component.scss create mode 100644 webapp/src/app/modules/institution-projects-funding-graph/institution-projects-funding-graph.component.ts create mode 100644 webapp/src/app/resolvers/bund-projects-funding.resolver.ts diff --git a/service/src/main/inse/projects/model.py b/service/src/main/inse/projects/model.py index 03a3caa3..8631a25a 100644 --- a/service/src/main/inse/projects/model.py +++ b/service/src/main/inse/projects/model.py @@ -1,4 +1,4 @@ -from typing import List, Optional +from typing import List, Literal, Optional from pydantic import BaseModel, Field @@ -73,3 +73,17 @@ class DfgProjectPage(Page): elements: List[DfgProjectSummary] = Field( default_factory=list, description="The DFG projects on this page." ) + + +class InstitutionFunderSummary(BaseModel): + type: Literal["bund", "eu", "dfg"] = Field( + description="The type of funding data (e.g., 'bund', 'eu', 'dfg')." + ) + funding_per_year: dict = Field( + default_factory=dict, + description="A dictionary mapping years to total funding amounts for that year.", + ) + annual_average_over_period: float = Field( + default=0.0, + description="The average annual funding over the continuous period covered by the data.", + ) diff --git a/service/src/main/inse/projects/projects_search_client.py b/service/src/main/inse/projects/projects_search_client.py index c448c704..d38304d3 100644 --- a/service/src/main/inse/projects/projects_search_client.py +++ b/service/src/main/inse/projects/projects_search_client.py @@ -124,7 +124,7 @@ class BundProjectsSearchClient(ProjectsSearchClient): raise ValueError("Elasticsearch INSE API key is missing in settings.") super().__init__( base_url=settings.elasticsearch_inse_url, - index="projects_bund", + index="projects_bund_v1", api_key=settings.elasticsearch_inse_api_key, ) @@ -236,24 +236,6 @@ class BundProjectsSearchClient(ProjectsSearchClient): response = await self.make_search_request(query) return self.response_to_bund_project_page(response, page, size) - async def get_bund_projects_by_institution_name( - self, - institution_names: List[str], - page: int, - size: int, - sort_by: str = "topic", - sort_direction: str = "asc", - ) -> BundProjectPage: - query = self.bund_projects_query( - page=page, - size=size, - institution_names=institution_names, - sort_by=sort_by, - sort_direction=sort_direction, - ) - response = await self.make_search_request(query) - return self.response_to_bund_project_page(response, page, size) - class EuProjectsSearchClient(ProjectsSearchClient): def __init__(self): diff --git a/service/src/main/inse/projects/router.py b/service/src/main/inse/projects/router.py index 296fd58b..c9baa58d 100644 --- a/service/src/main/inse/projects/router.py +++ b/service/src/main/inse/projects/router.py @@ -4,7 +4,12 @@ from typing import Annotated, Optional from fastapi import APIRouter, Depends, Query, status -from inse.projects.model import BundProjectPage, DfgProjectPage, EuProjectPage +from inse.projects.model import ( + BundProjectPage, + DfgProjectPage, + EuProjectPage, + InstitutionFunderSummary, +) from inse.tags import Tags from inse.projects import service as projects_service from inse.projects.projects_search_client import ( @@ -83,6 +88,38 @@ async def get_bund_projects( ) +@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.", + operation_id="getBundFundingOverTime", + responses={ + status.HTTP_200_OK: { + "description": "Successful Response", + "model": InstitutionFunderSummary, + }, + status.HTTP_404_NOT_FOUND: {"description": "Institution not found"}, + }, + response_model_by_alias=False, +) +async def get_bund_funding_over_time( + bund_search_client: Annotated[ + BundProjectsSearchClient, Depends(get_bund_search_client) + ], + institutions_search_client: Annotated[ + InstitutionsSearchClient, Depends(get_institutions_search_client) + ], + institution_id: Annotated[ + str, Query(description="The institution ID to filter by.") + ], +) -> InstitutionFunderSummary: + return await projects_service.get_institution_bund_funding_over_time( + bund_search_client=bund_search_client, + institutions_search_client=institutions_search_client, + institution_id=institution_id, + ) + + @router.get( "/institution/eu/search", summary="Get EU projects.", diff --git a/service/src/main/inse/projects/service.py b/service/src/main/inse/projects/service.py index 3fa729f7..fda7832e 100644 --- a/service/src/main/inse/projects/service.py +++ b/service/src/main/inse/projects/service.py @@ -1,12 +1,18 @@ +import datetime import logging -from typing import List, Optional +from typing import Dict, List, Optional from inse.projects.projects_search_client import ( BundProjectsSearchClient, DfgProjectsSearchClient, EuProjectsSearchClient, ) -from inse.projects.model import BundProjectPage, DfgProjectPage, EuProjectPage +from inse.projects.model import ( + BundProjectPage, + DfgProjectPage, + EuProjectPage, + InstitutionFunderSummary, +) from inse.institutions.institutions_search_client import ( InstitutionsSearchClient, ) @@ -78,30 +84,6 @@ async def get_eu_projects_by_institution_id( return response -async def get_bund_projects_by_institution_name( - bund_search_client: BundProjectsSearchClient, - page: int, - size: int, - institution_names: List[str] = [], - sort_by: str = "topic", - sort_direction: str = "asc", -) -> BundProjectPage: - logger.info( - f"Fetching bund projects for institution_names={institution_names}, page={page}, size={size}" - ) - response = await bund_search_client.search_bund_projects( - page=page, - size=size, - institution_names=institution_names, - sort_by=sort_by, - sort_direction=sort_direction, - ) - - logger.debug(f"get_bund_projects_by_institution_name response: {response}") - - return response - - async def get_dfg_projects_by_author_id( dfg_search_client: DfgProjectsSearchClient, author_id: str, @@ -131,3 +113,76 @@ async def get_dfg_projects_by_author_id( sort_direction=sort_direction, ) return response + + +async def get_institution_bund_funding_over_time( + bund_search_client: BundProjectsSearchClient, + institutions_search_client: InstitutionsSearchClient, + institution_id: str, +) -> InstitutionFunderSummary: + logger.info(f"Fetching funding over time for institution_id={institution_id}") + institution_aliases = institutions_search_client.get_institution_aliases_by_id( + institution_id + ) + logger.debug( + f"Found institution aliases for institution_id={institution_id}: {institution_aliases}" + ) + response = await bund_search_client.search_bund_projects( + page=0, + size=10000, + institution_names=institution_aliases, + ) + + funding_per_year: Dict[int, float] = {} + for project in response.elements: + funding_start = project.funding_start + funding_end = project.funding_end + funding_amount = project.grant_amount + if not funding_start or not funding_end or not funding_amount: + continue + + delta = (funding_end - funding_start).days + 1 + if delta <= 0: + continue + + amount_per_day = funding_amount / delta + start_year = funding_start.year + end_year = funding_end.year + + for year in range(start_year, end_year + 1): + if year == start_year: + year_start = funding_start + else: + year_start = datetime.date(year, 1, 1) + + if year == end_year: + year_end = funding_end + else: + year_end = datetime.date(year, 12, 31) + + days_in_year = (year_end - year_start).days + 1 + proportional_share = days_in_year * amount_per_day + + funding_per_year[year] = ( + funding_per_year.get(year, 0.0) + proportional_share + ) + + sorted_funding_per_year: Dict[int, float] = {} + + if funding_per_year: + min_year = min(funding_per_year.keys()) + max_year = max(funding_per_year.keys()) + + for year in range(min_year, max_year + 1): + sorted_funding_per_year[year] = funding_per_year.get(year, 0.0) + + total_sum = sum(sorted_funding_per_year.values()) + annual_average_over_period = total_sum / len(sorted_funding_per_year) + else: + annual_average_over_period = 0.0 + + return InstitutionFunderSummary( + type="bund", + funding_per_year=sorted_funding_per_year, + annual_average_over_period=annual_average_over_period, + ) diff --git a/ude_person.http b/ude_person.http index 943dd754..83b5a842 100644 --- a/ude_person.http +++ b/ude_person.http @@ -456,37 +456,157 @@ Content-Type: application/json ### -GET https://inse.nes.uni-due.de/elastic/projects_bund/_mapping +GET https://inse.nes.uni-due.de/elastic/projects_bund_v1/_mapping Authorization: ApiKey bG1NSWc1NEJPZ3FnTGZCZXRSSEg6VnJXRFd5SnpSTTNWc1VPT01FMEhMZw== Content-Type: application/json ### -GET https://inse.nes.uni-due.de/elastic/projects_bund/_search +GET https://inse.nes.uni-due.de/elastic/projects_bund_v1/_search Authorization: ApiKey bG1NSWc1NEJPZ3FnTGZCZXRSSEg6VnJXRFd5SnpSTTNWc1VPT01FMEhMZw== Content-Type: application/json { - - "size": 10, - "from": 1000, + "size": 0, "query": { - "match": { - "Zuwendungsempf\u00e4nger": { - "query": "Universit\u00e4t Duisburg-Essen", - "operator": "and" - } + "bool": { + "must": [ + { + "bool": { + "should": [ + { + "match": { + "Zuwendungsempfänger": { + "query": "university of duisburg-eßen", + "operator": "and" + } + } + }, + { + "match": { + "Zuwendungsempfänger": { + "query": "university of duisburg-essen", + "operator": "and" + } + } + }, + { + "match": { + "Zuwendungsempfänger": { + "query": "universitaet duisburg-essen", + "operator": "and" + } + } + }, + { + "match": { + "Zuwendungsempfänger": { + "query": "universitaet duisburg essen", + "operator": "and" + } + } + }, + { + "match": { + "Zuwendungsempfänger": { + "query": "universität duisburg-essen", + "operator": "and" + } + } + }, + { + "match": { + "Zuwendungsempfänger": { + "query": "universitat duisburg-eßen", + "operator": "and" + } + } + }, + { + "match": { + "Zuwendungsempfänger": { + "query": "universitat duisburg essen", + "operator": "and" + } + } + }, + { + "match": { + "Zuwendungsempfänger": { + "query": "university of duisburg essen", + "operator": "and" + } + } + }, + { + "match": { + "Zuwendungsempfänger": { + "query": "universitat duisburg-essen", + "operator": "and" + } + } + }, + { + "match": { + "Zuwendungsempfänger": { + "query": "universität duisburg-eßen", + "operator": "and" + } + } + }, + { + "match": { + "Zuwendungsempfänger": { + "query": "universität duisburg essen", + "operator": "and" + } + } + } + ], + "minimum_should_match": 1 + } + } + ] } }, - "sort": [ - { - "Thema.keyword": { - "order": "asc" + "aggs": { + "distributed_annual_amounts": { + "scripted_metric": { + "init_script": "state.years_map = [:]", + "map_script": "if (doc['funding_start'].size() == 0 || doc['funding_end'].size() == 0 || doc['Fördersumme'].size() == 0) { return; } def start = doc['funding_start'].value.toLocalDate(); def end = doc['funding_end'].value.toLocalDate(); def totalAmount = doc['Fördersumme'].value; def startYear = start.getYear(); def endYear = end.getYear(); if (startYear == endYear) { state.years_map[startYear] = state.years_map.getOrDefault(startYear, 0.0) + totalAmount; } else { long totalDays = ChronoUnit.DAYS.between(start, end) + 1; if (totalDays <= 0) return; double amountPerDay = totalAmount / (double)totalDays; for (int y = startYear; y <= endYear; y++) { def yearStart = (y == startYear) ? start : LocalDate.of(y, 1, 1); def yearEnd = (y == endYear) ? end : LocalDate.of(y, 12, 31); long daysInYear = ChronoUnit.DAYS.between(yearStart, yearEnd) + 1; double proportionalShare = daysInYear * amountPerDay; state.years_map[y] = state.years_map.getOrDefault(y, 0.0) + proportionalShare; } }", + "combine_script": "return state.years_map", + "reduce_script": "def final_map = [:]; for (state in states) { for (entry in state.entrySet()) { final_map[entry.getKey()] = final_map.getOrDefault(entry.getKey(), 0.0) + entry.getValue(); } } if (final_map.isEmpty()) { return ['funding_per_year': final_map, 'annual_average_over_period': 0.0]; } double totalSum = 0.0; for (val in final_map.values()) { totalSum += val; } double avg = totalSum / final_map.size(); return ['funding_per_year': final_map, 'annual_average_over_period': avg];" } } - ] - + } } + + + +### + +# { + +# "size": 10, +# "from": 1000, +# "query": { +# "match": { +# "Zuwendungsempf\u00e4nger": { +# "query": "Universit\u00e4t Duisburg-Essen", +# "operator": "and" +# } +# } +# }, +# "sort": [ +# { +# "Thema.keyword": { +# "order": "asc" +# } +# } +# ] + +# } + #{'size': 10, 'from': 0, 'query': {'match': {'Zuwendungsempfänger': {'query': 'Universität Duisburg-Essen', 'operator': 'and'}}}, 'sort': [{'Thema': {'order': 'asc'}}]} # { diff --git a/webapp/src/app/api/.openapi-generator/FILES b/webapp/src/app/api/.openapi-generator/FILES index 389f5504..289630f9 100644 --- a/webapp/src/app/api/.openapi-generator/FILES +++ b/webapp/src/app/api/.openapi-generator/FILES @@ -65,6 +65,7 @@ model/groupByResult.ts model/hTTPValidationError.ts model/identityGrant.ts model/institution.ts +model/institutionFunderSummary.ts model/institutionGeo.ts model/institutionIds.ts model/institutionInformation.ts diff --git a/webapp/src/app/api/api/projects.service.ts b/webapp/src/app/api/api/projects.service.ts index ef64863e..1823ce02 100644 --- a/webapp/src/app/api/api/projects.service.ts +++ b/webapp/src/app/api/api/projects.service.ts @@ -24,6 +24,8 @@ import { DfgProjectPage } from '../model/dfgProjectPage'; import { EuProjectPage } from '../model/euProjectPage'; // @ts-ignore import { HTTPValidationError } from '../model/hTTPValidationError'; +// @ts-ignore +import { InstitutionFunderSummary } from '../model/institutionFunderSummary'; // @ts-ignore import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; @@ -41,6 +43,67 @@ export class ProjectsService extends BaseService { super(basePath, configuration); } + /** + * Get funding over time for bund projects. + * Returns the funding over time for bund projects associated with the specified institution. + * @endpoint get /api/projects/institution/bund/funding-over-time + * @param institutionId The institution 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 getBundFundingOverTime(institutionId: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; + public getBundFundingOverTime(institutionId: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public getBundFundingOverTime(institutionId: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public getBundFundingOverTime(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 getBundFundingOverTime.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + institutionId, 'institution_id'); + + 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/projects/institution/bund/funding-over-time`; + 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 bund projects. * Returns a page of bund projects based on the provided pagination parameters and optional institution filter. diff --git a/webapp/src/app/api/model/institutionFunderSummary.ts b/webapp/src/app/api/model/institutionFunderSummary.ts new file mode 100644 index 00000000..5f3216ca --- /dev/null +++ b/webapp/src/app/api/model/institutionFunderSummary.ts @@ -0,0 +1,35 @@ +/** + * 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. + */ + + +export interface InstitutionFunderSummary { + /** + * The type of funding data (e.g., \'bund\', \'eu\', \'dfg\'). + */ + type: InstitutionFunderSummary.TypeEnum; + /** + * A dictionary mapping years to total funding amounts for that year. + */ + funding_per_year?: object; + /** + * The average annual funding over the continuous period covered by the data. + */ + annual_average_over_period?: number; +} +export namespace InstitutionFunderSummary { + export const TypeEnum = { + Bund: 'bund', + Eu: 'eu', + Dfg: 'dfg' + } as const; + export type TypeEnum = typeof TypeEnum[keyof typeof TypeEnum]; +} + + diff --git a/webapp/src/app/api/model/models.ts b/webapp/src/app/api/model/models.ts index 58ba4941..62d288a8 100644 --- a/webapp/src/app/api/model/models.ts +++ b/webapp/src/app/api/model/models.ts @@ -45,6 +45,7 @@ export * from './groupByResult'; export * from './hTTPValidationError'; export * from './identityGrant'; export * from './institution'; +export * from './institutionFunderSummary'; export * from './institutionGeo'; export * from './institutionIds'; export * from './institutionInformation'; diff --git a/webapp/src/app/app.routes.ts b/webapp/src/app/app.routes.ts index d8f4b8d5..9302a3bb 100644 --- a/webapp/src/app/app.routes.ts +++ b/webapp/src/app/app.routes.ts @@ -9,6 +9,7 @@ import { bundProjectsResolver } from './resolvers/bund-projects.resolver'; import { euProjectsResolver } from './resolvers/eu-projects.resolver'; import { dfgProjectsResolver } from './resolvers/dfg-projects.resolver'; import { institutionsResolver } from './resolvers/institutions.resolver'; +import { bundProjectsFundingResolver } from './resolvers/bund-projects-funding.resolver'; export const routes: Routes = [ { @@ -230,6 +231,7 @@ export const routes: Routes = [ resolve: { bundProjectPage: bundProjectsResolver, euProjectPage: euProjectsResolver, + bundProjectsFunding: bundProjectsFundingResolver, }, runGuardsAndResolvers: (from, to) => { const keys = ['page', 'size', 'sort_by', 'sort_direction', 'search']; @@ -239,14 +241,7 @@ export const routes: Routes = [ ); }, }, - ], - runGuardsAndResolvers: (from, to) => { - const keys = ['page', 'size', 'sort_by', 'sort_direction']; - - return keys.some( - (key) => from.queryParamMap.get(key) !== to.queryParamMap.get(key), - ); - }, + ] }, { path: 'error', diff --git a/webapp/src/app/modules/institution-projects-funding-graph/institution-projects-funding-graph.component.html b/webapp/src/app/modules/institution-projects-funding-graph/institution-projects-funding-graph.component.html new file mode 100644 index 00000000..d96211ba --- /dev/null +++ b/webapp/src/app/modules/institution-projects-funding-graph/institution-projects-funding-graph.component.html @@ -0,0 +1 @@ +
diff --git a/webapp/src/app/modules/institution-projects-funding-graph/institution-projects-funding-graph.component.scss b/webapp/src/app/modules/institution-projects-funding-graph/institution-projects-funding-graph.component.scss new file mode 100644 index 00000000..e69de29b diff --git a/webapp/src/app/modules/institution-projects-funding-graph/institution-projects-funding-graph.component.ts b/webapp/src/app/modules/institution-projects-funding-graph/institution-projects-funding-graph.component.ts new file mode 100644 index 00000000..8a2e1f21 --- /dev/null +++ b/webapp/src/app/modules/institution-projects-funding-graph/institution-projects-funding-graph.component.ts @@ -0,0 +1,153 @@ +import { Component, effect, input } from '@angular/core'; + +import * as echarts from 'echarts/core'; +import { EChartsOption } from 'echarts'; + +import { GridComponent, LegendComponent } from 'echarts/components'; +import { CanvasRenderer } from 'echarts/renderers'; +import { NgxEchartsDirective } from 'ngx-echarts'; +import { InstitutionFunderSummary } from '../../api'; + +echarts.use([GridComponent, CanvasRenderer, LegendComponent]); + +type FunderData = { + funderName: string; + fundingMap: Record; +}; + +@Component({ + selector: 'app-institution-projects-funding-graph', + imports: [NgxEchartsDirective], + templateUrl: './institution-projects-funding-graph.component.html', + styleUrl: './institution-projects-funding-graph.component.scss', +}) +export class InstitutionProjectsFundingGraphComponent { + options!: EChartsOption; + + fundings = input.required(); + + constructor() { + effect(() => { + const fundings = this.fundings(); + this.generateChartOptions(fundings); + }); + } + + generateChartOptions(fundings: InstitutionFunderSummary[]): void { + const floorToTwoDecimals = (value: number): string => { + const floored = Math.floor(value * 100) / 100; + return floored.toLocaleString(undefined, { + style: 'currency', + currency: 'EUR', + minimumFractionDigits: 2, + maximumFractionDigits: 2, + }); + }; + + const yearsSet = new Set(); + + fundings.forEach((series) => { + if (series.funding_per_year) { + Object.keys(series.funding_per_year).forEach((year) => + yearsSet.add(year), + ); + } + }); + + const xAxisYears = Array.from(yearsSet).sort( + (a, b) => Number(a) - Number(b), + ); + + const currentYearStr = new Date().getFullYear().toString(); + + const chartSeries = fundings.map((series, index) => { + const fundingMap = (series.funding_per_year || {}) as Record< + string, + number + >; + const dataPoints = xAxisYears.map((year) => fundingMap[year] ?? 0); + + const baseSeries: any = { + name: series.type.toUpperCase(), + type: 'line', + stack: 'TotalInstitutionalFunding', + areaStyle: {}, + emphasis: { focus: 'series' }, + data: dataPoints, + }; + + if (index === 0) { + baseSeries.markLine = { + symbol: ['none', 'none'], + silent: true, + label: { + show: true, + position: 'end', + formatter: 'Aktuelles Jahr', + backgroundColor: '#333', + color: '#fff', + padding: [4, 6], + borderRadius: 4, + }, + lineStyle: { + color: '#ff4d4f', + type: 'dashed', + width: 2, + }, + data: [ + { + xAxis: currentYearStr, + }, + ], + }; + } + + return baseSeries; + }); + + this.options = { + tooltip: { + trigger: 'axis', + axisPointer: { + type: 'cross', + label: { backgroundColor: '#6a7985' }, + }, + valueFormatter: (value) => { + const numericValue = Array.isArray(value) ? 0 : Number(value ?? 0); + return floorToTwoDecimals(numericValue); + }, + }, + legend: { + data: fundings.map((series) => series.type.toUpperCase()), + top: '10%', + }, + grid: { + left: '4%', + right: '4%', + bottom: '5%', + containLabel: true, + }, + xAxis: [ + { + type: 'category', + boundaryGap: false, + data: xAxisYears, + }, + ], + yAxis: [ + { + type: 'value', + axisLabel: { + formatter: (value: number) => + value.toLocaleString(undefined, { + style: 'currency', + currency: 'EUR', + maximumFractionDigits: 0, + }), + }, + }, + ], + series: chartSeries, + }; + } +} diff --git a/webapp/src/app/modules/institution-projects/institution-projects.component.html b/webapp/src/app/modules/institution-projects/institution-projects.component.html index 77736b04..999bb587 100644 --- a/webapp/src/app/modules/institution-projects/institution-projects.component.html +++ b/webapp/src/app/modules/institution-projects/institution-projects.component.html @@ -1,48 +1,89 @@

Projekte

- - - - Suche nach Themen - - search - - - - - - - - - - - - - +
+ + + + Suche nach Themen + + search + + + + + + + + + + + + + +
+ + + Förderung über Zeit + + + + + + +
+ + + + +
+
+
diff --git a/webapp/src/app/modules/institution-projects/institution-projects.component.scss b/webapp/src/app/modules/institution-projects/institution-projects.component.scss index c8534b0d..3226d421 100644 --- a/webapp/src/app/modules/institution-projects/institution-projects.component.scss +++ b/webapp/src/app/modules/institution-projects/institution-projects.component.scss @@ -6,3 +6,26 @@ mat-card, mat-paginator { background-color: var(--sg-background); } + +.funding-area { + display: flex; + flex-direction: column; + gap: 1rem; +} + +.funding-info-section { + display: flex; + flex-direction: column; + gap: 1rem; +} + +.funding-info-cards { + display: flex; + flex-direction: row; + gap: 1rem; + + app-person-network-info-card { + width: 100%; + height: 100%; + } +} diff --git a/webapp/src/app/modules/institution-projects/institution-projects.component.ts b/webapp/src/app/modules/institution-projects/institution-projects.component.ts index b5218f2a..00189559 100644 --- a/webapp/src/app/modules/institution-projects/institution-projects.component.ts +++ b/webapp/src/app/modules/institution-projects/institution-projects.component.ts @@ -14,6 +14,7 @@ import { BundProjectPage, EuProject, EuProjectPage, + InstitutionFunderSummary, } from '../../api'; import { MatCardModule } from '@angular/material/card'; import { MatFormFieldModule } from '@angular/material/form-field'; @@ -31,6 +32,8 @@ import { Sort, SortDirection } from '@angular/material/sort'; import { DebounceDirective } from '../../directives/debounce.directive'; import { MatIconModule } from '@angular/material/icon'; import { MatButtonModule } from '@angular/material/button'; +import { InstitutionProjectsFundingGraphComponent } from '../institution-projects-funding-graph/institution-projects-funding-graph.component'; +import { PersonNetworkInfoCardComponent } from '../person-network-info-card/person-network-info-card.component'; type BundProjectRow = { topic: string; @@ -62,6 +65,8 @@ type EuProjectRow = { DebounceDirective, MatIconModule, MatButtonModule, + InstitutionProjectsFundingGraphComponent, + PersonNetworkInfoCardComponent, ], templateUrl: './institution-projects.component.html', styleUrl: './institution-projects.component.scss', @@ -79,6 +84,20 @@ export class InstitutionProjectsComponent implements OnInit { bundProjectColumns: GenericColumn[] = []; bundProjectData: BundProjectRow[] = []; + bundProjectsFunding = input.required(); + + bundTotalFunding = computed(() => { + const funding = this.bundProjectsFunding(); + return Object.values( + funding.funding_per_year as Record, + ).reduce((sum, yearFunding) => sum + yearFunding, 0); + }); + + bundAverageAnnualFunding = computed(() => { + const funding = this.bundProjectsFunding(); + return funding.annual_average_over_period ?? 0; + }); + urlSortKey = signal(''); urlSortDirection = signal(''); urlSearchTerm = signal(''); @@ -118,11 +137,15 @@ export class InstitutionProjectsComponent implements OnInit { const searchTerm = this.urlSearchTerm(); if (searchTerm) { this.router.navigate([], { - queryParams: { search: searchTerm }, + queryParams: { search: searchTerm, page: 0, size: 10 }, queryParamsHandling: 'merge', }); } }); + + effect(() => { + console.log('Funding over time data:', this.bundProjectsFunding()); + }); } readonly queryParams = toSignal(this.activatedRoute.queryParamMap, { @@ -286,14 +309,14 @@ export class InstitutionProjectsComponent implements OnInit { handleSearchTermChange(newTerm: string): void { this.router.navigate([], { - queryParams: { search: newTerm }, + queryParams: { search: newTerm, page: 0, size: 10 }, queryParamsHandling: 'merge', }); } clearSearchTerm(): void { this.router.navigate([], { - queryParams: { search: null }, + queryParams: { search: null, page: 0, size: 10 }, queryParamsHandling: 'merge', }); } diff --git a/webapp/src/app/resolvers/bund-projects-funding.resolver.ts b/webapp/src/app/resolvers/bund-projects-funding.resolver.ts new file mode 100644 index 00000000..61591e66 --- /dev/null +++ b/webapp/src/app/resolvers/bund-projects-funding.resolver.ts @@ -0,0 +1,13 @@ +import { ResolveFn } from '@angular/router'; +import { InstitutionFunderSummary, ProjectsService } from '../api'; +import { inject } from '@angular/core'; + +export const bundProjectsFundingResolver: ResolveFn< + InstitutionFunderSummary +> = (route, state) => { + let institutionId = route.paramMap.get('institutionId'); + if (!institutionId) { + institutionId = route.parent?.paramMap.get('institutionId') ?? null; + } + return inject(ProjectsService).getBundFundingOverTime(institutionId || ''); +}; From 6f81849364875ce67d75f2599acbb5360754b5c2 Mon Sep 17 00:00:00 2001 From: genja Date: Thu, 18 Jun 2026 18:29:39 +0200 Subject: [PATCH 17/41] fixed institution autocomplete bug --- service/src/main/inse/institutions/router.py | 44 ++++++++++---------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/service/src/main/inse/institutions/router.py b/service/src/main/inse/institutions/router.py index c5ae252c..423281c0 100644 --- a/service/src/main/inse/institutions/router.py +++ b/service/src/main/inse/institutions/router.py @@ -81,28 +81,6 @@ async def search_institutions_by_name( ) -@router.get( - "/{id}", - summary="Returns a single institution by ID.", - description="Returns a single institution by its OpenAlex ID.", - operation_id="getInstitutionById", - responses={ - status.HTTP_200_OK: { - "description": "Successful Response", - "model": Institution, - }, - status.HTTP_404_NOT_FOUND: {"description": "Institution not found"}, - }, -) -async def get_institution( - id: str, - client: Annotated[ - InstitutionsSearchClient, Depends(get_institutions_search_client) - ], -) -> Institution: - return await logic.get_institution_by_id(raw_institution_id=id, client=client) - - @router.get( "/autocomplete", operation_id="autocompleteInstitutions", @@ -142,6 +120,28 @@ async def autocomplete_institutions( client=client, ) +@router.get( + "/{id}", + summary="Returns a single institution by ID.", + description="Returns a single institution by its OpenAlex ID.", + operation_id="getInstitutionById", + responses={ + status.HTTP_200_OK: { + "description": "Successful Response", + "model": Institution, + }, + status.HTTP_404_NOT_FOUND: {"description": "Institution not found"}, + }, +) +async def get_institution( + id: str, + client: Annotated[ + InstitutionsSearchClient, Depends(get_institutions_search_client) + ], +) -> Institution: + return await logic.get_institution_by_id(raw_institution_id=id, client=client) + + @router.get( "", From 75e7d2313e975a4c6482db7b9ac409f825680db0 Mon Sep 17 00:00:00 2001 From: genja Date: Thu, 18 Jun 2026 18:31:41 +0200 Subject: [PATCH 18/41] added navigating options to app-data-table component enabling navigating on click --- .../person-projects.component.html | 5 ++++- .../ui/data-table/data-table.component.html | 19 +++++++++++++------ .../ui/data-table/data-table.component.ts | 16 ++++++++++++++-- 3 files changed, 31 insertions(+), 9 deletions(-) diff --git a/webapp/src/app/modules/person-projects/person-projects.component.html b/webapp/src/app/modules/person-projects/person-projects.component.html index b1f8bb43..1033f016 100644 --- a/webapp/src/app/modules/person-projects/person-projects.component.html +++ b/webapp/src/app/modules/person-projects/person-projects.component.html @@ -26,7 +26,10 @@ [detailTemplate]="dfgProjectDetailRowTmp" [activeSortKey]="urlSortKey()" [sortDirection]="urlSortDirection()" - (sortChange)="handleSortChange($event)" /> + (sortChange)="handleSortChange($event)" + [navigatePrefix]="'projects/dfg/'" + [navigateField]="'id'"/> + - - + @if (navigatePrefix() || navigateField()){ + + } @else { + + } { id: string; @@ -57,7 +58,8 @@ export class DataTableComponent implements AfterViewInit { activeSortKey = input(''); sortDirection = input(''); - + navigatePrefix=input(''); + navigateField=input(''); sortChange = output(); displayedColumns = computed(() => this.columns().map((col) => col.id)); @@ -65,7 +67,7 @@ export class DataTableComponent implements AfterViewInit { sort = viewChild.required(MatSort); - constructor() { + constructor(private router:Router) { effect(() => { const currentData = this.data(); @@ -110,6 +112,16 @@ export class DataTableComponent implements AfterViewInit { this.sortChange.emit(sort); } + navigateToDataField(row: any): void { + if (!this.navigatePrefix() || !this.navigateField()) { + return; + } + const value = row[this.navigateField()]; + if (value != null) { + this.router.navigate([this.navigatePrefix(), value]); + } +} + toggleRow(row: T): void { if (!this.detailTemplate()) return; this.expandedElement.update((current) => (current === row ? null : row)); From f644473f3d56b0a4e4cec46d09f6689ed3162160 Mon Sep 17 00:00:00 2001 From: genja Date: Thu, 18 Jun 2026 18:32:40 +0200 Subject: [PATCH 19/41] added resolver for dfg project page --- webapp/src/app/app.routes.ts | 22 ++++++++++++++++++- .../resolvers/dfg-single-project-resolver.ts | 16 ++++++++++++++ .../ui/app-layout/app-layout.component.html | 6 +++++ 3 files changed, 43 insertions(+), 1 deletion(-) create mode 100644 webapp/src/app/resolvers/dfg-single-project-resolver.ts diff --git a/webapp/src/app/app.routes.ts b/webapp/src/app/app.routes.ts index 9302a3bb..a59480a5 100644 --- a/webapp/src/app/app.routes.ts +++ b/webapp/src/app/app.routes.ts @@ -10,6 +10,7 @@ import { euProjectsResolver } from './resolvers/eu-projects.resolver'; import { dfgProjectsResolver } from './resolvers/dfg-projects.resolver'; import { institutionsResolver } from './resolvers/institutions.resolver'; import { bundProjectsFundingResolver } from './resolvers/bund-projects-funding.resolver'; +import { dfgSingleProjectResolver } from './resolvers/dfg-single-project-resolver'; // Keep this import export const routes: Routes = [ { @@ -86,6 +87,25 @@ export const routes: Routes = [ (mod) => mod.PublicationDetailComponent, ), }, + { + path: 'projects/dfg/:id', + canActivate: [userGuard], + pathMatch: 'full', + loadComponent: () => + import('./modules/person-projects/dfg-details/dfg-details.component').then( + (mod) => mod.DfgDetailsComponent, + ), + resolve: { + dfgSingleProject: dfgSingleProjectResolver, + }, + // runGuardsAndResolvers: (from, to) => { + // const keys = ['page', 'size', 'sort_by', 'sort_direction', 'search']; + + // return keys.some( + // (key) => from.queryParamMap.get(key) !== to.queryParamMap.get(key), + // ); + // }, + }, { path: 'person/:id', canActivate: [userGuard], @@ -241,7 +261,7 @@ export const routes: Routes = [ ); }, }, - ] + ], }, { path: 'error', diff --git a/webapp/src/app/resolvers/dfg-single-project-resolver.ts b/webapp/src/app/resolvers/dfg-single-project-resolver.ts new file mode 100644 index 00000000..b06a3d67 --- /dev/null +++ b/webapp/src/app/resolvers/dfg-single-project-resolver.ts @@ -0,0 +1,16 @@ +import { inject } from '@angular/core'; +import { ResolveFn } from '@angular/router'; +import { ProjectsService } from '../api/api/projects.service'; +import { DfgProjectDetails } from '../api'; + +export const dfgSingleProjectResolver: ResolveFn = ( + route, + state, +) => { + const projectsService = inject(ProjectsService); + const projectId = route.paramMap.get('id'); + if (!projectId) { + throw new Error('DFG Project ID is required'); + } + return projectsService.getSingleDfgProject(projectId); +}; \ No newline at end of file diff --git a/webapp/src/app/shared/ui/app-layout/app-layout.component.html b/webapp/src/app/shared/ui/app-layout/app-layout.component.html index 6de5f1f4..391a9632 100644 --- a/webapp/src/app/shared/ui/app-layout/app-layout.component.html +++ b/webapp/src/app/shared/ui/app-layout/app-layout.component.html @@ -52,6 +52,12 @@ icon="person" [size]="200" [diameter]="200" /> + } @else if (resolverState.isResolvingFromOutside('/projects/')){ + } @else { } From 09aeb537cfe2044311a8613381fb7bb7aec508e7 Mon Sep 17 00:00:00 2001 From: genja Date: Thu, 18 Jun 2026 18:32:59 +0200 Subject: [PATCH 20/41] removed redundant data --- webapp/src/app/resolvers/person.resolver.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/webapp/src/app/resolvers/person.resolver.ts b/webapp/src/app/resolvers/person.resolver.ts index a20198f2..aadfdf0d 100644 --- a/webapp/src/app/resolvers/person.resolver.ts +++ b/webapp/src/app/resolvers/person.resolver.ts @@ -6,11 +6,7 @@ export const personResolver: ResolveFn = ( route, state, ) => { - const parseQueryParamArray = (val: any): string[] => { - if (!val) return []; - if (Array.isArray(val)) return val; - return [val]; - }; + const PERSON_INCLUDE_TAGS = 'topics_full,topic_share,summary_stats,ids,last_known_institutions,' + 'sources,counts_by_year,works_api_url,dates,cited_by_count_boost'; From dbd1616e369b579c85eda0dab2949e036f386e30 Mon Sep 17 00:00:00 2001 From: genja Date: Thu, 18 Jun 2026 18:33:31 +0200 Subject: [PATCH 21/41] created new detailed dfg project model --- .../main/inse/models/dfg_project_details.py | 275 ++++++++++++++++++ 1 file changed, 275 insertions(+) create mode 100644 service/src/main/inse/models/dfg_project_details.py diff --git a/service/src/main/inse/models/dfg_project_details.py b/service/src/main/inse/models/dfg_project_details.py new file mode 100644 index 00000000..96ee5dc9 --- /dev/null +++ b/service/src/main/inse/models/dfg_project_details.py @@ -0,0 +1,275 @@ +# coding: utf-8 + +""" + DFG Project Clean Model + + Summary model that consolidates all scattered person and institution fields + from the raw projects_dfg_all index into clean, unified lists. +""" + +from typing import Optional, List, Set + +from pydantic import BaseModel, ConfigDict, Field + + +class DfgProjectDetails(BaseModel): + """ + Clean summary model for a DFG project, consolidating all person roles + and institution references into unified lists. + """ + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + ) + + 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" + ) + description: Optional[str] = Field( + default=None, description="The description of the DFG project" + ) + + project_identifier: Optional[str] = Field( + default=None, + description="The project identifier of the DFG project", + ) + + 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( + 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", + ) + + website: Optional[str] = Field( + default=None, description="The project website" + ) + + # Unified person list: all person names from any role + associated_persons: List[str] = Field( + default_factory=list, + description="All persons associated with the DFG project (any role)", + ) + + # Unified institution list: all institutions involved + institutions: List[str] = Field( + default_factory=list, + description="All institutions associated with the DFG project", + ) + + # Sub-project reference + subproject_of: Optional[str] = Field( + default=None, + description="Parent project this is a sub-project of", + ) + + @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. + """ + + source = hit.get("_source", {}) + + associated_persons: Set[str] = set() + institutions: Set[str] = set() + + # --- 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"), + title=source.get("title"), + description=source.get("description"), + project_identifier=source.get("Projektkennung"), + funding_start_date=source.get("funding_start"), + funding_end_date=source.get("funding_end"), + dfg_procedure=source.get("DFG-Verfahren"), + subject_area=source.get("Fachliche Zuordnung"), + funding_type=source.get("Förderung"), + international_reference=source.get("Internationaler Bezug"), + website=source.get("Webseite"), + associated_persons=sorted(associated_persons), # sorted for consistency + institutions=sorted(institutions), + subproject_of=source.get("Teilprojekt zu"), + ) + + +# --- 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 From 513cfeaed4672663d22a2e8b6e153ab3e756fc1d Mon Sep 17 00:00:00 2001 From: genja Date: Thu, 18 Jun 2026 18:39:38 +0200 Subject: [PATCH 22/41] added new endpoint for searching single dfg project by id --- .../inse/projects/projects_search_client.py | 37 ++++++++++++++++++- service/src/main/inse/projects/router.py | 29 +++++++++++++++ service/src/main/inse/projects/service.py | 13 +++++++ 3 files changed, 78 insertions(+), 1 deletion(-) diff --git a/service/src/main/inse/projects/projects_search_client.py b/service/src/main/inse/projects/projects_search_client.py index d38304d3..72d34f0f 100644 --- a/service/src/main/inse/projects/projects_search_client.py +++ b/service/src/main/inse/projects/projects_search_client.py @@ -13,6 +13,7 @@ from inse.projects.model import ( EuProjectPage, ) from inse.models.eu_project import EuProject +from inse.models.dfg_project_details import DfgProjectDetails settings = get_settings() @@ -124,7 +125,7 @@ class BundProjectsSearchClient(ProjectsSearchClient): raise ValueError("Elasticsearch INSE API key is missing in settings.") super().__init__( base_url=settings.elasticsearch_inse_url, - index="projects_bund_v1", + index="projects_bund", api_key=settings.elasticsearch_inse_api_key, ) @@ -236,6 +237,24 @@ class BundProjectsSearchClient(ProjectsSearchClient): response = await self.make_search_request(query) return self.response_to_bund_project_page(response, page, size) + async def get_bund_projects_by_institution_name( + self, + institution_names: List[str], + page: int, + size: int, + sort_by: str = "topic", + sort_direction: str = "asc", + ) -> BundProjectPage: + query = self.bund_projects_query( + page=page, + size=size, + institution_names=institution_names, + sort_by=sort_by, + sort_direction=sort_direction, + ) + response = await self.make_search_request(query) + return self.response_to_bund_project_page(response, page, size) + class EuProjectsSearchClient(ProjectsSearchClient): def __init__(self): @@ -605,3 +624,19 @@ class DfgProjectsSearchClient(ProjectsSearchClient): ) response = await self.make_search_request(query) return self.response_to_dfg_project_page(response, page, size) + + async def get_dfg_project_by_id(self, project_id: str) -> Optional[DfgProjectDetails]: + base_query = self.dfg_projects_query(page=0, size=1) + query = { + "query": {"ids": {"values": [project_id]}}, + "_source": True + } + + response = await self.make_search_request(query) + hits = response.get("hits", {}).get("hits", []) + + if hits: + hit = hits[0] + details = DfgProjectDetails.from_elastic_hit(hit=hit) + return details + return None diff --git a/service/src/main/inse/projects/router.py b/service/src/main/inse/projects/router.py index c9baa58d..af2561fb 100644 --- a/service/src/main/inse/projects/router.py +++ b/service/src/main/inse/projects/router.py @@ -3,6 +3,7 @@ import logging from typing import Annotated, Optional from fastapi import APIRouter, Depends, Query, status +from fastapi import APIRouter, Depends, Query, Path, status from inse.projects.model import ( BundProjectPage, @@ -10,6 +11,7 @@ from inse.projects.model import ( EuProjectPage, InstitutionFunderSummary, ) +from inse.models.dfg_project_details import DfgProjectDetails from inse.tags import Tags from inse.projects import service as projects_service from inse.projects.projects_search_client import ( @@ -88,6 +90,33 @@ async def get_bund_projects( ) +@router.get( + "/dfg/{id}", + summary="Get a single DFG project.", + description="Returns a single DFG project based on its ID.", + operation_id="getSingleDfgProject", + responses={ + status.HTTP_200_OK: { + "description": "Successful Response", + "model": DfgProjectDetails, + }, + status.HTTP_404_NOT_FOUND: {"description": "Project not found"}, + }, + response_model_by_alias=False, +) +async def get_single_dfg_project( + dfg_search_client: Annotated[ + DfgProjectsSearchClient, Depends(get_dfg_search_client) + ], + id: Annotated[str, Path(description="The ID of the DFG project to retrieve.")], +) -> DfgProjectDetails: + logger.debug(f"Received request to get single DFG project for id={id}") + return await projects_service.get_single_dfg_project( + dfg_search_client=dfg_search_client, + project_id=id, + ) + + @router.get( "/institution/bund/funding-over-time", summary="Get funding over time for bund projects.", diff --git a/service/src/main/inse/projects/service.py b/service/src/main/inse/projects/service.py index fda7832e..e931b525 100644 --- a/service/src/main/inse/projects/service.py +++ b/service/src/main/inse/projects/service.py @@ -13,6 +13,7 @@ from inse.projects.model import ( EuProjectPage, InstitutionFunderSummary, ) +from inse.models.dfg_project_details import DfgProjectDetails from inse.institutions.institutions_search_client import ( InstitutionsSearchClient, ) @@ -186,3 +187,15 @@ async def get_institution_bund_funding_over_time( funding_per_year=sorted_funding_per_year, annual_average_over_period=annual_average_over_period, ) + + +async def get_single_dfg_project( + dfg_search_client: DfgProjectsSearchClient, + project_id: str, +) -> DfgProjectDetails: + logger.debug(f"Fetching single DFG project for id={project_id}") + + project = await dfg_search_client.get_dfg_project_by_id(project_id) + if not project: + raise NotFoundException(f"DFG project with id {project_id} not found") + return project From 44ab5780786efd40160e06d629673117fa03825f Mon Sep 17 00:00:00 2001 From: genja Date: Thu, 18 Jun 2026 18:40:20 +0200 Subject: [PATCH 23/41] regenerated models --- webapp/src/app/api/.openapi-generator/FILES | 1 + webapp/src/app/api/api/projects.service.ts | 58 +++++++++++ webapp/src/app/api/model/auslaend.ts | 20 ++++ webapp/src/app/api/model/dfgProjectDetails.ts | 41 ++++++++ webapp/src/app/api/model/models.ts | 1 + webapp/src/app/api/model/projectDfg.ts | 98 +++++++++++++++++++ webapp/src/app/api/model/stellvertr.ts | 21 ++++ .../app/api/model/stellvertrSprecherinnen.ts | 18 ++++ 8 files changed, 258 insertions(+) create mode 100644 webapp/src/app/api/model/auslaend.ts create mode 100644 webapp/src/app/api/model/dfgProjectDetails.ts create mode 100644 webapp/src/app/api/model/projectDfg.ts create mode 100644 webapp/src/app/api/model/stellvertr.ts create mode 100644 webapp/src/app/api/model/stellvertrSprecherinnen.ts diff --git a/webapp/src/app/api/.openapi-generator/FILES b/webapp/src/app/api/.openapi-generator/FILES index 6356ffd4..250c191a 100644 --- a/webapp/src/app/api/.openapi-generator/FILES +++ b/webapp/src/app/api/.openapi-generator/FILES @@ -51,6 +51,7 @@ model/dehydratedAuthor.ts model/dehydratedFunder.ts model/dehydratedInstitution.ts model/dehydratedSource.ts +model/dfgProjectDetails.ts model/dfgProjectPage.ts model/dfgProjectSummary.ts model/displayCodeSplittedNested.ts diff --git a/webapp/src/app/api/api/projects.service.ts b/webapp/src/app/api/api/projects.service.ts index 1823ce02..7c044b2c 100644 --- a/webapp/src/app/api/api/projects.service.ts +++ b/webapp/src/app/api/api/projects.service.ts @@ -19,6 +19,8 @@ import { Observable } from 'rxjs'; // @ts-ignore import { BundProjectPage } from '../model/bundProjectPage'; // @ts-ignore +import { DfgProjectDetails } from '../model/dfgProjectDetails'; +// @ts-ignore import { DfgProjectPage } from '../model/dfgProjectPage'; // @ts-ignore import { EuProjectPage } from '../model/euProjectPage'; @@ -332,4 +334,60 @@ export class ProjectsService extends BaseService { ); } + /** + * Get a single DFG project. + * Returns a single DFG project based on its ID. + * @endpoint get /api/projects/dfg/{id} + * @param id The ID of the DFG project 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 getSingleDfgProject(id: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; + public getSingleDfgProject(id: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public getSingleDfgProject(id: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public getSingleDfgProject(id: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { + if (id === null || id === undefined) { + throw new Error('Required parameter id was null or undefined when calling getSingleDfgProject.'); + } + + 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/projects/dfg/${this.configuration.encodeParam({name: "id", value: id, 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 + } + ); + } + } diff --git a/webapp/src/app/api/model/auslaend.ts b/webapp/src/app/api/model/auslaend.ts new file mode 100644 index 00000000..5fbeb5c0 --- /dev/null +++ b/webapp/src/app/api/model/auslaend.ts @@ -0,0 +1,20 @@ +/** + * 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. + */ + + +/** + * Nested object for international co-applicants. + */ +export interface Auslaend { + ' Mitantragstellerin'?: string | null; + ' Mitantragstellerinnen'?: string | null; + ' Mitantragstellerinnen / ausländische Mitantragsteller'?: string | null; +} + diff --git a/webapp/src/app/api/model/dfgProjectDetails.ts b/webapp/src/app/api/model/dfgProjectDetails.ts new file mode 100644 index 00000000..5fe29ff9 --- /dev/null +++ b/webapp/src/app/api/model/dfgProjectDetails.ts @@ -0,0 +1,41 @@ +/** + * 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. + */ + + +/** + * Clean summary model for a DFG project, consolidating all person roles and institution references into unified lists. + */ +export interface DfgProjectDetails { + /** + * The ID of the DFG project + */ + id: string; + link?: string | null; + title?: string | null; + description?: string | null; + project_identifier?: string | null; + funding_start_date?: string | null; + funding_end_date?: string | null; + dfg_procedure?: string | null; + subject_area?: string | null; + funding_type?: string | null; + international_reference?: string | null; + website?: string | null; + /** + * All persons associated with the DFG project (any role) + */ + associated_persons?: Array; + /** + * All institutions associated with the DFG project + */ + institutions?: Array; + subproject_of?: string | null; +} + diff --git a/webapp/src/app/api/model/models.ts b/webapp/src/app/api/model/models.ts index 7a1fd7b9..17048a2a 100644 --- a/webapp/src/app/api/model/models.ts +++ b/webapp/src/app/api/model/models.ts @@ -31,6 +31,7 @@ export * from './dehydratedAuthor'; export * from './dehydratedFunder'; export * from './dehydratedInstitution'; export * from './dehydratedSource'; +export * from './dfgProjectDetails'; export * from './dfgProjectPage'; export * from './dfgProjectSummary'; export * from './displayCodeSplittedNested'; diff --git a/webapp/src/app/api/model/projectDfg.ts b/webapp/src/app/api/model/projectDfg.ts new file mode 100644 index 00000000..42ac15c0 --- /dev/null +++ b/webapp/src/app/api/model/projectDfg.ts @@ -0,0 +1,98 @@ +/** + * 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. + */ +import { Auslaend } from './auslaend'; +import { Stellvertr } from './stellvertr'; + + +/** + * Main document model for the projects_dfg_all index. + */ +export interface ProjectDfg { + 'Antragstellende Institution'?: string | null; + Antragsteller?: string | null; + Antragstellerin?: string | null; + Antragstellerinnen?: string | null; + 'Antragstellerinnen / Antragsteller'?: string | null; + Anwendungspartner?: string | null; + 'Beteiligte Einrichtung'?: string | null; + 'Beteiligte Hochschule'?: string | null; + 'Beteiligte Institution'?: string | null; + 'Beteiligte Person'?: string | null; + 'Beteiligte Personen'?: string | null; + 'Co-Sprecher'?: string | null; + 'Co-Sprecherinnen / Co-Sprecher'?: string | null; + 'DFG-Verfahren'?: string | null; + 'Ehemalige Antragsteller'?: string | null; + 'Ehemalige Antragstellerin'?: string | null; + 'Ehemalige Antragstellerinnen'?: string | null; + 'Ehemalige Antragstellerinnen / Ehemalige Antragsteller'?: string | null; + 'Ehemaliger Antragsteller'?: string | null; + 'Fachliche Zuordnung'?: string | null; + 'Förderung'?: string | null; + Gastgeber?: string | null; + Gastgeberin?: string | null; + Gastgeberinnen?: string | null; + 'Gastgeberinnen / Gastgeber'?: string | null; + 'Gerätegruppe'?: string | null; + 'Großgeräte'?: string | null; + 'IGK-Partnerinstitution'?: string | null; + 'Internationaler Bezug'?: string | null; + Kooperationspartner?: string | null; + Kooperationspartnerin?: string | null; + Kooperationspartnerinnen?: string | null; + 'Kooperationspartnerinnen / Kooperationspartner'?: string | null; + Leiter?: string | null; + Leiterin?: string | null; + Leiterinnen?: string | null; + 'Leiterinnen / Leiter'?: string | null; + 'Mitantragstellende Institution'?: string | null; + Mitantragsteller?: string | null; + Mitantragstellerin?: string | null; + Mitantragstellerinnen?: string | null; + 'Mitantragstellerinnen / Mitantragsteller'?: string | null; + Mitverantwortlich?: string | null; + 'Mitverantwortlich(e)'?: string | null; + Mitverantwortliche?: string | null; + Partnerorganisation?: string | null; + Projektkennung?: string | null; + Sprecher?: string | null; + 'Sprecher (IGK-Partner)'?: string | null; + Sprecherin?: string | null; + 'Sprecherin (IGK-Partner)'?: string | null; + Sprecherinnen?: string | null; + 'Sprecherinnen (IGK-Partner) / Sprecher (IGK-Partner)'?: string | null; + 'Sprecherinnen / Sprecher'?: string | null; + 'Teilprojekt zu'?: string | null; + Teilprojektleiter?: string | null; + Teilprojektleiterin?: string | null; + Teilprojektleiterinnen?: string | null; + 'Teilprojektleiterinnen / Teilprojektleiter'?: string | null; + Unternehmen?: string | null; + Webseite?: string | null; + 'ausländ'?: Auslaend | null; + 'ausländische Mitantragsteller'?: string | null; + 'ausländischer Mitantragsteller'?: string | null; + 'beteiligte Wissenschaftler'?: string | null; + 'beteiligte Wissenschaftlerin'?: string | null; + 'beteiligte Wissenschaftlerinnen'?: string | null; + 'beteiligte Wissenschaftlerinnen / beteiligte Wissenschaftler'?: string | null; + 'beteiligter Wissenschaftler'?: string | null; + description?: string | null; + funding_end?: string | null; + funding_start?: string | null; + id?: string | null; + link?: string | null; + path?: string | null; + person_creater_address?: string | null; + person_creater_name?: string | null; + stellvertr?: Stellvertr | null; + title?: string | null; +} + diff --git a/webapp/src/app/api/model/stellvertr.ts b/webapp/src/app/api/model/stellvertr.ts new file mode 100644 index 00000000..17635d00 --- /dev/null +++ b/webapp/src/app/api/model/stellvertr.ts @@ -0,0 +1,21 @@ +/** + * 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. + */ +import { StellvertrSprecherinnen } from './stellvertrSprecherinnen'; + + +/** + * Nested object for deputy speakers. + */ +export interface Stellvertr { + ' Sprecher'?: string | null; + ' Sprecherin'?: string | null; + ' Sprecherinnen / stellvertr'?: StellvertrSprecherinnen | null; +} + diff --git a/webapp/src/app/api/model/stellvertrSprecherinnen.ts b/webapp/src/app/api/model/stellvertrSprecherinnen.ts new file mode 100644 index 00000000..4296cce4 --- /dev/null +++ b/webapp/src/app/api/model/stellvertrSprecherinnen.ts @@ -0,0 +1,18 @@ +/** + * 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. + */ + + +/** + * Deeply nested object within stellvertr. + */ +export interface StellvertrSprecherinnen { + ' Sprecher'?: string | null; +} + From dae9147cce371557960be7183efd296392129ddd Mon Sep 17 00:00:00 2001 From: genja Date: Thu, 18 Jun 2026 18:40:53 +0200 Subject: [PATCH 24/41] added detailed overview page for a single DFG project --- .../dfg-details/dfg-details.component.html | 243 +++++++++ .../dfg-details/dfg-details.component.scss | 467 ++++++++++++++++++ .../dfg-details/dfg-details.component.ts | 77 +++ 3 files changed, 787 insertions(+) create mode 100644 webapp/src/app/modules/person-projects/dfg-details/dfg-details.component.html create mode 100644 webapp/src/app/modules/person-projects/dfg-details/dfg-details.component.scss create mode 100644 webapp/src/app/modules/person-projects/dfg-details/dfg-details.component.ts diff --git a/webapp/src/app/modules/person-projects/dfg-details/dfg-details.component.html b/webapp/src/app/modules/person-projects/dfg-details/dfg-details.component.html new file mode 100644 index 00000000..9b351084 --- /dev/null +++ b/webapp/src/app/modules/person-projects/dfg-details/dfg-details.component.html @@ -0,0 +1,243 @@ +
+ + + @if (dfgProject) { +
+
+
+ DFG Projekt + ID: {{ dfgProject.id }} +
+

{{ dfgProject.title }}

+ @if (dfgProject.project_identifier) { +

+ {{ dfgProject.project_identifier.split('-')[0] }} +

+ } +
+ @if (dfgProject.link) { + + open_in_new + Zum Projekt + + } + @if (dfgProject.website) { + + language + Webseite + + } +
+
+ +
+
+ calendar_today +
+ {{ dfgProject.funding_start_date || 'N/A' }} + Fördersbeginn +
+
+
+ event_busy +
+ {{ getFundingStatus(dfgProject.funding_end_date) }} + Fördersende +
+
+ + @if (dfgProject.dfg_procedure) { +
+ gavel +
+ {{ dfgProject.dfg_procedure }} + DFG Verfahren +
+
+ } + + @if (dfgProject.international_reference) { +
+ public +
+ {{ dfgProject.international_reference }} + Internationaler Bezug +
+
+ } +
+
+ + @if (dfgProject.description) { + +
+ description +

Beschreibung

+
+

{{ dfgProject.description }}

+
+ } + +
+
+ + +
+ people +

Beteiligte Personen

+ {{ getAssociatedPersons().length }} +
+ @if (getAssociatedPersons().length > 0) { +
+ @for (person of getAssociatedPersons(); track person) { +
+
{{ getInitials(person) }}
+
{{ person }}
+
+ } +
+ } @else { +
Keine Personen gefunden.
+ } +
+ + + +
+ business +

Beteiligte Institutionen

+ {{ getInstitutions().length }} +
+ @if (getInstitutions().length > 0) { +
+ @for (institution of getInstitutions(); track institution) { +
+ apartment + {{ institution }} +
+ } +
+ } @else { +
Keine Institutionen gefunden.
+ } +
+ + +
+ + +
+ } @else { +
+
+ error_outline +

DFG Projekt nicht gefunden.

+
+
+ } +
diff --git a/webapp/src/app/modules/person-projects/dfg-details/dfg-details.component.scss b/webapp/src/app/modules/person-projects/dfg-details/dfg-details.component.scss new file mode 100644 index 00000000..4b2b0a8b --- /dev/null +++ b/webapp/src/app/modules/person-projects/dfg-details/dfg-details.component.scss @@ -0,0 +1,467 @@ +.detail-page { + padding: 28px 32px 42px; + max-width: 100%; + margin: 0 auto; +} + +.page-header { + display: flex; + align-items: center; + justify-content: space-between; + gap: 18px; + margin-bottom: 24px; +} + +.back-link { + display: inline-flex; + align-items: center; + gap: 8px; + padding: 8px 16px; + border: 1px solid #d9e2f0; + border-radius: var(--sg-radius-sm); + background: #fff; + color: var(--sg-text); + cursor: pointer; + font-size: 14px; + transition: all 0.2s; +} + +.back-link:hover { + background: #f5f7fa; + border-color: #b8c5d6; +} + +.back-link mat-icon { + width: 20px; + height: 20px; + font-size: 20px; +} + +.breadcrumb { + display: flex; + align-items: center; + gap: 6px; + color: var(--sg-text-muted); + font-size: 13px; +} + +.breadcrumb mat-icon { + width: 18px; + height: 18px; + font-size: 18px; +} + +.breadcrumb span:last-child { + color: var(--sg-text); + font-weight: 500; +} + +.project-hero { + background: #f8fafc; + border: 1px solid #d9e2f0; + border-radius: var(--sg-radius-md); + padding: 28px 32px; + margin-bottom: 28px; +} + +.hero-content { + margin-bottom: 24px; +} + +.eyebrow { + display: flex; + align-items: center; + gap: 12px; + margin-bottom: 12px; +} + +.project-badge { + display: inline-block; + padding: 4px 12px; + background: #e8edf5; + color: var(--sg-text); + border-radius: var(--sg-radius-sm); + font-size: 12px; + font-weight: 600; + text-transform: uppercase; + letter-spacing: 0.5px; +} + +.project-id { + color: var(--sg-text-muted); + font-size: 13px; +} + +h1 { + margin: 0 0 8px; + font-size: 26px; + line-height: 1.3; + font-weight: 700; + color: var(--sg-text); +} + +.project-identifier { + margin: 0 0 16px; + color: var(--sg-text-muted); + font-size: 14px; +} + +.hero-actions { + display: flex; + flex-wrap: wrap; + gap: 10px; +} + +.primary-action, +.secondary-action { + display: inline-flex; + align-items: center; + gap: 8px; + padding: 10px 20px; + border-radius: var(--sg-radius-sm); + text-decoration: none; + font-size: 14px; + font-weight: 500; + transition: all 0.2s; +} + +.primary-action { + background: var(--sg-primary, #0066cc); + color: #fff; + border: none; +} + +.primary-action:hover { + background: var(--sg-primary-dark, #0052a3); +} + +.secondary-action { + background: #fff; + color: var(--sg-text); + border: 1px solid #d9e2f0; +} + +.secondary-action:hover { + background: #f5f7fa; + border-color: #b8c5d6; +} + +.primary-action mat-icon, +.secondary-action mat-icon { + width: 20px; + height: 20px; + font-size: 20px; +} + +.metrics-grid { + display: grid; + grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); + gap: 16px; + padding-top: 20px; + border-top: 1px solid #d9e2f0; +} + +.metric-item { + display: flex; + align-items: center; + gap: 12px; +} + +.metric-item mat-icon { + color: var(--sg-text-muted); + width: 24px; + height: 24px; + font-size: 24px; +} + +.metric-content { + display: flex; + flex-direction: column; +} + +.metric-content strong { + font-size: 15px; + color: var(--sg-text); + line-height: 1.3; +} + +.metric-content span { + font-size: 12px; + color: var(--sg-text-muted); +} + +.card { + margin-bottom: 24px; + border-color: #d9e2f0 !important; + border-radius: var(--sg-radius-md) !important; +} + +.card ::ng-deep .mat-mdc-card-content { + padding: 0; +} + +.section-header { + display: flex; + align-items: center; + gap: 10px; + padding: 16px 20px 12px; + border-bottom: 1px solid #f0f2f5; +} + +.section-header mat-icon { + color: var(--sg-text-muted); + width: 22px; + height: 22px; + font-size: 22px; +} + +.section-header h2 { + margin: 0; + font-size: 16px; + font-weight: 600; + color: var(--sg-text); +} + +.count-badge { + display: inline-flex; + align-items: center; + justify-content: center; + min-width: 24px; + height: 24px; + padding: 0 8px; + margin-left: auto; + background: #e8edf5; + border-radius: 12px; + color: var(--sg-text-muted); + font-size: 12px; + font-weight: 500; +} + +.description-text { + padding: 16px 20px 20px; + margin: 0; + color: var(--sg-text); + font-size: 14px; + line-height: 1.6; +} + +.content-grid { + display: grid; + grid-template-columns: 2fr 1fr; + gap: 24px; +} + +.main-content { + display: flex; + flex-direction: column; + gap: 24px; +} + +.sidebar { + display: flex; + flex-direction: column; + gap: 24px; +} + +.person-grid { + display: grid; + grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); + gap: 12px; + padding: 16px 20px 20px; +} + +.person-item { + display: flex; + align-items: center; + gap: 10px; + padding: 8px 12px; + border: 1px solid #d9e2f0; + border-radius: var(--sg-radius-sm); + background: #fff; + transition: all 0.2s; +} + +.person-item:hover { + cursor:pointer; + background: #f8fafc; + border-color: #b8c5d6; +} + +.avatar { + display: flex; + align-items: center; + justify-content: center; + width: 32px; + height: 32px; + border-radius: 50%; + background: #e8edf5; + color: var(--sg-text); + font-size: 13px; + font-weight: 600; + flex-shrink: 0; +} + +.person-name { + cursor:pointer; + font-size: 13px; + font-weight: 500; + color: var(--sg-text); +} + +.institution-grid { + cursor:pointer; + display: grid; + grid-template-columns: 1fr; + gap: 8px; + padding: 16px 20px 20px; +} + +.institution-item { + display: flex; + align-items: center; + gap: 10px; + padding: 8px 12px; + border: 1px solid #d9e2f0; + border-radius: var(--sg-radius-sm); + background: #fff; + font-size: 13px; + color: var(--sg-text); +} + +.institution-item mat-icon { + color: var(--sg-text-muted); + width: 20px; + height: 20px; + font-size: 20px; + flex-shrink: 0; +} + +.details-list { + margin: 0; + padding: 16px 20px 20px; +} + +.detail-row { + display: grid; + grid-template-columns: 140px 1fr; + gap: 12px; + padding: 8px 0; + border-bottom: 1px solid #f0f2f5; +} + +.detail-row:last-child { + border-bottom: none; +} + +.detail-row dt { + color: var(--sg-text-muted); + font-size: 13px; + font-weight: 500; +} + +.detail-row dd { + margin: 0; + color: var(--sg-text); + font-size: 13px; + word-break: break-word; +} + +.external-link { + color: var(--sg-primary, #0066cc); + text-decoration: none; +} + +.external-link:hover { + text-decoration: underline; +} + +.empty-state { + padding: 20px; + text-align: center; + color: var(--sg-text-muted); + font-size: 14px; +} + +.error-container { + display: flex; + align-items: center; + justify-content: center; + min-height: 400px; +} + +.error-state { + display: flex; + flex-direction: column; + align-items: center; + gap: 12px; + color: var(--sg-text-muted); +} + +.error-state mat-icon { + width: 48px; + height: 48px; + font-size: 48px; + color: #e74c3c; +} + +.error-state p { + margin: 0; + font-size: 16px; +} + +@media (max-width: 992px) { + .content-grid { + grid-template-columns: 1fr; + gap: 20px; + } +} + +@media (max-width: 768px) { + .detail-page { + padding: 16px; + } + + .page-header { + flex-direction: column; + align-items: flex-start; + gap: 12px; + } + + .project-hero { + padding: 20px; + } + + .metrics-grid { + grid-template-columns: 1fr 1fr; + gap: 12px; + } + + h1 { + font-size: 22px; + } + + .detail-row { + grid-template-columns: 1fr; + gap: 4px; + } + + .person-grid { + grid-template-columns: 1fr; + } +} + +@media (max-width: 480px) { + .metrics-grid { + grid-template-columns: 1fr; + } + + .hero-actions { + flex-direction: column; + } + + .primary-action, + .secondary-action { + width: 100%; + justify-content: center; + } +} \ No newline at end of file diff --git a/webapp/src/app/modules/person-projects/dfg-details/dfg-details.component.ts b/webapp/src/app/modules/person-projects/dfg-details/dfg-details.component.ts new file mode 100644 index 00000000..95e6d644 --- /dev/null +++ b/webapp/src/app/modules/person-projects/dfg-details/dfg-details.component.ts @@ -0,0 +1,77 @@ +import { Component, OnInit, inject } from '@angular/core'; +import { ActivatedRoute } from '@angular/router'; +import { CommonModule } from '@angular/common'; +import { MatCardModule } from '@angular/material/card'; +import { MatIconModule } from '@angular/material/icon'; +import { DfgProjectDetails } from '../../../api'; +import { Router } from '@angular/router'; +@Component({ + selector: 'app-dfg-details', + standalone: true, + imports: [CommonModule, MatCardModule, MatIconModule], + templateUrl: './dfg-details.component.html', + styleUrl: './dfg-details.component.scss', +}) +export class DfgDetailsComponent implements OnInit { + private route = inject(ActivatedRoute); + dfgProject: DfgProjectDetails | undefined; + + constructor (private router:Router){} + + ngOnInit(): void { + this.route.data.subscribe(({ dfgSingleProject }) => { + console.log('DFG Project:', dfgSingleProject); + this.dfgProject = dfgSingleProject; + }); + } + + getInitials(name: string | null | undefined): string { + if (!name) return ''; + const parts = name.trim().split(/\s+/); + if (parts.length > 1) { + return (parts[0][0] + parts[parts.length - 1][0]).toUpperCase(); + } + return parts[0][0].toUpperCase(); + } + + getFundingStatus(fundingEndDate: string | null | undefined): string { + if (!fundingEndDate) return 'N/A'; + if (fundingEndDate === '2999') return 'laufend'; + const year = parseInt(fundingEndDate, 10); + if (isNaN(year)) return fundingEndDate; + return year >= new Date().getFullYear() + ? `${fundingEndDate} (laufend)` + : `${fundingEndDate} (abgeschlossen)`; + } + searchForPersonName(personName: string): void { + this.router.navigate(['/persons'], { + queryParams: { + query: personName + } + }); + } + searchForInstitutionName(institutionName: string): void { + this.router.navigate(['/institutions'], { + queryParams: { + search: institutionName + } + }); + } + /** + * All associated persons as a simple list (no role grouping). + */ + getAssociatedPersons(): string[] { + return this.dfgProject?.associated_persons || []; + } + + /** + * All institutions as a simple list. + */ + getInstitutions(): string[] { + return this.dfgProject?.institutions || []; + } + + goBack(): void { + window.history.back(); + } +} From 73e67fa33692dd20d91c69f525b07a472af4d41b Mon Sep 17 00:00:00 2001 From: genja Date: Thu, 18 Jun 2026 18:41:30 +0200 Subject: [PATCH 25/41] minor display bug fixed --- webapp/src/app/modules/person-card/person-card.component.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webapp/src/app/modules/person-card/person-card.component.html b/webapp/src/app/modules/person-card/person-card.component.html index 43698f60..df244ae9 100644 --- a/webapp/src/app/modules/person-card/person-card.component.html +++ b/webapp/src/app/modules/person-card/person-card.component.html @@ -25,7 +25,7 @@ {{ person.display_name ?? '' }}

- {{ getDistinguishingId(person) ?? '' }} + {{ getDistinguishingId(person) }}

{{ getStatsString() }} From 7c85624c1c518f7779f1f08aecd9bf33106cce01 Mon Sep 17 00:00:00 2001 From: louis-19041904 Date: Thu, 18 Jun 2026 23:40:13 +0200 Subject: [PATCH 26/41] Merge remote-tracking branch 'origin/dev' into feature/timeline From 37ef212304faf002c8d3a68c8d2866b81332b0f2 Mon Sep 17 00:00:00 2001 From: genja Date: Fri, 19 Jun 2026 00:49:18 +0200 Subject: [PATCH 27/41] added resolver for a single BUND project --- webapp/src/app/app.routes.ts | 23 +++++++++++-------- .../resolvers/bund-single-project-resolver.ts | 16 +++++++++++++ 2 files changed, 30 insertions(+), 9 deletions(-) create mode 100644 webapp/src/app/resolvers/bund-single-project-resolver.ts diff --git a/webapp/src/app/app.routes.ts b/webapp/src/app/app.routes.ts index 829506fa..bf68e1cf 100644 --- a/webapp/src/app/app.routes.ts +++ b/webapp/src/app/app.routes.ts @@ -10,8 +10,8 @@ import { euProjectsResolver } from './resolvers/eu-projects.resolver'; import { dfgProjectsResolver } from './resolvers/dfg-projects.resolver'; import { institutionsResolver } from './resolvers/institutions.resolver'; import { bundProjectsFundingResolver } from './resolvers/bund-projects-funding.resolver'; -import { dfgSingleProjectResolver } from './resolvers/dfg-single-project-resolver'; // Keep this import - +import { dfgSingleProjectResolver } from './resolvers/dfg-single-project-resolver'; +import { bundSingleProjectResolver } from './resolvers/bund-single-project-resolver'; export const routes: Routes = [ { path: '', @@ -98,13 +98,18 @@ export const routes: Routes = [ resolve: { dfgSingleProject: dfgSingleProjectResolver, }, - // runGuardsAndResolvers: (from, to) => { - // const keys = ['page', 'size', 'sort_by', 'sort_direction', 'search']; - - // return keys.some( - // (key) => from.queryParamMap.get(key) !== to.queryParamMap.get(key), - // ); - // }, + }, + { + path: 'projects/bund/:id', + canActivate: [userGuard], + pathMatch: 'full', + loadComponent: () => + import('./modules/person-projects/bund-details/bund-details.component').then( + (mod) => mod.BundDetailsComponent, + ), + resolve: { + bundSingleProject: bundSingleProjectResolver, + }, }, { path: 'person/:id', diff --git a/webapp/src/app/resolvers/bund-single-project-resolver.ts b/webapp/src/app/resolvers/bund-single-project-resolver.ts new file mode 100644 index 00000000..db90f7a8 --- /dev/null +++ b/webapp/src/app/resolvers/bund-single-project-resolver.ts @@ -0,0 +1,16 @@ +import { inject } from '@angular/core'; +import { ResolveFn } from '@angular/router'; +import { ProjectsService } from '../api/api/projects.service'; +import { BundProjectDetails } from '../api/model/bundProjectDetails'; + +export const bundSingleProjectResolver: ResolveFn = ( + route, + state, +) => { + const projectsService = inject(ProjectsService); + const projectId = route.paramMap.get('id'); + if (!projectId) { + throw new Error('BUND Project ID is required'); + } + return projectsService.getSingleBundProject(projectId); +}; \ No newline at end of file From 4945e3d7e7951a7634e94e3aa2ed8560bec5f8ec Mon Sep 17 00:00:00 2001 From: genja Date: Fri, 19 Jun 2026 00:50:01 +0200 Subject: [PATCH 28/41] created single BUND project component --- .../bund-details/bund-details.component.html | 357 ++++++++++++ .../bund-details/bund-details.component.scss | 527 ++++++++++++++++++ .../bund-details/bund-details.component.ts | 140 +++++ 3 files changed, 1024 insertions(+) create mode 100644 webapp/src/app/modules/person-projects/bund-details/bund-details.component.html create mode 100644 webapp/src/app/modules/person-projects/bund-details/bund-details.component.scss create mode 100644 webapp/src/app/modules/person-projects/bund-details/bund-details.component.ts diff --git a/webapp/src/app/modules/person-projects/bund-details/bund-details.component.html b/webapp/src/app/modules/person-projects/bund-details/bund-details.component.html new file mode 100644 index 00000000..f3770441 --- /dev/null +++ b/webapp/src/app/modules/person-projects/bund-details/bund-details.component.html @@ -0,0 +1,357 @@ +

+ + + @if (bundProject) { +
+
+
+ Bund Projekt + ID: {{ bundProject.funding_reference }} + +
+

{{ bundProject.title || 'Ohne Titel' }}

+ @if (bundProject.funding_reference) { +

+ {{ bundProject.funding_type }} +

+ } +
+ + +
+
+ +
+
+ calendar_today +
+ {{ bundProject.funding_start_date || 'N/A' }} + Startdatum +
+
+
+ event_busy +
+ {{ getFundingStatus(bundProject.funding_end_date) }} + Enddatum +
+
+ @if (bundProject.funding_amount) { +
+ paid +
+ {{ getFundingAmountDisplay() }} + Fördersumme +
+
+ } + @if (bundProject.funding_profile) { +
+ assignment +
+ {{ bundProject.funding_profile }} + Förderprofil +
+
+ } +
+
+ + @if (bundProject.description) { + +
+ description +

Beschreibung

+
+

{{ bundProject.description }}

+
+ } + +
+
+ + @if (getAssociatedPersons().length > 0) { + +
+ people +

Beteiligte Personen

+ {{ getAssociatedPersons().length }} +
+
+ @for (person of getAssociatedPersons(); track person) { +
+
{{ getInitials(person) }}
+
{{ person }}
+
+ } +
+
+ } + + + @if (getInstitutions().length > 0) { + +
+ business +

Beteiligte Institutionen

+ {{ getInstitutions().length }} +
+
+ @for (institution of getInstitutions(); track institution) { +
+ apartment + {{ institution }} +
+ } +
+
+ } + + + @if (bundProject.joint_project) { + +
+ groups +

Gemeinschaftsprojekt

+
+
+ link + {{ bundProject.joint_project }} +
+
+ } +
+ + +
+ } @else { +
+
+ error_outline +

Bund Projekt nicht gefunden.

+
+
+ } +
\ No newline at end of file diff --git a/webapp/src/app/modules/person-projects/bund-details/bund-details.component.scss b/webapp/src/app/modules/person-projects/bund-details/bund-details.component.scss new file mode 100644 index 00000000..933a8aa7 --- /dev/null +++ b/webapp/src/app/modules/person-projects/bund-details/bund-details.component.scss @@ -0,0 +1,527 @@ +// Complete SCSS with all styles including clickable elements + +.detail-page { + padding: 28px 32px 42px; + max-width: 100%; + margin: 0 auto; +} + +.page-header { + display: flex; + align-items: center; + justify-content: space-between; + gap: 18px; + margin-bottom: 24px; +} + +.back-link { + display: inline-flex; + align-items: center; + gap: 8px; + padding: 8px 16px; + border: 1px solid #d9e2f0; + border-radius: var(--sg-radius-sm); + background: #fff; + color: var(--sg-text); + cursor: pointer; + font-size: 14px; + transition: all 0.2s; +} + +.back-link:hover { + background: #f5f7fa; + border-color: #b8c5d6; +} + +.back-link mat-icon { + width: 20px; + height: 20px; + font-size: 20px; +} + +.breadcrumb { + display: flex; + align-items: center; + gap: 6px; + color: var(--sg-text-muted); + font-size: 13px; +} + +.breadcrumb mat-icon { + width: 18px; + height: 18px; + font-size: 18px; +} + +.breadcrumb span:last-child { + color: var(--sg-text); + font-weight: 500; +} + +.project-hero { + background: #f8fafc; + border: 1px solid #d9e2f0; + border-radius: var(--sg-radius-md); + padding: 28px 32px; + margin-bottom: 28px; +} + +.hero-content { + margin-bottom: 24px; +} + +.eyebrow { + display: flex; + align-items: center; + gap: 12px; + margin-bottom: 12px; + flex-wrap: wrap; +} + +.project-badge { + display: inline-block; + padding: 4px 12px; + background: #e8edf5; + color: var(--sg-text); + border-radius: var(--sg-radius-sm); + font-size: 12px; + font-weight: 600; + text-transform: uppercase; + letter-spacing: 0.5px; +} + +.project-id { + color: var(--sg-text-muted); + font-size: 13px; +} + +.new-badge { + display: inline-block; + padding: 2px 10px; + background: #27ae60; + color: #fff; + border-radius: var(--sg-radius-sm); + font-size: 11px; + font-weight: 600; + text-transform: uppercase; + letter-spacing: 0.5px; +} + +h1 { + margin: 0 0 8px; + font-size: 26px; + line-height: 1.3; + font-weight: 700; + color: var(--sg-text); +} + +.project-reference { + margin: 0 0 16px; + color: var(--sg-text-muted); + font-size: 14px; +} + +.hero-actions { + display: flex; + flex-wrap: wrap; + gap: 10px; +} + +.agency-info, +.funding-type-info { + display: inline-flex; + align-items: center; + gap: 8px; + padding: 8px 16px; + background: #fff; + border: 1px solid #d9e2f0; + border-radius: var(--sg-radius-sm); + color: var(--sg-text); + font-size: 14px; + cursor: pointer; + transition: all 0.2s; +} + +.agency-info:hover, +.funding-type-info:hover { + background: #f5f7fa; + border-color: #b8c5d6; +} + +.agency-info mat-icon, +.funding-type-info mat-icon { + color: var(--sg-text-muted); + width: 20px; + height: 20px; + font-size: 20px; +} + +.metrics-grid { + display: grid; + grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); + gap: 16px; + padding-top: 20px; + border-top: 1px solid #d9e2f0; +} + +.metric-item { + display: flex; + align-items: center; + gap: 12px; +} + +.metric-item mat-icon { + color: var(--sg-text-muted); + width: 24px; + height: 24px; + font-size: 24px; +} + +.metric-content { + display: flex; + flex-direction: column; +} + +.metric-content strong { + font-size: 15px; + color: var(--sg-text); + line-height: 1.3; +} + +.metric-content span { + font-size: 12px; + color: var(--sg-text-muted); +} + +.card { + margin-bottom: 24px; + border-color: #d9e2f0 !important; + border-radius: var(--sg-radius-md) !important; +} + +.card ::ng-deep .mat-mdc-card-content { + padding: 0; +} + +.section-header { + display: flex; + align-items: center; + gap: 10px; + padding: 16px 20px 12px; + border-bottom: 1px solid #f0f2f5; +} + +.section-header mat-icon { + color: var(--sg-text-muted); + width: 22px; + height: 22px; + font-size: 22px; +} + +.section-header h2 { + margin: 0; + font-size: 16px; + font-weight: 600; + color: var(--sg-text); +} + +.count-badge { + display: inline-flex; + align-items: center; + justify-content: center; + min-width: 24px; + height: 24px; + padding: 0 8px; + margin-left: auto; + background: #e8edf5; + border-radius: 12px; + color: var(--sg-text-muted); + font-size: 12px; + font-weight: 500; +} + +.description-text { + padding: 16px 20px 20px; + margin: 0; + color: var(--sg-text); + font-size: 14px; + line-height: 1.6; +} + +.content-grid { + display: grid; + grid-template-columns: 2fr 1fr; + gap: 24px; +} + +.main-content { + display: flex; + flex-direction: column; + gap: 24px; +} + +.sidebar { + display: flex; + flex-direction: column; + gap: 24px; +} + +.person-grid { + display: grid; + grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); + gap: 12px; + padding: 16px 20px 20px; +} + +.person-item { + display: flex; + align-items: center; + gap: 10px; + padding: 8px 12px; + border: 1px solid #d9e2f0; + border-radius: var(--sg-radius-sm); + background: #fff; + cursor: pointer; + transition: all 0.2s; +} + +.person-item:hover { + background: #f8fafc; + border-color: #b8c5d6; + transform: translateY(-1px); +} + +.avatar { + display: flex; + align-items: center; + justify-content: center; + width: 32px; + height: 32px; + border-radius: 50%; + background: #e8edf5; + color: var(--sg-text); + font-size: 13px; + font-weight: 600; + flex-shrink: 0; +} + +.person-name { + font-size: 13px; + font-weight: 500; + color: var(--sg-text); +} + +.institution-grid { + display: grid; + grid-template-columns: 1fr; + gap: 8px; + padding: 16px 20px 20px; +} + +.institution-item { + display: flex; + align-items: center; + gap: 10px; + padding: 8px 12px; + border: 1px solid #d9e2f0; + border-radius: var(--sg-radius-sm); + background: #fff; + font-size: 13px; + color: var(--sg-text); + cursor: pointer; + transition: all 0.2s; +} + +.institution-item:hover { + background: #f8fafc; + border-color: #b8c5d6; +} + +.institution-item mat-icon { + color: var(--sg-text-muted); + width: 20px; + height: 20px; + font-size: 20px; + flex-shrink: 0; +} + +.joint-project-content { + display: flex; + align-items: center; + gap: 12px; + padding: 16px 20px 20px; + color: var(--sg-text); + font-size: 14px; +} + +.joint-project-content mat-icon { + color: var(--sg-text-muted); + width: 24px; + height: 24px; + font-size: 24px; + flex-shrink: 0; +} + +.details-list { + margin: 0; + padding: 16px 20px 20px; +} + +.detail-row { + display: grid; + grid-template-columns: 140px 1fr; + gap: 12px; + padding: 8px 0; + border-bottom: 1px solid #f0f2f5; +} + +.detail-row:last-child { + border-bottom: none; +} + +.detail-row dt { + color: var(--sg-text-muted); + font-size: 13px; + font-weight: 500; +} + +.detail-row dd { + margin: 0; + color: var(--sg-text); + font-size: 13px; + word-break: break-word; + display: flex; + align-items: center; + gap: 6px; +} + +.detail-row dd.clickable { + cursor: pointer; + transition: color 0.2s; +} + +.detail-row dd.clickable:hover { + color: var(--sg-primary, #0066cc); +} + +.detail-row dd.clickable:hover .search-icon { + opacity: 1; +} + +.search-icon { + width: 16px; + height: 16px; + font-size: 16px; + opacity: 0; + transition: opacity 0.2s; + color: var(--sg-text-muted); +} + +.detail-row dd:hover .search-icon { + opacity: 1; +} + +.empty-state { + padding: 20px; + text-align: center; + color: var(--sg-text-muted); + font-size: 14px; +} + +.error-container { + display: flex; + align-items: center; + justify-content: center; + min-height: 400px; +} + +.error-state { + display: flex; + flex-direction: column; + align-items: center; + gap: 12px; + color: var(--sg-text-muted); +} + +.error-state mat-icon { + width: 48px; + height: 48px; + font-size: 48px; + color: #e74c3c; +} + +.error-state p { + margin: 0; + font-size: 16px; +} + +// Clickable external link styling +.external-link { + color: var(--sg-primary, #0066cc); + text-decoration: none; +} + +.external-link:hover { + text-decoration: underline; +} + +@media (max-width: 992px) { + .content-grid { + grid-template-columns: 1fr; + gap: 20px; + } +} + +@media (max-width: 768px) { + .detail-page { + padding: 16px; + } + + .page-header { + flex-direction: column; + align-items: flex-start; + gap: 12px; + } + + .project-hero { + padding: 20px; + } + + .metrics-grid { + grid-template-columns: 1fr 1fr; + gap: 12px; + } + + h1 { + font-size: 22px; + } + + .detail-row { + grid-template-columns: 1fr; + gap: 4px; + } + + .person-grid { + grid-template-columns: 1fr; + } + + .eyebrow { + gap: 8px; + } +} + +@media (max-width: 480px) { + .metrics-grid { + grid-template-columns: 1fr; + } + + .hero-actions { + flex-direction: column; + } + + .agency-info, + .funding-type-info { + width: 100%; + justify-content: center; + } +} \ No newline at end of file diff --git a/webapp/src/app/modules/person-projects/bund-details/bund-details.component.ts b/webapp/src/app/modules/person-projects/bund-details/bund-details.component.ts new file mode 100644 index 00000000..09469b39 --- /dev/null +++ b/webapp/src/app/modules/person-projects/bund-details/bund-details.component.ts @@ -0,0 +1,140 @@ +import { Component, OnInit, inject } from '@angular/core'; +import { ActivatedRoute } from '@angular/router'; +import { CommonModule } from '@angular/common'; +import { MatCardModule } from '@angular/material/card'; +import { MatIconModule } from '@angular/material/icon'; +import { BundProjectDetails } from '../../../api/model/bundProjectDetails'; +import { Router } from '@angular/router'; + +@Component({ + selector: 'app-bund-details', + standalone: true, + imports: [CommonModule, MatCardModule, MatIconModule], + templateUrl: './bund-details.component.html', + styleUrl: './bund-details.component.scss', +}) +export class BundDetailsComponent implements OnInit { + private route = inject(ActivatedRoute); + bundProject: BundProjectDetails | undefined; + + constructor(private router: Router) {} + + ngOnInit(): void { + this.route.data.subscribe(({ bundSingleProject }) => { + console.log('Bund Project:', bundSingleProject); + this.bundProject = bundSingleProject; + }); + } + + getInitials(name: string | null | undefined): string { + if (!name) return ''; + const parts = name.trim().split(/\s+/); + if (parts.length > 1) { + return (parts[0][0] + parts[parts.length - 1][0]).toUpperCase(); + } + return parts[0][0].toUpperCase(); + } + + getFundingStatus(fundingEndDate: string | null | undefined): string { + if (!fundingEndDate) return 'N/A'; + if (fundingEndDate === '2999') return 'laufend'; + const year = parseInt(fundingEndDate, 10); + if (isNaN(year)) return fundingEndDate; + return year >= new Date().getFullYear() + ? `${fundingEndDate} (laufend)` + : `${fundingEndDate} (abgeschlossen)`; + } + + formatCurrency(amount: number | null | undefined): string { + if (amount === null || amount === undefined) return 'N/A'; + + // Format as Euro with thousands separators + return new Intl.NumberFormat('de-DE', { + style: 'currency', + currency: 'EUR', + minimumFractionDigits: 0, + maximumFractionDigits: 0 + }).format(amount); + } + + searchForPersonName(personName: string): void { + this.router.navigate(['/persons'], { + queryParams: { + query: personName + } + }); + } + + searchForInstitutionName(institutionName: string): void { + this.router.navigate(['/institutions'], { + queryParams: { + search: institutionName + } + }); + } + + searchForLocation(location: string): void { + this.router.navigate(['/bund-projects'], { + queryParams: { + location: location + } + }); + } + + searchForState(state: string): void { + this.router.navigate(['/bund-projects'], { + queryParams: { + state: state + } + }); + } + + searchForFundingType(fundingType: string): void { + this.router.navigate(['/bund-projects'], { + queryParams: { + fundingType: fundingType + } + }); + } + + searchForAgency(agency: string): void { + this.router.navigate(['/bund-projects'], { + queryParams: { + agency: agency + } + }); + } + + /** + * All associated persons as a simple list. + */ + getAssociatedPersons(): string[] { + return this.bundProject?.associated_persons || []; + } + + /** + * All institutions as a simple list. + */ + getInstitutions(): string[] { + return this.bundProject?.institutions || []; + } + + /** + * Check if project is new + */ + isNewProject(): boolean { + return this.bundProject?.is_new === true; + } + + /** + * Get display name for funding amount + */ + getFundingAmountDisplay(): string { + if (!this.bundProject?.funding_amount) return 'N/A'; + return this.formatCurrency(this.bundProject.funding_amount); + } + + goBack(): void { + window.history.back(); + } +} \ No newline at end of file From 6c6f13de14a7a8f1451819a094f6fb702ef923ce Mon Sep 17 00:00:00 2001 From: genja Date: Fri, 19 Jun 2026 00:51:40 +0200 Subject: [PATCH 29/41] added an endpoint for single BUND project search + model --- .../main/inse/models/bund_project_details.py | 337 ++++++++++++++++++ .../inse/projects/projects_search_client.py | 27 +- service/src/main/inse/projects/router.py | 26 ++ service/src/main/inse/projects/service.py | 13 + webapp/src/app/api/.openapi-generator/FILES | 1 + 5 files changed, 402 insertions(+), 2 deletions(-) create mode 100644 service/src/main/inse/models/bund_project_details.py diff --git a/service/src/main/inse/models/bund_project_details.py b/service/src/main/inse/models/bund_project_details.py new file mode 100644 index 00000000..d7c4baf1 --- /dev/null +++ b/service/src/main/inse/models/bund_project_details.py @@ -0,0 +1,337 @@ +# coding: utf-8 + +""" + Bund Project Clean Model + + Summary model that consolidates scattered fields from the raw projects_bund index + into clean, semantic field names with proper native Python types. +""" + +from datetime import date, datetime +from typing import Optional, List, Set, Any + +from pydantic import BaseModel, ConfigDict, Field, field_validator + + +class BundProjectDetails(BaseModel): + """ + Clean summary model for a Bund (federal) project, consolidating all fields + into semantic English names with proper native types. + """ + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + ) + + # Core identifiers + id: str = Field(description="The ID of the Bund project") + funding_reference: Optional[str] = Field( + default=None, + + description="The funding reference number (Förderkennzeichen)", + ) + + # Project metadata + title: Optional[str] = Field( + default=None, + + description="The project topic/title", + ) + description: Optional[str] = Field( + default=None, + + description="Plain text description of the performance plan classification", + ) + joint_project: Optional[str] = Field( + default=None, + + description="Parent joint project if this is a sub-project", + ) + + # Funding information + funding_type: Optional[str] = Field( + default=None, + + description="Type of funding (Förderart)", + ) + funding_profile: Optional[str] = Field( + default=None, + + description="Funding profile (Förderprofil)", + ) + funding_amount: Optional[float] = Field( + default=None, + + description="Funding amount in EUR", + ) + funding_start_date: Optional[date] = Field( + default=None, + description="Funding start date", + ) + funding_end_date: Optional[date] = Field( + default=None, + description="Funding end date", + ) + duration: Optional[str] = Field( + default=None, + + description="Project duration (Laufzeit)", + ) + + # Classification + performance_plan_code: Optional[str] = Field( + default=None, + + description="Performance plan classification code", + ) + performance_plan_fullname: Optional[str] = Field( + default=None, + + description="Full name of the performance plan classification", + ) + + # Organizational + executing_agency: Optional[str] = Field( + default=None, + + description="Executing agency", + ) + funding_recipient: Optional[str] = Field( + default=None, + + description="Funding recipient", + ) + project_agency: Optional[str] = Field( + default=None, + + description="Project management agency", + ) + project_agency_fullname: Optional[str] = Field( + default=None, + + description="Full name of the project management agency", + ) + + # Government hierarchy + department: Optional[str] = Field( + default=None, + + description="Government department code", + ) + department_fullname: Optional[str] = Field( + default=None, + + description="Full name of the government department", + ) + division: Optional[str] = Field( + default=None, + + description="Division/unit reference", + ) + + # Location + location: Optional[str] = Field( + default=None, + + description="Location/city", + ) + municipality: Optional[str] = Field( + default=None, + + description="City/Municipality", + ) + state: Optional[str] = Field( + default=None, + + description="Federal state", + ) + country: Optional[str] = Field( + default=None, + + description="Country", + ) + municipality_code: Optional[str] = Field( + default=None, + + description="Municipality code", + ) + + # Publication + publication_date: Optional[str] = Field( + default=None, + + description="Publication date", + ) + + # Additional + is_new: Optional[bool] = Field( + default=None, + + description="Flag indicating if the project is new", + ) + record_date: Optional[str] = Field( + default=None, + + description="Record date", + ) + unix_timestamp: Optional[int] = Field( + default=None, + description="Unix timestamp of the record", + ) + + # Unified lists for aggregation + associated_persons: List[str] = Field( + default_factory=list, + description="All persons associated with the Bund project (from nested Arb object)", + ) + institutions: List[str] = Field( + default_factory=list, + description="All institutions 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]: + """Parse funding amount from string or number.""" + if v is None: + return None + if isinstance(v, (int, float)): + return float(v) + if isinstance(v, str): + # Remove thousands separators and trim + cleaned = v.replace(".", "").replace(",", ".").strip() + try: + return float(cleaned) + except ValueError: + return None + return None + + @field_validator("funding_start_date", "funding_end_date", mode="before") + @classmethod + def parse_german_date(cls, v: Any) -> Optional[date]: + """Parse date from German format (dd.MM.yyyy) or date/datetime object.""" + if v is None: + return None + if isinstance(v, datetime): + return v.date() + if isinstance(v, date): + return v + if isinstance(v, str): + v = v.strip() + # Try German format first: dd.MM.yyyy + try: + return datetime.strptime(v, "%d.%m.%Y").date() + except ValueError: + pass + # Try ISO format: yyyy-MM-dd + try: + return datetime.strptime(v, "%Y-%m-%d").date() + except ValueError: + pass + # Try with time component + try: + return datetime.fromisoformat(v).date() + except ValueError: + pass + return None + + @field_validator("is_new", mode="before") + @classmethod + def parse_is_new(cls, v: Any) -> Optional[bool]: + """Parse is_new from bool or string.""" + if v is None: + return None + if isinstance(v, bool): + return v + if isinstance(v, str): + return v.lower() in ("true", "1", "yes", "ja") + if isinstance(v, (int, float)): + return bool(v) + return None + + @field_validator("unix_timestamp", mode="before") + @classmethod + def parse_unix_timestamp(cls, v: Any) -> Optional[int]: + """Parse unix timestamp from int, float, or string.""" + if v is None: + return None + if isinstance(v, (int, float)): + return int(v) + if isinstance(v, str): + try: + return int(v) + except ValueError: + return None + return None + + @classmethod + def from_elastic_hit(cls, hit: dict) -> "BundProject": + """ + Create a BundProject from an Elasticsearch hit, consolidating all fields. + """ + source = hit.get("_source", {}) + + # --- Extract persons from nested Arb object --- + persons: Set[str] = set() + arb = source.get("Arb") + if arb and isinstance(arb, dict): + for key, value in arb.items(): + if isinstance(value, str) and value.strip(): + for person in value.split(";"): + person = person.strip() + if person: + persons.add(person) + + # --- Extract institutions --- + 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]: + for inst in source[field].split(";"): + inst = inst.strip() + if inst: + institutions.add(inst) + + if source.get("PT_fullname"): + institutions.add(source["PT_fullname"].strip()) + + return cls( + id=hit["_id"], + funding_reference=source.get("Förderkennzeichen"), + title=source.get("Thema"), + description=source.get("Klartext Leistungsplansystematik"), + joint_project=source.get("Verbundprojekt"), + funding_type=source.get("Förderart"), + funding_profile=source.get("Förderprofil"), + funding_amount=source.get("Fördersumme"), + funding_start_date=source.get("funding_start"), + funding_end_date=source.get("funding_end"), + duration=source.get("Laufzeit"), + performance_plan_code=source.get("Leistungsplansystematik"), + performance_plan_fullname=source.get("Leistungsplansystematik_fullname"), + executing_agency=source.get("Ausführende Stelle"), + funding_recipient=source.get("Zuwendungsempfänger"), + project_agency=source.get("Projektträger"), + project_agency_fullname=source.get("PT_fullname"), + department=source.get("Ressort"), + department_fullname=source.get("Ressort_fullname"), + division=source.get("Referat"), + location=source.get("Ort"), + municipality=source.get("Stadt/Gemeinde"), + state=source.get("Bundesland"), + country=source.get("Staat"), + municipality_code=source.get("Gemeindekennziffer"), + publication_date=source.get("Publikationsdatum"), + is_new=source.get("new"), + record_date=source.get("datum"), + unix_timestamp=source.get("unix_timestamp"), + associated_persons=sorted(persons), + institutions=sorted(institutions), + ) \ 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 72d34f0f..2f74c8f7 100644 --- a/service/src/main/inse/projects/projects_search_client.py +++ b/service/src/main/inse/projects/projects_search_client.py @@ -14,6 +14,7 @@ from inse.projects.model import ( ) from inse.models.eu_project import EuProject from inse.models.dfg_project_details import DfgProjectDetails +from inse.models.bund_project_details import BundProjectDetails settings = get_settings() @@ -125,7 +126,7 @@ class BundProjectsSearchClient(ProjectsSearchClient): raise ValueError("Elasticsearch INSE API key is missing in settings.") super().__init__( base_url=settings.elasticsearch_inse_url, - index="projects_bund", + index="projects_bund_v1", api_key=settings.elasticsearch_inse_api_key, ) @@ -254,6 +255,29 @@ class BundProjectsSearchClient(ProjectsSearchClient): ) response = await self.make_search_request(query) return self.response_to_bund_project_page(response, page, size) + + async def get_bund_project_by_id(self, project_id: str) -> Optional[BundProjectDetails]: + + query= { + "query": { + "term": { + "Förderkennzeichen.keyword": { + "value": project_id + } + } + }, + "_source":True + } + + + response = await self.make_search_request(query) + hits = response.get("hits", {}).get("hits", []) + if hits: + hit = hits[0] + print(hit) + details = BundProjectDetails.from_elastic_hit(hit=hit) + return details + return None class EuProjectsSearchClient(ProjectsSearchClient): @@ -626,7 +650,6 @@ class DfgProjectsSearchClient(ProjectsSearchClient): return self.response_to_dfg_project_page(response, page, size) async def get_dfg_project_by_id(self, project_id: str) -> Optional[DfgProjectDetails]: - base_query = self.dfg_projects_query(page=0, size=1) query = { "query": {"ids": {"values": [project_id]}}, "_source": True diff --git a/service/src/main/inse/projects/router.py b/service/src/main/inse/projects/router.py index af2561fb..874f5f12 100644 --- a/service/src/main/inse/projects/router.py +++ b/service/src/main/inse/projects/router.py @@ -12,6 +12,7 @@ from inse.projects.model import ( InstitutionFunderSummary, ) 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.projects.projects_search_client import ( @@ -116,6 +117,31 @@ async def get_single_dfg_project( project_id=id, ) +@router.get( + "/bund/{id}", + summary="Get a single BUND project.", + description="Returns a single BUND project based on its ID.", + operation_id="getSingleBundProject", + responses={ + status.HTTP_200_OK: { + "description": "Successful Response", + "model": BundProjectDetails, + }, + status.HTTP_404_NOT_FOUND: {"description": "Project not found"}, + }, + response_model_by_alias=False, +) +async def get_single_bund_project( + bund_search_client: Annotated[ + BundProjectsSearchClient, Depends(get_bund_search_client) + ], + id: Annotated[str, Path(description="The ID of the BUND project to retrieve.")], +) -> BundProjectDetails: + logger.debug(f"Received request to get single BUND project for id={id}") + return await projects_service.get_single_bund_project( + bund_search_client=bund_search_client, + project_id=id, + ) @router.get( "/institution/bund/funding-over-time", diff --git a/service/src/main/inse/projects/service.py b/service/src/main/inse/projects/service.py index e931b525..983d1b34 100644 --- a/service/src/main/inse/projects/service.py +++ b/service/src/main/inse/projects/service.py @@ -14,6 +14,7 @@ from inse.projects.model import ( InstitutionFunderSummary, ) from inse.models.dfg_project_details import DfgProjectDetails +from inse.models.bund_project_details import BundProjectDetails from inse.institutions.institutions_search_client import ( InstitutionsSearchClient, ) @@ -199,3 +200,15 @@ async def get_single_dfg_project( if not project: raise NotFoundException(f"DFG project with id {project_id} not found") return project + +async def get_single_bund_project( + bund_search_client: BundProjectsSearchClient, + project_id: str, +) -> BundProjectDetails: + logger.debug(f"Fetching single BUND project for id={project_id}") + + project = await bund_search_client.get_bund_project_by_id(project_id) + if not project: + raise NotFoundException(f"BUND project with id {project_id} not found") + return project + diff --git a/webapp/src/app/api/.openapi-generator/FILES b/webapp/src/app/api/.openapi-generator/FILES index 250c191a..0a625930 100644 --- a/webapp/src/app/api/.openapi-generator/FILES +++ b/webapp/src/app/api/.openapi-generator/FILES @@ -38,6 +38,7 @@ model/autocompleteResponseResultsInner.ts model/award.ts model/bodyCreateUser.ts model/bundProject.ts +model/bundProjectDetails.ts model/bundProjectPage.ts model/careerMetrics.ts model/categoryNested.ts From 17f52d1e2dd8ad53e2a05ef8126f82cf282b84a5 Mon Sep 17 00:00:00 2001 From: genja Date: Fri, 19 Jun 2026 00:51:51 +0200 Subject: [PATCH 30/41] regenerated services --- webapp/src/app/api/api/projects.service.ts | 262 ++++++++++++++---- .../src/app/api/model/bundProjectDetails.ts | 57 ++++ 2 files changed, 265 insertions(+), 54 deletions(-) create mode 100644 webapp/src/app/api/model/bundProjectDetails.ts diff --git a/webapp/src/app/api/api/projects.service.ts b/webapp/src/app/api/api/projects.service.ts index f3a55d23..e1e9df85 100644 --- a/webapp/src/app/api/api/projects.service.ts +++ b/webapp/src/app/api/api/projects.service.ts @@ -22,6 +22,8 @@ import { import { CustomHttpParameterCodec } from '../encoder'; import { Observable } from 'rxjs'; +// @ts-ignore +import { BundProjectDetails } from '../model/bundProjectDetails'; // @ts-ignore import { BundProjectPage } from '../model/bundProjectPage'; // @ts-ignore @@ -323,61 +325,7 @@ export class ProjectsService extends BaseService { }, ); } - /** - * Get a single DFG project. - * Returns a single DFG project based on its ID. - * @endpoint get /api/projects/dfg/{id} - * @param id The ID of the DFG project 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 getSingleDfgProject(id: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; - public getSingleDfgProject(id: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public getSingleDfgProject(id: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public getSingleDfgProject(id: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { - if (id === null || id === undefined) { - throw new Error('Required parameter id was null or undefined when calling getSingleDfgProject.'); - } - 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/projects/dfg/${this.configuration.encodeParam({name: "id", value: id, 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 - } - ); - } /** * Get DFG projects. * Returns a page of DFG projects based on the provided pagination parameters and optional institution filter. @@ -699,4 +647,210 @@ export class ProjectsService extends BaseService { }, ); } + + /** + * Get a single BUND project. + * Returns a single BUND project based on its ID. + * @endpoint get /api/projects/bund/{id} + * @param id The ID of the BUND project 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 getSingleBundProject( + id: string, + observe?: 'body', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable; + public getSingleBundProject( + id: string, + observe?: 'response', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public getSingleBundProject( + id: string, + observe?: 'events', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public getSingleBundProject( + id: string, + observe: any = 'body', + reportProgress: boolean = false, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable { + if (id === null || id === undefined) { + throw new Error( + 'Required parameter id was null or undefined when calling getSingleBundProject.', + ); + } + + 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/projects/bund/${this.configuration.encodeParam({ name: 'id', value: id, 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, + }, + ); + } + + /** + * Get a single DFG project. + * Returns a single DFG project based on its ID. + * @endpoint get /api/projects/dfg/{id} + * @param id The ID of the DFG project 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 getSingleDfgProject( + id: string, + observe?: 'body', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable; + public getSingleDfgProject( + id: string, + observe?: 'response', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public getSingleDfgProject( + id: string, + observe?: 'events', + reportProgress?: boolean, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable>; + public getSingleDfgProject( + id: string, + observe: any = 'body', + reportProgress: boolean = false, + options?: { + httpHeaderAccept?: 'application/json'; + context?: HttpContext; + transferCache?: boolean; + }, + ): Observable { + if (id === null || id === undefined) { + throw new Error( + 'Required parameter id was null or undefined when calling getSingleDfgProject.', + ); + } + + 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/projects/dfg/${this.configuration.encodeParam({ name: 'id', value: id, 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, + }, + ); + } } diff --git a/webapp/src/app/api/model/bundProjectDetails.ts b/webapp/src/app/api/model/bundProjectDetails.ts new file mode 100644 index 00000000..2193563c --- /dev/null +++ b/webapp/src/app/api/model/bundProjectDetails.ts @@ -0,0 +1,57 @@ +/** + * 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. + */ + + +/** + * Clean summary model for a Bund (federal) project, consolidating all fields into semantic English names with proper native types. + */ +export interface BundProjectDetails { + /** + * The ID of the Bund project + */ + id: string; + funding_reference?: string | null; + title?: string | null; + description?: string | null; + joint_project?: string | null; + funding_type?: string | null; + funding_profile?: string | null; + funding_amount?: number | null; + funding_start_date?: string | null; + funding_end_date?: string | null; + duration?: string | null; + performance_plan_code?: string | null; + performance_plan_fullname?: string | null; + executing_agency?: string | null; + funding_recipient?: string | null; + project_agency?: string | null; + project_agency_fullname?: string | null; + department?: string | null; + department_fullname?: string | null; + division?: string | null; + location?: string | null; + municipality?: string | null; + state?: string | null; + country?: string | null; + municipality_code?: string | null; + publication_date?: string | null; + is_new?: boolean | null; + record_date?: string | null; + unix_timestamp?: number | null; + /** + * All persons associated with the Bund project (from nested Arb object) + */ + associated_persons?: Array; + /** + * All institutions associated with the Bund project + */ + institutions?: Array; +} + From 226ab22e69bb405869fa34305531dc6f11f07bd8 Mon Sep 17 00:00:00 2001 From: genja Date: Fri, 19 Jun 2026 01:28:48 +0200 Subject: [PATCH 31/41] some layout adjustments --- .../bund-details/bund-details.component.html | 228 ++++++++++-------- .../bund-details/bund-details.component.scss | 2 +- .../bund-details/bund-details.component.ts | 93 ++++--- 3 files changed, 190 insertions(+), 133 deletions(-) diff --git a/webapp/src/app/modules/person-projects/bund-details/bund-details.component.html b/webapp/src/app/modules/person-projects/bund-details/bund-details.component.html index f3770441..b98a231d 100644 --- a/webapp/src/app/modules/person-projects/bund-details/bund-details.component.html +++ b/webapp/src/app/modules/person-projects/bund-details/bund-details.component.html @@ -12,7 +12,9 @@
Bund Projekt - ID: {{ bundProject.funding_reference }} + ID: {{ bundProject.funding_reference }} @@ -38,19 +40,21 @@ } -->
- +
calendar_today
- {{ bundProject.funding_start_date || 'N/A' }} + {{ getStartDate() || 'N/A' }} Startdatum
event_busy
- {{ getFundingStatus(bundProject.funding_end_date) }} + {{ + getFundingStatus(getEndDate()) + }} Enddatum
@@ -93,7 +97,9 @@
people

Beteiligte Personen

- {{ getAssociatedPersons().length }} + {{ + getAssociatedPersons().length + }}
@for (person of getAssociatedPersons(); track person) { @@ -116,7 +122,9 @@
@for (institution of getInstitutions(); track institution) { -
+
apartment {{ institution }}
@@ -125,7 +133,7 @@ } - + - -
- info -

Projektdetails

-
-
-
-
Projekt ID
-
{{ bundProject.funding_reference|| 'N/A' }}
-
- - - @if (bundProject.funding_type) { -
-
Förderart
-
- {{ bundProject.funding_type }} - search -
-
- } - @if (bundProject.funding_profile) { -
-
Förderprofil
-
{{ bundProject.funding_profile }}
-
- } - @if (bundProject.funding_amount) { -
-
Fördersumme
-
{{ getFundingAmountDisplay() }}
-
- } - @if (bundProject.funding_amount) { -
-
Agency
-
{{ bundProject.project_agency_fullname || bundProject.project_agency }}
-
- } - -
-
Startdatum
-
{{ bundProject.funding_start_date || 'N/A' }}
-
-
-
Enddatum
-
{{ getFundingStatus(bundProject.funding_end_date) }}
-
- @if (bundProject.duration) { -
-
Laufzeit
-
{{ bundProject.duration }}
-
- } - @if (bundProject.joint_project) { -
-
Gemeinschaftsprojekt
-
{{ bundProject.joint_project }}
-
- } -
-
- + } --> - @if (bundProject.executing_agency || bundProject.funding_recipient || bundProject.project_agency || bundProject.department || bundProject.division) { + @if ( + bundProject.executing_agency || + bundProject.funding_recipient || + bundProject.project_agency || + bundProject.department || + bundProject.division + ) {
organization @@ -224,9 +163,9 @@ @if (bundProject.executing_agency) {
Ausführende Stelle
-
+
{{ bundProject.executing_agency }} - search +
} @@ -239,16 +178,23 @@ @if (bundProject.project_agency) {
Projektagentur
-
- {{ bundProject.project_agency_fullname || bundProject.project_agency }} - search +
+ {{ + bundProject.project_agency_fullname || + bundProject.project_agency + }} +
} @if (bundProject.department) {
Abteilung
-
{{ bundProject.department_fullname || bundProject.department }}
+
+ {{ + bundProject.department_fullname || bundProject.department + }} +
} @if (bundProject.division) { @@ -262,7 +208,12 @@ } - @if (bundProject.location || bundProject.municipality || bundProject.state || bundProject.country) { + @if ( + bundProject.location || + bundProject.municipality || + bundProject.state || + bundProject.country + ) {
location_on @@ -272,9 +223,9 @@ @if (bundProject.location) {
Standort
-
+
{{ bundProject.location }} - search +
} @@ -287,9 +238,8 @@ @if (bundProject.state) {
Bundesland
-
+
{{ bundProject.state }} - search
} @@ -310,7 +260,12 @@ } - @if (bundProject.performance_plan_code || bundProject.performance_plan_fullname || bundProject.publication_date || bundProject.record_date) { + @if ( + bundProject.performance_plan_code || + bundProject.performance_plan_fullname || + bundProject.publication_date || + bundProject.record_date + ) {
more_info @@ -344,6 +299,85 @@ } + + +
} @else { @@ -354,4 +388,4 @@
} -
\ No newline at end of file +
diff --git a/webapp/src/app/modules/person-projects/bund-details/bund-details.component.scss b/webapp/src/app/modules/person-projects/bund-details/bund-details.component.scss index 933a8aa7..1cc4e13f 100644 --- a/webapp/src/app/modules/person-projects/bund-details/bund-details.component.scss +++ b/webapp/src/app/modules/person-projects/bund-details/bund-details.component.scss @@ -370,7 +370,7 @@ h1 { .detail-row { display: grid; grid-template-columns: 140px 1fr; - gap: 12px; + gap: 24px; padding: 8px 0; border-bottom: 1px solid #f0f2f5; } diff --git a/webapp/src/app/modules/person-projects/bund-details/bund-details.component.ts b/webapp/src/app/modules/person-projects/bund-details/bund-details.component.ts index 09469b39..5ad9007b 100644 --- a/webapp/src/app/modules/person-projects/bund-details/bund-details.component.ts +++ b/webapp/src/app/modules/person-projects/bund-details/bund-details.component.ts @@ -47,71 +47,94 @@ export class BundDetailsComponent implements OnInit { formatCurrency(amount: number | null | undefined): string { if (amount === null || amount === undefined) return 'N/A'; - + // Format as Euro with thousands separators return new Intl.NumberFormat('de-DE', { style: 'currency', currency: 'EUR', minimumFractionDigits: 0, - maximumFractionDigits: 0 + maximumFractionDigits: 0, }).format(amount); } searchForPersonName(personName: string): void { this.router.navigate(['/persons'], { queryParams: { - query: personName - } + query: personName, + }, }); } searchForInstitutionName(institutionName: string): void { this.router.navigate(['/institutions'], { queryParams: { - search: institutionName - } + search: institutionName, + }, }); } - searchForLocation(location: string): void { - this.router.navigate(['/bund-projects'], { - queryParams: { - location: location - } - }); - } + // searchForLocation(location: string): void { + // this.router.navigate(['/bund-projects'], { + // queryParams: { + // location: location + // } + // }); + // } - searchForState(state: string): void { - this.router.navigate(['/bund-projects'], { - queryParams: { - state: state - } - }); - } + // searchForState(state: string): void { + // this.router.navigate(['/bund-projects'], { + // queryParams: { + // state: state + // } + // }); + // } - searchForFundingType(fundingType: string): void { - this.router.navigate(['/bund-projects'], { - queryParams: { - fundingType: fundingType - } - }); - } + // searchForFundingType(fundingType: string): void { + // this.router.navigate(['/bund-projects'], { + // queryParams: { + // fundingType: fundingType + // } + // }); + // } - searchForAgency(agency: string): void { - this.router.navigate(['/bund-projects'], { - queryParams: { - agency: agency - } - }); - } + // searchForAgency(agency: string): void { + // this.router.navigate(['/bund-projects'], { + // queryParams: { + // agency: agency + // } + // }); + // } + private formatGermanDate(dateString: string): string { + if (!dateString) return ''; + return new Intl.DateTimeFormat('de-DE', { + day: 'numeric', + month: 'long', + year: 'numeric', + }).format(new Date(dateString)); + } /** * All associated persons as a simple list. */ getAssociatedPersons(): string[] { return this.bundProject?.associated_persons || []; } + getStartDate(): string { + return this.formatGermanDate(this.bundProject?.funding_start_date ?? ''); + } + getEndDate(): string { + return this.formatGermanDate(this.bundProject?.funding_end_date ?? ''); + } + + getDuration(): string { + const start = this.bundProject?.funding_start_date; + const end = this.bundProject?.funding_end_date; + + if (!start || !end) return ''; + + return `von ${this.formatGermanDate(start)} bis ${this.formatGermanDate(end)}`; + } /** * All institutions as a simple list. */ @@ -137,4 +160,4 @@ export class BundDetailsComponent implements OnInit { goBack(): void { window.history.back(); } -} \ No newline at end of file +} From 5396b453144173c1fb5895242957bc908a84fd35 Mon Sep 17 00:00:00 2001 From: Roman Date: Fri, 19 Jun 2026 05:26:25 +0200 Subject: [PATCH 32/41] add sidebar collapse and refine company connections --- .../person-company-connections.component.html | 63 +++--- .../person-company-connections.component.scss | 197 ++++++------------ .../person-company-connections.component.ts | 174 ++++++++++------ .../ui/app-layout/app-layout.component.html | 11 +- .../ui/app-layout/app-layout.component.scss | 4 + .../ui/app-layout/app-layout.component.ts | 28 +++ .../ui/app-menu/app-menu.component.html | 147 +++++++++---- .../ui/app-menu/app-menu.component.scss | 68 +++++- .../shared/ui/app-menu/app-menu.component.ts | 9 +- 9 files changed, 437 insertions(+), 264 deletions(-) diff --git a/webapp/src/app/modules/person-company-connections/person-company-connections.component.html b/webapp/src/app/modules/person-company-connections/person-company-connections.component.html index 7cb40edc..f4e9453b 100644 --- a/webapp/src/app/modules/person-company-connections/person-company-connections.component.html +++ b/webapp/src/app/modules/person-company-connections/person-company-connections.component.html @@ -40,24 +40,30 @@
@if (graphOptions) { -
-
- -
- +
+ +
} -
+ }

@@ -95,7 +101,7 @@

-
+
Unternehmen Rolle @@ -109,6 +115,7 @@
- + {{ - isCompanyOfficersExpanded(connection) ? '▲' : '▼' + isCompanyOfficersExpanded(connection) + ? 'expand_less' + : 'expand_more' }} - + @if (isCompanyOfficersExpanded(connection)) { - +
} }
@@ -253,7 +262,7 @@
}
-
+
diff --git a/webapp/src/app/modules/person-company-connections/person-company-connections.component.scss b/webapp/src/app/modules/person-company-connections/person-company-connections.component.scss index b051e2a2..91824dd7 100644 --- a/webapp/src/app/modules/person-company-connections/person-company-connections.component.scss +++ b/webapp/src/app/modules/person-company-connections/person-company-connections.component.scss @@ -1,10 +1,8 @@ -$author-color: #5470c6; +$marked-color: #5470c6; +$related-person-color: #4f8df5; $timeline-purple: #7255d9; $timeline-purple-bg: #f6f0ff; -$timeline-green-bg: #effaf3; -$timeline-green-border: #bdebcf; - $timeline-orange-bg: #fff7e8; $timeline-orange-border: #ffd796; $timeline-orange-text: #c67500; @@ -107,7 +105,6 @@ $text-muted: #64718f; .graph-card, .connection-list { - border: 1px solid $card-border; border-radius: 16px; background: #ffffff; box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04); @@ -121,70 +118,45 @@ $text-muted: #64718f; flex-direction: column; } -.graph-toolbar { - flex: 0 0 auto; - padding: 12px 18px 8px; - border-bottom: 1px solid #edf2fb; -} - -.related-toggle { - display: inline-flex; - align-items: center; - gap: 10px; - max-width: 100%; - padding: 0; - border: 0; - background: transparent; - color: $text-main; - cursor: pointer; -} - -.toggle-switch { - position: relative; - flex: 0 0 auto; - width: 44px; - height: 24px; - border-radius: 999px; - background: #dbe5f6; - transition: background 160ms ease; -} - -.toggle-knob { - position: absolute; - top: 3px; - left: 3px; - width: 18px; - height: 18px; - border-radius: 999px; - background: #ffffff; - box-shadow: 0 1px 4px rgba(15, 23, 42, 0.24); - transition: transform 160ms ease; -} - -.related-toggle.active .toggle-switch { - background: #e95590; -} - -.related-toggle.active .toggle-knob { - transform: translateX(20px); -} - -.toggle-text { - min-width: 0; - color: $text-main; - font-size: 13px; - font-weight: 600; - overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; -} - .graph-stage { + position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden; } +.graph-related-persons-button { + position: absolute; + top: 12px; + right: 12px; + z-index: 2; + + width: 50px; + height: 50px; + padding: 0; + + background: transparent; + color: $related-person-color; + box-shadow: none; +} + +.graph-related-persons-button:hover { + background: rgba(84, 112, 198, 0.08); +} + +.graph-related-persons-icon { + width: 51px; + height: 51px; + + font-size: 51px; + line-height: 51px; + font-variation-settings: + 'FILL' 1, + 'wght' 400, + 'GRAD' 0, + 'opsz' 48; +} + .graph { width: 100%; height: 100%; @@ -288,14 +260,6 @@ $text-muted: #64718f; .list-header span, .connection-row span { min-width: 0; -} - -.list-header span { - white-space: normal; -} - -.list-header span, -.connection-row span { justify-self: start; text-align: left; } @@ -322,7 +286,7 @@ $text-muted: #64718f; &.selected { background: #f0f6ff; - box-shadow: inset 3px 0 0 $author-color; + box-shadow: inset 3px 0 0 $marked-color; } &.removed { @@ -343,34 +307,10 @@ $text-muted: #64718f; white-space: nowrap; } -.company-name { - min-width: 0; -} - .company-name { font-weight: 700; } -.detail-value.detail-status { - display: block; - margin: 0; - padding: 0; - border: 0; - border-radius: 0; - background: transparent; - font-size: 13px; - font-weight: 700; - line-height: 1.35; -} - -.detail-value.detail-status--active { - color: #218354; -} - -.detail-value.detail-status--removed { - color: #6b7280; -} - .role-value { width: auto; padding-left: 8px; @@ -422,6 +362,26 @@ $text-muted: #64718f; line-height: 1.35; } +.detail-value.detail-status { + display: block; + margin: 0; + padding: 0; + border: 0; + border-radius: 0; + background: transparent; + font-size: 13px; + font-weight: 700; + line-height: 1.35; +} + +.detail-value.detail-status--active { + color: #218354; +} + +.detail-value.detail-status--removed { + color: #6b7280; +} + .officers-toggle { display: flex; justify-content: space-between; @@ -441,21 +401,23 @@ $text-muted: #64718f; cursor: pointer; } +.officers-toggle mat-icon { + color: $text-muted; +} + .related-officers { display: flex; flex-direction: column; gap: 6px; margin: 8px 0 0; padding: 0; - list-style: none; } .related-officer { display: grid; - grid-template-columns: minmax(0, 1fr) minmax(0, 0.72fr) 28px; + grid-template-columns: minmax(0, 1fr) minmax(0, 0.72fr) 40px; gap: 12px; align-items: center; - padding-right: 34px; color: $text-main; font-size: 13px; } @@ -466,49 +428,21 @@ $text-muted: #64718f; } .officer-role { - display: block; - max-width: 100%; - min-width: 0; padding-left: 10px; border-left: 4px solid #8a95b3; color: $text-main; font-weight: 600; - overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; } .officer-open-link { - --mdc-icon-button-state-layer-size: 28px; - --mat-icon-button-state-layer-size: 28px; - justify-self: center; - display: inline-flex; - align-items: center; - justify-content: center; - width: 28px; - height: 28px; - padding: 0; - border-radius: 6px; - color: $author-color; - line-height: 1; -} - -.officer-open-link:hover { - background: rgba(47, 76, 190, 0.08); -} - -.officer-open-link .mat-icon { - width: 20px; - height: 20px; - font-size: 20px; - line-height: 20px; + color: $marked-color; } .officer-open-placeholder { display: block; - width: 28px; - height: 28px; + width: 40px; + height: 40px; } @media (max-width: 1450px) { @@ -553,9 +487,8 @@ $text-muted: #64718f; } .related-officer { - grid-template-columns: minmax(0, 1fr) 28px; + grid-template-columns: minmax(0, 1fr) 40px; gap: 6px 10px; - padding-right: 0; } .officer-role { diff --git a/webapp/src/app/modules/person-company-connections/person-company-connections.component.ts b/webapp/src/app/modules/person-company-connections/person-company-connections.component.ts index 8e7b1c03..742349e8 100644 --- a/webapp/src/app/modules/person-company-connections/person-company-connections.component.ts +++ b/webapp/src/app/modules/person-company-connections/person-company-connections.component.ts @@ -1,7 +1,16 @@ import { CommonModule, LocationStrategy } from '@angular/common'; -import { Component, ElementRef, OnInit, inject } from '@angular/core'; +import { + Component, + ElementRef, + OnInit, + QueryList, + ViewChildren, + inject, +} from '@angular/core'; import { MatButtonModule } from '@angular/material/button'; +import { MatCardModule } from '@angular/material/card'; import { MatIconModule } from '@angular/material/icon'; +import { MatTooltip, MatTooltipModule } from '@angular/material/tooltip'; import { MatProgressSpinnerModule } from '@angular/material/progress-spinner'; import { ActivatedRoute, Router, RouterModule } from '@angular/router'; import { EChartsOption } from 'echarts'; @@ -26,7 +35,10 @@ interface RoleLegendItem { MatProgressSpinnerModule, NgxEchartsDirective, MatButtonModule, + MatCardModule, MatIconModule, + MatTooltipModule, + MatTooltip, RouterModule, ], templateUrl: './person-company-connections.component.html', @@ -36,11 +48,9 @@ export class PersonCompanyConnectionsComponent implements OnInit { private readonly route = inject(ActivatedRoute); private readonly router = inject(Router); private readonly locationStrategy = inject(LocationStrategy); - private readonly host = inject(ElementRef); private readonly companyConnectionsApi = inject(CompanyConnectionsService); private readonly graphCompanyLimit = 10; - private readonly searchInstitutionName = 'University of Duisburg-Essen'; private readonly personCategoryIndex = 0; private readonly activeCompanyCategoryIndex = 1; @@ -58,6 +68,22 @@ export class PersonCompanyConnectionsComponent implements OnInit { private readonly relatedPersonColor = '#4f8df5'; private readonly fallbackRoleColor = '#8a95b3'; + private readonly personIconSymbol = this.createAccountCircleSymbol( + this.authorColor, + ); + + private readonly registerPersonIconSymbol = this.createAccountCircleSymbol( + this.relatedPersonColor, + ); + + private readonly activeCompanyIconSymbol = this.createApartmentSymbol( + this.companyActiveColor, + ); + + private readonly removedCompanyIconSymbol = this.createApartmentSymbol( + this.companyRemovedColor, + ); + private readonly roleColors: Record = { Geschäftsführer: '#2678e8', Prokurist: '#39a96b', @@ -81,6 +107,9 @@ export class PersonCompanyConnectionsComponent implements OnInit { expandedOfficersCompanyKey: string | null = null; showRelatedPersons = false; + @ViewChildren('connectionRow', { read: ElementRef }) + private connectionRows!: QueryList>; + get connections(): CompanyConnection[] { return this.data?.connections ?? []; } @@ -216,11 +245,6 @@ export class PersonCompanyConnectionsComponent implements OnInit { this.expandedOfficersCompanyKey = companyKey; } - toggleRelatedPersons(): void { - this.showRelatedPersons = !this.showRelatedPersons; - this.refreshGraph(); - } - onGraphClick(event: any): void { if (event.dataType !== 'node') { return; @@ -253,6 +277,17 @@ export class PersonCompanyConnectionsComponent implements OnInit { ); } + toggleRelatedPersons(tooltip?: MatTooltip): void { + this.showRelatedPersons = !this.showRelatedPersons; + this.refreshGraph(); + + tooltip?.hide(0); + + window.setTimeout(() => { + tooltip?.show(0); + }); + } + private loadCompanyConnections(authorId: string): void { this.loading = true; this.error = false; @@ -309,8 +344,9 @@ export class PersonCompanyConnectionsComponent implements OnInit { id: personNodeId, name: response.display_name || 'Person', category: this.personCategoryIndex, - symbol: 'circle', - symbolSize: 44, + symbol: this.personIconSymbol, + symbolSize: 42, + symbolKeepAspect: true, itemStyle: { color: this.authorColor, }, @@ -335,8 +371,11 @@ export class PersonCompanyConnectionsComponent implements OnInit { category: isRemoved ? this.removedCompanyCategoryIndex : this.activeCompanyCategoryIndex, - symbol: 'roundRect', - symbolSize: [48, 34], + symbol: isRemoved + ? this.removedCompanyIconSymbol + : this.activeCompanyIconSymbol, + symbolSize: 44, + symbolKeepAspect: true, itemStyle: { color: isRemoved ? this.companyRemovedColor : this.companyActiveColor, }, @@ -377,8 +416,9 @@ export class PersonCompanyConnectionsComponent implements OnInit { searchName: relatedOfficer.name, role: relatedRole, category: this.registerPersonCategoryIndex, - symbol: 'circle', - symbolSize: 28, + symbol: this.registerPersonIconSymbol, + symbolSize: 30, + symbolKeepAspect: true, itemStyle: { color: this.relatedPersonColor, }, @@ -412,7 +452,7 @@ export class PersonCompanyConnectionsComponent implements OnInit { roam: true, roamTrigger: 'global', animation: false, - top: 24, + top: 34, left: 20, right: 20, bottom: 64, @@ -444,8 +484,8 @@ export class PersonCompanyConnectionsComponent implements OnInit { left: 'center', orient: 'horizontal', itemGap: 18, - itemWidth: 18, - itemHeight: 14, + itemWidth: 20, + itemHeight: 20, selectedMode: false, textStyle: { color: '#3f4659', @@ -483,31 +523,19 @@ export class PersonCompanyConnectionsComponent implements OnInit { return [ { name: this.personCategoryName, - symbol: 'circle', - itemStyle: { - color: this.authorColor, - }, + symbol: this.personIconSymbol, }, { name: this.activeCompanyCategoryName, - symbol: 'roundRect', - itemStyle: { - color: this.companyActiveColor, - }, + symbol: this.activeCompanyIconSymbol, }, { name: this.removedCompanyCategoryName, - symbol: 'roundRect', - itemStyle: { - color: this.companyRemovedColor, - }, + symbol: this.removedCompanyIconSymbol, }, { name: this.registerPersonCategoryName, - symbol: 'circle', - itemStyle: { - color: this.relatedPersonColor, - }, + symbol: this.registerPersonIconSymbol, }, ]; } @@ -523,40 +551,28 @@ export class PersonCompanyConnectionsComponent implements OnInit { const legendData = [ { name: this.personCategoryName, - icon: 'circle', - itemStyle: { - color: this.authorColor, - }, + icon: this.personIconSymbol, }, ]; if (hasActiveCompany) { legendData.push({ name: this.activeCompanyCategoryName, - icon: 'roundRect', - itemStyle: { - color: this.companyActiveColor, - }, + icon: this.activeCompanyIconSymbol, }); } if (hasRemovedCompany) { legendData.push({ name: this.removedCompanyCategoryName, - icon: 'roundRect', - itemStyle: { - color: this.companyRemovedColor, - }, + icon: this.removedCompanyIconSymbol, }); } if (this.showRelatedPersons) { legendData.push({ name: this.registerPersonCategoryName, - icon: 'circle', - itemStyle: { - color: this.relatedPersonColor, - }, + icon: this.registerPersonIconSymbol, }); } @@ -619,12 +635,10 @@ export class PersonCompanyConnectionsComponent implements OnInit { } getPersonSearchQueryParams(name?: string | null): { - institutionName: string; query: string; page: number; } { return { - institutionName: this.searchInstitutionName, query: name?.trim() ?? '', page: 1, }; @@ -636,19 +650,53 @@ export class PersonCompanyConnectionsComponent implements OnInit { return; } - const rows = Array.from( - this.host.nativeElement.querySelectorAll('.connection-row'), - ) as HTMLElement[]; + const selectedRow = this.connectionRows.find((row) => { + return ( + row.nativeElement.dataset['companyKey'] === this.selectedCompanyKey + ); + }); - for (const row of rows) { - if (row.dataset['companyKey'] === this.selectedCompanyKey) { - row.scrollIntoView({ - block: 'nearest', - behavior: 'smooth', - }); - return; - } - } + selectedRow?.nativeElement.scrollIntoView({ + block: 'nearest', + behavior: 'smooth', + }); }); } + + private createAccountCircleSymbol(color: string): string { + const backgroundPath = + 'M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2z'; + + const foregroundPath = + 'M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 3c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3zm0 14.2c-2.5 0-4.71-1.28-6-3.22.03-1.99 4-3.08 6-3.08 1.99 0 5.97 1.09 6 3.08-1.29 1.94-3.5 3.22-6 3.22z'; + + const svg = ` + + + + + `; + + return this.toSvgImageSymbol(svg); + } + + private createApartmentSymbol(color: string): string { + const backgroundPath = 'M17 11V3H7v4H3v14h18V11h-4z'; + + const foregroundPath = + 'M17 11V3H7v4H3v14h18V11h-4zM7 19H5v-2h2v2zm0-4H5v-2h2v2zm0-4H5V9h2v2zm4 8H9v-2h2v2zm0-4H9v-2h2v2zm0-4H9V9h2v2zm0-4H9V5h2v2zm4 12h-2v-2h2v2zm0-4h-2v-2h2v2zm0-4h-2V9h2v2zm0-4h-2V5h2v2zm4 12h-2v-2h2v2zm0-4h-2v-2h2v2z'; + + const svg = ` + + + + + `; + + return this.toSvgImageSymbol(svg); + } + + private toSvgImageSymbol(svg: string): string { + return `image://data:image/svg+xml;utf8,${encodeURIComponent(svg.trim())}`; + } } diff --git a/webapp/src/app/shared/ui/app-layout/app-layout.component.html b/webapp/src/app/shared/ui/app-layout/app-layout.component.html index 6de5f1f4..20fcd511 100644 --- a/webapp/src/app/shared/ui/app-layout/app-layout.component.html +++ b/webapp/src/app/shared/ui/app-layout/app-layout.component.html @@ -1,6 +1,8 @@
- + @if ( (credentialService.authenticated | async) && ((credentialService.superadmin | async) || @@ -8,10 +10,15 @@ ) { - + + } diff --git a/webapp/src/app/shared/ui/app-layout/app-layout.component.scss b/webapp/src/app/shared/ui/app-layout/app-layout.component.scss index 5afa1f9c..adba06a1 100644 --- a/webapp/src/app/shared/ui/app-layout/app-layout.component.scss +++ b/webapp/src/app/shared/ui/app-layout/app-layout.component.scss @@ -84,6 +84,10 @@ mat-toolbar.main { box-shadow: none; } +.drawer--collapsed { + width: 76px; +} + .content { display: flex; flex-direction: column; diff --git a/webapp/src/app/shared/ui/app-layout/app-layout.component.ts b/webapp/src/app/shared/ui/app-layout/app-layout.component.ts index 7ac7e077..f0a1e6c1 100644 --- a/webapp/src/app/shared/ui/app-layout/app-layout.component.ts +++ b/webapp/src/app/shared/ui/app-layout/app-layout.component.ts @@ -45,7 +45,10 @@ export class AppLayoutComponent implements OnInit, OnDestroy { protected resolverState = inject(ResolverStateService); mediaQueryListener: () => void; + private readonly sidebarCollapsedStorageKey = 'inse.sidebar.collapsed'; sideNavOpen = false; + sideNavCollapsed = this.readSidebarCollapsedState(); + constructor( public credentialService: CredentialService, public router: Router, @@ -56,6 +59,11 @@ export class AppLayoutComponent implements OnInit, OnDestroy { this.mediaQuery = media.matchMedia('(max-width: 600px)'); this.mediaQueryListener = () => { this.sideNavOpen = !this.mediaQuery.matches; + + if (this.mediaQuery.matches) { + this.sideNavCollapsed = false; + } + changeDetector.detectChanges(); }; } @@ -66,6 +74,26 @@ export class AppLayoutComponent implements OnInit, OnDestroy { } } + private readSidebarCollapsedState(): boolean { + return localStorage.getItem(this.sidebarCollapsedStorageKey) === 'true'; + } + + isSidebarCollapsed(): boolean { + return this.sideNavCollapsed && !this.mediaQuery.matches; + } + + toggleSidebarCollapsed(): void { + if (this.mediaQuery.matches) { + return; + } + + this.sideNavCollapsed = !this.sideNavCollapsed; + localStorage.setItem( + this.sidebarCollapsedStorageKey, + String(this.sideNavCollapsed), + ); + } + ngOnInit() { this.sideNavOpen = !this.mediaQuery.matches; this.mediaQuery.addEventListener('change', this.mediaQueryListener); diff --git a/webapp/src/app/shared/ui/app-menu/app-menu.component.html b/webapp/src/app/shared/ui/app-menu/app-menu.component.html index 5c43bd85..f20b8878 100644 --- a/webapp/src/app/shared/ui/app-menu/app-menu.component.html +++ b/webapp/src/app/shared/ui/app-menu/app-menu.component.html @@ -1,30 +1,71 @@ -
-
diff --git a/webapp/src/app/modules/institution-projects/institution-projects.component.ts b/webapp/src/app/modules/institution-projects/institution-projects.component.ts index debef76a..4f547c61 100644 --- a/webapp/src/app/modules/institution-projects/institution-projects.component.ts +++ b/webapp/src/app/modules/institution-projects/institution-projects.component.ts @@ -85,19 +85,29 @@ export class InstitutionProjectsComponent implements OnInit { bundProjectData: BundProjectRow[] = []; bundProjectsFunding = input.required(); - bundTotalFunding = computed(() => { const funding = this.bundProjectsFunding(); return Object.values( funding.funding_per_year as Record, ).reduce((sum, yearFunding) => sum + yearFunding, 0); }); - bundAverageAnnualFunding = computed(() => { const funding = this.bundProjectsFunding(); return funding.annual_average_over_period ?? 0; }); + cordisEuProjectsFunding = input.required(); + euTotalFunding = computed(() => { + const funding = this.cordisEuProjectsFunding(); + return Object.values( + funding.funding_per_year as Record, + ).reduce((sum, yearFunding) => sum + yearFunding, 0); + }); + euAverageAnnualFunding = computed(() => { + const funding = this.cordisEuProjectsFunding(); + return funding.annual_average_over_period ?? 0; + }); + urlSortKey = signal(''); urlSortDirection = signal(''); urlSearchTerm = signal(''); @@ -239,7 +249,7 @@ export class InstitutionProjectsComponent implements OnInit { type: 'accessor', accessorKey: 'funding_amount', cellTemplate: this.fundingAmountTmp(), - } + }, ]; } diff --git a/webapp/src/app/resolvers/bund-projects-funding.resolver.ts b/webapp/src/app/resolvers/bund-projects-funding.resolver.ts index 61591e66..27f188c5 100644 --- a/webapp/src/app/resolvers/bund-projects-funding.resolver.ts +++ b/webapp/src/app/resolvers/bund-projects-funding.resolver.ts @@ -5,9 +5,11 @@ import { inject } from '@angular/core'; export const bundProjectsFundingResolver: ResolveFn< InstitutionFunderSummary > = (route, state) => { - let institutionId = route.paramMap.get('institutionId'); + let institutionId = route.parent?.paramMap.get('institutionId') ?? null; if (!institutionId) { institutionId = route.parent?.paramMap.get('institutionId') ?? null; } - return inject(ProjectsService).getBundFundingOverTime(institutionId || ''); + return inject(ProjectsService).getInstitutionBundProjectsFundingOverTime( + institutionId!, + ); }; diff --git a/webapp/src/app/resolvers/cordis-eu-projects-funding.resolver.ts b/webapp/src/app/resolvers/cordis-eu-projects-funding.resolver.ts new file mode 100644 index 00000000..4b1e5385 --- /dev/null +++ b/webapp/src/app/resolvers/cordis-eu-projects-funding.resolver.ts @@ -0,0 +1,17 @@ +import { ResolveFn } from '@angular/router'; +import { InstitutionFunderSummary, ProjectsService } from '../api'; +import { inject } from '@angular/core'; + +export const cordisEuProjectsFundingResolver: ResolveFn< + InstitutionFunderSummary +> = (route, state) => { + let institutionId = route.parent?.paramMap.get('institutionId') ?? null; + if (!institutionId) { + throw new Error( + 'Institution ID is required to resolve Cordis EU projects funding', + ); + } + return inject(ProjectsService).getInstitutionCordisEuProjectsFundingOverTime( + institutionId, + ); +}; From 000b68758d173a9cbb6e7dea3367db0cb81ecefa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mats=20Paul=20Ton=C4=8Dik?= Date: Fri, 19 Jun 2026 10:48:17 +0200 Subject: [PATCH 35/41] Fixed navigation to single dfg project from person projects --- .../person-projects.component.html | 11 ++++++----- .../person-projects.component.ts | 3 ++- .../ui/data-table/data-table.component.html | 19 ++++++------------- .../ui/data-table/data-table.component.ts | 15 +-------------- 4 files changed, 15 insertions(+), 33 deletions(-) diff --git a/webapp/src/app/modules/person-projects/person-projects.component.html b/webapp/src/app/modules/person-projects/person-projects.component.html index 1033f016..90e01edf 100644 --- a/webapp/src/app/modules/person-projects/person-projects.component.html +++ b/webapp/src/app/modules/person-projects/person-projects.component.html @@ -26,10 +26,7 @@ [detailTemplate]="dfgProjectDetailRowTmp" [activeSortKey]="urlSortKey()" [sortDirection]="urlSortDirection()" - (sortChange)="handleSortChange($event)" - [navigatePrefix]="'projects/dfg/'" - [navigateField]="'id'"/> - + (sortChange)="handleSortChange($event)" /> - + open_in_new diff --git a/webapp/src/app/modules/person-projects/person-projects.component.ts b/webapp/src/app/modules/person-projects/person-projects.component.ts index 660576e3..6374de4f 100644 --- a/webapp/src/app/modules/person-projects/person-projects.component.ts +++ b/webapp/src/app/modules/person-projects/person-projects.component.ts @@ -20,7 +20,7 @@ import { MatTabsModule } from '@angular/material/tabs'; import { MatFormFieldModule } from '@angular/material/form-field'; import { MatInputModule } from '@angular/material/input'; import { DebounceDirective } from '../../directives/debounce.directive'; -import { ActivatedRoute, Router } from '@angular/router'; +import { ActivatedRoute, Router, RouterModule } from '@angular/router'; import { takeUntilDestroyed } from '@angular/core/rxjs-interop'; import { MatPaginatorModule, PageEvent } from '@angular/material/paginator'; import { Sort, SortDirection } from '@angular/material/sort'; @@ -37,6 +37,7 @@ import { Sort, SortDirection } from '@angular/material/sort'; MatInputModule, DebounceDirective, MatPaginatorModule, + RouterModule, ], templateUrl: './person-projects.component.html', styleUrl: './person-projects.component.scss', diff --git a/webapp/src/app/shared/ui/data-table/data-table.component.html b/webapp/src/app/shared/ui/data-table/data-table.component.html index 307cf373..41347477 100644 --- a/webapp/src/app/shared/ui/data-table/data-table.component.html +++ b/webapp/src/app/shared/ui/data-table/data-table.component.html @@ -49,19 +49,12 @@ - @if (navigatePrefix() || navigateField()){ - - } @else { - - } + + { id: string; @@ -58,8 +57,6 @@ export class DataTableComponent implements AfterViewInit { activeSortKey = input(''); sortDirection = input(''); - navigatePrefix=input(''); - navigateField=input(''); sortChange = output(); displayedColumns = computed(() => this.columns().map((col) => col.id)); @@ -67,7 +64,7 @@ export class DataTableComponent implements AfterViewInit { sort = viewChild.required(MatSort); - constructor(private router:Router) { + constructor() { effect(() => { const currentData = this.data(); @@ -112,16 +109,6 @@ export class DataTableComponent implements AfterViewInit { this.sortChange.emit(sort); } - navigateToDataField(row: any): void { - if (!this.navigatePrefix() || !this.navigateField()) { - return; - } - const value = row[this.navigateField()]; - if (value != null) { - this.router.navigate([this.navigatePrefix(), value]); - } -} - toggleRow(row: T): void { if (!this.detailTemplate()) return; this.expandedElement.update((current) => (current === row ? null : row)); From 466b36fb88f299b5a6520789b2e41c893d8eee31 Mon Sep 17 00:00:00 2001 From: genja Date: Fri, 19 Jun 2026 11:33:18 +0200 Subject: [PATCH 36/41] regenerated services --- .../src/app/api/api/institutions.service.ts | 63 ++++++++++ webapp/src/app/api/api/projects.service.ts | 117 +++++++++++++++++- 2 files changed, 177 insertions(+), 3 deletions(-) diff --git a/webapp/src/app/api/api/institutions.service.ts b/webapp/src/app/api/api/institutions.service.ts index 7bcb5e53..2a856893 100644 --- a/webapp/src/app/api/api/institutions.service.ts +++ b/webapp/src/app/api/api/institutions.service.ts @@ -170,6 +170,69 @@ export class InstitutionsService extends BaseService { ); } + /** + * Returns data for the University Ranking Dashboard. + * @endpoint get /api/inse-service/university-rankings + * @param topic Research topic (e.g., \'Artificial Intelligence\') + * @param metric Metric to rank 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 getRankingsApiInseServiceUniversityRankingsGet(topic: 'Artificial Intelligence' | 'Quantum Computing' | 'Renewable Energy' | 'Biotechnology', metric?: 'publications' | 'citations', observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; + public getRankingsApiInseServiceUniversityRankingsGet(topic: 'Artificial Intelligence' | 'Quantum Computing' | 'Renewable Energy' | 'Biotechnology', metric?: 'publications' | 'citations', observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public getRankingsApiInseServiceUniversityRankingsGet(topic: 'Artificial Intelligence' | 'Quantum Computing' | 'Renewable Energy' | 'Biotechnology', metric?: 'publications' | 'citations', observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public getRankingsApiInseServiceUniversityRankingsGet(topic: 'Artificial Intelligence' | 'Quantum Computing' | 'Renewable Energy' | 'Biotechnology', metric?: 'publications' | 'citations', observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { + if (topic === null || topic === undefined) { + throw new Error('Required parameter topic was null or undefined when calling getRankingsApiInseServiceUniversityRankingsGet.'); + } + + let localVarQueryParameters = new HttpParams({encoder: this.encoder}); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + topic, 'topic'); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + metric, 'metric'); + + 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/inse-service/university-rankings`; + 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 OpenAlex institutions. * @endpoint get /api/inse-service/institutions diff --git a/webapp/src/app/api/api/projects.service.ts b/webapp/src/app/api/api/projects.service.ts index 087c4993..104e62a5 100644 --- a/webapp/src/app/api/api/projects.service.ts +++ b/webapp/src/app/api/api/projects.service.ts @@ -21,11 +21,10 @@ import { BundProjectDetails } from '../model/bundProjectDetails'; // @ts-ignore import { BundProjectPage } from '../model/bundProjectPage'; // @ts-ignore -import { DfgProjectDetails } from '../model/dfgProjectDetails'; -// @ts-ignore -import { DfgProjectPage } from '../model/dfgProjectPage'; import { CordisEuProjectPage } from '../model/cordisEuProjectPage'; // @ts-ignore +import { DfgProjectDetails } from '../model/dfgProjectDetails'; +// @ts-ignore import { DfgProjectPage } from '../model/dfgProjectPage'; // @ts-ignore import { HTTPValidationError } from '../model/hTTPValidationError'; @@ -248,6 +247,118 @@ export class ProjectsService extends BaseService { ); } + /** + * Get a single BUND project. + * Returns a single BUND project based on its ID. + * @endpoint get /api/projects/bund/{id} + * @param id The ID of the BUND project 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 getSingleBundProject(id: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; + public getSingleBundProject(id: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public getSingleBundProject(id: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public getSingleBundProject(id: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { + if (id === null || id === undefined) { + throw new Error('Required parameter id was null or undefined when calling getSingleBundProject.'); + } + + 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/projects/bund/${this.configuration.encodeParam({name: "id", value: id, 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 + } + ); + } + + /** + * Get a single DFG project. + * Returns a single DFG project based on its ID. + * @endpoint get /api/projects/dfg/{id} + * @param id The ID of the DFG project 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 getSingleDfgProject(id: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; + public getSingleDfgProject(id: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public getSingleDfgProject(id: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public getSingleDfgProject(id: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { + if (id === null || id === undefined) { + throw new Error('Required parameter id was null or undefined when calling getSingleDfgProject.'); + } + + 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/projects/dfg/${this.configuration.encodeParam({name: "id", value: id, 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 + } + ); + } + /** * Get bund projects. * Returns a page of bund projects based on the provided pagination parameters and optional institution filter. From 7baddf2b54c1696ea4fd1fc8bf5159fbd35bf61f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mats=20Paul=20Ton=C4=8Dik?= Date: Fri, 19 Jun 2026 12:33:51 +0200 Subject: [PATCH 37/41] Added projects search page --- service/src/main/inse/projects/model.py | 96 +++++++++- .../inse/projects/projects_search_client.py | 165 ++++++++++++++++-- service/src/main/inse/projects/router.py | 58 +++++- service/src/main/inse/projects/service.py | 31 +++- ude_person.http | 36 ++++ webapp/src/app/api/.openapi-generator/FILES | 2 + webapp/src/app/api/api/projects.service.ts | 85 +++++++++ webapp/src/app/api/model/fundingProject.ts | 30 ++++ .../src/app/api/model/fundingProjectPage.ts | 31 ++++ webapp/src/app/api/model/models.ts | 2 + webapp/src/app/app.routes.ts | 28 ++- .../modules/projects/projects.component.html | 112 ++++++++++++ .../modules/projects/projects.component.scss | 99 +++++++++++ .../modules/projects/projects.component.ts | 128 ++++++++++++++ .../funding-project-page.resolver.ts | 37 ++++ .../shared/ui/app-menu/app-menu.component.ts | 14 ++ 16 files changed, 928 insertions(+), 26 deletions(-) create mode 100644 webapp/src/app/api/model/fundingProject.ts create mode 100644 webapp/src/app/api/model/fundingProjectPage.ts create mode 100644 webapp/src/app/modules/projects/projects.component.html create mode 100644 webapp/src/app/modules/projects/projects.component.scss create mode 100644 webapp/src/app/modules/projects/projects.component.ts create mode 100644 webapp/src/app/resolvers/funding-project-page.resolver.ts diff --git a/service/src/main/inse/projects/model.py b/service/src/main/inse/projects/model.py index a9864cf2..53a44d3c 100644 --- a/service/src/main/inse/projects/model.py +++ b/service/src/main/inse/projects/model.py @@ -1,7 +1,9 @@ +from datetime import date +import datetime from enum import StrEnum from typing import List, Optional -from pydantic import BaseModel, Field +from pydantic import BaseModel, Field, field_validator from inse.models.bund_project import BundProject from inse.models.eu_project import EuProject @@ -131,3 +133,95 @@ class CordisEuProjectPage(Page): elements: List[CordisEuProject] = Field( default_factory=list, description="The CORDIS EU projects on this page." ) + + +class FundingProject(BaseModel): + type: ProjectType = Field( + description="The type of the project.", + 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.") + 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." + ) + funding_amount: Optional[float] = Field( + default=None, description="The total funding amount for the project." + ) + + @field_validator("start_date", "end_date", mode="before") + @classmethod + def parse_all_date_formats(cls, value): + if isinstance(value, str): + value = value.strip() + + if len(value) == 4 and value.isdigit(): + return f"{value}-01-01" + + if "." in value: + return datetime.datetime.strptime(value, "%d.%m.%Y").date() + + return value + + return value + + @classmethod + def from_cordis_projects_hit(cls, hit: dict) -> "FundingProject": + if not hit.get("_index", "").startswith("cordis_eu_") and not hit.get( + "_index", "" + ).endswith("_projects"): + raise ValueError( + "The provided hit does not belong to an index starting with 'cordis_eu_' and ending with '_projects'." + ) + + source = hit.get("_source", {}) + return cls( + type=ProjectType.EU, + id=hit.get("_id", ""), + title=source.get("title"), + start_date=source.get("startDate"), + end_date=source.get("endDate"), + funding_amount=source.get("ecMacContribution"), + ) + + @classmethod + def from_bund_projects_hit(cls, hit: dict) -> "FundingProject": + if hit.get("_index") != "projects_bund_v1": + raise ValueError( + "The provided hit does not belong to the 'projects_bund_v1' index." + ) + + source = hit.get("_source", {}) + return cls( + type=ProjectType.BUND, + id=hit.get("_id", ""), + title=source.get("Thema"), + start_date=source.get("funding_start"), + end_date=source.get("funding_end"), + funding_amount=source.get("Fördersumme"), + ) + + @classmethod + def from_dfg_projects_hit(cls, hit: dict) -> "FundingProject": + if hit.get("_index") != "projects_dfg_all": + raise ValueError( + "The provided hit does not belong to the 'projects_dfg_all' index." + ) + + source = hit.get("_source", {}) + return cls( + type=ProjectType.DFG, + id=hit.get("_id", ""), + title=source.get("title"), + start_date=source.get("funding_start"), + end_date=source.get("funding_end"), + ) + + +class FundingProjectPage(Page): + elements: List[FundingProject] = Field( + default_factory=list, description="The funding projects on this page." + ) diff --git a/service/src/main/inse/projects/projects_search_client.py b/service/src/main/inse/projects/projects_search_client.py index 72ab9693..8f8c93cd 100644 --- a/service/src/main/inse/projects/projects_search_client.py +++ b/service/src/main/inse/projects/projects_search_client.py @@ -1,6 +1,6 @@ import json import logging -from typing import Any, Dict, List, Literal, Optional +from typing import Any, Dict, List, Literal, Optional, Set import httpx @@ -12,6 +12,9 @@ from inse.projects.model import ( DfgProjectPage, DfgProjectSummary, EuProjectPage, + FundingProject, + FundingProjectPage, + ProjectType, ProjectsFilteringProperties, ProjectsSortBy, SortDirection, @@ -262,20 +265,15 @@ class BundProjectsSearchClient(ProjectsSearchClient): ) response = await self.make_search_request(query) return self.response_to_bund_project_page(response, page, size) - - async def get_bund_project_by_id(self, project_id: str) -> Optional[BundProjectDetails]: - - query= { - "query": { - "term": { - "Förderkennzeichen.keyword": { - "value": project_id - } - } - }, - "_source":True - } + async def get_bund_project_by_id( + self, project_id: str + ) -> Optional[BundProjectDetails]: + + query = { + "query": {"term": {"Förderkennzeichen.keyword": {"value": project_id}}}, + "_source": True, + } response = await self.make_search_request(query) hits = response.get("hits", {}).get("hits", []) @@ -797,11 +795,10 @@ class DfgProjectsSearchClient(ProjectsSearchClient): response = await self.make_search_request(query) return self.response_to_dfg_project_page(response, page, size) - async def get_dfg_project_by_id(self, project_id: str) -> Optional[DfgProjectDetails]: - query = { - "query": {"ids": {"values": [project_id]}}, - "_source": True - } + async def get_dfg_project_by_id( + self, project_id: str + ) -> Optional[DfgProjectDetails]: + query = {"query": {"ids": {"values": [project_id]}}, "_source": True} response = await self.make_search_request(query) hits = response.get("hits", {}).get("hits", []) @@ -811,3 +808,133 @@ class DfgProjectsSearchClient(ProjectsSearchClient): details = DfgProjectDetails.from_elastic_hit(hit=hit) return details return None + + +class CompleteProjectsSearchClient(ProjectsSearchClient): + def __init__(self): + if not settings.elasticsearch_inse_url: + raise ValueError("Elasticsearch INSE URL is missing in settings.") + if not settings.elasticsearch_inse_api_key: + raise ValueError("Elasticsearch INSE API key is missing in settings.") + super().__init__( + base_url=settings.elasticsearch_inse_url, + index="cordis_eu_*_projects,projects_bund_v1,projects_dfg_all", + api_key=settings.elasticsearch_inse_api_key, + ) + + def _build_projects_search_body( + self, + page: int, + size: int, + title: Optional[str] = None, + sort_by: ProjectsSortBy = ProjectsSortBy.TITLE, + sort_direction: SortDirection = SortDirection.ASC, + ) -> Dict[str, Any]: + if sort_by != ProjectsSortBy.TITLE: + raise ValueError("Currently only sorting by title is supported.") + + query: Dict[str, Any] = { + "size": size, + "from": page * size, + "sort": [ + { + "title.keyword": { + "order": sort_direction, + "missing": "_last", + "unmapped_type": "keyword", + } + }, + { + "Thema.keyword": { + "order": sort_direction, + "missing": "_last", + "unmapped_type": "keyword", + } + }, + ], + } + + if title and len(title.strip()) > 0: + title = f"*{title.strip()}*" + query["query"] = { + "bool": { + "should": [ + { + "wildcard": { + "title.keyword": { + "value": title, + "case_insensitive": True, + } + } + }, + { + "wildcard": { + "Thema.keyword": { + "value": title, + "case_insensitive": True, + } + } + }, + ], + "minimum_should_match": 1, + } + } + + return query + + def _project_type_to_index(self, project_type: ProjectType) -> str: + if project_type == ProjectType.BUND: + return "projects_bund_v1" + elif project_type == ProjectType.EU: + return "cordis_eu_*_projects" + elif project_type == ProjectType.DFG: + return "projects_dfg_all" + else: + raise ValueError(f"Unsupported project type: {project_type}") + + def _hit_to_funding_project(self, hit: Dict[str, Any]) -> FundingProject: + if hit.get("_index", "").startswith("cordis_eu_") and hit.get( + "_index", "" + ).endswith("_projects"): + return FundingProject.from_cordis_projects_hit(hit=hit) + elif hit.get("_index") == "projects_bund_v1": + return FundingProject.from_bund_projects_hit(hit=hit) + elif hit.get("_index") == "projects_dfg_all": + return FundingProject.from_dfg_projects_hit(hit=hit) + else: + raise ValueError( + "The provided hit does not belong to a recognized project index." + ) + + def _response_to_funding_project_page( + self, response: Dict[str, Any], page: int, size: int + ) -> FundingProjectPage: + hits = response.get("hits", {}).get("hits", []) + projects = [self._hit_to_funding_project(hit=hit) for hit in hits] + total = response.get("hits", {}).get("total", {}).get("value", 0) + return FundingProjectPage(elements=projects, total=total, page=page, size=size) + + async def search_projects( + self, + page: int, + size: int, + selected_project_types: Optional[Set[ProjectType]] = None, + title: Optional[str] = None, + sort_by: ProjectsSortBy = ProjectsSortBy.TITLE, + sort_direction: SortDirection = SortDirection.ASC, + ): + body = self._build_projects_search_body( + page=page, + size=size, + title=title, + sort_by=sort_by, + sort_direction=sort_direction, + ) + if not selected_project_types: + selected_project_types = {ProjectType.BUND, ProjectType.EU, ProjectType.DFG} + index = ",".join( + self._project_type_to_index(pt) for pt in selected_project_types + ) + + projects_response = await self.make_search_request(body, index=index) + return self._response_to_funding_project_page(projects_response, page, size) diff --git a/service/src/main/inse/projects/router.py b/service/src/main/inse/projects/router.py index f2f58b60..60beae82 100644 --- a/service/src/main/inse/projects/router.py +++ b/service/src/main/inse/projects/router.py @@ -1,6 +1,6 @@ from functools import lru_cache import logging -from typing import Annotated, Optional +from typing import Annotated, Optional, Set from fastapi import APIRouter, Body, Depends, Path, Query, status @@ -8,8 +8,12 @@ from inse.projects.model import ( BundProjectPage, CordisEuProjectPage, DfgProjectPage, + FundingProjectPage, InstitutionFunderSummary, + ProjectType, ProjectsFilteringProperties, + ProjectsSortBy, + SortDirection, ) from inse.models.dfg_project_details import DfgProjectDetails from inse.models.bund_project_details import BundProjectDetails @@ -17,6 +21,7 @@ from inse.tags import Tags from inse.projects import service as projects_service from inse.projects.projects_search_client import ( BundProjectsSearchClient, + CompleteProjectsSearchClient, DfgProjectsSearchClient, EuProjectsSearchClient, ) @@ -45,6 +50,11 @@ def get_dfg_search_client() -> DfgProjectsSearchClient: return DfgProjectsSearchClient() +@lru_cache +def get_complete_projects_search_client() -> CompleteProjectsSearchClient: + return CompleteProjectsSearchClient() + + @router.post( "/institution/bund/search", summary="Get bund projects.", @@ -272,3 +282,49 @@ async def get_dfg_projects( sort_by=sort_by, sort_direction=sort_direction, ) + + +@router.get( + "/search", + summary="Search projects across all funders.", + description="Returns a page of projects across all funders based on the provided pagination parameters and optional institution filter.", + operation_id="searchProjects", + responses={ + status.HTTP_200_OK: { + "description": "Successful Response", + "model": FundingProjectPage, + }, + }, + response_model_by_alias=False, +) +async def search_projects( + complete_projects_search_client: Annotated[ + CompleteProjectsSearchClient, Depends(get_complete_projects_search_client) + ], + 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]], + 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.") + ] = None, + sort_by: Annotated[ + ProjectsSortBy, Query(description="The field to sort by.") + ] = ProjectsSortBy.TITLE, + sort_direction: Annotated[ + SortDirection, Query(description="The sort direction (asc or desc).") + ] = SortDirection.ASC, +) -> FundingProjectPage: + return await projects_service.search_projects( + projects_search_client=complete_projects_search_client, + page=page, + size=size, + selected_project_types=selected_project_types, + title=title, + sort_by=sort_by, + sort_direction=sort_direction, + ) diff --git a/service/src/main/inse/projects/service.py b/service/src/main/inse/projects/service.py index 9ea81c90..83f55211 100644 --- a/service/src/main/inse/projects/service.py +++ b/service/src/main/inse/projects/service.py @@ -1,9 +1,10 @@ import datetime import logging -from typing import Any, Dict, List, Optional +from typing import Any, Dict, List, Optional, Set from inse.projects.projects_search_client import ( BundProjectsSearchClient, + CompleteProjectsSearchClient, DfgProjectsSearchClient, EuProjectsSearchClient, ) @@ -12,9 +13,12 @@ from inse.projects.model import ( CordisEuProjectPage, DfgProjectPage, EuProjectPage, + FundingProjectPage, InstitutionFunderSummary, ProjectType, ProjectsFilteringProperties, + ProjectsSortBy, + SortDirection, ) from inse.models.dfg_project_details import DfgProjectDetails from inse.models.bund_project_details import BundProjectDetails @@ -27,6 +31,25 @@ from inse.persons.logic import get_author_name_by_id logger = logging.getLogger(__name__) +async def search_projects( + projects_search_client: CompleteProjectsSearchClient, + page: int, + size: int, + sort_by: ProjectsSortBy, + sort_direction: SortDirection, + selected_project_types: Optional[Set[ProjectType]] = None, + title: Optional[str] = None, +) -> FundingProjectPage: + return await projects_search_client.search_projects( + page=page, + size=size, + selected_project_types=selected_project_types, + title=title, + sort_by=sort_by, + sort_direction=sort_direction, + ) + + async def search_bund_projects( bund_search_client: BundProjectsSearchClient, institutions_search_client: InstitutionsSearchClient, @@ -335,20 +358,20 @@ async def get_single_dfg_project( project_id: str, ) -> DfgProjectDetails: logger.debug(f"Fetching single DFG project for id={project_id}") - + project = await dfg_search_client.get_dfg_project_by_id(project_id) if not project: raise NotFoundException(f"DFG project with id {project_id} not found") return project + async def get_single_bund_project( bund_search_client: BundProjectsSearchClient, project_id: str, ) -> BundProjectDetails: logger.debug(f"Fetching single BUND project for id={project_id}") - + project = await bund_search_client.get_bund_project_by_id(project_id) if not project: raise NotFoundException(f"BUND project with id {project_id} not found") return project - diff --git a/ude_person.http b/ude_person.http index 99c246b4..35ed2607 100644 --- a/ude_person.http +++ b/ude_person.http @@ -22,6 +22,11 @@ GET https://inse.nes.uni-due.de/elastic/cordis_eu_*_organizations/_mapping Authorization: ApiKey bG1NSWc1NEJPZ3FnTGZCZXRSSEg6VnJXRFd5SnpSTTNWc1VPT01FMEhMZw== Content-Type: application/json +### +GET https://inse.nes.uni-due.de/elastic/cordis_eu_*_projects/_mapping +Authorization: ApiKey bG1NSWc1NEJPZ3FnTGZCZXRSSEg6VnJXRFd5SnpSTTNWc1VPT01FMEhMZw== +Content-Type: application/json + ### GET https://inse.nes.uni-due.de/elastic/cordis_eu_*_projects/_search Authorization: ApiKey bG1NSWc1NEJPZ3FnTGZCZXRSSEg6VnJXRFd5SnpSTTNWc1VPT01FMEhMZw== @@ -514,6 +519,37 @@ Content-Type: application/json # } # } +### +GET https://inse.nes.uni-due.de/elastic/projects_dfg_all/_search +Authorization: ApiKey bG1NSWc1NEJPZ3FnTGZCZXRSSEg6VnJXRFd5SnpSTTNWc1VPT01FMEhMZw== +Content-Type: application/json + +{ + "query": { + "bool": { + "should": [ + { + "wildcard": { + "title.keyword": { + "value": "*generic*", + "case_insensitive": true + } + } + }, + { + "wildcard": { + "Thema.keyword": { + "value": "*generic*", + "case_insensitive": true + } + } + } + ] + } + } +} + + ### GET https://inse.nes.uni-due.de/elastic/projects_dfg_all/_mapping Authorization: ApiKey bG1NSWc1NEJPZ3FnTGZCZXRSSEg6VnJXRFd5SnpSTTNWc1VPT01FMEhMZw== diff --git a/webapp/src/app/api/.openapi-generator/FILES b/webapp/src/app/api/.openapi-generator/FILES index a111c691..a8e4f29f 100644 --- a/webapp/src/app/api/.openapi-generator/FILES +++ b/webapp/src/app/api/.openapi-generator/FILES @@ -63,6 +63,8 @@ model/filterInformation.ts model/filterProperties.ts model/funderByAuthor.ts model/fundersByAuthorResponse.ts +model/fundingProject.ts +model/fundingProjectPage.ts model/fwci.ts model/groupByResult.ts model/hTTPValidationError.ts diff --git a/webapp/src/app/api/api/projects.service.ts b/webapp/src/app/api/api/projects.service.ts index 104e62a5..584633f1 100644 --- a/webapp/src/app/api/api/projects.service.ts +++ b/webapp/src/app/api/api/projects.service.ts @@ -27,11 +27,19 @@ import { DfgProjectDetails } from '../model/dfgProjectDetails'; // @ts-ignore import { DfgProjectPage } from '../model/dfgProjectPage'; // @ts-ignore +import { FundingProjectPage } from '../model/fundingProjectPage'; +// @ts-ignore import { HTTPValidationError } from '../model/hTTPValidationError'; // @ts-ignore import { InstitutionFunderSummary } from '../model/institutionFunderSummary'; // @ts-ignore +import { ProjectType } from '../model/projectType'; +// @ts-ignore import { ProjectsFilteringProperties } from '../model/projectsFilteringProperties'; +// @ts-ignore +import { ProjectsSortBy } from '../model/projectsSortBy'; +// @ts-ignore +import { SortDirection } from '../model/sortDirection'; // @ts-ignore import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; @@ -491,4 +499,81 @@ export class ProjectsService extends BaseService { ); } + /** + * Search projects across all funders. + * Returns a page of projects across all funders based on the provided pagination parameters and optional institution filter. + * @endpoint get /api/projects/search + * @param page The page number. + * @param size The page size. + * @param selectedProjectTypes The set of project types to filter by (e.g., \'bund\', \'eu\', \'dfg\'). If not provided, projects of all types will be included. + * @param title The title to filter by. + * @param sortBy The field to sort by. + * @param sortDirection The sort direction (asc or desc). + * @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 searchProjects(page?: number, size?: number, selectedProjectTypes?: Set, title?: string, sortBy?: ProjectsSortBy, sortDirection?: SortDirection, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; + public searchProjects(page?: number, size?: number, selectedProjectTypes?: Set, title?: string, sortBy?: ProjectsSortBy, sortDirection?: SortDirection, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public searchProjects(page?: number, size?: number, selectedProjectTypes?: Set, title?: string, sortBy?: ProjectsSortBy, sortDirection?: SortDirection, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public searchProjects(page?: number, size?: number, selectedProjectTypes?: Set, title?: string, sortBy?: ProjectsSortBy, sortDirection?: SortDirection, 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, + page, 'page'); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + size, 'size'); + if (selectedProjectTypes) { + selectedProjectTypes.forEach((element) => { + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + element, 'selected_project_types'); + }) + } + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + title, 'title'); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + sortBy, 'sort_by'); + localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, + sortDirection, 'sort_direction'); + + 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/projects/search`; + 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/model/fundingProject.ts b/webapp/src/app/api/model/fundingProject.ts new file mode 100644 index 00000000..d8645a05 --- /dev/null +++ b/webapp/src/app/api/model/fundingProject.ts @@ -0,0 +1,30 @@ +/** + * 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. + */ +import { ProjectType } from './projectType'; + + +export interface FundingProject { + /** + * The type of the project. + */ + type: ProjectType; + /** + * The unique identifier of the project. + */ + id: string; + title?: string | null; + start_date?: string | null; + end_date?: string | null; + funding_amount?: number | null; +} +export namespace FundingProject { +} + + diff --git a/webapp/src/app/api/model/fundingProjectPage.ts b/webapp/src/app/api/model/fundingProjectPage.ts new file mode 100644 index 00000000..db43c9c4 --- /dev/null +++ b/webapp/src/app/api/model/fundingProjectPage.ts @@ -0,0 +1,31 @@ +/** + * 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. + */ +import { FundingProject } from './fundingProject'; + + +export interface FundingProjectPage { + /** + * The current page number. + */ + page?: number; + /** + * The requested page size. + */ + size?: number; + /** + * The total number of items. + */ + total?: number; + /** + * The funding projects on this page. + */ + elements?: Array; +} + diff --git a/webapp/src/app/api/model/models.ts b/webapp/src/app/api/model/models.ts index f709df3e..60006d17 100644 --- a/webapp/src/app/api/model/models.ts +++ b/webapp/src/app/api/model/models.ts @@ -42,6 +42,8 @@ export * from './filterInformation'; export * from './filterProperties'; export * from './funderByAuthor'; export * from './fundersByAuthorResponse'; +export * from './fundingProject'; +export * from './fundingProjectPage'; export * from './fwci'; export * from './groupByResult'; export * from './hTTPValidationError'; diff --git a/webapp/src/app/app.routes.ts b/webapp/src/app/app.routes.ts index 1dabd44b..32b49d9d 100644 --- a/webapp/src/app/app.routes.ts +++ b/webapp/src/app/app.routes.ts @@ -13,6 +13,7 @@ import { dfgSingleProjectResolver } from './resolvers/dfg-single-project-resolve import { bundSingleProjectResolver } from './resolvers/bund-single-project-resolver'; import { cordisEuProjectPageResolver } from './resolvers/cordis-eu-project-page.resolver'; import { cordisEuProjectsFundingResolver } from './resolvers/cordis-eu-projects-funding.resolver'; +import { fundingProjectPageResolver } from './resolvers/funding-project-page.resolver'; export const routes: Routes = [ { @@ -101,7 +102,7 @@ export const routes: Routes = [ dfgSingleProject: dfgSingleProjectResolver, }, }, - { + { path: 'projects/bund/:id', canActivate: [userGuard], pathMatch: 'full', @@ -278,6 +279,31 @@ export const routes: Routes = [ }, ], }, + { + path: 'projects', + canActivate: [userGuard], + loadComponent: () => + import('./modules/projects/projects.component').then( + (mod) => mod.ProjectsComponent, + ), + resolve: { + fundingProjectPage: fundingProjectPageResolver, + }, + runGuardsAndResolvers: (from, to) => { + const keys = [ + 'search', + 'page', + 'size', + 'selected_project_types', + 'sort_by', + 'sorting_order', + ]; + + return keys.some( + (key) => from.queryParamMap.get(key) !== to.queryParamMap.get(key), + ); + }, + }, { path: 'error', loadComponent: () => diff --git a/webapp/src/app/modules/projects/projects.component.html b/webapp/src/app/modules/projects/projects.component.html new file mode 100644 index 00000000..8d2a3884 --- /dev/null +++ b/webapp/src/app/modules/projects/projects.component.html @@ -0,0 +1,112 @@ +
+

Passende Projekte finden

+ + + +
+ + Suche nach Namen + + search + + + +
+ + EU + BUND + DFG + + +
+ + + +
+
+
+ + + + @let fundingProjectPageValue = fundingProjectPage(); + + @if ( + fundingProjectPageValue.elements && + fundingProjectPageValue.elements.length > 0 + ) { +
+ @for (fundingProject of fundingProjectPageValue.elements; track $index) { + + + {{ fundingProject.title }} + {{ + fundingProject.type | uppercase + }} + + + + + + + + + + + + info + Übersicht + + + + + } +
+ } @else { +
+

Keine passenden Projekte gefunden.

+
+ } + + + + + +
diff --git a/webapp/src/app/modules/projects/projects.component.scss b/webapp/src/app/modules/projects/projects.component.scss new file mode 100644 index 00000000..e3d0edc0 --- /dev/null +++ b/webapp/src/app/modules/projects/projects.component.scss @@ -0,0 +1,99 @@ +.content { + display: flex; + flex-direction: column; + gap: 1rem; + padding: 1rem; +} + +.sorting { + display: flex; + justify-content: flex-end; + gap: 0.5rem; +} + +.sorting select { + padding: 0.75rem; + border: 1px solid var(--sg-border); + border-radius: var(--sg-radius-sm); + font-size: 1rem; +} + +.sorting select:hover { + cursor: pointer; +} + +.cards { + display: grid; + gap: 1.5rem; + grid-template-columns: repeat(4, 1fr); + padding: 0 1rem; +} + +@media (max-width: 900px) { + .cards { + grid-template-columns: repeat(2, 1fr); + } +} + +@media (max-width: 600px) { + .cards { + grid-template-columns: 1fr; + } +} + +mat-paginator { + background-color: var(--sg-background); +} + +.card { + padding: 0.5rem; + background-color: var(--sg-background); + transition: transform 0.3s ease; + display: flex; + flex-direction: column; + gap: 0.5rem; +} + +.card:hover { + cursor: pointer; + transform: scale(1.05); +} + +.card-content { + display: flex; + flex-direction: column; + justify-content: flex-end; + gap: 0.5rem; + flex: 1; +} + +.card-metadata { + display: flex; + flex-direction: column; + gap: 0.2rem; + font-size: 0.9rem; + color: var(--sg-text-secondary); +} + +mat-card-actions { + padding-top: 0.5rem; + display: flex; + gap: 0.5rem; +} + +mat-card-actions a { + width: 100%; + text-decoration: none; + border: 1px solid var(--sg-border); + border-radius: var(--sg-radius-sm); +} + +.no-results { + text-align: center; + padding: 2rem; + color: var(--sg-text-secondary); +} + +.mat-mdc-standard-chip { + border-radius: var(--sg-radius-sm); +} diff --git a/webapp/src/app/modules/projects/projects.component.ts b/webapp/src/app/modules/projects/projects.component.ts new file mode 100644 index 00000000..3e68025a --- /dev/null +++ b/webapp/src/app/modules/projects/projects.component.ts @@ -0,0 +1,128 @@ +import { Component, effect, input, signal } from '@angular/core'; +import { FundingProject, FundingProjectPage, ProjectType } from '../../api'; +import { MatDividerModule } from '@angular/material/divider'; +import { MatFormFieldModule } from '@angular/material/form-field'; +import { DebounceDirective } from '../../directives/debounce.directive'; +import { MatIconModule } from '@angular/material/icon'; +import { MatCardModule } from '@angular/material/card'; +import { ActivatedRoute, Router, RouterModule } from '@angular/router'; +import { MatPaginator, PageEvent } from '@angular/material/paginator'; +import { takeUntilDestroyed } from '@angular/core/rxjs-interop'; +import { MatInputModule } from '@angular/material/input'; +import { MatButtonModule } from '@angular/material/button'; +import { DatePipe, UpperCasePipe } from '@angular/common'; +import { MatChipListboxChange, MatChipsModule } from '@angular/material/chips'; + +@Component({ + selector: 'app-projects', + imports: [ + MatDividerModule, + MatFormFieldModule, + DebounceDirective, + MatIconModule, + MatCardModule, + RouterModule, + MatPaginator, + MatInputModule, + MatButtonModule, + UpperCasePipe, + DatePipe, + MatChipsModule, + ], + templateUrl: './projects.component.html', + styleUrl: './projects.component.scss', +}) +export class ProjectsComponent { + fundingProjectPage = input.required(); + + urlSearchTerm = signal(''); + urlSortBy = signal('relevance'); + urlSortingOrder = signal('desc'); + urlChips = signal(['eu', 'bund', 'dfg']); + + constructor( + private readonly activatedRoute: ActivatedRoute, + private readonly router: Router, + ) { + this.activatedRoute.queryParams + .pipe(takeUntilDestroyed()) + .subscribe((params) => { + this.urlSearchTerm.set(params['search'] || ''); + this.urlSortBy.set(params['sort_by'] || 'relevance'); + this.urlSortingOrder.set(params['sorting_order'] || 'desc'); + this.urlChips.set( + (params['selected_project_types'] || 'eu,bund,dfg').split(','), + ); + }); + + effect(() => { + const searchTerm = this.urlSearchTerm(); + this.router.navigate([], { + queryParams: { search: searchTerm }, + queryParamsHandling: 'merge', + }); + }); + } + + handleSearchTermChange(newTerm: string): void { + this.router.navigate([], { + queryParams: { search: newTerm }, + queryParamsHandling: 'merge', + }); + } + + clearSearchTerm(): void { + this.router.navigate([], { + queryParams: { search: null }, + queryParamsHandling: 'merge', + }); + } + + handlePageChange(event: PageEvent): void { + this.router.navigate([], { + queryParams: { page: event.pageIndex, size: event.pageSize }, + queryParamsHandling: 'merge', + }); + } + + handleSortFieldChange(event: Event): void { + const selectElement = event.target as HTMLSelectElement; + const sortField = selectElement.value; + this.router.navigate([], { + queryParams: { sort_by: sortField }, + queryParamsHandling: 'merge', + }); + } + + handleSortOrderChange(event: Event): void { + const selectElement = event.target as HTMLSelectElement; + const sortOrder = selectElement.value; + this.router.navigate([], { + queryParams: { sorting_order: sortOrder }, + queryParamsHandling: 'merge', + }); + } + + handleChipBoxChange(change: MatChipListboxChange): void { + const selectedValues = change.value as string[]; + + this.router.navigate([], { + queryParams: { + selected_project_types: selectedValues.length + ? selectedValues.join(',') + : null, + }, + queryParamsHandling: 'merge', + }); + } + + getDetaiLink(fundingProject: FundingProject): string | null { + if (fundingProject.type === 'bund') { + return '/projects/bund/' + fundingProject.id; + } else if (fundingProject.type === 'dfg') { + return '/projects/dfg/' + fundingProject.id; + } else { + return null; + } + } +} diff --git a/webapp/src/app/resolvers/funding-project-page.resolver.ts b/webapp/src/app/resolvers/funding-project-page.resolver.ts new file mode 100644 index 00000000..496e7958 --- /dev/null +++ b/webapp/src/app/resolvers/funding-project-page.resolver.ts @@ -0,0 +1,37 @@ +import { ResolveFn } from '@angular/router'; +import { + FundingProjectPage, + ProjectsService, + ProjectsSortBy, + ProjectType, + SortDirection, +} from '../api'; +import { inject } from '@angular/core'; + +export const fundingProjectPageResolver: ResolveFn = ( + route, + state, +) => { + const page = Number(route.queryParamMap.get('page') || '0'); + const size = Number(route.queryParamMap.get('size') || '10'); + const sortBy = (route.queryParamMap.get('sort_by') ?? + 'title') as ProjectsSortBy; + const sortOrder = (route.queryParamMap.get('sorting_order') ?? + 'asc') as SortDirection; + const title = route.queryParamMap.get('search') ?? undefined; + const selectedProjectTypes = route.queryParamMap.get('selected_project_types') + ? new Set( + route.queryParamMap + .get('selected_project_types')! + .split(',') as ProjectType[], + ) + : undefined; + return inject(ProjectsService).searchProjects( + page, + size, + selectedProjectTypes, + title, + sortBy, + sortOrder, + ); +}; diff --git a/webapp/src/app/shared/ui/app-menu/app-menu.component.ts b/webapp/src/app/shared/ui/app-menu/app-menu.component.ts index fb06fc05..8072d88f 100644 --- a/webapp/src/app/shared/ui/app-menu/app-menu.component.ts +++ b/webapp/src/app/shared/ui/app-menu/app-menu.component.ts @@ -59,6 +59,20 @@ export class AppMenuComponent { sorting_order: 'desc', }, }, + { + label: 'Projekte', + icon: 'work', + route: '/projects', + disabled: false, + queryParams: { + search: '', + page: 0, + size: 10, + selected_project_types: 'eu,bund,dfg', + sort_by: 'title', + sorting_order: 'asc', + }, + }, ]; constructor( From c211e8d210d7ee209a5071461b52e151250e86ec Mon Sep 17 00:00:00 2001 From: taguesokoudjou Date: Fri, 19 Jun 2026 17:02:31 +0200 Subject: [PATCH 38/41] fix: repair patent ES search and add name matching for inventor lookup --- .../inse/patents/elastic_search_client.py | 126 ++++----- service/src/main/inse/patents/logic.py | 33 ++- .../src/main/inse/patents/name_matching.py | 242 ++++++++++++++++++ .../patents/test_elastic_search_client.py | 49 ++++ .../main/inse/patents/test_name_matching.py | 123 +++++++++ 5 files changed, 503 insertions(+), 70 deletions(-) create mode 100644 service/src/main/inse/patents/name_matching.py create mode 100644 service/src/main/inse/patents/test_elastic_search_client.py create mode 100644 service/src/main/inse/patents/test_name_matching.py diff --git a/service/src/main/inse/patents/elastic_search_client.py b/service/src/main/inse/patents/elastic_search_client.py index ead988af..64d5865e 100644 --- a/service/src/main/inse/patents/elastic_search_client.py +++ b/service/src/main/inse/patents/elastic_search_client.py @@ -8,9 +8,25 @@ from typing import Any import httpx from .. import config +from .name_matching import search_name_variants EPO_INDEX = "epo_index_1.0" -USPTO_INDEX = "uspto_patents_2.0" +USPTO_INDEX = "uspto_patents_3.0" + +DEFAULT_SEARCH_SIZE = 100 + + +def _match_name_field(field: str, name: str) -> dict[str, Any]: + """Match a name field, including transliterated variants (Müller/Mueller).""" + variants = search_name_variants(name) + if len(variants) <= 1: + return {"match": {field: variants[0] if variants else name}} + return { + "bool": { + "should": [{"match": {field: variant}} for variant in variants], + "minimum_should_match": 1, + } + } class MissingApiKeyError(Exception): @@ -38,46 +54,43 @@ class PatentSearchClient: "Content-Type": "application/json", } - def epo_query_by_inventor(self, last_name: str, first_name: str | None = None, size: int = 100) -> dict[str, Any]: - """Search EPO index by inventor first AND last name. - EPO stores full name e.g. 'HANDTE, Marcus' in inventors_name_text. - """ + def epo_query_by_inventor( + self, + last_name: str, + first_name: str | None = None, + size: int = DEFAULT_SEARCH_SIZE, + ) -> dict[str, Any]: + """Search EPO index: first AND last name in the SAME inventor entry.""" if first_name: query = { - "bool": { - "must": [ - { - "match": { - "inventors_name_text": { - "query": last_name, - "operator": "and", - } - } - }, - { - "match": { - "inventors_name_text": { - "query": first_name, - "operator": "and", - } - } - }, - ] + "nested": { + "path": "inventors_name_nested", + "query": { + "bool": { + "must": [ + _match_name_field("inventors_name_nested.inventor", last_name), + _match_name_field("inventors_name_nested.inventor", first_name), + ] + } + }, } } else: query = { - "match": { - "inventors_name_text": { - "query": last_name, - "operator": "and", - } + "nested": { + "path": "inventors_name_nested", + "query": _match_name_field("inventors_name_nested.inventor", last_name), } } return { "size": size, "track_total_hits": True, + "sort": [ + {"_score": {"order": "desc"}}, + {"date_publication": {"order": "desc", "missing": "_last"}}, + "_doc", + ], "_source": [ "doc_number", "country", @@ -95,46 +108,43 @@ class PatentSearchClient: "query": query, } - def uspto_query_by_inventor(self, last_name: str, first_name: str | None = None, size: int = 100) -> dict[str, Any]: - """Search USPTO index by inventor first AND last name. - After Arman's fix, USPTO also stores first name in inventors_names. - """ + def uspto_query_by_inventor( + self, + last_name: str, + first_name: str | None = None, + size: int = DEFAULT_SEARCH_SIZE, + ) -> dict[str, Any]: + """Search USPTO index: first AND last name in the SAME inventor entry.""" if first_name: query = { - "bool": { - "must": [ - { - "match": { - "inventors_names_text": { - "query": last_name, - "operator": "and", - } - } - }, - { - "match": { - "inventors_names_text": { - "query": first_name, - "operator": "and", - } - } - }, - ] + "nested": { + "path": "inventors", + "query": { + "bool": { + "must": [ + _match_name_field("inventors.name", last_name), + _match_name_field("inventors.name", first_name), + ] + } + }, } } else: query = { - "match": { - "inventors_names_text": { - "query": last_name, - "operator": "and", - } + "nested": { + "path": "inventors", + "query": _match_name_field("inventors.name", last_name), } } return { "size": size, "track_total_hits": True, + "sort": [ + {"_score": {"order": "desc"}}, + {"publication_date": {"order": "desc", "missing": "_last"}}, + "_doc", + ], "_source": [ "publication_number", "country", @@ -169,4 +179,4 @@ class PatentSearchClient: json=payload, ) response.raise_for_status() - return response.json() \ No newline at end of file + return response.json() diff --git a/service/src/main/inse/patents/logic.py b/service/src/main/inse/patents/logic.py index ff30648c..a68f6af8 100644 --- a/service/src/main/inse/patents/logic.py +++ b/service/src/main/inse/patents/logic.py @@ -4,7 +4,6 @@ Business logic for patent matching by author name. """ import logging -from collections import defaultdict import httpx from fastapi import HTTPException @@ -16,6 +15,7 @@ from ..models.author import Author from . import model from .elastic_search_client import MissingApiKeyError from .elastic_search_client import PatentSearchClient +from .name_matching import name_matches logger = logging.getLogger(__name__) @@ -60,17 +60,14 @@ async def get_patents_by_author_id( all_patents = _parse_epo_hits(epo_data) + _parse_uspto_hits(uspto_data) - # Group by patent_id and keep one version per patent - grouped: dict[str, model.PatentEntry] = {} - for patent in all_patents: - if patent.patent_id not in grouped: - grouped[patent.patent_id] = patent + if first_name and last_name: + all_patents = _filter_patents_by_name(all_patents, first_name, last_name) return model.PatentsByAuthorResponse( author_id=author_id, author_name=author_name, - patent_count=len(grouped), - patents=list(grouped.values()), + patent_count=len(all_patents), + patents=all_patents, ) @@ -95,8 +92,8 @@ def _parse_epo_hits(data: dict) -> list[model.PatentEntry]: source="EPO", title=src.get("title_en") or src.get("title_de"), abstract=src.get("abstract"), - publication_date=src.get("date_publication"), - publication_year=src.get("date_publication_year"), + publication_date=str(src.get("date_publication")) if src.get("date_publication") else None, + publication_year=str(src.get("date_publication_year")) if src.get("date_publication_year") else None, inventors=inventors if isinstance(inventors, list) else [inventors], assignees=applicants if isinstance(applicants, list) else [applicants], ipc=ipc if isinstance(ipc, list) else [ipc], @@ -117,8 +114,8 @@ def _parse_uspto_hits(data: dict) -> list[model.PatentEntry]: source="USPTO", title=src.get("title"), abstract=src.get("abstract"), - publication_date=src.get("publication_date"), - publication_year=src.get("publication_year"), + publication_date=str(src.get("publication_date")) if src.get("publication_date") else None, + publication_year=str(src.get("publication_year")) if src.get("publication_year") else None, inventors=inventors if isinstance(inventors, list) else [inventors], assignees=assignees if isinstance(assignees, list) else [assignees], ipc=ipc if isinstance(ipc, list) else [ipc], @@ -127,6 +124,18 @@ def _parse_uspto_hits(data: dict) -> list[model.PatentEntry]: return patents +def _filter_patents_by_name( + patents: list[model.PatentEntry], + first_name: str, + last_name: str, +) -> list[model.PatentEntry]: + """Keep patents where at least one inventor matches the author name.""" + return [ + patent for patent in patents + if any(name_matches(inventor, first_name, last_name) for inventor in patent.inventors) + ] + + def _get_author(author_id: str) -> Author | None: short_id = author_id.replace("https://openalex.org/", "") result = person_logic.search_persons(author_id=short_id) diff --git a/service/src/main/inse/patents/name_matching.py b/service/src/main/inse/patents/name_matching.py new file mode 100644 index 00000000..659b295c --- /dev/null +++ b/service/src/main/inse/patents/name_matching.py @@ -0,0 +1,242 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- +""" + Name normalization and matching for patent inventor lookup. + + Handles umlauts, diacritics, and common Latin transliterations so that + e.g. 'Müller' matches 'Mueller' and 'Muller'. +""" +import re +import unicodedata + +# Characters that NFKD does not map to ASCII-friendly forms. +_CHAR_REPLACEMENTS: dict[str, str] = { + "ß": "ss", + "ẞ": "ss", + "æ": "ae", + "Æ": "ae", + "œ": "oe", + "Œ": "oe", + "ø": "o", + "Ø": "o", + "đ": "d", + "Đ": "d", + "ð": "d", + "Ð": "d", + "þ": "th", + "Þ": "th", + "ł": "l", + "Ł": "l", + "ı": "i", + "ſ": "s", +} + +# German patent transliterations: ae/oe/ue often stand in for ä/ö/ü. +_DIGRAPH_COLLAPSES: tuple[tuple[str, str], ...] = ( + ("ae", "a"), + ("oe", "o"), + ("ue", "u"), +) + +# Common ASCII spellings in patent records for umlaut-derived vowels. +_PATENT_VOWEL_EXPANSIONS: tuple[tuple[str, str], ...] = ( + (r"u([lmnrt])", r"ue\1"), + (r"o([lmnrt])", r"oe\1"), + (r"a([lmnrt])", r"ae\1"), +) + + +def normalize_name_part(value: str | None) -> str: + """ + Normalize a single name token for comparison. + + Steps: transliteration map -> NFKD -> strip diacritics -> lowercase + -> remove apostrophes/punctuation -> collapse whitespace. + """ + if not value: + return "" + + text = value.strip() + for src, dst in _CHAR_REPLACEMENTS.items(): + text = text.replace(src, dst) + + text = unicodedata.normalize("NFKD", text) + text = "".join(c for c in text if not unicodedata.combining(c)) + text = text.lower() + text = re.sub(r"[''`´]", "", text) + text = re.sub(r"[^\w\s-]", "", text) + text = re.sub(r"\s+", " ", text).strip() + return text + + +def name_token_variants(value: str | None) -> set[str]: + """ + Return equivalent forms of a name token. + + Includes the normalized base plus German digraph collapses + (Mueller -> muller) and hyphen Relaxed forms (Jean-Pierre -> jean pierre). + """ + base = normalize_name_part(value) + if not base: + return set() + + variants = {base} + + for src, dst in _DIGRAPH_COLLAPSES: + if src in base: + variants.add(base.replace(src, dst)) + + if "-" in base: + variants.add(base.replace("-", "")) + variants.add(base.replace("-", " ")) + + return {v for v in variants if v} + + +def _patent_transliteration_expansions(normalized: str) -> set[str]: + """ + ASCII spellings used in patent records (e.g. Müller indexed as Mueller). + + Used for Elasticsearch recall only; post-filter applies stricter matching. + """ + expanded = {normalized} + for pattern, repl in _PATENT_VOWEL_EXPANSIONS: + if re.search(pattern, normalized): + expanded.add(re.sub(pattern, repl, normalized)) + return expanded + + +def tokens_equal( + left: str | None, + right: str | None, + *, + allow_initial: bool = True, +) -> bool: + """True when two name tokens are equivalent after normalization.""" + left_variants = name_token_variants(left) + right_variants = name_token_variants(right) + if not left_variants or not right_variants: + return False + if left_variants & right_variants: + return True + + if not allow_initial: + return False + + return _initial_tokens_match(left, right) + + +def _initial_letter(token: str | None) -> str | None: + normalized = normalize_name_part(token) + if len(normalized) == 1 and normalized.isalpha(): + return normalized + return None + + +def _initial_tokens_match(left: str | None, right: str | None) -> bool: + """True when one token is a single-letter initial matching the other token.""" + left_initial = _initial_letter(left) + right_initial = _initial_letter(right) + left_full = normalize_name_part(left) + right_full = normalize_name_part(right) + + if left_initial and right_full and len(right_full) > 1: + return right_full.startswith(left_initial) + if right_initial and left_full and len(left_full) > 1: + return left_full.startswith(right_initial) + if left_initial and right_initial: + return left_initial == right_initial + return False + + +def _inventor_first_token(inventor_name: str) -> str: + if "," in inventor_name: + _, first_part = [p.strip() for p in inventor_name.split(",", 1)] + return first_part.split()[0] if first_part else "" + parts = inventor_name.split() + return parts[0] if parts else "" + + +def first_name_match_kind( + inventor_name: str, + first_name: str, + last_name: str, +) -> str: + """ + Match quality for the inventor first name: 'full', 'initial', or 'none'. + """ + if not name_matches(inventor_name, first_name, last_name): + return "none" + + inventor_first = _inventor_first_token(inventor_name) + if tokens_equal(inventor_first, first_name, allow_initial=False): + return "full" + return "initial" + + +def search_name_variants(value: str | None) -> list[str]: + """ + Distinct search strings for Elasticsearch, preserving original casing + where useful but including normalized and transliterated forms. + """ + if not value or not value.strip(): + return [] + + seen: set[str] = set() + ordered: list[str] = [] + + def _add(candidate: str) -> None: + key = candidate.casefold() + if candidate.strip() and key not in seen: + seen.add(key) + ordered.append(candidate.strip()) + + _add(value.strip()) + + normalized = normalize_name_part(value) + if normalized: + _add(normalized.title()) + + for variant in name_token_variants(value): + _add(variant.title()) + + for variant in _patent_transliteration_expansions(normalized): + _add(variant.title()) + + if normalized and len(normalized) > 1: + _add(normalized[0].upper()) + + return ordered + + +def name_matches(inventor_name: str, first_name: str, last_name: str) -> bool: + """ + True when an inventor entry matches first_name + last_name. + + Supports: + - USPTO: 'Christian Weber', 'Christian Hans Weber' + - EPO: 'Weber, Christian', 'Weber, Christian Hans' + """ + if not inventor_name or not last_name: + return False + + name = inventor_name.strip() + + if "," in name: + last_part, first_part = [p.strip() for p in name.split(",", 1)] + first_token = first_part.split()[0] if first_part else "" + return ( + tokens_equal(last_part, last_name, allow_initial=False) + and bool(first_name) + and tokens_equal(first_token, first_name) + ) + + parts = name.split() + if len(parts) < 2: + return False + + return ( + tokens_equal(parts[-1], last_name, allow_initial=False) + and bool(first_name) + and tokens_equal(parts[0], first_name) + ) diff --git a/service/src/main/inse/patents/test_elastic_search_client.py b/service/src/main/inse/patents/test_elastic_search_client.py new file mode 100644 index 00000000..08729ea6 --- /dev/null +++ b/service/src/main/inse/patents/test_elastic_search_client.py @@ -0,0 +1,49 @@ +import httpx +import pytest + +from inse.patents.elastic_search_client import ( + DEFAULT_SEARCH_SIZE, + EPO_INDEX, + PatentSearchClient, + USPTO_INDEX, +) + + +@pytest.fixture +def anyio_backend(): + return "asyncio" + + +def test_epo_query_uses_nested_search_and_name_variants(): + client = PatentSearchClient(api_key="test-key") + payload = client.epo_query_by_inventor("Müller", "Christian") + + assert payload["size"] == DEFAULT_SEARCH_SIZE + assert payload["sort"][0] == {"_score": {"order": "desc"}} + nested = payload["query"]["nested"] + assert nested["path"] == "inventors_name_nested" + must = nested["query"]["bool"]["must"] + assert len(must) == 2 + assert "should" in must[0]["bool"] + + +def test_uspto_index_is_3_0(): + assert USPTO_INDEX == "uspto_patents_3.0" + assert EPO_INDEX == "epo_index_1.0" + + +@pytest.mark.anyio +async def test_search_epo_posts_to_correct_index(): + requests: list[str] = [] + + def handler(request: httpx.Request) -> httpx.Response: + requests.append(request.url.path) + return httpx.Response(200, json={"hits": {"hits": []}}) + + transport = httpx.MockTransport(handler) + client = PatentSearchClient(api_key="test-key", transport=transport) + + await client.search_epo(client.epo_query_by_inventor("Weber", "Christian")) + + assert len(requests) == 1 + assert requests[0].endswith(f"/{EPO_INDEX}/_search") diff --git a/service/src/main/inse/patents/test_name_matching.py b/service/src/main/inse/patents/test_name_matching.py new file mode 100644 index 00000000..cc93465d --- /dev/null +++ b/service/src/main/inse/patents/test_name_matching.py @@ -0,0 +1,123 @@ +import pytest + +from inse.patents.name_matching import ( + first_name_match_kind, + name_matches, + name_token_variants, + normalize_name_part, + search_name_variants, + tokens_equal, +) + + +@pytest.mark.parametrize( + ("left", "right"), + [ + ("Müller", "Mueller"), + ("Müller", "Muller"), + ("Schöning", "Schoening"), + ("François", "Francois"), + ("José", "Jose"), + ("García", "Garcia"), + ("Bräun", "Braun"), + ("Straß", "Strass"), + ("Grøn", "Gron"), + ("Małgorzata", "Malgorzata"), + ("Øystein", "Oystein"), + ], +) +def test_tokens_equal_transliteration(left: str, right: str) -> None: + assert tokens_equal(left, right) + + +@pytest.mark.parametrize( + ("left", "right"), + [ + ("Christian", "Marc"), + ("Weber", "Wagner"), + ("Müller", "Meier"), + ], +) +def test_tokens_equal_rejects_different_names(left: str, right: str) -> None: + assert not tokens_equal(left, right) + + +def test_hyphenated_first_name() -> None: + assert tokens_equal("Jean-Pierre", "Jean Pierre") + assert tokens_equal("Jean-Pierre", "JeanPierre") + + +@pytest.mark.parametrize( + ("inventor", "first", "last", "expected"), + [ + ("Christian Weber", "Christian", "Weber", True), + ("Weber, Christian", "Christian", "Weber", True), + ("Marc Christian Weber", "Christian", "Weber", False), + ("Müller, Hans", "Hans", "Müller", True), + ("Mueller, Hans", "Hans", "Müller", True), + ("Hans Mueller", "Hans", "Müller", True), + ("Weber, Christian Hans", "Christian", "Weber", True), + ("Schoening, Klaus", "Klaus", "Schöning", True), + ], +) +def test_name_matches(inventor: str, first: str, last: str, expected: bool) -> None: + assert name_matches(inventor, first, last) is expected + + +def test_normalize_name_part_strips_diacritics() -> None: + assert normalize_name_part("François") == "francois" + assert normalize_name_part(" O'Brien ") == "obrien" + + +def test_search_name_variants_includes_transliterations() -> None: + variants = search_name_variants("Müller") + folded = {v.casefold() for v in variants} + assert "müller" in folded or "Müller".casefold() in folded + assert "mueller" in folded + assert "muller" in folded + + +def test_name_token_variants_mueller() -> None: + variants = name_token_variants("Mueller") + assert "mueller" in variants + assert "muller" in variants + + +@pytest.mark.parametrize( + ("left", "right"), + [ + ("C", "Christian"), + ("C.", "Christian"), + ("Christian", "C"), + ], +) +def test_tokens_equal_initials(left: str, right: str) -> None: + assert tokens_equal(left, right) + + +def test_tokens_equal_initials_not_for_last_names_by_default() -> None: + assert not tokens_equal("W", "Weber", allow_initial=False) + + +@pytest.mark.parametrize( + ("inventor", "first", "last", "expected"), + [ + ("C. Weber", "Christian", "Weber", True), + ("Weber, C.", "Christian", "Weber", True), + ("Weber, C", "Christian", "Weber", True), + ], +) +def test_name_matches_initials(inventor: str, first: str, last: str, expected: bool) -> None: + assert name_matches(inventor, first, last) is expected + + +def test_first_name_match_kind() -> None: + assert first_name_match_kind("Christian Weber", "Christian", "Weber") == "full" + assert first_name_match_kind("C. Weber", "Christian", "Weber") == "initial" + assert first_name_match_kind("Marc Christian Weber", "Christian", "Weber") == "none" + + +def test_search_name_variants_includes_initial() -> None: + variants = search_name_variants("Christian") + assert "C" in variants + From fc9c18f9655d0610982cc9da9f8832c8aa2ecbbb Mon Sep 17 00:00:00 2001 From: Khuder Khalti Date: Fri, 19 Jun 2026 22:05:47 +0200 Subject: [PATCH 39/41] feat(patents): add interactive detail view with source card navigation --- .../person-patents.component.html | 102 +++++++++-------- .../person-patents.component.scss | 107 ++++++++++-------- .../person-patents.component.ts | 15 ++- 3 files changed, 124 insertions(+), 100 deletions(-) diff --git a/webapp/src/app/modules/person-patents/person-patents.component.html b/webapp/src/app/modules/person-patents/person-patents.component.html index 03370197..559aa284 100644 --- a/webapp/src/app/modules/person-patents/person-patents.component.html +++ b/webapp/src/app/modules/person-patents/person-patents.component.html @@ -6,7 +6,6 @@

Keine Patente gefunden.

} @else {
-

{{ filteredPatents.length }} @@ -22,9 +21,58 @@

-
+ @if (showDetail && selectedPatent) { + + } -
+
+ @if (showDetail && selectedPatent) { +
+

{{ selectedPatent.title ?? selectedPatent.patent_id }}

+ + @if (selectedPatent.abstract) { +
+

Abstract

+

{{ selectedPatent.abstract }}

+
+ } + +
+

Erfinder

+
    + @for (inventor of selectedPatent.inventors; track inventor) { +
  • {{ inventor }}
  • + } +
+
+ + @if (selectedPatent.assignees.length > 0) { +
+

Anmelder

+
    + @for (assignee of selectedPatent.assignees; track assignee) { +
  • {{ assignee }}
  • + } +
+
+ } + + @if (selectedPatent.ipc.length > 0) { +
+

Klassifikation (IPC)

+
    + @for (ipc of selectedPatent.ipc; track ipc) { +
  • {{ ipc }}
  • + } +
+
+ } +
+ } + +
} diff --git a/webapp/src/app/modules/person-patents/person-patents.component.scss b/webapp/src/app/modules/person-patents/person-patents.component.scss index 9f511648..df70826d 100644 --- a/webapp/src/app/modules/person-patents/person-patents.component.scss +++ b/webapp/src/app/modules/person-patents/person-patents.component.scss @@ -31,40 +31,6 @@ } } -.filter-bar { - display: inline-flex; - align-items: center; - gap: 6px; - width: fit-content; - padding: 10px 14px; - border-radius: 20px; - background: #f2f2f2; - color: #333; - font-size: 14px; - - span { - color: #555; - } - - button { - border: 0; - background: transparent; - color: #111827; - font: inherit; - cursor: pointer; - outline: none; - - &.active { - font-weight: 600; - color: #0b63ce; - } - - &:hover { - text-decoration: underline; - } - } -} - .sort-control { display: inline-flex; align-items: center; @@ -99,6 +65,10 @@ .patents-list { flex: 1; + &.hidden { + display: none; + } + .patents-list-toolbar { display: flex; align-items: center; @@ -190,27 +160,12 @@ color: #333; line-height: 1.4; } - - h4 { - margin: 16px 0 8px 0; - font-size: 14px; - color: #555; - font-weight: 600; - } - - p { - font-size: 13px; - color: #444; - line-height: 1.6; - margin: 0; - } } .detail-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; - margin-bottom: 16px; .stat { background: white; @@ -237,6 +192,60 @@ } } +.stat--clickable { + cursor: pointer; + transition: border-color 0.15s, background 0.15s; + + &:hover { + border-color: #0b63ce; + background: #f0f6ff; + } +} + +.patent-full-detail { + flex: 1; + border: 1px solid #e0e0e0; + border-radius: 8px; + padding: 20px; + background: #fafafa; + + h3 { + margin: 0 0 16px 0; + font-size: 16px; + color: #333; + line-height: 1.4; + } + + h4 { + margin: 16px 0 8px 0; + font-size: 14px; + color: #555; + font-weight: 600; + } + + p { + font-size: 13px; + color: #444; + line-height: 1.6; + margin: 0; + } +} + +.back-btn { + border: none; + background: none; + color: #333; + cursor: pointer; + font-size: 14px; + font-weight: 400; + padding: 0; + align-self: flex-start; // NEU + + &:hover { + text-decoration: underline; + } +} + .detail-section { margin-top: 12px; padding-top: 12px; diff --git a/webapp/src/app/modules/person-patents/person-patents.component.ts b/webapp/src/app/modules/person-patents/person-patents.component.ts index 507f1e88..4c71be01 100644 --- a/webapp/src/app/modules/person-patents/person-patents.component.ts +++ b/webapp/src/app/modules/person-patents/person-patents.component.ts @@ -21,6 +21,7 @@ export class PersonPatentsComponent implements OnInit { filteredPatents: PatentEntry[] = []; authorName: string | null = null; selectedPatent: PatentEntry | null = null; + showDetail = false; loading = true; error = false; @@ -66,6 +67,7 @@ export class PersonPatentsComponent implements OnInit { this.activeFilter = filter; this.selectedPage = 1; this.selectedPatent = null; + this.showDetail = false; this.applyFilter(); this.updateQueryParams(); } @@ -78,9 +80,14 @@ export class PersonPatentsComponent implements OnInit { selectPatent(patent: PatentEntry): void { this.selectedPatent = patent; + this.showDetail = false; this.updateQueryParams(); } + openDetail(): void { + this.showDetail = true; + } + private applyFilter(): void { let patents = this.patents; @@ -94,13 +101,9 @@ export class PersonPatentsComponent implements OnInit { private sortPatents(patents: PatentEntry[]): PatentEntry[] { return [...patents].sort((a, b) => { if (this.sortMode === 'date') { - return (b.publication_date ?? '').localeCompare( - a.publication_date ?? '', - ); + return (b.publication_date ?? '').localeCompare(a.publication_date ?? ''); } - return (a.title ?? '').localeCompare(b.title ?? '', 'de', { - sensitivity: 'base', - }); + return (a.title ?? '').localeCompare(b.title ?? '', 'de', { sensitivity: 'base' }); }); } From 0cdacf20f75157b531902f37df0cb95d88081fff Mon Sep 17 00:00:00 2001 From: Khuder Khalti Date: Fri, 19 Jun 2026 22:37:51 +0200 Subject: [PATCH 40/41] fix: correct Author import path in patents logic --- service/src/main/inse/patents/logic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service/src/main/inse/patents/logic.py b/service/src/main/inse/patents/logic.py index a68f6af8..7e82cc31 100644 --- a/service/src/main/inse/patents/logic.py +++ b/service/src/main/inse/patents/logic.py @@ -11,7 +11,7 @@ from starlette.status import HTTP_502_BAD_GATEWAY from starlette.status import HTTP_503_SERVICE_UNAVAILABLE from ..persons import logic as person_logic -from ..models.author import Author +from ..models.openalex.author import Author from . import model from .elastic_search_client import MissingApiKeyError from .elastic_search_client import PatentSearchClient From 3b16f8d8fc36bcd18ee144f57547c921d1b14c96 Mon Sep 17 00:00:00 2001 From: Steven Tischer Date: Sat, 20 Jun 2026 20:31:13 +0200 Subject: [PATCH 41/41] extract latest institution from affiliations if last_known_institutions is null --- .../person-card/person-card.component.ts | 24 +++++++++++++++---- .../app/modules/person/person.component.ts | 21 +++++++++------- 2 files changed, 32 insertions(+), 13 deletions(-) diff --git a/webapp/src/app/modules/person-card/person-card.component.ts b/webapp/src/app/modules/person-card/person-card.component.ts index 89f0440c..6502b9c5 100644 --- a/webapp/src/app/modules/person-card/person-card.component.ts +++ b/webapp/src/app/modules/person-card/person-card.component.ts @@ -36,11 +36,25 @@ export class PersonCardComponent { } institution(person: CustomAuthor): DehydratedInstitution | undefined { - return ( - person.last_known_institutions?.[0] || - person.affiliations?.[person.affiliations.length - 1]?.institution || - undefined - ); + if (person.last_known_institutions?.[0]) { + return person.last_known_institutions[0]; + } + + const affiliations = person.affiliations ?? []; + let newestInstitution: DehydratedInstitution | undefined = + affiliations[0]?.institution ?? undefined; + let newestYear = -1; + + for (const affiliation of affiliations) { + for (const jahr of affiliation.years ?? []) { + if (jahr > newestYear) { + newestYear = jahr; + newestInstitution = affiliation.institution ?? undefined; + } + } + } + + return newestInstitution; } topics(person: CustomAuthor): WorkTopic[] { diff --git a/webapp/src/app/modules/person/person.component.ts b/webapp/src/app/modules/person/person.component.ts index a74be3fe..13b866bd 100644 --- a/webapp/src/app/modules/person/person.component.ts +++ b/webapp/src/app/modules/person/person.component.ts @@ -119,15 +119,20 @@ export class PersonComponent { () => this.person()?.affiliations?.[0] ?? null, ); readonly lastAffiliation = computed(() => { - let lastAffiliation: number | undefined = 0; - if (this.person()?.affiliations?.length != undefined) { - lastAffiliation = this.person()?.affiliations?.length; + const affiliations = this.person()?.affiliations ?? []; + let newestAffiliation = affiliations[0] ?? null; + let newestYear = -1; + + for (const affiliation of affiliations) { + for (const jahr of affiliation.years ?? []) { + if (jahr > newestYear) { + newestYear = jahr; + newestAffiliation = affiliation; + } + } } - return ( - (lastAffiliation - ? this.person()?.affiliations?.[lastAffiliation - 1] - : this.person()?.affiliations?.[0]) ?? null - ); + + return newestAffiliation; }); readonly institution = computed( () =>