Skip to content

Commit

Permalink
fix(ontology): extract current version from .ttl file (#544)
Browse files Browse the repository at this point in the history
* fix(ontology): extract current version from .ttl file

* chore: regenerate ontology document
  • Loading branch information
JKRhb authored Mar 4, 2024
1 parent 7640623 commit 1760d25
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion context/discovery-ontology.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
</section>
<section id='sotd'>
<p>
Version 1.0.1.
Version 0.2.0-a1.
See [[[#changelog]]].
</p>
</section>
Expand Down
2 changes: 1 addition & 1 deletion context/discovery-ontology.template.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
</section>
<section id='sotd'>
<p>
Version 1.0.1.
Version %s.
See [[[#changelog]]].
</p>
</section>
Expand Down
8 changes: 8 additions & 0 deletions context/template.sparql
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,18 @@ template :main(?prefix) {
template :main-discovery (?prefix) {
format {
<file://./context/discovery-ontology.template.html>
st:call-template(:versionNumber, ?prefix)
st:call-template(:axioms, ?prefix)
}
} where {}

template :versionNumber(?prefix) {
format { "%s" ?versionInfo }
} where {
?o a owl:Ontology ;
owl:versionInfo ?versionInfo .
}

template :axioms(?prefix) {
"<section>"
"<h2>Axiomatization</h2>"
Expand Down

0 comments on commit 1760d25

Please sign in to comment.