Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
dalito committed May 2, 2024
2 parents 8bc1500 + 926ec38 commit 5ddfffe
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 12 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,14 +111,14 @@ jobs:
- name: Store artifacts
if: ${{ always() }}
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: voc4cat-outbox_${{ env.RUN_DATE }}_run${{ GITHUB.RUN_ID }}
path: outbox/

- name: Add/stage vocabulary changes
# Pinning of action managed by dependabot
uses: stefanzweifel/git-auto-commit-action@8756aa072ef5b4a080af5dc8fef36c5d586e521d
uses: stefanzweifel/git-auto-commit-action@8621497c8c39c72f3e2a999a26b4ca1b5058a842
with:
# glob pattern of files which should be added to the commit
file_pattern: 'vocabularies/\*.ttl'
Expand All @@ -130,7 +130,7 @@ jobs:
- name: Commit vocabulary changes & xlsx cleanup on behalf of PR-author
# Pinning of action managed by dependabot
uses: stefanzweifel/git-auto-commit-action@8756aa072ef5b4a080af5dc8fef36c5d586e521d
uses: stefanzweifel/git-auto-commit-action@8621497c8c39c72f3e2a999a26b4ca1b5058a842
with:
commit_user_name: voc4cat-CI-bot
commit_message: 'CI: vocabulary update in ${{ GITHUB.SERVER_URL }}/${{ GITHUB.REPOSITORY }}/actions/runs/${{ GITHUB.RUN_ID }}'
4 changes: 2 additions & 2 deletions .github/workflows/merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ jobs:
# checked out the gh-pages branch above so that we keep all prior
# content and just re-publish the extended version.
# Pinning of action managed by dependabot
uses: peaceiris/actions-gh-pages@373f7f263a76c20808c831209c920827a82a2847
uses: peaceiris/actions-gh-pages@4f9cc6602d3f66b9c108549d475ec49e8ef4d45e
if: (github.event_name == 'push' || github.event_name == 'workflow_dispatch') && github.ref == 'refs/heads/main'
with:
publish_branch: gh-pages
Expand All @@ -102,7 +102,7 @@ jobs:
# This step is not required and may be removed.
# It may be helpful for trouble shooting.
if: ${{ always() }}
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: voc4cat-pages-dev-content
path: publish/
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ jobs:
- name: Run voc4cat (build HTML documentation)
run: |
voc4cat docs --force --logfile publish/latest/voc4cat.log publish/latest/
# move versions-overview to what becomes gh-pages root
mv publish/latest/index.html publish/
- name: Run voc4cat (build current Excel file)
run: |
Expand All @@ -91,7 +93,7 @@ jobs:
# checked out the gh-pages branch above so that we keep all prior
# content and just re-publish the extended version.
# Pinning of action managed by dependabot
uses: peaceiris/actions-gh-pages@373f7f263a76c20808c831209c920827a82a2847
uses: peaceiris/actions-gh-pages@4f9cc6602d3f66b9c108549d475ec49e8ef4d45e
with:
publish_branch: gh-pages
github_token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -102,7 +104,7 @@ jobs:
# This step is not required and may be removed.
# It may be helpful for trouble shooting.
if: ${{ always() }}
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: voc4cat-pages-release-${{ github.ref_name }}
path: publish/
Expand Down
2 changes: 1 addition & 1 deletion vocabularies/vocab_example/0000001.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
<https://example.org/test/0000001>
a skos:Concept ;
dcterms:identifier "0000001"^^xsd:token ;
dcterms:provenance "0000-0001-2345-6789 Created concept"@en ;
rdfs:isDefinedBy <https://datatracker.ietf.org/doc/html/rfc2396> ;
skos:altLabel "URI"@en ;
skos:definition "Uniform Resource Identifier is a compact string of characters for identifying an abstract or physical resource."@en ;
skos:historyNote "0000-0001-2345-6789 Created concept"@en ;
skos:inScheme <https://example.org/test/> ;
skos:narrower <https://example.org/test/0000002> ;
skos:prefLabel "Uniform Resource Identifier"@en ;
Expand Down
2 changes: 1 addition & 1 deletion vocabularies/vocab_example/0000002.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
<https://example.org/test/0000002>
a skos:Concept ;
dcterms:identifier "0000002"^^xsd:token ;
dcterms:provenance "0000-0001-2345-6789 Created concept"@en ;
rdfs:isDefinedBy <https://www.w3.org/TR/2010/NOTE-curie-20101216/> ;
skos:altLabel
"CURIE"@en ,
"CompactURI"@en ;
skos:broader <https://example.org/test/0000001> ;
skos:definition "A CURIE (or Compact URI) defines a generic, abbreviated syntax for expressing Uniform Resource Identifiers (URIs). "@en ;
skos:historyNote "0000-0001-2345-6789 Created concept"@en ;
skos:inScheme <https://example.org/test/> ;
skos:prefLabel "Compact Universal Resource Locator"@en ;
.
Expand Down
2 changes: 1 addition & 1 deletion vocabularies/vocab_example/0000003.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
<https://example.org/test/0000003>
a skos:Concept ;
dcterms:identifier "0000003"^^xsd:token ;
dcterms:provenance "0000-0001-2345-6789 Created concept"@en ;
rdfs:isDefinedBy <https://datatracker.ietf.org/doc/html/rfc3987> ;
skos:altLabel "IRI"@en ;
skos:definition "Internationalized Resource Identifier (IRI) is an internet protocol standard which builds on the Uniform Resource Identifier (URI) protocol by greatly expanding the set of permitted characters."@en ;
skos:historyNote "0000-0001-2345-6789 Created concept"@en ;
skos:inScheme <https://example.org/test/> ;
skos:prefLabel "Internationalized Resource Identifier"@en ;
skos:topConceptOf <https://example.org/test/> ;
Expand Down
5 changes: 4 additions & 1 deletion vocabularies/vocab_example/0000010.ttl
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
PREFIX dcterms: <http://purl.org/dc/terms/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>

<https://example.org/test/0000010>
a skos:Collection ;
dcterms:identifier "0000010"^^xsd:token ;
dcterms:isPartOf <https://example.org/test/> ;
dcterms:provenance "0000-0001-2345-6789 Created collection"@en ;
rdfs:isDefinedBy <https://example.org/test/> ;
skos:definition "Collection of terms related to linked data."@en ;
skos:historyNote "0000-0001-2345-6789 Created collection"@en ;
skos:inScheme <https://example.org/test/> ;
skos:member
<https://example.org/test/0000001> ,
<https://example.org/test/0000002> ,
Expand Down
2 changes: 1 addition & 1 deletion vocabularies/vocab_example/concept_scheme.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
dcterms:hasPart <https://example.org/test/0000010> ;
dcterms:identifier ""^^xsd:token ;
dcterms:modified "2023-03-10"^^xsd:date ;
dcterms:provenance "https://orcid.org/0000-0001-2345-6789 Sofia Garcia"@en ;
dcterms:publisher <http://example.org/nfdi4cat/> ;
owl:versionInfo "v2023-03-10" ;
skos:definition "A test vocabulary for the voc4cat template"@en ;
skos:hasTopConcept
<https://example.org/test/0000001> ,
<https://example.org/test/0000003> ;
skos:historyNote "https://orcid.org/0000-0001-2345-6789 Sofia Garcia"@en ;
skos:prefLabel "Test-of-Voc4Cat"@en ;
dcat:contactPoint "Sofia Garcia (orcid:0000-0001-2345-6789)" ;
.
Expand Down

0 comments on commit 5ddfffe

Please sign in to comment.