Skip to content

Commit 98bd4fe

Browse files
committed
add tissue schema examples
1 parent 52dafeb commit 98bd4fe

File tree

1 file changed

+166
-4
lines changed

1 file changed

+166
-4
lines changed

src/linkml_tutorial_2025/schema/linkml_tutorial_2025.yaml

Lines changed: 166 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,23 +10,185 @@ prefixes:
1010
linkml_tutorial_2025: https://w3id.org/linkml/linkml-tutorial-2025/
1111
linkml: https://w3id.org/linkml/
1212
example: https://example.org/
13+
schema: http://schema.org/
14+
ENVO: http://purl.obolibrary.org/obo/ENVO_
15+
PO: http://purl.obolibrary.org/obo/PO_
16+
PATO: http://purl.obolibrary.org/obo/PATO_
17+
NCBITaxon: http://purl.obolibrary.org/obo/NCBITaxon_
18+
NCIT: http://purl.obolibrary.org/obo/NCIT_
19+
SIO: http://semanticscience.org/resource/SIO_
20+
1321
default_prefix: linkml_tutorial_2025
1422
default_range: string
1523

1624
imports:
1725
- linkml:types
1826

1927
classes:
20-
NamedThing:
28+
PlantTissueSample:
2129
description: >-
22-
A generic grouping for any identifiable entity
30+
Plant tissue sample metadata including collection, taxonomic, and environmental information
2331
slots:
2432
- id
25-
class_uri: schema:Thing
33+
- sample_container
34+
- plate_location
35+
- strain_variety_cultivar
36+
- isolate
37+
- ncbi_taxonomy_id
38+
- ploidy
39+
- collection_date_time
40+
- sample_size
41+
- tissue
42+
- tissue_plant_ontology_term
43+
- depth_meters
44+
- elevation_meters
45+
- broad_scale_environmental_context
46+
- local_environmental_context
47+
- environmental_medium
48+
49+
enums:
50+
SampleContainerEnum:
51+
permissible_values:
52+
tube:
53+
description: Sample provided in a tube
54+
plate:
55+
description: Sample provided in a plate
56+
57+
PloidyEnum:
58+
permissible_values:
59+
haploid:
60+
meaning: PATO:0001393
61+
diploid:
62+
meaning: PATO:0001394
63+
triploid:
64+
meaning: PATO:0001395
65+
tetraploid:
66+
meaning: PATO:0001396
67+
allopolyploid:
68+
meaning: PATO:0001392
69+
70+
NCBITaxonEnum:
71+
reachable_from:
72+
source_ontology: obo:ncbitaxon
73+
74+
TissueTypeEnum:
75+
reachable_from:
76+
source_ontology: obo:po
77+
source_nodes:
78+
- PO:0025131
79+
include_self: false
80+
relationship_types:
81+
- rdfs:subClassOf
2682

2783
slots:
2884
id:
2985
identifier: true
3086
slot_uri: schema:identifier
87+
range: integer
88+
description: Sample ID (No Edit) - prefilled identifier
89+
90+
sample_container:
91+
required: true
92+
range: SampleContainerEnum
93+
description: Select tube or plate
94+
95+
plate_location:
96+
range: string
97+
description: >-
98+
Required if samples provided in a plate. For partial plates, fill by columns. Leave blank if the
99+
sample will be shipped in a tube (e.g., B1)
100+
pattern: "^[A-H][1-9][0-2]?$"
101+
102+
strain_variety_cultivar:
103+
required: true
104+
range: string
105+
description: >-
106+
Name or ID of the cultivar, variety, strain, or other similar designation of the primary
107+
organism being sampled
108+
109+
isolate:
110+
range: string
111+
description: Isolate or mutant name
112+
113+
ncbi_taxonomy_id:
114+
required: true
115+
range: NCBITaxonEnum
116+
description: Unique identifier from the NCBI taxonomy database
117+
118+
ploidy:
119+
range: PloidyEnum
120+
description: >-
121+
The ploidy level of the genome (e.g. allopolyploid, haploid, diploid, triploid, tetraploid).
122+
For terms, select terms listed under class ploidy (PATO:001374) of Phenotypic Quality Ontology (PATO)
123+
slot_uri: PATO:0001374
124+
exact_mappings:
125+
- PATO:0001374
126+
- NCIT:C17001
127+
- SIO:010278
128+
129+
collection_date_time:
130+
required: true
131+
range: datetime
132+
description: >-
133+
The time of sampling, either as an instance (single point in time) or interval.
134+
In case no exact time is available, the date/time can be right truncated. All times must be I
135+
SO8601 compliant
136+
137+
sample_size:
138+
required: true
139+
range: string
140+
description: >-
141+
The total amount or size (volume (ml), mass (g) or area (m2)) of sample collected.
142+
Separate the number and unit by a single space
143+
pattern: "^[0-9]+(\\.[0-9]+)?\\s+(g|ml|m2)$"
144+
145+
tissue:
146+
required: true
147+
range: string
148+
description: >-
149+
Detailed description of the organ or type of tissue sampled (e.g.
150+
unopened flower buds with 1mm petal visible, 5 mm lateral root tips, 4th leaf fully expanded)
151+
152+
tissue_plant_ontology_term:
153+
range: TissueTypeEnum
154+
multivalued: true
155+
description: >-
156+
Plant ontology term corresponding to plant structure sampled. May include
157+
multiple terms separated by semicolons. See https://planteome.org
158+
159+
depth_meters:
160+
range: float
161+
description: >-
162+
The vertical distance (in meters) below local surface. For sediment or soil samples
163+
depth is measured from sediment or soil surface, respectively. Depth can be reported as an
164+
interval for subsurface samples
165+
166+
elevation_meters:
167+
range: float
168+
description: >-
169+
Elevation (in meters) of the sampling site as measured by the vertical distance from mean sea level
170+
171+
broad_scale_environmental_context:
172+
range: uriorcurie
173+
description: >-
174+
The major environmental system the sample or specimen came from.
175+
The system(s) identified should have a coarse spatial grain, to provide the
176+
big contextualising environment of where the sampling was done (e.g. in the desert or a rainforest).
177+
See https://github.com/EnvironmentOntology/envo/wiki/Using-ENVO-with-MIxS
178+
179+
local_environmental_context:
31180
range: uriorcurie
32-
description: A unique identifier for a thing
181+
description: >-
182+
The entity or entities which are in the sample or specimen's local vicinity and which you
183+
believe have significant causal influences on your sample or specimen. The terms used here
184+
should be countable things (e.g. a rock, a snow crystal, a cave, a hydrothermal vent) of
185+
smaller spatial grain than your entry for broad-scale environmental context.
186+
See https://github.com/EnvironmentOntology/envo/wiki/Using-ENVO-with-MIxS
187+
188+
environmental_medium:
189+
range: uriorcurie
190+
description: >-
191+
The environmental material(s) immediately surrounding the sample or specimen at the time of
192+
sampling. These should be mass/volume nouns (e.g. air, water) and not discrete, countable entities
193+
(e.g. a tree, a leaf, a table top).
194+
See https://github.com/EnvironmentOntology/envo/wiki/Using-ENVO-with-MIxS

0 commit comments

Comments
 (0)