Skip to content

Commit d5c266b

Browse files
authored
Merge pull request #189 from isamplesorg/develop
some support files
2 parents ef34733 + 1ea7cbd commit d5c266b

File tree

4 files changed

+302
-0
lines changed

4 files changed

+302
-0
lines changed
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
{
2+
"@schema": "iSamplesSchemaCore1.0.json",
3+
"@id":"{{data.metadataid}}",
4+
"label": "{{data.label}}",
5+
"sample_identifier": "{{data.igsn}}",
6+
"description": "{{data.description}}",
7+
{% if data.featuretype %}
8+
"has_context_category": [
9+
{% for feat in data.featuretype %}
10+
{"label":"","identifier":""},
11+
{% endfor %}
12+
],
13+
{% endif %}
14+
{% if data.materials %}
15+
"has_material_category": [
16+
{% for mat in data.materials %}
17+
{"label":"","identifier":""},
18+
{% endfor %}
19+
],
20+
{% endif %}
21+
{% if data.objecttype %}
22+
"has_sample_object_type": [
23+
{% for obj in data.objecttype %}
24+
{"label":"","identifier":""},
25+
{% endfor %}
26+
],
27+
{% endif %}
28+
29+
{% endif %}
30+
{% if data.keywords %}
31+
"keywords": [
32+
{% for word in data.kewords %}
33+
{% if word.uri%}
34+
{
35+
"keyword": "{{word.label}}",
36+
"keyword_uri": "{{word.uri}}",
37+
{% if word.uri%}
38+
"scheme_name": "{{word.schemename}}",
39+
{% endif %}
40+
{% if word.uri%}
41+
"scheme_uri": "word.schemeuri"
42+
}, {% endif %}
43+
{% else %}
44+
{"keyword":"{{word.label}"},
45+
{% endif %}
46+
{% endfor %}
47+
],
48+
{% endif %}
49+
50+
"produced_by": {
51+
"label": "",
52+
"description": "",
53+
"has_feature_of_interest": "{{data.locality_type}}",
54+
"responsibility": [{"role":"collector","name":"{{individual_name}}"}],
55+
"sampling_site": {
56+
"description": "{{locality_detail}}",
57+
"label": "",
58+
"sample_location": {
59+
"elevation": "",
60+
"latitude": 0,
61+
"longitude": 0
62+
},
63+
"place_name": [""]
64+
}
65+
},
66+
"registrant": {"name":"{{registrant}}"},
67+
"last_modified_time":"2024-09-13T09:20:00-07:00",
68+
"sampling_purpose": ""
69+
}

examples/brainExample1.json

Lines changed: 123 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,123 @@
1+
{
2+
"$schema": "../src/schemas/iSamplesSchemaCore1.0.json",
3+
"@id": "https://isamples.org/metadata/4327q543jh",
4+
"@context": "https://isamples.org/metadata",
5+
"@type": "schema:DigitalDocument",
6+
"dct:conformsTo": "https://isamples.org/metadata",
7+
"registrant": {
8+
"name": "name",
9+
"affiliation": "affiliation",
10+
"contact_information": "contact_information",
11+
"identifier": "identifier",
12+
"role": "role"
13+
},
14+
"about": {
15+
"@id":"xxx:metadataabout/NYBB-MS1",
16+
"@type":"schema:Thing",
17+
"sample_identifier": "NYBB-MS1",
18+
"label": "Brain, Spinal Cord from Male adult",
19+
"description": "Brain and spinal cord tissue from male adult, age 65 at death, affected by multiple sclerosis",
20+
"alternate_identifiers": [],
21+
"produced_by": {
22+
"identifier": "identifier",
23+
"label": "post-mortem analysis",
24+
"description": "description",
25+
"has_feature_of_interest": "Human Body",
26+
"project": "Brain inventory",
27+
"responsibility": [
28+
{
29+
"name": "Dr. Who did the dissection",
30+
"affiliation": "affiliation",
31+
"contact_information": "contact_information",
32+
"identifier": "identifier",
33+
"role": "role"
34+
}
35+
],
36+
"result_time": "2020-09-24",
37+
"sampling_site": {
38+
"description": "Post mortem dissection, St. Mary's hospital, Tucson, AZ",
39+
"label": "Post mortem dissection, patient MYBB-MS1",
40+
"place_name": ["St. Mary's Hospital, Tucson, AZ"]
41+
},
42+
"authorized_by": ["appropriate documentation authorizing collection of body parts for research"]
43+
},
44+
"sampling_purpose": "pathology analysis",
45+
"has_context_category": [
46+
{
47+
"label": "Human Body",
48+
"identifier": "http://example.com/resource/humanbody/brain",
49+
"scheme_name": "scheme_name"
50+
},
51+
{
52+
"label": "Biological entity",
53+
"identifier": "https://w3id.org/isample/vocabulary/sampledfeature/biologicalentity",
54+
"scheme_name": "iSamples Sampled Feature Type vocabulary"
55+
}
56+
],
57+
"has_material_category": [
58+
{
59+
"label": "Organic material",
60+
"identifier": "https://w3id.org/isample/vocabulary/material/organicmaterial",
61+
"scheme_name": "iSamples Materials Vocabulary"
62+
}
63+
],
64+
"has_sample_object_type": [
65+
{
66+
"label": "Organism part",
67+
"identifier": "https://w3id.org/isample/vocabulary/materialsampleobjecttype/organismpart",
68+
"scheme_name": "iSamples Material Sample Object Type Vocabulary"
69+
},
70+
{
71+
"label": "Human brain",
72+
"identifier": "\t\nhttp://purl.org/sig/ont/fma/fma50801",
73+
"scheme_name": "Foundational Model of Anatomy"
74+
},
75+
{
76+
"label": "Human spinal cord",
77+
"identifier": "http://purl.org/sig/ont/fma/fma7647",
78+
"scheme_name": "Foundational Model of Anatomy"
79+
}
80+
],
81+
"keywords": [
82+
{
83+
"keyword": "brain",
84+
"keyword_uri": "keyword_uri",
85+
"scheme_name": "scheme_name",
86+
"scheme_uri": "scheme_uri"
87+
},
88+
{
89+
"keyword": "spinal cord"
90+
},
91+
{
92+
"keyword": "Multiple Sclerosis"
93+
}
94+
],
95+
"related_resource": [
96+
{
97+
"description": "Tissue thin section from NYBB_MS1, BA9",
98+
"label": "SBB1.3",
99+
"relationship": "Child sample",
100+
"target": "http://medsamples.org/research/nybbms1/sbb1.3"
101+
},
102+
{
103+
"description": "many other child samples...."
104+
}
105+
],
106+
"complies_with": ["links or descriptions of protocols for collection and use of human body parts for research"],
107+
"curation": {
108+
"access_constraints": ["access_constraints0"],
109+
"curation_location": "curation_location",
110+
"description": "How and where is this tissue material preserverd; who to contact about access to sample?",
111+
"label": "label",
112+
"responsibility": [
113+
{
114+
"name": "name",
115+
"affiliation": "affiliation",
116+
"contact_information": "contact_information",
117+
"identifier": "identifier",
118+
"role": "role"
119+
}
120+
]
121+
}
122+
}
123+
}

examples/brainSubSample1.json

Lines changed: 110 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,110 @@
1+
{
2+
"$schema": "../src/schemas/iSamplesSchemaCore1.0.json",
3+
"@id": "https://isamples.org/metadata/4327q543jh",
4+
"@context": "https://isamples.org/metadata",
5+
"@type": "schema:DigitalDocument",
6+
"dct:conformsTo": "https://isamples.org/metadata",
7+
"registrant": {
8+
"name": "name",
9+
"affiliation": "affiliation",
10+
"contact_information": "contact_information",
11+
"identifier": "identifier",
12+
"role": "role"
13+
},
14+
"about": {
15+
"@id":"xxx:metadataabout/NYBB-MS1/SBB5.1",
16+
"@type":"schema:Thing",
17+
"sample_identifier": "NYBB-MS1/SBB5.1",
18+
"label": "Hippocampal formation from Male adult",
19+
"description": "Hippocampal formation extracted from brain of male adult, age 65 at death, affected by multiple sclerosis",
20+
"alternate_identifiers": [],
21+
"produced_by": {
22+
"identifier": "identifier",
23+
"label": "label",
24+
"description": "Post mortem dissection",
25+
"has_feature_of_interest": "Human brain",
26+
"project": "Brain inventory",
27+
"responsibility": [
28+
{
29+
"name": "Dr. Who did the dissection",
30+
"affiliation": "affiliation",
31+
"contact_information": "contact_information",
32+
"identifier": "identifier",
33+
"role": "collector"
34+
}
35+
],
36+
"result_time": "2020-09-24",
37+
"sampling_site": {
38+
"description": "Hippocampal formation (HF), Post mortem dissection, St. Mary's hospital, Tucson, AZ",
39+
"label": "Hippocampal formation (HF)",
40+
"place_name": ["Hippocampal formation (HF)"]
41+
},
42+
"authorized_by": ["appropriate documentation authorizing collection of body parts for research"]
43+
},
44+
"sampling_purpose": "pathology analysis",
45+
"has_context_category": [
46+
{
47+
"label": "Human brain",
48+
"identifier": "\t\nhttp://purl.org/sig/ont/fma/fma50801",
49+
"scheme_name": "Foundational Model of Anatomy"
50+
},
51+
{
52+
"label": "Biological entity",
53+
"identifier": "https://w3id.org/isample/vocabulary/sampledfeature/biologicalentity",
54+
"scheme_name": "iSamples Sampled Feature Type vocabulary"
55+
}
56+
],
57+
"has_material_category": [
58+
{
59+
"label": "Organic material",
60+
"identifier": "https://w3id.org/isample/vocabulary/material/organicmaterial",
61+
"scheme_name": "iSamples Materials Vocabulary"
62+
}
63+
],
64+
"has_sample_object_type": [
65+
{
66+
"label": "Organism part",
67+
"identifier": "https://w3id.org/isample/vocabulary/materialsampleobjecttype/organismpart",
68+
"scheme_name": "iSamples Material Sample Object Type Vocabulary"
69+
}
70+
],
71+
"keywords": [
72+
{
73+
"keyword": "brain",
74+
"keyword_uri": "keyword_uri",
75+
"scheme_name": "scheme_name",
76+
"scheme_uri": "scheme_uri"
77+
},
78+
{
79+
"keyword": "Hippocampal formation"
80+
},
81+
{
82+
"keyword": "Multiple Sclerosis"
83+
}
84+
],
85+
"related_resource": [
86+
{
87+
"description": "Brain and spinal cord from MYBB_MS1",
88+
"label": "MYBB_MS1",
89+
"relationship": "Parent sample",
90+
"target": "http://medsamples.org/research/nybbms1"
91+
}
92+
],
93+
"complies_with": ["links or descriptions of protocols for collection and use of human body parts for research"],
94+
"curation": {
95+
"access_constraints": ["access_constraints0"],
96+
"curation_location": "curation_location",
97+
"description": "How and where is this tissue material preserverd; who to contact about access to sample?",
98+
"label": "label",
99+
"responsibility": [
100+
{
101+
"name": "name",
102+
"affiliation": "affiliation",
103+
"contact_information": "contact_information",
104+
"identifier": "identifier",
105+
"role": "role"
106+
}
107+
]
108+
}
109+
}
110+
}
31.7 KB
Binary file not shown.

0 commit comments

Comments
 (0)