Skip to content

Commit

Permalink
Fix syntax errors and add SOSA Profile to the docs for simplicity
Browse files Browse the repository at this point in the history
  • Loading branch information
StroemPhi committed Oct 29, 2024
1 parent eb2a846 commit 79fcfca
Show file tree
Hide file tree
Showing 5 changed files with 1,841 additions and 33 deletions.
3 changes: 2 additions & 1 deletion src/data/examples/Dataset-001.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ name: "13C nuclear magnetic resonance spectroscopy (13C NMR)"
description: "Dataset for 13C nuclear magnetic resonance spectroscopy (13C NMR)"
was_generated_by:
#id: doi:10.14272/KVOIVNBYNQXCNY-BOCHJOTCSA-N/CHMO0000595/spectroscopy
type:
type: #CHMO:0000595 # 'inlined' must be 'false' when 'range' of 'type' is set to an Enum
id: CHMO:0000595
name: "13C nuclear magnetic resonance spectroscopy"
evaluated_entity:
Expand Down Expand Up @@ -41,5 +41,6 @@ was_generated_by:
name: Temperature
value: 298.0
unit: https://qudt.org/vocab/unit/K



40 changes: 40 additions & 0 deletions src/data/examples/Dataset-001_NMREnum.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Example Dataset object
---
id: 10-14272-kvoivnbynqxcny-bochjotcsa-n-chmo0000595
alternative_id:
- doi:10.14272/KVOIVNBYNQXCNY-BOCHJOTCSA-N/CHMO0000595
- https://www.chemotion-repository.net/pid/37012
name: "13C nuclear magnetic resonance spectroscopy (13C NMR)"
description: "Dataset for 13C nuclear magnetic resonance spectroscopy (13C NMR)"
was_generated_by:
type: CHMO:0000595 # 'inlined' must be 'false' when 'range' of 'type' is set to an Enum
evaluated_entity:
type:
id: CHEBI:59999
name: "Chemical Substance"
id: doi:10.14272/KVOIVNBYNQXCNY-BOCHJOTCSA-N.1
name: "CRS-37013"
alternative_id:
- https://www.chemotion-repository.net/pid/37013
has_attribute:
type:
id: CHEMINF:000059
name: InChiKey
value: KVOIVNBYNQXCNY-BOCHJOTCSA-N
used_tool:
type:
id: OBI:0000566
name: "NMR instrument"
has_attribute:
- type:
id: NMR:1400037
name: NMR pulse sequence
value: zgpg30
has_quantifiable_attribute:
- type:
id: http://qudt.org/vocab/quantitykind/Temperature
name: Temperature
value: 298.0
unit: https://qudt.org/vocab/unit/K


21 changes: 6 additions & 15 deletions src/dcat_4c_ap/schema/dcat-4nfdi-ap-sosa.yaml
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
---
id: https://w3id.org/StroemPhi/dcat-4nfdi-ap-sosa
name: dcat-4nfdi-ap-sosa
title: DCAT-4NFDI-AP-SOSA
name: dcat-nfdi-ap-sosa
title: DCAT-NFDI-AP-SOSA
description: |-
DCAT-AP core extension for NFDI mapped to SOSA so that the research activity becomes a SOSA:Observation.
license: CC-BY 4.0
see_also:
- https://StroemPhi.github.io/dcat-NFDI-ap
- https://github.com/HendrikBorgelt/DCAT-ap_as_LinkML_template/blob/main/src/dcatlinkml/schema/dcatlinkml.yaml
- https://gitlab.com/opensourcelab/scientificdata/scidats/-/blob/feature/linkml-schemata/schemata/metadata_model_scidats_dcat_ap.yaml?ref_type=heads
prefixes:
nfdi: https://w3id.org/StroemPhi/dcat-4nfdi-ap/
nfdi_sosa: https://w3id.org/StroemPhi/dcat-4nfdi-ap-sosa/
nfdi-sosa: https://w3id.org/StroemPhi/dcat-4nfdi-ap-sosa/
linkml: https://w3id.org/linkml/
biolink: https://w3id.org/biolink/vocab/
schema: http://schema.org/
Expand Down Expand Up @@ -42,7 +38,7 @@ prefixes:
SIO: http://semanticscience.org/resource/SIO_
doi: https://doi.org/
NMR: "http://nmrML.org/nmrCV#NMR:"
default_prefix: nfdi_sosa
default_prefix: nfdi-sosa
default_range: string
imports:
- linkml:types
Expand All @@ -52,7 +48,6 @@ classes:

ObservationDataset:
is_a: Dataset
tree_root: true
class_uri: dcat:Dataset
description: >-
A collection of data, published or curated by a single agent, and available for access or download in one or more representations.
Expand All @@ -79,10 +74,6 @@ classes:
slot_uri: sosa:hasFeatureOfInterest
description: The relation between an Observation and the entity whose quality was observed, or between an Actuation and the entity whose property was modified, or between an act of Sampling and the entity that was sampled.
range: FeatureOfInterest
used_tool:
slot_uri: sosa:madeBySensor
range: Sensor
description: Thee relation between an Observation and the Sensor which made the Observation.
used_plan:
slot_uri: sosa:usedProcedure
range: Procedure
Expand Down Expand Up @@ -115,11 +106,11 @@ classes:
description: Device, agent (including humans), or software (simulation) involved in, or implementing, a Procedure. Sensors respond to a stimulus, e.g., a change in the environment, or input data composed from the results of prior Observations, and generate a Result. Sensors can be hosted by Platforms.
slot_usage:
type:
description: The type of the Tool provided as a DefinedTerm.
description: The type of the Sensor provided as a DefinedTerm.
range: DefinedTerm
inlined: true
has_part:
description: The slot to specify parts of a tool.
description: The slot to specify parts of a Sensor.
range: Tool
inlined: true
multivalued: true
Expand Down
6 changes: 2 additions & 4 deletions src/dcat_4c_ap/schema/dcat-4nfdi-ap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,16 +48,14 @@ imports:

classes:

Any:
class_uri: linkml:Any

DefinedTerm:
class_uri: schema:DefinedTerm
description: A word, name, acronym, phrase that is defined in a controlled vocabulary (CV) and that is used to provide the rdf:type of an entity within this schema.
attributes:
from_CV:
slot_uri: schema:inDefinedTermSet
description: The name of the controlled vocabulary.
range: uriorcurie
slots:
- id
- alternative_id
Expand Down Expand Up @@ -321,7 +319,7 @@ slots:
range: Tool
used_plan:
slot_uri: prov:used
description: The slot to specify the PlanSpecification (Method) that was used in the ResearchActivity.
description: The slot to specify the Method (aka Procedure) that was used in the ResearchActivity.
recommended: true
range: ActivitySpecification
has_part:
Expand Down
Loading

0 comments on commit 79fcfca

Please sign in to comment.