Skip to content

Commit

Permalink
Merge pull request #218 from Informasjonsforvaltning/Workflow-for-v2
Browse files Browse the repository at this point in the history
Forsøker å automatisere publisering av html-visning av ontologien ...
  • Loading branch information
jimjyang authored Sep 16, 2024
2 parents 3059aa0 + e3c3bf3 commit 50990d5
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 5 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/publish-ontology-to-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,25 @@ on:
workflow_dispatch:

jobs:
test_uploading_of_file:
name: Upload vocabulary to static-rdf-server
adoc_build_and_upload:
name: Adoc-build html and Upload vocabulary to static-rdf-server
runs-on: ubuntu-latest
if: github.event.pull_request.draft == false

steps:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: v2

- name: Build html
id: adocbuild_html
uses: tonynv/asciidoctor-action@master
with:
program: "asciidoctor -D ontology -o index.html -a lang=nb ontology/main.adoc"

- name: Upload rdf to static-rdf-server
- name: Upload files to static-rdf-server
uses: Informasjonsforvaltning/upload-files-to-static-rdf-server-action@v3.2.0
id: upload-rdf
id: upload-files
with:
ontology-type: "vocabulary"
ontology: "skosno"
Expand Down
23 changes: 23 additions & 0 deletions ontology/main.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
= skosno
Digitaliseringsdirektoratet (Digdir) / The Norwegian Digitalisation Agency
:description: Ontologien som definerer klasser og egenskaper spesifisert i SKOS-AP-NO-begrep
:doctype: article
:docinfo: shared
:icons: font
:toc: left
ifdef::backend-pdf[:toc: macro]
:toclevels: 2
:sectlinks:
:table-stripes: odd
:xrefstyle: full
:title-logo-image: image:../docs/images/Digdir.png[pdfwidth=30vw]

image::../docs/images/Digdir.png[width=50%, pdfwidth=30vw, link=https://digdir.no/]

NOTE: Følgende er en html-visning av ontologien `skosno` uttrykt i RDF Turtle, som definerer klasser og egenskaper spesifisert i https://data.norge.no/specification/skos-ap-no-begrep[SKOS-AP-NO-Begrep ⧉, window="_blank", role="ext-link"] +
+
__The following is an HTML-view of the ontology `skosno` expressed in RDF Turtle, which defines classes and properties specified in https://data.norge.no/specification/skos-ap-no-begrep[SKOS-AP-NO-Begrep ⧉, window="_blank", role="ext-link"]__.

-----
include::skosno.ttl[]
-----

0 comments on commit 50990d5

Please sign in to comment.