generated from cicirello/python-github-action-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update of the templates for the vocabs so all terms are included
- Loading branch information
Showing
7 changed files
with
70 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,26 @@ | ||
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> | ||
PREFIX skos: <http://www.w3.org/2004/02/skos/core#> | ||
PREFIX dc: <http://purl.org/dc/elements/1.1/> | ||
|
||
<{{vars_dict.baseuri}}/{{vars_dict.relref}}#{{_.ID}}> | ||
{% for row in sets['_']%} | ||
<{{vars_dict.baseuri}}/{{vars_dict.relref}}#{{row.ID}}> | ||
rdf:type skos:Concept ; | ||
dc:date "{{_.DATE}}" ; | ||
dc:identifier "{{_.ID}}" ; | ||
skos:prefLabel "{{_.PREFLABEL_EN}}"@en ; | ||
{%-if '[' in _.BROADER -%} | ||
{%-set BROADER = _.BROADER.replace('[','').replace(']','').split(';')%} | ||
skos:broader {%for B in BROADER%} <{{vars_dict.baseuri}}/{{vars_dict.relref}}#{{B}}> ,{%endfor%}; | ||
dc:date "{{row.DATE}}" ; | ||
dc:identifier "{{row.ID}}" ; | ||
skos:prefLabel "{{row.PREFLABEL_EN}}"@en ; | ||
{%-if '[' in row.BROADER -%} | ||
{%-set BROADER = row.BROADER.replace('[','').replace(']','').split(';')%} | ||
skos:broader {% for B in BROADER %} <{{vars_dict.baseuri}}/{{vars_dict.relref}}#{{B}}>{% if not forloop.last %} ,{% endif %}{% endfor %}; | ||
{%-endif%} | ||
{%-if '[' in _.NARROWER -%} | ||
{%-set NARROWER = _.NARROWER.replace('[','').replace(']','').split(';')%} | ||
skos:narrower {%for N in NARROWER%} <{{vars_dict.baseuri}}/{{vars_dict.relref}}#{{N}}> ,{%endfor%}; | ||
{%-if '[' in row.NARROWER -%} | ||
{%-set NARROWER = row.NARROWER.replace('[','').replace(']','').split(';')%} | ||
skos:narrower {%for N in NARROWER%} <{{vars_dict.baseuri}}/{{vars_dict.relref}}#{{N}}>{% if not forloop.last %} ,{% endif %}{%endfor%}; | ||
{%-endif%} | ||
{%if _.DEFINITION_EN-%} | ||
skos:definition "{{_.DEFINITION_EN}}"@en ; | ||
{%if row.DEFINITION_EN-%} | ||
skos:definition "{{row.DEFINITION_EN}}"@en ; | ||
{%-endif%} | ||
{%if _.ALTLABEL_EN-%} | ||
skos:altLabel "{{_.ALTLABEL_EN}}" | ||
{%if row.ALTLABEL_EN-%} | ||
skos:altLabel "{{row.ALTLABEL_EN}}" | ||
{%-endif%} | ||
. | ||
|
||
{% endfor %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
"ID","DATE","PREFLABEL_EN","DEFINITION_EN","ALTLABEL_EN","BROADER","NARROWER" | ||
1,2024-08-30,"Hard","Hard sample type","hard",, | ||
2,2024-08-30,"Soil","Soil sample type","soil",, | ||
3,2024-08-30,"Water","Water sample type","water",, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters