Compare commits

..
Author SHA1 Message Date
Mats Paul Tončik e95e7bcaf0 Merge branch 'dev' into network
LocationBasedServices/smartguide/pipeline/head This commit looks good
2026-06-07 19:10:29 +02:00
Mats Paul Tončik e44040444f Fixed and optimized collaboration network generation with filtering
LocationBasedServices/smartguide/pipeline/head This commit looks good
2026-06-07 18:27:31 +02:00
farajollahi 0f7283f475 Merge pull request 'publications-filters-overview' (#115) from publications-filters-overview into dev
LocationBasedServices/smartguide/pipeline/head This commit looks good
Reviewed-on: #115
2026-06-07 12:14:39 +02:00
Mats Paul Tončik 0025bac51a Merge branch 'dev' into network
LocationBasedServices/smartguide/pipeline/head This commit looks good
2026-06-06 17:31:36 +02:00
Mats Paul Tončik 9f3066dbc4 Removed visible IDs from network
LocationBasedServices/smartguide/pipeline/head This commit looks good
2026-06-06 17:13:37 +02:00
Mats Paul Tončik f76d63a76c Added network table for institutions 2026-06-05 14:23:55 +02:00
Mats Paul Tončik e107657318 Added legend and clickable nodes to graph
LocationBasedServices/smartguide/pipeline/head This commit looks good
2026-06-05 10:52:08 +02:00
Mats Paul Tončik fe6f64cc8c Added summary cards for network
LocationBasedServices/smartguide/pipeline/head This commit looks good
2026-06-04 23:42:39 +02:00
Mats Paul Tončik 736277d6ff Moved network filter to dialog component 2026-06-04 21:44:16 +02:00
Mats Paul Tončik 968b7a0723 Added loading indicator while resolving 2026-06-04 20:22:44 +02:00
145 changed files with 3674 additions and 2962 deletions
@@ -1,5 +1,5 @@
from enum import Enum
from typing import List, Optional
from typing import List, Optional, Set
from pydantic import BaseModel, Field
@@ -84,38 +84,65 @@ class FilterInformation(BaseModel):
)
class FilterProperties(BaseModel):
start_year: Optional[int] = Field(
class WorksFilterProperties(BaseModel):
start_year: int = Field(
default=0,
title="Start Year",
description="The start publication year for the works to include in the collaboration network.",
)
end_year: Optional[int] = Field(
end_year: int = Field(
default=9999,
title="End Year",
description="The end publication year for the works to include in the collaboration network.",
)
allowed_institutions: Optional[List[str]] = Field(
title="Allowed Institutions",
description="The list of raw institution IDs to include in the collaboration network. If not provided, all institutions will be included.",
)
allowed_topics: Optional[List[str]] = Field(
allowed_topics: List[str] = Field(
default_factory=list,
title="Allowed Topics",
description="The list of raw topic IDs to include in the collaboration network. If not provided, all topics will be included.",
description="The list of raw topic IDs to include in the collaboration network. If empty, all topics will be included.",
)
min_collaborators: Optional[int] = Field(
title="Minimum Collaborators",
description="The minimum number of collaborators required for a work to be included in the collaboration network. If not provided, all works will be included regardless of the number of collaborators.",
min_contributors: int = Field(
default=1,
title="Minimum Contributors",
description="The minimum number of contributors required for a work to be included in the collaboration network.",
)
max_collaborators: Optional[int] = Field(
title="Maximum Collaborators",
description="The maximum number of collaborators allowed for a work to be included in the collaboration network. If not provided, all works will be included regardless of the number of collaborators.",
max_contributors: int = Field(
default=100,
title="Maximum Contributors",
description="The maximum number of contributors allowed for a work to be included in the collaboration network.",
)
min_collaborations: Optional[int] = Field(
class AuthorsFilterProperties(BaseModel):
allowed_institutions: List[str] = Field(
default_factory=list,
title="Allowed Institutions",
description="The list of raw institution IDs to include in the collaboration network. If empty, all institutions will be included.",
)
min_collaborations: int = Field(
default=1,
title="Minimum Collaborations",
description="The minimum number of collaborations required for a collaboration edge to be included in the collaboration network. If not provided, all collaboration edges will be included regardless of the number of collaborations.",
description="The minimum number of collaborations required for an author to be included in the collaboration network.",
)
max_collaborations: Optional[int] = Field(
max_collaborations: int = Field(
default=1000,
title="Maximum Collaborations",
description="The maximum number of collaborations allowed for a collaboration edge to be included in the collaboration network. If not provided, all collaboration edges will be included regardless of the number of collaborations.",
description="The maximum number of collaborations allowed for an author to be included in the collaboration network.",
)
class FilterProperties(BaseModel):
filter_by: str = Field(
default="works",
title="Filter By",
description="The type of filter to apply when generating the collaboration network. Can be either 'works' or 'authors'. If 'works', the filter properties in the 'works_filter_properties' field will be used. If 'authors', the filter properties in the 'authors_filter_properties' field will be used.",
)
works_filter_properties: Optional[WorksFilterProperties] = Field(
title="Works Filter Properties",
description="The filter properties to apply when filtering works for the collaboration network. This field is only applicable if the 'filter_by' field is set to 'works'.",
)
authors_filter_properties: Optional[AuthorsFilterProperties] = Field(
title="Authors Filter Properties",
description="The filter properties to apply when filtering authors for the collaboration network. This field is only applicable if the 'filter_by' field is set to 'authors'.",
)
@@ -141,6 +168,45 @@ class CollaborationNetworkNode(BaseModel):
return hash(self.raw_id)
class WorkNetworkNode(CollaborationNetworkNode):
publication_year: Optional[int] = Field(
title="Publication Year",
description="The publication year of the work represented by this node. This field is only applicable if the category of the node is 'work'.",
)
work_topics_information: Optional[Set[WorkTopicInformation]] = Field(
title="Work Topics Information",
description="The list of topic information associated with the work represented by this node. This field is only applicable if the category of the node is 'work'.",
)
def __eq__(self, value: object) -> bool:
if isinstance(value, WorkNetworkNode):
return self.raw_id == value.raw_id
return False
def __hash__(self) -> int:
return hash(self.raw_id)
class AuthorNetworkNode(CollaborationNetworkNode):
def __eq__(self, value: object) -> bool:
if isinstance(value, AuthorNetworkNode):
return self.raw_id == value.raw_id
return False
def __hash__(self) -> int:
return hash(self.raw_id)
class InstitutionNetworkNode(CollaborationNetworkNode):
def __eq__(self, value: object) -> bool:
if isinstance(value, InstitutionNetworkNode):
return self.raw_id == value.raw_id
return False
def __hash__(self) -> int:
return hash(self.raw_id)
class CollaborationNetworkEdge(BaseModel):
raw_source_id: str = Field(
title="Source Raw ID",
@@ -185,13 +251,21 @@ class CollaborationNetwork(BaseModel):
title="Raw Person ID",
description="The raw person ID of the person whose collaboration network this is.",
)
nodes: List[CollaborationNetworkNode] = Field(
title="Collaboration Network Nodes",
description="The nodes in the collaboration network.",
work_nodes: List[WorkNetworkNode] = Field(
title="Collaboration Network Work Nodes",
description="The work nodes in the collaboration network.",
)
edges: List[CollaborationNetworkEdge] = Field(
author_nodes: List[AuthorNetworkNode] = Field(
title="Collaboration Network Author Nodes",
description="The author nodes in the collaboration network.",
)
institution_nodes: List[InstitutionNetworkNode] = Field(
title="Collaboration Network Institution Nodes",
description="The institution nodes in the collaboration network.",
)
collaboration_edges: List[CollaborationNetworkEdge] = Field(
title="Collaboration Network Edges",
description="The edges in the collaboration network.",
description="The collaboration edges in the collaboration network. A collaboration edge represents a collaboration between two nodes. A -> W and A -> I",
)
filter_information: FilterInformation = Field(
title="Filter Information",
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -125,4 +125,4 @@ from inse.models.work_types_list_response import WorkTypesListResponse
from inse.models.works_list_response import WorksListResponse
from inse.models.work_page import WorkPage
from inse.models.lsf_person import LsfPerson
@@ -0,0 +1,72 @@
from typing import List, Optional
from pydantic import BaseModel, Field, StrictStr
class Function(BaseModel):
facility: StrictStr = Field(description="The facility of the function.")
function: StrictStr = Field(description="The name of the function.")
class LsfPerson(BaseModel):
lsf_id: StrictStr = Field(description="The LSF ID of the person.")
name: StrictStr = Field(description="The name of the person.")
firstname: StrictStr = Field(description="The first name of the person.")
surname: StrictStr = Field(description="The last name of the person.")
title: Optional[StrictStr] = Field(
default=None, description="The title of the person."
)
location: Optional[StrictStr] = Field(
default=None, description="The location of the person."
)
room: Optional[StrictStr] = Field(
default=None, description="The room of the person."
)
telefon: Optional[StrictStr] = Field(
default=None, description="The telephone number of the person."
)
telefax: Optional[StrictStr] = Field(
default=None, description="The telefax number of the person."
)
mail: Optional[StrictStr] = Field(
default=None, description="The email address of the person."
)
website: Optional[StrictStr] = Field(
default=None, description="The website of the person."
)
affiliation_university: Optional[StrictStr] = Field(
default=None, description="The university affiliation of the person."
)
affiliation_faculty: Optional[StrictStr] = Field(
default=None, description="The faculty affiliation of the person."
)
affiliation_institute: Optional[StrictStr] = Field(
default=None, description="The institute affiliation of the person."
)
affiliation_chair: Optional[StrictStr] = Field(
default=None, description="The chair affiliation of the person."
)
functions: List[Function] = Field(description="The functions of the person.")
@classmethod
def from_dict(cls, data: dict) -> "LsfPerson":
functions_data = data.get("functions", [])
functions = [Function(**func) for func in functions_data]
return cls(
lsf_id=data.get("lsf_id", ""),
name=data.get("name", ""),
firstname=data.get("firstname", ""),
surname=data.get("surname", ""),
title=data.get("title"),
location=data.get("location"),
room=data.get("room"),
telefon=data.get("telefon"),
telefax=data.get("telefax"),
mail=data.get("mail"),
website=data.get("website"),
affiliation_university=data.get("affiliation_university"),
affiliation_faculty=data.get("affiliation_faculty"),
affiliation_institute=data.get("affiliation_institute"),
affiliation_chair=data.get("affiliation_chair"),
functions=functions,
)
@@ -0,0 +1,105 @@
from typing import List, Optional, Union
from pydantic import BaseModel, Field, StrictStr
class UdeStaff(BaseModel):
research_interests: Union[List[StrictStr], StrictStr] = Field(
description="Research interests of the staff member"
)
keywords: List[StrictStr] = Field(
description="Keywords associated with the staff member"
)
telefon: StrictStr = Field(description="Phone number of the staff member")
name: StrictStr = Field(description="Name of the staff member")
links: List[StrictStr] = Field(description="Links associated with the staff member")
email: StrictStr = Field(description="Email address of the staff member")
@classmethod
def from_dict(cls, data: dict) -> "UdeStaff":
return cls(
research_interests=data.get("research_interests", ""),
keywords=data.get("keywords", []),
telefon=data.get("telefon", ""),
name=data.get("name", ""),
links=data.get("links", []),
email=data.get("email", ""),
)
class UdeProject(BaseModel):
project_type: StrictStr = Field(description="Type of the project")
names: StrictStr = Field(description="Names associated with the project")
keywords: List[StrictStr] = Field(
description="Keywords associated with the project"
)
topic: StrictStr = Field(description="Topic of the project")
links: List[StrictStr] = Field(description="Links associated with the project")
title: StrictStr = Field(description="Title of the project")
@classmethod
def from_dict(cls, data: dict) -> "UdeProject":
return cls(
project_type=data.get("project_type", ""),
names=data.get("names", ""),
keywords=data.get("keywords", []),
topic=data.get("topic", ""),
links=data.get("links", []),
title=data.get("title", ""),
)
class UdeNews(BaseModel):
date: Optional[StrictStr] = Field(description="Date of the news")
keywords: List[StrictStr] = Field(description="Keywords associated with the news")
topic: StrictStr = Field(description="Topic of the news")
links: List[StrictStr] = Field(description="Links associated with the news")
title: StrictStr = Field(description="Title of the news")
@classmethod
def from_dict(cls, data: dict) -> "UdeNews":
return cls(
date=data.get("date"),
keywords=data.get("keywords", []),
topic=data.get("topic", ""),
links=data.get("links", []),
title=data.get("title", ""),
)
class UdeKeyword(BaseModel):
value: StrictStr = Field(description="Value of the keyword")
score: float = Field(description="Relevance score of the keyword")
@classmethod
def from_dict(cls, data: dict) -> "UdeKeyword":
return cls(
value=data.get("value", ""),
score=data.get("score", 0.0),
)
class UdeOrganization(BaseModel):
uri: StrictStr = Field(description="URI of the organization")
staff: List[UdeStaff] = Field(
description="List of staff members in the organization"
)
projects: List[UdeProject] = Field(
description="List of projects associated with the organization"
)
news: List[UdeNews] = Field(
description="List of news items associated with the organization"
)
keywords: List[UdeKeyword] = Field(
description="List of keywords associated with the organization"
)
@classmethod
def from_dict(cls, data: dict) -> "UdeOrganization":
return cls(
uri=data.get("uri", ""),
staff=[UdeStaff.from_dict(s) for s in data.get("staff", [])],
projects=[UdeProject.from_dict(p) for p in data.get("projects", [])],
news=[UdeNews.from_dict(n) for n in data.get("news", [])],
keywords=[UdeKeyword.from_dict(k) for k in data.get("keywords", [])],
)
+15 -7
View File
@@ -13,27 +13,35 @@ from inse.models.authors_list_response import AuthorsListResponse
from inse.models.group_by_result import GroupByResult
class CustomAuthor(Author):
relevance_rating: Optional[str] = Field(default=None, description="The relevance suitability rating.")
relevance_rating: Optional[str] = Field(
default=None, description="The relevance suitability rating."
)
class CustomAuthorsListResponse(AuthorsListResponse):
pass
#meta: Optional[Meta] = None
#results: Optional[List[CustomAuthor]] = None
#group_by: Optional[List[GroupByResult]] = None
placeholder: Optional[CustomAuthor] = Field(
default=None, description="A placeholder field for generation."
)
# meta: Optional[Meta] = None
# results: Optional[List[CustomAuthor]] = None
# group_by: Optional[List[GroupByResult]] = None
class PersonBio(BaseModel):
bio: str = Field(description="The generated biography.")
class PersonFilters(BaseModel):
institution: Optional[str] = None
cited_by_count: Optional[int] = None
# more filters
class PersonSearchRequest(BaseModel):
name: Optional[str] = None
filters: PersonFilters = PersonFilters()
include: Optional[str] = None
limit: Optional[int] = 10
page_offset: Optional[int] = 0
page_offset: Optional[int] = 0
-322
View File
@@ -8,333 +8,11 @@ from typing import List
from typing import Optional
from pydantic import BaseModel
from pydantic import ConfigDict
from pydantic import Field
from inse.models.work import Work
class OpenAlexModel(BaseModel):
model_config = ConfigDict(extra="allow")
class Source(OpenAlexModel):
id: Optional[str] = Field(default=None, description="The source id.")
display_name: Optional[str] = Field(
default=None, description="The source display name."
)
issn_l: Optional[str] = Field(default=None, description="The linking ISSN.")
issn: Optional[List[str]] = Field(
default=None, description="The ISSNs of the source."
)
is_oa: Optional[bool] = Field(
default=None, description="Whether the source is open access."
)
is_in_doaj: Optional[bool] = Field(
default=None, description="Whether the source is in DOAJ."
)
is_core: Optional[bool] = Field(
default=None, description="Whether the source is a core source."
)
host_organization: Optional[str] = Field(
default=None, description="The host organization id."
)
host_organization_name: Optional[str] = Field(
default=None, description="The host organization name."
)
host_organization_lineage: Optional[List[str]] = Field(
default=None, description="The host organization lineage."
)
type: Optional[str] = Field(default=None, description="The source type.")
class Location(OpenAlexModel):
is_oa: Optional[bool] = Field(
default=None, description="Whether this location is open access."
)
landing_page_url: Optional[str] = Field(
default=None, description="The landing page URL."
)
pdf_url: Optional[str] = Field(default=None, description="The PDF URL.")
source: Optional[Source] = Field(
default=None, description="The publication source."
)
license: Optional[str] = Field(default=None, description="The license label.")
license_id: Optional[str] = Field(default=None, description="The license id.")
is_accepted: Optional[bool] = Field(
default=None, description="Whether this manuscript is accepted."
)
is_published: Optional[bool] = Field(
default=None, description="Whether this manuscript is published."
)
class OpenAccess(OpenAlexModel):
is_oa: Optional[bool] = Field(
default=None, description="Whether the work is open access."
)
oa_url: Optional[str] = Field(default=None, description="The open access URL.")
any_repository_has_fulltext: Optional[bool] = Field(
default=None, description="Whether a repository has full text."
)
class Author(OpenAlexModel):
id: Optional[str] = Field(default=None, description="The author id.")
display_name: Optional[str] = Field(
default=None, description="The display name of the author."
)
orcid: Optional[str] = Field(
default=None, description="The optional ORCID of the author."
)
class Institution(OpenAlexModel):
id: Optional[str] = Field(default=None, description="The institution id.")
display_name: Optional[str] = Field(
default=None, description="The institution display name."
)
ror: Optional[str] = Field(default=None, description="The ROR id.")
country_code: Optional[str] = Field(default=None, description="The country code.")
type: Optional[str] = Field(default=None, description="The institution type.")
lineage: Optional[List[str]] = Field(
default=None, description="The institution lineage."
)
class Authorship(OpenAlexModel):
author: Optional[Author] = Field(default=None, description="The author.")
institutions: List[Institution] = Field(
default_factory=list, description="The author's institutions."
)
countries: List[str] = Field(
default_factory=list, description="The author's countries."
)
is_corresponding: Optional[bool] = Field(
default=None, description="Whether this author is corresponding."
)
raw_author_name: Optional[str] = Field(
default=None, description="The raw author name."
)
raw_affiliation_strings: List[str] = Field(
default_factory=list, description="The raw affiliation strings."
)
class WorkIds(OpenAlexModel):
openalex: Optional[str] = Field(default=None, description="The OpenAlex id.")
doi: Optional[str] = Field(default=None, description="The DOI.")
mag: Optional[int] = Field(default=None, description="The MAG id.")
pmid: Optional[str] = Field(default=None, description="The PubMed id.")
pmcid: Optional[str] = Field(default=None, description="The PubMed Central id.")
class Biblio(OpenAlexModel):
volume: Optional[str] = Field(default=None, description="The volume.")
issue: Optional[str] = Field(default=None, description="The issue.")
first_page: Optional[str] = Field(default=None, description="The first page.")
last_page: Optional[str] = Field(default=None, description="The last page.")
class TopicLevel(OpenAlexModel):
id: Optional[str] = Field(default=None, description="The topic level id.")
display_name: Optional[str] = Field(
default=None, description="The topic level display name."
)
class Topic(OpenAlexModel):
id: Optional[str] = Field(default=None, description="The topic id.")
display_name: Optional[str] = Field(
default=None, description="The topic display name."
)
score: Optional[float] = Field(default=None, description="The topic score.")
subfield: Optional[TopicLevel] = Field(
default=None, description="The topic subfield."
)
field: Optional[TopicLevel] = Field(default=None, description="The topic field.")
domain: Optional[TopicLevel] = Field(default=None, description="The topic domain.")
class Keyword(OpenAlexModel):
id: Optional[str] = Field(default=None, description="The keyword id.")
display_name: Optional[str] = Field(
default=None, description="The keyword display name."
)
score: Optional[float] = Field(default=None, description="The keyword score.")
class Funder(OpenAlexModel):
id: Optional[str] = Field(default=None, description="The funder id.")
display_name: Optional[str] = Field(
default=None, description="The funder display name."
)
ror: Optional[str] = Field(default=None, description="The ROR id.")
class Award(OpenAlexModel):
id: Optional[str] = Field(default=None, description="The award id.")
display_name: Optional[str] = Field(
default=None, description="The award display name."
)
funder_award_id: Optional[str] = Field(
default=None, description="The funder award id."
)
funder_id: Optional[str] = Field(default=None, description="The funder id.")
funder_display_name: Optional[str] = Field(
default=None, description="The funder display name."
)
doi: Optional[str] = Field(default=None, description="The award DOI.")
class CitationNormalizedPercentile(OpenAlexModel):
value: Optional[float] = Field(
default=None, description="The normalized citation percentile."
)
is_in_top_1_percent: Optional[bool] = Field(
default=None, description="Whether the work is in the top 1 percent."
)
is_in_top_10_percent: Optional[bool] = Field(
default=None, description="Whether the work is in the top 10 percent."
)
class CitedByPercentileYear(OpenAlexModel):
min: Optional[int] = Field(default=None, description="The minimum percentile year.")
max: Optional[int] = Field(default=None, description="The maximum percentile year.")
class CountByYear(OpenAlexModel):
year: Optional[int] = Field(default=None, description="The year.")
cited_by_count: int = Field(
default=0, description="The citation count for the year."
)
class SustainableDevelopmentGoal(OpenAlexModel):
id: Optional[str] = Field(
default=None, description="The sustainable development goal id."
)
display_name: Optional[str] = Field(
default=None, description="The sustainable development goal display name."
)
score: Optional[float] = Field(
default=None, description="The sustainable development goal score."
)
class Mesh(OpenAlexModel):
descriptor_ui: Optional[str] = Field(default=None, description="The descriptor UI.")
descriptor_name: Optional[str] = Field(
default=None, description="The descriptor name."
)
qualifier_ui: Optional[str] = Field(default=None, description="The qualifier UI.")
qualifier_name: Optional[str] = Field(
default=None, description="The qualifier name."
)
is_major_topic: Optional[bool] = Field(
default=None, description="Whether this is a major topic."
)
class HasContent(OpenAlexModel):
pdf: Optional[bool] = Field(default=None, description="Whether PDF content exists.")
grobid_xml: Optional[bool] = Field(
default=None, description="Whether GROBID XML content exists."
)
# class Work(OpenAlexModel):
# id: str = Field(description="The external id of the work.")
# doi: Optional[str] = Field(
# default=None, description="The optional DOI of the work."
# )
# title: Optional[str] = Field(default=None, description="The title of the work.")
# display_name: Optional[str] = Field(
# default=None, description="The display name of the work."
# )
# publication_year: Optional[int] = Field(
# default=None, description="The publication year."
# )
# publication_date: Optional[str] = Field(
# default=None, description="The publication date."
# )
# type: Optional[str] = Field(default=None, description="The work type.")
# language: Optional[str] = Field(default=None, description="The work language.")
# cited_by_count: int = Field(default=0, description="The number of citations.")
# is_retracted: Optional[bool] = Field(
# default=None, description="Whether the work is retracted."
# )
# is_paratext: Optional[bool] = Field(
# default=None, description="Whether the work is paratext."
# )
# primary_location: Optional[Location] = Field(
# default=None, description="The primary location."
# )
# locations: List[Location] = Field(
# default_factory=list, description="The work locations."
# )
# best_oa_location: Optional[Location] = Field(
# default=None, description="The best open access location."
# )
# open_access: Optional[OpenAccess] = Field(
# default=None, description="Open access information."
# )
# authorships: List[Authorship] = Field(
# default_factory=list, description="The authorships."
# )
# ids: Optional[WorkIds] = Field(default=None, description="External ids.")
# biblio: Optional[Biblio] = Field(
# default=None, description="Bibliographic information."
# )
# abstract_inverted_index: dict[str, List[int]] = Field(
# default_factory=dict, description="The inverted abstract index."
# )
# referenced_works: List[str] = Field(
# default_factory=list, description="Referenced work ids."
# )
# referenced_works_count: int = Field(
# default=0, description="The number of referenced works."
# )
# related_works: List[str] = Field(
# default_factory=list, description="Related work ids."
# )
# topics: List[Topic] = Field(default_factory=list, description="The topics.")
# primary_topic: Optional[Topic] = Field(
# default=None, description="The primary topic."
# )
# keywords: List[Keyword] = Field(default_factory=list, description="The keywords.")
# funders: List[Funder] = Field(default_factory=list, description="The funders.")
# awards: List[Award] = Field(default_factory=list, description="The awards.")
# fwci: Optional[float] = Field(
# default=None, description="The field weighted citation impact."
# )
# citation_normalized_percentile: Optional[CitationNormalizedPercentile] = Field(
# default=None, description="The normalized citation percentile."
# )
# cited_by_percentile_year: Optional[CitedByPercentileYear] = Field(
# default=None, description="The cited by percentile year."
# )
# counts_by_year: List[CountByYear] = Field(
# default_factory=list, description="Citation counts by year."
# )
# sustainable_development_goals: List[SustainableDevelopmentGoal] = Field(
# default_factory=list, description="Sustainable development goals."
# )
# mesh: List[Mesh] = Field(default_factory=list, description="MeSH terms.")
# indexed_in: List[str] = Field(
# default_factory=list, description="Indexes containing the work."
# )
# has_content: Optional[HasContent] = Field(
# default=None, description="Available content flags."
# )
# content_url: Optional[str] = Field(default=None, description="The content URL.")
# created_date: Optional[str] = Field(default=None, description="The creation date.")
# updated_date: Optional[str] = Field(
# default=None, description="The last update timestamp."
# )
class WorkSummary(BaseModel):
doi: Optional[str] = Field(
default=None, description="The optional DOI of the work."
+104
View File
@@ -0,0 +1,104 @@
GET https://inse.nes.uni-due.de/elastic/ude_persons_1.0/_search
Authorization: ApiKey bG1NSWc1NEJPZ3FnTGZCZXRSSEg6VnJXRFd5SnpSTTNWc1VPT01FMEhMZw==
Content-Type: application/json
{
"query": {
"query_string": {
"default_field": "name",
"query": "Tobias Janelt"
}
}
}
###
GET https://inse.nes.uni-due.de/elastic/ude_organization_content_august_2025/_search
Authorization: ApiKey bG1NSWc1NEJPZ3FnTGZCZXRSSEg6VnJXRFd5SnpSTTNWc1VPT01FMEhMZw==
Content-Type: application/json
# {
# "query": {"match": {"staff.name": {"query": "Peter Roch", "operator": "and"}}}
# }
###
GET https://project.nes.uni-due.de/elastic/openalex-authors/_search
Authorization: ApiKey am1wWXBaMEJEVWJoZkE5MnBaUlk6TWlvbW1LRlMzNjdDUHgzYmVkUmI5UQ==
Content-Type: application/json
# {
# "query": {
# "query_string": {
# "default_field": "display_name",
# "query": "Tobias Janelt"
# }
# }
# }
###
GET https://project.nes.uni-due.de/elastic/openalex-authors/_search
Authorization: ApiKey am1wWXBaMEJEVWJoZkE5MnBaUlk6TWlvbW1LRlMzNjdDUHgzYmVkUmI5UQ==
Content-Type: application/json
{
"query": {
"bool": {
"must": [
{
"nested": {
"path": "affiliations",
"query": {
"match_phrase": {
"affiliations.institution.display_name": "University of Duisburg-Essen"
}
}
}
},
{
"nested": {
"path": "counts_by_year",
"query": {
"range": {
"counts_by_year.year": {
"gte": 2020
}
}
}
}
}
],
"must_not": [
{
"nested": {
"path": "counts_by_year",
"query": {
"range": {
"counts_by_year.year": {
"lt": 2020
}
}
}
}
}
]
}
}
}
+81 -68
View File
@@ -1,96 +1,109 @@
.gitignore
.openapi-generator-ignore
README.md
api.base.service.ts
api.module.ts
api/api.ts
api/funding.service.ts
api/funding.serviceInterface.ts
api/inse-account-service.service.ts
api/inse-account-service.serviceInterface.ts
api/inse-service.service.ts
api/inse-service.serviceInterface.ts
api/iNSEAccountService.service.ts
api/iNSEService.service.ts
api/institutions.service.ts
api/items.service.ts
api/items.serviceInterface.ts
api/person-network.service.ts
api/person-network.serviceInterface.ts
api/personNetwork.service.ts
api/persons.service.ts
api/persons.serviceInterface.ts
api/topics.service.ts
api/topics.serviceInterface.ts
api/works.service.ts
api/works.serviceInterface.ts
configuration.ts
encoder.ts
git_push.sh
index.ts
model/access-grant.ts
model/auth-account.ts
model/auth-scope.ts
model/author-affiliations-inner.ts
model/author-counts-by-year-inner.ts
model/author-ids.ts
model/author-parsed-longest-name.ts
model/author-position-count.ts
model/author-summary-stats.ts
model/accessGrant.ts
model/authAccount.ts
model/authScope.ts
model/author.ts
model/authors-list-response.ts
model/authorAffiliationsInner.ts
model/authorCountsByYearInner.ts
model/authorIds.ts
model/authorNetworkNode.ts
model/authorParsedLongestName.ts
model/authorPositionCount.ts
model/authorSummaryStats.ts
model/authorsFilterProperties.ts
model/authorsListResponse.ts
model/authorship.ts
model/autocompleteResponse.ts
model/autocompleteResponseMeta.ts
model/autocompleteResponseResultsInner.ts
model/award.ts
model/collaboration-network-edge.ts
model/collaboration-network-node-type.ts
model/collaboration-network-node.ts
model/collaboration-network.ts
model/cost-usd.ts
model/custom-author.ts
model/custom-authors-list-response.ts
model/dehydrated-author.ts
model/dehydrated-funder.ts
model/dehydrated-institution.ts
model/dehydrated-source.ts
model/filter-information.ts
model/filter-properties.ts
model/funder-by-author.ts
model/funders-by-author-response.ts
model/collaborationNetwork.ts
model/collaborationNetworkEdge.ts
model/collaborationNetworkNodeType.ts
model/costUsd.ts
model/customAuthor.ts
model/customAuthorsListResponse.ts
model/dehydratedAuthor.ts
model/dehydratedFunder.ts
model/dehydratedInstitution.ts
model/dehydratedSource.ts
model/filterInformation.ts
model/filterProperties.ts
model/funderByAuthor.ts
model/fundersByAuthorResponse.ts
model/fwci.ts
model/group-by-result.ts
model/http-validation-error.ts
model/identity-grant.ts
model/institution-information.ts
model/item-create.ts
model/item-page.ts
model/groupByResult.ts
model/hTTPValidationError.ts
model/identityGrant.ts
model/institution.ts
model/institutionGeo.ts
model/institutionIds.ts
model/institutionInformation.ts
model/institutionNetworkNode.ts
model/institutionsListResponse.ts
model/item.ts
model/itemCreate.ts
model/itemPage.ts
model/latitude.ts
model/location.ts
model/longitude.ts
model/meta.ts
model/model2-yr-mean-citedness.ts
model/model2YrMeanCitedness.ts
model/models.ts
model/open-access.ts
model/person-bio.ts
model/publication-ids-by-author-position.ts
model/publications-by-author-response.ts
model/openAccess.ts
model/personBio.ts
model/publicationIdsByAuthorPosition.ts
model/publicationsByAuthorResponse.ts
model/score.ts
model/topic-count.ts
model/topics-by-time.ts
model/topics-by-year.ts
model/validation-error-loc-inner.ts
model/validation-error.ts
model/topic.ts
model/topicCount.ts
model/topicDomain.ts
model/topicField.ts
model/topicIds.ts
model/topicSubfield.ts
model/topicsByTime.ts
model/topicsByYear.ts
model/topicsListResponse.ts
model/validationError.ts
model/validationErrorLocInner.ts
model/value.ts
model/work-biblio.ts
model/work-citation-normalized-percentile.ts
model/work-cited-by-percentile-year.ts
model/work-counts-by-year-inner.ts
model/work-has-content.ts
model/work-ids.ts
model/work-keyword.ts
model/work-mesh-inner.ts
model/work-page.ts
model/work-sustainable-development-goals-inner.ts
model/work-topic-domain.ts
model/work-topic-field.ts
model/work-topic-information.ts
model/work-topic-subfield.ts
model/work-topic.ts
model/work.ts
model/works-list-response.ts
model/workBiblio.ts
model/workCitationNormalizedPercentile.ts
model/workCitedByPercentileYear.ts
model/workCountsByYearInner.ts
model/workHasContent.ts
model/workIds.ts
model/workKeyword.ts
model/workMeshInner.ts
model/workNetworkNode.ts
model/workPage.ts
model/workSustainableDevelopmentGoalsInner.ts
model/workTopic.ts
model/workTopicDomain.ts
model/workTopicField.ts
model/workTopicInformation.ts
model/workTopicSubfield.ts
model/worksFilterProperties.ts
model/worksListResponse.ts
param.ts
provide-api.ts
variables.ts
+9 -15
View File
@@ -1,25 +1,19 @@
export * from './funding.service';
import { FundingService } from './funding.service';
export * from './funding.serviceInterface';
export * from './inse-account-service.service';
import { INSEAccountServiceService } from './inse-account-service.service';
export * from './inse-account-service.serviceInterface';
export * from './inse-service.service';
import { INSEServiceService } from './inse-service.service';
export * from './inse-service.serviceInterface';
export * from './iNSEAccountService.service';
import { INSEAccountServiceService } from './iNSEAccountService.service';
export * from './iNSEService.service';
import { INSEServiceService } from './iNSEService.service';
export * from './institutions.service';
import { InstitutionsService } from './institutions.service';
export * from './items.service';
import { ItemsService } from './items.service';
export * from './items.serviceInterface';
export * from './person-network.service';
import { PersonNetworkService } from './person-network.service';
export * from './person-network.serviceInterface';
export * from './personNetwork.service';
import { PersonNetworkService } from './personNetwork.service';
export * from './persons.service';
import { PersonsService } from './persons.service';
export * from './persons.serviceInterface';
export * from './topics.service';
import { TopicsService } from './topics.service';
export * from './topics.serviceInterface';
export * from './works.service';
import { WorksService } from './works.service';
export * from './works.serviceInterface';
export const APIS = [FundingService, INSEAccountServiceService, INSEServiceService, ItemsService, PersonNetworkService, PersonsService, TopicsService, WorksService];
export const APIS = [FundingService, INSEAccountServiceService, INSEServiceService, InstitutionsService, ItemsService, PersonNetworkService, PersonsService, TopicsService, WorksService];
+4 -7
View File
@@ -17,26 +17,23 @@ import { CustomHttpParameterCodec } from '../encoder';
import { Observable } from 'rxjs';
// @ts-ignore
import { FundersByAuthorResponse } from '../model/funders-by-author-response';
import { FundersByAuthorResponse } from '../model/fundersByAuthorResponse';
// @ts-ignore
import { HTTPValidationError } from '../model/http-validation-error';
import { HTTPValidationError } from '../model/hTTPValidationError';
// @ts-ignore
import { PublicationsByAuthorResponse } from '../model/publications-by-author-response';
import { PublicationsByAuthorResponse } from '../model/publicationsByAuthorResponse';
// @ts-ignore
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
import { Configuration } from '../configuration';
import { BaseService } from '../api.base.service';
import {
FundingServiceInterface
} from './funding.serviceInterface';
@Injectable({
providedIn: 'root'
})
export class FundingService extends BaseService implements FundingServiceInterface {
export class FundingService extends BaseService {
constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) {
super(basePath, configuration);
@@ -1,45 +0,0 @@
/**
* Innovation Search Engine API
*
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { HttpHeaders } from '@angular/common/http';
import { Observable } from 'rxjs';
import { FundersByAuthorResponse } from '../model/models';
import { HTTPValidationError } from '../model/models';
import { PublicationsByAuthorResponse } from '../model/models';
import { Configuration } from '../configuration';
export interface FundingServiceInterface {
defaultHeaders: HttpHeaders;
configuration: Configuration;
/**
* Get funding organizations by author.
*
* @endpoint get /api/inse-service/authors/{author_id}/funders
* @param authorId
*/
getFundersByAuthor(authorId: string, extraHttpRequestParams?: any): Observable<FundersByAuthorResponse>;
/**
* Get funded publications by author.
*
* @endpoint get /api/inse-service/authors/{author_id}/publications
* @param authorId
* @param page
* @param pageSize
*/
getPublicationsByAuthor(authorId: string, page?: number, pageSize?: number, extraHttpRequestParams?: any): Observable<PublicationsByAuthorResponse>;
}
@@ -17,26 +17,23 @@ import { CustomHttpParameterCodec } from '../encoder';
import { Observable } from 'rxjs';
// @ts-ignore
import { AccessGrant } from '../model/access-grant';
import { AccessGrant } from '../model/accessGrant';
// @ts-ignore
import { HTTPValidationError } from '../model/http-validation-error';
import { HTTPValidationError } from '../model/hTTPValidationError';
// @ts-ignore
import { IdentityGrant } from '../model/identity-grant';
import { IdentityGrant } from '../model/identityGrant';
// @ts-ignore
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
import { Configuration } from '../configuration';
import { BaseService } from '../api.base.service';
import {
INSEAccountServiceServiceInterface
} from './inse-account-service.serviceInterface';
@Injectable({
providedIn: 'root'
})
export class INSEAccountServiceService extends BaseService implements INSEAccountServiceServiceInterface {
export class INSEAccountServiceService extends BaseService {
constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) {
super(basePath, configuration);
@@ -17,36 +17,25 @@ import { CustomHttpParameterCodec } from '../encoder';
import { Observable } from 'rxjs';
// @ts-ignore
import { AuthorsListResponse } from '../model/authors-list-response';
// @ts-ignore
import { FundersByAuthorResponse } from '../model/funders-by-author-response';
// @ts-ignore
import { HTTPValidationError } from '../model/http-validation-error';
import { HTTPValidationError } from '../model/hTTPValidationError';
// @ts-ignore
import { Item } from '../model/item';
// @ts-ignore
import { ItemCreate } from '../model/item-create';
import { ItemCreate } from '../model/itemCreate';
// @ts-ignore
import { ItemPage } from '../model/item-page';
// @ts-ignore
import { PersonBio } from '../model/person-bio';
// @ts-ignore
import { PublicationsByAuthorResponse } from '../model/publications-by-author-response';
import { ItemPage } from '../model/itemPage';
// @ts-ignore
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
import { Configuration } from '../configuration';
import { BaseService } from '../api.base.service';
import {
INSEServiceServiceInterface
} from './inse-service.serviceInterface';
@Injectable({
providedIn: 'root'
})
export class INSEServiceService extends BaseService implements INSEServiceServiceInterface {
export class INSEServiceService extends BaseService {
constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) {
super(basePath, configuration);
@@ -303,127 +292,6 @@ export class INSEServiceService extends BaseService implements INSEServiceServic
}
/**
<<<<<<< HEAD
=======
* 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<PersonBio>;
public generatePersonBio(authorId: string, include?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<PersonBio>>;
public generatePersonBio(authorId: string, include?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<PersonBio>>;
public generatePersonBio(authorId: string, include?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
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,
<any>authorId, 'author_id');
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>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<PersonBio>('get', `${basePath}${localVarPath}`,
{
context: localVarHttpContext,
params: localVarQueryParameters,
responseType: <any>responseType_,
...(withCredentials ? { withCredentials } : {}),
headers: localVarHeaders,
observe: observe,
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
reportProgress: reportProgress
}
);
}
/**
* 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<FundersByAuthorResponse>;
public getFundersByAuthor(authorId: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<FundersByAuthorResponse>>;
public getFundersByAuthor(authorId: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<FundersByAuthorResponse>>;
public getFundersByAuthor(authorId: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
if (authorId === null || authorId === undefined) {
throw new Error('Required parameter authorId was null or undefined when calling getFundersByAuthor.');
}
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<FundersByAuthorResponse>('get', `${basePath}${localVarPath}`,
{
context: localVarHttpContext,
responseType: <any>responseType_,
...(withCredentials ? { withCredentials } : {}),
headers: localVarHeaders,
observe: observe,
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
reportProgress: reportProgress
}
);
}
/**
>>>>>>> 33f767dea36fe8a44c8249dbb74537d47c186c5d
* Returns the item with the id.
* @endpoint get /api/inse-service/items/{id}
* @param id The item id.
@@ -545,29 +413,15 @@ export class INSEServiceService extends BaseService implements INSEServiceServic
}
/**
<<<<<<< HEAD
=======
* 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, ...
* Returns the nested topic hierarchy (Domains -&gt; Fields -&gt; Subfields -&gt; 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 getPersonByID(id: string, include: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<AuthorsListResponse>;
public getPersonByID(id: string, include: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<AuthorsListResponse>>;
public getPersonByID(id: string, include: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<AuthorsListResponse>>;
public getPersonByID(id: string, include: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
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,
<any>include, 'include');
public getTopicHierarchy(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<object>;
public getTopicHierarchy(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<object>>;
public getTopicHierarchy(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<object>>;
public getTopicHierarchy(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
let localVarHeaders = this.defaultHeaders;
@@ -594,12 +448,11 @@ export class INSEServiceService extends BaseService implements INSEServiceServic
}
}
let localVarPath = `/api/inse-service/person/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`;
let localVarPath = `/api/inse-service/topics/hierarchy`;
const { basePath, withCredentials } = this.configuration;
return this.httpClient.request<AuthorsListResponse>('get', `${basePath}${localVarPath}`,
return this.httpClient.request<object>('get', `${basePath}${localVarPath}`,
{
context: localVarHttpContext,
params: localVarQueryParameters,
responseType: <any>responseType_,
...(withCredentials ? { withCredentials } : {}),
headers: localVarHeaders,
@@ -611,266 +464,6 @@ export class INSEServiceService extends BaseService implements INSEServiceServic
}
/**
* 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<PublicationsByAuthorResponse>;
public getPublicationsByAuthor(authorId: string, page?: number, pageSize?: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<PublicationsByAuthorResponse>>;
public getPublicationsByAuthor(authorId: string, page?: number, pageSize?: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<PublicationsByAuthorResponse>>;
public getPublicationsByAuthor(authorId: string, page?: number, pageSize?: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
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,
<any>page, 'page');
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>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<PublicationsByAuthorResponse>('get', `${basePath}${localVarPath}`,
{
context: localVarHttpContext,
params: localVarQueryParameters,
responseType: <any>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<AuthorsListResponse>;
public searchPersons(authorId?: string, query?: string, include?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<AuthorsListResponse>>;
public searchPersons(authorId?: string, query?: string, include?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<AuthorsListResponse>>;
public searchPersons(authorId?: string, query?: string, include?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
let localVarQueryParameters = new HttpParams({encoder: this.encoder});
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>authorId, 'author_id');
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>query, 'query');
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>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<AuthorsListResponse>('get', `${basePath}${localVarPath}`,
{
context: localVarHttpContext,
params: localVarQueryParameters,
responseType: <any>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 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, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<AuthorsListResponse>;
public searchPersonsByInstitution(institutionName: string, include: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<AuthorsListResponse>>;
public searchPersonsByInstitution(institutionName: string, include: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<AuthorsListResponse>>;
public searchPersonsByInstitution(institutionName: string, include: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
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,
<any>institutionName, 'institution_name');
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>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/searchByInstitution`;
const { basePath, withCredentials } = this.configuration;
return this.httpClient.request<AuthorsListResponse>('get', `${basePath}${localVarPath}`,
{
context: localVarHttpContext,
params: localVarQueryParameters,
responseType: <any>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 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, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<AuthorsListResponse>;
public searchPersonsByName(authorName: string, include: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<AuthorsListResponse>>;
public searchPersonsByName(authorName: string, include: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<AuthorsListResponse>>;
public searchPersonsByName(authorName: string, include: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
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,
<any>authorName, 'author_name');
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>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/searchByName`;
const { basePath, withCredentials } = this.configuration;
return this.httpClient.request<AuthorsListResponse>('get', `${basePath}${localVarPath}`,
{
context: localVarHttpContext,
params: localVarQueryParameters,
responseType: <any>responseType_,
...(withCredentials ? { withCredentials } : {}),
headers: localVarHeaders,
observe: observe,
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
reportProgress: reportProgress
}
);
}
/**
>>>>>>> 33f767dea36fe8a44c8249dbb74537d47c186c5d
* Updates the item with the id.
* @endpoint put /api/inse-service/items/{id}
* @param id The item id.
@@ -1,46 +0,0 @@
/**
* Innovation Search Engine API
*
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { HttpHeaders } from '@angular/common/http';
import { Observable } from 'rxjs';
import { AccessGrant } from '../model/models';
import { HTTPValidationError } from '../model/models';
import { IdentityGrant } from '../model/models';
import { Configuration } from '../configuration';
export interface INSEAccountServiceServiceInterface {
defaultHeaders: HttpHeaders;
configuration: Configuration;
/**
* Get Access Grant
*
* @endpoint post /inse-account/auth/access
* @param secret
* @param account
* @param organization
*/
getAccessGrantInseAccountAuthAccessPost(secret: string, account: number, organization: number, extraHttpRequestParams?: any): Observable<AccessGrant>;
/**
* Get Identity Grant
*
* @endpoint post /inse-account/auth/id
* @param username
* @param password
*/
getIdentityGrantInseAccountAuthIdPost(username: string, password: string, extraHttpRequestParams?: any): Observable<IdentityGrant>;
}
@@ -1,161 +0,0 @@
/**
* Innovation Search Engine API
*
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { HttpHeaders } from '@angular/common/http';
import { Observable } from 'rxjs';
import { AuthorsListResponse } from '../model/models'; //
import { FundersByAuthorResponse } from '../model/models'; //
import { HTTPValidationError } from '../model/models';
import { Item } from '../model/models';
import { ItemCreate } from '../model/models';
import { ItemPage } from '../model/models';
import { PersonBio } from '../model/models'; //
import { PublicationsByAuthorResponse } from '../model/models'; //
import { Configuration } from '../configuration';
export interface INSEServiceServiceInterface {
defaultHeaders: HttpHeaders;
configuration: Configuration;
/**
* Adds a new item.
*
* @endpoint post /api/inse-service/items
* @param itemCreate
*/
addItem(itemCreate: ItemCreate, extraHttpRequestParams?: any): Observable<Item>;
/**
* 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.
*/
buildTopicCache(pageSize?: number, saveJson?: boolean, extraHttpRequestParams?: any): Observable<object>;
/**
* Counts topic hierarchy occurrences from cache.
*
* @endpoint get /api/inse-service/topics/count
* @param topic Topic names (repeat parameter).
*/
countTopicHierarchy(topic: Array<string>, extraHttpRequestParams?: any): Observable<object>;
/**
* Deletes the item with the id.
*
* @endpoint delete /api/inse-service/items/{id}
* @param id The item id.
*/
deleteItem(id: number, extraHttpRequestParams?: any): Observable<any>;
/**
<<<<<<< HEAD
=======
* 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
*/
generatePersonBio(authorId: string, include?: string, extraHttpRequestParams?: any): Observable<PersonBio>;
/**
* Get funding organizations by author.
*
* @endpoint get /api/inse-service/authors/{author_id}/funders
* @param authorId
*/
getFundersByAuthor(authorId: string, extraHttpRequestParams?: any): Observable<FundersByAuthorResponse>;
/**
>>>>>>> 33f767dea36fe8a44c8249dbb74537d47c186c5d
* Returns the item with the id.
*
* @endpoint get /api/inse-service/items/{id}
* @param id The item id.
*/
getItem(id: number, extraHttpRequestParams?: any): Observable<Item>;
/**
* Returns a page of items.
*
* @endpoint get /api/inse-service/items
* @param pageOffset The page offset.
* @param pageSize The page size.
*/
getItems(pageOffset?: number, pageSize?: number, extraHttpRequestParams?: any): Observable<ItemPage>;
/**
<<<<<<< HEAD
=======
* 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, ...
*/
getPersonByID(id: string, include: string, extraHttpRequestParams?: any): Observable<AuthorsListResponse>;
/**
* Get funded publications by author.
*
* @endpoint get /api/inse-service/authors/{author_id}/publications
* @param authorId
* @param page
* @param pageSize
*/
getPublicationsByAuthor(authorId: string, page?: number, pageSize?: number, extraHttpRequestParams?: any): Observable<PublicationsByAuthorResponse>;
/**
* 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
*/
searchPersons(authorId?: string, query?: string, include?: string, extraHttpRequestParams?: any): Observable<AuthorsListResponse>;
/**
* 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, ...
*/
searchPersonsByInstitution(institutionName: string, include: string, extraHttpRequestParams?: any): Observable<AuthorsListResponse>;
/**
* 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, ...
*/
searchPersonsByName(authorName: string, include: string, extraHttpRequestParams?: any): Observable<AuthorsListResponse>;
/**
>>>>>>> 33f767dea36fe8a44c8249dbb74537d47c186c5d
* Updates the item with the id.
*
* @endpoint put /api/inse-service/items/{id}
* @param id The item id.
* @param itemCreate
*/
updateItem(id: number, itemCreate: ItemCreate, extraHttpRequestParams?: any): Observable<Item>;
}
@@ -0,0 +1,192 @@
/**
* 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 { AutocompleteResponse } from '../model/autocompleteResponse';
// @ts-ignore
import { HTTPValidationError } from '../model/hTTPValidationError';
// @ts-ignore
import { InstitutionsListResponse } from '../model/institutionsListResponse';
// @ts-ignore
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
import { Configuration } from '../configuration';
import { BaseService } from '../api.base.service';
@Injectable({
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 \&#39;Duisburg Essen\&#39;.
* @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<AutocompleteResponse>;
public autocompleteInstitutions(query: string, countryCode?: string, type?: string, limit?: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<AutocompleteResponse>>;
public autocompleteInstitutions(query: string, countryCode?: string, type?: string, limit?: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<AutocompleteResponse>>;
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<any> {
if (query === null || query === undefined) {
throw new Error('Required parameter query was null or undefined when calling autocompleteInstitutions.');
}
let localVarQueryParameters = new HttpParams({encoder: this.encoder});
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>query, 'query');
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>countryCode, 'countryCode');
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>type, 'type');
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>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/institutions/autocomplete`;
const { basePath, withCredentials } = this.configuration;
return this.httpClient.request<AutocompleteResponse>('get', `${basePath}${localVarPath}`,
{
context: localVarHttpContext,
params: localVarQueryParameters,
responseType: <any>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 \&#39;Duisburg Essen\&#39;.
* @param filter OpenAlex filter, for example \&#39;country_code:DE,type:education\&#39;.
* @param sort Sort field, for example \&#39;works_count:desc\&#39;.
* @param groupBy OpenAlex group_by field, for example \&#39;country_code\&#39;.
* @param perPage Results per page.
* @param page Page number. Use cursor for deep pagination.
* @param cursor Cursor pagination token. Use \&#39;*\&#39; 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<InstitutionsListResponse>;
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<HttpResponse<InstitutionsListResponse>>;
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<HttpEvent<InstitutionsListResponse>>;
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<any> {
let localVarQueryParameters = new HttpParams({encoder: this.encoder});
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>search, 'search');
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>filter, 'filter');
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>sort, 'sort');
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>groupBy, 'group_by');
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>perPage, 'per_page');
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>page, 'page');
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>cursor, 'cursor');
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>sample, 'sample');
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>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<InstitutionsListResponse>('get', `${basePath}${localVarPath}`,
{
context: localVarHttpContext,
params: localVarQueryParameters,
responseType: <any>responseType_,
...(withCredentials ? { withCredentials } : {}),
headers: localVarHeaders,
observe: observe,
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
reportProgress: reportProgress
}
);
}
}
+4 -7
View File
@@ -17,28 +17,25 @@ import { CustomHttpParameterCodec } from '../encoder';
import { Observable } from 'rxjs';
// @ts-ignore
import { HTTPValidationError } from '../model/http-validation-error';
import { HTTPValidationError } from '../model/hTTPValidationError';
// @ts-ignore
import { Item } from '../model/item';
// @ts-ignore
import { ItemCreate } from '../model/item-create';
import { ItemCreate } from '../model/itemCreate';
// @ts-ignore
import { ItemPage } from '../model/item-page';
import { ItemPage } from '../model/itemPage';
// @ts-ignore
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
import { Configuration } from '../configuration';
import { BaseService } from '../api.base.service';
import {
ItemsServiceInterface
} from './items.serviceInterface';
@Injectable({
providedIn: 'root'
})
export class ItemsService extends BaseService implements ItemsServiceInterface {
export class ItemsService extends BaseService {
constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) {
super(basePath, configuration);
@@ -1,70 +0,0 @@
/**
* Innovation Search Engine API
*
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { HttpHeaders } from '@angular/common/http';
import { Observable } from 'rxjs';
import { HTTPValidationError } from '../model/models';
import { Item } from '../model/models';
import { ItemCreate } from '../model/models';
import { ItemPage } from '../model/models';
import { Configuration } from '../configuration';
export interface ItemsServiceInterface {
defaultHeaders: HttpHeaders;
configuration: Configuration;
/**
* Adds a new item.
*
* @endpoint post /api/inse-service/items
* @param itemCreate
*/
addItem(itemCreate: ItemCreate, extraHttpRequestParams?: any): Observable<Item>;
/**
* Deletes the item with the id.
*
* @endpoint delete /api/inse-service/items/{id}
* @param id The item id.
*/
deleteItem(id: number, extraHttpRequestParams?: any): Observable<any>;
/**
* Returns the item with the id.
*
* @endpoint get /api/inse-service/items/{id}
* @param id The item id.
*/
getItem(id: number, extraHttpRequestParams?: any): Observable<Item>;
/**
* Returns a page of items.
*
* @endpoint get /api/inse-service/items
* @param pageOffset The page offset.
* @param pageSize The page size.
*/
getItems(pageOffset?: number, pageSize?: number, extraHttpRequestParams?: any): Observable<ItemPage>;
/**
* Updates the item with the id.
*
* @endpoint put /api/inse-service/items/{id}
* @param id The item id.
* @param itemCreate
*/
updateItem(id: number, itemCreate: ItemCreate, extraHttpRequestParams?: any): Observable<Item>;
}
@@ -1,36 +0,0 @@
/**
* Innovation Search Engine API
*
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { HttpHeaders } from '@angular/common/http';
import { Observable } from 'rxjs';
import { CollaborationNetwork } from '../model/models';
import { FilterProperties } from '../model/models';
import { HTTPValidationError } from '../model/models';
import { Configuration } from '../configuration';
export interface PersonNetworkServiceInterface {
defaultHeaders: HttpHeaders;
configuration: Configuration;
/**
* Get a person\&#39;s collaboration network.
* Returns a person\&#39;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
*/
getCollaborationNetwork(rawUserId: string, filterProperties?: FilterProperties, extraHttpRequestParams?: any): Observable<CollaborationNetwork>;
}
@@ -17,26 +17,23 @@ import { CustomHttpParameterCodec } from '../encoder';
import { Observable } from 'rxjs';
// @ts-ignore
import { CollaborationNetwork } from '../model/collaboration-network';
import { CollaborationNetwork } from '../model/collaborationNetwork';
// @ts-ignore
import { FilterProperties } from '../model/filter-properties';
import { FilterProperties } from '../model/filterProperties';
// @ts-ignore
import { HTTPValidationError } from '../model/http-validation-error';
import { HTTPValidationError } from '../model/hTTPValidationError';
// @ts-ignore
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
import { Configuration } from '../configuration';
import { BaseService } from '../api.base.service';
import {
PersonNetworkServiceInterface
} from './person-network.serviceInterface';
@Injectable({
providedIn: 'root'
})
export class PersonNetworkService extends BaseService implements PersonNetworkServiceInterface {
export class PersonNetworkService extends BaseService {
constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) {
super(basePath, configuration);
@@ -1,122 +0,0 @@
/**
* Innovation Search Engine API
*
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
/* tslint:disable:no-unused-variable member-ordering */
import { Inject, Injectable, Optional } from '@angular/core';
import { HttpClient, HttpHeaders, HttpParams,
HttpResponse, HttpEvent, HttpParameterCodec, HttpContext
} from '@angular/common/http';
import { CustomHttpParameterCodec } from '../encoder';
import { Observable } from 'rxjs';
// @ts-ignore
import { CustomAuthorsListResponse } from '../model/custom-authors-list-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 {
PersonsSearchServiceInterface
} from './persons-search.serviceInterface';
@Injectable({
providedIn: 'root'
})
export class PersonsSearchService extends BaseService implements PersonsSearchServiceInterface {
constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) {
super(basePath, configuration);
}
/**
* Searches for persons with advanced filters (Topic &amp; 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 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 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, topic?: Array<string>, page?: number, pageSize?: number, include?: string, strict?: boolean, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<CustomAuthorsListResponse>;
public searchPersonsList(query?: string, institutionName?: string, topic?: Array<string>, page?: number, pageSize?: number, include?: string, strict?: boolean, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<CustomAuthorsListResponse>>;
public searchPersonsList(query?: string, institutionName?: string, topic?: Array<string>, page?: number, pageSize?: number, include?: string, strict?: boolean, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<CustomAuthorsListResponse>>;
public searchPersonsList(query?: string, institutionName?: string, topic?: Array<string>, page?: number, pageSize?: number, include?: string, strict?: boolean, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
let localVarQueryParameters = new HttpParams({encoder: this.encoder});
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>query, 'query');
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>institutionName, 'institutionName');
if (topic) {
topic.forEach((element) => {
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>element, 'topic');
})
}
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>page, 'page');
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>pageSize, 'pageSize');
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>include, 'include');
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>strict, 'strict');
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<CustomAuthorsListResponse>('get', `${basePath}${localVarPath}`,
{
context: localVarHttpContext,
params: localVarQueryParameters,
responseType: <any>responseType_,
...(withCredentials ? { withCredentials } : {}),
headers: localVarHeaders,
observe: observe,
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
reportProgress: reportProgress
}
);
}
}
@@ -1,40 +0,0 @@
/**
* Innovation Search Engine API
*
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { HttpHeaders } from '@angular/common/http';
import { Observable } from 'rxjs';
import { CustomAuthorsListResponse } from '../model/custom-authors-list-response';
import { HTTPValidationError } from '../model/models';
import { Configuration } from '../configuration';
export interface PersonsSearchServiceInterface {
defaultHeaders: HttpHeaders;
configuration: Configuration;
/**
* Searches for persons with advanced filters (Topic &amp; 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 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
*/
searchPersonsList(query?: string, institutionName?: string, topic?: Array<string>, page?: number, pageSize?: number, include?: string, strict?: boolean, extraHttpRequestParams?: any): Observable<CustomAuthorsListResponse>;
}
+9 -8
View File
@@ -17,28 +17,25 @@ import { CustomHttpParameterCodec } from '../encoder';
import { Observable } from 'rxjs';
// @ts-ignore
import { AuthorsListResponse } from '../model/authors-list-response';
import { AuthorsListResponse } from '../model/authorsListResponse';
// @ts-ignore
import { CustomAuthorsListResponse } from '../model/custom-authors-list-response';
import { CustomAuthorsListResponse } from '../model/customAuthorsListResponse';
// @ts-ignore
import { HTTPValidationError } from '../model/http-validation-error';
import { HTTPValidationError } from '../model/hTTPValidationError';
// @ts-ignore
import { PersonBio } from '../model/person-bio';
import { PersonBio } from '../model/personBio';
// @ts-ignore
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
import { Configuration } from '../configuration';
import { BaseService } from '../api.base.service';
import {
PersonsServiceInterface
} from './persons.serviceInterface';
@Injectable({
providedIn: 'root'
})
export class PersonsService extends BaseService implements PersonsServiceInterface {
export class PersonsService extends BaseService {
constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) {
super(basePath, configuration);
@@ -728,6 +725,8 @@ export class PersonsService extends BaseService implements PersonsServiceInterfa
* @param pageSize Results per page
* @param include Comma-separated include tags
* @param strict Strict institution search by target year
* @param filterMode Filter mode: \&#39;in\&#39; or \&#39;from\&#39;
* @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.
*/
@@ -811,6 +810,8 @@ export class PersonsService extends BaseService implements PersonsServiceInterfa
* @param pageSize Results per page
* @param include Comma-separated include tags
* @param strict Strict institution search by target year
* @param filterMode Filter mode: \&#39;in\&#39; or \&#39;from\&#39;
* @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.
*/
@@ -1,143 +0,0 @@
/**
* Innovation Search Engine API
*
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { HttpHeaders } from '@angular/common/http';
import { Observable } from 'rxjs';
import { AuthorsListResponse } from '../model/models';
import { CustomAuthorsListResponse } from '../model/models';
import { HTTPValidationError } from '../model/models';
import { PersonBio } from '../model/models';
import { Configuration } from '../configuration';
export interface PersonsServiceInterface {
defaultHeaders: HttpHeaders;
configuration: 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
*/
generatePersonBio(authorId: string, include?: string, extraHttpRequestParams?: any): Observable<PersonBio>;
/**
* 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, ...
*/
getPersonByID(id: string, include: string, extraHttpRequestParams?: any): Observable<AuthorsListResponse>;
/**
* 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, ...
*/
getPersonByID_1(id: string, include: string, extraHttpRequestParams?: any): Observable<AuthorsListResponse>;
/**
* 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
*/
searchPersons(authorId?: string, query?: string, include?: string, extraHttpRequestParams?: any): Observable<AuthorsListResponse>;
/**
* 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, ...
*/
searchPersonsAutocomplete(authorName: string, include: string, extraHttpRequestParams?: any): Observable<AuthorsListResponse>;
/**
* 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, ...
*/
searchPersonsAutocomplete_2(authorName: string, include: string, extraHttpRequestParams?: any): Observable<AuthorsListResponse>;
/**
* 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
*/
searchPersonsByInstitution(institutionName: string, include: string, limit?: number, pageOffset?: number, extraHttpRequestParams?: any): Observable<AuthorsListResponse>;
/**
* 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
*/
searchPersonsByInstitution_3(institutionName: string, include: string, limit?: number, pageOffset?: number, extraHttpRequestParams?: any): Observable<AuthorsListResponse>;
/**
* 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
*/
searchPersonsByName(authorName: string, include: string, limit?: number, pageOffset?: number, extraHttpRequestParams?: any): Observable<AuthorsListResponse>;
/**
* 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
*/
searchPersonsByName_4(authorName: string, include: string, limit?: number, pageOffset?: number, extraHttpRequestParams?: any): Observable<AuthorsListResponse>;
searchPersonsList(query?: string, institutionName?: string, topic?: Array<string>, page?: number, pageSize?: number, include?: string, strict?: boolean, filterMode?: string, filterYear?: number, extraHttpRequestParams?: any): Observable<CustomAuthorsListResponse>;
/**
* Searches for persons with advanced filters (Topic &amp; 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 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
*/
searchPersonsList_5(query?: string, institutionName?: string, topic?: Array<string>, page?: number, pageSize?: number, include?: string, strict?: boolean, filterMode?: string, filterYear?: number, extraHttpRequestParams?: any): Observable<CustomAuthorsListResponse>;
}
+161 -7
View File
@@ -17,27 +17,100 @@ import { CustomHttpParameterCodec } from '../encoder';
import { Observable } from 'rxjs';
// @ts-ignore
import { HTTPValidationError } from '../model/http-validation-error';
import { AutocompleteResponse } from '../model/autocompleteResponse';
// @ts-ignore
import { HTTPValidationError } from '../model/hTTPValidationError';
// @ts-ignore
import { TopicsListResponse } from '../model/topicsListResponse';
// @ts-ignore
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
import { Configuration } from '../configuration';
import { BaseService } from '../api.base.service';
import {
TopicsServiceInterface
} from './topics.serviceInterface';
@Injectable({
providedIn: 'root'
})
export class TopicsService extends BaseService implements TopicsServiceInterface {
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 \&#39;machine learning\&#39;.
* @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<AutocompleteResponse>;
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<HttpResponse<AutocompleteResponse>>;
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<HttpEvent<AutocompleteResponse>>;
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<any> {
if (query === null || query === undefined) {
throw new Error('Required parameter query was null or undefined when calling autocompleteTopics.');
}
let localVarQueryParameters = new HttpParams({encoder: this.encoder});
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>query, 'query');
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>domainId, 'domainId');
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>fieldId, 'fieldId');
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>subfieldId, 'subfieldId');
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>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/autocomplete`;
const { basePath, withCredentials } = this.configuration;
return this.httpClient.request<AutocompleteResponse>('get', `${basePath}${localVarPath}`,
{
context: localVarHttpContext,
params: localVarQueryParameters,
responseType: <any>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
@@ -163,7 +236,7 @@ export class TopicsService extends BaseService implements TopicsServiceInterface
}
/**
* Returns the nested topic hierarchy (Domains -> Fields -> Subfields -> Topics).
* Returns the nested topic hierarchy (Domains -&gt; Fields -&gt; Subfields -&gt; 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.
@@ -173,7 +246,6 @@ export class TopicsService extends BaseService implements TopicsServiceInterface
public getTopicHierarchy(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<object>>;
public getTopicHierarchy(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
let localVarQueryParameters = new HttpParams({encoder: this.encoder});
let localVarHeaders = this.defaultHeaders;
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
@@ -184,8 +256,10 @@ export class TopicsService extends BaseService implements TopicsServiceInterface
}
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')) {
@@ -200,6 +274,86 @@ export class TopicsService extends BaseService implements TopicsServiceInterface
let localVarPath = `/api/inse-service/topics/hierarchy`;
const { basePath, withCredentials } = this.configuration;
return this.httpClient.request<object>('get', `${basePath}${localVarPath}`,
{
context: localVarHttpContext,
responseType: <any>responseType_,
...(withCredentials ? { withCredentials } : {}),
headers: localVarHeaders,
observe: observe,
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
reportProgress: reportProgress
}
);
}
/**
* Returns a list of OpenAlex topics.
* @endpoint get /api/topics
* @param search Full-text search, for example \&#39;machine learning\&#39;.
* @param filter OpenAlex filter, for example \&#39;domain.id:1,works_count:&gt;1000\&#39;.
* @param sort Sort field, for example \&#39;works_count:desc\&#39;.
* @param groupBy OpenAlex group_by field, for example \&#39;domain.id\&#39;.
* @param perPage Results per page.
* @param page Page number. Use cursor for deep pagination.
* @param cursor Cursor pagination token. Use \&#39;*\&#39; 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<TopicsListResponse>;
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<HttpResponse<TopicsListResponse>>;
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<HttpEvent<TopicsListResponse>>;
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<any> {
let localVarQueryParameters = new HttpParams({encoder: this.encoder});
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>search, 'search');
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>filter, 'filter');
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>sort, 'sort');
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>groupBy, 'group_by');
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>perPage, 'per_page');
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>page, 'page');
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>cursor, 'cursor');
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>sample, 'sample');
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>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/topics`;
const { basePath, withCredentials } = this.configuration;
return this.httpClient.request<TopicsListResponse>('get', `${basePath}${localVarPath}`,
{
context: localVarHttpContext,
params: localVarQueryParameters,
@@ -1,49 +0,0 @@
/**
* Innovation Search Engine API
*
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { HttpHeaders } from '@angular/common/http';
import { Observable } from 'rxjs';
import { HTTPValidationError } from '../model/models';
import { Configuration } from '../configuration';
export interface TopicsServiceInterface {
defaultHeaders: HttpHeaders;
configuration: Configuration;
/**
* 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.
*/
buildTopicCache(pageSize?: number, saveJson?: boolean, extraHttpRequestParams?: any): Observable<object>;
/**
* Counts topic hierarchy occurrences from cache.
*
* @endpoint get /api/inse-service/topics/count
* @param topic Topic names (repeat parameter).
*/
countTopicHierarchy(topic: Array<string>, extraHttpRequestParams?: any): Observable<object>;
/**
* Returns the nested topic hierarchy (Domains -> Fields -> Subfields -> Topics).
*
* @endpoint get /api/inse-service/topics/hierarchy
*/
getTopicHierarchy(extraHttpRequestParams?: any): Observable<object>;
}
+68 -11
View File
@@ -17,30 +17,29 @@ import { CustomHttpParameterCodec } from '../encoder';
import { Observable } from 'rxjs';
// @ts-ignore
import { HTTPValidationError } from '../model/http-validation-error';
import { HTTPValidationError } from '../model/hTTPValidationError';
// @ts-ignore
import { TopicCount } from '../model/topic-count'; //
import { TopicCount } from '../model/topicCount';
// @ts-ignore
import { TopicsByTime } from '../model/topics-by-time';
import { TopicsByTime } from '../model/topicsByTime';
// @ts-ignore
import { WorkPage } from '../model/work-page';
import { Work } from '../model/work';
// @ts-ignore
import { WorksListResponse } from '../model/works-list-response';
import { WorkPage } from '../model/workPage';
// @ts-ignore
import { WorksListResponse } from '../model/worksListResponse';
// @ts-ignore
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
import { Configuration } from '../configuration';
import { BaseService } from '../api.base.service';
import {
WorksServiceInterface
} from './works.serviceInterface';
@Injectable({
providedIn: 'root'
})
export class WorksService extends BaseService implements WorksServiceInterface {
export class WorksService extends BaseService {
constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) {
super(basePath, configuration);
@@ -152,13 +151,13 @@ export class WorksService extends BaseService implements WorksServiceInterface {
if (institutionId) {
institutionId.forEach((element) => {
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>element, 'institution_id');
<any>element, 'institution_id');
})
}
if (topicId) {
topicId.forEach((element) => {
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>element, 'topic_id');
<any>element, 'topic_id');
})
}
@@ -328,4 +327,62 @@ export class WorksService extends BaseService implements WorksServiceInterface {
);
}
/**
* 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<Work>;
public getWork(workId: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<Work>>;
public getWork(workId: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<Work>>;
public getWork(workId: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
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<Work>('get', `${basePath}${localVarPath}`,
{
context: localVarHttpContext,
responseType: <any>responseType_,
...(withCredentials ? { withCredentials } : {}),
headers: localVarHeaders,
observe: observe,
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
reportProgress: reportProgress
}
);
}
}
@@ -1,61 +0,0 @@
/**
* Innovation Search Engine API
*
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { HttpHeaders } from '@angular/common/http';
import { Observable } from 'rxjs';
import { HTTPValidationError } from '../model/models';
import { TopicCount } from '../model/models'; //
import { TopicsByTime } from '../model/models';
import { WorkPage } from '../model/models';
import { WorksListResponse } from '../model/models';
import { Configuration } from '../configuration';
export interface WorksServiceInterface {
defaultHeaders: HttpHeaders;
configuration: Configuration;
/**
* Returns all works for an author.
*
* @endpoint get /api/works/{author_id}/all
* @param authorId The author id, for example A5023888391.
*/
getAllAuthorWorks(authorId: string, extraHttpRequestParams?: any): Observable<WorksListResponse>;
/**
* 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.
*/
getAuthorWorks(authorId: string, page?: number, size?: number, publicationYear?: Array<number>, type?: Array<string>, language?: Array<string>, institutionId?: Array<string>, topicId?: Array<string>, extraHttpRequestParams?: any): Observable<WorkPage>;
/**
* 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.
*/
getTopicsByTimeByAuthor(authorId: string, maxTopicsPerYear?: number, extraHttpRequestParams?: any): Observable<TopicsByTime>;
}
@@ -7,7 +7,7 @@
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { AuthScope } from './auth-scope';
import { AuthScope } from './authScope';
export interface AccessGrant {
@@ -7,7 +7,7 @@
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { AuthAccount } from './auth-account';
import { AuthAccount } from './authAccount';
export interface AuthScope {
+7 -7
View File
@@ -7,13 +7,13 @@
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { AuthorAffiliationsInner } from './author-affiliations-inner';
import { AuthorParsedLongestName } from './author-parsed-longest-name';
import { DehydratedInstitution } from './dehydrated-institution';
import { AuthorCountsByYearInner } from './author-counts-by-year-inner';
import { AuthorIds } from './author-ids';
import { AuthorSummaryStats } from './author-summary-stats';
import { WorkTopic } from './work-topic';
import { AuthorAffiliationsInner } from './authorAffiliationsInner';
import { AuthorParsedLongestName } from './authorParsedLongestName';
import { DehydratedInstitution } from './dehydratedInstitution';
import { AuthorCountsByYearInner } from './authorCountsByYearInner';
import { AuthorIds } from './authorIds';
import { AuthorSummaryStats } from './authorSummaryStats';
import { WorkTopic } from './workTopic';
/**
@@ -7,7 +7,7 @@
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { DehydratedInstitution } from './dehydrated-institution';
import { DehydratedInstitution } from './dehydratedInstitution';
/**
@@ -7,10 +7,10 @@
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { CollaborationNetworkNodeType } from './collaboration-network-node-type';
import { CollaborationNetworkNodeType } from './collaborationNetworkNodeType';
export interface CollaborationNetworkNode {
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.
*/
@@ -24,7 +24,7 @@ export interface CollaborationNetworkNode {
*/
category: CollaborationNetworkNodeType;
}
export namespace CollaborationNetworkNode {
export namespace AuthorNetworkNode {
}
@@ -7,7 +7,7 @@
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { Model2YrMeanCitedness } from './model2-yr-mean-citedness';
import { Model2YrMeanCitedness } from './model2YrMeanCitedness';
/**
@@ -0,0 +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<string>;
/**
* 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;
}
@@ -9,7 +9,7 @@
*/
import { Meta } from './meta';
import { Author } from './author';
import { GroupByResult } from './group-by-result';
import { GroupByResult } from './groupByResult';
/**
+2 -2
View File
@@ -7,8 +7,8 @@
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { DehydratedInstitution } from './dehydrated-institution';
import { DehydratedAuthor } from './dehydrated-author';
import { DehydratedInstitution } from './dehydratedInstitution';
import { DehydratedAuthor } from './dehydratedAuthor';
/**
@@ -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 { AutocompleteResponseMeta } from './autocompleteResponseMeta';
import { AutocompleteResponseResultsInner } from './autocompleteResponseResultsInner';
/**
* AutocompleteResponse
*/
export interface AutocompleteResponse {
meta?: AutocompleteResponseMeta | null;
results?: Array<AutocompleteResponseResultsInner> | null;
}
@@ -0,0 +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;
}
@@ -0,0 +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;
}
@@ -1,33 +0,0 @@
/**
* Innovation Search Engine API
*
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { FilterInformation } from './filter-information';
import { CollaborationNetworkEdge } from './collaboration-network-edge';
import { CollaborationNetworkNode } from './collaboration-network-node';
export interface CollaborationNetwork {
/**
* The raw person ID of the person whose collaboration network this is.
*/
raw_person_id: string;
/**
* The nodes in the collaboration network.
*/
nodes: Array<CollaborationNetworkNode>;
/**
* The edges in the collaboration network.
*/
edges: Array<CollaborationNetworkEdge>;
/**
* The filter information for the collaboration network, including the minimum and maximum publication years of the works in the collaboration network.
*/
filter_information: FilterInformation;
}
@@ -0,0 +1,43 @@
/**
* 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 { FilterInformation } from './filterInformation';
import { WorkNetworkNode } from './workNetworkNode';
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<WorkNetworkNode>;
/**
* The author nodes in the collaboration network.
*/
author_nodes: Array<AuthorNetworkNode>;
/**
* The institution nodes in the collaboration network.
*/
institution_nodes: Array<InstitutionNetworkNode>;
/**
* The collaboration edges in the collaboration network. A collaboration edge represents a collaboration between two nodes. A -> W and A -> I
*/
collaboration_edges: Array<CollaborationNetworkEdge>;
/**
* The filter information for the collaboration network, including the minimum and maximum publication years of the works in the collaboration network.
*/
filter_information: FilterInformation;
}
@@ -10,9 +10,9 @@
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];
@@ -7,13 +7,13 @@
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { AuthorAffiliationsInner } from './author-affiliations-inner';
import { AuthorParsedLongestName } from './author-parsed-longest-name';
import { DehydratedInstitution } from './dehydrated-institution';
import { AuthorCountsByYearInner } from './author-counts-by-year-inner';
import { AuthorIds } from './author-ids';
import { AuthorSummaryStats } from './author-summary-stats';
import { WorkTopic } from './work-topic';
import { AuthorAffiliationsInner } from './authorAffiliationsInner';
import { AuthorParsedLongestName } from './authorParsedLongestName';
import { DehydratedInstitution } from './dehydratedInstitution';
import { AuthorCountsByYearInner } from './authorCountsByYearInner';
import { AuthorIds } from './authorIds';
import { AuthorSummaryStats } from './authorSummaryStats';
import { WorkTopic } from './workTopic';
export interface CustomAuthor {
@@ -8,13 +8,15 @@
* Do not edit the class manually.
*/
import { Meta } from './meta';
import { CustomAuthor } from './custom-author';
import { GroupByResult } from './group-by-result';
import { CustomAuthor } from './customAuthor';
import { Author } from './author';
import { GroupByResult } from './groupByResult';
export interface CustomAuthorsListResponse {
meta?: Meta | null;
results?: Array<CustomAuthor> | null;
results?: Array<Author> | null;
group_by?: Array<GroupByResult> | null;
placeholder?: CustomAuthor | null;
}
@@ -1,22 +0,0 @@
/**
* Innovation Search Engine API
*
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
export interface FilterProperties {
start_year: number | null;
end_year: number | null;
allowed_institutions: Array<string> | null;
allowed_topics: Array<string> | null;
min_collaborators: number | null;
max_collaborators: number | null;
min_collaborations: number | null;
max_collaborations: number | null;
}
@@ -7,8 +7,8 @@
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { InstitutionInformation } from './institution-information';
import { WorkTopicInformation } from './work-topic-information';
import { InstitutionInformation } from './institutionInformation';
import { WorkTopicInformation } from './workTopicInformation';
export interface FilterInformation {
@@ -0,0 +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.
*/
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;
}
@@ -7,8 +7,8 @@
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { PublicationIdsByAuthorPosition } from './publication-ids-by-author-position';
import { AuthorPositionCount } from './author-position-count';
import { PublicationIdsByAuthorPosition } from './publicationIdsByAuthorPosition';
import { AuthorPositionCount } from './authorPositionCount';
export interface FunderByAuthor {
@@ -18,5 +18,6 @@ export interface FunderByAuthor {
author_position_count: AuthorPositionCount;
publication_ids: PublicationIdsByAuthorPosition;
publication_urls?: { [key: string]: string; };
publication_titles?: { [key: string]: string; };
}
@@ -7,7 +7,7 @@
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { FunderByAuthor } from './funder-by-author';
import { FunderByAuthor } from './funderByAuthor';
export interface FundersByAuthorResponse {
@@ -7,7 +7,7 @@
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { ValidationError } from './validation-error';
import { ValidationError } from './validationError';
export interface HTTPValidationError {
@@ -7,7 +7,7 @@
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { AuthScope } from './auth-scope';
import { AuthScope } from './authScope';
export interface IdentityGrant {
+41
View File
@@ -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.
*/
import { InstitutionIds } from './institutionIds';
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<string> | null;
display_name_alternatives?: Array<string> | null;
works_count?: number | null;
cited_by_count?: number | null;
summary_stats?: AuthorSummaryStats | null;
geo?: InstitutionGeo | null;
lineage?: Array<string> | null;
ids?: InstitutionIds | null;
counts_by_year?: Array<AuthorCountsByYearInner> | null;
works_api_url?: string | null;
created_date?: string | null;
updated_date?: string | null;
}
@@ -0,0 +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.
*/
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;
}
@@ -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.
*/
/**
* External identifiers:
*/
export interface InstitutionIds {
openalex?: string | null;
ror?: string | null;
mag?: number | null;
grid?: string | null;
wikipedia?: string | null;
wikidata?: string | null;
}
@@ -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 { 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 namespace InstitutionNetworkNode {
}
@@ -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 { Meta } from './meta';
import { Institution } from './institution';
import { GroupByResult } from './groupByResult';
/**
* InstitutionsListResponse
*/
export interface InstitutionsListResponse {
meta?: Meta | null;
results?: Array<Institution> | null;
group_by?: Array<GroupByResult> | null;
}
@@ -9,8 +9,6 @@
*/
export interface PersonFilters {
institution?: string | null;
cited_by_count?: number | null;
export interface Latitude {
}
+1 -1
View File
@@ -7,7 +7,7 @@
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { DehydratedSource } from './dehydrated-source';
import { DehydratedSource } from './dehydratedSource';
/**
+14
View File
@@ -0,0 +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 {
}
+1 -1
View File
@@ -7,7 +7,7 @@
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { CostUsd } from './cost-usd';
import { CostUsd } from './costUsd';
/**
+76 -57
View File
@@ -1,67 +1,86 @@
export * from './access-grant';
export * from './auth-account';
export * from './auth-scope';
export * from './accessGrant';
export * from './authAccount';
export * from './authScope';
export * from './author';
export * from './author-affiliations-inner';
export * from './author-counts-by-year-inner';
export * from './author-ids';
export * from './author-parsed-longest-name';
export * from './author-position-count';
export * from './author-summary-stats';
export * from './authors-list-response';
export * from './authorAffiliationsInner';
export * from './authorCountsByYearInner';
export * from './authorIds';
export * from './authorNetworkNode';
export * from './authorParsedLongestName';
export * from './authorPositionCount';
export * from './authorSummaryStats';
export * from './authorsFilterProperties';
export * from './authorsListResponse';
export * from './authorship';
export * from './autocompleteResponse';
export * from './autocompleteResponseMeta';
export * from './autocompleteResponseResultsInner';
export * from './award';
export * from './collaboration-network';
export * from './collaboration-network-edge';
export * from './collaboration-network-node';
export * from './collaboration-network-node-type';
export * from './cost-usd';
export * from './custom-author';
export * from './custom-authors-list-response';
export * from './dehydrated-author';
export * from './dehydrated-funder';
export * from './dehydrated-institution';
export * from './dehydrated-source';
export * from './filter-information';
export * from './filter-properties';
export * from './funder-by-author';
export * from './funders-by-author-response';
export * from './collaborationNetwork';
export * from './collaborationNetworkEdge';
export * from './collaborationNetworkNodeType';
export * from './costUsd';
export * from './customAuthor';
export * from './customAuthorsListResponse';
export * from './dehydratedAuthor';
export * from './dehydratedFunder';
export * from './dehydratedInstitution';
export * from './dehydratedSource';
export * from './filterInformation';
export * from './filterProperties';
export * from './funderByAuthor';
export * from './fundersByAuthorResponse';
export * from './fwci';
export * from './group-by-result';
export * from './http-validation-error';
export * from './identity-grant';
export * from './institution-information';
export * from './groupByResult';
export * from './hTTPValidationError';
export * from './identityGrant';
export * from './institution';
export * from './institutionGeo';
export * from './institutionIds';
export * from './institutionInformation';
export * from './institutionNetworkNode';
export * from './institutionsListResponse';
export * from './item';
export * from './item-create';
export * from './item-page';
export * from './itemCreate';
export * from './itemPage';
export * from './latitude';
export * from './location';
export * from './longitude';
export * from './meta';
export * from './model2-yr-mean-citedness';
export * from './open-access';
export * from './person-bio';
export * from './publication-ids-by-author-position';
export * from './publications-by-author-response';
export * from './model2YrMeanCitedness';
export * from './openAccess';
export * from './personBio';
export * from './publicationIdsByAuthorPosition';
export * from './publicationsByAuthorResponse';
export * from './score';
export * from './topic-count';
export * from './topics-by-time';
export * from './topics-by-year';
export * from './validation-error';
export * from './validation-error-loc-inner';
export * from './topic';
export * from './topicCount';
export * from './topicDomain';
export * from './topicField';
export * from './topicIds';
export * from './topicSubfield';
export * from './topicsByTime';
export * from './topicsByYear';
export * from './topicsListResponse';
export * from './validationError';
export * from './validationErrorLocInner';
export * from './value';
export * from './work';
export * from './work-biblio';
export * from './work-citation-normalized-percentile';
export * from './work-cited-by-percentile-year';
export * from './work-counts-by-year-inner';
export * from './work-has-content';
export * from './work-ids';
export * from './work-keyword';
export * from './work-mesh-inner';
export * from './work-page';
export * from './work-sustainable-development-goals-inner';
export * from './work-topic';
export * from './work-topic-domain';
export * from './work-topic-field';
export * from './work-topic-information';
export * from './work-topic-subfield';
export * from './works-list-response';
export * from './workBiblio';
export * from './workCitationNormalizedPercentile';
export * from './workCitedByPercentileYear';
export * from './workCountsByYearInner';
export * from './workHasContent';
export * from './workIds';
export * from './workKeyword';
export * from './workMeshInner';
export * from './workNetworkNode';
export * from './workPage';
export * from './workSustainableDevelopmentGoalsInner';
export * from './workTopic';
export * from './workTopicDomain';
export * from './workTopicField';
export * from './workTopicInformation';
export * from './workTopicSubfield';
export * from './worksFilterProperties';
export * from './worksListResponse';
@@ -1,20 +0,0 @@
/**
* Innovation Search Engine API
*
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { PersonFilters } from './person-filters';
export interface PersonSearchRequest {
name?: string | null;
filters?: PersonFilters;
include?: string | null;
limit?: number | null;
page_offset?: number | null;
}
+34
View File
@@ -0,0 +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.
*/
import { TopicDomain } from './topicDomain';
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<string> | 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;
}
+19
View File
@@ -0,0 +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;
}
+19
View File
@@ -0,0 +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;
}
+19
View File
@@ -0,0 +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;
}
+19
View File
@@ -0,0 +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;
}
@@ -7,7 +7,7 @@
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { TopicsByYear } from './topics-by-year';
import { TopicsByYear } from './topicsByYear';
export interface TopicsByTime {
@@ -7,7 +7,7 @@
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { TopicCount } from './topic-count';
import { TopicCount } from './topicCount';
export interface TopicsByYear {
@@ -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 { Meta } from './meta';
import { GroupByResult } from './groupByResult';
import { Topic } from './topic';
/**
* TopicsListResponse
*/
export interface TopicsListResponse {
meta?: Meta | null;
results?: Array<Topic> | null;
group_by?: Array<GroupByResult> | null;
}
@@ -7,7 +7,7 @@
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { ValidationErrorLocInner } from './validation-error-loc-inner';
import { ValidationErrorLocInner } from './validationErrorLocInner';
export interface ValidationError {
+12 -12
View File
@@ -7,22 +7,22 @@
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { DehydratedFunder } from './dehydrated-funder';
import { DehydratedFunder } from './dehydratedFunder';
import { Authorship } from './authorship';
import { OpenAccess } from './open-access';
import { WorkIds } from './work-ids';
import { WorkSustainableDevelopmentGoalsInner } from './work-sustainable-development-goals-inner';
import { WorkTopic } from './work-topic';
import { WorkCountsByYearInner } from './work-counts-by-year-inner';
import { WorkKeyword } from './work-keyword';
import { WorkCitationNormalizedPercentile } from './work-citation-normalized-percentile';
import { OpenAccess } from './openAccess';
import { WorkIds } from './workIds';
import { WorkSustainableDevelopmentGoalsInner } from './workSustainableDevelopmentGoalsInner';
import { WorkTopic } from './workTopic';
import { WorkCountsByYearInner } from './workCountsByYearInner';
import { WorkKeyword } from './workKeyword';
import { WorkCitationNormalizedPercentile } from './workCitationNormalizedPercentile';
import { Award } from './award';
import { Fwci } from './fwci';
import { WorkMeshInner } from './work-mesh-inner';
import { WorkCitedByPercentileYear } from './work-cited-by-percentile-year';
import { WorkHasContent } from './work-has-content';
import { WorkMeshInner } from './workMeshInner';
import { WorkCitedByPercentileYear } from './workCitedByPercentileYear';
import { WorkHasContent } from './workHasContent';
import { Location } from './location';
import { WorkBiblio } from './work-biblio';
import { WorkBiblio } from './workBiblio';
/**

Some files were not shown because too many files have changed in this diff Show More