Project

General

Profile

1
import {
2
  Author,
3
  HostedByCollectedFrom,
4
  Journal,
5
  Organization,
6
  Project,
7
  RelationResult
8
} from "../result-preview/result-preview";
9

    
10
export interface Id {
11
  type: "pmid" | "doi" | "pmc" | "handle" | "openaire";
12
  value: string;
13
  trust: number
14
}
15

    
16
export interface Reference {
17
  name?: string;
18
  ids: Id[];
19
}
20

    
21
export class ResultLandingInfo {
22
  // PUBLICATION, DATASET, SOFTWARE, ORP
23
  record;
24
  resultType: "publication"|"dataset"|"other"|"software";
25
  // PUBLICATION, DATASET, SOFTWARE, ORP, DELETED_BY_INFERENCE
26
  title: string;
27
  accessMode: string;
28
  authors: Author[];
29
  date: string;
30
  dateofacceptance: Date;
31
  embargoEndDate: Date;
32
  types: string[];
33
  identifiers: Map<string, string[]>;     //key is the classname
34
  languages: string[];
35
  countries: string[];
36
  description: string;
37
  
38
  hostedBy_collectedFrom: HostedByCollectedFrom[];
39
  
40
  // PUBLICATION, DATASET, SOFTWARE, ORP
41
  fundedByProjects: Project[];
42
  
43
  underCurationMessage: boolean;
44
  publisher: string;
45
  journal: Journal;
46
  
47
  subjects: string[];
48
  otherSubjects: Map<string, string[]>;
49
  classifiedSubjects: Map<string, string[]>;          //<class of subject, subjects>
50
  
51
  // percentage is for trust
52
  relatedResearchResults: RelationResult[];
53
  // percentage is for similarity
54
  similarResearchResults: RelationResult[];
55
  //isSupplementedBy
56
  supplementaryResearchResults: RelationResult[];
57
  //isSupplementTo
58
  supplementedByResearchResults: RelationResult[];
59
  
60
  contexts: { "labelContext": string, "labelCategory": string, "labelConcept": string, "inline": boolean }[];
61
  
62
  deletedByInferenceIds: string[];
63
  
64
  // PUBLICATION, DATASET, ORP
65
  references: Reference[];
66
  
67
  // PUBLICATION
68
  bioentities: Map<string, Map<string, string>>;      //<site name, <>>
69
  organizations: Organization[];
70
  openCitations: { "url": string, "title": string, "year": string, "doi": string, "authors": string[] }[];
71
  
72
  // DATASET
73
  subtitle: string;
74
  
75
  // SOFTWARE
76
  programmingLanguages: string[];
77
}
(12-12/13)