@jax-data-science/api-clients 0.0.1-0 → 0.0.1-a
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -0
- package/fesm2022/jax-data-science-api-clients.mjs +369 -102
- package/fesm2022/jax-data-science-api-clients.mjs.map +1 -1
- package/index.d.ts +17 -9
- package/lib/models/isa-data/isa-data.model.d.ts +73 -0
- package/lib/{asynctask → services/asynctask}/asynctask.service.d.ts +1 -1
- package/lib/{base.service.d.ts → services/base.service.d.ts} +1 -1
- package/lib/services/isa-data/isa-data.service.d.ts +60 -0
- package/lib/services/ontology/ontology.model.d.ts +80 -0
- package/lib/services/ontology/ontology.service.base.d.ts +11 -0
- package/lib/{ontology/ontology.service.d.ts → services/ontology/ontology.service.jax.d.ts} +5 -8
- package/lib/services/ontology/ontology.service.ols.d.ts +22 -0
- package/lib/services/ontology/ontology.shared.d.ts +5 -0
- package/lib/tokens/isa-data-config.token.d.ts +5 -0
- package/package.json +1 -1
- package/lib/ontology/ontology.model.d.ts +0 -27
- /package/lib/{asynctask → services/asynctask}/asynctask.model.d.ts +0 -0
- /package/lib/{mvar → services/mvar}/models/response/dtos.d.ts +0 -0
- /package/lib/{mvar → services/mvar}/mvar-client.module.d.ts +0 -0
- /package/lib/{mvar → services/mvar}/mvar.service.d.ts +0 -0
- /package/lib/{snp-grid → services/snp-grid}/models/response/dtos.d.ts +0 -0
- /package/lib/{snp-grid → services/snp-grid}/snp-grid-client.module.d.ts +0 -0
- /package/lib/{snp-grid → services/snp-grid}/snp-grid.service.d.ts +0 -0
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
export interface OntologyConfig {
|
|
2
|
+
name: string;
|
|
3
|
+
prefix: string;
|
|
4
|
+
github: {
|
|
5
|
+
api: string;
|
|
6
|
+
home: string;
|
|
7
|
+
};
|
|
8
|
+
home: string;
|
|
9
|
+
api: {
|
|
10
|
+
docs: string;
|
|
11
|
+
base: string;
|
|
12
|
+
};
|
|
13
|
+
base_file: string;
|
|
14
|
+
international: boolean;
|
|
15
|
+
description: string;
|
|
16
|
+
}
|
|
17
|
+
export declare enum Ontology {
|
|
18
|
+
HP = "HP",
|
|
19
|
+
MONDO = "MONDO",
|
|
20
|
+
MP = "MP",
|
|
21
|
+
CL = "CL",
|
|
22
|
+
MAXO = "MAXO"
|
|
23
|
+
}
|
|
24
|
+
export interface OntologyTerm {
|
|
25
|
+
id: string;
|
|
26
|
+
name: string;
|
|
27
|
+
}
|
|
28
|
+
export interface OLSTerm {
|
|
29
|
+
appearsIn: string[];
|
|
30
|
+
curie: string;
|
|
31
|
+
definedBy: string[];
|
|
32
|
+
definition?: Array<{
|
|
33
|
+
type: string[];
|
|
34
|
+
value: string;
|
|
35
|
+
axioms?: Array<{
|
|
36
|
+
[key: string]: string;
|
|
37
|
+
}>;
|
|
38
|
+
}>;
|
|
39
|
+
definitionProperty?: string;
|
|
40
|
+
directAncestor?: string[];
|
|
41
|
+
directParent?: Array<string>;
|
|
42
|
+
hasDirectChildren?: boolean;
|
|
43
|
+
hasDirectParents?: boolean;
|
|
44
|
+
hasHierarchicalChildren?: boolean;
|
|
45
|
+
hasHierarchicalParents?: boolean;
|
|
46
|
+
hierarchicalAncestor?: string[];
|
|
47
|
+
hierarchicalParent?: Array<string | {
|
|
48
|
+
type: string[];
|
|
49
|
+
value: string;
|
|
50
|
+
axioms?: Array<{
|
|
51
|
+
[key: string]: string;
|
|
52
|
+
}>;
|
|
53
|
+
}>;
|
|
54
|
+
hierarchicalProperty?: string;
|
|
55
|
+
imported?: boolean;
|
|
56
|
+
iri: string;
|
|
57
|
+
isDefiningOntology?: boolean;
|
|
58
|
+
isObsolete?: boolean;
|
|
59
|
+
isPreferredRoot?: boolean;
|
|
60
|
+
label?: string[];
|
|
61
|
+
linkedEntities?: Record<string, any>;
|
|
62
|
+
linksTo?: string[];
|
|
63
|
+
numDescendants?: number;
|
|
64
|
+
numHierarchicalDescendants?: number;
|
|
65
|
+
ontologyId?: string;
|
|
66
|
+
ontologyIri?: string;
|
|
67
|
+
ontologyPreferredPrefix?: string;
|
|
68
|
+
searchableAnnotationValues?: any[];
|
|
69
|
+
shortForm?: string;
|
|
70
|
+
type?: string[];
|
|
71
|
+
[key: string]: any;
|
|
72
|
+
}
|
|
73
|
+
export interface OLSResponse {
|
|
74
|
+
page: number;
|
|
75
|
+
numElements: number;
|
|
76
|
+
totalPages: number;
|
|
77
|
+
totalElements: number;
|
|
78
|
+
elements: OLSTerm[];
|
|
79
|
+
facetFieldsToCounts?: Record<string, any>;
|
|
80
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { Ontology, OntologyTerm } from './ontology.model';
|
|
3
|
+
import { CollectionResponse, Response } from '../../models/response';
|
|
4
|
+
export declare abstract class OntologyService {
|
|
5
|
+
abstract search(query: string, limit: number, ontology: Ontology): Observable<CollectionResponse<OntologyTerm>>;
|
|
6
|
+
abstract term(id: string): Observable<Response<OntologyTerm>>;
|
|
7
|
+
abstract parents(id: string): Observable<CollectionResponse<OntologyTerm>>;
|
|
8
|
+
abstract children(id: string): Observable<CollectionResponse<OntologyTerm>>;
|
|
9
|
+
abstract ancestors(id: string): Observable<CollectionResponse<OntologyTerm>>;
|
|
10
|
+
abstract descendants(id: string): Observable<CollectionResponse<OntologyTerm>>;
|
|
11
|
+
}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { HttpClient } from '@angular/common/http';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import { Ontology, OntologyTerm } from './ontology.model';
|
|
4
|
-
import { CollectionResponse, Response } from '
|
|
4
|
+
import { CollectionResponse, Response } from '../../models/response';
|
|
5
|
+
import { OntologyService } from './ontology.service.base';
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class OntologyService {
|
|
7
|
+
export declare class JaxOntologyService extends OntologyService {
|
|
7
8
|
private httpClient;
|
|
8
9
|
config_location: string;
|
|
9
10
|
private config;
|
|
@@ -43,14 +44,10 @@ export declare class OntologyService {
|
|
|
43
44
|
* @param id - the term ID
|
|
44
45
|
*/
|
|
45
46
|
descendants(id: string): Observable<CollectionResponse<OntologyTerm>>;
|
|
46
|
-
/**
|
|
47
|
-
* Get the ontology from curie
|
|
48
|
-
*/
|
|
49
|
-
ontologyFromCurie(curie: string): Ontology;
|
|
50
47
|
/**
|
|
51
48
|
* Get the ontology api base url configuration
|
|
52
49
|
**/
|
|
53
50
|
ontologyBaseResolver(ontology: Ontology): string;
|
|
54
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
55
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<
|
|
51
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<JaxOntologyService, never>;
|
|
52
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<JaxOntologyService>;
|
|
56
53
|
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { HttpClient } from '@angular/common/http';
|
|
2
|
+
import { OntologyService } from './ontology.service.base';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
|
+
import { OLSTerm, Ontology, OntologyTerm } from './ontology.model';
|
|
5
|
+
import { CollectionResponse, Response } from '../../models/response';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class OLSOntologyService extends OntologyService {
|
|
8
|
+
private httpClient;
|
|
9
|
+
private OLS_SEARCH_BASE;
|
|
10
|
+
private OLS_ENTITY_BASE;
|
|
11
|
+
private PURL_BASE;
|
|
12
|
+
constructor(httpClient: HttpClient);
|
|
13
|
+
term(id: string): Observable<Response<OntologyTerm>>;
|
|
14
|
+
search(query: string, limit: number, ontology: Ontology): Observable<CollectionResponse<OntologyTerm>>;
|
|
15
|
+
parents(id: string): Observable<CollectionResponse<OntologyTerm>>;
|
|
16
|
+
children(id: string): Observable<CollectionResponse<OntologyTerm>>;
|
|
17
|
+
ancestors(id: string): Observable<CollectionResponse<OntologyTerm>>;
|
|
18
|
+
descendants(id: string): Observable<CollectionResponse<OntologyTerm>>;
|
|
19
|
+
mapOLSTermToOntologyTerm(olsTerm: OLSTerm): OntologyTerm;
|
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OLSOntologyService, never>;
|
|
21
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<OLSOntologyService>;
|
|
22
|
+
}
|
package/package.json
CHANGED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
export interface OntologyConfig {
|
|
2
|
-
name: string;
|
|
3
|
-
prefix: string;
|
|
4
|
-
github: {
|
|
5
|
-
api: string;
|
|
6
|
-
home: string;
|
|
7
|
-
};
|
|
8
|
-
home: string;
|
|
9
|
-
api: {
|
|
10
|
-
docs: string;
|
|
11
|
-
base: string;
|
|
12
|
-
};
|
|
13
|
-
base_file: string;
|
|
14
|
-
international: boolean;
|
|
15
|
-
description: string;
|
|
16
|
-
}
|
|
17
|
-
export declare enum Ontology {
|
|
18
|
-
HP = "HP",
|
|
19
|
-
MONDO = "MONDO",
|
|
20
|
-
MP = "MP",
|
|
21
|
-
CL = "CL",
|
|
22
|
-
MAXO = "MAXO"
|
|
23
|
-
}
|
|
24
|
-
export interface OntologyTerm {
|
|
25
|
-
id: string;
|
|
26
|
-
name: string;
|
|
27
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|