diff --git a/docs/advanced/datasets.md b/docs/advanced/datasets.md index 7559f8b632c9f9a6a4578e080b03a857b67acab8..ac2602eddf1f292e21a2355b009b7f5bb81e75dc 100644 --- a/docs/advanced/datasets.md +++ b/docs/advanced/datasets.md @@ -89,7 +89,7 @@ The reference space associated with datasets are queried with the following quer } ``` -The dataset is considered relevant (returns true for this conditional) if the stripped `fullId` attribute[^1] of any of the reference spaces matches to: +The dataset is considered relevant if the stripped `fullId` attribute[^1] of any of the reference spaces matches to: [^1]: `fullId` is a URI, which in the case of Human Brain Project Knowledge Graph, always starts with `https://nexus.humanbrainproject.org/v0/data/`. Stripping the domain allows for easier comparison. @@ -99,9 +99,6 @@ The dataset is considered relevant (returns true for this conditional) if the st | MNI 152 ICBM 2009c Nonlinear Asymmetric | minds/core/dataset/v1.0.0/dafcffc5-4826-4bf1-8ff6-46b8a31ff8e2 | | MNI Colin 27 | minds/core/dataset/v1.0.0/7f39f7be-445b-47c0-9791-e971c0b6d992 | -!!! important - If the dataset does not have any reference spaces defined, it is considered NOT relevant for any template space, and will return `false` for this conditional. - ### Parcellation atlas The parcellation atlas associated with the dataset are quried with the following querying links: @@ -145,7 +142,7 @@ The parcellation region associated with the dataset are queried with the followi "relative_path": "http://schema.org/name" }, { - "fieldname": "query:@id", + "fieldname": "query:fullId", "relative_path": "@id" }, { @@ -164,7 +161,7 @@ The parcellation region associated with the dataset are queried with the followi } ``` -A dataset is considered relevant (returns true for this conditional) if **both** of the following conditionals are true: +A dataset is considered relevant if **both** of the following conditionals are true: #### Parcellation name @@ -180,17 +177,21 @@ If the name of the selected parcellation in interactive atlas viewer matches exa #### Parcellation region -If the name of any of the `parcellationRegion` matches either the name or any of the `relatedAreas` attribute of any of the regions of the selected parcellation. +To determine if the dataset is relevant based on the parcellation region, **either one** of the following conditions needs to be met: + +- If the fullId of any of the `parcellationRegion` matches any of the fullId of a region described under the selected parcellation +- If the fullId of any of the `parcellationRegion` matches the fullId of any `relatedAreas` of a region described under the selected parcellation. -For example, the following dataset ... +For example, the following datasets ... ```json { - "name": "dataset foobar", + "name": "foo", "parcellationRegion": [ { "species": [], - "name": "Area 44v", + "name": "Area 44d", + "fullId": "minds/core/parcellationregion/v1.0.0/8aeae833-81c8-4e27-a8d6-deee339d6052", "alias": null } ] @@ -198,15 +199,51 @@ For example, the following dataset ... ``` +```json +{ + "name": "bar", + "parcellationRegion": [ + { + "species": [], + "name": "Area 44 (IFG)", + "fullId": "minds/core/parcellationregion/v1.0.0/8a6be82c-5947-4fff-8348-cf9bf73e4f40", + "alias": null + } + ] +} +``` + ... will be considered relevant to `JuBrain Cytoarchitectonic Atlas`, as it has an region entry with the following attributes: ```json { "name": "Area 44 (IFG)", + "fullId": { + "kg": { + "kgSchema": "minds/core/parcellationregion/v1.0.0", + "kgId": "8a6be82c-5947-4fff-8348-cf9bf73e4f40" + } + }, "relatedAreas": [ - "Area 44v", - "Area 44d" + { + "name": "Area 44v", + "fullId": { + "kg": { + "kgSchema": "minds/core/parcellationregion/v1.0.0", + "kgId": "7e5e7aa8-28b8-445b-8980-2a6f3fa645b3" + } + } + }, + { + "name": "Area 44d", + "fullId": { + "kg": { + "kgSchema": "minds/core/parcellationregion/v1.0.0", + "kgId": "8aeae833-81c8-4e27-a8d6-deee339d6052" + } + } + } ] } ``` \ No newline at end of file diff --git a/src/ui/signinBanner/signinBanner.template.html b/src/ui/signinBanner/signinBanner.template.html index 34dc1f4553a12d20b721a202eb9680b30e18a7d8..18254bba0fdc1b8d1145e3ad8b46100639d0a806 100644 --- a/src/ui/signinBanner/signinBanner.template.html +++ b/src/ui/signinBanner/signinBanner.template.html @@ -71,11 +71,6 @@ <mat-divider></mat-divider> - <button (click)="openTmplWithDialog(pluginTmpl)" mat-menu-item> - <mat-icon fontSet="fas" fontIcon="fa-cube"></mat-icon> - Plugins - </button> - <button mat-menu-item (click)="openTmplWithDialog(settingTemplate)"> <mat-icon fontSet="fas" fontIcon="fa-cog"></mat-icon> @@ -89,13 +84,6 @@ </button> </mat-menu> -<ng-template #pluginTmpl> - <h2 mat-dialog-title>Plugins</h2> - <mat-dialog-content> - <plugin-banner (click)="openTmplWithDialog(null)"></plugin-banner> - </mat-dialog-content> -</ng-template> - <ng-template #helpComponent> <h2 mat-dialog-title>About Interactive Viewer</h2> <mat-dialog-content>