Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
laurianvm committed Oct 21, 2024
1 parent 1f19d9d commit 32ae7eb
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
8 changes: 7 additions & 1 deletion templates/sediment_sampling.ldt.ttl.j2
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,14 @@ Sets:
{%- if _.ENA_accession_number_sample != "NA" %}
emobon-sampling:enaSampleAccNum {{_.ENA_accession_number_sample | xsd("anyURI") | safe }} ;
{%- endif %}
{%- if _.replicate != "NA" %}
{%- if _.replicate != "NA" %} {#distinguishing between replicate type (emobon-ontology #7) #}
{%- if _.replicate == "blank" %}
schema:additionalType "blank sample"^^xsd:string ;
emobon-sampling:sampleReplicate {{ _.replicate | xsd("string") | safe }} ;
{%- else %}
schema:additionalType "http://vocab.nerc.ac.uk/collection/P01/current/IDTCRE01/"^^anyURI ;
emobon-sampling:sampleReplicate {{ _.replicate | xsd("string") | safe }} ;
{%- endif %}
{%- endif %}
{%- if _.long_store == "Y" %}
emobon-sampling:longStorage 'true'^^xsd:boolean ;
Expand Down
8 changes: 7 additions & 1 deletion templates/water_sampling.ldt.ttl.j2
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,14 @@ Sets:
{%- if _.ENA_accession_number_sample != "NA" %}
emobon-sampling:enaSampleAccNum {{_.ENA_accession_number_sample | xsd("anyURI") | safe }} ;
{%- endif %}
{%- if _.replicate != "NA" %}
{%- if _.replicate != "NA" %} {#distinguishing between replicate type (emobon-ontology #7) #}
{%- if _.replicate == "blank" %}
schema:additionalType "blank sample" ;
emobon-sampling:sampleReplicate {{ _.replicate | xsd("string") | safe }} ;
{%- else %}
schema:additionalType "http://vocab.nerc.ac.uk/collection/P01/current/IDTCRE01/"^^anyURI ;
emobon-sampling:sampleReplicate {{ _.replicate | xsd("string") | safe }} ;
{%- endif %}
{%- endif %}
{%- if _.long_store == "Y" %}
emobon-sampling:longStorage 'true'^^xsd:boolean ;
Expand Down

0 comments on commit 32ae7eb

Please sign in to comment.