Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DO NOT MERGE] CCF.OWL v1.x version of the code #984

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion projects/ccf-api/ccf-cache/ccf.owl.n3store.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion projects/ccf-api/ccf-cache/cell-type-tree-model.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion projects/ccf-api/ccf-cache/ontology-tree-model.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion projects/ccf-api/ccf-cache/reference-organs.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions projects/ccf-body-ui/src/lib/util/process-reference-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ import { processSpatialEntities } from './process-spatial-entities';


export const referenceDataConfig = {
extractionSitesUrl: 'http://localhost:8080/source_data/ASCT-B_3D_Models_Extraction_Sites.csv',
extractionSitesUrl: 'http://localhost:8080/source_data/asct-b-3d-models-extraction-sites.csv',
extractionSitesConfigUrl: 'http://localhost:8080/source_data/extraction-site-config.csv',
anatomicalStructuresUrl: 'http://localhost:8080/source_data/ASCT-B_3D_Models_Mapping.csv',
anatomicalStructuresUrl: 'http://localhost:8080/source_data/asct-b-3d-models-mapping.csv',
referenceOrganConfigUrl: 'http://localhost:8080/source_data/reference-organ-config.csv'
};

Expand Down
3 changes: 3 additions & 0 deletions projects/ccf-database/src/lib/queries/ontology-tree-n3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@ export function getAnatomicalStructureTreeModelSlowly(store: Store): OntologyTre
// 'http://purl.obolibrary.org/obo/FMA_24977', // Knee, R
'http://purl.obolibrary.org/obo/UBERON_0002107', // Liver
'http://purl.obolibrary.org/obo/UBERON_0002048', // Lungs
'http://purl.obolibrary.org/obo/UBERON_0001911', // Mammary Gland
// 'http://purl.obolibrary.org/obo/FMA_57991', // Mammary Gland, L
// 'http://purl.obolibrary.org/obo/FMA_57987', // Mammary Gland, R
'http://purl.obolibrary.org/obo/UBERON_0000992', // Ovary
// 'http://purl.obolibrary.org/obo/FMA_7214', // Ovary, L
// 'http://purl.obolibrary.org/obo/FMA_7213', // Ovary, R
Expand Down
2 changes: 1 addition & 1 deletion projects/ccf-database/src/precompute-reference-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ if (!(global as { fetch: unknown }).fetch) {

async function main(outputFile?: string): Promise<void> {
const db = new CCFDatabase({
ccfOwlUrl: 'http://localhost:8081/dist/ccf.owl',
ccfOwlUrl: 'http://localhost:8080/dist/ccf.owl',
ccfContextUrl: 'https://hubmapconsortium.github.io/hubmap-ontology/ccf-context.jsonld',
hubmapDataService: 'search-api',
hubmapPortalUrl: 'https://portal.hubmapconsortium.org/',
Expand Down
2 changes: 1 addition & 1 deletion projects/ccf-database/src/serialize-ccf-database.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ if (!(global as { fetch: unknown }).fetch) {

async function main(outputFile?: string): Promise<void> {
const db = new CCFDatabase({
ccfOwlUrl: 'http://localhost:8081/dist/ccf.owl',
ccfOwlUrl: 'http://localhost:8080/dist/ccf.owl',
ccfContextUrl: 'https://hubmapconsortium.github.io/hubmap-ontology/ccf-context.jsonld',
hubmapDataService: 'search-api',
hubmapPortalUrl: 'https://portal.hubmapconsortium.org/',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ export const DEFAULT_ICONS: DefaultIconDefinition[] = [
{ name: 'lung-right', namespace: 'app', url: 'assets/icons/organs/ico-organs-lung-right.svg' },
{ name: 'lung', namespace: 'app', url: 'assets/icons/organs/ico-organs-lung.svg' },
{ name: 'lymph-nodes', namespace: 'app', url: 'assets/icons/organs/ico-organs-lymph-nodes.svg' },
{ name: 'mammary-gland', namespace: 'app', url: 'assets/icons/organs/ico-organs-breast.svg' },
{ name: 'neuron', namespace: 'app', url: 'assets/icons/organs/ico-organs-neuron.svg' },
{ name: 'ovaries', namespace: 'app', url: 'assets/icons/organs/ico-organs-ovaries.svg' },
{ name: 'ovary-left', namespace: 'app', url: 'assets/icons/organs/ico-organs-ovary-left.svg' },
Expand Down
2 changes: 1 addition & 1 deletion projects/ccf-eui/src/assets/ccf.owl.n3store.json

Large diffs are not rendered by default.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion projects/ccf-eui/src/environments/environment.staging.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export const environment = {
hubmapToken: localStorage.getItem('HUBMAP_TOKEN') ?? '',

useRemoteApi: false,
remoteApiEndpoint: 'https://ccf-api--staging.herokuapp.com/v1'
remoteApiEndpoint: 'https://r5i95k35v5.us-east-2.awsapprunner.com/v1'
},
customization: {
theme: 'hubmap',
Expand Down
4 changes: 2 additions & 2 deletions projects/ccf-eui/src/environments/environment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ export const environment = {
hubmapToken: localStorage.getItem('HUBMAP_TOKEN') ?? '',

useRemoteApi: false,
remoteApiEndpoint: 'https://ccf-api--staging.herokuapp.com/v1'
// remoteApiEndpoint: 'https://ccf-api.hubmapconsortium.org/v1',
remoteApiEndpoint: 'https://r5i95k35v5.us-east-2.awsapprunner.com/v1'
// remoteApiEndpoint: 'https://ccf-api.hubmapconsortium.org/v1'
// remoteApiEndpoint: 'http://localhost:8080/v1'
},
customization: {
Expand Down
3 changes: 2 additions & 1 deletion projects/ccf-eui/src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@

<body class="mat-typography">
<ccf-eui
use-remote-api="true"
use-remote-api="false"
></ccf-eui>
<!-- Set use-remote-api back to "true" if it goes back into staging/production. -->
</body>

</html>
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ export const DEFAULT_ICONS: DefaultIconDefinition[] = [
{ name: 'lung-right', namespace: 'app', url: 'assets/icons/organs/ico-organs-lung-right.svg' },
{ name: 'lung', namespace: 'app', url: 'assets/icons/organs/ico-organs-lung.svg' },
{ name: 'lymph-nodes', namespace: 'app', url: 'assets/icons/organs/ico-organs-lymph-nodes.svg' },
{ name: 'mammary-gland', namespace: 'app', url: 'assets/icons/organs/ico-organs-breast.svg' },
{ name: 'neuron', namespace: 'app', url: 'assets/icons/organs/ico-organs-neuron.svg' },
{ name: 'ovaries', namespace: 'app', url: 'assets/icons/organs/ico-organs-ovaries.svg' },
{ name: 'ovary-left', namespace: 'app', url: 'assets/icons/organs/ico-organs-ovary-left.svg' },
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading