-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
123 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# v0.1.1 | ||
- Add Ontology Source Reference | ||
- Header title is limited to 50 character; otherwise abbreviated | ||
|
||
# v0.1.0 | ||
- Read in RO-Crate Metadata JSON of an ARC and display information | ||
- Displays Investigation, People, Studies, and Assays |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,4 +24,4 @@ keywords: | |
- RO-Crate | ||
- Visualization | ||
license: MIT | ||
version: 0.1.0 | ||
version: 0.1.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
<script lang="ts"> | ||
import OntologySourceReference from '@/components/rocrate/OntologySourceReference.svelte'; | ||
import { rocrate, rocrateLevel } from '@/stores/rocrate'; | ||
let ontologies = $rocrate['about']['ontologySourceReferences']; | ||
let ontology; | ||
function focusOntology(ontologyId: string) { | ||
ontology = ontologies.find(p => p['@id'] === ontologyId); | ||
} | ||
</script> | ||
|
||
<div class="grid"> | ||
<ul> | ||
{#each ontologies as ontology} | ||
<li> | ||
<button class="btn-ghost font-medium" on:click={()=>focusOntology(ontology['@id'])}>{ontology['name']?ontology['name']:ontology['file']}</button> | ||
</li> | ||
{/each} | ||
</ul> | ||
|
||
<section> | ||
|
||
<div class="main-content"> | ||
{#if ontology} | ||
<OntologySourceReference {ontology} /> | ||
{:else} | ||
{#if ontologies && ontologies.length > 0} | ||
<p>Select an ontology to view its details</p> | ||
{:else} | ||
<p>No ontologies found</p> | ||
{/if} | ||
{/if} | ||
</div> | ||
</section> | ||
</div> | ||
|
||
<style> | ||
.grid { | ||
display: grid; | ||
grid-template-columns: 1fr 4fr; | ||
gap: .5rem; | ||
} | ||
.main-content { | ||
padding-top: 1rem; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
<script lang="ts"> | ||
export let ontology; | ||
</script> | ||
|
||
<table> | ||
<tbody> | ||
{#if ontology['name']} | ||
<tr> | ||
<th>Name</th> | ||
<td>{ontology['name']}</td> | ||
</tr> | ||
{/if} | ||
{#if ontology['version']} | ||
<tr> | ||
<th>Version</th> | ||
<td>{ontology['version']}</td> | ||
</tr> | ||
{/if} | ||
{#if ontology['file']} | ||
<tr> | ||
<th>File</th> | ||
<td>{ontology['file']}</td> | ||
</tr> | ||
{/if} | ||
{#if ontology['description']} | ||
<tr> | ||
<th>Description</th> | ||
<td>{ontology['description']}</td> | ||
</tr> | ||
{/if} | ||
{#if ontology['comments']} | ||
<tr> | ||
<th>Comments</th> | ||
<td> | ||
<table style="border: 0;"> | ||
<tbody> | ||
{#each ontology.comments as comment} | ||
<tr> | ||
<th style="border: 0; border-bottom: 1px solid black;">{comment['name']}</th> | ||
<td style="border: 0; border-bottom: 1px solid black;">{comment['value']}</td> | ||
</tr> | ||
{/each} | ||
</tbody> | ||
</table> | ||
</td> | ||
</tr> | ||
{/if} | ||
</tbody> | ||
</table> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters