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