Skip to content

Commit

Permalink
adding working sample data
Browse files Browse the repository at this point in the history
  • Loading branch information
sierra-moxon committed Jun 26, 2024
1 parent 170d375 commit 83997a0
Show file tree
Hide file tree
Showing 18 changed files with 550 additions and 283 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ SHEET_ID = $(LINKML_SCHEMA_GOOGLE_SHEET_ID)
SHEET_TABS = $(LINKML_SCHEMA_GOOGLE_SHEET_TABS)
SHEET_MODULE_PATH = $(SOURCE_SCHEMA_DIR)/$(SHEET_MODULE).yaml

CONFIG_YAML =
CONFIG_YAML = config.yaml
ifdef LINKML_GENERATORS_CONFIG_YAML
CONFIG_YAML = ${LINKML_GENERATORS_CONFIG_YAML}
endif
Expand Down
7 changes: 0 additions & 7 deletions examples/Person-001.yaml

This file was deleted.

27 changes: 27 additions & 0 deletions examples/Sample-001.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Example data object
---
samples:
- id: "soilsample:002"
latitude: 40.7128
longitude: -74.0060
species:
- NCBITaxon:1423 # Bacillus subtilis
sample_biome: desert
depth: 15
sample_type: SoilSample
- id: "soilsample:003"
latitude: 51.5074
longitude: -0.1278
species:
- NCBITaxon:287 # Pseudomonas aeruginosa
sample_biome: forest
depth: 30
sample_type: SoilSample
- id: "airsample:004"
latitude: 51.5074
longitude: -0.1278
species:
- NCBITaxon:287 # Pseudomonas aeruginosa
sample_biome: air
altitude: 30
sample_type: AirSample
Binary file modified project/excel/linkml_tutorial_2024.xlsx
Binary file not shown.
6 changes: 4 additions & 2 deletions project/graphql/linkml_tutorial_2024.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ type AirSample
longitude: Float
species: [SpeciesEnum]
sampleBiome: BiomeTypeEnum
sampleType: String
altitude: Float
id: String!
}
Expand All @@ -16,11 +17,11 @@ type Sample
longitude: Float
species: [SpeciesEnum]
sampleBiome: BiomeTypeEnum
sampleType: String
}

type SampleCollection
{
id: String!
samples: [Sample]
}

Expand All @@ -30,7 +31,8 @@ type SoilSample
longitude: Float
species: [SpeciesEnum]
sampleBiome: BiomeTypeEnum
depth: Float
sampleType: String
depth: Integer
id: String!
}

7 changes: 5 additions & 2 deletions project/jsonld/linkml_tutorial_2024.context.jsonld
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"comments": {
"description": "Auto generated by LinkML jsonld context generator",
"generation_date": "2024-06-26T09:28:36",
"generation_date": "2024-06-26T10:03:46",
"source": "linkml_tutorial_2024.yaml"
},
"@context": {
Expand Down Expand Up @@ -30,7 +30,7 @@
"@id": "altitude"
},
"depth": {
"@type": "xsd:float",
"@type": "xsd:integer",
"@id": "depth"
},
"latitude": {
Expand All @@ -50,6 +50,9 @@
},
"@id": "sample_biome"
},
"sample_type": {
"@id": "sample_type"
},
"samples": {
"@type": "@id",
"@id": "samples"
Expand Down
53 changes: 31 additions & 22 deletions project/jsonld/linkml_tutorial_2024.jsonld
Original file line number Diff line number Diff line change
Expand Up @@ -376,24 +376,19 @@
"from_schema": "https://w3id.org/linkml/linkml-tutorial-2024",
"permissible_values": [
{
"text": "forest",
"meaning": "ENVO:00000111"
"text": "forest"
},
{
"text": "lake",
"meaning": "ENVO:00000020"
"text": "lake"
},
{
"text": "ocean",
"meaning": "ENVO:00000015"
"text": "ocean"
},
{
"text": "desert",
"meaning": "ENVO:01001357"
"text": "desert"
},
{
"text": "air",
"meaning": "ENVO:00002005"
"text": "air"
}
]
},
Expand Down Expand Up @@ -423,7 +418,6 @@
"identifier": true,
"owner": "Sample",
"domain_of": [
"SampleCollection",
"Sample"
],
"range": "string",
Expand Down Expand Up @@ -499,7 +493,7 @@
"domain_of": [
"SoilSample"
],
"range": "float",
"range": "integer",
"@type": "SlotDefinition"
},
{
Expand Down Expand Up @@ -528,11 +522,24 @@
],
"range": "Sample",
"inlined": true,
"inlined_as_list": true,
"@type": "SlotDefinition"
},
{
"name": "Air_Sample_id",
"name": "sample_type",
"definition_uri": "https://w3id.org/linkml/linkml-tutorial-2024/sample_type",
"description": "The type of sample.",
"from_schema": "https://w3id.org/linkml/linkml-tutorial-2024",
"slot_uri": "https://w3id.org/linkml/linkml-tutorial-2024/sample_type",
"designates_type": true,
"owner": "Sample",
"domain_of": [
"Sample"
],
"range": "string",
"@type": "SlotDefinition"
},
{
"name": "AirSample_id",
"definition_uri": "https://w3id.org/linkml/linkml-tutorial-2024/id",
"description": "The unique identifier for the biosample.",
"from_schema": "https://w3id.org/linkml/linkml-tutorial-2024",
Expand All @@ -553,7 +560,7 @@
"@type": "SlotDefinition"
},
{
"name": "Soil_Sample_id",
"name": "SoilSample_id",
"definition_uri": "https://w3id.org/linkml/linkml-tutorial-2024/id",
"description": "The unique identifier for the biosample.",
"from_schema": "https://w3id.org/linkml/linkml-tutorial-2024",
Expand Down Expand Up @@ -581,7 +588,6 @@
"description": "A collection of samples.",
"from_schema": "https://w3id.org/linkml/linkml-tutorial-2024",
"slots": [
"id",
"samples"
],
"slot_usage": {},
Expand Down Expand Up @@ -613,7 +619,8 @@
"latitude",
"longitude",
"species",
"sample_biome"
"sample_biome",
"sample_type"
],
"slot_usage": {},
"class_uri": "http://semanticscience.org/resource/001050",
Expand All @@ -629,8 +636,9 @@
"longitude",
"species",
"sample_biome",
"sample_type",
"altitude",
"Air_Sample_id"
"AirSample_id"
],
"slot_usage": {},
"class_uri": "https://w3id.org/linkml/linkml-tutorial-2024/AirSample",
Expand All @@ -646,8 +654,9 @@
"longitude",
"species",
"sample_biome",
"sample_type",
"depth",
"Soil_Sample_id"
"SoilSample_id"
],
"slot_usage": {},
"class_uri": "https://w3id.org/linkml/linkml-tutorial-2024/SoilSample",
Expand All @@ -656,9 +665,9 @@
],
"metamodel_version": "1.7.0",
"source_file": "linkml_tutorial_2024.yaml",
"source_file_date": "2024-06-26T09:28:33",
"source_file_size": 3956,
"generation_date": "2024-06-26T09:28:36",
"source_file_date": "2024-06-26T10:03:44",
"source_file_size": 3857,
"generation_date": "2024-06-26T10:03:46",
"@type": "SchemaDefinition",
"@context": [
"project/jsonld/linkml_tutorial_2024.context.jsonld",
Expand Down
Loading

0 comments on commit 83997a0

Please sign in to comment.