import { Author, HostedByCollectedFrom, Journal, Organization, Project, RelationResult } from "../result-preview/result-preview"; export interface Id { type: "pmid" | "doi" | "pmc" | "handle" | "openaire"; value: string; trust: number } export interface Reference { name?: string; ids: Id[]; } export class ResultLandingInfo { relcanId; // PUBLICATION, DATASET, SOFTWARE, ORP record; resultType: "publication"|"dataset"|"other"|"software"; // PUBLICATION, DATASET, SOFTWARE, ORP, DELETED_BY_INFERENCE title: string; accessMode: string; authors: Author[]; date: string; dateofacceptance: Date; embargoEndDate: Date; types: string[]; identifiers: Map; //key is the classname languages: string[]; countries: string[]; description: string; hostedBy_collectedFrom: HostedByCollectedFrom[]; // PUBLICATION, DATASET, SOFTWARE, ORP fundedByProjects: Project[]; underCurationMessage: boolean; publisher: string; journal: Journal; subjects: string[]; otherSubjects: Map; classifiedSubjects: Map; // // percentage is for trust relatedResearchResults: RelationResult[]; // percentage is for similarity similarResearchResults: RelationResult[]; //isSupplementedBy supplementaryResearchResults: RelationResult[]; //isSupplementTo supplementedByResearchResults: RelationResult[]; contexts: { "labelContext": string, "labelCategory": string, "labelConcept": string, "inline": boolean }[]; deletedByInferenceIds: string[]; // PUBLICATION, DATASET, ORP references: Reference[]; // PUBLICATION bioentities: Map>; //> organizations: Organization[]; openCitations: { "url": string, "title": string, "year": string, "doi": string, "authors": string[] }[]; // DATASET subtitle: string; // SOFTWARE programmingLanguages: string[]; }