UNPKG

1.1 kBTypeScriptView Raw
1// NOTE organism is in its own file, organism.d.ts.
2// This should not need to be specified here, because it's
3// already specified in tsconfig.js, but in Vim, Syntastic
4// is saying organism is undefined if I remove this.
5/// <reference path="./organism.d.ts" />
6
7// for details on vocab, see http://vocabularies.bridgedb.org/ops#
8
9interface DataSource {
10 id: string;
11 conventionalName: string;
12 entityType: string; // http://vocabularies.bridgedb.org/ops#type
13 fullName: string;
14 hasIdentifiersOrgPattern: string;
15 hasPrimaryUriPattern: string;
16 hasRegexPattern: string;
17 hasRegexUriPattern: string;
18 idExample: string;
19 miriamUrn: string;
20 primary: boolean;
21 preferredPrefix: string;
22 systemCode: string;
23 type: string; // http://www.w3.org/1999/02/22-rdf-syntax-ns#type
24 alternatePrefix?: string | string[];
25 sameAs?: string[]; // http://www.w3.org/2002/07/owl#sameAs
26 subject?: string | string[];
27}
28
29interface Xref {
30 xrefIdentifier: string;
31 symbol?: string;
32 id?: string;
33 isDataItemIn?: DataSource;
34 organism?: organism;
35 type?: string[];
36 xref?: [string, string];
37}