Skip to content

Commit

Permalink
deploy: 67c12e6
Browse files Browse the repository at this point in the history
  • Loading branch information
laurianvm committed Dec 13, 2023
1 parent 835ba17 commit 71524f0
Show file tree
Hide file tree
Showing 7 changed files with 135 additions and 125 deletions.
20 changes: 10 additions & 10 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,47 +23,47 @@ <h1>RO-Crate preview index for emo-bon/observatory-profile</h1>
</tr>

<tr>
<td><a href="./v0.1.0-alpha" class="clickable">v0.1.0-alpha</a></td>
<td><a href="./0.10" class="clickable">0.10</a></td>
</tr>

<tr>
<td><a href="./0.6" class="clickable">0.6</a></td>
<td><a href="./latest" class="clickable">latest</a></td>
</tr>

<tr>
<td><a href="./0.9" class="clickable">0.9</a></td>
<td><a href="./0.5" class="clickable">0.5</a></td>
</tr>

<tr>
<td><a href="./latest" class="clickable">latest</a></td>
<td><a href="./v0.1.0-alpha" class="clickable">v0.1.0-alpha</a></td>
</tr>

<tr>
<td><a href="./0.10" class="clickable">0.10</a></td>
<td><a href="./0.6" class="clickable">0.6</a></td>
</tr>

<tr>
<td><a href="./0.7" class="clickable">0.7</a></td>
<td><a href="./0.2" class="clickable">0.2</a></td>
</tr>

<tr>
<td><a href="./0.8" class="clickable">0.8</a></td>
<td><a href="./0.4" class="clickable">0.4</a></td>
</tr>

<tr>
<td><a href="./0.5" class="clickable">0.5</a></td>
<td><a href="./0.8" class="clickable">0.8</a></td>
</tr>

<tr>
<td><a href="./0.4" class="clickable">0.4</a></td>
<td><a href="./0.7" class="clickable">0.7</a></td>
</tr>

<tr>
<td><a href="./0.3" class="clickable">0.3</a></td>
</tr>

<tr>
<td><a href="./0.2" class="clickable">0.2</a></td>
<td><a href="./0.9" class="clickable">0.9</a></td>
</tr>

<tr>
Expand Down
7 changes: 4 additions & 3 deletions latest/templates/sediment_measured.ldt.ttl.j2
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,12 @@ Description: Template to generate triples from {SampleType}_measured.csv data co

{#Observations made from the Sample#}
{%- for observatory in sets['observatory'] %}
@base <{{baseref()}}/emobon/observation/{{observatory.obs_id}}/{{observatory.env_package}}/{{_.source_mat_id}}> . {# baseref() ~ http://data.emobon.embrc.eu #}

{%- for row in sets['schema']%}
{%- if row['LogsheetTab'] == 'Measured' and not row['LogsheetColumnTitle'].endswith('_method') and _[row['LogsheetColumnTitle']] %}

<http://data.emobon.embrc.eu/emobon/id/{{observatory.obs_id}}/{{observatory.env_package}}/{{_.source_mat_id}}/{{row['LogsheetColumnTitle']}}>
<#{{row['LogsheetColumnTitle'].strip()}}>
a sosa:Observation, schema:Observation ;
{%- if row['Observable_property_url'] %}
sosa:observedProperty <{{ row['Observable_property_url'].strip() | safe }}> ;
Expand All @@ -30,7 +31,7 @@ Description: Template to generate triples from {SampleType}_measured.csv data co
rdf:type qudt:QuantityValue ;
qudt:numericValue {{ _[row['LogsheetColumnTitle']].strip() | ttl("xsd:string") | safe }} ; {#values are mix of strings and numbers#}
{%- if row['Unit_URL'] %}
qudt:unit <{{row['Unit_URL'].strip()}}> ;
qudt:unit <{{row['Unit_URL'].strip() | safe }}> ;
{%- elif row['Unit'] %}
qudt:unit {{row['Unit'].strip() | ttl('xsd:string') | safe }} ;
{%- endif %}
Expand All @@ -41,7 +42,7 @@ Description: Template to generate triples from {SampleType}_measured.csv data co
{%- endif %}

{#- link back to sample uri (see sediment_sampling.ldt.ttl.j2) #}
sosa:hasFeatureOfInterest <http://data.emobon.embrc.eu/emobon/sample/{{observatory.obs_id}}/{{observatory.env_package}}/{{_.source_mat_id}}> ;
sosa:hasFeatureOfInterest </emobon/sample/{{observatory.obs_id}}/{{observatory.env_package}}/{{_.source_mat_id}}> ;
.

{%- endif %}
Expand Down
18 changes: 10 additions & 8 deletions latest/templates/sediment_observatory.ldt.ttl.j2
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ Description: Template to generate triples from {SampleType}_observatory.csv data

{% include 'includes/prefixes.ttl' %}

<{{uritexpand("http://data.emobon.embrc.eu/emobon/observatory/{obs_id}/{env_package}", _)}}>
@base <{{baseref()}}/emobon/observatory/{{_.obs_id}}/{{_.env_package}}> . {# baseref() ~ http://data.emobon.embrc.eu #}

<>
a emobon:Observatory ;
{%- if _.wa_id %} {# water #}
emobon:sampleType emobon:Water ;
Expand All @@ -23,7 +25,7 @@ Description: Template to generate triples from {SampleType}_observatory.csv data
a schema:Project ;
schema:name {{_.project_name | ttl("xsd:string") | safe }} ;
schema:description "The EMO BON project"^^xsd:string ;
emobon:enaProjAccNum {{_.ENA_accession_number_umbrella | ttl("xsd:anyURI")}} ;
emobon:enaProjAccNum {{_.ENA_accession_number_umbrella | ttl("xsd:anyURI") | safe }} ;
] ;
emobon:siteInfo {{ _.extra_site_info | ttl("xsd:string") | safe }} ;

Expand All @@ -33,15 +35,15 @@ Description: Template to generate triples from {SampleType}_observatory.csv data
{#- marine region info #}
emobon:marineRegionName {{_.loc_broad_ocean | ttl("xsd:string") | safe }} ;
{%- if _.loc_broad_ocean_mrgid %}
emobon:marineRegion {{_.loc_broad_ocean_mrgid | ttl("xsd:anyURI")}} ;
emobon:marineRegion {{_.loc_broad_ocean_mrgid | ttl("xsd:anyURI") | safe }} ;
{%- endif %}
emobon:marineRegionName {{_.loc_regional | ttl("xsd:string") | safe }} ;
{%- if _.loc_regional_mrgid %}
emobon:marineRegion {{_.loc_regional_mrgid | ttl("xsd:anyURI")}} ;
emobon:marineRegion {{_.loc_regional_mrgid | ttl("xsd:anyURI") | safe }} ;
{%- endif %}
emobon:marineRegionName {{_.loc_loc | ttl("xsd:string") | safe }} ;
{%- if _.loc_loc_mrgid %}
emobon:marineRegion {{_.loc_loc_mrgid | ttl("xsd:anyURI")}} ;
emobon:marineRegion {{_.loc_loc_mrgid | ttl("xsd:anyURI") | safe }} ;
{%- endif %}

emobon:geoLocation [
Expand All @@ -53,7 +55,7 @@ Description: Template to generate triples from {SampleType}_observatory.csv data
schema:contactPoint [
a emobon:Organization ;
schema:legalName {{ item.strip() | ttl("xsd:string") | safe }} ;
emobon:edmoId {{ _.organization_edmoid.split(';')[loop.index0].strip() | ttl("xsd:anyURI") }} ;
emobon:edmoId {{ _.organization_edmoid.split(';')[loop.index0].strip() | ttl("xsd:anyURI") | safe }} ;
schema:address [
a schema:PostalAddress ;
schema:addressCountry {{ _.organization_country | ttl("xsd:string") | safe }} ;
Expand All @@ -69,7 +71,7 @@ Description: Template to generate triples from {SampleType}_observatory.csv data
schema:email {{ _.contact_email | ttl("xsd:string") | safe }} ;
{%- endif %}
{%- if _.contact_orcid %}
schema:identifier {{_.contact_orcid | ttl("xsd:anyURI")}} ;
schema:identifier {{_.contact_orcid | ttl("xsd:anyURI") | safe }} ;
{%- endif %}
]
{%- endif %}
Expand All @@ -80,7 +82,7 @@ Description: Template to generate triples from {SampleType}_observatory.csv data
{#- emobon ontology extension predicates #}
emobon:waterColumnDepth {{_.tot_depth_water_col | ttl("xsd:string") | safe }} ; {#- usefull to also connect to sampling_event/sample #}
emobon:originCountry {{_.geo_loc_name | ttl("xsd:string") | safe }} ; {#- usefull to also connect to sampling_event/sample #}
emobon:enaStudyAccNum {{_.ENA_accession_number_project | ttl("xsd:anyURI")}} ;
emobon:enaStudyAccNum {{_.ENA_accession_number_project | ttl("xsd:anyURI") | safe }} ;
emobon:hasMixsPackage {{_.env_package | ttl("xsd:string") | safe }} ; {#double check w/ Katrina whether column is correct #}
{%- if _.sediment_type %}
emobon:soilType {{_.sediment_type | ttl("xsd:string") | safe }} ; {#from list: biogenous,cosmogenous,hydrogenous,lithogenous#}
Expand Down
Loading

0 comments on commit 71524f0

Please sign in to comment.