Skip to content

Commit

Permalink
Update the code to use the iSamples API package
Browse files Browse the repository at this point in the history
  • Loading branch information
dannymandel committed Sep 20, 2024
1 parent 3591df9 commit 9d00343
Show file tree
Hide file tree
Showing 11 changed files with 2,637 additions and 2,077 deletions.
91 changes: 38 additions & 53 deletions examples/EOI00002H.json
Original file line number Diff line number Diff line change
@@ -1,36 +1,19 @@
{
"$schema": "iSamplesSchemaCore1.0.json",
"@id": "https://data.isamples.org/digitalsample/igsn/10.58052/EOI00002H",
"authorizedBy": [],
"compliesWith": [],
"curation": {
"accessConstraints": "Not Provided",
"curationLocation": "Not Provided",
"description": "Not Provided",
"label": "Not Provided",
"responsibility": [
{
"contact_information": "andra.bobbitt@noaa.gov",
"name": "Andra Bobbitt",
"role": "sample owner"
},
{
"contact_information": "info@geosamples.org; url: https://www.geosamples.org/contact/",
"role": "metadata publisher"
}
]
},
"label": "J730-GTHFS-16",
"sample_identifier": "igsn:10.58052/EOI00002H",
"description": "Gas. Sampler:Fluid:GTHFS. HFS gastight. Red-center-9. T=250C",
"hasContextCategory": [
"has_context_category": [
"Subsurface fluid reservoir"
],
"hasMaterialCategory": [
"has_material_category": [
"Gaseous material"
],
"hasSpecimenCategory": [
"has_sample_object_type": [
"Other solid object"
],
"informalClassification": [
"informal_classification": [
"Not Provided"
],
"keywords": [
Expand All @@ -39,53 +22,55 @@
"scheme_name": "SESAR: Sample Type"
}
],
"label": "J730-GTHFS-16",
"producedBy": {
"produced_by": {
"@id": "",
"description": "cruiseFieldPrgrm:TN300. launchPlatformName:Jason II. Collection method:Sampler:Fluid:GTHFS. HFS gastight. Red-center-9. T=250C. launch type:ROV, navigation type:USBL",
"hasFeatureOfInterest": "volcano",
"label": "Sampler:Fluid:GTHFS, TN300",
"description": "cruiseFieldPrgrm:TN300. launchPlatformName:Jason II. Collection method:Sampler:Fluid:GTHFS. HFS gastight. Red-center-9. T=250C. launch type:ROV, navigation type:USBL",
"has_feature_of_interest": "volcano",
"responsibility": [
{
"name": "Evans_Leigh",
"role": "collector"
"role": "collector",
"name": "Evans_Leigh"
},
{
"name": "TN300",
"role": "sponsor"
"role": "sponsor",
"name": "TN300"
}
],
"resultTime": "2013-09-14",
"samplingSite": {
"result_time": "2013-09-14",
"sampling_site": {
"description": "Trevi:Jason Tmax=257.9 C. In the direct flow at this small anhydrite mound (anhydrite knocked over).",
"label": "Not Provided",
"location": {
"sample_location": {
"elevation": "-1520.0 m",
"latitude": 45.946265,
"longitude": -129.983725
},
"placeName": [
"place_name": [
"Axial Seamount"
]
}
},
"producedBy_samplingSite_location_h3_0": "8029fffffffffff",
"producedBy_samplingSite_location_h3_1": "8128fffffffffff",
"producedBy_samplingSite_location_h3_10": "8a28ed791baffff",
"producedBy_samplingSite_location_h3_11": "8b28ed791ba9fff",
"producedBy_samplingSite_location_h3_12": "8c28ed791ba97ff",
"producedBy_samplingSite_location_h3_13": "8d28ed791ba967f",
"producedBy_samplingSite_location_h3_14": "8e28ed791ba9647",
"producedBy_samplingSite_location_h3_2": "8228effffffffff",
"producedBy_samplingSite_location_h3_3": "8328edfffffffff",
"producedBy_samplingSite_location_h3_4": "8428ed7ffffffff",
"producedBy_samplingSite_location_h3_5": "8528ed7bfffffff",
"producedBy_samplingSite_location_h3_6": "8628ed797ffffff",
"producedBy_samplingSite_location_h3_7": "8728ed791ffffff",
"producedBy_samplingSite_location_h3_8": "8828ed791bfffff",
"producedBy_samplingSite_location_h3_9": "8928ed791bbffff",
"registrant": "Andra Bobbitt",
"relatedResource": [],
"sampleidentifier": "igsn:10.58052/EOI00002H",
"samplingPurpose": "Not Provided"
"sampling_purpose": "Not Provided",
"curation": {
"label": "Not Provided",
"description": "Not Provided",
"access_constraints": "Not Provided",
"curation_location": "Not Provided",
"responsibility": [
{
"role": "sample owner",
"name": "Andra Bobbitt",
"contact_information": "andra.bobbitt@noaa.gov"
},
{
"role": "metadata publisher",
"contact_information": "info@geosamples.org; url: https://www.geosamples.org/contact/"
}
]
},
"related_resource": [],
"authorized_by": [],
"complies_with": []
}
91 changes: 38 additions & 53 deletions examples/IEDUT103B.json
Original file line number Diff line number Diff line change
@@ -1,37 +1,20 @@
{
"$schema": "iSamplesSchemaCore1.0.json",
"@id": "https://data.isamples.org/digitalsample/igsn/10.58052/IEDUT103B",
"authorizedBy": [],
"compliesWith": [],
"curation": {
"accessConstraints": "Not Provided",
"curationLocation": "University of Florida Department of Geological Sciences",
"description": "Not Provided",
"label": "Not Provided",
"responsibility": [
{
"contact_information": "dutton3@wisc.edu",
"name": "Andrea Dutton",
"role": "sample owner"
},
{
"contact_information": "info@geosamples.org; url: https://www.geosamples.org/contact/",
"role": "metadata publisher"
}
]
},
"label": "JAM42",
"sample_identifier": "igsn:10.58052/IEDUT103B",
"description": "Macrobiology>Coral>Biology. Coring>HandHeldCorer. piece of short core",
"hasContextCategory": [
"has_context_category": [
"Not Provided"
],
"hasMaterialCategory": [
"has_material_category": [
"Organic material",
"Biogenic non-organic material"
],
"hasSpecimenCategory": [
"has_sample_object_type": [
"Not Provided"
],
"informalClassification": [
"informal_classification": [
"Not Provided"
],
"keywords": [
Expand All @@ -44,56 +27,58 @@
"scheme_name": "taxon: species"
}
],
"label": "JAM42",
"producedBy": {
"produced_by": {
"@id": "",
"description": "cruiseFieldPrgrm:UF Jamaica 2015 Fieldwork. Collection method:Coring>HandHeldCorer. piece of short core",
"hasFeatureOfInterest": "Reef",
"label": "Coring>HandHeldCorer, UF Jamaica 2015 Fieldwork",
"description": "cruiseFieldPrgrm:UF Jamaica 2015 Fieldwork. Collection method:Coring>HandHeldCorer. piece of short core",
"has_feature_of_interest": "Reef",
"responsibility": [
{
"name": "Andrea Dutton",
"role": "collector"
"role": "collector",
"name": "Andrea Dutton"
},
{
"name": "UF Jamaica 2015 Fieldwork",
"role": "sponsor"
"role": "sponsor",
"name": "UF Jamaica 2015 Fieldwork"
}
],
"resultTime": "2015-06-19",
"samplingSite": {
"result_time": "2015-06-19",
"sampling_site": {
"description": "Between Buccaneer Villa, Treasure Beach, and Great Bay",
"label": "Treasure Beach",
"location": {
"sample_location": {
"elevation": "1.626 m",
"latitude": 17.88451,
"longitude": -77.77107
},
"placeName": [
"place_name": [
"Limestone Falmouth Formation ",
"Saint Elizabeth",
"Cornwall",
"Treasure Beach"
]
}
},
"producedBy_samplingSite_location_h3_0": "8067fffffffffff",
"producedBy_samplingSite_location_h3_1": "8145bffffffffff",
"producedBy_samplingSite_location_h3_10": "8a45b29884e7fff",
"producedBy_samplingSite_location_h3_11": "8b45b29884e1fff",
"producedBy_samplingSite_location_h3_12": "8c45b29884e15ff",
"producedBy_samplingSite_location_h3_13": "8d45b29884e147f",
"producedBy_samplingSite_location_h3_14": "8e45b29884e1457",
"producedBy_samplingSite_location_h3_2": "8245b7fffffffff",
"producedBy_samplingSite_location_h3_3": "8345b2fffffffff",
"producedBy_samplingSite_location_h3_4": "8445b29ffffffff",
"producedBy_samplingSite_location_h3_5": "8545b29bfffffff",
"producedBy_samplingSite_location_h3_6": "8645b298fffffff",
"producedBy_samplingSite_location_h3_7": "8745b2988ffffff",
"producedBy_samplingSite_location_h3_8": "8845b29885fffff",
"producedBy_samplingSite_location_h3_9": "8945b29884fffff",
"registrant": "Andrea Dutton",
"relatedResource": [],
"sampleidentifier": "igsn:10.58052/IEDUT103B",
"samplingPurpose": "Paleosea-level"
"sampling_purpose": "Paleosea-level",
"curation": {
"label": "Not Provided",
"description": "Not Provided",
"access_constraints": "Not Provided",
"curation_location": "University of Florida Department of Geological Sciences",
"responsibility": [
{
"role": "sample owner",
"name": "Andrea Dutton",
"contact_information": "dutton3@wisc.edu"
},
{
"role": "metadata publisher",
"contact_information": "info@geosamples.org; url: https://www.geosamples.org/contact/"
}
]
},
"related_resource": [],
"authorized_by": [],
"complies_with": []
}
87 changes: 36 additions & 51 deletions examples/IEEJR000M.json
Original file line number Diff line number Diff line change
@@ -1,36 +1,19 @@
{
"$schema": "iSamplesSchemaCore1.0.json",
"@id": "https://data.isamples.org/digitalsample/igsn/10.58052/IEEJR000M",
"authorizedBy": [],
"compliesWith": [],
"curation": {
"accessConstraints": "Not Provided",
"curationLocation": "The University of Texas at Austin",
"description": "Not Provided",
"label": "Not Provided",
"responsibility": [
{
"contact_information": "ejramos@utexas.edu",
"name": "Evan Ramos",
"role": "sample owner"
},
{
"contact_information": "info@geosamples.org; url: https://www.geosamples.org/contact/",
"role": "metadata publisher"
}
]
},
"label": "16ER6F3",
"sample_identifier": "igsn:10.58052/IEEJR000M",
"description": "Metamorphic>Meta-Carbonate>Rock. Manual>Hammer",
"hasContextCategory": [
"has_context_category": [
"Earth interior"
],
"hasMaterialCategory": [
"has_material_category": [
"Rock"
],
"hasSpecimenCategory": [
"has_sample_object_type": [
"Other solid object"
],
"informalClassification": [
"informal_classification": [
"Not Provided"
],
"keywords": [
Expand All @@ -43,28 +26,27 @@
"scheme_name": "taxon: species"
}
],
"label": "16ER6F3",
"producedBy": {
"produced_by": {
"@id": "",
"description": "Collection method:Manual>Hammer",
"hasFeatureOfInterest": "Metamorphic aureole",
"label": "Manual>Hammer",
"description": "Collection method:Manual>Hammer",
"has_feature_of_interest": "Metamorphic aureole",
"responsibility": [
{
"name": "Jade Star Lackey",
"role": "collector"
"role": "collector",
"name": "Jade Star Lackey"
}
],
"resultTime": "2021-01-19",
"samplingSite": {
"result_time": "2021-01-19",
"sampling_site": {
"description": "Not Provided",
"label": "Not Provided",
"location": {
"sample_location": {
"elevation": "Not Provided",
"latitude": 36.461666,
"longitude": -118.583888
},
"placeName": [
"place_name": [
"Mineral King",
"Sequoia National Forest",
"California",
Expand All @@ -73,23 +55,26 @@
]
}
},
"producedBy_samplingSite_location_h3_0": "8029fffffffffff",
"producedBy_samplingSite_location_h3_1": "8129bffffffffff",
"producedBy_samplingSite_location_h3_10": "8a29aa8f66dffff",
"producedBy_samplingSite_location_h3_11": "8b29aa8f66dbfff",
"producedBy_samplingSite_location_h3_12": "8c29aa8f66dbbff",
"producedBy_samplingSite_location_h3_13": "8d29aa8f66dbaff",
"producedBy_samplingSite_location_h3_14": "8e29aa8f66dbaef",
"producedBy_samplingSite_location_h3_2": "8229affffffffff",
"producedBy_samplingSite_location_h3_3": "8329aafffffffff",
"producedBy_samplingSite_location_h3_4": "8429aa9ffffffff",
"producedBy_samplingSite_location_h3_5": "8529aa8ffffffff",
"producedBy_samplingSite_location_h3_6": "8629aa8f7ffffff",
"producedBy_samplingSite_location_h3_7": "8729aa8f2ffffff",
"producedBy_samplingSite_location_h3_8": "8829aa8f2dfffff",
"producedBy_samplingSite_location_h3_9": "8929aa8f2d7ffff",
"registrant": "Evan Ramos",
"relatedResource": [],
"sampleidentifier": "igsn:10.58052/IEEJR000M",
"samplingPurpose": "Not Provided"
"sampling_purpose": "Not Provided",
"curation": {
"label": "Not Provided",
"description": "Not Provided",
"access_constraints": "Not Provided",
"curation_location": "The University of Texas at Austin",
"responsibility": [
{
"role": "sample owner",
"name": "Evan Ramos",
"contact_information": "ejramos@utexas.edu"
},
{
"role": "metadata publisher",
"contact_information": "info@geosamples.org; url: https://www.geosamples.org/contact/"
}
]
},
"related_resource": [],
"authorized_by": [],
"complies_with": []
}
Loading

0 comments on commit 9d00343

Please sign in to comment.